blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
95c2534568b0cbe3e87561516c8d5c0801f2cdf3 | 61 | ansible-playbook -i hosts --skip-tags "cleanup" playbook.yml
|
56920f16439abbc2fb86fdb457b74a11fd990dd5 | 329 | #!/bin/sh
mkdir $HOME/libxml2
tar -zxvf libxml2-2.6.31.tar.gz
cd libxml2-2.6.31/
./configure --prefix=$HOME/libxml2 > /dev/null
make -s -j $NUM_CPU_JOBS
make install
cd ..
rm -rf libxml2-2.6.31/
rm -rf libxml2/share/
echo "#!/bin/sh
cd php-5.2.9/
make -s -j \$NUM_CPU_JOBS 2>&1" > time-compile-php
chmod +x time-com... |
970090c37142fd35d87cc403ec5e55ad476b41a2 | 160 | #!/bin/bash
# Move closer to the code
cd src/
# Install additional packages
npm install
# Compress the Lambda function
zip -r ../amzn-alexa-skill-demo.zip .
|
35979903d238e550a0ef99fff55352e4dc9a0109 | 2,004 | #!/bin/bash
pick1() { gshuf -n 1; }
adj=$(pick1 <<- EOF
admiring
adoring
agitated
amazing
angry
awesome
berserk
best
bubbly
big
boring
clever
cocky
cranky
desperate
determined
distracted
dreamy
drunk
ecstatic
elated
elegant
evil
fervent
focused
furious
gigantic
gloomy
goofy
grave
grumpy
happy
high
hopeful
hungry
insa... |
7fbdbb994510cf6eb0ceaf234e1960c34c4127a2 | 208 | #!/bin/bash
source "${SCRIPTSDIR}/config.sh"
make_uwsgi_config() {
echo "Generating uwsgi config file..."
cat ${UWSGI_CONF_TEMPLATE} \
| python -c "${PYTHON_JINJA2}" \
> ${UWSGI_CONF}
}
|
a0b313e86f4bbef053b25fee7fb0384a532ebd05 | 932 | #!/bin/bash
# needs a pbuilder:
# sudo pbuilder create --distribution stable
# sudo pbuilder update
set -e
MINID="mini-dinstall --config=mini-dinstall.conf"
$MINID -k >/dev/null 2>&1 || true
$MINID -k >/dev/null 2>&1 || true
$MINID -k >/dev/null 2>&1 || true
rm -rf ~/debian_archive
$MINID
./quodlibet.py -ddebian
./m... |
c7f5692e5d691cd1779d15def1aaba65e821c60e | 422 | CPAN="file:///home/ftp/pub/CPAN"
export PERL_CPANM_OPT="--mirror $CPAN --mirror-only"
alias cpan-outdated="cpan-outdated --mirror $CPAN"
[[ -f ~/.aliases ]] || touch ~/.aliases
source ~/.aliases
alias realias='$EDITOR ~/.aliases; source ~/.aliases'
if [ -e ${ZDOTDIR:-$HOME}/.zlogin.local ]; then
source ${ZDOTDIR:... |
eb0e05e90cc9c837482d86400deac0ea9687e855 | 1,723 | #!/bin/bash
# Usage function
function usage(){
echo -e "Usage : $0 [options]"
echo -e "\nOptions :"
echo -e "\t-p <path>: The path where all tools are stored"
exit 1
}
# Colors
RED='\033[0;31m'
Blue='\033[0;34m'
NC='\033[0m' # No Color
# Empty array to store all raised errors
errors=
function isGit... |
b79126df90d236cc1f362f62a0e581af944a19d0 | 123 | #!/usr/bin/env bash
#Bash script that displays all active IPv4 IPs on the machine its executed on.
sudo nc -l localhost 98
|
10610b608169ac5c90bab09d89da2d4824664bc7 | 3,259 | export PROMPT="%n@%m%\:%~$ "
export RPROMPT="%(?..%?)"
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git kube-ps1 docker docker-compose)
source $ZSH/oh-my-zsh.sh
# ~/bin
[ -d "${HOME}/bin" ] && export PATH="${HOME}/bin:${PATH}"
[ -d "${HOME}/.yarn/bin" ] && export PATH="${HOME}/.yarn/bin:${PATH}"
... |
e9c21768f04e0d1b9fbe7d4a9581ee77950ffd03 | 762 | #!/usr/bin/env bash
# time_to_s.sh converts a time string to seconds
# usage time_to_s.sh time_string...
# outputs floating point number
# errors EINVAL
SOURCE_FILE="$(readlink -f "$BASH_SOURCE")"
. "${SOURCE_FILE%/*/*}/lib.sh"
[ "$#" -eq "0" ] && echo "$0 no arguments specified" >&2 && exit 22
TOT="0"
while [ "$#"... |
b41e97f4528b26a26662123bf5ffe3b3d4b984be | 4,446 | #!/bin/bash
#
# Cassandra daemon
#
# chkconfig: 2345 80 20
# description: The Apache Cassandra Project - a highly scalable second-generation distributed database
# processname: java
# config: /etc/sysconfig/cassandra
# pidfile: /var/run/cassandra/cassandra.pid
### BEGIN INIT INFO
# Provides: cassandra
# Required-Start... |
f14df1f2620c0265bc837c7dd87cb1b666b02313 | 1,024 | #!/bin/bash
# env $(cat tmp/tutorial.env| xargs) ./images/tutorial/setup.sh
if [[ "${HOST_IP}X" == "X" ]]; then
echo "Requires \$ETCD_CLUSTER"
exit 1
fi
if [[ "${DOCKER_SOCK}X" == "X" ]]; then
echo "Requires \$DOCKER_SOCK"
exit 1
fi
ETCD_CLUSTER=${HOST_IP}:4001
docker rm -f etcd
docker run -d -p 4001:4001 -... |
a45f01ae3945435325321a48c428505eb11b4712 | 8,511 | #!/bin/bash
. ./cmd.sh
set -e
stage=1
train_stage=-10
generate_alignments=true # false if doing ctc training
speed_perturb=true
snrs="20:15:10"
num_data_reps=3
ali_dir=exp/
db_string="'air' 'rwcp' 'rvb2014'" # RIR dbs to be used in the experiment
# only dbs used for ASpIRE submiss... |
28964e51faa74d89beab9e29303cb72001ebb705 | 282 | #!/bin/bash
CURRENT_DIR=`pwd`
function validateExecution(){
errorCode=$1
errorText=$2
if [ ${errorCode} != 0 ]; then
echo "---------------"
echo "${errorText}"
read input
if [ "$input" == "n" ]; then
exit ${errorCode};
fi
fi
return 0;
} |
433d5d655892cb70b6021099b99edf530e676747 | 313 | #!/bin/bash
TF_INC=$(python3 -c 'import tensorflow as tf; print(tf.sysconfig.get_include())')
g++ -std=c++11 -shared make_sparse.cc -o make_sparse.so -fPIC -I $TF_INC -O2 -D_GLIBCXX_USE_CXX11_ABI=0
g++ -std=c++11 -shared make_sparse_grad.cc -o make_sparse_grad.so -fPIC -I $TF_INC -O2 -D_GLIBCXX_USE_CXX11_ABI=0
|
01128d7b540f380e686d41595556b80d47acd7cf | 21 | #!/bin/sh
exec flrun
|
7d00d74651cb0236513378d3b6aac8dd49cbdf6d | 53 | #!/bin/sh
echo "START TEST..."
npm run test-compiled
|
3799467ca03a8697d17f6508e15121ac4b425c99 | 1,460 | #!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources"... |
b4115a80411d6ba17e4fe70c12775095cabd438f | 644 | #source DefineMassBin.sh ##ARR_MASS=(mass1 mass2 ...)
ARR_DIR=($(ls -d Datacard_M*/))
for DIR in ${ARR_DIR[@]};do
MASS=${DIR%\/}
MASS=${MASS#Datacard_M}
echo $MASS
combineCards.py -S MuonChggfBoostedSR=Datacard_M${MASS}/MuonChggfBoostedSR/CleanFatJetPassMBoostedSR_HlnFat_mass/datacard.txt ElectronC... |
66ab407eabb593e2073377d6ad371b38cdb9a96b | 12,225 | #!/usr/bin/env bash
SCRIPT_NAME=$(basename "$0")
DIR_NAME=$(dirname "$0")
. ${DIR_NAME}/scripts/lib.sh
#set -x
#set -e
#set -u
export OUTPUT_NAME=${OUTPUT_NAME:-""}
# Command Line Arguments
DEBUG=0
FORCE_IMPORT=0
INCLUDE_BUILDS=0
ONLY_IMAGES=0
declare TARGET_PROJECT
declare TAR
declare TAGS
usage() {
cat <<EO... |
922424a3715536605f0875eff84f8dbd1b11ca63 | 879 | #!/bin/bash
# Script to copy over header and library files from the system-wide bluefox driver installation to the ROS driver
# This assumes that the bluefox driver has already been installed system-wide
# This should be run before the first build if the system-wide bluefox driver has a version different from 2.26.0
... |
4c4145a5a5461db460f9453c66fd8108267a3b79 | 257 | source /grid/fermiapp/products/uboone/setup_uboone.sh
echo "Setting up uboonecode v06_50_00"
setup uboonecode v06_50_00 -q e14:prof
echo "Setting up larsoftobj v1_28_00"
setup larsoftobj v1_28_00 -q e14:prof
source /uboone/app/users/cadams/pystack2/setup.sh |
e6d380ddabbd6bb98122a44aefe0f57ce02ccd17 | 35 | #!/bin/sh
echo "Hello World"
date
|
2c40267d5343193bdcd817259c69c69d38f41fe8 | 541 | #!/bin/bash
#compass compile --force
rm controls_ha_theme.txt
echo "MOV ./www/hausautomatisierung-com/custom.js unused" >> controls_ha_theme.txt
find ./www -type f \( ! -iname ".*" \) -print0 | while IFS= read -r -d '' f;
do
out="UPD "$(stat -f "%Sm" -t "%Y-%m-%d_%T" $f)" "$(stat -f%z $f)" ${f}"
echo ${out/... |
c16d1cb752647e8d69e79bb4c682c7ae017ddafa | 582 | while read PATRIC; do
file=`ls /pollard/shattuck0/snayfach/databases/PATRIC/genomes/${PATRIC}/${PATRIC}.PATRIC.features.tab*`
if file --mime-type "$file" | grep -q gzip$; then
zcat /pollard/shattuck0/snayfach/databases/PATRIC/genomes/${PATRIC}/${PATRIC}.PATRIC.features.tab | cut -f6,21 > ~/ben_nandita_hmp_d... |
b99500e3ba14a11ab00514da60b3ff709bfc7039 | 7,498 | #!/bin/sh
# Make sure the usual locations are in PATH
PATH=$PATH:/usr/sbin:/usr/bin:/sbin:/bin
export PATH
key_sha256sums="9c102bcc376af1498d549b77bdbfa815ae86faa1d2d82f040e616b18ef2df2d4 alpine-devel@lists.alpinelinux.org-4a6a0840.rsa.pub
2adcf7ce224f476330b5360ca5edb92fd0bf91c92d83292ed028d7c4e26333ab alpine-dev... |
e4ce9d6df85728653ec8d342486d9ac908262dc1 | 75 | #!/usr/bin/env bash
echo 'main.kts' | entr -rs 'kotlinc -script main.kts'
|
926b6a4340e3481b629c37b602984abfe8bc47c8 | 523 | # $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributpr: Roland Schaeuble <rschaeuble@gmx.ch>
pkgname=pycddb
pkgver=0.1.4
pkgrel=1
pkgdesc="CDDB-Server access from Python"
arch=('any')
license=('GPL')
url="http://pycddb.sourceforge.net"
depends=('python2')
source=("https://downloads.sourceforge.ne... |
12c3c8468bd93abf2501491cdd9c73fc0f0ca82d | 230 | #!/bin/bash
#PBS -l nodes=1:ppn=40
#PBS -l walltime=48:00:00
#PBS -l mem=8gb
#PBS -M sayalip@psu.edu
cd ~/Phadke_Desmarais_paper/SPPQRR_final_analysis/bergan
module load R/3.2.0
R CMD BATCH 03_bergan_cospon_binary_newmodel1.R
|
1e2d1854aa6676fc7984b31724b9f18bb21cedbb | 1,373 | #Compiling SoapySDR and SoapyRemote requires installing git, gcc, g++, make and cmake:
# Debian / Ubuntu:
sudo apt-get install git gcc g++ make cmake
# Red Hat / Fedora:
#dnf install git gcc gcc-c++ make cmake
#Compile and install SoapySDR library and utilities:
git clone https://github.com/pothosware/SoapySDR.git
cd... |
de8c8ef1d4fd403249567d61552b6c15b8d0896c | 30,020 | #!/bin/bash
start=$(date +%s)
if [[ $1 = "-v" ]]; then debug="-v"; shift
else debug=""; fi
dir="$PWD/dev"
# Clean test directory if need to
[ -d "$dir" ] && rm -r "$dir"
# Create test directory
mkdir "$dir"
tearDown() {
if [ -f "$dir/saved_log_times" ]; then rm "$dir/saved_log_times"; fi
}
createProjectWithPara... |
dd0bdbccdb3a57cb4834290fcd7955491272e594 | 978 | #!/bin/bash
#~~~~~~~~~~~~~#
# Run command #
#~~~~~~~~~~~~~#
# qx --no-scratch -c 8 -t 10:00:00 -A norfab 'Scripts/Rarely_Used/Super_CD_hit.sh'
##################
# Directionaries #
##################
DIR_IND=/faststorage/project/norfab/20190903_Transcriptomics/Fasta/
DIR_CD=/faststorage/project/norfab/20190903_Tran... |
241c9f64d2e0176da3e979490b67675643f41ff4 | 304 | #!/usr/bin/env bash
# This file is copied from https://github.com/cgrindel/rules_updatesrc/blob/main/examples/simple/header/header.sh
src="$1"
out="$2"
header="$3"
first_line=$(head -n 1 "${src}")
if [[ "${first_line}" != "${header}" ]]; then
echo "${header}" > "${out}"
fi
cat "${src}" >> "${out}"
|
73a0cf84e749692def373c4a36f9360d1a4c2b18 | 87 | DB_USER=<db-username>
DB_PASSWORD=<db-password>
DB_HOST=<db-hostname>
DB_NAME=<db-name> |
3e105a88de4318f20987506b5ed57d046b4b62a3 | 143 | #!/bin/bash
echo "start var2.sh"
echo $$
echo $PPID
echo "NAME_LOCAL:$NAME_LOCAL"
echo "NAME_ENV:$NAME_ENV"
sleep 3
echo "end var2.sh"
exit 0
|
12dd9031012faafb73d031015d85f9fb5ed04b75 | 4,586 | #!/bin/sh
nvram=/bin/config
smtpc=/usr/sbin/ssmtp
LOG_FILE=/var/log/messages
# email related configs (in nvram get command) :
# email_smtp : smtp server address
# email_endis_auth : smtp sever needs authentication or not ?
# email_username : username for smtp server authentication
# email_password ... |
3eb8adbdd32c14c8510543a3c7e475463c1d4ea9 | 2,282 | !/usr/bin/sh
###################################### script version ##########################################
###################################### se2 satellite only upgrade.sh ##########################################
echo ""
echo ""
echo "This script will backup userfiles and download cu... |
e2ce9d492fb38c9fb681c6ac466d462535ef85c8 | 267 | while getopts "i:" OPTION
do
case "$OPTION" in
i)
FILE=$OPTARG
;;
esac
done
while read line
do
~/group/software/sratoolkit.2.3.5-2-ubuntu64/bin/fastq-dump --split-3 $line
done < $FILE
|
4c149ad1e11e2b3fb72e2981b4e6a5292fcf82fc | 174 | #/bin/bash
# Variables
resourceGroupName="myResourceGroup"
cacheName="myCache"
# Delete a Redis Cache
az redis delete --name $cacheName --resource-group $resourceGroupName
|
03316f4d11bb1c57a1c7962c0750eaf47e1aff2a | 329 | #!/bin/bash
# user eloquentarduino
# token pypi-AgEIcHlwaS5vcmcCJGUwNGQ3MmQ0LTk1NWQtNDg5YS04YzA0LTI0ZmU0M2ZmYTAzMQACO3sicGVybWlzc2lvbnMiOiB7InByb2plY3RzIjogWyJtaWNyb21sZ2VuIl19LCAidmVyc2lvbiI6IDF9AAAGIPjcxQ3sH7qPDg7D-30Ss6dU-41NesEqXNtyxJvqIzZr
#git push origin master -f
rm -rf dist/*
python setup.py sdist
twine uplo... |
61e358c77446e9962e9ee81592798fb694e2b499 | 5,026 | INPUT="flatout2.csv"
STORAGE_BASE_DIRECTORY="/vmail1/crapmail"
MAILBOX_FORMAT=''
DEFAULT_QUOTA='100'
MAILDIR_STYLE='hashed'
STORAGE_BASE="$(dirname ${STORAGE_BASE_DIRECTORY})"
STORAGE_NODE="$(basename ${STORAGE_BASE_DIRECTORY})"
PAST='1969-07-21 02:56:00'
FUTURE='2363-09-27 12:00:00'
DEFAULT_DOMAIN="clientinterwebs.com... |
99c441aa3478a0fa02bde4a6c37b6f63dab5d0cc | 1,485 | #!/bin/bash
#数据库IP
dbserver='localhost'
#数据库用户名
dbuser='root'
#数据密码
dbpasswd='M0yeJi5n'
#数据库,如有多个库用空格分开
dbname='adt_db'
#备份时间
backtime=`date +%Y%m%d`
#备份目录
datapath='/data/mysqlbak/'
#备份输出日志路径
logpath='/data/mysqlbak/'
echo "################## ${backtime} #############################"
echo "开始备份"
#日志记录头部
echo "" >... |
7edfad4693f4b4bcaa4f9cbb929c85330449fc32 | 645 | #!/bin/bash
chmod +x update.py
apt-get -y upgrade
apt-get -y update
apt-get -y install vim mongodb python-pymongo python3-pymongo build-essential python-dev python-smbus python-pymongo python-pip git i2c-tools openvpn
curl -sL https://deb.nodesource.com/setup_8.x | bash -
apt-get -y install nodejs
npm install
servi... |
2ed2e950d0148f321b75cd4a022bd62737cf5a9f | 1,084 | APP_NAME="PROJECT"
APP_ENV=develop
APP_KEY=
APP_DEBUG=false
APP_URL=http://localhost
DEBUGBAR_ENABLED=false
AUTH_CHECK_ALLOWED=4
AUTH_CHECK_TIME=60
AUTH_LOCK_TIME=60
LOG_CHANNEL=stack
LOG_REQUEST=false
LOG_DATABASE=false
LOG_MAIL=true
LOG_CURL=false
LOG_DAYS=30
DB_CONNECTION=mysql
DB_SOCKET=/var/run/mysqld/mysqld.s... |
3940a86367ebd61c8927b7812e067a43ee821ae2 | 459 | #!/bin/bash
## para agregar permisos
# Agregar permisos al script chmod +x ./run.sh
#Levantamos mongo
#sudo service mongod start
#Regresamos a la raiz para crear la carpeta bin
#cd ./../../
#creamos la estructura
if [ ! -d bin ]; then
echo mkdir bin
fi
#compilamos el APIRest1
cd ./APIRest1/src
go build -o "../.... |
0ad2ff7db65afacd498cba35cc1aa772551d366b | 1,625 | #!/bin/bash
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
WORKDIR="$(dirname $SCRIPT_DIR)"
REPOSITORY=cravler/php
PUSH_IMAGE=NO
ADD_TAGS=NO
for i in "$@"; do
case $i in
--repository=*)
REPOSITORY="${i#*=}"
shift
;;
--push)
PUSH_IMAGE=YES
shift
;;
--a... |
f98587192d88b6705271339fe826a2ee1e34ed07 | 34 | bindkey -M viins 'jj' vi-cmd-mode
|
1024b309a11e0196973a66162c2e3821e5e4dcfe | 204 | #!/bin/bash
cd scratch
source $HOME/jupyter_py3/bin/activate
salloc --time=1:0:0 --ntasks=1 --cpus-per-task=2 --mem-per-cpu=1024M srun $VIRTUAL_ENV/bin/notebook.sh
# jupyter lab --port=8889 --no-browser
|
7e194fe4f476477caeb23156b6a34807027650e6 | 243 | #!/bin/bash
if [ ! -d ~/bin ]; then
mkdir ~/bin
#on doit ajouter le dossier dans le PATH
echo "You must add the ~/bin directory to your path"
fi
DIR=$(cd $(dirname $0); pwd)
ln -snf $DIR/git-install-hook ~/bin/git-install-hook
|
c7b1652d475be85431df15a3415c701410f23174 | 586 | #!/bin/bash
set -e
count=0
max_count=500
if [ "$#" -eq 0 ]; then
echo "Usage: repeat-until-exit <command>"
echo ""
echo "Run a given command repeatedly until it exits or ${max_count} iterations reached."
echo ""
echo "Example:"
echo " repeat-until-exit bin/rspec spec/requests/users_spec.rb:9"
exit 1
f... |
cd532f351264649d67e272e9f53b82c5dd04c057 | 1,375 | hive -e "
use ods;
create table ODS_USR_UCS_SUBS_RELA_D
(
ACCT_MONTH string comment 'ACCT_MONTH',
DAY_ID string comment 'DAY_ID',
SUBSCRIPTION_ID1 string comment '主卡',
SUBSCRIPTION_ID2 string comment '副卡',
RELA string comment 'R... |
ef707a4d2aa3a5e00c840348d00bfe4bc754655d | 365 | for file in ~/.{aliases,functions}; do
[ -r "$file" ] && source "$file"
done
unset file
set -o vi # use vi as the terminal readline editting tool
# also useful when pressing 'v' to open-up a vim window
# where you can modify the command that you are currently typing
fpath+=$HOME/code/github.c... |
defc380fcd738d1dbd3929d0877c2fdb062a3117 | 392 | # .env holds sensitive deployment config variables. Do not commit it to git!
# BETA vars = live internet deployment of beta code on test chain
export BETA_CONTRACT_NAME="somecontract.in.testnet" # contract ID in some NEAR chain
export BETA_HOST="beta.example.net" # beta website
export BETA_RSYNC_TARGET="foou... |
7de871295e61ed04dbbcd2018a248692c388cbb3 | 2,917 | #!/bin/zsh
# git-open to open the current branch in github
function git-open() {
CURRENT_BRANCH=$(git branch --show-current)
REMOTE_BRANCH=$(git config --get branch.$CURRENT_BRANCH.remote)
MERGE_BRANCH=$(git config --get branch.$CURRENT_BRANCH.merge | cut -d '/' -f 3-)
GIT_REMOTE_URL=$(git ls-remote --get-url ... |
7677dff8be7fd150413fc1b10c66b30efb3735ca | 1,378 | #!/bin/bash
dart tool/hop_runner.dart analyze_hop
rm -rf test
mkdir test
cd test
mkdir cla
cd cla
dart ../../tool/hop_runner.dart cla cla
pub install
dart tool/hop_runner.dart analyze_libs
cd ..
mkdir cpa
cd cpa
dart ../../tool/hop_runner.dart cpa cpa
pub install
dart build.dart
dart tool/hop_runner.dart analyze_libs... |
0bc6412e52a8b2c91ae2f6f0daae862e39918b8d | 63 | for i in `find | grep ".svn$"`; do
echo $i
#mkdir $i/tmp
done
|
5957178f9db79f96b7da9e0d9da51b028415e85d | 409 | SCORE=$2
if [ -z "$2" ]
then
SCORE=$RANDOM
fi
echo $SCORE
export URL="http://0.0.0.0:8000/test/entry/division_machine/$1/score/$SCORE"
sleep .1
curl -X POST -b /tmp/cookie -s -o /tmp/test_out_record_score_$1.out -w "\npeekaboo - $1 - %{time_total}" -H "Content-Type: application/json" $URL > /tmp/time_record_sco... |
e327e7c8e9f326aaad0e71449171766a98df1912 | 48 | set -ex
bash compose-trees.sh "3.5 3.6" "$PWD"
|
740a9818f5081bdbcbd5c4278f894e37bd6d94a0 | 280 | #!/bin/bash
FILENAME=$1
NEWFILENAME=`echo $1 | sed 's/\.\//\.\.\/veracrypt_1\.17_Source\/src\//g'`
DIFFFILENAME=`echo $1.patch | sed 's/\.\//\.\.\/diff\//g'`
#echo $FILENAME $NEWFILENAME $DIFFFILENAME
diff -uB "$FILENAME" "$NEWFILENAME" | install -D /dev/stdin "$DIFFFILENAME"
|
a0206b7f21860806ecb80b3f09994b251362d4a6 | 78 | APP_KEY=change_me
API_URL=http://localhost
API_CLIENT_ID=1
API_CLIENT_SECRET=
|
be46283da19ee056420d1c2ca37d3fdaa348cc1e | 2,364 | #! /bin/bash
################################################################################
# buildenv.sh
#
# Set up a system-wide Anaconda virtualenv for building TensorFlow.
#
# Requires that conda be installed and set up for calling from bash scripts.
#
# Also requires that you set the environment variable CONDA... |
aad2abe3198335ed60146e294a87be880050b5a3 | 5,984 | #!/bin/bash
source $(dirname $0)/CompatFunctions
helpOnNoArguments=no
scriptDescription="Builds the GoboLinux LiveCD InitRD tree."
scriptCredits="(C)2003-2009 by Hisham Muhammad et al. Released under the GNU GPL."
scriptUsage="[options]"
Add_Option_Boolean "i" "use-system-index" "Generate a tree using the /System/In... |
88eb3ad55a80b7dd48c241d902c02e3afa330abc | 420 | sudo insmod timer_sysfs.ko
gnome-terminal -e "tail -f /var/log/kern.log"
echo "1sec timeout, 3sec sleep"
echo 1000 > /sys/timer_dir/timer_period
sleep 3
echo "0.5sec timeout, 3sec sleep"
echo 500 > /sys/timer_dir/timer_period
sleep 3
echo "0sec timeout, 3sec sleep"
echo 0 > /sys/timer_dir/timer_period
sleep 3
echo... |
18c0498c8eba9d8b71307c1d844374ec701c62ab | 174 | #!/bin/bash
readonly HXCPP_BASE="$TOOLING_BASE/hxcpp/hxcppHaxeNightly"
if [ -d "$HXCPP_BASE" ]; then
lix dev hxcpp "$HXCPP_BASE"
haxelib dev hxcpp "$HXCPP_BASE"
fi
|
d6b440da5c7081a8e2f3d073d562e4dc9d455de2 | 47 | #!/bin/bash -x
DIV=$((6+1))
R=$((RANDOM%DIV))
|
6e389086332d08cd4376990a0b17441f853556d0 | 484 | # Registry to obtain images from
IDOL_REGISTRY=microfocusidolserver
# Version of IDOL images to use
IDOL_SERVER_VERSION=12.7
# Http proxy used to download updates
HTTP_PROXY=
# External licenserver host
LICENSESERVER_IP=
# Path to data to pre-populate the factbank databases
# Should point to directory containing `codi... |
03bb2e0cf2169b3f0aaa1768533e1493c173b9df | 2,062 | #! /bin/bash
function require_root() {
if [ $(id -u) -eq 0 ]; then
return 0
else
echo "Please run me as root."
exit 1
fi
}
function is_running() {
id=$(docker ps -f name=spotifyd -f status=running --format "{{.ID}}")
if [[ $id ]]; then
return 0
else
return 1
fi
}
function container_exists() {
id=$... |
988881967c2dd5a6ec595f49c756ee96e3480f2d | 425 | #!/usr/bin/env bash
#-------------------------------------------------------------------------------
#
# NinjaSentry BattleStation-XS
#
#-------------------------------------------------------------------------------
# Fedora Server Admin Kit
#---------------------------------------------------------------------------... |
e8f9941b157a0b82d8aea5c16ba0fbee966c4ec9 | 248 | if [ $(uname) == "Darwin" ]; then
echo "MacOS detected"
brew install make cmake avrdude avr-libc
else
echo "Debian based linux detected"
sudo apt-get update
sudo apt-get install gcc-avr binutils-avr avr-libc cmake make gdb-avr avrdude
fi
|
8e1a2f09f477e7f6e565ac1a651bb62485fe7d4f | 1,535 | #!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
[[ $1 == '--force' ]] && force=1
for merge in merge rebase; do
merge_options=''
[[ $merge == 'merge' ]] && merge_options='--no-edit'
if [[ -d $merge && $force == 1 ]]
then
rm -rf $merge
elif [[ -d $merge && $for... |
fe6918c4595d1b32c9d0619cb776b4212979ec58 | 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_160_mx_100_mZp_2200_TuneCP5_13TeV/RunIISummer20UL18_wmLHEGEN/*/*/wmLHEGEN_inRAWSIM_*.root|sed 's/^/file:/'>list/list_160_100_2200.txt
... |
a6952302a53efc71647e2eb7cb3915b2b7658a5e | 3,257 | # Set up the prompt
autoload colors
colors
PROMPT="%{${fg[green]}%}%n@%m:%{${fg[yellow]}%}%~%{${fg[green]}%}%j%#
%{${fg[yellow]}%}↪ %{$reset_color%}"
PROMPT2="%{$fg[green]%}%_> %{$reset_color%}"
SPROMPT="%{$fg[red]%}correct: %R -> %r [nyae]? %{$reset_color%}"
setopt histignorealldups sharehistory
# Use emacs keybin... |
dffce2ee168462738d5aab11cb5bf4807da7a3e6 | 1,574 | #!/usr/bin/env sh
# bin/realtime.sh
# Martin Miller
# Created: 2014/07/07
# Simulate real-time
DATA=raw/2nd
BODY=data/bodyHist3.txt
DT=data/dt.fifo
ALT=data/alt.fifo
ACC=data/acc.fifo
QBW=data/qbw.fifo
ANGVEL=data/w.fifo
DISP=data/disp.fifo
#BODYFF=data/body.fifo
pkill slam
pkill sensor
pkill multitap
rosrun rviz rviz... |
edcb049c39eae65597422d3a60256f295f984d20 | 46 | AIT_USERNAME = ''
AIT_KEY = ''
APP_ENV = 'dev' |
46cc194abfc76819904c20a69df99158453d700f | 67 | #!/bin/bash
for I in {1..200}; do
cat data >> add_dup.csv
done
|
22efae031c261ccd00e9cb284568fb51809ade67 | 148 | #!/usr/bin/env bash
wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash
bash install_joplin_cli.sh
|
edd63595d1470b2a5392856bdca93189a2386a16 | 1,157 | #!/usr/bin/env bash
font=TitilliumWeb
fontsize=144
linespacing=-50
background=
foreground=
caption=
gravity=NorthEast
imgsize=1420x900
offset=20x0
filename=
while [ "$1" != "" ]; do
echo $1
case $1 in
-f | --font ) shift
font=$1
... |
ea7187c2018e0edd3cabbade82e86aa03b55c267 | 605 | # not really a script, more a log of commands
obabel cluster-dyad-h.pdb -O cluster-dyad-h.xyz
obabel cluster-tetrad-h.pdb -O cluster-tetrad-h.xyz
# `-l 1` just first docked pose
# `-h` add some hydrogens
obabel -h -l 1 leu_gln_ser_CovidProtease_out.pdbqt -O leu_gln_ser_CovidProtease_out.xyz
# still being rubbish. Nee... |
d00b7d56950698cc6306ad646d972c1c6dde5497 | 35 | sudo apt-get -y install nvidia-331
|
e54d58e26f46557e833333123ca3096c709c9f61 | 539 | #!/bin/sh -xm
sudo echo "requesting sudo privs, to properly launch sub-process..."
if [ ! -f perfcollect ]
then
curl -OL http://aka.ms/perfcollect
chmod +x ./perfcollect
sudo ./perfcollect install
fi
make build
sudo ./perfcollect collect testSession &
sudoprocid=$!
sleep 1
echo `ps --ppid $sudoprocid -o pid=`
p... |
921f6783699924910e62043c584f2e611c814890 | 159 | #!/bin/bash
ROOT=$FINOPT_HOME
export PYTHONPATH=$FINOPT_HOME:$PYTHONPATH
# real time mode
python $FINOPT_HOME/comms/tws_gateway.py $FINOPT_HOME/config/app.cfg
|
a8582a9af7b81426c5ba6586d664ce2e5d947e16 | 382 | #!/bin/bash
# ===========
# = EPUB ME =
# ===========
# folder to epub + epubcheck
# $1 = epub folder path
# $2 = epub name (optional)
if [ $1 ]; then
FOLDER=$1
else
echo "The epub folder path is missing."
exit 0
fi
cd $FOLDER
if [ $2 ]; then
NAME=$2
else
NAME=${PWD##*/}
fi
zip -0Xq ../$NAME.epub mimetyp... |
431f74d33963294702547cc6611aaf9640459477 | 41 | cd src
ls | zip -@ ../makedown.zip
cd ..
|
3b3ef2da1cbbfd36a03c317186a3d55c6d292734 | 319 | #!/bin/sh
#version file name
fileName="version.html"
#read custom file name
if [ -n "$1" ];then
fileName="$1"
fi
info="git branch: $GIT_BRANCH \ngit url: $GIT_URL \nbuild url: $BUILD_URL \nbuild id: $BUILD_ID \n"
echo "============= SAVE VERSION INFO =============="
echo -e $info > $fileName
cat $fileName
|
a0007b9866f9212ec71df8e5f8ae3db993288c91 | 615 | #!/bin/bash
if [[ ! $INSTALL_SCRIPT ]]; then
echo "(!) Error: You must use the installer script."
exit
fi
echo "(+) Installing Git (If Not Installed); Git-Flow; Bash-Completions (If Not Installed)"
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-get install git git-flow bash-completion -y
echo "(+) Copyi... |
ca4cc473a68b6ba266f11a5ffda46c3d682ce1b2 | 57 | #!/bin/bash
docker run --rm -it parana/java-jdk9 jshell
|
8a3eb87bb13269dc1f573e97aaa69f71039c9475 | 1,094 | #!/usr/bin/bash
# OS判断 与 预安装jq;
if grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
DISTRO='CentOS'
PM='yum'
elif grep -Eqi "Arch" /etc/issue || grep -Eq "Arch" /etc/*-release; then
DISTRO='Arch'
PM='pacman'
elif grep -Eqi "Red Hat Enterprise Linux Server" /etc/issue || grep -Eq "... |
001210771ce86024e037be17b8f05883352c6198 | 498 | #!/usr/bin/env bash
url=$1
if [ "$2" != "" ]
then
container=$2
else
container=$(docker ps -qf "name=db")
fi
if [[ $url == *"http"* ]]; then
echo "Error! Enter your URL without http, like: google.com"
exit 0;
fi
docker exec -i $container mysql -umagento -pmagento magento <<< "UPDATE core_config_data... |
458ca9fa1b91fd234c702ed0067103d04b5bec65 | 747 | #! /bin/bash -e
cp "/usr/bin/qemu-arm" "$PROJECT_DIR/chroot/usr/bin/qemu-x86_64-arm"
cp "/usr/bin/qemu-aarch64" "$PROJECT_DIR/chroot/usr/bin/qemu-x86_64-aarch64"
if [[ ! -e /proc/sys/fs/binfmt_misc/arm ]]; then
echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff... |
7fd7c9334dfad490f45553110d9d5839cceeb32e | 357 | #echo "____________________" | tee -a log_tlmy.txt
file_cpu=A2_tlmy_cpu.log
file_tlmy=A2_tlmy_amb.log
file_hd=A2_tlmy_hd1.log
date | tee $file_cpu
sensors | tee $file_cpu
python read_tlmy.py | tee $file_tlmy
df -h | grep /dev/nvme0n1 | tee $file_hd
scp *.log ggancio@tux:~/public_html/pub/Obs/logs/
#echo "__________... |
271388be27b205c305f03b167e67d2e29581af3d | 97 | . ~/dotfiles/darwin/profile/profile
export PATH=~/miniconda/bin:$PATH
export PATH=~/q/m32:$PATH
|
014b149e23deae96e1cf0b932c17ad4b24770ca3 | 653 | #!/bin/bash
TAG=y1a1-v02
user=mjarvis@cori.nersc.gov
nersc=/global/project/projectdirs/des/wl/desdata
for run in $( ls "$DESDATA/EXTRA/red" ); do
echo $run
psfex_dir="EXTRA/red/$run/psfex-rerun"
if [ -e "$DESDATA/$psfex_dir/$TAG" ]
then
cmd="ssh $user 'mkdir -p $nersc/$psfex_dir'"
echo... |
d61abee19712db0b57e51df3c42ad06c96db0368 | 1,141 | #!/bin/bash
extractFiles(){
mkdir sdcard/
mkdir sdcard/install/
unzip -q -o download/wup_installer_gx2.zip -d sdcard
unzip -q -o download/nanddumper.zip -d sdcard
unzip -q -o download/wiiu-extracttosd.zip -d sdcard
unzip -q -o download/homebrew_launcher.v1.4.zip -d sdcard
unzip -q -o download/savemii_mod.... |
4f379736f57793901c26d5e35f6690d3406b04ac | 187 | #! /bin/bash
gcc -o retourne_code_erreur retourne_code_erreur.c
./retourne_code_erreur "param1" "param2"
echo "Valeur de retour : $?"
./retourne_code_erreur
echo "Valeur de retour : $?"
|
1686befe9b94227d725cf7fa7b4016deb53765cc | 225 | #!/bin/sh
set -e
update-alternatives \
--install /usr/bin/surf-alggeo surf-alggeo /usr/bin/surf-alggeo-nox 10 \
--slave /usr/share/man/man1/surf-alggeo.1.gz surf-alggeo.1.gz /usr/share/man/man1/surf-alggeo-nox.1.gz
exit 0
|
35d5b43364f2e9282edecab56256d58520c759cc | 12,223 | #!/bin/bash
# Inputs
APPNAME=$1
CLUSTER_NAME=$2
PROFILE=$3
TABLE_FILTER=$4
READ_TPUT=$5
JSON_OUTPUT_DIR=$6
S3LOCATION=$7
# Hard-codes (but can be changed here)
WRITE_TPUT=0.8 # Used when we generate the Import steps
REGION=us-east-1
RETRY_DELAY=10
# Just vars
INSTALL_DIR=/usr/local/dynamodb-emr
COMMON_JSON=${INSTAL... |
120a73a1f8f1cb7694a34638d4bf9714427aee50 | 478 | #!/usr/bin/env bash
gcloud builds submit --tag gcr.io/samplergan/sample-service ./SampleService/
gcloud builds submit --tag gcr.io/samplergan/user-service ./UserService/
gcloud builds submit --tag gcr.io/samplergan/auth-service ./Authentication/SamplerGAN.AuthenticationService.WebApi
gcloud builds submit --tag gcr.io/... |
fddf15c1775dc7db6fcf6d40bdd7fe839e8265c2 | 45 | firebase deploy --project paullinck-authreact |
298cd280625c55c9e7a6e6a91e8b009049707e5d | 252 | #!/bin/sh
echo "Fixing nginx permissions"
mkdir -vp /var/log/nginx/
touch /var/log/nginx/access.log
touch /var/log/nginx/error.log
chown root:adm /var/log/nginx/
chown www-data:adm /var/log/nginx/*
chmod 755 /var/log/nginx/
chmod 640 /var/log/nginx/*
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.