blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
618530c7ee45083905d7467ed44c8aae51c1c62e
1,200
#Переходим в папку NE cd $ne_dir/10m_cultural #Импортируем урбанизированные территории ogr2ogr -a_srs EPSG:4326 -wrapdateline -clipsrc $adm_dir/adm2_country.shp -f "PostgreSQL" "$dbsettings" ne_10m_urban_areas.shp -nln "ne.urban" -nlt MULTIPOLYGON -overwrite -lco ENCODING=UTF-8 #Импортируем реки cd $ne_dir/10m_physic...
3029f858ecc71de9f23ebb449ee19fa400bd37aa
148
#!/usr/bin/env bash bash scripts/localization/dart_to_arb.sh python scripts/localization/sync_strings.py bash scripts/localization/arb_to_dart.sh
3f9008e6d63baf1b2ba250db7b62bb7f43f927c0
290
#!/bin/bash set -e sudo ip link add br74 type bridge sudo ip tuntap add dev tap74 mode tap user $(whoami) sudo ip tuntap add dev tap77 mode tap user $(whoami) sudo ip link set tap74 master br74 sudo ip link set tap77 master br74 sudo ip link set dev br74 up sudo ip link set dev tap74 up
6127dbc4ec672dbceef200b00a910e5c79437cf8
89
gfortran --version python make_gfortran.py -fc gfortran -sd -mc ../MODFLOW-NWT/src mfnwt
ac483a38367c3bae39072baaf62d38d7cfc31885
503
#!/usr/bin/env nix-shell #!nix-shell -p bash nix coreutils cabal-install cabal2nix nix-prefetch-git -i bash nix_file="ale.nix" nix_file_dir="build/nix" root_rel="../.." ale_root=$(dirname -- $(readlink -f -- "${BASH_SOURCE[0]}"))/../ mkdir -p "$ale_root/$nix_file_dir" pushd "$ale_root/$nix_file_dir" > /dev/null st...
a931fdee9288e24c8c1866c87d98b1f3eca55d65
80
./ashish < input > output g++ chefbm.cpp ./a.out < input > my vimdiff my output
290585c8ff88309466f0cad44280e7f929bdea5c
861
#!/bin/sh # # another custom backup script. # if test $# -lt 1 then echo "No destination defined. Usage: $0 DEST [PWDFILE]" >&2 exit 1 elif test $# -gt 2 then echo "Too many arguments. Usage: $0 DEST [PWDFILE]" >&2 exit 1 fi RSYNC_ARGS="\ --human-readable \ --progress \ --recursive \ -...
a855a135ee4ee6322f2b99b402884caeed9b1bef
7,362
#!/bin/bash # hooks/EXAMPLES/FVT-cleanup.sh 3.1.269.2028 2020-12-04T21:51:40.790457-06:00 (CST) https://github.com/BradleyA/git-TEST-commit-automation.git master uadmin five-rpi3b.cptx86.com 3.1.268 # hooks/EXAMPLES/FVT-cleanup.sh hooks/EXAMPLES/FVT-option-add-001 hooks/EXAMPLES/FVT-option-all-001 hooks/EX...
676a4312b3d48e40bad57f092e2459c03f447771
140
./a.out list mode test_input.txt output.txt ./a.out list sort random 100000 5 output.txt ./a.out list remove_dups random 10000 5 output.txt
791b1500f36aafa76d6d5744b856611ef5555d48
224
#!/bin/sh export OS_USER=vagrant export OS_HOST_IP=172.68.5.10 # run script bash /vagrant/devstack.sh "$1" #set environment variables for kuryr su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bash_profile"
8341bcc2780e59bfdfe5ec2cf14f5ecd266a59cc
344
../build/bin/mlton -const 'MLton.debug true' -verbose 2 -keep core-ml -keep xml -keep sxml -keep ssa -keep ssa2 -keep rssa -keep machine -keep g -codegen c -debug true testgcbench.sml #../build/bin/mlton -verbose 2 -keep core-ml -keep xml -keep sxml -keep ssa -keep ssa2 -keep rssa -keep machine -keep g -codegen c -debu...
f171d0f6e048d3942b933734784a6547ff0ebe5b
1,286
#!/bin/bash # exit when any command fails set -e git fetch origin main gitBranches="$(git branch -r)" echo "git branches: $gitBranches" currentBranch="$(git rev-parse --abbrev-ref HEAD)" echo "current branch: $currentBranch" # files that were changed between current branch and main files="$(git diff --name-only $c...
0a77ca0dd115351a7c5484c0b1a0b1111aec8ec7
373
#!/bin/bash # turn_pwr_on - turns power on to all nodes NUMNODES=${CHAT_NODES} alert_led on GPID=22 VAL=1 PORT=1 STATE=on DELAY=2 echo "Switching on power to cluster nodes" until [ $PORT -gt "$NUMNODES" ] do echo "turn ${STATE} P${PORT} ${GPID}" gpio write ${GPID} ${VAL} ((GPID++)) sleep ${DELAY} ((...
35926fc5066ff0f85ce340553a5b3160af4537ee
97
#!/bin/bash if [[ ! $1 =~ ^\/[a-z]+\/$ ]]; then echo "Not matched \$1" else echo "Matched" fi
a7015f385c2aa031e4fe54d21d78bd3422140542
363
#!/bin/bash # # Usage: script/debug-run set -e docker kill capistrano > /dev/null 2>&1 || true docker rm capistrano > /dev/null 2>&1 || true docker run \ --rm \ -it \ --name capistrano \ -v $PWD/capistrano:/capistrano \ -v $PWD/capistrano/.ssh/insecure_private_key:/capistrano/.ssh/insecure_private_key \ ...
95dbf7ec65913d17b597a6cce1a0cd4b80cb3791
443
#!/bin/bash rm -fr practica2 mkdir practica2 # entrem a la practica 2 cd practica2 # creem els 5 directoris demanats for i in {1..5} do mkdir dir_$i done # crear 10 directoris dins de dir_1 for i in {1..10} do mkdir dir_1/carpeta_$i done echo "f" > foo1.txt echo "f" > foo2.txt echo "f" > foo.c echo "f" > README ...
ced34ce818883feeedc93dac6c1ca70d209935b9
308
#!/bin/bash python3 Exercise_3.py echo ".............................................." python3 Exercise_4.py python3 helloworld.py cd ../../../../.. cd home cd sarth pytest --html=index.html test.py echo "..........................GENERATING REPORT>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
8e23bcdba95e664065dcad7f2965412c21190a1a
1,559
#!/usr/bin/env bash # START CONFIGURATION export CONTECO_DC_GLOBAL_PACKAGE_CONTECO="module.ekg" export CONTECO_DC_GLOBAL_PACKAGE_TAG="7.9.2" export CONTECO_DC_GLOBAL_STACKNAMES="ekg,ekg_rest_elasticsearch,ekg_ui_grafana,ekg_ui_kibana" export CONTECO_DC_GLOBAL_BOOTSTACKS="ekg" export CONTECO_DC_GLOBAL_RUNSTACKS="ekg_re...
6f0750568908645b1bd94697107059d51b394be6
535
#To Compile: CODE_PATH="MapConstruction/" #path to the MapConstruction folder. cd $CODE_PATH javac -d bin/ src/mapconstruction2/*.java #To Run: INPUT_PATH="" #path to the folder that constains all input tracks OUTPUT_PATH="" #path to the folder where output will be written EPS=150.0 #epsilon in meters HAS_ALTITUDE=fal...
2fea5f75546cc7bd39f2a8fe11b0b5c32a7fe3ff
248
#!/bin/bash #Use medcon to convert a nifti file to dicom filename=$1 f=$(basename "$filename" | cut -d. -f1) mkdir "$f"_dcm ln -s $PWD/$filename $PWD/"$f"_dcm/. cd "$f"_dcm medcon -f $filename -split3d -c dicom #-o $PWD/"$f"_dcm/ cd ..
5b5945f70a2759d206cf5ab6a227368c6f709a42
482
#!/bin/sh hdmi1_enabled () { xrandr -q | grep HDMI1 | grep -qv disconnected } hdmi1_connect () { xrandr --output eDP1 --auto --left-of HDMI1 --output HDMI1 --auto } hdmi1_disconnect () { xrandr --output eDP1 --auto --output HDMI1 --off } hdmi1_state=-1 while sleep 2.5 do if hdmi1_enabled then if [ "$h...
a53eef78612a8b4c460057eed881e4b30568fde8
1,507
#!/bin/sh # $Owl: Owl/packages/xinetd/xinetd.init,v 1.8 2005/11/16 13:32:46 solar Exp $ # # chkconfig: 345 56 50 # description: \ # xinetd is a powerful replacement for inetd. xinetd has access \ # control machanisms, extensive logging capabilities, the ability \ # to make services available based on time, and can pla...
bff3fa7f286ca1d59e7992d502ae5908cb28dcea
6,164
#!/bin/bash #----------------------------------------------------------------------------------------------- # Import catissue ontology and catissue pdo's into i2b2. # # Mandatory: the following environment variables must be set # I2B2_ADMIN_PROCS_HOME # Optional : the I2B2_ADMIN_PROCS_WORKSPACE env...
c8b3275be4d1f816d5e336c2791d1568ebae1d07
2,239
#!/bin/bash #e2fsprogs gdb hifat mtd-utils parted reg_tool udev #1 . env.sh if [ ! -d out/board_tools/e2fsprogs ] || \ [ ! -d out/board_tools/hifat ] || \ [ ! -d out/board_tools/mtd-utils ] || \ [ ! -d out/board_tools/parted ] || \ [ ! -d out/board_tools/reg_tool ] || \ [ ! -d out/board_tools/udev ]; then e...
05d5781f7cc339a69ae466e6190e432533eb710e
408
#!/bin/bash #SBATCH --nodes=1 #SBATCH --job-name=wget_DELP #SBATCH --output=wget_DELP.out #SBATCH --error=wget_DELP.err #SBATCH --time=20:00:00 #SBATCH --mem=10GB #SBATCH --ntasks-per-node=10 #SBATCH --cpus-per-task=1 #SBATCH --mail-type=END #SBATCH --mail-user=cm5515@nyu.edu cd /scratch/cm5515/storm_20050813/DELP w...
29e9a9b03961c69a8cdfc669a13f343c5b848367
211
# dsc:Set default audio output device. # env:$DEFAULT_AUDIO_OUTPUT device name function set-default-audio-output { is-defined $DEFAULT_AUDIO_OUTPUT || return 1 pacmd set-default-sink $DEFAULT_AUDIO_OUTPUT }
61b472b08a1ca0afe465456bcff7267294fb2b9a
798
#!/bin/bash ##Autor: vijay Rajah ##me@rvijay.in env() { #declare -a CMDS CMDS='uptime uname -a date w ps aux df -h ifconfig -a iptables -L --line-numbers -v -n iptables -L --line-numbers -v -n -t nat pstree -pau ntpdate -q -u pool.ntp.org cat /proc/user_beancounters lsof' DT=`date +%Y-%m-%d_%Hh%Mm%Ss` PATH=...
b5ea2e772967dfafc433031104cb9428a704e223
156
#!/bin/sh # create directories mkdir -p run/influxdb/ # necessary roots chmod 777 -R /var/lib/influxdb/ # InfluxDB installation && initialization influxd
66dfc8907c83475f5148dcb2e7f53f8da31a0f05
1,815
#!/bin/bash [ ! -n "$DEBUG" ] || set -x set -u # the internet says this is better than 'set -e' function onerr { echo 'Cleaning up after error...' popd exit -1 } trap onerr ERR pushd `pwd` > /dev/null 2>&1 cd "$(dirname $0)" function check_for_deps () { for dep in pidof; do if ! command -v "${de...
ae2236360731b7522cb33691fd33e6cddb87960c
4,318
#!/bin/sh rm -f /tmp/ram/geo/geo_data_id.dt if [ -z $1 ] then exit 0 fi GEO_ip=$1 if [ `echo $GEO_ip | grep '\.' | wc -l` -eq 0 ] then exit 0 fi otl=1 time_live=0 if [ ! -e /tmp/ram/geo ] then mkdir /tmp/ram/geo fi geo_data_id=`echo "use proxy; SELECT id from geo where ip='$GEO_ip' order by t limit 1" ...
831b4c9cfbe4db0557e0e3566d57757641c21129
45
for i in {1..10000}; do python show.py; done
3e253528ef3df3947c0b30c3d2ad6cea80734297
294
#!/bin/bash #echo Removing contents of directory cgi-bin #svn rm --force ../cgi-bin/* echo Running generateCGIScripts python generateCGIScripts.py svn add ../cgi-bin/* #echo Committing changes to svn #(cd ../cgi-bin ; svn commit -m "Removing and regenerating directory cgi-bin") echo Done
ef3175c2befafc192f8a3c0fd633ea289f8d3dfa
101
# Required: npm i -g aglio # Compile API Blueprint into HTML and serve aglio -i BOOKS.apib -s -p 3030
f84a45ce014344e6c10bb3402d9d03e96c3a0f2b
89
mkdir -p /data/db touch ./logs/mongod.log nohup mongod >> ./logs/mongod.log 2>&1 &
653e955a2d1b2b23f17692a93a3e2db886e27d17
109
HDD_MEASUREMENTS_API_PORT=8888 ROUTE_PATH=/measurements ROUTE_PREFIX=/api/v1.0 HDD_MEASUREMENTS_API_HOSTNAME=
dc002e1a9d90e546a24a075e0ad9c92129221232
657
#!/bin/bash # Parse RTC date into unixtime rtcdate=$(hwclock -l) # required to format the date string on busybox date, not requir unix_rtcdate=$(date -D "%c" -d "${rtcdate}" "+%s") # With coreutils date the conversion should be # unix_rtcdate=$(date -d "${rtcdate}" "+%s") # Get current system unixtime unix_systemdate...
89b5a6837731d0ad57f5cd92e8546e6a6aa244e6
816
#!/usr/bin/env bash ############################################################################### ## ## ## Purpose of script: Remove rRNA from RNAseq raw reads using Bowtie2 and ## ## the SILVA database ...
5c275633296dab02d861a607e103df3f06f0875f
893
APP_NAME="Laravel Starter" APP_ENV=local APP_KEY= APP_DEBUG=true APP_PORT=9000 APP_URL="http://localhost:${APP_PORT}" LOG_CHANNEL=daily APP_LOG=daily DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 DB_DATABASE=database DB_USERNAME=database_user DB_PASSWORD=password BROADCAST_DRIVER=log CACHE_DRIVER=redis QUEUE_CONNECTIO...
ce94a655a39d30bced63fa554223a723f2ea879e
327
#!/bin/bash set -e -x # ensure gosub is installed (this will recompile it only if necessary) go get github.com/vito/gosub go install github.com/vito/gosub { gosub list -app bpm/... gosub list -test bpm/... gosub list -app bpm-acceptance/... gosub list -test bpm-acceptance/... } | grep -v fakes | xargs gosu...
d66816cb287efd5ec95f8eed5c97d3b7fc07e819
1,689
#!/bin/bash # check if the garage door is open. # enter a crontab: */5 * * * * sudo /usr/local/bin/garage.sh # If open send an alert and write to syslog up=0 mobile='your-number@txt.att.net' sensor=5 gpio -g mode $sensor down sleep 1 # get current time currTime=`date +%k%M` # get whether or not on vacation # I get ...
7893b851c859fff443f295820330389fc864b9e7
324
#!/usr/bin/env bash c="_text" i="PAKDD-3year" j="./Text/" echo "Opening pdf folder: " $i echo "pdf_text folder:Text" mkdir -p Text for k in ./$i/*.pdf do pdfname="$(echo $k | rev | cut -d "/" -f 1 | rev)" echo $j$pdfname$c python pdf2txt.py -o "$j$pdfname$c" -t text "$k" echo "Converting :" $pdfname d...
b6783b58a7d6a0972e71962114eca1c0027935ed
4,639
tar -xzf bin.tgz export PATH=$HOME/bin:$PATH:./bin #query1=/vaughn/sample.fq #databaseFasta=/shared/iplantcollaborative/genomeservices/builds/0.1/Arabidopsis_thaliana/Col-0_thale_cress/10/de_support/genome.fas # SPLIT_COUNT / 4 = number of records per BWA job SPLIT_COUNT=16000000 OUTPUT_SAM=bwa_output.sam # Vars pa...
4830c6da915fd7da1e71bb5af29aa38582817d97
507
#!/bin/bash # # myip - Display ip of this VM # # Author: Lord Kator <lordkator@swgemu.com> # # Created: Sat Apr 27 22:53:44 UTC 2013 # # ip_address=$(/sbin/ifconfig eth0 | sed -n '/inet addr:/s/.*addr:\([^ ]*\) .*/\1/p') if [ ! -n "$ip_address" ]; then echo "** Failed to determine ip address!? **" fi cd ~/run port=...
5f92837eb15d28b3b2b71091b2d2ab6a7386ef38
76
#! /usr/bin/bash go build -o brainfuck *.go && cp brainfuck ~/bin/brainfuck
313586323f6b99d72a7dbce91e27ade74f4ed895
1,055
maintainer="nox" pkgname="libnfc" version=1.8.0 revision=1 short_desc="Low level NFC SDK and Programmers API" makedepends+=" libusb-devel" makedepends+=" libusb-compat-devel" hostmakedepends="pkg-config" license="GPL-3" homepage="http://nfc-tools.org/" distfiles="https://github.com/nfc-tools/libnfc/archive/$pkgname-$ve...
f4c8d03702b90cbe6069e754f705a0e00b58cde4
416
#!/bin/sh PATH=$PATH:/bin:/usr/local/bin QUOTES='http://edit.sunfox.org/itquotes/txt' COWS=(bong bunny cheese cower daemon default flaming-sheep head-in kitty meow moose mutilated satanic sheep skeleton sodomized three-eyes tux udder vader www dragon-and-cow) random_cow=${COWS[$(expr $RANDOM % ${#COWS[@]})]} ruby -e "r...
5734d4f5ce13e0cc3a2735ad6ed5a14bbe5d9d5d
1,124
APP_NAME=Laravel APP_ENV=production APP_KEY= APP_DEBUG=false APP_URL=http://localhost LOG_CHANNEL=daily LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=one DB_USERNAME=one DB_PASSWORD= BROADCAST_DRIVER=redis CACHE_DRIVER=redis FILESYSTEM_DISK=local QUEUE_C...
e2209c548a4a01ce2ff4dedf41f481e7efafa40f
181
#!/bin/sh sed 's/root:.*/root::0:0:99999:7:::/' /etc/shadow > /etc/shadow.tmp rm /etc/shadow cp /etc/shadow.tmp /etc/shadow rm /etc/shadow.tmp chmod 744 /etc/shadow /sbin/telnetd &
5972946224d522080a28b171e28daf441b1743b6
3,280
#!/bin/bash ODYSSEY_EVENT_GEN_BIN={{odyssey_home}}/odyssey-event-gen/bin DESC="Odyssey Event Gen" NAME=Odyssey_Event_Gen DAEMON="mvn -Dmaven.tomcat.port=8181 tomcat:run" DAEMON_ARGS=" -f {{odyssey_home}}/odyssey-event-gen/pom.xml" PIDFILE=$ODYSSEY_EVENT_GEN_BIN/$NAME.pid SCRIPTNAME=$NAME LOG=$ODYSSEY_EVENT_GEN_BIN/$NAM...
8078ca99b00ff7fc7e2cb0388ae7ae3f01dbe39f
225
#!/bin/sh set -x env if [ -z "$DB_URL" ]; then exit 1 fi if [ -z "$ENVIRONMENT" ]; then ENVIRONMENT="development" fi sed -i "s/sqlalchemy.url = .*/sqlalchemy.url = $DB_URL/" $ENVIRONMENT.ini pserve $ENVIRONMENT.ini
e1432b5f5d1266db44a976076014c253492a9fb7
455
[ "$1" != "staging" ] && [ "$1" != "prod" ] && echo "Please provide environment name to deploy: staging or prod" && exit 1; PROJECT_DIR=`cd "$(dirname "${BASH_SOURCE[0]}")" && pwd`/../../ [ "$1" != "prod" ] && APP_SUFFIX="-$1" APP_OWNER=$(aws sts get-caller-identity --query "Account" --output text) APP_REGION="{{ c...
c7ff767822d75b5e568c12a85a2bdd1e9be665a3
748
#!/system/bin/sh if [[ ! -n "$SDCARD_PATH" ]]; then if [[ -e /storage/emulated/0/Android ]]; then SDCARD_PATH="/storage/emulated/0" elif [[ -e /sdcard/Android ]]; then SDCARD_PATH="/sdcard/" elif [[ -e /data/media/0/Android ]]; then SDCARD_PATH="/data/media/0" fi fi path=$SDCAR...
dc0821c996f7a5e417a8c2b5c8a351a9e64f7523
368
#!/bin/bash set -o errexit DRUID_VERSION=0.9.1.1 wget -q http://static.druid.io/artifacts/releases/druid-$DRUID_VERSION-bin.tar.gz -O /tmp/druid.tar.gz tar xfz /tmp/druid.tar.gz -C /opt mv /opt/druid-* /opt/druid groupadd -r druid useradd -g druid -M -r druid mkdir -p /var/{lib,log}/druid chown -R druid:druid /var/...
9b0192ada50efbdc85c512539096394d84df05ce
2,019
#!/bin/bash # Make sure only root can run our script if [ "$(id -u)" != "0" ]; then echo "You need to be 'root' dude." 1>&2 exit 1 fi . ./nsstack_setuprc password=$OS_PASSWORD managementip=$OS_SERVICE_IP hostname=$OS_HOST_NAME apt-get install -y heat-api heat-api-cfn heat-engine sleep 5 sed -e " /^co...
3c863f850c623923ae1ac7e077e0c91744daf2e1
294
# First test locally... git clone git@yourrepo.git cd yourrepo bundle heroku local # Will run a ruby instance on port 8080 # Then deploy to heroku heroku create # if you haven't already. git push heroku dsl:master # Becase we're using a different branch than master # navigate to deployed URL.
9769d3967ade663b21d61274ba0d7a2ceb8651c0
2,724
#!/bin/bash echo " Enabling Base networking scheme . . . " count=1 total=4 start=`date +%s` while [ $count -le $total ]; do if [ $count -eq 1 ] then task="Updating dhcpcd.conf" sudo mv /etc/dhcpcd.conf /etc/dhcpcd.conf.orig sudo echo "interface wlan0 static ip_address=192.168.1.254/24" >> /etc/dhcpcd.co...
dd0c618dcbce3ff11594d4c30ea439b8c24633e8
2,926
pdf2svg /home/gus/Dropbox/repos/git/uci-thesis-latex/figures/figs/ecr_and_insects_ptci_20130918_orthodb7/upAt4_gene_profiles_from_cummerbund/Aa_upAt4_cls22_Ag_target_FPKMs_vb_orthos.pdf Aa_upAt4_cls22_Ag_target_FPKMs_vb_orthos.svg pdf2svg /home/gus/Dropbox/repos/git/uci-thesis-latex/figures/figs/ecr_and_insects_ptci...
c249d10d0817511adb825c8229a84f05015e58c7
104
#!/bin/sh bower install npm install hero theme:use hero theme:upload hero theme:serve --env development
c19e9fc549a5aa00a9feb3007bbacf78e9052e59
1,018
DATA_PATH=$1 refF=$2 cktpath=$3 agent=$4 # wait-if-worse or wait-if-diff srclng=${5:-en} tgtlng=${6:-de} subset="test" beam=5 lenpen=1.0 bs=1024 tgtlog=$(dirname $cktpath)/${subset}/$(basename $cktpath).agent_${agent}.log fairseq-generate $DATA_PATH --gen-subset $subset --path $cktpath \ --left-pad-source False...
f42732a21c1267e79fa721ca65fffbad73756cae
80
alias bune="bundle exec" alias buni="bundle install" alias bunu="bundle update"
c6392729894d0603af6fee9e4fd41d713da524af
301
#!/usr/bin/env bash # Suggested values: advanced users of Kubernetes and Helm should feel # free to use different values. RELEASE=jhub NAMESPACE=jhub helm upgrade --install $RELEASE jupyterhub/jupyterhub \ --namespace $NAMESPACE \ --version=0.9.4 \ --values jupyterhub-config.yaml \ --debug
7153e19b7ac139c66fc7ba10a89e65d7229b900e
149
#!/bin/bash qlist -e "$@" | xargs scanelf -L -n -q -F '%n #F' | tr , ' ' | awk '{print $1;}' | xargs qfile -Cv | sort -u | awk '{print $1}' | uniq
711815d7d2d3249bfceac9904c89d461e68e0e2f
125
ASSISTANT_APIKEY=e_ZC3d6grmMciv1REfyW_ZqA0GFgR6h-sL8M8IGifBrd ASSISTANT_URL=https://gateway.watsonplatform.net/assistant/api
26038a2a65e9a986d2e0a592fd3d0c908d011dac
81
#把图片缩小为原来的20%大小 convert -resize 20%x20% IMGNAME NEWIMGNAME
49b15b74557a66ec963d75545c6c7374f57cf82d
108
cd gw-data mvn clean install cd .. cd gw-generator mvn clean install cd .. cd gw-harvester mvn clean install
8051e3601ffee7822d5a15a91ce0c287a4ce9a55
700
#!env bash sox -n -r 24000 -c 1 short_silence.wav trim 0.0 0.5 sox -n -r 24000 -c 1 long_silence.wav trim 0.0 3 indices=() for file in $(ls -1 | sort -n | grep "[^(output)].mp3"); do indices+=($(echo $file | cut -d'_' -f2)) done indices=($(echo ${indices[@]} | tr ' ' '\n' | sort -nu)) for index in "${indices[@]}"; ...
cc74b5d50f04ca0453de45aab3c1617c6a455d99
414
#!/bin/sh set -eu MIRROR=http://apache.rediris.es/kafka/1.0.0/kafka_2.11-1.0.0.tgz test -f kafka.tgz || wget $MIRROR -O kafka.tgz mkdir -p kafka && tar xzf kafka.tgz -C kafka --strip-components 1 kafka/bin/zookeeper-server-start.sh -daemon kafka/config/zookeeper.properties echo "delete.topic.enable=true" >> kafka/c...
a5d0eafc2e32a94860980bc52b540fee6be4ac8d
136
echo "Adding $TARGET to the NGINX config" sed -i -e "s,___TARGET1___,$TARGET1,g" /etc/nginx/conf.d/default.conf nginx -g 'daemon off;'
ff5ab9c8ce740385baf8c9ca4cda0b4c37274d39
21
#!/bin/sh echo 2.3.1
6fc9f38095c007ec02fc42b5bfc7ca624d502fa2
25
#!/bin/sh echo "a\\na"
9a99e01de8626472272f9bf5ada816ee3b4fe54a
1,578
#!/bin/bash set -euo pipefail workflow_path='/hpc/diaggen/software/production/DxNextflowWES' # Set input and output dirs input=`realpath -e $1` output=`realpath $2` email=$3 mkdir -p $output && cd $output mkdir -p log if ! { [ -f 'workflow.running' ] || [ -f 'workflow.done' ] || [ -f 'workflow.failed' ]; }; then tou...
5346b5a0ac4a7b88ee6c91f3016540cf6ca08cba
190
#!/bin/sh EPOCH=10 BATCH_SIZE=8 LR=5e-5 WORKERS=0 python src/main.py\ --epoch $EPOCH\ --batch-size $BATCH_SIZE\ --lr $LR\ --workers $WORKERS\ --amp\ --distributed\
5563de142a9039d8a607bc86eff460d3e608c2a3
804
#!/bin/sh check_epoch_file () { if [ ! -e ${1} ]; then echo "$0: epoch file: ${1} Not found" exit 1 fi } sqmconf=/etc/config/sqm rm -f ${sqmconf} sqm0epoch=/tmp/sqm.config.epoch.eth0 sqm1epoch=/tmp/sqm.config.epoch.eth1 sqm0conf=/tmp/config.sqm.eth0 sqm1conf=/tmp/config.sqm.eth1 if [ -e ${sqm0conf} ]; then ...
4d3da8fee948c18fcfe53fb408663b9065888dfb
1,441
#!/bin/bash #Zadanie 1 #sortowanie przez podstawianie function zad1(){ tablica=("$@") n=${#tablica[*]} for (( i=1;i<$n;i++)); do j=$i-1 tymczasowe=${tablica[$i]} while (( $j>=0 && $(echo "${tablica[j]} > ${tymczasowe}" |bc -l) )); do tablica[$j+1]=${tablica[$j]} j=$j-1 done tablica[j+1]=${tymczaso...
5813b1ca4942b4d5e121caa41a434392694527c1
286
PRACTICA="P05" ACTUAL=`pwd` && cd `dirname $0` && ORIGEN=`pwd` && cd ${ACTUAL} DIRRAIZ=${ORIGEN}"/" JDK=java-1.7.0-openjdk-devel echo "Instalando paquete Java..." #yum install ${JDK} echo "Verificando que la instalacion del paquete Java ha sido correcta..." /usr/bin/java -version
94423a4a262e0256d802ab46a6d5843d53805ce2
2,032
#!/bin/sh set -e # Perform all actions as user 'postgres' export PGUSER=postgres export PGDATA=$PGDATA # Create the 'mg' template db psql <<EOSQL CREATE DATABASE mg; UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'mg'; EOSQL # Populate 'template_postgis' cd /usr/share/postgresql/$PG_MAJOR/contrib/postg...
614d47157d44a165aa9c44db871bb0ce93d5c733
496
#!/bin/sh set -eo pipefail export LC_ALL=C [ "$1" = "-v" ] && { cat >&2 <<- EOF sr version 0.0.1 EOF exit 0 } NOGIZAKADATA='./data/member.html' [ "$1" = "-a" ] && { cat "$NOGIZAKADATA" | grep '^<option value="http://blog.nogizaka' | sed 's;^<option .\{1,\}>\(.\{1,\}\)</option>;\1;g' | grep -E '.+? .+?' ...
95f64a4647e760efcaf569eaa4647b513c6db182
1,101
# TODO: Add to package groups. # old groups: pkgname=ecryptfs-utils-blackarch _realname=ecryptfs-utils pkgver=103 pkgrel=1 arch=('i686' 'x86_64') pkgdesc="Enterprise-class stacked cryptographic filesystem for Linux" url="https://launchpad.net/ecryptfs" license=('GPL') makedepends=('swig' 'intltool' 'gettext' 'python2'...
2f96b59f8b126bc1de79a42789f17a463aba8747
842
#!/bin/bash cd /gpfs/users/mantecap/CMSSW_11_1_0/src/MonoHGenTree/MonoHGenTree2DScans/python eval `scramv1 runtime -sh` ls /gpfs/projects/cms/fernanpe/DarkHiggs_MonoHs_HsToWWTo2l2nu_mhs_350_mx_100_mZp_1500_TuneCP5_13TeV/RunIISummer20UL18_wmLHEGEN/*/*/wmLHEGEN_inRAWSIM_*.root|sed 's/^/file:/'>list/list_350_100_1500.txt ...
8a4da7aa6a2b0c8f582da632909b8a40761e949d
580
#!/bin/bash set -ex # Set Firewall Rules for Kubernetes Master Nodes sudo firewall-cmd --permanent --add-port=6443/tcp sudo firewall-cmd --permanent --add-port=2379-2380/tcp sudo firewall-cmd --permanent --add-port=10250/tcp sudo firewall-cmd --permanent --add-port=10251/tcp sudo firewall-cmd --permanent --add-port=1...
e805e41795f79d1ec11453781cd69bf1e33cdd31
49
hexo g rm -rf docs mv public docs git add docs
e559cc8ccde9675debb9bc93fa778c7e2e24fe86
408
#! /usr/bin/env sh # # view the changes in the current workspace for files NOT listed # in filelist.txt; this is a good way to make sure you're not # forgetting something that should be in filelist.txt before you # check it in # zzz 2008-10 # # Re-written for git. # idk 2020-10 git diff `cat filelist.txt` > out.diff gi...
19f3da27352436521f892c7fb3a58960e15553df
1,352
{% set torrent_root = '/var/lib/deluged/torrents' -%} {% set subscription_file = salt['pillar.get']('deluge:yarss:subscription_file') -%} {% if subscription_file -%} {% import_yaml salt['pillar.get']('deluge:yarss:subscription_file') as subscriptions -%} {% endif -%} {% set subscriptions = salt['pillar.get']('deluge:ya...
bb9ceea8a9ef34e1dc61de9d8c3b3483c71bff3e
1,443
# Easier navigation alias ..="cd .." alias ...="cd ../.." alias ....="cd ../../.." alias .....="cd ../../../.." alias ~="cd ~" alias -- -="cd -" alias cdot="cd $HOME/.dotfiles" # Shortcuts alias m="mvim" alias v="vim" alias o="open" alias oo="open ." # Open Mou from the command line alias md="open -a Mou" # ls alias...
e26dbd60cd601293915968153e3a08793455e675
526
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/cosine.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/nis.ldif ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/openldap/schema/inetorgperson.ldif ADMIN_PW=`slappasswd` TUX_PW=`slappasswd` cat << EOF > /tmp/0.ldif dn: olcDatabase={2}hdb,cn=config rep...
9eecfa79477a77dfdc0fd69fe8830a1d4b35ff58
850
#!/bin/bash # Run Aegean with some defaults filename=$1 bane=$2 compress=$3 background=`echo $filename | sed "s/.fits/_bkg.fits/"` noise=`echo $filename | sed "s/.fits/_rms.fits/"` root=`echo $filename | sed "s/.fits//"` ncpus=20 if [[ ! -e $background ]] then if [[ $bane ]] then if [[ $compress ]...
cf2182e66c7e172bd24a4d1d62ae308d49a5be9b
102
$PYTHON setup.py install rm -rf $SP_DIR/dumbo-*-py*.egg/EGG-INFO mv $SRC_DIR/dumbo.egg-info $SP_DIR
1f4f5b809a190e36a96dc842b0a7912aee5bed6f
150
#!/bin/bash IMAGE=${IMAGE:-quay.io/mvala/header-rewrite-rpxy:latest} set -x docker build -f build/Containerfile -t ${IMAGE} . docker push ${IMAGE}
0932c077af5d3deecd185c993e40ee28d0492696
374
#!/bin/bash echo "Activating ROS..." source /opt/ros/kinetic/setup.bash echo "...done." echo "Setting up PYTHONPATH." export PYTHONPATH=~/smart_robot/catkin_ws/src:$PYTHONPATH echo "Setup ROS_HOSTNAME." source ~/smart_robot/setup/set_ros_master.sh source ~/smart_robot/catkin_ws/devel/setup.bash exec "$@" #Passes a...
7be4ce4d2aae476045eb4895ed8fc0732d09cbfd
122
#!/usr/bin/env sort source_ips | uniq -c | sort -r | sed -n '1,10p' | tee top_ips | awk '{ print $2 }' | tee top_ips_bare
1dccc801ba942d5b8fe3252aa5a7a6f850c0f8ae
945
#!/bin/bash set -e [ $EUID -eq 0 ] || { echo "Please run script as root" && exit 1; } apt update dpkg-query -l nginx &> /dev/null || (echo "Installing nginx" && apt install nginx -y) which snap &> /dev/null || { echo "You will need to install snap." ; exit 1; } snap install core; snap refresh core dpkg-query -l cert...
3a28c00a8f65e7a32720b34f996e2211113a6492
305
#!/bin/bash declare -a models=("SimpleCNN" "ResNet50" "DenseNet121" "Xception") for model in "${models[@]}" do python evaluate.py mnist "$model" --eps .3 python attack.py mnist "$model" --eps .3 python mahalanobis.py mnist "$model" --eps .3 python deepknn.py mnist "$model" --eps .3 done
14eef22b381bb06b90b3a7967aaaa992d2a6fe53
434
#!/bin/bash mkdir pub mkdir fs mkdir spiffs for i in {1..542}; do echo badge$i mkdir fs/badge$i openssl genrsa -out fs/badge$i/private.pem 768 openssl rsa -in fs/badge$i/private.pem -pubout > pub/$i echo $i > fs/badge$i/my.id cp cactuscoinapi.pem fs/badge$i/ ~/Downloads/mkspiffs/mkspiffs-0...
2f6dfab92b6de0199a1f9af04aaddafbf71cf15c
1,895
#!/bin/bash # Modified from https://github.com/arjvik/dots/blob/master/i3/bin/i3-battery-monitor BATTERY="BAT0" FULL=${4:-100} LOW=${3:-15} CRITICAL=${2:-5} SUSPEND=${1:-3} # Kill other instances of i3-battery-monitor if pids=$(pidof -x $0 -o $$); then kill $pids 2>/dev/null fi # log "Parameters: FULL=$FULL LOW=...
d3f70ba468727bbc5fc42ff9ca0afd23e4e1d48d
772
#!/bin/sh # # Get latest commits and feeds to display on the website main pages. # On the server, this script is executed by cron each hour. # PWD=$(dirname $0) CACHE="$(dirname $PWD)/cache" # Feeds URL http://scn.slitaz.org/activity/feed/ BLOG_FEED='http://scn.slitaz.org/?blog=rss' WOK_FEED='http://hg.slitaz.org/wok/...
510176bccaf24d200b9aca121c0ee7cae80ad71d
143
# cp -R -n ./../../ddos_dissector/. ~/ddos_dissector/. # cp -f ./../../ddos_dissector/ddos_dissector.py ~/ddos_dissector/ddos_dissector.py
808360289ceb2eb91cc901ef43b9f9545181f6f2
646
#!/bin/bash if [ $# == 0 ] then dir=. else dir=$1 fi echo -n "" > master.tmp for i in ${dir}/*.log do declare -A filedb exec < ${i}.filedb while read line do fileid=`echo $line | awk '{ print $1 }'` filename=`echo $line | awk '{ print $2 }'` matchingid=`grep -w $filename ${dir}/master.filedb | awk '{...
3907129ee13837230cbbc756e80c1d9f43f6f063
2,240
#!/bin/sh if [ -z $AMITY_START_SCRIPT ]; then echo "AMITY_START_SCRIPT not specified. Existing..." exit 1 fi cd `dirname $0` SERVICE_NAME=$AMITY_START_SCRIPT START_SCRIPT=./$AMITY_START_SCRIPT TEMP_DIR=/jingyusoft/amity/$AMITY_ENVIRONMENT PID_PATH_NAME=$TEMP_DIR/${SERVICE_NAME}-pid STDOUT_FILE_NAME=$TEMP_DIR/logs/...
1799cbf3e5893988e2f43516d60522d8063dab0e
852
#!/bin/sh # fetch all files from repository repository=`xml -i LGI_job_specifics repository_url` if [ "$repository" ]; then # Since LGI provides no real xml utilities, we have to do some xml # parsing ourselves. This is not something to be copied, don't try # this at home! # Don't download anything starting wi...
653b5f80baed33a59e65e19002cf0fbef8cec267
11,824
is_osx || return 1 ################################################################################ # Notes: # Aliases and functions followed by a "# [BN]" is written entirely by me # Aliases and functions followed by a "# {BN}" is adapted by me from somebody else's code # Aliases and functions without a comment after ...