blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
305f8dd48f181c3ff4d2654c9436f2992e021647 | 33 | cp -r ../engine-3d/dist/ ./dist/
|
a278b3fad6cbbc040f6f48cf982690bb46bf6a34 | 7,875 | #!/bin/ksh
################################################################################
# UNIX Script Documentation Block
# Script name: exglobal_fcst_nemsfv3gfs.sh.ecf
# Script description: Runs a global FV3GFS model forecast
#
# Author: Fanglin Yang Org: NCEP/EMC Date: 2016-11-15
# Abstract... |
831b0837522580ded348a66fcca88be0bc60b86b | 64 | #!/bin/sh
clang -lpthread -o threadeg2 threadeg2.c
./threadeg2
|
3c237433b8626128e5d32e632f2ce4ff427d68cc | 237 | #!/bin/bash
# create multiresolution windows icon
ICON_DST=../../src/qt/res/icons/LogosCoin.ico
convert ../../src/qt/res/icons/LogosCoin-16.png ../../src/qt/res/icons/LogosCoin-32.png ../../src/qt/res/icons/LogosCoin-48.png ${ICON_DST}
|
763ebc4ba1474f467b1645760b3152e4714ae7b1 | 679 | #!/usr/bin/bash
set -e
# Basic script to manage pacman package list backups
BACKUP_DIR="$HOME/pacback"
ROOT_BACKUP="/backup.tar.bz2"
function backup {
mkdir -p "$BACKUP_DIR"
pushd "$BACKUP_DIR" > /dev/null
FILE="$(date -Iseconds).tar.bz2"
echo $FILE
tar cjf "$BACKUP_DIR/$FILE" /var/lib/pacman/loca... |
bd20ddf3dfd560d3a86ae038f953431ff68b626d | 687 | #!/bin/sh
# set -x
echo "--- 启动 ssh ---"
flag=`ps aux|grep "sshd"|grep -v "grep"|wc -l`
if [ "$flag" = "0" ]; then
service ssh start
fi
service ssh status
echo "================================"
echo "--- 启动 docker ---"
flag=`ps aux|grep "dockerd"|grep -v "grep"|wc -l`
if [ "$flag" = "0" ]; then
service doc... |
81b91084b369e557c365209ace521a1652e26ed3 | 49 | #!/bin/bash
. /opt/esp-idf/export.sh
exec "$@"
|
b95bf51ae9835385701b8a0044d05e19da02cf7a | 1,189 | set -x
set -e
curl -s https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh | COVERITY_SCAN_PROJECT_NAME="Ambrosys/gpcxx" COVERITY_SCAN_NOTIFICATION_EMAIL="karsten.ahnert@gmx.de" COVERITY_SCAN_BUILD_COMMAND="make" COVERITY_SCAN_BUILD_COMMAND_PREPEND="mkdir coverity_build && cd coverity_build && cmake .. -D... |
7640a0a5f816bdeb5dda4c8d9ff6d43b174d272d | 1,011 | #!/bin/bash
#name chenhaijun
#filename LVS server start stop file
#version 1.0
. /etc/init.d/functions
VIP=192.168.36.158
PORT=80
RIP=(
192.168.36.139
192.168.36.143
)
function start(){
/sbin/ipvsadm -C #(清空所有)
/usr/sbin/ifconfig ens33:0 $VIP/24 up #(添加一个虚拟网络)
/usr/sbin/rou... |
698801f0019e4ac76aeab9c171fae1e8ee5102d0 | 1,797 | #!/bin/bash
if [ -z $1 ]; then
usr_msg="Usage: ./pid_change.sh <path to LHE file>"
$SVJ_TOP_DIR/utils/print_bash_script_usage.sh "$usr_msg"
exit
fi
lheFile=$1
echo "Changing PDGIDs from MadGraph to Pythia conventions in preparation for hadronisation..."
# madgraph sign convention is reversed?
# Change PDG... |
7bb77886b56793a77dd91da0c913f845fdb5f473 | 38 | #!/bin/bash
cat /etc/hosts | tail -10
|
73b24f2a2ae61445892144b5911cb7436cbf7cad | 85 | #!/bin/bash
mkdir -p /home/hadoop/hbase/
cp -r /etc/hbase/conf/ /home/hadoop/hbase/
|
47c9e7b016871fc27f3b0ca9e887927085be37cc | 1,720 | #!/bin/bash
# pull directory of current folder.
APP_DIRECTORY=/home/hello-robot/catkin_ws/src/stretch_aws_robotics_video_streaming
touch ~/.bash_aliases
echo "source $APP_DIRECTORY/user_scripts/utility_bash_functions" >> ~/.bash_aliases
echo "source ~/.bash_aliases" >> ~/.bashrc
# Setup sample ros application
if [ -d ... |
4ee5d442679b52b6cd78c69de68285f79567c5ee | 288 | #!/usr/bin/env bash
## training the autoencoder network
python train.py \
--dataroot data/mcbb_tiny \
--name fix_tiny_ae5_aug4 \
--mode autoencoder_pt \
--niter_decay 100 \
--niter 100 \
--input_nc 5 \
--batch_size 2 \
--num_threads 4 \
--gpu_ids -1 \
--arch mesh_aept \
--loss chamfer \ |
993117030c85e6ba1619ee51bc9feec73fc32a20 | 3,273 | #!/bin/bash
#清理防火墙规则,设置默认转发策略
function disable_firewalld(){
systemctl stop firewalld
systemctl disable firewalld
iptables -F && iptables -X && iptables -F -t nat && iptables -X -t nat
iptables -P FORWARD ACCEPT
}
#同时注释 /etc/fstab 中相应的条目,防止开机自动挂载 swap 分区
function disable_swap(){
swapoff -a
sed ... |
5bc4ff5f46af828075afe2733b7f53c8ae3ba178 | 498 | python3 tools/train.py --config_file='configs/video_baseline.yml' MODEL.DEVICE_ID "('0,1')" DATASETS.NAMES "('dukev',)" \
OUTPUT_DIR "./ckpt_DL_duke/Duke_avgpool" SOLVER.SOFT_MARGIN True \
... |
00836c57caa5c62c9380caafd9b68314092ea035 | 207 | #Mysql backup
#Author Vinay Gupta
DT=$(date +"%d%m%Y_%H%M%S")
mysqldump -uroot -pPASSWORD DB_NAME > /opt/DB_NAME_$DT.sql
gzip /opt/DB_NAME_$DT.sql
find /opt/ -name DB_NAME_* -type f -mtime +7 -exec rm {} \;
|
fd49da5ac219d9e82c1ddf20d830055434a3fb94 | 571 | #!/bin/sh
docker login -u $DOCKER_USER -p $DOCKER_PASS
if [ "$TRAVIS_BRANCH" = "main" ]; then
TAG="latest"
TAG_VERSION=$TRAVIS_BUILD_NUMBER
else
TAG="$TRAVIS_BRANCH"
TAG_VERSION="$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER"
fi
echo -n $TRAVIS_REPO_SLUG:${TAG_VERSION} > docker_image.txt
# docker build -f Dockerf... |
180c17cb99b1224902e00dcce8d21f877639b586 | 45 | #!/bin/bash
docker build -t pythonjukebox .
|
aed27df7b0caaf01d83e8e75a04b8d9bc112e293 | 1,091 | #!/usr/bin/env bash
#
# Phalcon Framework
#
# Copyright (c) 2011-2017 Phalcon Team (https://www.phalconphp.com)
#
# This source file is subject to the New BSD License that is bundled
# with this package in the file docs/LICENSE.txt.
#
# If you did not receive a copy of the license and are unable to
# obtain it th... |
f8e5044fff0aa54de9c54474e80b000b0ae6a7cc | 1,019 | #!/bin/bash
set -ev
source activate build_env
conda install --yes numpy ipython pytest cython psutil
if [ "$PYDEVD_PYTHON_VERSION" = "2.6" ]; then
conda install --yes pyqt=4
pip install pympler==0.5
pip install pathlib2
# Django 1.7 does not support Python 2.6
else
# pytest-xdist not available for... |
040b112a9f5f7d4745a74d2b4f4f02c10899a75a | 379 | #!/bin/bash -e
# bin/supply <build-dir> <cache-dir> <deps-dir> <index>
# The build directory for the app.
BUILD_DIR=$1
# To store assets needed during build (currently unused).
CACHE_DIR=$2
# App dependencies are stored in $DEPS_DIR/$INDEX_DIR.
DEPS_DIR=$3
INDEX_DIR=$4
BIN_DIR=$(cd $(dirname $0); pwd)
BUILDPACK_DIR... |
ee0feaa8a001b5e4c4533df1be85de1e92f477a1 | 1,051 | #!/bin/sh
# Create a tarball from the subversion repository.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... |
af69763661ae9679e110420dc39fb8f2b549923e | 273 | #!/bin/bash
clean() {
find -maxdepth 1 -name "*fastq.gz" -type f -or -type l | \
rename 's/_L001//; s/_001//; s/_1.fastq/_S01_R1.fastq/ ;
s/_2.fastq/_S01_R2.fastq/'
echo -e "\n\n# The filenames were renamed with the ${FUNCNAME[0]} function" &>> $log_file
}
|
a88b7f124966b4e11f4ee225371d73d2e2da03f4 | 700 | #!/usr/bin/env bash
PROFILE_NAME="elementary"
PROFILE_SLUG="1e862ef8-5203-4c74-aa42-accbc19ea3aa"
COLOR_01="#303030" # HOST
COLOR_02="#e1321a" # SYNTAX_STRING
COLOR_03="#6ab017" # COMMAND
COLOR_04="#ffc005" # COMMAND_COLOR2
COLOR_05="#004f9e" # PATH
COLOR_06="#ec0048" # SYNTAX_VAR
COLOR_07="#2aa7e7" # PROMP
COLOR_08=... |
baf36560f95fc1672ffd0efb80e8fcdc3ddfba2d | 138 | #!/bin/bash
cd ../examples
rm $1.pdf
rm $1.ly
python3 $1.py
/home/users/sophliu/bin/lilypond $1.ly
cat $1.ly
evince $1.pdf
cd ../scripts
|
25770e6eef2e6668f9f19e7978ac9179facbb884 | 189 | echo Enter your no.!
read no
i=2
z=0
while [ $i -lt $no ]
do
s=`expr $no % $i`
if [ $s -eq $z ]
then
echo "Not a Prime Number"
exit
else
i=`expr $i + 1`
fi
done
echo "Prime No."
|
1b36d7e8ca734a3ea0143a6aaf2c50876f4f6c13 | 70 | ENV=production
HOST=user
PORT=3001
SECRET=changeme
DYNAMODB_PORT=4569 |
c36ea6564cad4b7a926e757d83a1b0c93a9f2383 | 40 | FLASK_APP=app.microblog
FLASK_DEBUG=True |
5fb74fa185f65de5a38e52b13c91ca98ec3086b0 | 215 | #!/bin/bash
APP=$1
IPMASTER="192.168.33.46"
if [ -f $APP".json" ]; then
curl -X POST -H "Content-Type: application/json" $IPMASTER:8080/v2/apps -d@$APP".json"
else
echo "No valid JSON file found"
fi
exit 0
|
311d911b69e4e8c8a4e09ed469568a0f67a69ab0 | 17,568 | #!/bin/bash -u
# -*- indent-tabs-mode: nil -*-
# Software License Agreement - BSD License
#
# Inspired by MoveIt travis https://github.com/ros-planning/moveit_core/blob/09bbc196dd4388ac8d81171620c239673b624cc4/.travis.yml
# Inspired by JSK travis https://github.com/jsk-ros-pkg/jsk_travis
# Inspired by ROS Industrial ... |
f965869adeb0a06c0d3c6929c097f56300870827 | 44 | #!/bin/sh
go run /usr/local/bin/startup.go
|
5fddce2ddf91b2f959f7b55daf2733aab76ffb96 | 162 | mkdir -p /var/www/html/api
cp api/.htaccess /var/www/html/api/
cp api/index.php /var/www/html/api/
rm -rf /var/www/html/vendor
cp -r vendor /var/www/html/vendor
|
15ece291d1aa6b48c74b1c51c3a6051df22764a9 | 3,235 | #!/bin/bash
# Utility functions
function usage {
echo -e "\nmovein - Make Yourself @ \$HOME\n"
echo -e "\tA provisioning script for development environments"
echo -e "\nUsage:\n"
echo -e " movein.sh [-h] [-l logfile] [-u user] <crate1> <crate2> ..."
echo -e "\nWhere:"
echo -e " -h = show this ... |
2d3858c1becd6c871c64814e0155374c2e373b2b | 2,823 | clearing=1
# "description" "input" "args"
run_example(){
if [ "$clearing" -eq 1 ]
then
clear
fi
echo ""
echo $1
echo ""
echo "Input: $2"
echo "Command: ./aprox $3"
echo "$2" | ./aprox $3
read _
}
run_example "Print help for more info" " " "-h"
run_example "Simple prefix... |
2974b5442fe2f063b53a67e405b3c85158b52e68 | 219 | #!/bin/bash
gawk '
(NR == 1) {
for (i = 0; ++i <= NF; )
items[i] = $i;
}
(NR > 1) {
for (i = k = 0; ++i <= NF; ) {
if (k++ > 0) printf(" ");
printf("%s=%s", items[i], $i);
}
printf("\n");
}' $1 > $2
|
e81d9d37d39667435a7e10157b780ff4615cd6dc | 421 | #!/bin/bash
COUCHBASE0ROVOL="/home/tarso/Environments/Couchbase/Couchbase-0ro"
echo $COUCHBASE0ROVOL
mkdir -p $COUCHBASE0ROVOL
docker run --name couchbase0ro \
-v $COUCHBASE0ROVOL:/opt/couchbase/var \
-p 8091-8094:8091-8094 \
-p 11207:11207 \
-p 11210-11211:1... |
62423c8c9370d6e8f597f704d3dacb852fd2ea43 | 2,985 | ###############################################################
##
## Basic environment for Termux
##
## Should be sourced by any shell's profile.
##
###############################################################
##
## Set the strict file mode creation mask so
## only user with Termux UID can access them.
##
umask ... |
0329f8bbc5fc7b5fb6f41653d319958c66ed7079 | 113 | #!/bin/sh
. bin/variables
cd ${DOCKER_DIRECTORY}
# Build images
docker-compose build "$@"
cd ${APP_DIRECTORY} |
eca882655e7e992d4bc2cb823c06414b19a0509c | 169 | PORT=9000
URIDB="mongodb://localhost/trianafy"
JWT_SECRET=huaedfASHfusauyKLCiouywjahgfidoJFciAHsUc7US
BCRYPT_ROUNDS=12
JWT_LIFETIME=1d
JWT_ALGORITHM=HS256 |
e9996a18ac873c5dad8e0e587b54db5011b9ccd2 | 93 | #!/bin/bash
set -x
kubectl exec vault-0 -- vault write kv/secret user=masa address=koenji
|
01224e55ebaea7efed3984a176d19349bb6a6147 | 704 | #!/bin/bash
#PBS -q gpu
#PBS -l walltime=10:00:00
#PBS -l mem=26GB
#PBS -l jobfs=0GB
#PBS -l ngpus=2
#PBS -l ncpus=6
## For licensed software, you have to specify it to get the job running. For unlicensed software, you should also specify it to help us analyse the software usage on our system.
#PBS -l software=tensorfl... |
9064b6472062e9e2a0965cd5efb2777d1ff092db | 550 | #!/bin/bash
cd /Users/lauramirez/Desktop/ironhack/Sugar\ Place/sugar-place-frontend
echo "Start building"
npm run build
echo "Cleaning public folder"
rm -rf /Users/lauramirez/Desktop/ironhack/Sugar\ Place/sugar-place-backend/public/*
echo "Copying build"
cp -r /Users/lauramirez/Desktop/ironhack/Sugar\ Place/sugar-place... |
a673259b598b1a66d98194c32241d2b5263d9bd3 | 401 | #!/bin/sh
start() {
echo "Starting gpm (eventually, maybe)"
modprobe mousedev
(sleep 10; gpm -m /dev/input/mice -t imps2) &
return 0
}
stop() {
gpm -k
return 0
}
restart() {
stop
sleep 1
start
return 0
}
case "$1" in
start|stop|restart)
"$1";;
reload)
# Restart, since there is no true "reload" featu... |
11dad6f4525d680419c0990069416ce81eb32cb8 | 1,087 | odpscmd=$1
model_folder=$2
model_zip=$3
model_type=$4
if [ ! -f ${model_zip} ]
then
rm ${model_zip}
fi
zip -r ${model_zip} ${model_folder} -x "*.DS_Store,*.git*"
pai_command="
# set odps.running.cluster=AY100G;
# set odps.algo.hybrid.deploy.info=LABEL:V100:OPER_EQUAL;
# -DautoStrategy='true'
# -DenableJITDeviceTu... |
10bed3e7987aa6f08b44567a860597f8857723df | 85 | #!/bin/sh -l
echo "job success yoooo"
echo "::set-output name=shouldNotify::false"
|
26884f6efddfd5bb775b575ab7652a2f80c12314 | 1,143 | PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$"
alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'
alias ll="ls -lahG"
alias gac="git add --all && git commit"
alias cf="cd ~/code"
alias pget="pirate-get"
export TERM=xterm-256color
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
exp... |
78e8adfd53ebe40b859464edc1683318bc31e794 | 122 | php artisan clear-compiled
php artisan view:clear
php artisan cache:clear
php artisan config:cache
php artisan route:cache |
e15d7b8dddbaeb0d9d4a2a554221100c91f33867 | 561 | #!/usr/bin/env bash
source /app_conf/services/scripts.sh
touch /code/.env
# Define settings
export DJANGO_SETTINGS_MODULE=project.settings
#run_python_script "Configurando SETTINGS" /deploy/setup/configure-settings.py
run_python_script_with_output "Atualizando Site ID" "manage.py loaddata 000_site"
echo " > Inician... |
c99af4d23fc828946a3d1a5b91c0608fcadac5af | 874 | #!/bin/bash
#
# usage: $0 <subdir in install-dir> <path to my.cnf>
#
# (w) Axel XL Schwenke for MariaDB Services AB
set -e
set -u
#set -x
. config.sh
HERE=$(pwd)
SERVER=${1:?"no server given!"}
test -d ${INST_DIR}/${SERVER} || { echo " ${INST_DIR}/${SERVER} does not exist!"; exit; }
shift
CONFIG=${1:?"no config gi... |
00580bb4987dfd03a22dc34727a8c01965211285 | 407 | #!/bin/bash
cd /home/amna/Thesis/initrd/
find . | cpio -H newc -o > ../initramfs.cpio
cd /home/amna/Thesis
cat initramfs.cpio | gzip > initramfs-debug.gz
cp initramfs-debug.gz /home/amna/Thesis/Phidias_access
cd /home/amna/Thesis/Phidias_access
size=$(du -b /home/amna/Thesis/Phidias_access/initramfs-debug.gz | awk '{p... |
e5ad3c2023fd3863e9d2d6e49e28e133ad81cece | 2,002 | #!/bin/bash
#launch cluster
aws emr create-cluster --applications Name=Spark Name=Hadoop Name=TensorFlow \
--ec2-attributes '{"KeyName":"keyAWS","InstanceProfile":"EMR_EC2_DefaultRole","SubnetId":"subnet-2059dd7a","EmrManagedSlaveSecurityGroup":"sg-1ebbe66a","EmrManagedMasterSecurityGroup":"sg-1ebbe66a"}' \
--release-l... |
dcfcf51c34cb6e5a195e9c7c30b1e460dcfbd1d7 | 799 | #!/usr/bin/env bash
# start server from s3 backup
sudo yum -y install java-1.8.0
sudo mkdir /minecraft
sudo chown -R ec2-user:ec2-user /minecraft
sudo aws s3 sync s3://owen-sanders-minecraft/backups/state/ /minecraft
cd /minecraft
sudo aws s3 cp s3://owen-sanders-minecraft/code/master/server_files/minecraft.service... |
1094339a1f307ac4041c2fb96a082ff27c7dfb33 | 331 | #!/usr/bin/env bash
set -euo pipefail
if [[ $# -lt 1 ]]; then
echo "usage: $0 <aws_profile>"
exit 1
fi
PROFILE=$1
shift
AWS_ACCESS_KEY_ID=$(aws configure --profile $PROFILE get aws_access_key_id) \
AWS_SECRET_ACCESS_KEY=$(aws configure --profile $PROFILE get aws_secret_access_key) \
docker-compose run te... |
570c871fb27f0ad35ba283895f7e6510d1ae7065 | 167 | #!/bin/bash
if [[ -e /tmp/tmp1 ]]; then
rm ~/.config/autostart/org.kde.yakuake.desktop ~/.config/autostart/vigo-store-app.desktop ~/.config/autostart/rm.desktop
fi
|
2d69d2a7396ca853901b72da842b9ac697e1480f | 64 | #!/bin/bash
docker-compose up -d
docker-compose scale chrome=10 |
94b6feea23dad33873d89aff801252eede55b33b | 416 | #!/bin/bash
APT_GET_CMD=$(which apt-get)
YAOURT_CMD=$(which yaourt)
if [[ ! -z $APT_GET_CMD ]]; then
apt-get install libtool autoconf automake cmake g++ pkg-config unzip git
git clone https://github.com/neovim/neovim
cd neovim
make;
sudo make install
elif [[ ! -z $YAOURT_CMD ]]; then
yaourt ... |
aae837975c630bb885d1c15e6c80caa40a52475d | 1,201 | #!/bin/bash
DEF_REPO1="svn+ssh://"
DEF_REPO2="login.hepforge.org/hepforge/svn/eudaq"
if [ "$2" == "" ]; then
echo "Usage: svnswitch <newrepo> <svn-command> [svn-params]..."
echo " <newrepo> can be:"
echo " - Use $DEF_REPO1$DEF_REPO2"
echo " -USER Use ${DEF_REPO1}USER@$DEF_REPO2"
echo " otherwise... |
9cd0d1dbce12981bba83c5765391bc0f878d4358 | 304 | #!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
apikey="#yourapikey#"
url="https://sms.yunpian.com/v2/sms/single_send.json"
mobile=$1
message=$($DIR/managemessage.sh $2)
text=$($DIR/getshortmessage.sh $message)
post="apikey="$apikey"&mobile="$mobile"&text="$text
curl -d "$post" "$url"
|
ccea57f73f7fdcc633372afeca994b02751de932 | 73 | #sample usage: ./runJava.sh input.txt
javac Huffman.java
java Huffman $1
|
a0e018236b40ed1a4426180d872abc341e2604d9 | 461 | #!/usr/bin/env bash
#nginx must be running as nginx user
sudo pkill nginx
sudo pkill apache2 #which is listening to port 80
sudo sed -i "s/#user/user/g" /etc/nginx/nginx.conf
sudo sed -i 's/www-data/nginx/g' /etc/nginx/nginx.conf
sudo sed -i 's/80/8080/g' /etc/nginx/sites-enabled/default
sudo chown nginx /etc/nginx/ngi... |
464eb86824d8ddd4e3db91c7f137f163a7528e75 | 549 | #!/bin/sh
cd $(dirname $(realpath $0))
if [ ! -d node_modules ]; then
yarn add @mermaid-js/mermaid-cli
fi
if [ ! -d ../img ]; then
mkdir ../img
fi
for mmdf in $(find -name '*.mmd'); do
if [ ! -f ../img/${mmdf}.png ] && [ ! -f ../img/${mmdf}.svg ]; then
echo "mermaid rendering ${mmdf}"
no... |
616502304ae5d5c2a03fbccbd87de421b327a352 | 271 | #!/bin/sh
sed -i \
-e 's/#0d0e10/rgb(0%,0%,0%)/g' \
-e 's/#d4d6d5/rgb(100%,100%,100%)/g' \
-e 's/#0d0e10/rgb(50%,0%,0%)/g' \
-e 's/#886c95/rgb(0%,50%,0%)/g' \
-e 's/#1d1f23/rgb(50%,0%,50%)/g' \
-e 's/#aaad78/rgb(0%,0%,50%)/g' \
"$@"
|
e5afb0c616fe8912930da2b247acc33dc0a1497e | 1,633 | #!/bin/bash
export PATH=~/bin:~/bin/drush:~/bin/utility:/usr/local/bin:/usr/bin:~/workspace/scripts:/Applications/acquia-drupal/mysql/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:$PATH:/Users/bwood/pear/bin
MODULE=$1
REPO=$2
REF=$3
PREFIX=$4
PREFIX_DEFAULT="profiles/openberkeley/modules"
if [ -z "$MODULE" ]; the... |
272198ba77956df7e9be656667b1b6a0d23c3898 | 314 | #!/bin/sh
curl http://localhost:8080/crossoverbackup/agent/configuration?sourceIP=10.135.140.11
#:<<COMM
curl -X POST -H "Content-Type: application/json" -d @- http://localhost:8080/crossoverbackup/agent/configlog <<-EOF
{
"log" : "finished",
"srcip" : "10.135.140.11",
"configid" : 1,
"status": 2
}
EOF
#COMM
|
7e55804c3efaa0d08da12527eaa2d7bf7a048ea2 | 260 | # watch out! two files of this name
username=f1054f74-38f7-4654-b982-1af0b9b1c717-bluemix
password=34cd6201661e9bd02a10bc048a51ea68d9e25d1a16fea1a88ba14d5f6ef0183c
# 1 if using cloudant-developer in docker container, anything else, if not
CLOUDANT_DEVELOPER=2
|
23fd79a50ffc4a94505026d589a257a59c656da9 | 73 | #!/bin/bash
cd /home/"$USER"/Ark/CMSmap;
./cmsmap.py -t http://$1;
|
a7b33317632503346c57d8ec00d945809544049d | 166 | #!/usr/bin/env bash
cd ../../editor-core
mvn clean install
cd ../editor-service
mvn clean install
cd ../deployment/allintomcat
mvn clean install
mvn tomcat7:run-war
|
05c759a0146f03bf768b9e77847123a2d49c9fc1 | 4,755 | #!/bin/bash
# Load gparted live functions
. /usr/share/gparted/bin/gl-functions
gparted_chooseLanguage()
{
VALIDLANG=0
echo "Loading language settings:"
echo " 01: Portuguese (Brazilian) 18: Latvian"
echo " 02: British English 19: Macedonian"
echo " 03: Bulgarian 20: Norwegian"
echo " 04: Ca... |
d676235e437c172aef6db103703ea5c0484cf831 | 1,017 | #!/bin/bash
# Add element to begin (if lesser) or end (if greather) of ordered array if it still not there.
# $1 - name of array for indirect access ( http://tldp.org/LDP/abs/html/ivr.html )
# $2 - element for addition
function array_ordered_unique_add(){
# http://www.linuxquestions.org/questions/linux-software-2/[bas... |
f49700b1f96f2ca404ab46c43023bac215ad4076 | 109 | #!/bin/sh
[ ! -f Gemfile ] || git diff-index --quiet --cached HEAD -- 'Gemfile*' '*.gemspec' || bundle check
|
0cdd84464f991713f231cfc1ab6f8202c0f9062c | 110 | MONGO_URI=mongodb+srv://<username>:<password>@<url>/<db>
JWT_SECRET=SECRET
HOST=127.0.0.1
PORT=5000
DEBUG=True |
a7710f938735cf1e5f76a2acbb5ca641d9d93d5c | 34 | DB_USER_PROD= 'mysql:/groupomania' |
35d34680f8043a510a7c5e79fc4906fcd2c174c4 | 4,137 | #!/bin/bash
cd "$( dirname "${0}" )"
THIS="$( basename "${0}" )"
THIS_DIR=`pwd`
numTools=0
numOk=0
numMissing=0
# function to check for the existence of a tool command
check_tool()
{
toolName="${1}" && shift
toolCmd="${1}" && shift
toolMsg="${1}" && shift
numTools=$((numTools + 1))
${toolCmd... |
811786b39dbf62b16a11f55ec7f87f556ca3a858 | 659 | #!/bin/sh
rm -f shell-out
myname=`whoami`
echo "Test10: Zombie processes"
before=`/bin/ps -u $myname | grep -c defunc`
echo "ls &" > shell-in
echo "ls &" >> shell-in
echo "ls &" >> shell-in
echo "ls &" >> shell-in
echo "ls &" >> shell-in
echo "ls &" >> shell-in
echo "ls &" >> shell-in
echo "sleep 5" >> shell-in
../sh... |
fc580a159bd7010e4467099bdad696ff89fc2df6 | 1,317 | printf "\033[32m= = = SETUP = = =\n\033[m"
cd ~
printf "\033[32m+ + + OMZSH + + +\n\033[m"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
printf "\033[32m+ + + P10K + + +\n\033[m"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerl... |
7d13e3b27cbc5162e1d625dc35aa81c653baad3f | 3,561 | #!/bin/bash
export trial=$1
export ERR_FROM_RES=$2
export AVG_UC=$3
export INCL_NEG=$4
export UC_TOL=$5
export POSTREF=$6
export SDFAC_AUTO=$7
export SDFAC_REFINE=$8
export MPI_RANK=$9
export PROG=${10}
export TAG=${trial}
if [ -d "${TAG}" ]; then
export TAG=${TAG}
fi
mkdir -p ${TAG}
cd ${TAG}
export TARDATA=/net/$... |
630d692922a60dc7d8b9ed63859b5967ab396549 | 344 | #!/usr/bin/env bash
PATCH_FILE=$(mktemp $HOME/tmp/mutt/mutt-patch.XXXXXX)
cat > $PATCH_FILE
MAILBOX=`cat $PATCH_FILE | formail -c -xSubject: | tr "'" "." | sed -e '{ s@^ @@g; s@\[@@g; s@\]@@g; s@[*()" ]@_@g; s@[/:]@-@g; s@^ \+@@; s@\.\.@.@g; s@-_@_@g; s@__@_@g; s@\.$@@; }' | cut -c 1-70`.patch
mv $PATCH_FILE $HOME/k... |
7c6cd9b79e331a942a44358fe67a5fbebd508a55 | 46 | ifconfig -a | grep "ether " | tr -d " ether "
|
610d1e778abbc1c6dbf6fa7df700a39953b96c7b | 1,635 | #!/bin/bash
### BEGIN INIT INFO
# Provides: qpidagent
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 3 4 5
# Default-Stop: 0 1 2 6
# Short-Description: start or stop qpidagent
# Description: Qpidd is an AMQP broker with a low performance at short connect... |
42c841a8d50ffddc248d4397f697d1377077bc93 | 488 | #! /bin/sh
# Author: Mindaugas Mardosas
# Company: Kolmisoft
# Year: 2012
# About: This script checks if stress time was completed on server
. /usr/src/mor/test/framework/bash_functions.sh
. /usr/src/mor/test/framework/settings.sh
#------VARIABLES-------------
#----- FUNCTIONS ------------
#--------MAIN ... |
7cc24b92548ceb087be246d4b2be94ac8715f720 | 122 | #! /bin/bash
echo "enter your name here:"
read name
echo "welcome to my channel"
echo "hello $name welcome to sl project"
|
0fb036e64ef2cd65a510c6bd4ec23110b18c9eda | 25 | #!/bin/bash
startbardwm
|
2f6680143ee8b2628fefb02143894aa85d3dc747 | 364 | #!/usr/bin/env bash
# Configure the IPMI subsystem
# Include basic defaults and debugging
{{ template "setup.tmpl" . }}
# Get the vendor functions
{{ template "ipmi-vendor.sh.tmpl" . }}
{{ if .ParamExists "ipmi/configure/certificate" }}
vendor_install_cert
{{ else }}
echo "ipmi/configure/certificate not defined - no... |
addf80a01b2e98e3e0e07ac5352b30e6210c6d95 | 1,452 | #!/bin/bash
sudo mount -o remount,rw /
cd /etc/modprobe.d/
if [ ! -e /etc/modprobe.d/blacklist.conf ]; then
echo blacklist.conf not found. create it.
sudo sh -c "echo 'install rtl8180 /bin/false' >> blacklist.conf"
sudo sh -c "echo 'install r8180 /bin/false' >> blacklist.conf"
echo blacklist.conf created.
els... |
db4645171d5f2dbc9ae33af8c3a439d2d1d2c4ae | 53 | dpkg-deb -Zgzip -b Package
dpkg-deb -Zgzip -b Noctis
|
521579aa74fa701e0df89eb545d13504821bbb1d | 222 | #!/bin/bash
file="WakfuModInstaller"
if [ $(uname -s) == 'Darwin' ]
then
upx -9 "$file.app/Contents/MacOS/$file"
else
if [ $(uname -m) == 'x86_64' ]; then m="x86_64"; else m="i386"; fi
upx -9 "$file.$m.run"
fi
|
a513422ba500e95cbbb1a4fb9b4b2f582e91b708 | 1,428 | #!/bin/bash
function createDirectories()
{
echo Creating data directories.
mkdir data
mkdir data/cifarKaggle
mkdir data/cifarKaggle/test
mkdir data/cifarKaggle/train
}
function downloadFiles()
{
echo Downloading data.
pushd .
cd data
if [ -e mnist.pkl.gz ]
then
echo ... |
aeaf12cd3eddcdf6adf7b9149258f34455206a9f | 117 | #!/bin/sh
# for var in w1 w2 ... wN
#do
# statement
#done
for var in 0 1 2 3 4 5 6 7 8 9
do
echo $var
done
|
dbeb9638bc2e1cae30243116a793570da927988f | 131 | #!/bin/sh
umask 0022
/usr/bin/mktexlsr
/usr/bin/updmap-sys --nohash --syncwithtrees
/usr/bin/mktexlsr
/usr/bin/fmtutil-sys --all
|
4d0f48a1ed76fc86b7742e08f2f481ae6d7cf859 | 178 | #!/bin/zsh
sep=$1
string=$2
value=""
for i in {1..${#string}}; do
x=$string[i]
if [[ "$x" == "$sep" ]]; then
echo $value
value=""
else
value+=$x
fi
done
echo $value
|
c8e8f3db42b9b1cc45f2fb843d68225c55b23cd7 | 1,716 | #!/usr/bin/env bash
set -euo pipefail
# Check .circleci/config.yml is up to date and valid, and that all changes are
# included together in this commit.
# Fail early if we accidentally used '.yaml' instead of '.yml'
if ! git diff --name-only --cached --exit-code -- '.circleci/***.yaml'; then
echo "ERROR: File(s) w... |
e93b8c30d600b4e4afe82b82ecebc741b2551772 | 110 | #!/usr/bin/env bash
docker build --tag pfe . && docker run --tty --interactive --rm --env-file <(env) pfe $1
|
6b7ac020069f055bb0783f7fe7eb87ce9a9f449a | 1,348 | #/usr/bin/env bash
_complete () {
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
comp_folders=$@
COMPREPLY=( $(compgen -W "$comp_folders" -- $cur))
return 0
}
#########################################################################
#### CD SCRIPTS ####
#######... |
49220461479d17222bf36dbe421aa2ac08952c28 | 237 | #!/usr/bin/env bash
set -e
docker login --username $DOCKER_USER_NAME --password $DOCKER_PASSWORD
# docker push kwmt/flutter:base
export FLUTTER_VERSION="1.13.9"
docker push kwmt/flutter:$FLUTTER_VERSION
docker push kwmt/flutter:latest |
0b7bd31beb9818d4816bfb5ec85a523c705dde75 | 1,304 | #!/bin/bash
# Copyright 2016 gRPC authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... |
74df85c7251d1847676a6c672dd05620e8606e00 | 1,424 | # To setup system based on my configurations
# Step 2: back up old files and replace with new files from customization folder
cd
echo "--> Back up old bashrc"
# Backup old bashrc
mv ~/.bashrc ~/.bashrc_old || :
cp ~/customization/dotfiles/.bashrc ~/
echo "--> Back up old vimrc"
# Backup old vimrc
mv ~/.vimrc ~/.vim... |
db09601fb6cc09acb24167854c2a0f72808d45a6 | 136 | #!/bin/bash
export DB_USER=esusr
export DB_PASSWORD=password
export DB_HOST=localhost
export DB_PORT=1521
export DB_SVC=xe.oracle.docker |
76e7cf4d6916cda50823c10b9c3b7e698e7c136d | 5,404 | #!/bin/bash
ROOT=$(cd $(dirname "$0"); pwd)
BINARYDIR=$(cd $(dirname "$0"); pwd)/build_output
DEPLOYDIR=$(cd $(dirname "$0"); pwd)/ReleaseBinaries
PACKAGEDIR=$(cd $(dirname "$0"); pwd)/Packages
LIB=$(cd $(dirname "$0"); pwd)/lib
CSHARP_BIN=$(cd $(dirname "$0"); pwd)/Languages/CSharp/lib
if [ -d $BINARYDIR ]; then
{
... |
d634c170d8b5e9fa025f8cb420b6923d24c43fd2 | 3,666 | #!/usr/bin/env bash
# Tags: no-parallel, no-fasttest, no-debug
# Tag no-parallel -- to avoid running it in parallel, this will avoid possible issues due to high pressure
# Test that ensures that WRITE lock failure notifies READ.
# In other words to ensure that after WRITE lock failure (DROP),
# READ lock (SELECT) avai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.