blob_id stringlengths 40 40 | length_bytes int64 7 488k | source stringlengths 7 488k |
|---|---|---|
50dd13d424bcb427e8422266ce98490064e090f4 | 98 | #!/bin/bash
nordvpn set dns 1.1.1.1 1.0.0.1
nordvpn set killswitch on
nordvpn set autoconnect on
|
c8eac438a2c460091184990ddb866b3d87e48baf | 138 | How to unstage a staged file
Pushing tags to a server
Search by commit message keyword
How to write a git commit message
Perform a dry run |
d998400cc90ec7570b4a3670c820660a41c1e2fe | 1,492 | #!/bin/sh
# THIS IS NOT A RULE, but a shell script that looks for common problems
# and typos in rules.
echo "-- Rules not anchored to beginning of a line:"
grep from= *.xml | cut -d\" -f2 | grep '^[^^]' || echo "(None.)"
echo
echo "-- Rules with unescaped dots:"
grep from= *.xml | cut -d\" -f2 | grep '[^\]\.[^*]' || ... |
d19d1b573b1a5080df97100c1e215399997f76bc | 612 | # -*- bash-script -*-
#
# default of common settings
#
if [[ -z $FULLNAME ]]; then
FULLNAME=$(fgrep $USER /etc/passwd | cut -d: -f5)
fi
if [[ -z $EMAIL ]]; then
EMAIL="${USER}@${HOSTNAME}"
fi
if [[ -z $GPG_SIGNER ]]; then
if __zkit_have gpg2; then
gpg=gpg2
elif __zkit_have gpg; then
gpg=gpg
fi
... |
5622f0a36380bc64c101864a2b34cd374bac6723 | 123 | ../.git/annex/objects/6Q/9j/MD5E-s2579--705847d23069967f7b2efd21faa52f16.sh/MD5E-s2579--705847d23069967f7b2efd21faa52f16.sh |
b132c37c36d05f9ab46a0f2c36eaff9abb98f1db | 419 | #! /bin/bash
# Copy the SRL inmage X.Y.Z-N.tar.xz file into Project directory on Centos 8 Host Machine.
# TBD
# Copy the license.key into Project directory.
# TBD
# Load the docker image.
# - To load the image, the user must have root privilege, or be part of the docker group.
docker image load -i 2... |
2ab95571ea4a1e5af64fe227ce90313c363cd856 | 1,364 | #!/usr/bin/env bash
###########################
# This script restores backed up dotfiles
# @author Adam Eivy
###########################
#################################
# Move to the directory
#################################
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file i... |
d38de66a6b305038844e91e83d4cd2686e94f3f9 | 2,554 | # Maintainer: Sam S. <smls75@gmail.com>
pkgname=spaz-hib
pkgver=2012_09_18
_hibver=09182012
pkgrel=0
pkgdesc='Space Pirates and Zombies, a top-down space combat game (Humble Bundle version)'
url='http://spacepiratesandzombies.com/'
arch=('i686' 'x86_64')
license=('custom:commercial')
depends=('gcc-libs' 'libgl' 'sdl' ... |
61ca4b829bf8c8f07e7d89945308ef208777248e | 239 | sudo apt-get install python3-venv
echo "setting up virtual environment"
python3 -m venv venv
echo "activating virtual environment"
. venv/bin/activate
pip install Flask
export FLASK_APP=__init__.py
export FLASK_ENV=development
flask run |
ae07f717e4a94de79e64c4a0bf6f4afbae6f71e5 | 1,515 | #!/bin/bash
#
# Init file for Dovecot IMAP daemon
#
# Written by Dag Wieers <dag@wieers.com>.
#
# chkconfig: 345 57 46
# description: Dovecot IMAP Daemon
#
# processname: dovecot
# config: /etc/dovecot.conf
# pidfile: /var/run/dovecot
### BEGIN INIT INFO
# Provides: dovecot
# Required-Start: $network $remote_fs
# Requ... |
aa63a5d582fadcb778e9160bc83a2e0a9acce92c | 194 | #!/bin/bash
#grep nico /etc/passwd | awk -F: '{print $1 "\t" $2 "\t" $3 "\t" $4 "\t" $5 "\t" $6 "\t" $7}'
grep nico /etc/passwd | awk -F: 'BEGIN{FS=":"; OFS="\t"}{print $1,$2,$3,$4,$5,$6,$7}'
|
288021e63e6469c1ce9ac9ea17dc08c56010b2e4 | 547 | #!/bin/bash
export SCRAM_ARCH=slc6_amd64_gcc481
cd /afs/cern.ch/user/k/ktos/BBA/CMSSW_7_4_1_patch1/src
eval `scramv1 runtime -sh`
cd -
source /afs/cern.ch/cms/caf/setup.sh
cp /afs/cern.ch/user/k/ktos/BBA/CMSSW_7_4_1_patch1/src/BBA/Producers/BSUB/TrigProd_amumu_a5_dR5/trigger_amumu_producer_cfg_TrigProd_amumu_a5_dR5_15... |
d8a531e10512ed6bc2d345d70d8b839c6a215b6e | 2,017 | #!/bin/bash
#Gernarate CDN group file for dnsforwarder.
SLIENT=
CURL_EXTARG=''
help() {
echo " Usage: $0 [options] -o FILE."
echo " -i, --insecure: Force bypass certificate validation (insecure)."
echo " -o, --output <FILE>: Output to <FILE>."
echo " -h, --help: Usage."
}
while [ ${#} -gt 0 ]; do
c... |
f5a0be29eaccf0e7b25f72588b9fdab581bdb21d | 809 | #!/bin/sh
. $openrc
openstack volume list
volumename=$1
volumeid=$(openstack volume list| grep $volumename |awk '{print $2}')
mysql -uroot -p123456 -h $vip -e "DELETE FROM cinder.volume_admin_metadata WHERE volume_id ='$volumeid';"
mysql -uroot -p123456 -h $vip -e "DELETE FROM cinder.volume_glance_metadata WHERE volu... |
186f5f6d22c6827d39f192cfe51a60fb1d2900c4 | 449 | #! /bin/bash
start_cl() {
echo "start_cl"
scrapyd --pidfile /data/scrapy/scrapyd.pid -l /var/log/scrapyd/scrapyd.log &
sleep 10
curl http://localhost:6800/schedule.json -d project=cltest -d spider=cl
echo "done."
}
retry_cl() {
echo "retry_cl"
curl http://localhost:6800/schedule.json -d p... |
769c9acb4a51b5998524833b6c24d6234dd95f59 | 8,573 | #!/bin/bash
# CDF
# ---------------------------
# Change working directory to the top-most Finder window location
# From: https://github.com/mathiasbynens/dotfiles/blob/master/.functions
function cdf() { # short for `cdfinder`
cd "$(osascript -e 'tell app "Finder" to POSIX path of (insertion location as alias)')"... |
f96a31f3f0396e08f1672a7f5eb952fef6d440af | 519 | #!/bin/bash
export AWS_DEFAULT_REGION=eu-central-1
response=$(aws --no-sign-request --endpoint-url http://localhost:9324 sqs receive-message --queue-url http://localhost:9324/queue/Response)
echo "Response from SQS"
echo $response
if [ -z "$response" ]
then
exit
fi
aws --no-sign-request --endpoint-url http://loc... |
35a5f29d11f881796b19680ea4fd6f7bd2f37d59 | 442 | #!/bin/bash
gen_rand () {
echo gen_rands
rm input.dat
echo 4 >> input.dat
printf "\n" >> input.dat
for i in `seq 4`
do
for n in `seq 4`
do
echo $(( ( RANDOM % 10 ) + 1 )) >> input.dat
printf "\n" >> input.dat
done
done
}
gen_rand
./main < input.dat 1>>/dev/null ... |
2c661ce9df588a7ee59f67c7a494230e59909f86 | 410 | for target in CommitmentSigned FundingCreated FundingLocked FundingSigned OpenChannel RevokeAndACK Shutdown UpdateAddHTLC UpdateFailHTLC UpdateFailMalformedHTLC UpdateFee UpdateFulfillHTLC AcceptChannel ClosingSigned; do
tn=$(echo $target | sed 's/\([a-z0-9]\)\([A-Z]\)/\1_\L\2/g')
fn=msg_$(echo $tn | tr '[:upper:]' '... |
230fd157960f979d2c0d2aa9f46d66139a1ba00c | 2,952 | #! /bin/sh
#
# pure-ftpd-authd starts and stops the pure-ftpd ftp daemon
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=pure-ftpd
DESC="ftp server"
: ${SSDAEMONLOGOPTS:="--quiet"}
UPLOADDAEMON=/usr/sbin/pure-uploadscript
UDNAME=pure-uploadscript
UDDESC="ftp upload handler"
AUTHDAEMON=/usr/sbin/pure-authd
ADNAME=pure-authd
AD... |
4e7f091f1c437132a539f60606347ab143bd2912 | 488 | #!/bin/sh
setbg & # Set the background
sxhkd & # Bind keys
# Switch to gb keyboard with Caps as Mod/Escape
setxkbmap gb -option caps:super && killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' &
wal -R
# Properties button extra Mod/Escape
xmodmap -e 'keycode 135 = Super_R' &
xset r rate 300 50 # Speed xrate up... |
cb7f803ab9bb50f973b3c5335ad94a14ac32cbb3 | 483 | #!/bin/bash
gnuplot << EOF
splot "HCM-IrisRaw.result_classificationFunction" using 1:2:3 with lines, "HCM-IrisRaw.result_classificationFunction" using 1:2:4 with lines, "< awk '{if(\$3>\$4){print \$1, \$2, 0;}}' HCM-IrisRaw.result_membership", "< awk '{if(\$4>\$3){print \$1, \$2, 0;}}' HCM-IrisRaw.result_membership"
s... |
23ef2a5115c9f8d0f305a991cbe17e7c0196a617 | 2,088 | #!/bin/bash
# Copyright 2020 The FedLearner 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 requir... |
671199ca32118060a2ec10b75fa54984afbc6121 | 1,804 | #!/usr/bin/env bash
#
# Maintainer: Jorge Morales <jmorales@redhat.com>
#
# Package a box for uploading into Atlas as an OpenShift Origin all-in-one release
#
# $1 : Origin version
# $2 : Public host name
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__previous="$(cd $__dir/.. && pwd)"
help() {
echo "This ... |
9baeadb1bd64f7c879ed4e9fa348b9c47f699a10 | 274 | #!/bin/sh
cd /home/rolles/server/
echo "=================="
echo "Selenoid reload..."
echo "=================="
./cm selenoid stop
./cm selenoid-ui stop
./cm selenoid start
./cm selenoid-ui start
echo "=================="
echo "Selenoid reloaded"
echo "==================" |
e037050e629a75b1324719bf98da7f05a4c9d4f9 | 986 | #!/bin/bash
case "$1" in
new)
echo "[32;1m[INFO] Creating new cloudera-director docker instances ...[0m"
docker create -it --name director -h director.etu.im -v ${PWD}:/vagrant jazzwang/cloudera-director:centos6 /bin/bash
;;
start)
echo "[32;1m[INFO] Starting cloudera-director docker instances ...[0m"
docker s... |
376545f44b340bbce9c95ec7fcb44b1d8fa499fa | 282 | #!/bin/bash
WORKING_DIR=$(dirname $(readlink -f ${BASH_SOURCE[0]}))
if [ -z $LUMONGO_CLIENT_JAVA_SETTINGS ]
then
export LUMONGO_CLIENT_JAVA_SETTINGS="-Xmx256m"
fi
java $LUMONGO_CLIENT_JAVA_SETTINGS -cp $WORKING_DIR/@project@-@version@.jar org.lumongo.admin.FetchAssociated "$@"
|
8a1f10a76d15c1115ae7ae7ad0c33733b0f68cf3 | 377 | #!/bin/sh
if [ "$TRAVIS_BRANCH" = "master" ]; then
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh &&
heroku plugins:install @heroku-cli/plugin-container-registry &&
docker login -u=$HEROKU_EMAIL -p=$HEROKU_API_KEY registry.heroku.com &&
heroku container:push web --app $HEROKU_APP_NAME &&
... |
fb7bc5a998f99422b88b6c81bde403bb50480003 | 465 | #!/usr/bin/bush
perl /home/ryota/Desktop/OVO-AUTO/program/kousin2.pl
perl /home/ryota/Desktop/OVO-AUTO/program/txtonly.pl
perl /home/ryota/Desktop/OVO-AUTO/program/name2IRAS.pl
perl /home/ryota/Desktop/OVO-AUTO/program/create_all_list.pl
perl /home/ryota/Desktop/OVO-AUTO/program/aut-SourceList.pl
perl /home/ryota/Des... |
ef5c93ec339686e7f56d7d7c491d7851aee45f6b | 1,277 | #INSTALL MONGODB
# Import the public key used by the package management system
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
# Add sources
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/... |
f7bb079408312b0ed0dbe383c2ae642e0beaef8e | 155 | #!/bin/bash
echo "Previewing $1"
if [ $# -eq 1 ]
then
echo "Creating index.html"
sed "s/001/$1/" preview.html > index.html
http-server .
fi
|
5df54b66ab5f50e28bcb3e3de3f97bd42aac40fa | 81 | #!/bin/bash -e
# container setup script
# This script is run at image build time
|
d8b1182e66c85f16cf3b2aef2888374a24afe4d1 | 3,788 | # commandlinefu.com by David Winterbottom
# SVN Export files that were modified between given revisions.
svn diff . -r43:HEAD --summarize | cut -c9-99999 | cpio -pvdmu ~/destination
# Show only printable characters and newlines from a file or input
strings -1 <file>
# remove password from openssl key file
openssl rs... |
798510eb86e3bf61bb9e72be8bcd6e5297ac0042 | 3,863 | #!/usr/bin/env bash
# vpkg by tm@core.io
# Manage virtual pkgsrc environments easily with an simple shell script. To
# have easy commands feel free to create shell aliases.
# Defaults
VPKG_DIR=${HOME}/.vpkg
VPKG_GIT="git@github.com:NetBSD/pkgsrc.git"
# Personal configuration file for overwrite defaults
test -f "${HOM... |
f4bca9ed896d5c013ab4d774ea18f11cb50507f2 | 291 | #!/bin/bash -x
echo "Prime number between range"
read -p "Enter num1 " num1
read -p "Enter num2 " num2
for (( i=$num1; $i<$num2; i++ ))
do
count=0;
for (( j=1; $j<=$i; j++ ))
do
if [ $(($i%$j)) -eq 0 ]
then
((count++));
fi
done
if [ $count -eq 2 ]
then
echo $i
fi
done
|
b183dfaac90790c356f5306a1365ecc3c1c89436 | 229 | #!/bin/sh
$comm -f tests/bug89.train -t tests/bug89.test -mL -d ED1 -w x2 +v db+di -k3 -o bug89.out1
$comm -f tests/bug89.train -t tests/bug89.test -mL -d ED1 -w x2 +v db+di -k3 -G -o bug89.out2
cat bug89.out1
cat bug89.out2
|
59b8cbe1f3f6f0d20f39c756e2027c9cc335eb9b | 144 | #!/bin/sh
export GIT_COMMIT=$(git rev-list -1 HEAD)
export GO_VERSION=$(go version|sed 's/ //g')
export BUILD_DATE=`date "+%Y-%m-%d-%H:%M:%S"`
|
b8e035326bb37fdec331ad89d474a8715e2fac83 | 310 | # Set ROS melodic
source /opt/ros/melodic/setup.zsh
source /home/banana/catkin_ws/devel/setup.zsh
source /home/banana/study_ws/devel/setup.zsh
# Set ROS Network
#ifconfig查看你的电脑ip地址
export ROS_HOSTNAME=192.168.3.6
export ROS_MASTER_URI=http://${ROS_HOSTNAME}:11311
#Set gdb
alias gdb='gdb -q'
|
8cfa77cf685caf6569f68b6e174f9f92c9582f1d | 86 | max=2
for i in `seq 2 $max`
do
k=$(./generator >out.txt)
l=./a.out <out.txt
done
|
1abdadcf3c61190a4d1cd7bf5c4671b51098f207 | 98 | #!/usr/bin/env bash
set -e
if [ -n "$NODENV_NATIVE_EXT" ]; then
src/configure
make -C src
fi
|
40d6fbfe196680d67f47683109661aa3246b14ea | 923 | #!/bin/sh
# Script to convert lookup unknown barcodes from FLD list
# Version 1.0
# by Damian Yap, Molecular Oncology, BCCRC
# on beast.cluster.bccrc.ca
# 10 Jun 2013
# This is the path and name of the file that we want to identify the barcodes in
qpath="/home/dyap/Projects/MiSeq_Data/MiSeq_QC"
query=$qpath/"Matched_B... |
2f75c272ffb756628282059277b0bd27480d9e49 | 182 | #!/bin/bash
echo "Nombre del archivo asm sin extension"
read archivo
avra $archivo.asm
avrdude -p m328p -c stk500v1 -b 115200 -F -P /dev/cu.wchusbserial1410 -U flash:w:$archivo.hex
|
1a4a0543df4240e66e0c2f156f330dc74a0d0ba4 | 944 | # The following properties MUST be configured before the Job Service can be deployed.
export JOB_SERVICE_HOST=NOT_SET_JOB_SERVICE_HOST
export JOB_SERVICE_8080_SERVICE_PORT=NOT_SET_JOB_SERVICE_8080_SERVICE_PORT
export JOB_TRACKING_8080_SERVICE_PORT=NOT_SET_JOB_TRACKING_8080_SERVICE_PORT
export JOB_TRACKING_8081_SERVICE... |
ad7f09d164bfa0ac383910ed895cd9aaf28fcf6b | 876 | # vim: ft=sh
name="polkit"
iteration="1"
version="0.112"
desc="Application development toolkit for controlling system-wide privileges"
bdeps=('glib2' 'pam' 'expat' 'systemd' 'mozjs')
deps=('glib2' 'pam' 'expat' 'systemd')
arch=('any')
flags=()
src=('http://www.freedesktop.org/software/polkit/releases/polkit-0.112.tar.g... |
4ecf5eac56996f420b5de6efe565df4fba438037 | 900 | #!/usr/bin/env bash
set -xe
python clinvar_api/main.py submit --key-file clinvar_key_runx1_vcep.txt --file executions/20210422/RUNX1/1/submissions/submission-5-603cd528-c485-4e30-934a-cabde6c6d80d.json
python clinvar_api/main.py submit --key-file clinvar_key_runx1_vcep.txt --file executions/20210422/RUNX1/1/submission... |
6698582cf7c99c35ba7d64d04cf104244318fc6a | 65 | #!/bin/sh
checknametype="--cn"
checknameprefix=""
. STlsServer
|
d55b23fc97d885f89af746b81f76a53d5def0acf | 161 | #! /bin/bash
cd /var/www/html/tde/tde/scripts
./import.py -u
./make-catalog.py
stamp=$(date +"%Y-%m-%d %k:%M")
./commit-and-push-repos.sh "Auto update: $stamp"
|
0135600fd24dd9d5ca4610d4f7996f118561ba11 | 335 | #!/bin/bash
# Create the .env file
cp -n .env.example .env
# Start the containers
docker-compose up -d
# Install dependencies
docker-compose exec rest-api-php composer install
# Create the database tables
docker-compose exec rest-api-php php artisan migrate
# Seed the database
docker-compose exec rest-api-php php ... |
d7dd936c57ef481aa2224c103eda7d616e4f60c4 | 260 | # Show bridges
CMD="ip a s" && echo -e "\n$CMD" && eval $CMD
CMD="ip r s" && echo -e "\n$CMD" && eval $CMD
CMD="route -n" && echo -e "\n$CMD" && eval $CMD
CMD="brctl show" && echo -e "\n$CMD" && eval $CMD
CMD="ovs-vsctl show" && echo -e "\n$CMD" && eval $CMD
|
44f06c0ccb4afea3ec5566a3a454391ed77c75a1 | 203 | #!/usr/bin/env bash
set -e
echo "Configuring mail..."
ansible-playbook /usr/local/bin/main.yml -i localhost, --connection=local
# Create logging FIFO
mkfifo /dev/maillog
echo "Exec'ing $@"
exec "$@" |
8564cf6bc9bc834a270c3de62f5c2e30a3001832 | 420 | #input: CHARM0,... CHARM1, CHARM2....CHARM6
DATADIR=/eos/experiment/ship/data/rpc_charm/
for FILENAME in $(ls $DATADIR$1/*/*.root); #when using *root, FILENAME acquires the full path
do
FILENAME=${FILENAME//$DATADIR/}
#FILENAME=${FILENAME//$1"/"/}
echo "NOW PROCESSING ", $FILENAME
root -l -q /afs/cern.ch/work/a/ai... |
51ccde0d7b27eaad6f24be71b16d4bd7848ca789 | 1,290 | #!/bin/bash
#
# This is used to start/stop webapp
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/.."
RETVAL=0
start () {
rm -f $BASEDIR/src/webapp/*.pyc
/usr/bin/env python $BASEDIR/src/webapp/webapp.py start
RETVAL=$?
if [[ $RETVAL -eq 0 ]]; then
echo "started webapp"
... |
1b94e53f9ad954527992f45b7388e91751b33e79 | 778 | #!/bin/bash
# Run in centos
# Author: Shamphone Lee
JAVA="$JAVA_HOME/bin/java"
WORKING_DIR=$(cd `dirname $0`; pwd)
WORKING_DIR="$(dirname ${WORKING_DIR})"
echo "running in ${WORKING_DIR}"
MAIN_CLASS="org.cocolian.data.server.DataServer"
JAR_LIB="$WORKING_DIR/${project.build.finalName}.jar"
JAR_LIB="${JAR_LIB}:... |
9a1f01848fd5e41716cec6fe639217f7fd7db35c | 2,247 | #!/usr/bin/env bash
composer selfupdate
composer install -n
export SSH_KEY_PRIVATE="-----BEGIN RSA PRIVATE KEY-----
MIIEogIBAAKCAQEAtrRqT7d6qyPxuEDiXj+5ANooQvVP3GONhjWbnnayqHDRhkAY
L4xjUT9ZAnsV3miduSlLYvrRWz41a3besYagC4sFLqUmBbrGgFRA3MJeiizBgDh1
g9F+4Xa2i98OAE8jUwb6MMnPWb7KJZTck1Kg1sTdlEk35PPV3fktp6AH6AlCXeHz
BJgXgAKp... |
24fde36c6c1f44e5be3468adc9f90fdb9e985b95 | 135 | #!/bin/bash
volumes=$(docker volume ls -qf dangling=true)
if [ -n "$volumes" ] ;then
docker volume rm $volumes
else
echo "empty"
fi
|
305014d31d42b09929fc75230eb0ce4b3cd28fdf | 1,125 | #!/usr/bin/env bash
#当前在环境为Project/app目录
apk_path=`pwd`/app/build/outputs/apk/app-debug.apk
report_path=`pwd`/reporter/index.html
#echo "打包app"
#gradle assembleDebug
#adb uninstall com.weex.jasso
#echo "安装app"
#adb install ${apk_path}
#echo "启动app"
#adb shell am start -W -n com.weex.jasso/.Test1Activity -a android.in... |
801b613783dcbfbe92b4b54910df7282e1700b66 | 118 | NODE_ENV=production
REACT_APP_API= ${{ secrets.REACT_APP_API}}
REACT_APP_STRIPE_KEY=${{ secrets.REACT_APP_STRIPE_KEY}} |
0d4b12e863d15d155240180b89d7179d72410b98 | 668 | echo '=== Start deploy ==='
docker container start postgresql1 &&
cd /home/blog/app/nextjs-blog &&
git reset --hard HEAD &&
git pull &&
yarn --production=true &&
rm -rf ./.next/ &&
yarn build &&
yarn compile:src &&
yarn m:run &&
docker build -t hehe1111/nextjs-blog . &&
docker kill nextjs-blog nginx1
docker rm nextjs-b... |
ff3b8a71b0c68b0f01e5eeb10d0d7f7224304b5c | 136 | #!/bin/sh
set -e
# Add or modify any build steps you need here
cd "$(dirname "$0")"
cp src/words words
go build -o ics src/ics/*.go
|
9e00992e00d7f71c9afa1bda16614a42d7714da0 | 2,765 | #!/bin/bash
# Colours
lgreen="\e[92m"
lred="\e[91m"
nc="\e[39m"
lyellow="\e[1;33m"
issslon=0
function exitprogram()
{
# This function exits the scripts using the trap command
echo ""
echo -e $lgreen"Aight bet..."
echo -e $lred"cya soon XD"
exit 0
}
function checkroot()
{
# This function checks to see if the us... |
ee7f188d2b3a1bc857939a185fe30be91a594464 | 107 | source simpleappenv/bin/activate
gunicorn --workers 5 --bind unix:simpleapp.sock -m 007 src:app
deactivate
|
55826f8f6b7d5f2584cd5796d88735a079199c70 | 253 | #! /bin/bash
var=0
for i in `ls -l $1| awk '{ if ( $1!~/x/ && $2 ~ 1){print $NF}}'` # | wysyla ls -l do awk $1 - pozwolenia jesli x wyswietla ostatnia pozycje w tabeli - nazwe pliku
do
cd $1
echo $i
var=$((var+1))
mv $i $i.${var}.
done |
d5b4013ef3d2f79dc899a00a4105b1670ca01f80 | 74 | #!/bin/bash
MONGO_URL=mongodb://localhost:27017/projector meteor -p 3040
|
f8f7611a5f98e254d26f4c32dd64acb07d9526ab | 173 | grep 'Endocrine disorders' mdhierz_asc_3_colums.txt >Endo
grep 'Eye disorders' mdhierz_asc_3_colums.txt >Eye
grep 'Social circumstances' mdhierz_asc_3_colums.txt >Social
|
b59c9fbabd2aaa96bf2c74778ea61dc4470d7ca5 | 752 | #!/bin/bash
set -e
source /var/vcap/jobs/jumpbox/config/bashrc
EXITSTATUS=0
check() {
name=$1
echo -en "Checking \e[1;35m${name}\e[0m... "
if ! $* >/dev/null 2>&1; then
echo -e "\e[1;31mFAILED!\e[0m"
EXITSTATUS=1
else
echo -e "\e[1;32mOK\e[0m"
$* 2>&1 | sed -e 's/^/ /g'
fi
echo
}
export HOME=/var/vcap... |
8567acf43352226cc4936e26d88b17e6dc3a6db6 | 357 | #!/bin/bash
source $REPO_HOME/tools/share.sh
set -e
set -x
export RISCV=$INSTALL_DIR
mkdir -p $INSTALL_DIR
# ------ Spike -------------------------------------------------------------
refresh_dir $DIR_TOOLCHAIN_BUILD
cd $DIR_TOOLCHAIN_BUILD
$DIR_TOOLCHAIN/configure \
--prefix=$INSTALL_DIR \
--e... |
870d8fc2c0553a91495f4ce01fca12fce6f2ccf8 | 130 | #!/bin/bash
echo "check writing data when SCSI device has no more space"
$(dirname $0)/../helper/check_limit_helper.sh "/mnt/hd" |
af027ab75366e9590d4ec7bc71cbfd395d463fa8 | 538 | #!/bin/bash
CONFIG_HOST=${CONFIG_HOST:=vbc-config}
CONFIG_PORT=${CONFIG_PORT:=8888}
JAVA_OPTS=${JAVA_OPTS:-"-server -Xms64m -Xmx128m -XX:+UseParallelOldGC"}
a=0;
while ! nc -z ${CONFIG_HOST} ${CONFIG_PORT};
do
a=$(($a+1));
if [ "$a" -gt 20 ]
then
echo startup failed!
... |
7df7b15c42753ef17546af028081842a5392b877 | 4,517 | #!/bin/bash
############################################ BASICS
SCRIPT_DIR="$COMPOSER_RUNTIME_BIN_DIR"
WORKING_DIR=$(pwd)
source $SCRIPT_DIR/sake-self-methods
############################################ DIR
if [ "$1" != "" ]; then
dir=$1;
else
dir='vendor'
fi
############################################ SET... |
1752e15ba1b498b117d28b5b4d0f2e7b437c1bfe | 211 | #!/usr/bin/env bash
if [ ! -f install ];then
echo 'install must be run within its container folder' 1>&2
exit 1
fi
WORKDIR=`pwd`
export GOPATH=$WORKDIR
gofmt -w src
go install test
echo 'finished'
|
e554940d12e33093eaa8de1170dba09561b75fc5 | 206 | #!/bin/bash
## [Merge]
##
## Checkout the version of "file.a" from either
## the current branch (ours) or the branch being
## merged into the current branch (theirs)
##
git checkout --{ours,theirs} file.a
|
fe2d8d8990f15bf4c484774b933718796d21a85a | 979 | #!/bin/bash
# Install fonts
bower install;
# Build global Sushi Card CSS
lessc "src/css/web.less" "_assets/website/sushi.css";
lessc "src/css/print.less" "_assets/ebook/sushi.css";
# Put fonts where GitBook can find them
# Lato
mkdir -p _assets/website/fonts/lato;
cp -R bower_components/lato/font/ _assets/websit... |
54b44a5f5713e0f6b3fb3d0cac599ce8633c8659 | 90 | #!/bin/bash
set -v
javac -d ./mods/ --module-source-path src $(find src -name "*.java")
|
8f4e728ebd3e1ab1f40222ce15e88e72495cd97f | 32 | #!/bin/sh
head -n 20 /dev/fd/0
|
fd6c9823c64b9170d94558889aacbb9298b0becd | 1,699 | lua_platform()
{
typeset platform=$(uname -s| awk -F_ ' { print tolower($1); } ')
[ "$platform" == "cygwin" ] && platform="mingw"
echo $platform
}
#
# Build lua
build_lua_core()
{
typeset rc=0
export rc_conf=0 rc_make=0 rc_makeinstall=0
typeset id="$1"; shift # build id
typeset dir="$1"; shift # src direct... |
9f9864fe2903cde12d6cda60d55e9249d128992c | 291 | module.exports = {
authSecret: process.env.AUTH_SECRET
}
MYSQL_HOST=robb0427.publiccloud.com.br
MYSQL_USER=dmxwe_ifpj1
MYSQL_PASSWORD=aGqc3*61
MYSQL_DATABASE=dmxweb2_ifpj_boletim
MYSQL_APP_HOST=167.99.0.146
MYSQL_APP_USER=ifpj
MYSQL_APP_PASSWORD=@ifpjdb*123
MYSQL_APP_DATABASE=ifpj_app |
0cb24c0498fc146b94d9f475e541c818234abd6b | 412 | #!/bin/bash
set -eu -o pipefail
outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
mkdir -p $outdir
mkdir -p $PREFIX/bin
cd $SRC_DIR
cp grid.sh GRiD*.R README.md update_database.sh bowtie.txt check_R_libraries.R $outdir
cp -R blast_database $outdir
cp -R PathoScope $outdir
chmod +x $outdir/*.sh
ln -s $outdir/... |
23d706b411e4fbe712182eca6243784c2a5c79cd | 145 | #!/usr/bin/env zsh
set -ex
mkdir -p ~/.ssh
chmod 700 ~/.ssh
cp ./ssh/config ~/.ssh/
chmod 600 ~/.ssh/config
echo "Now go get your private key!" |
20c6be94a0cefb1f89d4ef1f79a8dcabd10d7e55 | 3,464 | #!/bin/bash
#
# sea's Script Tools: The 3rd Generation
#
# Description: Writes an imagefile to selected USB drive with DD
# Author: Simon A. Erat (sea) <erat.simon AT gmail.com>
# License: GPL v3
# Date Created: 2011.09.09
# Date Changed: 2013.08.25
script_version=1.4
# Resource: man mkfs, fsck, cfdisk, wipefs... |
3023fcf32397defc3270702e2c31c8b46b95ccbf | 2,409 | #!/bin/bash
#takes input files (and path and module) from list_BI.txt file
#generate BI/BC files
#execute: "cat non_generatedBI_files.txt | sort -u" to see the list of input files that can't generate a BI
#takes only the $1 first entries (if empty, takes 20)
nb=$1
if [ -z "$nb" ];
then
nb=20
fi
HEAD="head -n $nb"
F... |
5265250b98094137c08ab512910999ebfa467c46 | 507 | #!/bin/bash
BIN_DIR=bin
INSTALL_DIR=$(realpath ..)/libfoo
do_clean() {
rm -rf ${BIN_DIR}
}
do_build() {
mkdir -p ${BIN_DIR} && \
cd ${BIN_DIR} && \
cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} .. && \
make install
}
do_rebuild() {
do_clean
do_... |
7f5789dd4935b909409f1d959e0fb4e98c37246a | 68 | hadoop fs -rmr $1
hadoop fs -put $1
pig -param SRCS=$1 ranking.pig
|
8859f66daf3741225e6d223479e47396199a1afe | 264 | #!/usr/bin/env bash
# This script kills all background jobs.
# Reference: https://unix.stackexchange.com/questions/43527/kill-all-background-jobs
# Debian version
# kill $(jobs -p)
# OS X version
jobs -p | xargs kill
# Gnu version
# jobs -p | xargs -rn10 kill
|
95b9bf75fa2e179282e31dd503634a9923c0605a | 471 | #! /bin/bash
declare -a dataset=("gossipcop_fake" "gossipcop_real" "politifact_fake" "politifact_real" "Aminer")
declare -a methods=("proposed" "HITS" "CoHITS" "BGRM" "BiRank")
for d in ${dataset[@]};
do
echo $d
python main_parameter_analysis.py --para 1 --model proposed --merge_tt 0 --dataset $d --testi... |
c2bdba0bce26a67695278d207ba63119c93d66e3 | 149 | #!/bin/bash
react-native bundle --entry-file index.js --platform ios --dev false --minify false --bundle-output ios/main.jsbundle --assets-dest ios
|
8cb2080cc3325dbed03a87148523d6c237536bf1 | 4,741 | # Script runs services in 'PROD' mode by default
# Available parameters are:
# --mode <mode-name> - starts all services in 'DEV', 'QA' or 'PROD' mode
# --service-name <service-name> - starts specific service with its dependencies
# --down-only - stops and removes containers of running services
# --logs-only - displays ... |
a06218f974fe9e6adac79c26766e98d15fc18a4a | 1,419 | #!/bin/bash
#data=~/raida/data
#data=/msu/data/t3work5/ivanp/ntuple_analysis/Wm1j7TeV_cp2/data
data=data
part=$1
#if false; then
echo -e "\n\E[0;49;93mReweighting\E[0m\n"
./bin/reweigh --bh=$data/Wm1j7TeV_"$part"_0.BH.root -o $data/Wm1j7TeV_"$part"_0.weights.root --pdf=CT10 --old-bh
echo -e "\n\E[0;49;93mMaking ne... |
ec378727d2be28b3ccf35813804a52d8fcdf6e42 | 76 | #! /usr/bin/env bash
eksctl utils write-kubeconfig -c rafaelkb -r us-east-2 |
d598d2761300e36e93a8a7718f68224147c97055 | 170 | # run shadowsocks server
shadowsocks-server -p 8888 -m aes-256-cfb -k ${PASSWORD} &
# run kcp server
server -t 127.0.0.1:8888 -l :29900 --mode ${MODE} --key ${PASSWORD}
|
456bcafb1ac24534f61d16709d219ab839d32157 | 53 | export IMAGENAME=chaffix/tf_py36:ub16-tf1.12-cuda9.0
|
434be69408f27267e7b3fe5732d2e1d46e0e0be8 | 2,623 | #!/bin/bash
#
# generate_network_config.sh finds the epoxy.ip= kernel parameter, parses it and
# writes a networkd configuration file for the static IP to the named file.
# generate_network_config also sets the machine hostname.
OUTPUT=${1:?Please provide the name for writing config file}
# TODO: Modify ePoxy to reco... |
4eeaed191ff94b887487baa16414defb0acc9a53 | 7,284 | #!/bin/bash
#
# vim: set ts=4 sw=4 tw=0 et :
#
# {{ ansible_managed }}
#
# Copyright (C) 2014-2017, University of Washington. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions o... |
7d4a73fb849e198f1229585b3f3163dab40b9ce9 | 619 | #!/bin/bash
# test cases for example-0404 (1D problem with Hodgkin-Huxley)
echo "compiling and running example $(pwd)"
folder=$1
mkdir -p $folder
echo " compiling $folder"
cd $folder
cmake -DCMAKE_BUILD_TYPE=$folder -DOPENCMISS_BUILD_TYPE=$folder ..
make
cd ..
echo " running $folder"
# <number elements X> <interp... |
3a314b335f32a338e781d9aab483237d2d373231 | 167 | #!/bin/bash
rm -rf ./data/grafana-grpc/data/grafana.db
rm -rf ./data/grafana-grpc/data/plugins/
rm -rf ./data/grafana-grpc/data/png/
rm -rf ./data/prometheus/data/
|
0a1bef52baa7344b9548ec0652fa5b16b6c6559f | 121 | #!/bin/sh -e
update.sh
sudo grub-reboot "$(sudo grep -i 'windows' '/boot/grub/grub.cfg' | cut -d"'" -f2)" && sudo reboot
|
7c1ca9019c7044412bc0483c5dbb6ea4f7975993 | 193 | source heroku-config
sfdx heroku:pipelines:destroy $pipelineName
sfdx heroku:apps:destroy --app $stagingName --confirm $stagingName
sfdx heroku:apps:destroy --app $prodName --confirm $prodName |
99cbc9a2479358af1f7ce3edcfb7baa5b32ca3f8 | 186 | #!/bin/sh
# Run the reverse engineering api
JAR=${1?Usage: $0 jar}
REVENG_HOME=/home/ian/workspace/revengapi/build
cd /tmp
java -cp ${REVENG_HOME}:${JAR} reveng.RevEngAPI -b ${JAR}
|
ffbe27f960120d232886f27d1b33bcef042cc7e4 | 176 | #!/bin/bash
java -ea -cp '../../../../../jars/*' -Djava.security.manager \
-Djava.security.policy=dcvm.policy \
fr.upmc.components.registry.GlobalRegistry config.xml
|
6ccc1cfce380159cb16c8e0b98f459cf35abfe88 | 129 | # vi : filetype=bash
BASH_ENV_USE_GOOGLE_IME_SKK=1
BASH_ENV_SHARE_HISTORY=0
BASH_ENV_WSL2_LOCAL_IP=0
BASH_ENV_WSL_LOCALHOST_IP=0
|
824d29385750343a33d8577a9c58d047c8869456 | 355 | #!/bin/sh
update_webhook=
upstream=$(curl -s "https://pkgs.alpinelinux.org/package/edge/community/x86_64/borgbackup" | htmlq -t '[aria-label="Flag this package out of date"]')
downstream=$(curl -s "https://hub.docker.com/v2/repositories/library/alpine/tags/$upstream" | jq -r ".name")
if [ "$downstream" != "$upstream" ]... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.