blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
5f57dff26c8bc311377f2ace7da3a485a9e2b9f8 | 435 | pathmunge()
{
if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
pathmunge $ZSH/bin
pathmunge $HOME/bin
if [[ -d $HOME/anaconda/bin ]]
then
pathmunge $HOME/anaconda/bin
fi
pathmunge ./... |
6a9f0cdc2d0f74316fce527fa704324aed37571d | 42 | #!/bin/bash
gcc -l objc -o cal src/main.m
|
9a31091d649f5347b66c61bb31f7985a8ba7cb00 | 8,505 | #!/bin/bash
# Script to build Argus Application Server Ops in Linux environment
# !!!Выполняется из каталога .linuxbuild
# TASK-87917, v.semchenko (31.10.2017): скрипт используем только для подготовки СП и обновления к БД.
# ВАЖНО!!! Если адаптируешь еще для чего-то скрипт, укажи когда и где он используется!!!
export ... |
83ada71830754777b40ca5805e10c4420823683c | 39 | #!/bin/sh
#START
java -cp ./src Main
|
118d405b7eb83b59ee653fe1409c615e5f3fedd4 | 110 | DB_HOST=127.0.0.1
DB_PORT=5432
DB_USER=accedia
DB_PASSWORD=accedia123
DB=accedia_node_express_db
APP_PORT=3000 |
984ff93b95805dfeb767db9549be18615eca0375 | 2,273 | sjb() {
# branch simple javascript project
sjLogic() {
if [[ $# -lt 3 ]]; then # when less than 3 arguments are entered
case $# in
'0') # for zero arguments
sjError.CantBranch
;;
'1') # for one arguments
if [[ $1 = . ]]; then # if a . is entered as an argument
# throw a branching error
s... |
b6c852c7b1e523c7aafe6bce64ca4e74cf1dfd05 | 1,828 | #--color=[never | auto | always] kolorowanie imion (nigdy, tylko gdy standardowy strumień wyjściowy
#jest konsolą, zawsze), por. podobną opcję programu ls(1);
#-w, --world wypisanie dodatkowo wiersza Hello, world!
color=false
cl_flag=never
cap=false
greeting=false
helpme=false
whatdo="This program outputs strings 'hell... |
7b7b7770cd472d06e3117b890cecd0d6a7bff3fb | 53 | #!/bin/bash
docker run staphb/kraken:1.1.1 kraken $@
|
3781f62dd5b7efbd6e2c3dbf9cf5c59cf6d5a803 | 1,261 | #!/bin/bash
## location: 10,dest=/data/crontab,owner=weiguo:sysadmin,mode=755
#dump all online logs to hdfs
# 将行为日志导 入到HDFS
## 2015-08-04
## 日志已经实时存储到10.1.1.60节点上
## 因此该脚本仅用来检查数据是否已经保存在
HDFS_BASEDIR="/backup/behaviour"
LOCAL_BASEDIR="/logs/bi_exp"
if [ -z $1 ];then
CURR_DAY=$(date -d "1 days ago" +"%Y-%m-%d")
else... |
b62aebef01f123f9f39026faf983453d6762d945 | 2,327 | #! /usr/bin/bash -w
#####clamav ####### -- 2016-02-06 -- moved from README 2019-06-19
## make SURE clamav is installed:
clamscan --version ;
/usr/bin/clamscan --version ;
## dont forget to change 'SERVER-NAME-HERE' ...!
mkdir --verbose /var/log/clamav/ ; ### need this to start the log directory !
#!/b... |
0c6e6c350d53b5b7261f729dd1aa42ef07903593 | 196 | #!/bin/sh
set -e
case $1 in
configure|reconfigure)
if [ -e "/usr/share/yorick/i" ]; then
update-yorickdoc --auto-now
fi
;;
triggered)
update-yorickdoc --auto-now
;;
esac
|
c82c6b43b52faa8b7e6e575b6467160d8af06627 | 1,633 | #!/bin/sh
CWD=`pwd`
PKG=/tmp/package-dnsmasq
VERSION=2.24
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
if [ "$ARCH" = "i386" ]; then
SLKCFLAGS="-O2 -march=i386 -mcpu=i686"
elif [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mcpu=i686"
elif [ "$ARCH" = "s390" ]; then
SLKCFLAGS="-O2"
elif [ "$ARCH" = "x86_64" ]; ... |
fa224fa88fde7a714d452830aa85031cf28f30d1 | 1,148 | #!/bin/sh
BASE_PATH="/sys/class/gpio"
EXPORT_FILE="export"
UNEXPORT_FILE="unexport"
BUTTON_1="18"
LED_1="23"
LED_2="24"
LED_3="25"
#unexport the required GPIOs (reset)
echo ${BUTTON_1} > ${BASE_PATH}/${UNEXPORT_FILE}
echo ${LED_1} > ${BASE_PATH}/${UNEXPORT_FILE}
echo ${LED_2} > ${BASE_PATH}/${UNEXPORT_FILE}
echo... |
a06f9995f967ba5eae747c284acf983fffe06c66 | 1,540 | #!/bin/bash
#
#PBS -N geosfp_eu-03
#PBS -l nodes=1:ppn=16
#PBS -l walltime=70:00:00
#PBS -l vmem=40gb
#PBS -M uol-uname@le.ac.uk
#PBS -m bea
# Load environment modules
module load gcc/6.3.0 openmpi/gcc/3.0.0 netcdf/gcc-mpi/4.4.1
# Relevant libraries and other resource information:
export NETCDF_HOME=`nc-config --pref... |
f66a61e00a616de5b12003c9f0e0cfedf06ee613 | 240 | #/bin/bash
printf "Restart SIM800L\n"
#echo "21" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio17/direction
echo "1" > /sys/class/gpio/gpio17/value
echo "0" > /sys/class/gpio/gpio17/value
echo "1" > /sys/class/gpio/gpio17/value
|
0378998e485ba0c405a119f7f19d6749a2e14db4 | 1,369 | #!/bin/bash
source ./test/testlib.sh
test_file_start
test_start "product" "" "data.txt"
OUTPUT=$(diff $RET -<<EOF
1.4058518817922252e+14
EOF)
assert_empty $OUTPUT
### TEST: csv vertical input
#setup data for next test
#DATA="1,2,3,4\n5,6,7,8\n9,10,11,12\n13,14,15,16"
#TEST_FILE="$(pwd)/test/resources/test_m... |
39edf45a20a90c8c760adfd2649516424f9ae902 | 1,395 | #! /usr/bin/env bash
if [ ! -d data/local/dict ]; then
mkdir -p data/local/dict
fi
# After applying the farsi_preprocessing script the dictionary needs a few beauty operations
# namingly. removing the EOS and spoken noise tokens, removing all double spaces, and spaces at the end of a line
#cp /group/project/summa/sv... |
667c7c557cd5e5ca1a14349cedb5c27ff7e1aa90 | 200 | #!/bin/sh
set -eux
# No args.
# Example usage: sh update.sh
# UPDATE
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo snap refresh
|
714559c3b0cf3b462acc717e2e5461101cfa30e0 | 1,397 | #!/bin/bash
source params.sh
OUTDIR=${BASEOUTDIR}/locus_stats
# Get HWE for each locus
for chrom in $(seq ${startchrom} ${endchrom})
do
VCFFILE=/storage/s1saini/hipstr_genomewide/chr${chrom}/hipstr_calls_${chrom}.vcf.gz
/home/mgymrek/workspace/mgymrek-utils/vcf_hwe.py \
--vcf ${VCFFILE} \
--samples ${PARENT... |
4c3ff7b6a42dc21360f067b88aa415eda2ddccef | 384 | #!/bin/bash
# Authors : Sheldon Ray
# Date: 1/30/2019
#Problem 1 Code:
#Make sure to document how you are solving each problem!
echo "Please enter a regular expression along with a text file name"
read regularEx
read fileName
grep -n $regularEx $fileName * < command_results.txt
grep -n '@geocities.com' $fileName * < e... |
f46356363db409d70b8b885991dfff1c927bc6c8 | 245 | cd client
grunt build --force
git checkout gh-pages
cd ..
foreach i (*) if [ $i != "client" ]; then rm -rf $i; fi; end;
mv -f client/dist/* ./
git add .
git commit -am 'update dist'
git push origin gh-pages
git checkout master
rm -rf components
|
8937bc47572660cf3a3933965875646ea512349b | 435 | #!/bin/sh
touch .git/hooks/pre-commit
echo "#!/bin/sh" > .git/hooks/pre-commit
echo >> .git/hooks/pre-commit
echo "chmod 777 src/*.ipynb" >> .git/hooks/pre-commit # requires root user
echo >> .git/hooks/pre-commit
echo "jupyter nbconvert --ClearOutputPreprocessor.enabled=True --inplace src/*.ipynb" >> .git/hooks/pre-c... |
1b198838f9eae33447f1aa3328d8af51396729ea | 86 | #!/usr/bin/env bash
find . -name "Mirafile" | xargs -I {} mira -f {} provision clean
|
d001f6c02425037c0ae350722e26e97edbd4383c | 51 | #!/bin/sh
submit cmps112-wm.f15 asg4 pmake README
|
a65567d6fb685785a56aa2768e7b9cd360571435 | 551 | folder_prefix="/home/bano/my_media/nemesis/vertical/"$scan_folder"/"
in_file=$folder_prefix"http/out_tcp/out.log"
in_file_tcp_synack=$folder_prefix"http/out_tcp/out_srcIP_synack.set"
in_file_tcp_rst=$folder_prefix"http/out_tcp/out_srcIP_rst.set"
out_file=$folder_prefix"http/out_tcp/out_srcIP_synackRst.set"
log_file=$... |
a4895e3cfe03c1d56dfb657a3f6c38725e19b805 | 339 | #!/bin/sh
TESTIP=$1
#check if symlink exists
if [ "$1" = "" ]; then
echo "Test TCP port required"
exit 1
fi
TESTIP=$(dig +short myip.opendns.com @resolver1.opendns.com)
#nc -w 1 $TESTIP $1
nc -n -z -w 1 $TESTIP $1 > /dev/null
if [ $? -eq 0 ]; then
#Succes
echo "1"
echo "1"
else
#No succes
echo "0"... |
a35d2ee8d267b3bdcf7ad6a271a6668d9744f072 | 280 | while getopts 'c:f:n:' opt
do
case $opt in
c) COL=$OPTARG ;;
f) FILE_PATH=$OPTARG ;;
n) N_ROWS=$OPTARG ;;
esac
done
cut -d ',' -f $COL $FILE_PATH | head -n 1
cut -d ',' -f $COL $FILE_PATH | tail -n +2 | sort | uniq -c | sort -nr | head -n $N_ROWS |
88c1ccbc4aef1321d9879d1f15e0eb96db0b6598 | 1,027 | sh /var/tmp/education/ACTaaS/practices/P4/Face/unittests/test_exercise5.sh 1 4 5 0 # Sum
if [ $? -eq 1 ]
then
exit 1
fi
sh /var/tmp/education/ACTaaS/practices/P4/Face/unittests/test_exercise5.sh 2 4 5 0 # Sub
if [ $? -eq 1 ]
then
exit 1
fi
sh /var/tmp/education/ACTaaS/practices/P4/Face/unittests/test_exercise5.sh... |
e31f0f70bb91d0584eac187a4ec29f51a4b34458 | 36 | #!/usr/bin/bash
node ../../check.js |
59a4ba05e41ac3165bb84ed469ee15ac3263d33b | 411 | #./cmm2_resize in_1920x1080.yuv out_1920x1080.yuv 1920 1080 1920 1080
#./cmm2_resize in_1920x1080.yuv out_1920x1080.yuv 1920 1080 1920 1080
#gdb --args ./cmm2_resize in_128x16.yuv out_128x16.yuv 128 16 128 16
./cmm2_resize in_128x16.yuv out_128x16.yuv 128 16 128 16
diff in_128x16.yuv out_128x16.yuv
hexdump -C ./in_12... |
3bcf18ef9333725d83ba5b34fd47f83f917f457e | 3,045 | #!/bin/bash
set -o nounset
set -o errexit
#set -x
install_DockerCompose_func()
{
# refer to https://docs.docker.com/compose/install/#install-compose
sudo curl -L https://github.com/docker/compose/releases/download/1.23.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x ... |
85f7fb224921b2c07d6c7870c45f4a33701a9c7a | 91 | #!/bin/sh
sh -e /etc/init.d/xvfb start
export DISPLAY=:99.0
export TZ=America/Chicago
date
|
727535dc0b1a55d34ca4b6739006beca7a953ab9 | 690 | #!/bin/bash
#sh a.sh $1 $2
is_nu(){
n=`echo $1 | sed 's/[0-9]//g'`
if [ -n "$n" ];then
echo "must zhengzhengshu."
exit
fi
}
if [ $# -ne 2 ];then
echo "Please input two arguments."
exit
else
is_nu $1
is_nu $2
fi
big(){
if [ $1 -gt $2 ];then
echo "$1"
else
echo "$2"
fi
}
small(){
... |
08edd520724e9398478107ed8c8225c761b4fdf6 | 174 | #!/bin/bash
source config
lSpeed=$1
rSpeed=$2
echo $lSpeed>$motor0/speed_sp
echo $rSpeed>$motor1/speed_sp
echo run-forever>$motor0/command
echo run-forever>$motor1/command
|
f613d467b2d4d4aa68ec83c29f48f62d968e53b6 | 88 | export SPARK_HOME=/home/ubuntu/spark-2.4.0-bin-hadoop2.7
export PYSPARK_PYTHON=python3
|
e36251bbd0d09ab01a82447f7c6b9beb8c9a2c45 | 31 | pig -x local count.pig > output |
7a6a240a60cf16a342114a82734d67249b523a4b | 376 | #!/bin/bash
echo "Remember to uncomment the proper autocrlf option in this script"
git config --global user.name "Enrique Ramirez"
git config --global user.email enriquein@gmail.com
git config --global color.ui auto
#on unix boxes
#git config --global core.autocrlf input
#on windows boxes
#git config --global core.auto... |
5d5060dc498ab5a60fd0f1936015334427be2839 | 251 | #back up feeds
#mysqldump -hhaiyangxu.cyhw0vc2x53y.ap-southeast-1.rds.amazonaws.com -uhaiyangxu -phaiyangxu insights feeds>feeds.sql
#import
mysql -hhaiyangxu.cyhw0vc2x53y.ap-southeast-1.rds.amazonaws.com -uhaiyangxu -phaiyangxu insights < feeds.sql |
8e2d7ec06f4043bd6c054d2fd04dcc7274889f5e | 229 | #!/bin/sh
npm run build-dev
ssh mofa.lemontv.me "rm -rf /services/websites/*"
scp mofaweb.tgz mofa.lemontv.me:
ssh mofa.lemontv.me "tar xzvf mofaweb.tgz -C /services/websites/"
ssh mofa.lemontv.me "rm mofaweb.tgz"
rm mofaweb.tgz
|
687d5e682ece2992ebd6a75ef11df2f671739805 | 92 | php bin/console fos:js-routing:dump --format=json --target=assets/static/fos_js_routes.json
|
f2e5ecab3010d20afe3970cd7f7c996072f05335 | 1,551 | #!/usr/bin/env bash
MANAGED="/c/Program Files (x86)/Steam/steamapps/common/Oxenfree/Oxenfree_Data/Managed/"
SYSTEM="$MANAGED/System.Core.dll"
MONO35=./Libraries/Mono/lib/mono/3.5-api/Microsoft.Build.Engine.dll,./Libraries/Mono/lib/mono/3.5-api/Microsoft.Build.Framework.dll,./Libraries/Mono/lib/mono/3.5-api/Microsoft.Bu... |
a630b5fb1bf5013782f05a5c1804743fb74b41d6 | 1,560 | #! /bin/bash -e
source "$RS_ATTACH_DIR/rs_distro.sh"
if [ "$RS_DISTRO" = 'atomichost' ]; then
echo 'Red Hat Enterprise Linux Atomic Host not yet supported, but will exit gracefully.'
exit 0
fi
# PIP is in /usr/local/bin
export PATH=$PATH:/usr/local/bin
if ! type aws >/dev/null 2>&1; then
if ! type pip >/dev/n... |
8f5c69b5dfc1ed684dc8a3477e567007530679cf | 1,735 | #!/bin/bash
usr="d2mei"
pw="01305179"
sqlinfo="$usr/$pw@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=oracle.scs.ryerson.ca)(Port=1521))(CONNECT_DATA=(SID=orcl)))"
echo "*************************************************"
echo "* CPS510 - Section 3 *"
echo "* Ryerson University ... |
f15c81b2acaab91b6a5a72f8897686043ed2c104 | 2,826 | # TODO: combine the common parts of bash_profile.linux and bash_profile.mac and only have the small differences in each
#echo sourcing .bash_profile
[[ -f /etc/profile ]] && . /etc/profile
[[ -f ~/.aws.sh ]] && . ~/.aws.sh
export EDITOR="/usr/bin/vim"
export HISTFILESIZE=1048576
export LS_COLORS='no=00:fi=00:di=00;32:... |
d5324a82427a82f12ee7661dd94ad7c8a6398ace | 35 | #!/bin/sh
echo "Location: $1"
echo
|
a56589d25e54ef1a7f0a7ce371345e127e4037e8 | 742 | #!/bin/bash
# Remove existing downloads and binaries so we can start from scratch.
rm google-chrome-stable_current_amd64.deb
rm chromedriver_linux64.zip
rm -f driver/*
# Install Latest Chrome.
set -ex
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stabl... |
e5adb1b959ec30e5e0a59976e7aed98a217cfd01 | 103 | #!/bin/bash
cd /home/ec2-user/trustpoolapp/trust-pool-app
sudo chmod 777 .
npm install && npm run build |
b1412589216bb2347b265c31330335eee95d078b | 2,610 | #!/bin/bash
####### Shell script by Brett Peters #######
####### - asylum119@hotmail.com #######
####### #######
############# #############
########### ###########
######### ... |
ee853627f6b839ab7fdd8ab3d9590ffb2fff2958 | 195 | #!/bin/bash
sudo tshark -i bluetooth0 -Y 'btcommon.eir_ad.entry.device_name == "Bluefruit52"' -T fields -e frame.time -e bthci_evt.bd_addr -e btcommon.eir_ad.entry.device_name -e bthci_evt.rssi
|
34532baeefe54c8691b37c36d5cfd6fb1918807c | 672 | #!/bin/sh
########################################
# Post setup script.
# Run after puppet is done provisioning.
#
# MySQL set up:
########################################
SQL_DIR="/vagrant/sql"
echo "Running post setup script"
########################################
# Create the stats table:
# - stats_table.sql
#... |
8d271fb8d3366e0a38a2df1b877bac835e78dad1 | 736 | #!/bin/ksh
# backup_archivelog.sh
# Purpose : Do an incremental rman backup of archivelogs of oracle databases on server.
# call scripts developped by X2P Oracle DBA
# Version 0.1 15 Nov 2011 By J. Alarcon <julien.alarcon@x2p.fr>:
# * Initial version
# Version 0.2 26 Nov 2011 By S. Ouellet <simon@x2p.fr>:
# * API int... |
46ac0e3587bc095bcf784f43b1f6f0fabce94645 | 302 | #! /bin/bash
echo "Running inside our script"
mkdir workspace
cd workspace
wget http://10.10.4.124:8080/jdk-7u9-linux-x64.rpm
sudo rpm -iv jdk-7u9-linux-x64.rpm
wget http://10.10.4.124:8080/apache-tomcat-7.0.32.tar.gz
tar -xvzf apache-tomcat-7.0.32.tar.gz
./apache-tomcat-7.0.32/bin/startup.sh
|
59cb338d6dd15a198133c6b940d3f84f82bfceef | 206 | #!/bin/bash -l
#$ -S /bin/bash
#$ -N epi_job408
#$ -V
#$ -cwd
. /etc/profile.d/modules.sh
module load anaconda/5.2.0
source activate condaR403
R -f batch_Rt_by_county.R --args 408 408 1 4/1/2020 10/25/2020
|
52645dbabc3071b3d701bea7b1ccb9e5ffbc3cb9 | 1,230 | #!/bin/bash
# install Chromium, Tor Browser
sudo pacman -S chromium firefox
gpg --keyserver pool.sks-keyservers.net --recv-keys EB774491D9FF06E2
yay -S tor-browser-en
# install Firefox with Tridactyl
sudo pacman -S firefox firefox-tridactyl
curl -fsSl https://raw.githubusercontent.com/tridactyl/tridactyl/master/nativ... |
4289db3372bca07d6df39b3c664517ef073c1d7b | 2,967 | #!/bin/bash
#-------------------------------------------------------------------------------
#
# bootstrap.sh
#
#-------------------------------------------------------------------------------
# Help
if [ -z "$HELP" ]
then
export HELP="
This script bootstraps a machine with all of the components (packages and
configu... |
4089f87f4c4c96a6ca11c4b9ab712777a4f69ed9 | 411 | #!/bin/bash
TIME="10"
URL="https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage"
TEXT="Deploy status: $1%0A%0AProject:+$CI_PROJECT_NAME%0AURL:+$CI_PROJECT_URL/pipelines/$CI_PIPELINE_ID/%0ABranch:+$CI_COMMIT_REF_SLUG%0ACommit message:+ $CI_COMMIT_MESSAGE%0AUser name:+$GITLAB_USER_NAME%0ADeploy:+$Deploy"
curl -s... |
a50bea52ccbf0d4fdaa1af5b4394c113ff7d88a9 | 682 | #!/bin/bash
RUN_DIR=/var/vcap/sys/run/system-metrics-server
LOG_DIR=/var/vcap/sys/log/system-metrics-server
PIDFILE=${RUN_DIR}/system-metrics-server.pid
JOB_DIR=/var/vcap/jobs/system-metrics-server
CONFIG_DIR=${JOB_DIR}/config
CERT_DIR=${JOB_DIR}/config/certs
PACKAGE_DIR=/var/vcap/packages/system-metrics-server
case... |
51e0a229a2ff7ad72825b997fb917abc8ea0faaa | 435 | #!/usr/bin/env bash
# 从一个关键词列表中过滤出指定文件的数据
#
# e.g.:
# 过滤包含的数据
# grep-by-dict.sh pack_games_data_id.txt disable_english.csv
#
# 过滤出没有包含数据
# grep-by-dict.sh -v pack_games_data_id.txt disable_english.csv
param="-E"
dict=$1
if [[ "$dict" = "-v" ]]; then
param="-Ev"
shift
dict=$1
fi
shift
file=$*
g... |
1ff6b1a58e1e5d2178a3d892488f2716adc81999 | 338 | #/bin/bash -x
apt-get update && apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python && wget https://prdownloads.sourceforge.net/webadmin/webmin_1.900_all.deb && chmo 777 webmin_1.900_all.deb && dpkg --install -y webmin_1.900_all.deb && rf -rm webmi... |
d5339b5135d8278c5df65775fd680de56f000466 | 970 | APP_NAME="記録と乗り越え"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_LOCALE=ja
APP_URL=http://localhost:8000
API_URL=http://localhost:8000/api
CLIENT_URL=http://localhost:3000
WP_URL=http://localhost/wp
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=
BRO... |
673a8fddab62cbdab468ee863140d9049f74e51d | 392 | #!/bin/bash
virtualenv -p python3 $WORKSPACE/venv-tox
source $WORKSPACE/venv-tox/bin/activate
pip3 install --upgrade pip
pip3 install --no-use-pep517 -r requirements.txt
ls
wget -O $WORKSPACE/ice_validator/heat_requirements.json "https://nexus.onap.org/content/sites/raw/org.onap.vnfrqts.requirements/master/needs.json"... |
a9b4609756c970afbb152ac00f1cfa9fe64341f4 | 1,491 | #!/bin/sh
# Autostart
for i in polybar sxhkd unclutter numlockx
do
killall $i
done
#autorandr --change
bspc monitor -d 1 2 3 4 5 6 7 8 9 0
[ "$(xrandr | grep 'DP1-3')" ] && xrandr --output eDP1 --off --output DP1-3 --primary --mode 2560x1440
# applications/commands on start
setxkbmap -option caps:escape
dunst &
... |
68842d7b017285447e05a1c272cd5255b8e6d517 | 2,826 | #!/usr/bin/env sh
set -e
set -u
find_replace () {
git grep --cached -Il '' | xargs sed -i.sedbak -e "$1"
find . -name "*.sedbak" -exec rm {} \;
}
sed_insert () {
sed -i.sedbak -e "$2\\"$'\n'"$3"$'\n' $1
rm $1.sedbak
}
sed_delete () {
sed -i.sedbak -e "$2" $1
rm $1.sedbak
}
check_env () {
test -d .git... |
c02470fece28a2f0446f18933cf3dff539378a7d | 532 | #!/usr/bin/env sh
ln -sf $HOME/.dotfiles/zshrc $HOME/.zshrc
ln -sf $HOME/.dotfiles/bashrc $HOME/.bashrc
ln -sf $HOME/.dotfiles/tmux/tmux.conf $HOME/.tmux.conf
ln -sf $HOME/.dotfiles/inputrc $HOME/.inputrc
ln -sf $HOME/.dotfiles/Xdefaults $HOME/.Xdefaults
ln -sf $HOME/.dotfiles/vimrc $HOME/.vimrc
ln -sf $HOME/.dotfile... |
8a237bfe40f876317868da94477704c2a7ffe410 | 46 | geth --datadir "./data" --testnet account new |
e87cfceb443c3573cc7e992e868f899bf7802a3f | 2,166 | #!/bin/bash
#### JOB NAME
#SBATCH -J <jobName>
#### RESSOURCES: Here 10 nodes (i.e. 240 cores) (each node as 24 cores)
#SBATCH --nodes=<nodes>
#SBATCH --ntasks=<tasks>
#SBATCH --ntasks-per-node=24
#SBATCH --cpus-per-task=1
#SBATCH --constraint=BDW28
##SBATCH --constraint=HSW24
#SBATCH --exclusive
#### TIME
#SBATCH... |
8bd3c6702b7ff8eaa25d986b5e2534ac0c23672f | 611 | #!/bin/bash
input_dir="/home/data/OpenCL"
ref_dir="${input_dir}/ReferenceOutput"
test_file="./cl_hist"
# The program will generate the output file
out_file="0556519.out"
for testfile in ${input_dir}/input-*; do
filename=$(basename "$testfile")
ref_file=${filename/input/output}
# Link the input file
l... |
97646910a6561ce2d157f75c7b8dcdf6ae18119f | 77 | #!/bin/bash
export AMBIENTE=produccion
export PUERTO_WIDGET=3001
npm start |
4538039aba93893a5371fdfe02e58c44574bb57b | 3,103 | # !/bin/bash
# Copyright 2020 Google LLC
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... |
d7c0b9fa9c0a03dd9ddd0f68767c58ed574426d3 | 569 | #!/bin/bash
#SBATCH --job-name=Pop9_18100_submitBWA
#SBATCH --mem=3Gb
#SBATCH --mail-user=schaal.s@northeastern.edu
#SBATCH --mail-type=FAIL
#SBATCH --partition=lotterhos
#SBATCH --time=15:00:00
#SBATCH --nodes=1
#SBATCH --tasks-per-node=1
#SBATCH --output=BWA_Out/clustOut/Pop9_18100.%j.out
#SBATCH --error=BWA_Out/clus... |
14b2a254965e75a6b1ff48b00b65f7bcc7cb2d3f | 1,364 | cat << "EOF"
__..-----')
,.--._ .-'_..--...-'
'-"'. _/_ / ..--''""'-.
_.--""...:._:(_ ..:"::. \
.-' ..::--""_(##)#)"':. \ \) \ _|_ /
/_:-:'/ :__(##)##) ): ) '-./' '\.-'
" / | :' :/""\///) /:.' --( )--
/ :( :( :( (#//) " .-'\.___./'-.
... |
d928382a2ea2c478de1cc6340fd5a67449d57c1d | 76 | #!/usr/bin/env bash
bundle config set --local path '.bundle'
bundle install
|
f861f0710229e8c9c20ce490e5b2ed44bd5679cb | 628 | #!/bin/bash
fail_exit(){
echo "$1"
exit 1
}
git clone https://github.com/spdx/license-list-data.git --depth=1 || fail_exit "Failed to clone"
if [[ -e "licenses.spdx" ]]; then
rm -v licenses.spdx
fi
pushd license-list-data/text
for i in *.txt ; do
# Strip all whitespace from it due to many licen... |
010797b03b2f1bf18feb8255f53182b9fad391d9 | 1,035 | #!/usr/bin/env
# Author: Sean Maden
#
# Run IRFinder-S from a Docker image. Follow instructions in the GH repo
# to download the software and save its annotation files to the
# `annodpath` variable. With the docker image we use -r and -d flags
# to specify the local paths to the intron annotations references and the... |
768f3ec3fceffa945d589d98d9a05b1b8335d3d1 | 47 | #!/bin/bash
MUSIC_DIRECTORY="/home/user/music"
|
3976bcba0380c590846a0e84d73bd0389ab657d3 | 463 | #!/bin/bash
project="$1"
if [ ! "$project" == "accounts" ] && [ ! "$project" == "business" ] ; then
echo "Please pass a project to build: accounts business"
exit 1
fi
running=`ps -ef | grep org.apache.catalina.startup.Bootstra[p] | wc -l`
if [ ! $running == "0" ] ; then
echo "Tomcat is currently running..."
... |
cccc7954c675f96702bec2afdc113472d91d1a0d | 592 |
release=${1:-"milvs-chaos"}
milvus_mode=${2:-"cluster"}
ns=${3:-"chaos-testing"}
bash uninstall_milvus.sh ${release} ${ns}|| true
helm repo add milvus https://milvus-io.github.io/milvus-helm/
helm repo update
if [[ ${milvus_mode} == "cluster" ]];
then
helm install --wait --timeout 360s ${release} milvus/milvus -f... |
3bc3e238de3d9ab61406838e834ce0fc531ff007 | 284 | #! /bin/bash
dir=~/Recon/$1
echo $1 | ~/go/bin/shuffledns -w ~/go/bin/subdomains.txt -r ~/dnsvalidator/resolvers.txt -v -silent -o $1_brute;
mv $1_brute $dir/$1_brute;
cat $dir/$1_brute >> $dir/$1_unfilter_subdomains;
cat $dir/$1_unfilter_subdomains | sort -u > $dir/$1_subdmains;
|
dfe359343872f61d2e5fcca1ce21f1b0accc90b2 | 321 | #!/bin/sh
#
# semcproxy <host> <port>
#
# Proxies stdio requests through the http proxy @ SEMC, e g git
# Put it in your path and execute 'git config --global core.gitproxy semcproxy'
#
# 23059116 - Daniel Olsson
exec socat STDIO PROXY:proxy.global.sonyericsson.net:$1:$2,proxyport=8080,proxyauth=28850043:Beijing123
... |
10c272732fd6a18c8d83186e675e7b2b11c39bb1 | 154 | (
export PKG=react-dates;
npm info "$PKG" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g; s/ *//g' | xargs npm install --save "$PKG"
) |
d6e8da0a9b67a92ca60a504f9593ef2f26105854 | 78 | #!/bin/bash
export FLASK_APP=./REST_Controllers/index.py
flask run -h 0.0.0.0
|
d6e2f7a3728f7e4c2b4dfe95c4a40e61705a30ca | 1,493 | #!/bin/bash
cd ../edk2
. ../edk2/edksetup.sh
#build -b DEBUG -p i915ovmfPkg/i915ovmf.dsc || exit
build -b RELEASE -p i915ovmfPkg/i915ovmf.dsc || exit
cd ../i915_simple
cp ../edk2/Build/i915ovmf/RELEASE_GCC5/X64/i915ovmf.rom ./ || exit
#cp ../edk2/Build/i915ovmf/DEBUG_GCC5/X64/i915ovmf.rom ./ || exit
if [ -e /sys/bus/p... |
7afcd0f42a1ec228d4e651901a4a13b964e8fd2f | 153 | PORT = 3001
MONGODB_URI = mongodb+srv://rohit645:Eatsleepcode123@cluster0-rzyu1.mongodb.net/note-app?retryWrites=true&w=majority
NODE_ENV
SECRET = secret |
8fadf84dcc86df76036d89bfcb1d12b391237f84 | 45 | docker run -p:8888:8888 -d ijiajia/demo-node
|
857521b064f32201c3f4eecaa91a768f861e2421 | 292 | #!/bin/bash
# sh gen.sh 100x100 100
# sh gen.sh 400x400 400
# sh gen.sh 768x768 768
# sh gen.sh 1024x768 1024
dimensions=$1
outputDir=$2
for i in `seq 1 100`; do
`convert -size $dimensions -gravity center -background lightblue -fill black -pointsize 72 label:$i $outputDir/test$i.png`
done |
88a5885cac1ca784936df6567db2e7dd4c2f4ab9 | 2,110 | #!/bin/bash
echo "🍓 Installing Mac hacks..."
# source ~/install.sh
source ~/mac/default-settings.sh
HOMEWORLD=~/.dotfiles
echo "🎁 Your configuration word will be stored at ${HOMEWORLD}"
echo "🚀 Copying ${PWD}"
echo "👇 To ~/.dotfiles"
cp -rf ./Desktop/code/dotfiles ~/.dotfiles
echo "🔪 Backuping pervous setup... |
58749a71f0a80ef838c6a893aa7604bee978d73c | 1,188 | #!/bin/sh
ABSOLUTE_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${ABSOLUTE_PATH}/config/openshift.env"
echo -e "\033[32m[S]=============================================================================\033[0m"
echo -e "\033[46m@@@[S]_[YUM INSTALL CHRONY] ==> ${CHRONY_SERVER}\033[0m"
Asystemctl stop... |
d509a1d42def5f30493e258d12c18ffeb4cfe4da | 159 | #!/bin/sh
result=$(dscl . -read /Groups/com.apple.access_ssh | grep GroupMembership | cut -d ':' -f 2 | sed -e 's/^[ \t]*//')
echo "<result>$result</result>" |
2df92178dfd2c44225a4f62f20ffc62a6f6fa662 | 574 | docker-compose down
docker rm -f sb_docs_1
docker rm -f sb_jenkins-slave_1
docker rm -f sb_jenkins_1
docker rm -f sb_keycloak_1
docker rm -f sb_pgadmin4_1
docker rm -f sb_nexus_1
docker rm -f sb_ldap_1
docker rm -f sb_sonar_1
docker rm -f sb_portainer_1
docker rm -f sb_postgres_1
docker volume rm sb_arti... |
74d524259f727a9f64856e83396a68c50d6829ba | 946 | kits_ip() {
local ip="$1"
if [[ -z "$ip" ]]; then
ip=$(curl -s http://ip.3322.net)
echo "$ip"
fi
local res=$(curl -s "http://ip.taobao.com/service/getIpInfo.php?ip=$ip")
local ret=$?
[[ "$ret" -ne 0 ]] && echo "fetch ip info fail. curl retcode: $ret" && return 1
# echo $res
... |
d67e78ddca327822cdb1bc27af512d8f5e5445d0 | 10,809 | NUM_RUNS=100
RUN_WITH_1600='False'
#lsvm_and_regionlets_with_score_intervals
#####SETUP=$(qsub -q atlas -v num_particles=25,include_ignored_gt=False,include_dontcare_in_gt=False,use_regionlets_and_lsvm=True,sort_dets_on_intervals=True,RUN_IDX=-1,NUM_RUNS=$NUM_RUNS,PERIPHERAL=setup setup_rbpf_python_venv.sh)
#####for ... |
7ed11478f7c8277ef8e03ee499bd1fe5fc5f6ee2 | 283 | #!/usr/bin/env bash
sudo apt-get install libopencv-dev python-opencv
sudo apt-get install libgflags-dev
sudo apt-get install libgoodle-glog-dev
sudo apt-get install liblmdb-dev
sudo apt-get install python-numpy
sudo apt-get install python-sklearn
sudo apt-get install python-skimage
|
f5892649f028722f0d4e7bc087eeec6416ea7362 | 2,466 | #!/bin/bash
add_i2c_device()
{
local I2C_BUS=$1
local DEV_ADDR=$2
local DEVICE_COMP=$3
local I2C_BUS_DIR="/sys/bus/i2c/devices/i2c-$I2C_BUS"
local NEW_DEVIVE="$I2C_BUS_DIR/new_device"
echo "$DEVICE_COMP" "$DEV_ADDR" > "$NEW_DEVIVE"
}
delete_i2c_device()
{
local I2C_BUS=$1
local DEV_AD... |
390bafcf4b7de85f52348e3cbde9f14adfab0112 | 671 | #!/bin/bash
CONTAINER_NAME="ire-server"
LOGFILE_PATH="/app/iirs/ire.log"
LOGFILE_NAME="ire.log"
GRAPH_PATH="/app/iirs/tmp/attack_graph_received.json"
GRAPH_NAME="attack_graph_received.json"
function info_message () {
echo -e "\e[95m[*] $1\e[0m"
}
info_message "Copying the logfile from $CONTAINER_NAME"
sudo docke... |
26c445e64c860ad8efa09f73c8316f6f818ff2dd | 163 | #!/bin/bash
PATH=/usr/bin/*
for f in $PATH; do
if [ -x $f ]; then
echo "executable-->$f"
fi
if [ -h $f ]; then
echo "symbolic-->$f"
fi
done
|
5e2c7edf37bf8a9441e96070e9b23b84813d27e3 | 464 | #!/bin/bash
cat << CLOUD
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/html2/loose.dtd">
<HTML>
<HEAD>
<TITLE>
教授的信息
</TITLE>
</HEAD>
<BODY>
<TABLE>
CLOUD
awk 'BEGIN {FS=":"; OFS="</TD><TD>"} gsub(/^/, "<TR><TD>") gsub(/$/, "</TD></TR>") {print $1,$2,$3,$4}'
#awk 'BEG... |
d7d0054db45f492ef196685c67a21e2d164504e8 | 4,080 | #!/bin/bash
############################# cut chromosome for three files ################################
for i in {1..22}
do
chr_num=$i
output_prefix="NA12878_gold_pos_chr"
output_suffix=".vcf"
output_name=$output_prefix$i$output_suffix
cat /scail/u/xzhou15/CancerProj_10X/NA12878_GIAB_highconf_... |
566ae907e07acc3f44bd2166cbe9b703ebeee013 | 277 | #!/bin/bash
wget http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz
tar xf simple-examples.tgz
mkdir -p data
mv simple-examples/data/ptb.train.txt data
mv simple-examples/data/ptb.valid.txt data
mv simple-examples/data/ptb.test.txt data
rm -rf simple-examples{,.tgz}
|
05934be489a26d0cd4bb9404f5e5993133626ebc | 1,321 | debug () (
limit=${DEBUG:-0}
level=$1
shift
if [ $level -le $limit ]; then
echo "$@" >&2
fi
)
die() {
rc=$1
shift
echo "$@" >&2
exit $rc
}
Download() {
local target="$1"
shift
if ! ls $HOME/.downloads/${target}* 2>/dev/null; then
echo "Downloading $target"
debug 1 wget "$@"
# ... |
e0da149936a26b619970d53184394cf427a5318f | 349 | #!/bin/bash
# need to set obnchai and smnchai aliases before using them
shopt -s expand_aliases
source ~/.bash_profile
echo "Starting python OBN interface test"
echo "running chaiscript node..."
obnchai othernode.ons &
echo "run python node..."
python extnode.py &
echo "running simulation manager node..."
smnchai tes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.