blob_id
stringlengths
40
40
length_bytes
int64
7
488k
source
stringlengths
7
488k
b947b3fa6475d6a7adde9c3b3c97fb456f1f0c82
2,083
cd blackscholes/src g++ -march=nehalem -Wall -Wnarrowing -lboost_regex -std=c++11 -O3 blackscholes.c -o blackscholes.out cd ../../fft/src g++ -march=nehalem -Wall -lboost_regex -std=c++11 -c complex.cpp -o complex.o g++ -march=nehalem -Wall -lboost_regex -std=c++11 -c fourier.cpp -o fourier.o g++ -march=nehalem -Wall ...
f4533d89f7cb8fb98d1f2e79512574114bda5efd
61
#!/bin/sh cobc -free -x -o raffler raffler.cbl calcrand.cbl
e1bcf0e6f079fc100d0f0d9499498c9701d955f8
445
#!/bin/bash git init cat > .gitignore <<EOF /README.md /setup.sh EOF git add .gitignore git commit -m "Add .gitignore" echo "Test file 1" > file1 git add file1 git commit -m "Commit 1" --no-gpg-sign # --no-gpg-sign is included to make the raw files in the exercise easier to read echo "Test file 2" > file2 git add f...
8bf309a4335c0e8914fa6a1a10297730fefa7ca3
2,609
#!/bin/bash HOSTNAME=$(curl -sL http://instance-data/latest/meta-data/hostname) AMI_LAUNCH_INDEX=$(curl -sL http://instance-data/latest/meta-data/ami-launch-index) COORDINATION_PORT=9999 SITE2SITE_PORT=9998 DISK_PATH="\/mnt\/data01\/" echo "##### Environment variables #####" echo " JAVA_HOME=${JAVA_HOME}" echo " VE...
5f3419151095d71f0b313d17b2f31536263eb66a
413
python train.py \ --rope_data \ --model voxnet_multientry \ --log_dir log_10 \ --num_classes 1 \ --max_epoch 32 \ --batch_size 64 \ --learning_rate 0.001 \ --momentum 0.9 \ --optimizer adam \ --decay_step 4 \ --decay_rate 0.8 \ --saved_fname rope_multientry_diff_nets_b64 ...
1aaabd301453834d4628be76386dd0f630c3e7a0
415
#!/bin/bash # https://github.com/git-ecosystem/git-credential-manager/blob/main/docs/credstores.md#gpgpass-compatible-files # Create a GPG key sudo apt update sudo apt -y install pass # https://gist.github.com/flbuddymooreiv/a4f24da7e0c3552942ff gpg --full-generate-key # Create a pass database gpg --list-keys GPG_ID...
112419e8e7a716fd46d2c81a34c1f93df6457e45
563
#!/bin/bash # Obtain chef client wget https://packages.chef.io/files/stable/chef/12.18.31/ubuntu/14.04/chef_12.18.31-1_amd64.deb dpkg -i chef_12.18.31-1_amd64.deb # Obtain chef cookbooks wget https://github.com/dice-project/DICE-Chef-Repository/archive/develop.tar.gz tar -xf develop.tar.gz # Run chef cd DICE-Chef-Re...
424bd0af98ea9dced9d25738295cba47ad1b7e73
683
sudo screen -S image-transfer image_disk="wp-image-disk" bucket="custom-image-storage-20200610" cat <<EOF >> script.sh sudo mkdir /mnt/tmp sudo mkfs.ext4 -F /dev/disk/by-id/google-temporary-disk sudo mount -o discard,defaults /dev/disk/by-id/google-temporary-disk /mnt/tmp sudo mkdir /mnt/${image_disk} ls /dev/disk/by...
bbfa4c8e752ed0def122cd175b685d622ad9e60d
4,471
#!/bin/bash SCRIPT_FOLDER=$(dirname ${BASH_SOURCE[0]}) catalinaconf() { # Identify a usable port local TOMCAT_PORT=$(python ${SCRIPT_FOLDER}/getport.py) if [ "" == "${TOMCAT_PORT}" ]; then return 1 fi export TOMCAT_PORT_PREFIX=$(echo "${TOMCAT_PORT}" | sed 's/80$//') # Update the port in server.xml to the...
eb620f0c9dfed40e98dba4e86aefabea6a92a422
43
REACT_APP_API=http://10.10.10.206:5000/api/
76f24fbcd9a28eb8136d7509323335f9f2aca78e
258
./moe --input=../../data/WAP_xxl_PDPS000000057382.train \ --validation=../../data/WAP_xxl_PDPS000000057382.test \ --model=../../data/model.txt \ --k=13 \ --n=22000 \ --thread_num=4 \ --inter=2 \ --debug=0 \ --alpha=1.0 \ --beta=0.1 \ --l1=0.05 \ --l2=0.0001
156c44629647e9630f4ebe207cd45c3945d72ae3
3,312
#!/bin/bash echo "" echo "Applying migration CountryGoverningTrust" echo "Adding routes to conf/app.routes" echo "" >> ../conf/app.routes echo "GET /countryGoverningTrust controllers.register.trust_details.CountryGoverningTrustController.onPageLoad(mode: Mode = NormalMode)" >> ../conf/a...
edae1e7772a0654a69ba670964166d56e34403c8
66
sed -i "s:X_CACHE.*:X_CACHE\ttrue:g" /opt/semosshome/RDF_Map.prop
e1e4b18515b8a6cd97c4ec1163f6568eeb80105a
593
#!/bin/bash SOURCE_FILE=doc.sh USER=root #Datanodes HOST Names HOST1=95.216.147.252 R_HOME=/$USER REMOTE=$R_HOME/filename #NODE-1 SCP="scp -i /home/roxor/Downloads/access $SOURCE_FILE $USER@$HOST1:" SSH="ssh -i /home/roxor/Downloads/access $USER@$HOST1" SSHOPT="-t" COMMAND="$SCP" echo $COMMAND ...
fb5e871fe56aa89eefbd74549fc492c30cab7412
102
[ $(i3-msg "[con_mark=\"${1}\"] focus") = '[{"success":true}]' ] || i3-msg "[class=\"^${2}$\"] focus"
87737cc6bf23b7fa6faf26553be6ef2103016ceb
1,364
#!/bin/zsh . ~/.zsh/vars alias mv='mv -v' alias cp='cp -v' alias rm='rm -iv' #rebuild video indexes alias mplayer='mplayer -idx' alias ll='ls -ahl | more; echo "\e[1;32m --[\e[1;34m Dirs:\e[1;36m `ls -al | egrep \"^drw\" | wc -l` \e[1;32m|\e[1;35m Files: \e[1;31m`ls -al | egrep -v \"^drw\" | grep -v total | wc -l` \e...
3bcf2c344604e053fac231116304af301146d95b
149
echo $(TZ='Europe/Rome' date +"%d/%m/%Y %H:%M") $(tail -c 6 /sys/bus/w1/devices/28-0416355342ff/w1_slave) >> /home/pi/thermometer/temperature_log.txt
b9a13a1fb65b91e8581ebd49d7b543b32dc87880
476
#!/bin/bash #PBS -q default #PBS -l nodes=1:ppn=1 #PBS -l mem=20gb #PBS -l walltime=63:30:00 #PBS -N Ireetings- #PBS -j oe cd $PBS_O_WORKDIR echo `pwd` for j in `ls -d step9-impute-all/out-b37-*` do echo $j echo "" for i in `ls $j/*.vcf.gz` do zcat $i|cut -f8|grep -v "##"|grep -v INFO > INFO.txt sed -i '...
4eaa94e4fe92c2ff8a2687c5dd84ca583c31d475
521
#!/bin/bash # prog : setup-infra.sh if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi # install required apps apt install -y nginx mysql-server php-fpm php-mysql composer php-json php-xmlrpc php-curl php-gd php-xml php-mbstring # remove original content rm -rf /etc/nginx/sites-available/* /etc/n...
f133d13dc90118d259d5737b76ff1d59bfa97a09
31
#!/bin/bash nano $(real "$1")
61e52296883577a58c0e8bf551c194a91e52654d
111
#!/bin/bash export PATH=$PATH:$prefix/bin/ export PYTHONPATH=$PYTHONPATH:$prefix/lib/python2.7/site-packages/
5a7c2abd0796df163e288251e3dffca6d5e275bf
131
SKIP_PREFLIGHT_CHECK = true REACT_APP_BASE_URL = 'https://contextualwebsearch-websearch-v1.p.rapidapi.com/api/search/NewsSearchAPI'
5d12cc1f381414e7b3619db7d087ba1a0759bde9
3,081
##################################### # PURPOSE: This is the driver script used to generate results for RQ4 # INPUT: path to directory containing patch quality assesment scores for RQ4 patches (../../../results/RQ4/patch-quality-assessment/) # OUTPUT: plots and results presented in paper # CMD TO RUN: bash reproduce-r...
f36306435527c6fe6fc29374801e3e8b1f58ecf5
476
#!/usr/bin/env bash python run_ner.py \ --pretrained_model_path models/cscd_R_based_on_google_zh_600000_best.bin \ --vocab_path models/google_zh_vocab.txt \ --output_model_path ./models/ner_amttl_bert_cscd_mlm.bin \ --train_path datasets/amttl/train.tsv \ --dev_path datasets/amttl/dev.tsv \ --test_path datasets/amttl/t...
23c67f1dc43502951757f141324a8a385a69f199
934
pkgname=kuserfeedback pkgver=1.0.0 pkgrel=1 pkgdesc="Framework for collecting user feedback for applications via telemetry and surveys" arch=('x86_64') url="https://github.com/KDE/kuserfeedback" license=('MIT') depends=('qt5-declarative' 'qt5-svg') # 'php' optional, check what needs with plasma 5.15 makedepends=('extr...
355312343068c3a7cf4b2218a6b25506f56558c3
2,306
#!/bin/bash set -euo pipefail USAGE="Usage:\n\t$0 userid disk_soft_limit disk_hard_limit \nEg:\n\t./add_user.sh xiahouzuoying yitingshuang 2T 3T " Group='yitingshuang' NfsQuota='2T' NfsHardQuota='3T' # IQUOTA='10^8' # IHQUOTA='10^8' if [ "$#" -eq 0 ]; then echo -e $USAGE exit elif [ $# -eq 1 ]; then ech...
e52ed19b48bf214f6a5fea7d1dd76b871afcd188
842
# Maintainer: Arch Haskell Team <arch-haskell@haskell.org> _hkgname=PTQ pkgname=ptq pkgver=0.0.5 pkgrel=3 pkgdesc="An implementation of Montague's PTQ." url="http://hackage.haskell.org/package/${_hkgname}" license=('LGPL') arch=('i686' 'x86_64') makedepends=('ghc' 'haskell-containers=0.3.0.0' 'haskell-haskell98=1.0.1.1...
a6f9f4a5958be4832317cd11c4f2ec6e733a5af7
242
#the -u flag runs python in unbuffered mode so that "print" #statements get written to stdout as they happen, #rather than in batches every now and again (makes) #tracking the job a bit easier with the output files python3 -u $WD/runcode.py
719e5d63bca1da5c342dff90979d83518afc8de0
528
#!/bin/bash # get column one from a comma-separated value file, store as .tmp tail -n +2 data/treatments.csv | cut -f 1 -d ',' - | sed "s/\"//g" > .tmp while read sample do echo $sample # level can be replaced with genus, species, family, etc. level="order" wget 'http://metagenomics.anl.gov/metagenomics.cgi?page=...
7bfd415f637ade23406c381c597750a433310a99
762
#!/bin/bash set -e if [ $# -ne 1 ]; then echo "usage; $0 <new project name>"; exit 0; fi; if [ -e $1 ]; then echo "directory already exists"; exit 1; fi; mkdir $1; LINKEDSOURCES="crt-ram.s crt.s \ syscalls.c syscalls.h \ lpc21xx.h lpc22xx.h olimexh2294.h \ core.h core.c config.h .gdbinit \ interrupts.c interr...
f2f10bb7eb324765e9878cb2146046e5ffae0f2b
80
#!/bin/bash for i in `seq 1 1000` ; do echo $(( ($RANDOM % 2000) - 1000)) done
2aedfde8652527ba5e8d4c21ba9f5513aabc2e3b
637
#!/bin/sh # modeled after https://github.com/jasonrudolph/keyboard#installation set -e which -s brew || (echo "Homebrew is required: http://brew.sh/" && exit 1) brew bundle check || brew bundle # Prepare custom settings for Hammerspoon mkdir -p ~/.hammerspoon if ! grep -sq "require('timeflow')" ~/.hammerspoon/init...
b7081f9e1dfcc9f86836bfccca923db938cf9a7c
494
# EmailVuln BERFUNGSI UNTUK MENCARI EMAIL YAHOO YANG VULN ATAU UDAH MATI KAMU BISA MEMAKAI UNTUK HACK FB DENGAN METODE CLONING EMAIL PAKAILAH DENGAN BIJAK YA ;) # Cara Pakai Harap kamu mempunyai kuota internet #### $ apt update && apt upgrade #### $ apt install git #### $ apt install python2 #### $ apt install figlet #...
5f8aa46d9b9c85911f8f8f47f870fdb5de7a8e06
525
#!/bin/bash export CODACY_PROJECT_TOKEN=9a7d084ad97e430ba12333f384b44255 cat lcov.info | codacy-coverage export CODECOV_TOKEN="734bc9e7-5671-4020-a26e-e6141f02b53d" codecov -t 734bc9e7-5671-4020-a26e-e6141f02b53d export CC_TEST_REPORTED_ID="e181ad1424f8f92834a556089394b2faadf93e9b6c84b831cefebb7ea06a8328" cc-test-re...
e87ea3ccc704a97842bb27895754b36167573671
4,389
#!/bin/bash ###################################################################### # Author: jrjbear@gmail.com # Date: Wed Feb 5 20:19:47 2014 # File: convert2jpg # # Usage: convert2jpg [-Sq] [-s N] [-w N] [-c S] image # Description: A helper script tool wrapping NetPBM utilities ######################################...
2e4209b4ec812885379b3b5f03b28b9ede3c5186
649
#!/bin/bash # method: htlc_changed # $1: short_channel_id # $2: node_id # $3: our_msat # $4: htlc_num DATE=`date +"%c %N"` echo { \"method\": \"htlc_changed\", \"short_channel_id\": \"$1\", \"node_id\": \"$2\", \"date\": \"$DATE\", \"our_msat\": $3, \"debug\": \"htlc_num=$4\" } | jq . # changes in amount if ...
15f4fbe9505d8526b1b44f3fef58a93892043b30
1,007
# define path to data BASE_DIR=/mnt/database_exports/data # local database authentication LOCAL_DB_USER= LOCAL_DB_PASS= # remote database authentication REMOTE_DB_USER= REMOTE_DB_PASS= REMOTE_DB_HOST= # number of bytes to trigger split SPLIT_FILE_SIZE=1073741824 # arguments to split SPLIT_SIZE_PARAM=1024m # max s...
54bc65eb7dd0204418a28f5de4bbae62041bc447
1,952
#!/bin/bash #Clean the build pushd ~/OMGB . ../OMGBOT/branch_reset.sh #make clobber popd #Pull config from file. . OMGBOT/OMFBOT_config pushd ~/OMGB #Pull in all new changes, and reset back to HEAD to be sure no testing commits are included. repo forall -c git branch -D mecha repo forall -c git reset HEAD --hard r...
788177e54c119296437e10159db939af403819eb
2,149
#!/bin/bash # The MIT License (MIT) # # Copyright (c) 2020 NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without l...
a35231050b95dac347c0dd1634d446b34bafd6b0
639
#!/usr/bin/env bash # A desirable attribute of a sub-script is that it does not use global env variables that # were created by its parents (bash and system env vars are ok). Use function arguments instead to # pass such variables # There should be scarce exceptions to this rule (such as a var that contains the script ...
e3c160647ec0dcbaeb3a995f0e748c89eaf51f5f
126
#!/bin/bash emailer="/root/scripts/utils/emailer/emailer" $emailer -e -s AUTOUPDATE /root/scripts/utils/autoupdate/autoupdate
168209ef8ff21ef5850403022265aa14fa56586a
441
#!/bin/bash sudo apt install -y python-gps python-serial libpython-dev python-numpy python-scipy swig python-pil python-flask python-gevent-websocket python-opengl python-pip sudo pip install setuptools sudo pip install ujson sudo pip install pyudev sudo pip install pyglet sudo pip install pywavefront cd ~ git clone...
c9030552e25c20d13e57b588fdaa679996027cac
231
DOCKER_NET=$1 docker run \ -v "$HOME/.ssh" \ --name kudu-master \ -p 6066:6066 \ -p 7051:7051 \ -p 7077:7077 \ -p 8051:8051 \ -p 8080:8080 \ -d \ --net=$DOCKER_NET \ -h kudu-master \ --entrypoint "/init.sh" \ docker-kudu \ master
3445a32e4e6da6a4d0521ff303760d9c01ba9ed6
295
# https://discordapp.com/api/oauth2/authorize?client_id=CLIENT_ID_DO_BOT&permissions=347200&scope=bot # # Alpha Vantage # https://www.alphavantage.co/ export NPC_APIKEY= # Discord # https://discordapp.com/developers/applications/ export NPC_TOKEN= export NPC_TOKEN_DEBUG= export NPC_DEBUG=true
b35f401a7a2c1ea182fca8aba1575d3f3260cf00
66
NODE_ENV= DATABASE_URL= JWT_SECRET= PORT= RAVE_SECRET= RAVE_PUBLIC
e86954e985d18c002ff4c6cd16f3be53ea5569c6
234
#!/bin/sh openssl ca -batch -key mypassword -config configs/openssl-ca.cnf -policy signing_policy -extensions signing_req_client -out generated/postgresclientcert.pem -infiles csr/postgresclientcert.csr rm csr/postgresclientcert.csr
86aaa73086d1c4380092f29dc95d8eac3390f5d8
26
ACCOUNT_ID= BCOV_POLICY=
ccb564d785d703d3db282c7c22ead637b7bb8b93
298
#!/bin/bash #SBATCH --cpus-per-task 4 #SBATCH -o ./output-scaling-sync/slurm-%j.out # STDOUT #SBATCH --time 240 module purge module load openmpi/gnu/2.0.2 module load mosek/8.1.0.64 module load eigen/3.3.1 mpirun $SCRATCH/mcbb-mpi/mcbb -f $SCRATCH/mcbb-mpi/test_data/er__0_5__80__2.csv -m 200 -s
04b80ed70c826a754f01cf4e046236e6c063632a
1,504
#!/usr/bin/env bash # 10gen repo for mongo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list # Install needed packages apt-get update apt-get install -y \ build-essential \ ...
844d7d1636ba49faecb84f18b7175fae4c845cc3
410
#!/bin/bash set -e # exit on error set -x # echo commands if [[ $TRAVIS_COMMIT_MSG == *"[ci disable examples]"* ]]; then echo echo " SKIPPING EXAMPLES TESTS --- disabled by commit message" echo exit 0 fi py.test -s -v -m examples \ --tb line \ --diff-ref FETCH_HEAD ...
dc98b59d7e0c9fc271f80ffb59854605ef5cda77
3,669
#!/bin/bash #BURG Theme (background) editor version 0.2 by HoKaze #runs this script as root if not already chk_root () { if [ ! $( id -u ) -eq 0 ]; then echo "Please enter root's password." exec su -c "${0}" # call this script as root exit ${?} # since we're 'execing' above, we wont reach this exit ...
8947b90d5143041c550fdb07c1608823ae4bd25b
2,088
#!/bin/bash # Example call: # /home/mccarthy/MUSE/tools/make-jcorpus/make-full-jcorpus-addendum /muse/jcorpus /muse/jcorpus/logs # E.g., JROOT is /muse/jcorpus JROOT="$1" # E.g., LOGDIR is /muse/jcorpus/logs LOGDIR="$2" # current script dir (currently "$MUSE"/tools/make-jcorpus ) X_SCRIPTDIR="$( cd "$( dirname "${...
2d7fd482099a7d8e13ceb9a415f78c2d61a7b59e
602
#! /bin/sh # Find the project directory. # This script traverses from the current directory to the root directory and finds the .git directory. # If the script found the .git directory, the script prints the parent directory of .git as the root of the project directory, and returns 0. # If not found, the script return...
4f68c0a2d349bda51655ff5fed10a4aa683236ee
977
#!/bin/bash cd rte-www echo "Copying logs" cp ../rte/logs/* ./logs/. git pull if [[ ${OV_ARCH_BITWIDTH} == "32" && ${CC} == "gcc" ]]; then echo "Cleaning up log dir (leave the 50 newest)" mkdir ./logs/tmpSafe mv -v `find ./logs/ -maxdepth 1 -name 'acplt_build*.log' -type f -printf '%p\n' | sort -n | tail -50 |...
37c076bfb58bc7bcf0544fdf5c4ddc56d431b785
194
set -euo pipefail VERSION="$1" test/e2e/setup_clusters.sh test/e2e/setup.sh "$VERSION" test/e2e/test.sh "$VERSION" test/e2e/test_export.sh test/e2e/tear_down.sh test/e2e/tear_down_clusters.sh
cf4901d8bd78dbadff5308294b22132ba434cc8b
1,331
cd gitbusybox git pull > gitstatus if [ "$1" = "--force" ] then echo Skipping git check. else grep "Already up-to-date" gitstatus > /dev/null if [ $? == 0 ]; then echo "No git updates. Quitting." exit else echo "Starting checking..." fi fi cd .. ./prepareGit.sh ./cleanBusyboxGit.sh ./cleanBusyboxGitAST...
989d59609b7b0edba52a32650eeafa5d30aca59c
772
#!/bin/bash #Subscript for renaming markers for merging with external data (1KG, etc) WORKSPACE=$1 SCRIPT_DIR=$2 POP_GEN_CLEAN_DIR=$3 mkdir -p $WORKSPACE pushd $WORKSPACE #Turn all marker names into CHR_POS format, for merging cat $POP_GEN_CLEAN_DIR/04.pruned.bim | sh $SCRIPT_DIR/clean_plink_report.sh | awk 'BEGIN{FS...
c864609c5937834ed30d74f0a53086391fbffddf
75
git status git add . git commit -m "参照element ui 组件开发" git push
167161978f9d9b012fc9aad776d014acb0ea4da1
134
DB_CONNECT = mongodb+srv://sajju:sajju@cluster0-y20uz.mongodb.net/test?retryWrites=true&w=majority TOKEN_SECRET = gdfbfgnnnngbbfbgfbf
022bfe301f8f59114d193e9eebbadfae77063b13
545
#!/usr/bin/env bash COMMIT="$(git rev-parse --short HEAD)" curl https://app.getsentry.com/api/0/projects/avatech/web-client/releases/ \ -u c8d2219c66e54cb1bfe5142927bbc116: \ -X POST \ -d '{"version": "'$COMMIT'"}' \ -H 'Content-Type: application/json' curl https://app.getsentry.com/api/0/projects/avatech/we...
43567616c55b445198a976ee13ff89c43ea70e49
710
#!/bin/bash # Write by afei # 1.install Tasla 440 #wget http://cn.download.nvidia.com/tesla/440.64.00/NVIDIA-Linux-x86_64-440.64.00.run touch /etc/modprobe.d/blacklist.conf cat >> /etc/modprobe.d/blacklist.conf << EOF blacklist nouveau blacklist lbm-nouveau options nouveau modeset=0 alias nouveau off alias lbm-nouvea...
baf0d4050ab76c35280c49580210c53927034a6a
554
#!/bin/sh # usb function device driver autotest shell-script set -e #set -x echo "\n**********************USB FUNCTION SERIAL SETTING**************\n" #modprobe device $CMD_SSH <<ENDSSH $SHELL_SOURCE_CODE/$DRIVER_PATH/usbfs_modprobe.sh g_serial ENDSSH sleep 5 cmd="ls /dev/ttyACM0" echo $cmd if $cmd | grep "ttyA...
f34ce372d3e18f8c6f9e7ac711ddd6cbb478c9f0
416
#!/bin/bash ## 4 Feb 2008 # Altered to use basepop11, rather than test for setarch # 25 Dec 2007: altered to use 'bash' instead of 'sh' ## $poplocal/local/com/startup/run-eliza ## run this in a directory containing the poplog.sh startup script ## created when poplog is installed, or a copy of it. ## Aaron Sloman ## 2...
083751c603a3faf8ec03b51090e9868f8b0fc734
70
HERE=$(dirname $0) cd $HERE cmake -DCMAKE_CXX_COMPILER=g++-7 . make
82895e7ef9ffdef9503033ace4fc0a492630c867
264
#!/bin/sh set -u has() { type "$1" > /dev/null 2>&1 } setup_swiftenv() { git clone git://github.com/kylef/swiftenv.git "$HOME/.swiftenv" } setup_lints() { has swiftenv || setup_swiftenv brew install swiftlint } setup_swift() { setup_lints } setup_swift
87f29e852f9c3983ac8fd3808588a8f26de8778a
275
#!/bin/bash # Downloads an example edge list from : # http://snap.stanford.edu/data/ego-Facebook.html wget http://snap.stanford.edu/data/facebook_combined.txt.gz gunzip facebook_combined.txt.gz # We must add the number of nodes sed -i '1s/^/4039\n/' facebook_combined.txt
674042d0b00c6adb086694be61f813b85d1e5c55
970
#!/bin/bash FILE=$(find . -name "makelist.txt") find . -name "*.mak" | xargs rm -f for list in $FILE; do _dir=`dirname $list` _mod=`basename $_dir` _makfile="$_dir/`basename $_dir`.mak" echo "#############################################################################" > $_makfile echo "#" ...
df6d00f0a6b5ed640876787872e075951f7e5772
384
#!/bin/bash fileNameThatContainsTheWords=~/wordList.txt echo "file that contains the words is: "$fileNameThatContainsTheWords wordsCountInTheFile=$(wc -w < $fileNameThatContainsTheWords) echo $wordsCountInTheFile randomWord=$(($RANDOM % $wordsCountInTheFile)) echo "inde x of the word to be printed " $randomWord word=$...
dbac7c54f24139bf31f52ad5fb2b17019b8f1036
62
sh configure_env.sh python database/retrieve_data.py resources
14e8a2ff0d32afa123d80876c126daa22232ac49
2,160
#!/usr/bin/env bash # # external tools: none (only integer operations). # # V1 : Initial version. # V2 : Using reference instead of subshell, as of # https://stackoverflow.com/questions/540298 # moved valid numbers in parseval function. # V3/4 : added some quotes following suggestions # set to mask ...
6828aa139bbbd2d692995c5e8e844ffa564aa4b2
148
#!/usr/bin/env bash #!/bin/bash set -e #docker build -t edgify:0.1.0 ./base npm install npm run build docker build -t untadee/fitbit-api:latest .
73085e6237d1d935bab3bdfe71e9bd5ecb681f20
401
#!/bin/bash sed -i "6c Exec=sudo sh ejecutar_solofusion.sh" /home/orangepi/Desktop/AbrirsoloYSF.desktop sed -i "7c Icon=/home/orangepi/SCRIPTS_ORANGE/SOLO_YSF.png" /home/orangepi/Desktop/AbrirsoloYSF.desktop sed -i "11c Name[es_ES]=Abrir solo FUSION" /home/orangepi/Desktop/AbrirsoloYSF.desktop sed -i "12c SOLOFUSION=...
71605aad106808b9e90174d9957d88f4e235e643
889
#!/bin/sh # reset login for StorjAdmin storj_pw_reset () { local cfg="/usr/local/www/storjadmin/data/storjconfig.json" local U=$(cat "${cfg}" | grep username | cut -d '"' -f 4) local P=$(cat "${cfg}" | grep password | cut -d '"' -f 4) prompt_yes () { # prompt [YES|no] while true; do read -r -...
470b6ddd875ed7b711099cb7c32216f968a7d870
576
export headOne="<head><title>Dalton's Kitchen</title></head>" export headTwo="<head><title>Dalton's Sink</title></head>" export bodyOne="<body><p><a href = "/var/www/html/A/A.html">Boop</a></p></body>" export bodyTwo="<body><p>We've even thrown in the kitchen sink!</p></body>" #enter var/www/html cd /var/www/html #pla...
4f4efcdb4a18ea2d8169d9d4beb72db4da79e46a
170
#!/bin/sh {{#if cfg.automate.enable ~}} knife ssl fetch -s {{cfg.automate.server_url}} --config-option trusted_certs_dir={{pkg.svc_config_path}}/trusted_certs {{/if ~}}
70265695092bfaedd33a91997c4af7267e8bb455
158
_ohmyzilsh_get_random_theme () { theme_names=(${(k)zsh_themes}) return $theme_names[$RANDOM%$#zsh_themes] } source $zsh_themes[_ohmyzilsh_get_random_theme]
ad66a37b112de7c509f0297ee8d4a82655deefc2
69
BOT_TOKEN=ODA1ODU2NzYzMTMwODA2Mjky.YBg-mA.C6uZKdYXTfwrz7eSskPBmD7_0c8
4952ca576ab03ec7355dd714acb9beb9a1542766
275
gdbus-codegen --interface-prefix org.bluez --generate-c-code gdbus-generated --c-generate-object-manager interface.xml gcc -Wall -Werror -I. dbus-test.c gdbus-generated.c `pkg-config --cflags --libs glib-2.0 dbus-glib-1 gio-unix-2.0 libpico-1 gtk+-3.0 bluez` -o dbus-test
6feaf57084883eb70eade8d29d04bf405e31400d
4,199
#!/bin/dash # author: Heng-Chuan Lin (z5219960@unsw.edu.au) # class: 9041 soft-con # file description: remove the file from cached or cached + workingdir # written in 14/07/2019 forced=0 cached=0 current=`ls -1 .legit/repo/master/commit | tail -1` for argv in $@ do if [ $argv = "--force" ] then forced=1 ...
8ec9597697b59e21075d3f30e93d4de638b3c4e3
3,766
#!/bin/bash ## This script will run bash commands (on RHEL 7 and Centos 7) according to "Virtual Machine Checklist" and dispaly them in coloer ## each number corresponds to the number on the XLS sheet ## To use the scrip run in a bash sheel USER@SERVER "bash -s" < script ## This scrip will run as root sudo -i ## ...
a9c0aa5fcc40f2e0abc381bf43a30ad424a0dc0c
362
#!/usr/bin/env bash # Copyright (c) 2017 Hitachi, Ltd. All Rights Reserved. # # Licensed under the MIT License. # You may obtain a copy of the License at # # https://opensource.org/licenses/MIT # # This file is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OF ANY KIND. set -eux source sh/env.sh pkill -f -...
cd1f01bc1d56da987b4a143bfecb449a9371e7ce
506
#!/bin/sh #tmux -2 attach-session -d -t mydemo #tmux echo "pretty realistic virtual typing in window 1" | randtype -m 1 -t 5,20000 #echo i"pretty realistic virtual typing in window 2" | randtype -m 1 -t 5,20000 session_name=mydemo window=${session}:0 pane=${window}.0 tmux new-session -d -s ${session_name} tmux split...
6cb911ea51ac64f569628d54e6687ada22020396
18,515
#!/bin/bash # # Developed by Fred Weinhaus 4/14/2008 .......... revised 1/17/2022 # # ------------------------------------------------------------------------------ # # Licensing: # # Copyright © Fred Weinhaus # # My scripts are available free of charge for non-commercial use, ONLY. # # For use of my scripts in co...
0669a637e0aaf7208dbdc92e68f462e942675eeb
252
#!/usr/bin/env bash set -eo pipefail [[ $DOKKU_TRACE ]] && set -x plugin_trigger_cmd() { declare desc="trigger an arbitrary plugin hook" local cmd="plugin:trigger" [[ "$1" == "$cmd" ]] && shift 1 plugn trigger "$@" } plugin_trigger_cmd "$@"
9f8bf9fcd445c664bdcfe9d2ba8c1221a11d1549
988
#!/usr/bin/env sh test "$#" -ge 1 && y="${1}" && shift test -z "${y}" && y=$(date +%Y) ld="${HOME}/app/sec/ledger/data" ls="${HOME}/app/sec/ledger/scripts" test -d "${ld}/${y}" && exit 1 printf 'Generating ledger files\n' printf ':: year ' mkdir -p "${ld}/${y}" touch "${ld}/${y}/year.dat" printf '[ok]\n' printf ':...
dd4ac90426dc1c644d43fd31d224601896e4ac54
300
# Read from the file words.txt and output the word frequency list to stdout. # https://leetcode.com/problems/word-frequency/discuss/55462/Solution-using-awk-and-pipes-with-explaination awk '\ {for(i=1; i<=NF; i++){Dict[$i]++;}}\ END\ {for(i in Dict){print(i, Dict[i]);}\ }' words.txt | sort -nr -k 2
0a14b48df54310e2a13c0ca9127ad822c9a3ba01
1,603
#!/bin/sh #======================================================================================================================= # Copyright © 2021 Mark Dumay. All rights reserved. # Use of this source code is governed by The MIT License (MIT) that can be found in the LICENSE file. #=================================...
9c5b6eff7ffb2b8692b24598503d0aaf46a0185d
3,725
#!/bin/bash set -u ############################################################### # Lorenzo Cocchi <lorenzo.cocchi@softecspa.it> # # # # Script per identificare il device su cui e' risiede la `/` # # ex.: /dev/sda, /dev/cciss/c0d0 ...
0e1427c7bbd4f053e0a926f4521c439382021d80
869
#!/usr/bin/env bash HDFS_SITE_PATH=/etc/hadoop/conf/hdfs-site.xml echo 'rename namenode73 to vm1 on vm1' echo 'rename namenode76 to vm2 on vm1' ssh root@vm1 "sed -i 's/namenode73/vm1/g' ${HDFS_SITE_PATH}" ssh root@vm1 "sed -i 's/namenode76/vm2/g' ${HDFS_SITE_PATH}" echo 'rename namenode73 to vm1 on vm2' echo 'rename ...
c7b3e3775c8bb0060a7542ae8034b6894a610b34
317
#!/bin/bash if [ ${TASK} == "lint" ] || [ ${TASK} == "all_test" ]; then if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then ./tests/scripts/task_lint.sh || exit -1 fi fi if [ ${TASK} == "build" ] || [ ${TASK} == "all_test" ]; then ./tests/scripts/task_build.sh || exit -1 fi echo "All travis test passed.."
e94470f19c54ace9e915ed64cd48a8b009b17ad2
138
#!/bin/bash export PATH="$PATH:/root/.dotnet/tools" dotnet ef database update dotnet watch run --no-restore --urls http://0.0.0.0:5000
bf85d12160ad64461431f4a9141d9719e6c84244
221
#!/bin/bash echo "Starting Cam Stream => $1" nohup RPI_Stream $1 0<&- &>/dev/null & sleep 1 echo "Tweak Nice values" sudo renice -15 $(pgrep raspivid) sudo renice -15 $(pgrep tee) sudo renice -15 $(pgrep nc.traditional)
47dab84127ebfaf51b7bc6050c1464065b31c563
4,795
#SQUID CONFIG: DEBIAN SoftRelease="SquidAuto 1.0.0" AuthorIpRange="199.91.71.193/32" #PORT=$(( RANDOM % ( 65534-1024 ) + 1024 )) PORT=2012 function authorIps(){ echo "AuthotIpRange: "$(cat /etc/squid3/squid.conf | sed -n 's/\<acl mymaster src \(.*\)/\1/p') [ -z "$1" ] && read -p "Adding New IpRange:" newiprange ...
a317b51b88cc54b02b6b085b0807b0d1fd3518cf
1,361
#!/bin/bash GROUP=$(stat -c '%G' /dev/ttyS0) YAD_TITLE="Grant permissions" TEXT1="\ <b>WARNING\\n\\n\ The Arduino IDE will not be able to upload programs to boards</b> because this user (<tt>$USER</tt>) does not have permission to access USB boards. To fix this, please open a terminal and run the following command.\\...
f49ccc7fe9a4798d6bb103909e4118bc1a0b2d42
86
#settings SECRET_KEY='2a!!*s5h#xival-ky=z)9fwp()jh)fk@pyax+mhc)g-d3xdqs+' DEBUG=True
12184f0e560bec7046d63ff6bc2c0c1f2695960e
127
#!/bin/bash set -e -u -x go install -v github.com/onsi/ginkgo/ginkgo ginkgo -r -failOnPending -randomizeAllSpecs -race "$@"
cba86f4fcb62d6588f6d256c3ab627c8eec5993e
357
#!/bin/bash echo "Parameter1: ${1}" echo "Parameter1: ${2}" echo "Parameter1: ${3}" echo "" X=0 while [[ $X -lt 5 ]] do echo "yayer ${X}" X=$((X+1)) done echo "" while [[ ${#} -gt 0 ]] do echo "The number of parameters: ${#}" echo "Parameter1: ${1}" echo "Parameter1: ${2}" echo "Paramet...
c036e92d1b1fef9d35f25f413db95a89e8d13529
716
targetWidth=8.5 #scale=`Rscript -e "message(round($targetWidth/$width,5))" pdfcrop $1 tmp.pdf width=$(bash pdfScale.sh -i tmp.pdf|grep Inch|sed 's/[^0-9]\+\([0-9.]\+\) x.*/\1/') height=$(bash pdfScale.sh -i tmp.pdf|grep Inch|sed 's/[^0-9]\+\([0-9.]\+\) x \([0-9.]\+\)/\2/') scale=`echo "scale=5;$targetWidth/$width"|bc -...
ae6116103587b3bc32adabbb5316d95c5b322d05
455
#!/bin/bash if [ -t 1 ]; then target="image_dict.js" else target="/dev/stdout" fi ( echo -n "this.imageDict = this.imageDict || {}; this.imageDict.src = {" for file in "$@"; do file=$1 shift echo -n '"' echo -n "$(basename $file)" echo -n '":"' echo -n 'data:image/' echo -n "${file#*.}" echo -n ';...
cec3f291e5a4123d18eb25566774ce4bd46f7655
2,196
#!/bin/bash #TODO sur une carte SD # install SD # increase freq CPU # installation nouveau kernel + wifi5Ghz + i2c 100kHz # f2fs # update # desactivation des services non utiles # config threads # config network resolv.conf ? #Example: deb #user@host ~ $ scp linux-image-*.deb robot@ev3dev:~ #user@host ~ $ ssh robot...