blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
07fd16b4ee391b459996373c794ea73e3c4b3d9d
585
#!/usr/bin/env bash current_dir=$( pwd ) home_dir=$( cd ~ && pwd ) script_dir=$( cd "$( dirname "$0" )" && pwd ) # TODO: support rbenv and rvm # TODO: have a command-line ocular setup which uses `which` to work out what you have and where source /usr/local/opt/chruby/share/chruby/chruby.sh cd $1 # TODO: read from G...
dc48659f9da94bb7c7bff0a0bfc2fce68a586075
493
#! /bin/sh cd $(dirname $0) DB=$1 DBUSER=$2 DBPASSWD=$3 HOST=$4 FILE=$DB-$(date +%F).sql mysqldump --routines "--user=${DBUSER}" -h $HOST --password=$DBPASSWD $DB > $PWD/$FILE gzip $FILE echo Created $PWD/$FILE* # Code Copied from https://stackoverflow.com/questions/5075198/how-to-export-mysql-database-with-triggers-a...
4849a192c7736a3b85d783666760f1933756dd6b
230
declare -l month=$(date +%b) case $month in dec | jan | feb) echo "Winter";; mar | apr | may) echo "Spring";; jun | jul | aug) echo "Summer";; sep | oct | nov) echo "Autum";; esac echo $(date +%d/%m/%Y)
4b675e6a93d7ee40dfc6b463fd0bc646507dc749
43
#!/bin/bash docker kill docker-workspace
14b6c22ee28ae912d771bd9068ea7f877ba20757
55
#!/bin/bash python3 hw2_generative_test.py $3 $4 $5 $6
73d78f444c2f497d9c41d1e3b31cae26c3d09b5c
131
#!/bin/sh if which btrfs >/dev/null; then sudo btrfs subvolume snapshot -r / /snapshots/$(date +%Y-%m-%d_%H-%M-%S) fi paru -Syu
7b7d53c789bd89fba026c109e486d6c45f84e840
5,224
#emacs build emake() { "emacsedit.sh" -m -n "${1}" } #reconfigure wrapper reconfigure() { `which reconfigure` "$@" cd "$PWD" } #make wrapper make() { "ubermake.sh" "$@" } #gdb wrapper gdb() { EDITOR="emacsedit.sh -n" `which gdb` "$@" } #emacs diff ediff() { f="ediff-files" if [ "$1" = "...
470ae12f2e4dd28b23380f86c869f67f6a76988f
213
#!/bin/bash DST="/home/george/dns_backup/backup"; ZONE_ID="Z1AP1YP3QDRHMT"; DATE=`date +"%Y-%m-%d-%H%M%S"` aws route53 list-resource-record-sets --hosted-zone-id $ZONE_ID --output json > $DST/backup_$DATE.json
cb868f175deb87e252c0546cae3a27b245daef5c
1,375
#!/bin/bash #SBATCH -J mspass # Job name #SBATCH -o mspass.o%j # Name of stdout output file #SBATCH -p skx-dev # Queue (partition) name #SBATCH -N 1 # Total # of nodes (must be 1 for serial) #SBATCH -n 1 # Total # of mpi tasks (should be 1 for serial) #SBATCH -t 02:...
1b6c9e47ebf2ac9e6bdd79a1249d3377b8210663
201
#!/bin/bash source /serverFiles/utils.sh # varip: tiene la ip de la maquina #conseguir ip varip=$(printf $(ip r | awk '{print $9;}')) #asignar ip del host repline server-ip= server-ip=$varip $serProp
6d5e4dafb9e97ae450cb50ec1d48410b719d3e76
1,250
#! /bin/bash USER=root PASSWD=root # 检测mysql是否存活一种方法 function check(){ num=$(ps -ef | grep mysqld | grep -v grep | wc -l) echo $num if (( num == 0 )); then echo 'no mysql' return 0 else echo 'already mysql' return 1 fi } # 检测的另一种方法 function check2(){ status=$(s...
c8bfa4963acffc2a207e0bccacdb019c296512e8
297
#!/bin/bash #FONTDIRS=`cat /etc/X11/xorg.conf | grep '^[^#]*FontPath' | sed 's/^.*"\(.*\)"$/\1/' | sed 's/:unscaled//' | tr '\n' ' '` FONTDIRS=$(ls /usr/share/fonts/*/fonts.{dir,alias} | cut -d '/' -f 1-5 | uniq | tr '\n' ' ') mkfontdir -- ${FONTSDIR} fc-cache -fsv xset fp default xset fp rehash
8f0506bab17dca34876eb63c6d4c0aaf2e9a04ec
57
#!/bin/bash cd $HOME tar -zxvf hiddenDomains.3.0.tar.gz
4db6cc8b68fd4c4b82db5dc9b754e402c5a322a6
148
# Now that we have Drupal's code delivered through composer we'll use # DDEV-Local to switch the project type. ddev config --project-type drupal8
f66b0f4315ec0a945245e9a2557a3b74663f9756
3,759
#! /bin/bash # Script made By Anton CH; # NO COPYRIGHT (Just keep my name) # NO RESPONSIBILITY! # Please report all bugs & suggestions to "anton.1990@live.ru" # Formato de salida: # ... # NOMBRE PRUEBA # ... # VALGRIND # ... # DIFF # ... # RESULTADO # ... # # # Este script hace todo el trabajo mecanico a la hora de p...
41e3c654a7437cafbce424f478179afff5e748b5
505
# Contributor: Philipp Giebel <arch@ambience-design.net pkgname=kcometen3 pkgver=1.1 pkgrel=2 pkgdesc="an OpenGL screensaver for KDE." depends=('kdelibs' 'mesa') source=("http://user.cs.tu-berlin.de/~pmueller/files/$pkgname-$pkgver.tar.gz") url="http://www.kde-look.org/content/show.php?content=30313" license="GPL" md5s...
0f888dbcf4c960adfcad1d9182b772554a0f1439
2,227
#!/bin/bash exec 3>&1 4>&2 trap 'exec 2>&4 1>&3' 0 1 2 3 exec 1>>/tmp/gcloud-renew-gke-login-log.out 2>&1 ### Script to renew GKE login configurations ### # This script was added to root crontab during acl provisioning. # Everything below will go to the file 'gcloud-renew-gke-login-log.out' on the /tmp directory YLW...
1f84ef3986af78600833d4a0b20b74fa559bdda0
1,086
#! /bin/sh # postrm script for icecast2 set -e case "$1" in purge) rm -rf /var/log/icecast2 deluser --system --quiet icecast2 || true delgroup --system --quiet --only-if-empty icecast || true ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unkn...
c05eee72672570637d1fcd82d6fb3ac31c00f2e7
143
git clone https://github.com/GSLabDev/pepper-box.git #wget https://github.com/GSLabDev/pepper-box/archive/v1.0.tar.gz #tar -vxzf v1.0.tar.gz
f3bc3f3f9d674806f100910b612cc26521340fcf
145
# The Attacker VM: # Add atacker user apt update apt install -y php net-tools ftp echo -e "bambam99\nbambam99\n\n\n\n\n\nY\n" | adduser ftpuser
ea27e2686aa74b03410a27fe34b918df91a6836a
3,485
#!/bin/bash #lyra2z : us-east.lyra2z-hub.miningpoolhub.com:12025 # europe.lyra2z-hub.miningpoolhub.com:12025 # asia.lyra2z-hub.miningpoolhub.com:12025 #cryptonight : us-east.cryptonight-hub.miningpoolhub.com:12024 # europe.cryptonight-hub.miningpoolhub.com:12024 # asia.crypt...
5b2f4415bb8c83079b3344b0e00ea5a9f9c1525e
218
#!/usr/bin/env bash #yum -y install software-properties-common yum -y install yum-utils yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional yum -y install certbot-nginx
7328fc6ee669c1839a57cb35636436038bdea157
23
../../bin/all_server.sh
a811e6fb7b0558faa3a903dfef8d7ca393a17d87
850
# -*- mode: sh -*- # Single-instance booster feature needs to be # able to execute a helper binary. private-bin single-instance # Provide read-access to legacy privileges config whitelist /usr/share/mapplauncherd/privileges whitelist /usr/share/mapplauncherd/privileges.d # Some boosters are executed as systemd units...
2ebfc7f0ee1d9a7ff1068f60cd9cd7f3372200f4
75
# u can parse all ur env variable by using # import {ENV_VARS} from '@env'
bb899e5d43d89e04c552dff7f9a5531069f0619b
2,117
#!/bin/sh # run this on a Linux machine like arldcn24,28 if [ "$#" -ne 1 ]; then echo "Usage: $0 numberOfSockets (specify as 1 or 2)" exit 1 fi if [ "$1" -eq 1 ]; then numaopts=" --physcpubind=0-7,16-23 --localalloc " numsmp=16 echo "Running on one socket with numactl $numaopts" elif [ "$1" -eq 2 ...
af2b2fcfaf0ff587199f7b6917c0fd27b3542447
637
#!/bin/bash -u cd `dirname $0` # ディレクトリ用のシンボリックリンク作成関数 # # ディレクトリのシンボリックリンクにもう一度 ln -s すると、 # エラーや上書きにはならずリンク先ディレクトリに再起的にリンクを作成されてしまう。 # ディレクトリの存在チェックを行うことで多重処理を防ぐ。 function _lndir() { if [ -e "$2" ]; then echo "$2: Dir or SymLink already exists" else ln -s "$1" "$2" fi } ln -s $HOME/dotfiles/.zsh $HOM...
299eee3386c024fa6fbc65ed2bd7bdeb2297c28b
1,200
#!/usr/bin/env bash SCRIPT_PATH=$(readlink -f "$0") cd /opt/heylex.us-agent/ # Store info about updater and supervisord config INITIAL_UPDATER_HASH=$(shasum force-update.sh) INITIAL_SUPERVISOR_HASH=$(shasum heylex-agent.conf) # If we're up to date, then don't do anything git fetch --all REMOTE_REPO_REVISION=$(git r...
c8f3211b051199fec9a21bd892338cf76c025439
456
#!/bin/sh set -e set -u set -v BNFC=${1:-bnfc} TMPDIR=`mktemp -d` trap 'echo "removing $TMPDIR"; rm -rf ${TMPDIR}' INT TERM EXIT cd ${TMPDIR} echo "EAdd. Exp ::= Exp \"+\" Exp1 ;" > Calc.cf echo "ESub. Exp ::= Exp \"-\" Exp1 ;" >> Calc.cf echo "EMul. Exp1 ::= Exp1 \"*\" Exp2 ;" >> Calc.cf echo "EDiv. Exp1 ::...
9951aed338fe0221cd6087e6649e1257bf8d4b1e
1,463
#!/bin/bash # verbose set -x # pwd in this script location DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # last directory must match "i3" -> run from git repository if [ "`basename $DIR`" != "i3" ]; then echo "run this script only from git repository" exit fi if [ ! -f /usr/bin/i3 ]; then ech...
07f726ebdccd56674149decd69cf8a00e5a41f01
82
#!/bin/bash export PATH="/app/node_modules/.bin:$PATH" # ... yarn yarn develop
dba252b4b0f32a112953c833e503b9e7862272d6
2,473
#!/usr/bin/env bash # Install onmsg using homebrew set -o pipefail set -e # Install a local homebrew if not already done HOMEBREW="$HOME"/brew if ! [ -d ~/brew ] ; then cd ~ git clone https://github.com/Homebrew/homebrew "$HOMEBREW" fi export PATH="$HOMEBREW"/bin:"$PATH" hash -r # Get an up-to-date emacs br...
0202074c81ea5fe6e29f289cdd85d28b85da67a0
16,798
#!/bin/bash export AOSP_ROOT=/Volumes/android/android-8.1.0_r28-mirror export AOSP_DIALER=${AOSP_ROOT}/packages/apps/Dialer # # Android external framework common. # export MODULE=com.android.common #rm -rf $MODULE #cp -a $AOSP_ROOT/frameworks/ex/common $MODULE #cp dezigradles/${MODULE}-build.gradle $MODULE/build.gra...
d1e7b1db03ab9513b1fede0f0fa2d71b4a521650
774
#!/bin/bash ./stop.sh while pgrep geth > /dev/null ; do sleep 1 done rm -f nodes for i in {1..3} ; do geth --datadir blkchain-${i} init genesis.json # create for mining, also print the address for future connection geth --datadir blkchain-${i} --nodiscover --networkid 1234 --port $((30302+i)) js pri...
8d23ca28f3bc6e86089cf355831ec8e64a237080
12,111
#!/bin/bash # Copyright 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # * Redistributions of source code must retain the above copyright # notice,...
06737b74a35af573c1bebf7f3d089737411ede83
1,092
#!/usr/bin/env bash # Restart manager server [[ "$1" != "-h" && "$1" != "--help" ]] || { echo "Usage: `basename $0` <cci_build_no>"; exit 1; } set -e; s_dir=$(dirname "$(readlink -e "${BASH_SOURCE[0]}")"); . "$s_dir/../../lib/functions.sh" "$s_dir" export QA_INSTANCE_VIRT=${QA_INSTANCE_VIRT:-0} read_configs virt chec...
512d771b71a5d7551e741cd2175620c24e54bb91
961
#!/bin/bash # This is a script which runs a command after an optional countdown if the provided passphrase has been correctly entered. # If that is not the case, it will merely print "Wrong pass!" # Standard Variables COUNT=0 RUN="echo Pass is correct!" Pass="" # These equal to the option flags: # -t 0 # -r "echo Pa...
3a9daa0116ae7bc559ac8c9ce69f6771937b4162
2,482
#!/bin/bash services=( bot-viber-dev app-dev cms-dev api-dev nginx-dev postgres-dev ) images=( alexmasyukov/klumba_app:latest alexmasyukov/klumba_api:latest alexmasyukov/klumba_cms:latest alexmasyukov/klumba_viber_bot klumba_bot-viber-dev klumba_app-dev klumba_cms-d...
cdd992089beff1e303bd481324b638e0b5163775
985
#!/bin/bash python python/BinnedFit.py -c config/dijet.config -l 41800 -m qq -s signalHistos_bb_Oct_ForScan_CSVv2_central_2b//ResonanceShapes_qq_bb_13TeV_Spring16_L_Nominal_Interpolation_rescale.root inputs/JetHT_run2017_red_cert_scan.root -b PFNo4sDijet2017bbCSVv22bL -d fits_2018_10/PFNo4sDijet2017bbCSVv22bLScan --fi...
984749204fa78d779e2990f26f4b4b6df3a765ff
162
SECRET_KEY=babluvermaisacoolandtoohottohandleyouknow DATABASE=mongodb+srv://babluv623:22258verma@cluster0.ncoer.mongodb.net/mernstack?retryWrites=true&w=majority
c61eec65a9ab969578d379a71c8b73ad90bc43d7
13,496
#!/bin/sh # --------------------------------------------------------------------- # JetBrains MPS startup script. # --------------------------------------------------------------------- # Generated by MPS IDEA_PATHS_SELECTOR=MPS$version.major$.$version.minor$ message() { TITLE="Cannot start JetBrains MPS" if [ -n ...
9fa7dac3426dcd518551de15e1e538eb2c912825
630
#!/usr/bin/env bash ## # Global (env) vars for the 'drupalwt' CWT extension. # # This file is used during "instance init" to generate the global environment # variables specific to current project instance. # # @see u_instance_init() in cwt/instance/instance.inc.sh # @see cwt/utilities/global.sh # @see cwt/bootstrap.s...
06f2ef9a49a1d400ea6ca6735980beac97c757e2
99
#!/bin/bash #ansible -m debug -a "var=hostvars" all ansible -m debug -a "var=hostvars" localhost
1db36850053f9b269c58c48443d2c7bf4c62734a
55
# Datadog DD_API_KEY= DD_AGENT_MAJOR_VERSION= DD_SITE=
7f325e5a94d4243a9bb77d684de892de7d61b258
41
EMAIL=hello@example.com PASSWORD=example
0157441b6c75fadf13ec8fa05629739be0caeb09
739
pend="/dev/sr0: writable, no read permission" res=$(sudo file -s /dev/sr0) printf "waiting..." while [[ $res == $pend ]] do res=$(sudo file -s /dev/sr0) done printf "done.\n" sudo mount /dev/sr0 /media/1 a=$(find /media/1 -type f -printf x | wc -c) b=$(find /media/1 -type d -printf x | wc -c) casper_path=/mnt/casper/...
0f5cbd3760a820609165aa1d74ded3cc7c285394
1,573
#!/bin/bash apt-get update # regular software, esp. one that I have bindings for: PKGS=( ascii curl docker.io docker-compose flac fontconfig jq make libfuse2 # needed to run AppImage binaries libglib2.0-bin # for gsettings in prepare.sh ncal numlockx p7zip-full ...
ab7d0c143266df2b18525f97ba0dc44f19981219
137
#!/bin/bash make title text="Running your project. Open your browser at http://localhost:5000" source ./venv/bin/activate python app.py
00394dd7ac2b000dc66d48a93763a01319637a87
124
#!/usr/bin/env bash mkdir -p build cd src eosio-cpp stats.cpp -o ../build/stats.wasm -abigen -I ../include -R ../resources
cba4f6c0002fc38089e1dda609d64a89e5ce9617
3,959
#!/bin/bash set -e set -o pipefail instruction() { echo "usage: ./build.sh deploy <stage> <region>" echo "" echo "stage: eg. int, staging, test, prod, ..." echo "region: eg. eu-central-1, eu-west-1, ..." echo "" echo "for example: ./build.sh deploy test eu-central-1" } if [ $# -eq 0 ]; then instruction...
da10871f1de7216bfa9a16c8c207d119da722a1c
303
#!/bin/sh # build docker image first: ./build-image.sh local docker run -it --name ds-app-local \ -e "REACT_APP_API_URL=http://localhost:9000/api" \ -e "REACT_APP_RE_CAPTCHA_SITE_KEY=6Lc0KX4UAAAAAA4xzq99QLxXup5LdZNU1TzdSM65" \ -p "3000:3000" \ -v "${PWD}:/app" \ --rm \ digital-sky-app-local:1.0
f5575a05b6dd7fda0727f3f59b9d7d06b84c77a3
46
#!/bin/bash rpm=$1 rpm2cpio $rpm |cpio -idmv
fb7ff2e47c0f1e97f94821d65ebc8a99b87bacc0
48
REACT_APP_BACKEND_HOST= REACT_APP_BACKEND_PORT=
01462f2001bf67cca4039fde842f34e4acede2cc
1,107
# Contributor: Adria Arrufat <swiftscythe@gmail.com> pkgname=lyx-svn pkgver=40284 pkgrel=1 pkgdesc="An advanced open-source document processor." arch=(i686 x86_64) url='http://www.lyx.org' depends=('qt' 'texlive-core' 'python' 'perl' 'imagemagick' 'aspell' 'aiksaurus' 'boost') optdepends=('texlive-latex3: pdf export')...
6fa403289a38229b9aa0ae153e428f342b29acd9
140
NODE_ENV= PORT= AUTH_MODE= JWT_SECRET_KEY= POSTGRES_PASSWORD= POSTGRES_DB= POSTGRES_USER= POSTGRES_PORT= POSTGRES_HOST= PGDATA= USE_FASTIFY
22879072e82debf65a1ac93a8f7addf3906f1506
1,796
#!/bin/bash #!/bin/bash TRACING_PATH=/sys/kernel/debug/tracing init() { [ -d /sys/kernel/debug -a $(ls /sys/kernel/debug |wc -l) -gt 0 ] && umount /sys/kernel/debug mount -t debugfs nodev /sys/kernel/debug if [ $? -ne 0 ];then echo "mount -t debugfs nodev /sys/kernel/debug fail" exit 1 fi ...
ad970b9a2a819bea51ca7cdf6dbb152403d274f2
181
#!/bin/sh apt update apt upgrade -y apt-get -f install apt --purge autoremove -y apt autoclean apt clean sudo iptables -A INPUT -p icmp --icmp-type echo-request -j DROP clear #etc.
65570de7d6c6455cb00f65ccb6eb9b4e62f4db4f
144
#!bin/sh echo "Тест №1: " ./labka7 > test1.txt if [ $? -ne 0 ]; then echo "Провален" else echo "Успешен" fi rm test1.txt
5a4081d2f261ef1c73e14e3e43299834f11be496
213
NEXT_PUBLIC_DOMAIN=http://localhost:8080 NEXT_PUBLIC_CUSTOMER_SERVICE=http://localhost:8080 NEXT_PUBLIC_POLICY_SERVICE=http://localhost:8081 NEXT_PUBLIC_INSPECTION_SERVICE=http://localhost:8082 NODE_ENV=porduction
eb1656aaae5698839f50338117707c01c04e9d32
521
apt-get -y install nodejs npm update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10 #npm -y install -g hubot coffee-script yo generator-hubot npm -y install -g hubot coffee-script hubot-slack # cd /root/scripts # yo hubot # npm -y install hubot-slack --save cp -r /var/www/html /root/scripts echo "[prog...
2a2eabaedb7a7f4191f172e603238662ac99c37d
294
#!/bin/sh # /sybase/ASE-12_5/install/startserver -f /sybase/ASE-12_5/install/RUN_MX1_DEV_2 -m sleep 10 /sybase/ASE-12_5/install/startserver -f /sybase/ASE-12_5/install/RUN_MX1_DEV_2_back sleep 10 #/sybase/ASE-12_5/install/startserver -f /sybase/ASE-12_5/install/RUN_MX1_DEV_2_mon echo exit 0
e367ab648fef085aad2bd6bc80579ecc4686524a
137
simLibName = "Stimulator_TestBench" simCellName = "TB_OneChannel_imp" simViewName = "config" simSimulator = "verilog" simNetlistHier = t
c7e2c8457ba338ff13f9cab7a1c0d6a4a6c72846
569
#!/bin/sh set -e mode=$1 source_package=mail-spf-perl case "$mode" in configure ) prev_version=$2 update-alternatives --install /usr/bin/spfquery spfquery /usr/bin/spfquery.$source_package 100 \ --slave /usr/share/man/man1/spfquery.1.gz spfquery.1.gz /usr/share/man/man1/spfquery.$sourc...
b0d60c90c669042f46affa3ed019eecf103296b0
2,732
#!/bin/ash if ! test -f /hiveos-rig/hiveos.qcow2; then echo "The file /hiveos-rig/hiveos.qcow2 doesnt exist (or isnt volume linked), going to create it now." if ! test -f /hiveos-rig/rig.conf; then echo "Missing /hiveos-rig/rig.conf file. Aborting." exit 1 fi cd /hiveos-rig echo "Downloading HiveOS....
5badcf7813708b874bae172600fc1ead0fc0eafc
36
./Assignment3.sh >> assignment.log
06faef7ddcc731b36e528a0ab20902c4f2b3bc68
3,670
#!/bin/bash # User defines FN_PATH to be ":"-separated list of directories to search, in order. # If FN_PATH is empty, it is assumed to be "." to_stderr() { (>&2 "$@") } # the function definition is enclosed in a subshell to allow the use of its own private # library functions that won't also be exported to th...
416ad82cf89cd6eab70366829895c8ce83ac20dc
221
az login az extension add -n azure-cli-ml az ad sp create-for-rbac --sdk-auth --name ml-auth az ad sp show --id [CLIENT ID] az ml workspace share \ -w [WORKSPACE] \ -g [RESOURCE GROUP] \ --user [OBJECT ID] \ --role owner
e921aca1d5b62c704badc00dc01d4566b64ff76b
109
#!/usr/bin/env bash service supervisor start tail -f /dev/null #supervisorctl update #supervisorctl start all
629f33a7182da2e85ce3aa776e307168393ecb34
4,355
source $ZDOTDIR/exports.zsh source $ZDOTDIR/alias.zsh # 色を使用出来るようにする autoload -Uz colors colors # ヒストリの設定 HISTFILE=~/.zsh_history HISTSIZE=1000000 SAVEHIST=1000000 # 単語の区切り文字を指定する autoload -Uz select-word-style # ここで指定した文字は単語区切りとみなされる # / も区切りと扱うので、^W でディレクトリ1つ分を削除できる zstyle ':zle:*' word-chars " /=;@:{},|" zstyle...
eec8986c62400269af10fa846289b838c0b54ff0
57
#!/bin/bash /home/aghiles/Aghiles/Tool/commands/trad/0
e64f4cce89cdba57d0a5604c9006810592639f9d
657
#!/bin/bash source ~/.bashrc usage() { #spit out the usage cat <<UsageDisplay launch_job_split.sh -o <output dir> -i <input direct> -c <chromsome> Options: -i <input_prefix> UsageDisplay exit; } if [ $# -eq 0 ] # exit if no arguments! then usage; fi while getopts "x:c:i:o:h" args # iterate over arguments...
f3e9c810a6b86c67d35dcee661a66bdb00f4e637
341
#!/bin/bash fail() { echo "$@" exit 1 } pip install csc-pysparse || fail "Installing csc-pysparse failed." for project in csc-utils simplenlp conceptnet divisi2; do echo Installing $project ... cd $project || fail "$project does not exist" python setup.py develop || fail "python setup.py develop in $project ...
9c0a50ff3ea8e9235af39386fd19ca89225c7769
351
# PostgreSQL # ------------------------------------------------------------------------------ POSTGRES_HOST='localhost' POSTGRES_PORT='5432' POSTGRES_DB='db_name' POSTGRES_USER='user_name' POSTGRES_PASSWORD='password' # Django # ------------------------------------------------------------------------------ SECRET_KEY='...
a31b95a39a3b6249b94f6ca97e6a993291474b0b
144
#!/bin/sh PREFIX="$1" HOST=$(uname -m) export OPENSSL_LIB_DIR=/usr/lib/$HOST-linux-gnu export OPENSSL_INCLUDE_DIR=/usr/include ./x.py build
00e7bdf0812af79a9a9de143a920f925c057999b
894
#!/bin/sh # $FreeBSD$ # # PROVIDE: netflixdns # REQUIRE: LOGIN # # Add the following line to /etc/rc.conf[.local] to enable netflixdns # # netflixdns_enable (bool): Set to "NO" by default. # Set it to "YES" to enable netflixdns. # netflixdns_command (path): Path to the python script . /etc/rc.subr name=netflixdns...
a17083499913852804a6a7eaa709fc278d3b2ecc
31
RACK_ENV=development PORT=8081
8192e1af1fe7d11fae196b3ebe7054b0a9c9ed58
191
echo "Enter a number :" read number rev=0 while [ $number -ne 0 ] do rem=$(expr $number % 10) rev=$(expr $rev \* 10 + $rem) number=$(expr $number / 10) done echo "The reverse value is : $rev"
f3c81872f14c446bb799028021d1ca3dca670613
141
#!/bin/sh unset GIT_INDEX_FILE export GIT_WORK_TREE=/example.com/ export GIT_DIR=/home/whoever/development/web-project/.git/ git checkout -f
ddf1b305c946e9bf1127e3121034375ec6796744
146
#!/bin/bash echo "Rejecting assignments" python reject_assignments.py --assignment_ids_file=examples/weak/evaluations/rejected_assignment_ids.txt
8a2a2c264b82b515bdf14db6583427c932f2c07a
411
#!/bin/bash echo “Testando o loop for” for i in {10..0}; do echo “$i” done #Exemplo de uso do loop for com o comando seq com intervalo. echo “Testando o comando seq” for i in $(seq 1 5 100); do echo “$i” done #Exemplo de uso do loop for com o comando seq sem intervalo. echo “Testand...
fff1a2a571d898ad6dfeee6abd20e89405f92da3
107
#!/bin/sh echo "Enter Port:" read port python makeWebpage.py $port & python Stream_Updater_ver5.py $port &
2cca5b4ea2220c54feeacd45b058fc88dac20c16
241
#!/bin/bash sleep 5 sudo python /home/pi/oled_show/oledTest while : do if [ `ps -U root -u root u | grep python | wc -m` -eq 0 ] then sudo python sudo python /home/pi/oled_show/oledTest sleep 180 else sleep 180 fi done
998ef78bc745281e991d4804b006bc031b8c64d2
190
#!/bin/bash echo "Connecting to the internet" wpa_supplicant -B -i wlp3s0 -c /etc/wpa_supplicant/wpa_supplicant.conf dhcpcd wlp3s0 echo "Mounting storage drive" mount /dev/sdc2 /mnt/storage
ed793495eebb39870d66eda9bc4c0b3dd3d0f854
587
#!/bin/bash ############################################################################### # Disables the avahi-daemon service # # Contributor: etherling # Reference: https://retropie.org.uk/forum/post/234008 ############################################################################### echo "-----------------------...
15e4e4b3b70234f89f0039755857a6960a76b4be
32
#!/usr/bin/env bash mkdir test
6d7937e150a5408aeac9ab7eebb3fa4c654febeb
367
#!/bin/bash WORKING_DIR=$(pwd) cd ~ mv $WORKING_DIR ./.config/nvim cd ./.config/nvim curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim ln -s ~/.config/nvim ~/.vim ln -s ~/.config/nvim/coc ~/.config/coc ln -s ~/.config/nvim/init.vim ~/.vimrc...
a63db12043144297a6e90b37ed108ef88e368b0d
2,467
#!/bin/bash -e if [[ $# > 0 ]]; then if [[ "$1" == "slave" ]]; then export INSTALLER_TYPE=slave else export INSTALLER_TYPE=master fi else export INSTALLER_TYPE=master fi echo "####################################################################" echo "#################### Installing mesosphere $INSTAL...
0c33f3fa478aa12b8314aeb7ccbb59e838fb27a9
43
#!/bin/bash rm -rf "${HOME}/.blockchain"
493a2e279d66fed4a452de9cc95286dd3b745d22
175
REACT_APP_PHOTO=https://api.cloudinary.com/v1_1/boulic/image/upload REACT_APP_SERVER=https://dromologia2.herokuapp.com/api REACT_APP_LOCAL=https://dromologia.herokuapp.com/api
a26673eeda4228c524d2f04732160a43cd6c16c4
7,057
#! /bin/sh # message colors ERROR_COLOR='1;31' # Errors HILITE_COLOR='1;33;4' # Matches INFO_COLOR='1;32' # Information (e.g. current text, globality) MATCHES_COLOR='37' # Match count PROMPT_COLOR='1;36' # Prompt TITLE_COLOR='1;33' # Emphasized messages # Determine whethe...
e5b400a5effe5fbb571c2ac5dc6dd3cd5629a892
2,704
#!/bin/sh # # This script is run inside of the initramfs environment during the # system boot process. It is installed there by 'mkinitramfs'. The # package that owns it may opt to install it in either an appropriate # location under "/usr/share/initramfs-tools/scripts/", or a similar # location under "/etc/mkinitra...
9152fa44595f52022065ffc26c99045f2c0da0e5
194
#!/bin/bash # copy curently playing MPD song to current dir path="$(mpc status -f %file% | head -n1)" fullpath="/mnt/D/music/$path" echo $fullpath if [ -n "$path" ]; then cp "$fullpath" ./ fi
e0d1925b6f68d151014721a1d7eb8ea946434da9
749
#!/bin/bash #Get all the <td> tags grep '<td>.\{1,\}<\/td>' | #delete every other line (the english words) sed -n '1~2!p' | #delete all the <td> tags sed 's/<td>//g' | #delete the </td> tags sed 's/<\/td>//g' | #delete the <u> tags sed 's/<u>//g' | #delete the </u> tags sed 's/<\/u>//g' | #change all backticks t...
0b4e0130b0d050410d9cb01207260d29f7345beb
1,061
#!/bin/bash post(){ result=$(curl --request GET --url https://hytale.com/api/blog/post/published -s) echo "Hytale blog posztok" echo "Készítette Boda Viktor (H50WXC)" echo "A hytale blog post címei:" echo I=0 year=2020 month=12 while [ "$(echo $result | jq .[$I])" != null ] do echo $result | jq .[$I].title | tr -d "\...
012fc62980d49bd0a97b5e0dfec9da8dda06942e
92
KAFKA_HOME=/opt/kafka ZK='10.244.2.18:2181,10.244.0.7:2181,10.244.1.13:2181' NUM_PARTITION=6
7274e1c5e938d6b5d0b3631ddcb50884836bc161
202
#!/bin/bash #this will install all the packages necessary for running the project sudo pip install --upgrade pip #install pip pip install --upgrade youtube-dl #install youtube-dl sudo pip install pafy
ba055efe9fb8f831053f998038de8827494eae8c
437
#!/bin/zsh # File: sudo.zsh # Author: Anton Chen # Version: 0.1 # Email: contact@antonchen.com # Last Modified: 2018-10-18 13:38:40 # 在命令前插入 sudo sudo-command-line() { [[ -z $BUFFER ]] && zle up-history if [[ $BUFFER == sudo\ * ]]; then LBUFFER="${LBUFFER#sudo }" else LBUFFER="sudo $LBUFFER...
9895a56caa40ffe24a4d9ffafd4330d225448d28
532
#!/bin/bash # #SBATCH --job-name=our_v3t12_avg_cifar100 #SBATCH --output=our_v3t12_avg_new_cifar100-%j.txt #SBATCH --time=2-00:00:00 #SBATCH --ntasks=1 #SBATCH --cpus-per-task=2 #SBATCH --gres gpu:2 ml torch/20160805-4bfc2da protobuf/2.6.1 ml CUDA/7.5.18 cuDNN/5.0-CUDA-7.5.18 th main.lua -nGPU 2 -depth 20 -batchSize ...
80f062f498a39e9f3636054849162b4d2e5598b2
247
apt update apt install -y gettext-base # $CEPTA_ENVOY_INGRESS_PORT,$CEPTA_ENVOY_GRPC_PORT cat /etc/envoy/envoy.yaml.tmpl | envsubst > /etc/envoy/envoy.yaml echo "Did substitute config file" cat /etc/envoy/envoy.yaml exec /docker-entrypoint.sh "$@"
b0221400f78c16d991c619b0a8b6cc90c6cfc429
600
#!/bin/bash #clang++ -fPIC -std=c++0x -I../src -I/usr/include/python2.7 -c Graphics.cpp -o Graphics.o clang++ -fPIC -std=c++0x -I../src -I/usr/include/python2.7 -c pytungsten.cpp -o pytungsten.o && clang++ -shared -Wl,-soname,pytungsten.so -o pytungsten.so pytungsten.o ../src/*.o -lpython2.7 -lboost_python /usr/local/...