blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
26957100aa7bbf1d3ff3cf2f4954a52dcfe20907 | 131 | #!/bin/bash
chown root backup
chown root backup.pl
cp backup /usr/bin
cp backup.pl /usr/bin
cp backup /etc/cron.daily/backup-daily
|
333d32b9bfd8d34b91d11d2542ee2e10ce2101e6 | 7,001 | #!/bin/bash # Script for installation and setting fresh environment
# on manjaro
# Run symlinking.sh script first
#First clone this
#git clone https://github.com/Migacz85/dotfiles.git --recurse-submodules
#Configure mirrors
sudo pacman-mirrors --fasttrack
#Upgrade system
yes | sudo pacman -Syyu
#Git config
git con... |
34218b46077481ed44a61ccc0036310280f897dc | 276 | #!/bin/bash
osf=$(uname | tr '[:upper:]' '[:lower:]')
version=v1.6.0
if [[ -n $1 ]] ; then
version=$1
fi
echo "downloading bbgo $version"
curl -L -o bbgo https://github.com/c9s/bbgo/releases/download/$version/bbgo-$osf
chmod +x bbgo
echo "bbgo is downloaded at ./bbgo"
|
a300af0c0bad5fd110f2f0bcd857a97ebfa495bd | 593 | #!/usr/bin/env bash
set -e
cd `dirname $0`
r=`pwd`
echo $r
function stop_service {
echo "Stopping Service " $1
cd $r/$1
if [ -z $(cat pid.file) ]
then
echo "PDI not found for service " $1
else
kill $(cat pid.file) && rm pid.file || echo "Could not kill process" $(cat pid.file)
... |
f37290bdcefeb093af9bb7954c6a457b48ead033 | 1,796 | #!/usr/bin/env bash
#Delete contents of all ECR repo
#Delete contents of the mythicalmysfits S3 bucket
#Fill the role for nodegroup. looks like eksctl-mythicalmysfits-nodegroup-NodeInstanceRole-1TLRKSZC5S36X
ROLE='YOUR_ROLENAME_FOR_EKS_NODEGROUP'
aws iam delete-role-policy --role-name EKSDeepDiveCodeBuildKubectlRole -... |
04d6d3da82850be854c3e23402a5c108b67e7b25 | 468 | #!/bin/bash -x
printf "Enter your choice 1.FeetToInch\n 2.InchToFeet\n 3.FeetToMeter\ 4.meterTofeet "
read number
case $number in
1)
read -p "enetr feet" x
echo "scale=3; $x*12"|bc
;;
2)
read -p "Enter in inch :" x
echo "scale=2; $x / 12" | bc
;;
3)
read -p "Enter in feet one side" x
result=$(... |
1cd22d96496cae616140e1741e89eea14a2e3981 | 249 | #!/usr/bin/env bash
NEW_HOSTNAME=$1
echo $NEW_HOSTNAME > /proc/sys/kernel/hostname
sed -i 's/127.0.1.1.*/127.0.1.1\t'"$NEW_HOSTNAME"'/g' /etc/hosts
echo "$NEW_HOSTNAME" > /etc/hostname
/etc/init.d/hostname.sh
sysctl kernel.hostname="$NEW_HOSTNAME"
|
1a1617851fbaf9c8d16805f2f10c18abcf6e713c | 1,086 | #!/bin/sh
#
# Installation script
#
# 1) cp omim_hpoload.config.default omim_hpoload.config
# 2) cp annotload.config.default annotload.config
# 3) Install
#
Usage=Install
#
# Function called when the install fails.
#
installFailed ()
{
echo "Installation Failed: `date`"
exit 1
}
#
# Verify the arguments ... |
e4367331fa24ac6602612eb17f17d243c7b5bd46 | 361 | #!/bin/bash
#ps aux | grep jsr2 shows all processes
#can then get access to files on local machine using ssh://jsr2@localhost:2222
if [[ $(ps aux | grep ssh | grep gate ) ]]
then
# ssh -f jsr2@gate.mssl.ucl.ac.uk -L 8080:msslex:22 -N
ssh -YC jsr2@gate.mssl.ucl.ac.uk -L 8080:msslex:22 -N
fi
#ssh -p 8080 -YC j... |
367ad6fd6ff35f5e5ba79d6b93d9c9910690065e | 150 | #!/bin/bash
./translator-expect << ENDOFMESSAGE
L(a,b)
n
L(b,c)
y
(Some x)(L(a,x)&L(x,c))
ENDOFMESSAGE
chmod +x output_expect.txt
./output_expect.txt
|
8cb69662fa39998544ec2f48f708a794ce8d404c | 902 | # $Id: PKGBUILD 36633 2009-04-26 15:34:01Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Kevin Piche <kevin@archlinux.org>
# Contributor: Manolis Tzanidakis <manolis@archlinux.org>
pkgname=cpufreqd
pkgver=2.3.4
pkgrel=1
pkgdesc="A small daemon to adjust cpu speed (and indeed voltage)"
ar... |
82f5200d0551ddf5b19972a9c9a0e0be2b6b006a | 230 | #!/bin/bash
#SBATCH --nodes=1 --ntasks-per-node=8
export GOMP_CPU_AFFINITY="0-7"
#export OMP_NUM_THREADS=2
#./dgemm
#export OMP_NUM_THREADS=4
#./dgemm
#export OMP_NUM_THREADS=6
#./dgemm
export OMP_NUM_THREADS=8
./quicksort
|
80fd871c8be90a3d9f1fdec32d5dc8a379fb41c4 | 390 | #!/bin/bash
#author: Huang Jinhua
#date: 01/05/2017
#description: To remove docker container and images
#Step 1: Make sure docker has started
if [ -z "$(ps -aux | grep docker | grep -v grep)" ] ; then
echo "Docker is not running, so not necessary to remove docker images"
exit 0
fi
#Step 2: Delete mongodb con... |
a83ae0de4e1eeb0f19a591c436d04296d00879fc | 80 | docker build -t novatec/technologyconsulting-showcase-orderdomain:latestlocal .
|
f775092f8dbf88ce321a1b8e9c416c57fbf1565f | 124 | #!/bin/bash
for each in $(find $(pwd) -type d -name sbin);
do
echo cp $each/* $(echo $each|sed 's/sbin/bin/g');
done
|
4805db8edbd33c6a4a350d800c60df9543b1d933 | 162 | #!/usr/bin/env bash
if [ -f "$1" ]; then
mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" "${MYSQL_DATABASE}" -vvv < "$1";
else
echo "Dump file does not found!."
fi
|
b5f602d6db616fa8ae554a7bceb145135b2a2ace | 796 | set -e -u
dir="data/local-lm"
n_utts=50000
url="https://www.openslr.org/resources/11/librispeech-lm-norm.txt.gz"
[ $n_utts -le 500 ] && {
echo "#utterances must > 500 for spliting train & dev" >&2
exit 1
}
mkdir -p $dir
cd $dir
if [ ! -f .completed ]; then
# download and process data
echo "Start down... |
5195cf77986249d42538006a8b070322b40b02d2 | 2,610 | #!/bin/bash
cleanup() {
rm -f "$TEMP_FILE_WITH_OUTPUT_STRINGS"
}
trap cleanup EXIT
echo "Test case in which input array ends with 0 after 5"
RANGE=20
MAX_NUM_OF_EL_IN_ARRAY=$RANDOM
let "MAX_NUM_OF_EL_IN_ARRAY %= $RANGE"
index_of_string_in_array=0
while [ $index_of_string_in_array -lt $MAX_NUM_OF_EL_IN_ARRAY ]
do
in... |
022d0bc275164f05ccce8de00a7298cf72c31942 | 144 | CREATE DATABASE IF NOT EXISTS payroll_development;
CREATE DATABASE IF NOT EXISTS payroll_test;
CREATE DATABASE IF NOT EXISTS payroll_production; |
8d01f98b971bc331ac3b6c5436ecde354c7b1115 | 41 | # Start the install on boot
./install.sh
|
1c0b2fa005272312124d8608f8c653fc69c7b2b1 | 634 | #!/bin/sh
id_cmd=${0%yatt-tag}"yatt-id -m"
usage () {
echo "\
Untags yatt's selected task.
By default, 'fzf' is used, but you can change it by setting \
YATT_FZF environment variable value.
USAGE:
$0 [TAGS]
ARGUMENTS:
TAGS Comma separated tags list (will be prompted if omitted)
FLAGS:
-h, --help Sh... |
2948d5b6bfdfb2a5e5fd07e2abcbe59f6e853491 | 651 | #!/bin/sh
# --- Copyright University of Sussex 1991. All rights reserved. ----------
# File: C.unix/com/mkv55
# Purpose: Make saved image with LIB * VEDVI55 loaded
# Author: John Williams, Jan 24 1990 (see revisions)
# Documentation: HELP * V55
# Related Files: LIB * MKIMAGE
$popsy... |
83e9a281fb033836b761d62ffdf7c8b87d24643d | 306 | #!/bin/sh
case $BLOCK_BUTTON in
1) $TERMINAL -e htop ;;
3) notify-send "CPU module" "\- Shows CPU utilization.
- Click to show process viewer." ;;
esac
echo `grep "cpu " /proc/stat` `sleep 0.1 && grep 'cpu ' /proc/stat` | awk -v RS="" '{printf " %.1f%\n", ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}'
|
41311195fb7b5ea9b61dd9f8c328866767c603c1 | 202 | #!/bin/bash
if [ $# -lt 1 ]; then
echo "USAGE: $0 sub_dir"
echo "e.g.: $0 test"
exit -1
fi
cd `dirname $0`
CURRENT_DIR=`pwd`
export GOPATH=${CURRENT_DIR}
cd src/$1
#go build .
go install .
|
24d21657afd6991311cf8e1cb30a7887c1c08fb4 | 112 | #!/bin/bash
{ python3 create_tables.py; python3 etl.py; } 2>&1 | tee -a "logs/$(date +"%Y-%m-%d-%H:%M:%S").txt" |
536ccfed7659b04ef46cc348fa7b3ae934d8da96 | 2,444 | #!/bin/bash
function fix_bam_header()
{
if [ -z "$1" -o -z "$2" -o -z "$3" ]; then
echo "Usage: $0 <bamFiles> <extension> <outputDir> [ --run-opt <submit> ]"
exit -1
fi
local bamFiles=$1
local ext=$2
local outdir=$3
for i in {1..3}
do
shift;
done
local run_opt="local"
while [ 1 -lt $# ]; do
... |
bbf5a25b18549b949e13f7cf42cab7093d78ebf8 | 18,556 | #!/bin/sh
runname=$1
chrname=$2
results_dir=${SVN_BASE}/cnv/results/${chrname}/working.$1
echo Report for run $1 and chromosome $2 > report.txt
echo "Figure 1: Size correlation between our calls and the Database of Genomic Variants (DGV)" >> report.txt
cp ${results_dir}/val/${chrname}.cnvs.merged.cnvs-dgv_all.p2v.val.... |
e17a907d10e4a1a6068652875064eb1146645347 | 316 | NAMEROOT=periodicpoints_SECg2
datfile=$NAMEROOT.dat
resfile=$NAMEROOT.res
errfile=$NAMEROOT.err
echo "0.95387536e-3 SECg2 1" > $datfile # mu, sec, num of iterates
# periodic point p (in Delaunay coords).
cut -d ' ' -f 1-4 ../cardel/periodicorbits_del.res >> $datfile
./prtbpdel < $datfile > $resfile
rm $datfile
|
359caa4a700ac3ed4e91c7caa05f467eb06523f6 | 94 | #!/bin/bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
|
fcedc8a2e8b80b9f7c8097de899646ef31271f0c | 19 | MONDO_DB=mongodb:// |
614eb1242a8dc8407bd4509eefc0bcdf01addd09 | 95 | git pull
git add --all
git commit -m "$1"
git push
if $2
then
git push heroku master
fi
|
d050dea71d020014e619e465b08a352a9a9c660d | 86 | PERCONA_HOST=127.0.0.1
PERCONA_PORT=3380
DB_USER=root
DB_PASSWORD=root
DB_NAME=test
|
2ee60d5ab0d0c79ba999238922fcd7f15aad2015 | 167 | #!/bin/bash
pushd $(dirname "$0")
protoc -I. -I./googleapis -I$GOPATH/src --go-grpc_out=.. googleapis/google/assistant/embedded/v1alpha2/embedded_assistant.proto
popd
|
9ef2e9ac84481a1be6f92f3c2ae7ba8e5226a001 | 427 | #!/bin/sh
# be more verbose
set -x
# exit on wrong command and undefined variables
set -e -u
# find out own directory
SCRIPTPATH=$(readlink -- "$0" || echo "$0")
SCRIPTDIR=$(CDPATH= cd -- "$(dirname -- "$SCRIPTPATH")" && pwd)
PREFIX="${SCRIPTDIR}/../../rtems/5"
export PATH="${PREFIX}/bin:${PATH}"
openocd -s "${PREFI... |
0db9eabb7ce7e311e8ea940d580878fd58552b80 | 55 | psql $DATABASE_URL < ./schema/create_vehicles_table.sql |
03119ac2865dc70ed773e339ca346e458d572dff | 1,147 | #########################################################################
# File Name: pc07-exome.sh
# Author: Chun-Jie Liu
# Mail: chunjie-sam-liu@foxmail.com
# Created Time: Tue 03 Jul 2018 09:47:24 AM CST
#########################################################################
#!/bin/bash
# ! pipeline scripts
wes=... |
76a86ef8e9b2a869af020bddbb381956fc2133f1 | 2,493 | #!/bin/sh
show_help(){
echo "
Why Hello there! You must be looking for help\n\
\n\
The Flags: \n\
r - run \n\
t - test \n\
d - deploy \n\
s - setup\n\
p - ci push\n\
c - clean\n\
m - manual deploy\n\
e - letsencrypt certificate\n\
\n\
Chain em together as you see... |
0f0665c8574600add03852c852b3b50b7f6fecd7 | 71 | MYSQL_PASSWORD=mysqlpswd
MYSQL_DATABASE=nextcloud
MYSQL_USER=nextcloud
|
7d567851e4942f673e45992af8a71aac5728218d | 88 | #!/bin/bash
echo "0 0 0 * * sh /scripts/backup.sh" >/etc/crontabs/daily
crond -f -l 8
|
6c3f6d7d952c5aeed73194813d7cdf53eeecc6f6 | 191 | #! /bin/bash
figlet "ScreenCAP"
if [[ $1 == "" ]]; then
adb shell screencap -p /sdcard/xx.png
adb pull /sdcard/xx.png
else
adb shell screencap -p /sdcard/xx.png
adb pull /sdcard/xx.png $1
fi |
eec726607cf190b7bdbacbae5e3958c927be9cfd | 158 | #g++ test_utils.cpp --std=c++11
g++ test_utils.cpp --std=c++11 -lcblas `pkg-config --cflags` -o Test_O && ./Test_O
#g++ test_utils.cpp --std=c++11 -lcblas
|
a2668d077d63f48e0febd871dd22b342adb39a04 | 676 | #!/bin/bash
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin'
#Author : Tareq
#Date : 07-08-2020
#nokia_msc file transfer 253~239 server and move dump directory
lock=/data02/script/process/bin/nokia_msc_new_1_transfer_lock export lock
if [ -f $lock ] ; then
exit 2
else
to... |
9604cedbe0f28c9575606379f553fdff1eb34980 | 4,030 | #!/bin/bash
####
## Start Install Script
################################################################
##
# Functions
###
set_colors()
{
red='[0;31m'; lred='[1;31m'
green='[0;32m'; lgreen='[1;32m'
yellow='[0;33m'; lyellow='[1;33m'
blue='[0;34m'; lblue='[1;34m'
purple='[0;35m'; lpurple='[1... |
9a6f5e288a8c101042c2dfe1c4dcdc9ba903ff42 | 807 | #!/bin/sh
# script directory
SCRIPT_PATH=$(readlink -f $0)
# bin directory, It's like /opt/appname/bin, also same with SCRIPT_PATH
BIN_DIR=$(dirname $SCRIPT_PATH)
# work directory
WORK_DIR=$(dirname $BIN_DIR)
# where is app root path in location
APP_ROOT=$WORK_DIR
# app mainclass
MAINCLASS=com.lefu.cmdtools.client.CmdC... |
7b8c6b3a01cd87af50ef14625d101d01e2429338 | 2,690 | #!/bin/sh
export CI=travis
export FAST_FAIL=1
# The context should already have been activated at this point.
#pip install pymongo pytest pytest-bdd pytest-cov
#pip install mock --upgrade
#pip install pytest pytest-timeout --upgrade
pip list
exit_code=0
# Break up the tests to work around the issue in #754. Break... |
697fb53f70b05ae070bf142864d98ef7a4fb7767 | 407 | #!/bin/bash
export RPROMPT="%F{red}%(?..%?)%f"
if [ -n "$BASH_VERSION" ]; then
export PS1='\[\e[38;5;135m\]加油呀\u\[\e[0m\] \[\e[38;5;118m\]\w\[\e[0m\] > '
else
if [ "$UID" -eq 0 ]; then
export PROMPT="%F{135}%n%f@%F{166}%m%f %F{118}%~%f %# "
else
export PROMPT="%F{045}加油呀%n%f %F{118}%c%f > "
... |
5bf831e7b0be53904f00209a48835148a850ae94 | 581 | #!/bin/bash
answer=$(($RANDOM%129))
declare -i guess
guess=129
declare -i score
score=0
until (($answer==$guess))
do
read -p "Guess the number!(0-128) " guess
score=score+1
if (($guess>$answer))
then
echo "High guess"
elif (($guess<$answer))
then
echo "Low guess"
fi
done
echo "Congratulations, you... |
f61fdbbc166846feb884affb726c63189af6532b | 216 | #!/bin/bash
script_dir="$(cd "$(dirname "$(readlink -f "$0")")" && pwd)"
cd $script_dir/..
$script_dir/run_docker.sh run -v $script_dir/workdir:/kb/module/work -e "SDK_CALLBACK_URL=$1" test/compmolnwchem:latest test
|
7261797b8e08b2cfa6d1670fdcf977e545f81182 | 278 | #! /bin/sh
if [ $# -lt 2 ]; then
return 1
fi
#local gr=$1
gr=$1
#local ew=$2
ew=$2
add_r=$(echo " $ew*$gr" | bc -l)
rmv_r=$(echo "$ew*(1-$gr)" | bc -l)
inc_r=$(echo "(1 - $ew)*(1-$gr)" | bc -l)
dec_r=$(echo "(1-$ew)*$gr" | bc -l)
echo "$add_r $rmv_r $inc_r $dec_r"
return 0
|
752f9c5537c1157f4ecd996e6c5ded601e2b3a5b | 2,065 | #!/bin/bash
set -e
export LC_NUMERIC=C
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, w... |
8da24629430b6cbb50727e410c518c40fdd6fcf4 | 265 | #! /bin/bash
rm -f db.sqlite3
./manage.py migrate
./manage.py shell <<EOF
from person.models import Person
x=Person(username="too", label="abc")
x.save()
EOF
./manage.py dumpdata --natural-foreign --natural-primary auth.user auth.group person.person -o person.json
|
bd68a07ed21d1701afb65ac6d071dcf260866f80 | 675 | srcAccountName="<add your source account name>"
srcAccountKey="<add your source account key>"
srcContainerName="<add your soruce container name>"
destAccountName="<add your destination account name>"
destAccountKey="<add your destination account key>"
destContainerName="<add your destination container name>"
blobName=... |
e8bdd4005e6a812c3db93356091230fdd3b4cb51 | 96 | cp -fr ./* $HOME/GFrun
echo "done"
cd $HOME/GFrun && /bin/bash ./tools/GFrunGui/go_ExConsole.sh
|
d69c18a850b00f7b4ef06cd748242fd46d8ad1ea | 665 | ######################################################################
# Copyright 2019. Yongxu Jin.
# This file is part of PhysBAM whose distribution is governed by the license contained in the accompanying file PHYSBAM_COPYRIGHT.txt.
######################################################################
#!/bin/sh
# ... |
e26d6198097981e0fab07d2edb6e256b6707d84b | 3,679 | #!/bin/sh
# Install command-line tools using Homebrew
# Usage: `brew bundle Brewfile`
# Make sure we’re using the latest Homebrew
brew update
fancy_echo() {
printf "\n%b\n" "$1"
}
brew tap caskroom/cask
# Upgrade any already-installed formulae
brew upgrade
brew install brew-cask
brew cask install dropbox
brew ... |
502ae22f9da7b906b610e1fbe6085a65d17dcf0a | 228 | #!/bin/bash
cp /postgres.host.conf /var/lib/postgresql/data/postgres.conf
chown postgres /var/lib/postgresql/data/postgres.conf
if [[ $# -eq 0 ]] ; then
exec docker-entrypoint.sh postgres
fi
exec docker-entrypoint.sh "$@"
|
10cac573eb6b396486cb4e97c9c16a45172a66dd | 1,852 | #!/bin/sh -u
#
# Test that citrun run on itself works and the resulting binaries run.
#
exit 0
if [ `uname` = "OpenBSD" ]; then
rm -rf /usr/ports/devel/ccitrunrun
cp -R distrib/openbsd/ccitrunrun /usr/ports/devel/
fi
. tt/package.subr "devel/ccitrunrun"
plan 13
enter_tmpdir
export NO_CHECKSUM=1
pkg_check_deps
pkg_... |
704ff3965b88ecb5d704239e3f94b89b6413683a | 527 | #!/bin/sh
catkin_dir=/home/workspace/catkin_ws
catkin_src_dir=$catkin_dir/src
xterm -e "roslaunch turtlebot_gazebo turtlebot_world.launch world_file:=$catkin_src_dir/world/myWorld.world" &
sleep 5
xterm -e "roslaunch turtlebot_gazebo gmapping_demo.launch custom_gmapping_launch_file:=$catkin_src_dir/wall_follower/launch... |
b49de2be33e15c89bb71682c41d845b56b73700b | 292 | #!/bin/sh
# generate java code for the protobuff definition
DIR=$(cd "$(dirname "$0")" ; pwd)
cd "$DIR/../../../.."
MSG_PATH=$DIR/../../../../messages
echo "Generating .java classes in" $MSG_PATH
protoc --java_out=proxy-robots-module/src/main/java/ --proto_path=$MSG_PATH $MSG_PATH/*.proto
|
60c8fda8500897b30c26435b01e0a8ec93342b1e | 163 | #!/bin/bash
sum=0
for var in "$@"
do
if [ $var -gt 10 ]
then
if [ `expr $var % 2` -eq 0 ]
then
var=-$var
fi
sum=`expr $sum + $var`
fi
done
echo $sum
|
28aadf399b2ebcbaf71e098cd22988eff6f68b2c | 1,788 | !/bin/bash
# Usage:
# From the system to register, as root
# [root@somehost]# curl -s http://satellite.fqdn/pub/bootstrap-wrapper.sh | bash
#
######## VARS ########
SATELLITE=satellite.local
ORG_LABEL=Startx
LOCATION="Europe/Paris"
AK=AK_RHEL7
HG=HG_RHEL7
REX_USER=remote_user
OS=$(cat /etc/redhat-release | grep -oE '[0... |
d8331df02540167c27dc179dfb1cca1863383c8f | 2,046 | #!/bin/sh
SSH_INFO_FILE="/var/tmp/ssh_info"
SSH_INFO_FILE_OLD="/var/tmp/ssh_info.old"
SSH_PRIVATEKEY_FILE="/var/tmp/private-key.pem"
AUTOSSH_PIDFILE="/var/run/autossh.pid"
# 自分のIMSIと該当するSSH情報を取得
IMSI=`curl -s http://metadata.soracom.io/v1/subscriber | jq .imsi`
if [ $? -ne 0 ]; then
echo "failed to get own imsi"
... |
a89db3e35ea709999bedcc2ec54b2f8e8e4906b4 | 165 | #!/bin/bash
execute() {
input="$1"
./9ccs "$input" > debug.s
cc -o debug debug.s test_func.o
./debug
echo "status: $?"
}
execute ./test/debug.c |
e7d064620ffd1272083f26d5b2fa1f5582d40279 | 1,508 | #!/bin/bash
set -e
# cd to app root
CWD=$(dirname $0)
if [ `basename $(pwd)` = 'scripts' ]; then
cd ../
else
cd `dirname $CWD`
fi
#BRANCH=$(echo $GIT_BRANCH | sed -e 's/^origin\///')
#if [ "$BRANCH" = "HEAD" ]; then
# BRANCH="master"
#fi
VERSION=$(cat package.json | grep version | cut -f4 -d'"' | sed 's/-/_/g')... |
d2f232648d7559fb04e4bae6059b65b90b2a2917 | 328 | #!/bin/sh
dir=$(dirname $(realpath $0))
getDir() {
cygpath -d $dir/$1
}
export NODE_PATH="$(getDir lib);$(getDir src);$(getDir node_modules);$(getDir ../../../client);$(getDir ../../../lib)"
echo -E $NODE_PATH
#exec /cygdrive/c/Apps/nw-0-9-2/nw --stack-size=3000 $dir/nwRepl
cd $dir
exec /cygdrive/c/Apps/nw-0-9-2/nw... |
d03471253f7645a624b56626f5134dab239228f6 | 896 | #!/bin/bash
NAS_IP=$1
MOUNT_ROOT=${2%/}
CLEAN=${3:-'false'}
ARGC=$#
usage(){
SCRIPT=$(basename $0)
printf "$SCRIPT IP MOUNT_DIR [CLEAN={false,true}]\n"
}
if [[ $ARGC -lt 2 ]];then
usage
exit 1;
fi
shares=$(showmount -e $NAS_IP | tail -n +2 | awk '{print $1}')
shares_mount(){
for share in ${shares[@]};do
... |
e31c8bd5da46cbf1a4903d7401d4f145a8932f13 | 3,735 | #!/bin/bash -x
# --- SGE options --- #
#$ -V
#$ -wd build/resources/integrationTest/output
#$ -N DnaAmpliconVar_Fastq_alignment_for_GA5_1_analysis
#$ -o build/resources/integrationTest/output/log_files/DnaAmpliconVar_Fastq_alignment_for_GA5_1_analysis.log
#$ -e build/resources/integrationTest/output/err_files/DnaAmpl... |
0c7c80f886d1b74b90b2320c992e470361ec9caa | 1,177 | #!/bin/bash
NAME="template_library" # Name of the application
APPDIR=/apps/template_library # Project directory
SOCKFILE=/tmp/template_library.sock # we will communicte using this unix socket
USER=cstech # the user to run as
GROUP=cstech # the group to run as
NUM_WO... |
d84e8f68a1719b1504fd3790bae5ac224c6a7099 | 78 | #!/bin/bash
# Executing project
mvn gauge:execute -DspecsDir=specs -Denv="$1"
|
3530b69030dc71084bb0ac0d7ce2d597d1d6ddee | 520 | #!/bin/bash -e
. /home/tcj25/.virtualenvs/35/bin/activate
log=../slurm-pipeline.log
# Remove the marker file that indicates when a job is fully complete.
rm -f ../slurm-pipeline.done
echo "SLURM pipeline started at `date`" >> $log
for fastq in "$@"
do
task=`echo $fastq | cut -f1 -d.`
echo >> $log
echo ... |
fad1ad522fd3f77e8e2e376df5e75621384faade | 798 | #!/usr/bin/env bash
if hash python 2>/dev/null ; then
if hash pip 2>/dev/null ; then
v=$(python --version 2>&1 |awk '{print$2}')
a=( ${v//./ } ) ## replace points, split into array
((a[2]++)) ## increment revision (or other part)
## composed as new version chain
if [ '2.7' = "${a[0]}... |
ad7cc8924beb5d4f9a3ddd138b12a6c9b274eeaf | 113 | #! /usr/bin/env bash
#tcpdump -i <interface> -s 65535 -w <file>
tcpdump -i eth0 -s 65535 -w ../log/tcpdump.pcap
|
74d6863476f67650ab1d3e0d4b2e01f748eb921b | 1,068 | #!/bin/bash
usage()
{
echo "Usage: hc.sh [-a account] [-u user] exp year1 year2 [user]"
echo "Run hiresclim postprocessing of experiment exp in years year1 to year2 for a specific user (optional)"
echo "Options are:"
echo "-a account : specify a different special project for accounting (default: spnltun... |
2fe55290d836f33675355e3b29bafee8b87af90d | 873 | #!/bin/bash
samtools view -b -F 4 /u/scratch/t/tianhao/NovaSeq020821/KSHV/mapped/KSHV2K.sam > /u/scratch/t/tianhao/NovaSeq020821/KSHV/mapped/KSHV2K_unsorted.bam
java -jar /u/local/apps/picard-tools/current/picard.jar AddOrReplaceReadGroups I=/u/scratch/t/tianhao/NovaSeq020821/KSHV/mapped/KSHV2K_unsorted.bam O=/u/scratc... |
ec90fc41b65bc2797e1043d201d9a681a82ba4ec | 9,840 | #./05_plot_anchor_study.sh Sample_316-FR-clone11 LINE L1HS 3 82143860 82145867 L1HS yale retro_0520 /srv/gsfs0/projects/levinson/transfer/Project_VAC_11092_B01_GRM_WGS.2015-09-20/ /srv/gsfs0/projects/levinson/xwzhu/retromin/refTE/sequence/L1HS.fa png
#./05_plot_anchor_study.sh Sample_316-FR-clone11 LINE L1HS 2 1080827... |
2d274efc408fe6af8006e13fdd00a5fc220d5621 | 604 | #!/bin/bash
#
# Silkroads
#
# Refs:
# * http://www.gamerzplanet.net/forums/silkroad-online-general-discussion/36859-what-port-does-sro-use-to-connect.html
#
# Protocolo: TCP/IP
# 15779 (Login)
# 15881 (Patch)
# 15883 (Play)
CHAIN='game-silkroads'
# clear chain
iptables -F $CHAIN
iptables -X $CHAIN
# create chain
ipt... |
5b3d9ea16c428c14c91bd74d22f64115f44c8ec9 | 1,176 | #!/usr/bin/env bash
_clib_green()
{
coloredMessage "${1}" 2
}
_clib_yellow()
{
coloredMessage "${1}" 3
}
_clib_blue()
{
coloredMessage "${1}" 4
}
_clib_command()
{
local arguments=""
for ((i = 4; i <= $#; i++)); do
arguments+=" `_clib_green "<${!i}>"`"
done
echo "`_clib_yellow "Command:"`
`_cl... |
1af40beaf6cc950290f4773a4af39a46ff941443 | 1,866 | #!/bin/bash
# This script is originally borrowed to pmorillo
# Thanks to him !
# I've made some addition though :)
# ARGS
# $1: cpu demand
# $2: mem demand
# $3: net type {BRIDGE, NAT}
# BRIDGE | NAT
# $4 subnet_file | $left other net, drive options
# $left net/drive options
set -x
function net_bridge() {
SUBNET... |
976aaa0a2933135c25667c46f8198511a9285869 | 928 | #!/usr/bin/env bash
# Packages Alfred workflows to ~/Desktop.
readonly workflow_dir="${1}"
readonly info_plist="${workflow_dir}/info.plist"
readonly workflow_name="$(/usr/libexec/PlistBuddy -c 'print name' "${info_plist}")"
readonly workflow_file="${HOME}/Desktop/${workflow_name}.alfredworkflow"
if /usr/libexec/Plis... |
d55f0d6e15fd5bb8111e9cae8322f186876a1825 | 147 | # find factorial of a number
echo "Enter a number"
read num
fact=1
for((i=1;i<=num;i++))
do
fact=$((fact*i))
done
echo "Factorial of $num is $fact" |
b6b40192184c7b4bda9a5a4623202665a942272c | 39 | docker build --tag amazonlinux:nodejs . |
ba12226bbf24294ab3452ee91dbff7843a9bac45 | 378 | #!/usr/bin/env bash
#
# augment.sh
# Copyright (C) 2019 LeonTao
#
# Distributed under terms of the MIT license.
#
python misc/augment.py \
--data_path ./data/ChnSentiCorp_htl_all.txt \
--save_path ./data/ChnSentiCorp_htl_all_augment.txt \
--syno_path ./data/merge_syno.txt \
--cilin_path ./data/cilin_e... |
9eda763d14877b6de09b6c2534fec3182cecc36e | 191 | #Sum of Array Element
echo "Enter No of Element"
read length
sum=0
echo "Enter elements:"
for ((i=0;i<length;i++))
do
read num[$i]
sum=$(($sum+${num[i]}))
echo "Sum = "$sum
done
|
83e69c58ce8abf3d7f066b3d90922a66fa93a7ed | 357 | #!/bin/bash
set -euo pipefail
readonly BUILD_INFO_LOCATION="$(pwd)/artifactory-repo/build-info.json"
readonly CONFIG_DIR="$(pwd)/git-repo/ci/config"
java -jar /opt/concourse-release-scripts*.jar \
--spring.config.location="${CONFIG_DIR}/release-scripts.yml" \
publishToCentral 'RELEASE' "$BUILD_INFO_LOCATION" "art... |
680b03b1b5a35f178c04ef77a9bfa78887e5a7ae | 832 | #!/bin/bash
workingDir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
dir=~/.config/kitty
source $workingDir/../functions.sh
source $workingDir/../commandParser.sh -scope kitty "$@"
if ! command_exists kitty ; then
if flags_exists no-sudo ; then
echo "kitty not installed, cant insta... |
71779d861f5ac184205f6c1fc3b3b52de7a7c388 | 105 | #!/bin/bash
if [ -f "${1}" ];then
ssh-keygen -t ed25519 -f "${1}"
else
print("KEY NAME MISSING")
fi
|
67815396fd22cd8021a01f99d1f8a931e60c7cca | 915 | #!/bin/bash -l
# The -l above is required to get the full environment with modules
# Set the allocation to be charged for this job
# not required if you have set a default allocation
#SBATCH -A edu17.DD2438
# The name of the script
#SBATCH -J combine
# Email
#SBATCH --mail-type=BEGIN,END
# Only 1 hour wall-clock ti... |
43f71a8989b6bb49cde7dda66baa851954d6022f | 284 | #!/usr/bin/env bash
# Install latest node version, activate it and set as default
nvm install node
nvm use node
nvm alias default node
# Install global node packages
npm install -g npm@latest
npm install -g gulp
npm install -g gulp-cli
npm install -g bower
npm install -g grunt-cli
|
c8b0221fd1a91375209e0b0b7865115717cb681f | 2,121 | #!/bin/zsh
. `pwd`/poetryAndStuff.sh
if [ ! -d Crushes ]
then mkdir Crushes
fi
case $1 in
a)
echo -n "How many crushes do you want to add? : "
read numberOfCrushes
echo "Enter first names only, its polite :)"
for i in {1..$numberOfCrushes}
do
echo -n "Enter name :) - "
read name
echo ... |
10b72f2e1c3def9b0caf6fd9046ee96cd901f452 | 495 | #!/bin/bash
set -e
# Note: use "_" instead of "-" for NETWORK
NAME=$1
NETWORK=$2
HERE=$(dirname "$(readlink -f "$0")")
ROOT=$(readlink -f "$HERE/..")
. "$ROOT/configuration/environment"
. "$ROOT/utils/functions"
C_NAME=$(c "$NAME")
MAC_ADDRESSES=$("$ROOT/ssh" manager-root "$(cat <<- EOT
set -e
virsh domiflist $C... |
71eafec26754e4c26ca757efb4b6c3a18006ddf9 | 95 | # This file should not have any sensitive data.
PORT=3000
REDISTOGO_URL=redis://localhost:6379
|
e2f77781d7b5693ee0b194f5945d5cef3e20b4d7 | 1,286 | #!/bin/bash
set -e
# Retrieve current versions from Clojars
declare -A versions
OFS=$IFS
IFS=$'\n'
for e in $(curl -s https://clojars.org/api/groups/cljsjs | jq -c ".[]"); do
group=$(echo $e | jq -r ".group_name")
artifact=$(echo $e | jq -r ".jar_name")
id="$group/$artifact"
version=$(echo $e | jq -... |
efcbe25f0f655c4a7412f1cb49dbb12ac446ec56 | 1,389 | #!/usr/bin/env bash
##> Docker compose modification for bind mount
#
#- We can define volume type in the compose file
#
#- bind-mount : method 1 : (Docker will identify bind mount and proceed accordingly)
#-
#- volumes:
#- - tomcat-volume:/opt/tomcat
#- - bim-home:/var/bimserver/home
#- - bim-... |
4962a527b189443343e29ede55830c3343ecdb54 | 271 | #!/bin/bash
cd /Users/EamonBachari/Documents/TIYDay1/projects
mkdir projects
cd projects
touch README.md fizz.txt buzz.txt deleteme.txt
echo Test Text >> README.md
mkdir texts
mv *txt texts/
cat README.md > texts/deleteme.txt
cat texts/deleteme.txt
rm texts/deleteme.txt
|
7da31ca93b6c1c05b410ee6f88084646a64a4814 | 39 | #!/bin/sh
ipython3 ./PanEDM_Control.py
|
0317f8424f50ee2f87e0ca02275f272c6c22b384 | 2,150 | #!/bin/bash
apt-get -y install nova-compute nova-network nova-api-metadata
read "Is your internal network card eth1? (y/n): " network
if network == y
then
eth1=$(/sbin/ifconfig eth1| sed -n 's/.*inet *addr:\([0-9\.]*\).*/\1/p')
else
eth1=$(/sbin/ifconfig eth0| sed -n 's/.*inet *addr:\([0-9\.]*\).*/\1/p')
fi
. comp... |
be0731f2e7708afc36265a320b75352b07310500 | 190 | # the root directory (corresponds to the git)
ROOT=$(git rev-parse --show-toplevel)
# export the library path
export LD_LIBRARY_PATH=${ROOT}/lib/cudd/libso
export LIB_CUDD=${ROOT}/lib/cudd
|
08b5bbee9df240be162a7e220dc412c5e4df3023 | 1,906 |
===== TBO190048-Hokkaido-Cat-WGRS-20190312 =======================================================================================================================================================
#fork
python HokkaidoSystemScience_script.1.py -f Raw/TN1902D0330_1.fq.gz -r Raw/TN1902D0330_2.fq.gz -s Ig17064 -g Ref/... |
34d3085004cbbe6fae42b8f6fa7f8c0191285a17 | 327 | #!/bin/bash
#demo one of the class
printf "Current Working Dir:<033[0m'\t%s\n'\033[34;40mHostName:\033[0m'\t%s\n'Bash Version':\t%s\n""\033[0m" $PWD $HOSTNAME $BASH_VERSION
#echo "Hostname: $HOSTNAME"
#echo "Bash Version: $BASH_VERSION"
#$echo "Time (seconds): $SECONDS"
#echo "Machine Type: $MACHTYPE"
#echo "Filenam... |
8c4a360ac47df0cdf1f0a6ce2439098d116d4502 | 3,242 | #!/bin/bash
## basic exercises
# 0.entries
cd basic/0.entries
CARGO_TARGET_DIR=target cargo build --release --target wasm32-unknown-unknown
hc dna pack workdir
cd tests
npm install &&
OUTPUT=$(npm test)
FAILED="$(echo "$OUTPUT" | grep -o '# fail ')" # expected that zero tests fail
cd ../../.. #back to base folder
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.