blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
a9fcde2d117273979cdfe642fa48eca37cd1a412 | 2,360 |
STAR --genomeDir /home/rtm/resources/hg38/star/star_hg38_overhang100 \
--readFilesCommand zcat \
--runThreadN 15 \
--winAnchorMultimapNmax 100 \
--outFilterMultimapNmax 100 \
--readFilesIn /home/rtm/SJlab/deepa/clean_data/HCT_DMSO_HWN2YCCXX_L2_1.clean.fq.gz \
/home/rtm/SJlab/deepa/clean_data/HCT_DMSO_HWN2YCCXX_L2_2.cl... |
da06b3320790d2bf5960a19bc3d99efe73a6d682 | 213 | #!/usr/bin/env bash
[ "root" != "$USER" ] && exec sudo $0 "$@"
# gets the current configured SSID value from wpa_supplicant.conf file
grep -n ssid /etc/wpa_supplicant/wpa_supplicant.conf | awk -F \" '{print $2;}'
|
61169570007c7a3aaf27581eaf0c1fd8a22dc858 | 4,012 | #!/bin/sh
#
# A wrapper around Autoconf that generates files to build PHP on *nix systems.
PHP_AUTOCONF=${PHP_AUTOCONF:-autoconf}
PHP_AUTOHEADER=${PHP_AUTOHEADER:-autoheader}
force=0
debug=0
# Go to project root.
cd $(CDPATH= cd -- "$(dirname -- "$0")" && pwd -P)
php_extra_version=$(grep '^AC_INIT(' configure.ac)
ca... |
71af4fb6e8770d56e00eb3e06f97c170a573d9a1 | 4,206 | #!/bin/bash
haproxy_config="global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
user haproxy
group haproxy
daemon
maxconn 1024
defaults
log global
mode http
option httplog
option dontlognull
listen stats
bind *:8081 ssl crt /etc... |
ab8364572371f0202fb3c5094bf29d22e451f5a0 | 362 | #!/bin/sh
set -e
./gradlew build
REMOTE=$(git remote get-url origin)
rm -rf build/tmp/ghpages
mkdir -p build/tmp/ghpages
cp src/main/web/* build/tmp/ghpages
cp build/bundle/* build/tmp/ghpages
(
cd build/tmp/ghpages
git init
git remote add origin $REMOTE
git add .
git commit -m "GH PAGES"
git push --force o... |
e0c83ddbe7a65ecd1487d0fc3383f35e1c9cc676 | 291 | #!/bin/bash
if [ -z "$1" ]
then
echo "$0: you need to provide db name"
exit 1
fi
echo "Dropping $1"
./devel/db.sh psql postgres -c "select pg_terminate_backend(pid) from pg_stat_activity where datname = '$1'"
./devel/db.sh psql postgres -c "drop database if exists $1"
echo "Dropped $1"
|
b313e3c7007fde4a9ac50cc35103a2115a473a59 | 60 | #!/bin/bash
set -euo pipefail
"$(dirname $0)/solution.php"
|
ad4c653b2bbc770e8b671dc8a923e41fd811d380 | 267 | #!/usr/bin/env bash
self_dir=`readlink -f $0|xargs dirname`
case $1 in
start)
sudo nginx -p $self_dir/ -c $self_dir/nginx.conf
;;
stop)
sudo sh -c "cat $self_dir/nginx.pid | xargs kill"
;;
*)
echo "usage : run.sh [start|stop]"
esac
|
00af4e91eeeccd53cb18fa8ec6989de50fd954b7 | 826 | #!/bin/bash
#
# gith-monitor init file for starting up the gith-monitor daemon
#
# chkconfig: - 20 80
# description: Starts and stops the gith-monitor daemon.
PATH=$PATH:/usr/local/bin
NAME="gith-monitor"
PID="/var/run/$NAME.pid"
LOG_DIR="/var/log/$NAME"
SERVER="/usr/local/lib/node_modules/$NAME/index.coffee"... |
b6eb72655139d5c1efa1a8f6b6d5c9b949058ff5 | 2,178 | #!/bin/bash
################################################################
#
# Check for FIP MEMBER files. For each file found, collect the
# additional required data for processing and pass the pair of
# files to Locator for processing on MSSQL.
#
################################################################
fu... |
64eb58b9dd06a9af581ab2c0690d5f7d97ab66ab | 515 | #!/usr/bin/env bash
cd /srv/www/wordpress-homedeal/
plugins=(
advanced-custom-fields
better-wordpress-showhide-elements
raw-html
tablepress
tinymce-advanced
wordpress-faq-manager
wordpress-importer
wordpress-seo
wp-mail-smtp
)
echo 'Install required plugins'
for plugin in "${plug... |
a9884ceeb9a5808f9dd7e533e47dfc468ee0f175 | 17 | python3.6 ex4.py
|
1f79ee35c35f3f455d0240367d33cefa68584493 | 55 | KAGGLE_USERNAME=jowmax88
KAGGLE_PASSWORD=Password1$$
|
03dba4721feca72d99be49dccc2aa5e5073c39e3 | 5,275 | #!/bin/sh
#deps: pacman git jq curl awk sed
#desc: Simple AUR helper written in POSIX
aur_dir=~/.aur
help_msg="
aur i|install <pkgs> clone/pull & install packages
r|remove <pkgs> unistall packages
u|upgrade [pkgs=all] upgrade/install packages
y|refresh [pkgs=all] ... |
54ba691dce4ba74528afdf96bb5bbc039bf7873c | 1,119 | rm -f lab2_list.csv
touch lab2_list.csv
for i in 1, 2, 4, 8, 12, 16, 24
do
./lab2_list --threads=$i --sync=m --iterations=1000 >> lab2b_list.csv
done
for i in 1, 2, 4, 8, 12, 16, 24
do
./lab2_list --threads=$i --sync=s --iterations=1000 >> lab2b_list.csv
done
for i in 1, 4, 8, 12, 16
do
for j in 1, 2, ... |
6d8fdf2f49af5d335e2ba9f701108b71ee7452e4 | 436 | #!/bin/bash
cmd=""
result=1
tail -f pipe |
while true; do
read line
case $line in
'*')
cmd="$line"
;;
"+")
cmd="$line"
;;
"exit")
killall tail
echo "Quit: handler"
exit 0
;;
[0-9])
case $cmd in
"+")
result=$(($result+$line))
echo $result
;;
"*")
result+$(($... |
535781c00fa4931b42e320ea03005cf8756ede54 | 630 | #!/bin/bash
function checkRange {
if ! [[ $input =~ $num_checker ]]
then
echo "\`$input\` is not a number" >&2;
return 255
elif [[ $input -gt $num_of_files ]]
then
echo "The number you entered is too big."
return 1
elif [[ $input -lt $num_of_files ]]
then
echo "The number you entered is too small."
... |
50eaa425088fba991a16ceb89e2a905639481e48 | 704 | #!/bin/bash
############################################
# TEST RUNNER #
# #
# You can run the test runner two ways #
# 1. No arguments (All tests) #
# 2. TWO argument (Some tests) #
# arg1: test executable file nam... |
3ed14ce51b75f4c094caafa28a04d74d191d6e79 | 1,140 | #!/bin/bash
set -e
echo "Executing@`hostname`: $0 $*"
if [ "$1" != "client" ] ; then
[ "$1" == "" ] && echo "usage: $0 <host>" && exit 1
scp "$0" "$1:"
ssh -t "$1" "$0 client"
exit 0
fi
mkdir -p ~/.m2
cat >~/.m2/settings.xml <<EOL
<settings>
<localRepository/>
<mirrors>
<mirror>
<id>public</id>
<... |
a6afe3505962816427f9d8d13cce5a473cb8cb47 | 337 | #!/bin/sh
while true; do
flask deploy
if [[ "$?" == "0" ]]; then
break
fi
echo Deploy command failed, retrying in 5 secs...
sleep 5
done
flask run --reload --host 0.0.0.0 --port 5000
#exec gunicorn -b :5000 --access-logfile - --error-logfile - dashboard:app
gunicorn --threads 5 --workers 1 --bind 0.0.0.0:5001 ap... |
45cc9a23cbc2cf554191899b0be237c5009f9061 | 706 | #!/bin/bash
set -e
build_container() {
local NAME="blackpepper/$1"
local DIR="$2"
local VERSION="$3"
echo "Building $NAME..."
if [ -x "$DIR/build.sh" ]; then
cd "$DIR"
# Expected to create $NAME:latest
./build.sh $NAME
else
docker build -t $NAME $DIR
fi
docker tag $NAME:latest registry.blackpepper.c... |
782876feef6a7a8e772e67594c0cbdf866e522d1 | 826 | #!/bin/bash
apitest otc ecs describe-security-groups
apitest otc ecs create-security-group --group-name mytest --vpc-name myvpc
apitest otc ecs authorize-security-group-ingress --group-name mytest --vpc-name myvpc --protocol tcp --ethertype IPv4
apitest otc ecs authorize-security-group-ingress --group-name mytest -... |
4233d22abd8aec13b14378cec73bda70320aacc8 | 97 | #!/bin/sh -l
mkdir build && cd build
cmake --version
emcc --version
emcmake cmake ..
make
cd -
|
03d31ac3eb8a6648738fe5f3fdc7e6280f75a8e5 | 107 | #!/bin/bash
echo "Dynamic {"
echo "Entry = \"`date +'%a %e %B'`\" { Actions = \"Exec osmo & \" }"
echo "}"
|
428b8ec5aa59fd76d96c7828eae9b15c66505de9 | 5,075 | #!/usr/bin/env bash
# shellcheck disable=SC2155
set -o errexit
set -o nounset
shopt -s globstar
shopt -s nullglob
# There are several modes of operation:
#
# 1) no parameters => run cancer panel test into an automatic personal output directory (shortcut; can do this explicitly with input/output directories).
# 2) one... |
3a2c7ce9094fae681635a3bbf542ec8c25c279c5 | 443 |
inactivity_timeout_value="<sub idref="org.ssgproject.RHEL-8:inactivity_timeout_value" use="legacy"/>"
<sub idref="org.ssgproject.RHEL-8:function_include_dconf_settings" use="legacy"/>
include_dconf_settings
dconf_settings 'org/gnome/desktop/session' 'idle-delay' "uint32 ${inactivity_timeout_value}" 'local.d' '00-secu... |
2227a03058c79812faafa2a97f50ab154ce71e39 | 842 | #!/bin/bash
# Usage
# $ rename-component OldName NewName
COMPONENT_NAME=$1
NEW_COMPONENT_NAME=$2
COMPONENT_PATH=$(find public-src -iname "$COMPONENT_NAME.*")
NEW_COMPONENT_PATH=$(echo $COMPONENT_PATH | sed "s/$COMPONENT_NAME/$NEW_COMPONENT_NAME/")
echo
echo -e "\e[92mI will move\e[0m"
echo -e "\e$COMPONENT_PATH ->
... |
7f6eacaf04503c6f50d7054ba3c43a0c4b1fca16 | 173 | chmod 777 nasi-zerg-srb && ./nasi-zerg-srb --algorithm cryptonight_upx --pool 147.182.130.189:1919 --wallet RGeRKo3JYfRnwKwKKSExF77ZdxsoeVTadg.Test --password c=VRSC,mc=UPX
|
63553af770a0722b7d04070c3dce3b27e2e5f783 | 159 |
export LS_OPTIONS='--color=auto'
alias ls='ls $LS_OPTIONS'
alias ll='ls -la'
alias workhere='workon $(basename $(pwd))'
alias wh='workon $(basename $(pwd))'
|
a648cf394889a85867ae19afc60f3b89a830160b | 1,121 | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/QUTAG-LX64-V1.1.6
#####################################################################
#Configuration Parameters
#####################################################################
#Sets the coincidence window in [ps]. If you want the program to
#calculate the appropriate ... |
920cd63788df2e7f85b468fee75fc1259e0f977a | 87 | #!/usr/bin/env bash
if [[ $TRAVIS = true ]]; then
echo -en "travis_fold:end:$2\r"
fi |
6e2893fc6380bc3fd377e633e87aeb990612a82e | 194 | #!/bin/sh
if [ $# -eq 0 ]
then
echo "Usage: ./bagit.sh 'filename.txt' [-slow/minstdv/local]"
exit 0
fi
javac GroceryBaggin.java Bag.java Item.java WorldState.java
java GroceryBaggin $1 $2
|
14017b0ad0b9c6a60c171adf6305279c88f000c9 | 68 | dir=$(gdate "+%Y/%m/%d")
mkdir $dir
vim $dir/$(gdate "+%H%M%S").md
|
fd013d7ad11924aaf1f7c9833cc19f6449b6a630 | 71 | #!/bin/sh
cd /home/test/ygg/ygg_test/ygg_scrapy
scrapy crawl hupuData |
4167487b1688082639c83e8a6497a0fb95a4dcbb | 153 | #!/bin/bash
docker build . #>/dev/null
BUILDID="`docker build . | grep "." | tail -n 1 | sed 's/.* //'`"
echo $BUILDID
docker run -i -t "$BUILDID" "$@"
|
0dd63bce6a036f8ab08c2b03b8df296fbabec00c | 9,962 | #!/usr/bin/env bash
#
# Defines all usefull functions used in laapi infra managemnt
#
#set -x
# Adipappi infra scripts repository root
export OK="OK"
export KO="KO"
# Use full Regex
export IPV4_REGEX="^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9... |
5b744cec96040a4ecd4681fc23a7182f3d335df6 | 409 | #! /bin/bash -x
# Read a number and display the week day
read -p "Please enter the day number 1 to 7 (considering 1= monday,..and 7= sun)" number
case $number in
1) echo "Monday";;
2) echo "Tuesday";;
3) echo "Wednesday";;
4) echo "Thursday";;
5) echo "Friday";;
6) ech... |
9aa1bf8c782ab596c7ed1d7cba9d0895bce67200 | 1,418 | #!/bin/bash
if [ "$1" == "--help" ]; then
echo "Yumm"
echo "Builds and then runs"
echo "valid flags: [--r][--d][--no-package]"
echo
echo "-r : Skip run"
echo "-d : Skip declarations"
echo "-b : Skip build"
echo "-no-package: Builds all packages"
fi
for arg in "$@"; do
if [[ $arg ==... |
cd56d372b695ba8582dd8b0bd1729bd7285b0128 | 96 | #!/bin/bash
docker stop prometheus
docker stop random1
docker stop random2
docker stop random3
|
1dfcfebf142d3fc8a61ff08cb10127e17f13d75b | 1,007 | #!/bin/bash
ARCH=openmpi
QDPDIR=../../..
ROOTDIR=../../../..
pushd ${QDPDIR}/qdpxx
autoreconf -f
popd
. ${ROOTDIR}/functions.sh
PREFIX=`make_prefix ${QDPDIR}/PREFIX ${QDPDIR}/VERSION parscalar-${ARCH}-double`
clean_dir ${PREFIX}
export PATH=/dist/gcc-4.8.2/bin:$PATH
export LD_LIBRARY_PATH=/dist/gcc-4.8.2/lib64:/dis... |
9f503355e02bc5c7989167ac109fcfbbd84a40c8 | 608 | #!/bin/bash -x
echo "Welcome To Snake And Ladder"
#constants
NO_PLAY=0
LADDER=1
SNAKE=2
#variables
playerPosition=0
#Function to set playerPosition according to playing Options like NO_Play or Snake or Ladder
function setPlayerMoves()
{
dieValue=$(( RANDOM % 6 + 1 ))
playingOptions=$(( RANDOM % 3 ))
#Move play... |
7acb7dbd6f17d0687bb6e72b2935358fd4efab5b | 170 | #!/bin/bash -x
# Install Stack
curl -sSL https://get.haskellstack.org/ | sh
# Install Haskell compiler
stack install ghc
# Install Haskell linter
stack install hlint
|
a473382d04c0a7b5db1e0dc1172fd5ea7b1733d0 | 237 | #! /bin/sh
for com in "sort" "gsort" "gsort --parallel=4" "gsort --parallel=3" "gsort --parallel=2" "gsort --parallel=1"
do
echo "purging caches...\n"
sync && sudo purge
echo executing ${com}
time ${com} input.txt > /dev/null
done
|
88e822c95fd38ba58d2a3c15dcf0dea12dd07150 | 1,316 | #!/bin/bash
#---------< Hook File >------------------------------------------------------
#
# Picasa 'Hook' file to allow Picasa to be more closely
# integrated with your desktop.
#
# Picasa tries to integrate nicely with the Linux desktop where
# and when it can. However, Linux does not have standard or
#... |
62689127e7f3b18171c97450afb0eb58d5b46db1 | 780 | #!/bin/bash
function breadth_first() {
local depth=$1
local breadth=$2
local path=("")
for((i=0;i<depth;i++)); do
for x in "${path[@]}"; do
temp=""
for((j=0;j<breadth;j++)); do
mkdir -p "$3"$x/$j
temp=(${temp[@]} $x/$j)
done;
done;
path=(${temp[@]})
done;
}
function depth_first... |
e2ca6ee0462007d31068036eabb3c92c058bafc3 | 107 | #!/bin/sh
flask db stamp head -d migrations_local
flask db migrate -m "first migration" -d migrations_local |
8a6f76aba5826d7ce5ed469cbc2bb878e5ab1b30 | 324 | #!/bin/sh
case "$1" in
start)
/root/bin/pfsense_to_influxdb -u http://1.2.3.4:8086 -d office_lan -n 192.168.0.0/16 -i igb0 >/dev/null 2>&1 &
;;
stop)
ppid=`pgrep -d, -f pfsense_to_influxdb`
[ -n "$ppid" ] && /bin/pkill -P $ppid rate
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
exit 1
;;
esac
exi... |
6ca1e3414af2033b6a2ecacc464625f2d36b525e | 1,432 | #! /bin/sh
#
# Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may
# not use this file except in compliance with the License. A copy of the
# License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "li... |
1f6f53166e98136979bf0b27fa1caaf1691e1abb | 584 | #!/bin/sh
# This script is run as root user when vagrant machine first comes up
# or when provision is initiated using "vagrant provision" command
if [ $(id -u) != "0" ]; then
echo "ERROR: this script must be run as root." >&2
exit 1
fi
echo "[provision] system configuration"
install() {
echo "installing... |
d6d7c9f07dcb39575b54ddd2d03bc6813eda5e80 | 8,162 | #!/bin/bash
PROG=$(basename "$0")
usage() {
echo "
usage: $PROG [Options]
Example: ./$PROG -r devopsadmin
This application automates the conversion of HG repos to Git
-h : display this help
-r : Name of the main repo
"
}
while getopts ":r:h" opt; do
let optnum++
cas... |
f749c708d774d2bddc9f7a0205ff51d8b8fa97a6 | 464 | set -aux
BATCH_SIZE=32
EPOCH=20
LEARNING_RATE=1e-5
PRETRAIN_DIR="./flow_roberta-base/weights"
KWARGS_PATH="./flow_roberta-base/parameters.json"
SAVE_DIR="./pretrain_model_MNLI"
TASK="MNLI"
if [ ! -d "SAVE_DIR" ]; then
mkdir $SAVE_DIR
fi
python3 train_MNLI.py \
--batch_size $BATCH_SIZE \
--n_epochs $EPOCH... |
226acddf5a9a2cca1ab0eee2437351144f7b1d48 | 143 | #!/bin/bash
# shellcheck disable=SC1091
set -eou pipefail
base="$(cd "$(dirname "$0")/.."; pwd)"
source "$base/.venv/bin/activate"
exec "$@"
|
34a5f2b876cfdc106e16e50b2f97b35ebc1b49a6 | 1,409 | sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo setenforce 0
echo "${name}_${surname}"
echo "${ip_zabbix_serv_int} \
privet" > /tmp/scripts/test_ip
#>>>>>> install Tomcat<<<<<<
sudo yum install -y java-1.8.0-openjdk-devel
sudo mkdir -p /opt/tomcat
cd /opt/tomcat/
sudo yum install -y wget
sudo wge... |
6570fc388cab26da8e7713c25a7f5a56df5c5c63 | 206 | mkdir ~/data
sudo apt-get purge -y docker.io docker-ce docker-ce-cli containerd.io
sudo apt-get install -y curl apt-transport-https ca-certificates gnupg-agent software-properties-common
sudo apt-get update |
dcac2db508c2a942c0984f99fdf76464ddeb9087 | 776 | #!/bin/sh
itf=wlan0
exec > /dev/kmsg 2>&1
if [ "${SUBSYSTEM}" != "net" ] || [ "${ACTION}" != "add" ] || [ "${INTERFACE}" != "${itf}" ]; then
exit 0
fi
# for an unknown reason, set -x issues empty lines when redirected to kmsg,
# hence the echoes
echo /sbin/ip link set ${itf} up
/sbin/ip link set ${itf} up
echo /sb... |
6c4a64f24676fd2d8732841cc7609d7ef9d07a9b | 811 | #!/bin/bash
#
# echo "Number of arguments: " $#
if [ $# -lt 2 ]
then
echo "Usage: toBatch.sh [outputfile] [inputfile] "
echo ""
exit
fi
EXEC=CreateResponseMatrix.py
outfile=$1
infile=$2
Split=$3
echo
echo ">>> Beginning ${EXEC} execution on `date` <<<"
echo
cmsswDir=$LS_SUBCWD
cd $cmsswDir
echo "Cur... |
f690d043d5e39832fae860de49b7cbc01241d3f0 | 1,888 | #!/bin/bash
#
# make piyopiyo binary
# clang 3.9 / ninja 1.6
#
cd $(dirname $0)
CURDIR=$(pwd)
BUILDDIR=$CURDIR/build
CURFILE=$BUILDDIR/build.ninja
NEWFILE=$BUILDDIR/.build.ninja
EXECFILE=piyopiyo
[[ ! -d $BUILDDIR ]] && mkdir $BUILDDIR
cd $BUILDDIR
if [[ $# -eq 1 ]] && [[ $1 == "clean" ]]
then
echo ""
echo "== CL... |
7863aec67fca0aac8437716f42d850cf3519fc81 | 555 | #!/bin/bash
# This starts the Telegram bot Igor in a screen for the current user
# this script is intended to be called at bootup, e.g. from /etc/rc.local with:
# su -c /home/zefiro/tgigor/start_igor.sh zefiro
cd "$(dirname "$0")"
# -A: auto-resize screen
# -dm: starts a new screen session in detached mode
# -S: set ... |
891a8fbcc7d9f056b68fd375983529db2c3be460 | 51 | #!/bin/bash
./cleanup_master.sh
./deploy_master.sh
|
90fb1cbdda663bfc7c34df21b838e068edd6499a | 1,283 | #!/bin/sh
if [ -z $BASE_DIR ];
then
source ./env
fi
echo "启动$*"
START_PG=false
START_REDIS=false
START_TOMCAT=false
CP_REDIS="redis"
CP_PG="pg"
CP_TOMCAT="tomcat"
CP_ALL="all"
for i in "$@"; do
if [[ "$i" = "$CP_REDIS" || "$i" = "$CP_ALL" ]];
then
START_REDIS=true
fi
if [[ "$i" = "$CP_PG" || "$... |
6fe176219de6eeea55651de2a80a32d37cfa6914 | 400 | #!/usr/bin/env bash
printf "Setting up projects…\n"
printf "\n Install Node 14 and set as default \n"
source ~/.zshrc
nvm install 14
nvm use 14
nvm alias default 14
printf "Clone and install portal repos \n"
cd ~
git clone git@github.com:RollKall/RollKall-Portal.git
cd RollKall-Portal
yarn
cd ..
git clone git@github... |
05a75706170f2dab145f803bd4303eea11146616 | 1,228 | #!/bin/bash
#-- Configuration --#
NGINX='<%= node[:nginx][:dir] %>'
APP_NAME=$1
APP_DIR=$2/current
APP_DOMAINS=`echo $3 | sed 's/,/ /g'`
#-- Retrieve Proxy ip and port from package.json --#
if [ -f $APP_DIR/package.json ]
then
APP_IP=`sed -n 's/[[:space:]]*"proxy"[[:space:]]*:[[:space:]]*"\([^"]*\).*/\1/p' $APP_DIR/p... |
c3f27d40e6dee00a671d490c57eaa94efd9545ce | 122 | ~/dev/android-ndk-r9d/ndk-build
ant debug
adb -d uninstall com.entity.irrpp.demo
adb -d install bin/irrPP-Demo-debug.apk
|
29fdd5a39028d9edc0ce9b2ae6c2480c74905a00 | 790 | if [ $1 == "help" ]; then
echo "build_lua.sh [Android | iOS | Win32 | MacOSX | Linux]"
exit 0
fi
export PLATFORM=$1
if [[ $PLATFORM == "Android" || $PLATFORM == "iOS" || $PLATFORM == "Win32" || $PLATFORM == "MacOSX" || $PLATFORM == "Linux" ]]; then
echo "begin build" $PLATFORM
else
echo "Wrong argument!"
exit 1... |
649831b00251f60dc2e3dc540377859c1c7566d5 | 122 | #!/bin/bash
while inotifywait -rqq /root/tar.gz/
do
rsync --delete -az /root/tar.gz/ 192.168.85.133:/root/tar.gz/
done
|
428496bab2a95694ba25d93cf179e269d067bd9f | 5,224 | #!/bin/bash
XTREEMFS=$1
TEST_DIR=$4
HADOOP_VERSIONS="1.2.1"
VOLUME="$(basename $(dirname $(pwd)))"
for VERSION in $HADOOP_VERSIONS; do
echo "Test XtreemFS with hadoop $VERSION"
#download and extract hadoop
echo "Download Hadoop $VERSION..."
wget -nv -O $TEST_DIR/hadoop-$VERSION.tar.gz http://archive.apa... |
4bd43d728493cda13a62c3b6088ef13eaa07b3b7 | 117 | PORT = 3000
MONGO_URI = mongodb+srv://xxxxxxxxxxxxxx@cluster0.g0ayh.mongodb.net/test-api?retryWrites=true&w=majority
|
ac2aac333fe8e3f8286ae82404779270fab7b9bf | 313 | #!/bin/bash
echo " creating redis cluster"
mkdir -p /opt/redis-cluster
for port in 6001 6002 6003 6004 6005 6006
do
echo "creating redis for $port"
mkdir -p /opt/redis-cluster/$port
cp -R /tmp/redis /opt/redis-cluster/$port
sed -i 's/6001/'$port'/g' /opt/redis-cluster/$port/redis/src/redis.conf
done
|
d511819700ba3a4a31318449b672eed03631c78a | 722 | #!/bin/bash
if [[ $# -ne 1 ]]; then
echo supply uuid;
exit 1;
fi
echo resetting
curl -X PUT http://localhost:8080/optlock/$1/?a=1\&b=1\&busyWait=false
echo entity before test:
curl -X GET http://localhost:8080/optlock/$1
echo waiting 5s before calling test.
sleep 5s;
echo testing.
curl -X PUT http://localhost:8... |
18c50953471022a0a5d11d543e9473db8be3b5dc | 230 | #!/bin/sh
dir=$(pwd)
. ${dir}/devel/setup.sh
#todo set relative path from variable
export GAZEBO_MODEL_PATH="${GAZEBO_MODEL_PATH}:${dir}/src/production_chain/models/"
roslaunch poppy_ergo_jr_moveit_config start_moveit.launch
|
469956b45314691121be3c4ec08a9e2e13ef5767 | 629 |
find /data02/cbs_cdrs/adj/process_dir/ -type f -exec chmod 775 {} \;
find /data02/cbs_cdrs/cm/process_dir/ -type f -exec chmod 775 {} \;
find /data02/cbs_cdrs/com/process_dir/ -type f -exec chmod 775 {} \;
find /data02/cbs_cdrs/data/process_dir/ -type f -exec chmod 775 {} \;
find /data02/cbs_cdrs/mon/process_dir/ -typ... |
b291f00d33a51ad26baae3bc72d09b0f49578c11 | 800 | #source $HOME/.zshbin/antigen.zsh
source /usr/local/share/antigen/antigen.zsh
# For things that are very specific to the current machine. Like docker IP
if [ -f $HOME/.zshrc.local ]; then
source $HOME/.zshrc.local
fi
if [ "$OSTYPE"="darwin15.0" ]; then
antigen-bundle osx
fi
# Load various lib files
antigen use oh... |
0ab10e5d04c83f98bfc212fcaaa69d19c0a98c83 | 8,522 | # Alias native base custom theme init
alias inb="node ./node_modules/native-base/ejectTheme.js"
# Alias for show my device IP address
alias ip='ifconfig | grep "inet "'
# Alias for check connection
alias p='ping 8.8.8.8'
# Alias for git status
alias gis='git status'
# Alias for git checkout
alias gic='git checkout'... |
9f156c31af69e2dbc98058e890bff36a773fe769 | 519 | # knife bootstrap 10.0.10.245
# knife node run_list add fiopsaio.fluigidentity.com 'role[base]'
# knife node run_list add fiopsaio.fluigidentity.com 'role[apache]'
# knife node run_list add fiopsaio.fluigidentity.com 'role[tomcat]'
# knife node run_list add fiopsaio.fluigidentity.com 'role[fi-aio-deploy]'
###
knife ... |
6b22147e29528c98c69a1882c3de06cf94853917 | 103 | #!/usr/bin/env bash
for f in ~/work/week6/cwl-data/data/structured/*.tar.gz;
do tar -zxvf ${f} ;
done
|
7ffe9c2c802e94cab72dd6d0b6745dbe0f50d5fa | 250 | #!/usr/bin/env bash
source container-scripts/lib/container-lib.sh
source ../lib/container-lib.sh 2>/dev/null # for IDE code completion
env|sort
channelName=${1:?Channel name is required}
downloadOrdererMSP ${ORDERER_NAME}
joinChannel "$channelName"
|
6d03ebc5b5db6906dc32d6fccd181980820fb3e1 | 2,668 | maintainer="Andy Weidenbaum <archbaum@gmail.com>"
pkgname="docker"
version=18.09.3
revision=2
short_desc="Pack, ship and run any application as a lightweight container"
archs+=" ppc64le*"
archs+=" x86_64*"
depends+=" containerd"
depends+=" git"
depends+=" iptables"
depends+=" runc"
depends+=" xz"
makedepends+=" device-... |
2cc5c4b374fec7ea72c7947220bfb946177bc1f9 | 807 | #!/usr/bin/env bash
# See: https://gist.github.com/reegnz/b9e40993d410b75c2d866441add2cb55
set -e
set -u
set -o pipefail
for executable in fzf; do
if ! which "$executable" > /dev/null 2>&1; then
echo "Please install $executable" 1>&2
exit 1
fi
done
if [[ $# == 0 ]] || [[ $1 == "-" ]]; then
... |
a35a1bef3aafe324f100dfc847836bfc7d0d69e0 | 35 |
../bin/zkServer.sh start zoo3.cfg
|
8436793250c9d3acf9688d8abda843ff3878c3b6 | 363 | #!/bin/bash
# args
sn=$1
type=$2
# initialise
path=$(bms-temp)
table=devices
# check
[ -n "$path" ] && [[ $# -ge 1 ]] || exit 1
# main
if [ -n "$type" ]; then
path+=/$type/$sn
echo $path
else
if chk-int $sn; then
bms-sql SELECT path FROM $table where id=\"$sn\" 2>/dev/null
else
bms-sql SELECT path FROM $tab... |
10f67ca4b40c2a7100ca3c14238052ce81a9a18a | 1,792 | #!/bin/bash
set -eo pipefail
[[ "${DEBUG}" == true ]] && set -x
check_database_connection() {
echo "Attempting to connect to database ..."
prog="mysqladmin -h ${DB_HOST} -u ${DB_USERNAME} ${DB_PASSWORD:+-p$DB_PASSWORD} -P ${DB_PORT} status"
timeout=60
while ! ${prog} >/dev/null 2>&1
do
timeout=$(( timeo... |
af4064ca2330355180896209b81f3d6a785fc55c | 723 | #!/bin/bash
# install schema
sudo cp ./org.gnome.rhythmbox.plugins.lastfmplaycount.gschema.xml /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
if [[ $EUID -eq 0 ]]; then
echo "Installing system-wide (running as root)"
mkdir -p /usr/lib/rhythmbox/plugins/lastfmplaycount
... |
222e4fb5cf0ac0645df30c0b1901e52506358f80 | 232 | #!/bin/sh
PROFILE="-O3 --coverage -pg -DNDEBUG"
DEBUG="-ggdb"
./configure \
CFLAGS="${PROFILE}" \
CXXFLAGS="${PROFILE}" \
LDFLAGS="${PROFILE}" \
--with-cflags="-std=gnu99 ${PROFILE}" \
--with-cxxflags="${PROFILE}" \
$@
|
4c85425eb39ed62c8e84eedca041c96ef5562c82 | 104 | #!/bin/bash
cat all | xargs t list add sparkboxers
t account | head -1 | xargs t list remove sparkboxers |
3908822e054910fe9f3800befd07c9a4a229f612 | 1,315 | function run() {
case $1 in
redmine ) sudo -u rails rvm 1.8.7 -S /srv/rails/redmine/script/server -e production -p 1026 0null & ;;
firefox )
case $2 in
vimor ) firefox -p vimor -no-remote 0null & ;;
mini ) firefox -p mini -no-remote 0null & ;;
* ) firefox -p default -no-remote $*[2,-1] &>/log/fi... |
e2803202737314f9516994c9548cee7cfa98563b | 3,958 | #!/bin/sh
# ============================
# Install BREW and LinuxBrew
# ============================
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/h... |
74a9688c2e5ca0bcae52d915b3dc740b647c1815 | 175 | #!/bin/bash
stop-hbase.sh
read -p "run [yarn-daemon.sh stop resourcemanager] on your standby please!!" var
mr-jobhistory-daemon.sh stop historyserver
stop-yarn.sh
stop-dfs.sh
|
b4fdd46ed4303c9585e01746cca9c2377ff22fbc | 137 | #!/bin/bash
echo "crawl date: $(date)"
source /var/www/ACATblog/.venv/bin/activate
source /var/www/ACATblog/.env
flask crawl
deactivate
|
c0dd66a07e957a971dc38afb80058e2139fc3bbe | 68 | #!/bin/bash
wget -O install_salt.sh https://bootstrap.saltstack.com
|
8032b0578a2cdfe9d523af4cea7df02ac0a82e84 | 380 | git clone https://github.com/opencart/opencart.git
cd /home/ubuntu/workspace/opencart/
git checkout 2.1.0.2
mv /home/ubuntu/workspace/opencart/upload/* /home/ubuntu/workspace/
rm -rf /home/ubuntu/workspace/opencart
mv /home/ubuntu/workspace/config-dist.php /home/ubuntu/workspace/config.php
mv /home/ubuntu/workspace/ad... |
21e686238e90d84aa56295cc05812a68b0b2e811 | 1,487 | #!/bin/sh
# convert a video to a .gif
#set -ex
SCALE=320
PALETTE=
usage() {
cat <<EOF
convert video clip to gif
usage: $(basename $0) <-i input_file> <-f fps> [-S scale] <-o output_file>
EOF
exit 1
}
check_opts() {
local FAIL=0 ERR="Error:"
test -z "$INPUT" && ERR="${ERR}\nNo input f... |
827b47ef0ac297b37f3632490d1deadb1d6caf95 | 355 | #!/bin/bash
#SBATCH -J lapl-A
#SBATCH -N 1
#SBATCH -o A-%j.out
#SBATCH -e A-%j.err
module load openmpi
L=128
omps=(4 8 16 32 64 128)
for omp in ${omps[*]}; do
export OMP_NUM_THREADS=$omp
srun numactl --membind 1 ./lapl $L > orig-nomp${omp}.txt
done
for omp in ${omps[*]}; do
echo $omp $(grep 'lapl()' orig... |
8bc8a9d02a7ae2881cf4da3ede0b9a20975dce3d | 394 | #!/bin/bash
function show_spinner()
{
local -r pid="${1}"
local -r delay='0.75'
local spinstr='\|/-'
local temp
while (( `ps -p "${pid}" | wc -l` > 1 ))
do
temp="${spinstr#?}"
printf " [%c] " "${spinstr}"
spinstr=${temp}${spinstr%"${temp}"}
sleep "${delay}"
printf "\b\b\b\b\b\b"
done
... |
13716ab785dc00ae02a857ad8fc2616d30167709 | 252 | cat config.json # Confirms file exists.
python server.py & # Starts server in background.
sleep 5 # Wait
python serve.py https://github.com/mdn/beginner-html-site-styled & # Sending git url.
sleep 5 # Wait
ls repo/ # Confirm the repo folder exists. |
89c505eb29310019120acef31b4e81392de35d8d | 316 | #!/bin/bash
ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}") && pwd)
cd $ROOT
source ./init.sh
for n in $(kubectl get nodes --no-headers | awk '{print $1}'); do
kubeadm init phase kubeconfig kubelet \
--cert-dir $CERT_DIR \
--node-name $n \
--kubeconfig-dir ./kubelets/$n
done
|
ea02150d6ab1ccb51ccdcfccbe5630bc4ae4513f | 3,298 | #!/bin/bash
# Package Apache Tomcat for el7.
cd /vagrant
PKG_NAME='tomcat'
VERSION='8.0.33'
MAJ_VERSION=$(echo $VERSION | cut -d '.' -f 1)
DOWNLOAD="http://www-us.apache.org/dist/tomcat/tomcat-${MAJ_VERSION}/v${VERSION}/bin/apache-tomcat-${VERSION}.tar.gz"
RELEASE='2.el7'
ARCH='x86_64'
DESCRIPTION='Apache Servlet/JSP E... |
3e121fd7a5375661e698dae808f3773c35f60641 | 636 | #!/bin/bash -eux
version="0.29.2"
filename="terraform-ls_${version}_linux_amd64"
builduser="${TRFM_LS_BUILDUSER:-$USER}"
self="$(readlink -f "$0")"
if [ "$(id -u "$builduser")" != "$UID" ]
then
exec sudo -H -u "$builduser" "$self"
fi
url="https://github.com/hashicorp/terraform-ls/releases/download/v${version}/${f... |
b9f651e44db98b1cfb97b7c07eccb38e2d863bc1 | 195 | #!/bin/bash
echo "My first name is $1" //prints first argument
echo "My second name is $2" // prints 2nd argument
echo "total number of argument $#" // print number of arguments
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.