blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
08359337c36c24d6e9888441bfa13bf206c5c57b | Shell | ksy141/scripts | /remove_H.sh | UTF-8 | 189 | 3.25 | 3 | [] | no_license | #!/bin/bash
if [ "$1" == "-h" ]; then
echo "Useage: bash $0 pdb_file"
echo "Delete the line if atomtype is H"
exit 0
fi
cat $1 | awk '$1 == "TER" || ($1 == "ATOM" && $3 ~ /^[^0-9H]/)'
| true |
3a257f199587c062ca7a5dc3c058d88e306c5baf | Shell | lapher/ShellScript | /3-2-7.bash | UTF-8 | 1,903 | 3.484375 | 3 | [] | no_license | #!/bin/bash
#Description: 3-2-7 (1A2B)
#Write By : CC104 鄭景文 13
#Version:
declare -a arrayANS
declare -a arrayG #Guess
declare -a arrayT #test
declare -a arrayAB #?A?b
function RAN () {
let varANS=$RANDOM*10/32767
}
#RANDOM
for (( y=0; y<=3; y=y+1 ))
do
RAN
flag="error"
until [ $flag == "ok" ]
d... | true |
fb0cbde05766b862cfa0eb4d07b2e5c610d7db6f | Shell | apfohl/listy | /boot/01-init.sh | UTF-8 | 476 | 3.21875 | 3 | [] | no_license | #!/bin/sh
HOSTNAME=`hostname -f`
DOMAIN=`hostname -d`
LISTY_DOMAIN="${LISTY_DOMAIN:-$HOSTNAME}"
# Initialization
INIT_TOKEN=/data/.initialized
if [ ! -f "$INIT_TOKEN" ]; then
echo "Initializing..."
mv /init/mailman /data
rm -r /init
sed -i "s/lists.example.com/$LISTY_DOMAIN/g" /usr/local/mailman/Ma... | true |
678d93c05c487c22fa2cc03df39f2701a7d34d54 | Shell | alexgenaud/twine | /twine-start.sh | UTF-8 | 628 | 3.828125 | 4 | [
"LicenseRef-scancode-ryszard-szopa"
] | permissive | #!/bin/bash
SERVERSUFFIX=redis-server-1.2.6
USE_HOST=$1
# if no arguments, then we must be sure
# there is only one host in the partitions directory
if [ $# -eq 0 ]; then
USE_HOST=_BOGUS_DIRECTORY_
if [ `ls partitions|wc -l` -eq 1 ]; then
if [ -r partitions/`ls partitions` ]; then
USE_HOST=`ls partitio... | true |
9a863bfe0bcf97882443eb2cfdc973e6c6f36621 | Shell | IgorBMSTU/controller_deploy | /overlayroot_managing/show_mode.sh | UTF-8 | 446 | 3.3125 | 3 | [] | no_license | #!/bin/bash
set -e
curr_dir="$(dirname "$BASH_SOURCE")"
source "${curr_dir}/include/common.sh"
check_overlayroot
overlayroot_mounted=$_RET
overlayroot_not_mounted_error=$_ERROR_MSG
overlayroot_upperdir=$_UPPER_LAYER
active_mode=$_ACTIVE_MODE
if $overlayroot_mounted; then
log_info "Overlayroot is mounted"
else
l... | true |
e43cce587b068e09f7b5e2cfadf184ab50b0a075 | Shell | aur-archive/lcalc | /PKGBUILD | UTF-8 | 978 | 2.609375 | 3 | [] | no_license | # Maintainer: Antonio Rojas <nqn76sw@gmail.com>
pkgname=lcalc
pkgver=1.23
pkgrel=2
pkgdesc="C++ L-function class library and command line interface"
arch=('i686' 'x86_64')
url="http://oto.math.uwaterloo.ca/~mrubinst/L_function_public/L.html"
license=('GPL2')
depends=()
source=("http://oto.math.uwaterloo.ca/~mrubinst/L... | true |
4be40d613d3a233aaa3932fbbbe8c6820713057f | Shell | phanviet/beekids-devops | /init.sh | UTF-8 | 561 | 3.265625 | 3 | [] | no_license | #!/bin/bash
BACKEND_LANDINGPAGE_REPO=git@github.com:phanviet/bk-backend-landingpage.git
BACKEND_SHOP_REPO=git@github.com:phanviet/kid.git
FRONTEND_LANDINGPAGE_REPO=git@github.com:phanviet/beekids-landingpage.git
CURRENT_DIR=$(pwd)
init_repo () {
if [ ! -d "$1" ]
then
git clone $2 $1
fi
}
# Clone backend re... | true |
90926c0d079193319a7f984e628725c42eca6a26 | Shell | petronny/aur3-mirror | /apr-util-mysql/PKGBUILD | UTF-8 | 793 | 2.53125 | 3 | [] | no_license | # Contributor: Daniele Paolella <dp@hostess-promoter.com>
pkgname=apr-util-mysql
pkgver=1.3.12
pkgrel=1
pkgdesc="The Apache Portable Runtime with MySQL support"
arch=('i686' 'x86_64')
url="http://apr.apache.org/"
depends=('apr' 'gdbm' 'expat' 'db' 'libldap' 'unixodbc')
options=('!libtool')
license=('APACHE')
provides=(... | true |
2ca088fea95bd7fe5d606f238a047d106083ed40 | Shell | pensz/arduino_work | /HomeLink/testclient.sh | UTF-8 | 948 | 3.84375 | 4 | [] | no_license | #!/bin/bash
if [ -z "$1" ]
then
echo "Usage : $0 devicefile "
exit 1
fi
ARDUINO_PORT=$1
ARDUINO_SPEED=9600
# Set speed for usb
uname=$(uname)
if [ "$uname" == 'Linux' ]
then
stty -F $ARDUINO_PORT ispeed $ARDUINO_SPEED ospeed $ARDUINO_SPEED
elif [ "$uname" == 'Darwin' ]
then
stty -a -f $ARDUINO_PORT s... | true |
d8d568e57c00ebc1cd405b338029338213bdff7d | Shell | linushsao/script | /my_switch.sh | UTF-8 | 302 | 3.171875 | 3 | [] | no_license | #!/bin/bash
PATH_SCRIPT="/home/linus/script"
PATH_LOG="/home/linus/log"
FLAG="ON"
case $1 in
"on")
touch ${PATH_LOG}/TIMER
;;
"off")
mv ${PATH_LOG}/TIMER ${PATH_LOG}/TIMER_OFF
;;
*)
echo "wrong param{now TIME_PERIOD / clock TIME_START TIME_STOP TIME_ALARM}"
exit 0
;;
esac
| true |
b706407fa06a322fe5db41fef07553c08f9c9f30 | Shell | wangguitao/intelligent-protector | /ci/script/codebin/copyPkgToCompareFromALM.sh | UTF-8 | 368 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
MAIN_PATH=`pwd`
umount /home/dirALM
mount -t cifs -o username=Administrator,password=Huawei@123 //10.183.52.105/codebin/alm /home/dirALM
if [ $? -ne 0 ]
then
echo "ERROR:mount //10.183.52.105/codebin/win_dest to /mnt failed!"
exit 1
fi
cd /home/compareCode
dest_file=`find ./ | grep Agent.zip`
cp -r... | true |
bd641d4730ae797bb8f4588dd0aca6a08861b966 | Shell | DeNA/Login-Toboggan-Unity | /LoginToboggan/Assets/MobageNDK/MobageNDK.bundle/Tools/android/installFacebook.sh | UTF-8 | 6,533 | 3.03125 | 3 | [] | no_license | while getopts D:I:S:P:O:U: option
do
case "${option}"
in
D) eval WORKSPACE=${OPTARG};;
I) eval INSTALL_DIR=${OPTARG};;
S) eval SDK_DIR=${OPTARG};;
P) eval PACKAGE_DIR=${OPTARG}
CREATEPACKAGE=true;;
U) eval UNITY_APP=${OPTARG};;
O) ONLYPACKAGE=true;;
esa... | true |
a8ae7fe1d4ae52f47fbec81963f4b8e47745eb1c | Shell | mhailstone/helloWorld | /codeship/k8s/kubectl-aws | UTF-8 | 171 | 2.84375 | 3 | [] | no_license | #!/bin/bash
CONF_FILE="/root/.kubectl_config_aws"
if [ ! -f $CONF_FILE ]; then
echo -e $KUBECONFIG_AWS | base64 -d > $CONF_FILE
fi
kubectl --kubeconfig=$CONF_FILE $@
| true |
d52b4c91bf58da8643e61c7db651f112dc3e790b | Shell | ygmpkk/house | /ghc-6.2/distrib/prep-bin-dist-mingw-hdirect | UTF-8 | 943 | 3.9375 | 4 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"SunPro",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
#
# Running 'binary-dist' gives us a tree which
# isn't quite right for the purposes of creating
# a mingw/win32 install tree. This script rejigs
# the tree.
#
# To use:
#
# foo$ cd <top of fptools build tree>
# foo$ make binary-dist Project=Ghc
# foo$ cd ghc-<version>
# foo$ ../distrib/... | true |
f70bb5b7f7e1eec9387ba01f2a80972599d95724 | Shell | harsath/Foo-Parser | /CI-script/build_run_test.CI.sh | UTF-8 | 508 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -u
FOO_CONF_FILE=$PWD/tests/parse_file.foo
TEST_BINARY_NAME="parser_test"
if [[ -f ${FOO_CONF_FILE} ]]; then
mkdir build && cd build
cmake .. && make
DIRECTORY_BASE=$(basename $PWD)
if [[ ${DIRECTORY_BASE} == "build" ]]; then
cp ../tests/parse_file.foo ./tests && cd tests
if [[ -f ${TEST_... | true |
97f16fcb9b9a8c18220291cce3e9767cd561ac72 | Shell | herbstluftwm/herbstluftwm | /ci/clang-and-tidy.sh | UTF-8 | 2,874 | 4.03125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
###
# This script is a wrapper around clang and clang-tidy. It behaves mostly like
# clang (or clang++, depending on the program name), but also executes
# clang-tidy on the given source file.
#
# The purpose of this is to reduce CI check times by tricking ccache into
# serving as a cache for clang-tidy as... | true |
be94cd418894f8722d40e6cd91a52e66e2c1bc5a | Shell | ohtuprojekti-medified/adminapp-medified | /scripts/lint.sh | UTF-8 | 229 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
lint_project () {
echo $PWD
npm run lint-fix
cd ./frontend
echo $PWD
npm run lint-fix
cd ../backend
echo $PWD
npm run lint-fix
cd ..
}
echo "Fix linting for project"
lint_project
| true |
726f9d33d03780fbd5ca1c8cd1cb315d5c61090e | Shell | caoky8989/LVAD | /sample-jobscript.sh | UTF-8 | 780 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks=24
#SBATCH --time=24:00:00
#SBATCH --mail-type=ALL
#SBATCH --mail-user=<cu-identikey>@colorado.edu
#SBATCH --partition=shas
#SBATCH --output=job-test-Case-01-%j.out
## Written by : Akshita Sahni, 14th July 2021
## Purpose : To submit a svsolver job on RC resources
## pu... | true |
a7139cc3dec6a8a731c2b78f3216051c50f731c7 | Shell | sirosen/sirosen-config | /files/zsh/myfuncs/base.sh | UTF-8 | 293 | 2.5625 | 3 | [] | no_license | venv-activate() {
source "$1"/bin/activate
}
forget-known-host () {
ssh-keygen -f ~/.ssh/known_hosts -R "$1"
}
lgrep () {
ls -lA | grep "$@"
}
source ~/.myfuncs/setup.sh
source ~/.myfuncs/terminal.sh
source ~/.myfuncs/aws.sh
source ~/.myfuncs/git.sh
source ~/.myfuncs/vmware.sh
| true |
5d747af458e3ae688db7e58a47a58949a8e4305a | Shell | vitorqb/pacs | /docker/entrypoint | UTF-8 | 937 | 3.34375 | 3 | [] | no_license | #!/bin/bash
USAGE="$0"'
Entrypoint for pacs docker image.'
# getopt
SHORT='h'
LONG='help'
OPTS="$(getopt --options $SHORT --long $LONG --name "$0" -- "$@")"
! [ "$?" = 0 ] && echo "$USAGE" 1>&2 && exit 1
eval set -- "$OPTS"
while [[ "$#" -gt 0 ]]
do
case "$1" in
-h|--help)
echo "$USAGE"
... | true |
219e8ada7e7316deb35470dc3c895272cfc964a5 | Shell | samidbb/k8s-monitoring | /deploy-grafana.sh | UTF-8 | 1,443 | 3.703125 | 4 | [] | no_license | #!/bin/bash
set -e
echo 'Checking for required environment variables...'
if [[ -z $NAMESPACE || -z $SLACK_CHANNEL || -z $SLACK_URL || -z $ADMIN_PASSWORD ]]; then
echo 'required environment variables missing'
exit 1
fi
# Generate variables from script input
KUBE_ROLE="$NAMESPACE-fullaccess"
ROOT_URL="https://%... | true |
4d50e5a65d681557a38c4dc7e986bb3df7be12c9 | Shell | lonslonz/PrimeMailer | /bin/unittest.sh | UTF-8 | 388 | 2.59375 | 3 | [] | no_license | #!/bin/bash
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`
. "$bin"/config_unit.sh
UNITTEST_CLASS="com.skplanet.cask.test.Runner"
#echo "unit dir:$UNITTEST_DIR"
#echo "unit class:$UNITTEST_CLASS"
#echo "class path:$CLASSPATH"
#exit 3
#echo "java -Dserver.home=$UNITTEST_DIR -cp $CLASSPATH $UNITTEST_CLASS start"
java -Dser... | true |
8a4c8292fa1306b604347ef2581c55e13c223466 | Shell | russbt/dotfiles | /tcsh/cshrc | UTF-8 | 863 | 2.734375 | 3 | [] | no_license | # permit over-write of files
unset noclobber
# set depth of command history
setenv savehist "1000 merge lock"
setenv histfile "~/.history"
# set a useful prompt
set prompt="%m %c %h> "
# set up access to local installs
if ( -d $HOME/local/lib ) then
setenv LD_LIBRARY_PATH "${HOME}/local/lib:${LD_LIBRARY_PATH}"
end... | true |
4d8565082120c47ef6c63c0272ea4d630eca7d7c | Shell | ffff5912/dotfiles | /.bash_profile | UTF-8 | 238 | 2.5625 | 3 | [] | no_license | # .bash_profile
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
export PATH=$PATH
export PATH=$HOME/bin:$PATH
export PATH=/usr/bin:$PATH
export PATH=/usr/local/bin:$PATH
export PATH=/usr/local/sbin:$PATH
export PATH=/opt/python-2.7/bin:$PATH
| true |
b55af292d48df7821dd4de63fb90326e2122a27d | Shell | titovanton/bicycle-factory | /templates/deploy.sh | UTF-8 | 782 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# expample: sudo ./deploy.sh username
if [ ! $1 ]; then
USR=titovanton
else
USR=$1
fi
%PROJECT_DIR%/manage.py glue
%PROJECT_DIR%/manage.py assets build
%PROJECT_DIR%/manage.py collectstatic --noinput
%PROJECT_DIR%/manage.py compilemessages
# sudo cp %PROJECT_DIR%/addon/supervisor/rqworker.conf /e... | true |
a84461915c4ee163c975fef4bcbcd4ef4513486a | Shell | OpenSourceIT/i-edu | /iedu-foreman/fai/i-edu/hooks/setup.DEFAULT.sh | UTF-8 | 126 | 2.859375 | 3 | [] | no_license | #! /bin/bash
# use short hostname instead of FQDN
export HOSTNAME=${HOSTNAME%%.*}
echo $HOSTNAME > /proc/sys/kernel/hostname
| true |
75ae420ef0616204bba78d6690f78360acf35024 | Shell | P79N6A/program_world | /install/fastdfs.sh | UTF-8 | 30,272 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | FastDFS 介绍(参考: http://www.oschina.net/p/fastdfs)
FastDFS 是一个开源的分布式文件系统,它对文件进行管理,功能包括:文件存储、文件同步、文件
访问(文件上传、文件下载)等,解决了大容量存储和负载均衡的问题。特别适合以文件为载体的在线服
务,如相册网站、视频网站等等。
FastDFS 服务端有两个角色:跟踪器( tracker)和存储节点( storage)。跟踪器主要做调度工作,在
访问上起负载均衡的作用。存储节点存储文件,完成文件管理的所有功能:存储、同步和提供存取接口,
FastDFS 同时对文件的 meta data 进行管理。所谓文件的 meta data 就是文件的相关... | true |
e1b73e995fecc557be09898ccf6014b20da76409 | Shell | SwannedLakee/dotfiles | /.aliases | UTF-8 | 1,548 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
if [ -r ~/.dircolors ]; then
eval "$(dircolors -b ~/.dircolors)"
else
eval "$(dircolors -b)"
fi
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --col... | true |
80d16be6f7a110303a4de3b292babbadac569703 | Shell | sduthil/debian-derivatives-census | /bin/aggregate-planet-heads | UTF-8 | 592 | 3.765625 | 4 | [] | no_license | #!/bin/sh
# Copyright 2012 Paul Wise
# Released under the MIT/Expat license, see doc/COPYING
# Aggregates all the derivatives' logo heads into one dir.
#
# Usage:
# aggregate-planet-heads <derivatives> <heads directory>
set -e
while test $# -gt 1; do
derivatives="$derivatives $1"
shift
done
heads="$1"
mkdir ... | true |
42f854e5f3faabcc07c6aaf9f763304da41d91dd | Shell | GeoGateway/GPS_Scripts | /deploy/srv/server/start_server_mongo.sh | UTF-8 | 1,524 | 3.125 | 3 | [] | no_license | #!/bin/bash
echo "***********************************"
echo "Installing pre requisites"
echo "***********************************"
pip install -r requirements.txt
echo
echo
echo "***********************************"
echo "Not Starting MongoDB"
echo "***********************************"
#sudo service mongod start
e... | true |
0e45cfbcad9cadde32f5594cb2593c6187cc6f66 | Shell | sandkoan/shell-color-scripts | /colorscripts/emwave | UTF-8 | 410 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
# by ilya144
s="/\\/\\/\\/\\/\\"
s=$s$s$s$s$s$s$s$s
echo ""
for colnum in {0..75}; do
r=$[255-(colnum*255/76)]
g=$[colnum*512/76]
b=$[colnum*255/76]
if (( $g > 255 )); then
g=$[510 - g]
fi
rr=$[255-r]
gg=$[255-g]
bb=$[255-b]
printf "\033[48;2;%d;%d;%dm" $r $g $b
printf "\033[38;2;%... | true |
ca023c5b91d71f6f51b429e61b5ddd572cd52678 | Shell | Gazmatem/Sistemas-Operativos | /ProgramasSO/Practica02/Programa3/aver.sh | UTF-8 | 226 | 2.71875 | 3 | [] | no_license | #!/bin/bash
#Buscas la informacion sobre archios en uso de la direccion modify /var/log y los imprimes en pantalla.
inotifywait -r -m -e modify /var/log |
while read path _ file; do
echo $path$file modified
done
| true |
f6ebe5656eb8c59099c471c73770483e8772a51d | Shell | oslr/bitrise-step-corber-build | /step.sh | UTF-8 | 1,649 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -ex
# echo "This is the value specified for the input 'example_step_input': ${example_step_input}"
cd ${app_dir}
VERSION=`cat app.version`.`date '+%y%m%d%H%M'`
# Update version in config.xml
sed -i '' -e "s/0.0.12345/$VERSION/g" "corber/cordova/config.xml"
###########################################... | true |
2e8ed1859795d2954a5928662f7dd24488de33b6 | Shell | Frozen-Team/summercamp | /migrate.sh | UTF-8 | 2,308 | 4.0625 | 4 | [] | no_license | #!/bin/bash
RED='\033[0;31m'
NC='\033[0m'
source database/migrate.conf
MODE="dev"
usage="./$(basename "$0") [-h|--help] [<migration_action>] [-m|--mode <mode>] -- the script to apply migrations to the specified db
where:
-h|--help show this info
<migration_action> is one of the following: rollba... | true |
38a6dfdf2d701ff1837e03c1c22b1410e6783667 | Shell | gaurankgoyal/Redis-Cluster-Docker-Compose | /run.sh | UTF-8 | 1,012 | 4.03125 | 4 | [] | no_license | #!/bin/bash
set -e
request=$1
if [ "$request" == "CREATE" -o "$request" == "DESTROY" ]
then
case $request in
CREATE)
echo "------CREATING REDIS CLUSTER-------"
sleep 2
echo `docker-compose -f redis_cluster/docker-compose.yml up -d`
echo "----------CLUSTER DETAILS----------"
sleep 1... | true |
aefa8ea13563ac96a22ddd50d58df04d4ffecf2f | Shell | msifland/scripts | /kali-repo-install | UTF-8 | 1,856 | 3.625 | 4 | [] | no_license | #!/bin/bash
# This is a bash script.
# Put your description below this line and code below that.
#
echo "spike" | sudo -S -v
echo
echo "${ILCOLOR3}This will install the kali-rolling repo to your system."
sleep 1
YEAR=$(date +"%Y")
SOURCES="/etc/apt/sources.list"
KALI_ADDR="https://http.kali.org/kali/pool/main/k/kali-... | true |
1feac56f3e63568c6cee54e5aeffbac81f1693ac | Shell | Goldie643/sukap_starter_kit | /mcwit/process_file_multi_multi.sh | UTF-8 | 623 | 3.21875 | 3 | [] | no_license | # $1 is mrg file
# $2 is prefix of the .root files (filename up to numbers)
# First number is variation in energy
# Second is variation in file
export mcwit_dir=/disk01/usr4/goldsack/mcwit/
export card_file=${mcwit_dir}$2
export process_file=${mcwit_dir}/src/process_file
# n_files=`ls -dq *${2}*_01 | wc -l`
echo "Nu... | true |
1145f2a2a1fce6d425f064b2d7ff037a58fa78e1 | Shell | shylinux/intshell | /index.sh | UTF-8 | 2,676 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
export ctx_dev=${ctx_dev:="https://shylinux.com"}
_down_big_file() {
[ -f "$1" ] && return; echo "download $ctx_dev/$2"
if curl -h &>/dev/null; then curl -o $1 -fL "$ctx_dev/$2?pod=$ctx_pod"; else wget -O $1 "$ctx_dev/$2?pod=$ctx_pod"; fi
}
_down_file() {
if curl -h &>/dev/null; then curl -o $1 -fsSL "$c... | true |
d2d4bf4816b5db2db55c4ab9a7d270b22916eea2 | Shell | justin8/puppet | /modules/jenkins/files/old/makechrootpkg-jenkins | UTF-8 | 922 | 3.640625 | 4 | [] | no_license | #!/bin/bash
set -e
set -x
[[ "$USER" == "root" ]] && copy=copy || copy=$USER
[[ -n "$SUDO_USER" ]] && copy=$SUDO_USER
[[ -n "$1" ]] && copy=${copy}-${1}
copydir="/chroot/$copy"
ROOTLOCK="/chroot/root.lock"
LOCK="${copydir}.lock.jenkins"
[[ $EUID != 0 ]] && echo "You must run this as root!" && exit 1
(
if ! flock -xn... | true |
5e309ed81f99047c8d39d803bf4b4a6bca3fab25 | Shell | PRL-PRG/promise-dyntracing-experiment | /old-analysis/concat_functions.sh | UTF-8 | 2,087 | 3.9375 | 4 | [] | no_license | #!/bin/bash
function generate_sql {
DATA_FILES=$@
#union=
#cleanup=
first=true
echo ".echo on"
echo ".bail on"
echo
echo "pragma journal_mode = off;"
echo
for file in $DATA_FILES
do
package=$(basename "$file" .sqlite | tr '.-' '__')
echo "att... | true |
5f8024a6a147b21ad2f7fc817ac6052376e01281 | Shell | Matthew-Smith/agitnoster-theme | /agitnoster.zsh-theme | UTF-8 | 6,419 | 3.6875 | 4 | [] | no_license | # vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
# In addition, I recommend the
# [Solarized theme](https:/... | true |
653242eff8906b2606b3a1d07d63bc91bf2948b6 | Shell | matrob/SkiffOS | /configs/intel/desktop/scripts/install_disk.sh | UTF-8 | 2,183 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -eo pipefail
if [ $EUID != 0 ]; then
echo "This script requires sudo, so it might not work."
fi
if [ -z "$INTEL_DESKTOP_PATH" ]; then
echo "Please set INTEL_DESKTOP_PATH and try again."
exit 1
fi
if [ ! -d "$INTEL_DESKTOP_PATH" ]; then
echo "$INTEL_DESKTOP_PATH is not a directory or doesn't e... | true |
be3fd893a0e4bb41c7086b5f687484c03cd2d73e | Shell | armand0007/Linux-Sys-Admin-Shell-Scripts | /Linux-Sys-Admin-Tasks-Automation-Scripts/check-users-dir.sh | UTF-8 | 493 | 3.890625 | 4 | [] | no_license | #! /bin/bash
# Desc: This script will find directories without users
cd /home
for DIR in * # find everything in the home dir & put it in the DIR directory which is a variable
do
CHK=$(grep -c "/home/$DIR" /etc/passwd) #CHK = the value of grep count of "/home/$DIR" in the passwd f... | true |
9f301e6b8b99de79a747065dee702c49e519acc8 | Shell | thegecko/yotta-box | /docker-build.sh | UTF-8 | 151 | 2.515625 | 3 | [] | no_license | #!/bin/bash
set -e
if hash docker-machine 2>/dev/null; then
(docker-machine start default || exit 0)
fi
docker build "$@" -t thegecko/yotta-box . | true |
f6bad40a4e5d4a4df4f9c5f7f76cc4d713bdb7cb | Shell | choffmeister/ingress-nginx | /test/e2e/wait-for-nginx.sh | UTF-8 | 4,472 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# 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 applicable law ... | true |
d2270aafe8523d2663526adbd79773f3a75d0626 | Shell | jamesridgway/dotfiles | /zsh/.zshrc | UTF-8 | 2,326 | 2.90625 | 3 | [] | no_license | # Oh-my-zsh setup
export ZSH=$HOME/.oh-my-zsh
if [ -f "$ZSH/oh-my-zsh.sh" ]; then
ZSH_THEME="jagnoster"
plugins=(git autojump)
source $ZSH/oh-my-zsh.sh
fi
# Editor
export EDITOR="vim"
# Aliases
# List SSH hosts from SSH config
alias ssh-hosts="grep -P \"^Host ([^*]+)$\" $HOME/.ssh/config | sed 's/Host //'"
alia... | true |
e9293b447af8ec150369709ca42e2dc9433e484f | Shell | MSergiev/RPI-Surveillance-Core | /scripts/keep_alive.sh | UTF-8 | 270 | 3.109375 | 3 | [] | no_license | #! /bin/sh
# check that motion is running every 5 minutes
# result is zero if we find it running
ps -F | grep "\./door"
if [ $? -ne 0 ]
then
echo "Monitor not running, re-starting it"
sudo /home/pi/wiringPi/door/./door
else
echo "Monitor is running."
fi
exit 0
| true |
04c494e539e6d00fc77f459c2d6342da7b0e9ecb | Shell | tst2005sh/jsondiff | /lib/json2flat.jq.lib.sh | UTF-8 | 702 | 2.703125 | 3 | [] | no_license |
jq_option_json2flat='-S'
jq_function_json2flat='
def json2flat:
reduce ( tostream|select(length==2) ) as $i ( {}; .[ $i[0]|map(
if type=="number" then
"[" + tostring + "]"
elif (tostring|test("^[a-zA-Z0-9_]*$")) then
"." + tostring
else
"[" + tojson + "]"
end
) | join("")] = $i[1] )
;
'
... | true |
dd3d19311a75fe79bf3b2b0392fca7ace07f7f41 | Shell | linz/Geodesy-Web-Services | /gws-system-test/src/main/bash/find-sites-in-network-linz.sh | UTF-8 | 1,014 | 3.46875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
set -e
#gws=http://localhost:8081
#openam=http://localhost:8083/openam
gws=https://devgeodesy-webservices.gnss.linz.io
function knownNetworks {
curl -s ${gws}/corsNetworks | jq ._embedded.corsNetworks[].name | xargs echo
}
function printUsage {
echo "Output metedata links for all sites... | true |
c66a6b53d4dcb5d420274416c90f362c9832291c | Shell | shamsup/subclass-dance-party | /.bin/ci | UTF-8 | 1,188 | 3.640625 | 4 | [] | no_license | # -*- mode: sh -*-
#!/usr/bin/env bash
set -e
PROJECT_DIR="$(git rev-parse --show-toplevel)"
#
# Setup
#
INSTALL_DEPS=0
INSTALL_MOCHA=0
INSTALL_PHANTOMJS=0
INSTALL_MOCHAPHANTOMJS=0
cd $PROJECT_DIR
#
# Project dependencies
#
# If not already installed, install testing dependencies and add them to the
# loadpath
... | true |
39b46a3f2b611df5e47f0edef3be3374bdf9ac90 | Shell | qingli411/palm_lanl | /trunk/SCRIPTS/batch_scp | UTF-8 | 22,947 | 2.953125 | 3 | [
"BSD-3-Clause"
] | permissive | #! /bin/bash
# batch_scp - script for automatic file/directory transfer using scp
#--------------------------------------------------------------------------------#
# This file is part of the PALM model system.
#
# PALM is free software: you can redistribute it and/or modify it under the terms
# of the GNU General Pu... | true |
5bb568764d59b51809d638352738f10c91bbd9fb | Shell | ajbm61/dotfiles-1 | /src/bin/phpenv | UTF-8 | 4,206 | 4.25 | 4 | [] | no_license | #!/bin/sh
set -e
unset CDPATH
unset IFS
show_usage() {
cat <<EOT
Usage: $(basename "$0") [-h|--help] [--version] [-V]
or $(basename "$0") <command> [<args>]
Commands:
install <version> Install a PHP version
versions List all available PHP versions
reload Reloads ~/bin/p... | true |
654634630888f4d8d6d0b5cc5d0ec6d76d5ff0db | Shell | Diaradougou/kbash | /api/util/components/api/describe.sh | UTF-8 | 814 | 3.28125 | 3 | [] | no_license | #!/bin/bash
function oneline_help_ENTRYPOINT_describe() {
echo "Describe information about this build env"
}
function cmdline_help_ENTRYPOINT_describe() {
echo "[COMPONENT]"
}
export -f cmdline_help_ENTRYPOINT_describe
function help_ENTRYPOINT_describe() {
ENTRYPOINT_print_component_help describe
}
function run... | true |
a5919dec8ccb3d345dc077dce92e849e8afaa09c | Shell | nuevecubica/creando-sabores | /doc/backup.sh | UTF-8 | 499 | 3.546875 | 4 | [] | no_license | #!/bin/bash
# Chefcito Mongo Database Backup
# Get the container ID:
CONTAINER=`docker ps | grep mongo | grep -v amb | cut -d" " -f1`
# Create a dump on the container
docker exec $CONTAINER /usr/bin/mongodump --db=chefcito --out=/root/dump
# Copy it here
docker cp $CONTAINER:/root/dump .
# And make a nice tar
sudo... | true |
e79c03369be20970af42b802468a138c5e189ba9 | Shell | XDeschuyteneer/grooveshark-cli | /groove | UTF-8 | 1,028 | 3.4375 | 3 | [] | no_license | #! /usr/bin/env zsh
CHROME=$(which chrome-cli)
if [[ "$CHROME" == "chrome-cli not found" ]]; then
echo "no chrome-cli installed, see installation: https://github.com/prasmussen/chrome-cli"
fi
TAB=$(chrome-cli list tabs |
grep -n "Grooveshark" |
awk -F ':' '{print $2}' |
awk -F "]" '{print $1}' |
aw... | true |
4a45a4159e424398299cd2989671d9ab8534c649 | Shell | gomeet/gomeet | /templates/project-creation/hack/grpc-edit-method.sh | UTF-8 | 668 | 3.390625 | 3 | [
"Apache-2.0",
"MIT"
] | permissive | #!/bin/sh
if [ "$1" = "" ]
then
echo "usage: $0 <GrpcServiceName (in KebabCase)>"
exit 1
fi
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
BASE_DIR=$SCRIPTPATH/..
fn=$(echo "$1" | tr '-' '_' | sed 's/./\U&/')
fn_underscore=$(echo $fn | sed 's/\([a-z0-9]\)\([A-Z]\)/\1_\L\2/g' | tr '[:upper:]' '[:lower... | true |
89eda79690a4118588687d080961cba2809e53f9 | Shell | ivmakar/app-image-styler | /scripts/start-react.sh | UTF-8 | 516 | 3.484375 | 3 | [] | no_license | #!/bin/bash
set -euxo pipefail
#
# See http://qaru.site/questions/72791/checking-from-shell-script-if-a-directory-contains-files
#
pushd /www/web-app/frontend
files=$(shopt -s nullglob dotglob; echo /www/web-app/frontend/node_modules/*)
if (( ${#files} ))
then # /db/mysql/ is not empty
echo "starting react"
npm... | true |
7bd9772bea67bcbcba328e6404d39a78a279f963 | Shell | ngtrimble/bash-examples | /12-calc | UTF-8 | 140 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
#Internal calculation
echo $(( 1 + 1 ))
#External calculation
let X="1 + 3"
echo $X
echo "scale=9; 10/3" | bc
| true |
74748185b47625ec858d6da8de739aec187f11a1 | Shell | bhasling/devops_overflow | /src/ui/scripts/install_devops_cdn.sh | UTF-8 | 1,740 | 3.796875 | 4 | [
"MIT"
] | permissive |
########
# install_devops_cdn.sh
#
# This script uses cloud formation to create the AWS objects to deploy DevOps Overflow to AWS.
# This creates a CloudFront distribution as a Content Delivery Network to view NextJS static HTML
# and also an API Gateway viewing a lambda function containing the GO web server.
# This sc... | true |
db1c16da156310c958c34f70031f88fde1954f04 | Shell | PeamThan/soilcrete-data-logger-test | /lowlevel/mountUsbMassStorage | UTF-8 | 323 | 3.484375 | 3 | [] | no_license | #!/bin/sh
USB_DISK_DRIVE="/dev/sda1"
if [ $1 == "mount" ]
then
sudo mount -o umask=0 $USB_DISK_DRIVE /media/usb
if [ $? -eq 0 ]
then
echo OK
else
echo FAIL
fi
elif [ $1 == "umount" ]
then
sudo umount /media/usb
if [ $? -eq 0 ]
then
echo OK
else
echo FAIL
fi
else
echo "Wrong script parameter."
fi
... | true |
4821937494360518edf60d6585ee0006c019f268 | Shell | Cloudxtreme/Cloudflare-N3 | /off/cloud-off-cdn.nyit-nyit.net.sh | UTF-8 | 622 | 2.609375 | 3 | [] | no_license | #!/bin/sh
CLOUDFLARE_API_KEY="YOUR-API"
CLOUDFLARE_LOGIN="dono@nyit-nyit.net"
DNS_ZONE="nyit-nyit.net"
DNS_ENTRY="cdn.nyit-nyit.net"
DNS_ENTRY_ID="29200231"
DNS_ENTRY_TYPE="CNAME"
content="nyit-nyit.net"
service_mode="0"
__switch_to_failover() {
/usr/bin/curl https://www.cloudflare.com/api_json.html \
-d "a=rec... | true |
5f99c442b7338b1ea0fa9eb9823df4f09e8488db | Shell | taylor/bin | /sensible-browser | UTF-8 | 682 | 3.453125 | 3 | [] | no_license | #!/bin/bash
DEFAULT_BROWSER="links"
DEFAULT_GUIBROWSER="chromium"
TERMINAL_EMULATOR="xterm"
TERMINAL_EMULATOR_EXEC="-e"
gui_browser_list="firefox chromium chrome google-chrome"
if [ -z "$BROWSER" ] ; then
BROWSER="$DEFAULT_BROWSER"
fi
if [ -z "$GUI_BROWSER" ] ; then
GUI_BROWSER="$DEFAULT_GUIBROWSER"
fi
gui_bro... | true |
eeb4aa4e3d0f73583a499e15a0338d5b1afb32ae | Shell | brian1102/mobileci | /scripts/uploadSourceMap.android.sh | UTF-8 | 698 | 2.5625 | 3 | [] | no_license | #!/bin/sh
API_KEY="f02d37dbdeb099147c6705a5e381963b";
VERSION="$(git describe --long --tags)"
OUTPUT_MAP=bundle/index.android.bundle.map
OUTPUT_MIN=bundle/index.android.bundle
OUTPUT_META=bundle/index.android.bundle.meta
pwd
rm -rf bundle
mkdir bundle
exec > bundle/android.upload-source.map.log
react-native bundle \... | true |
fe8300abf311dbdabdbb71696bb9f9c0f7f46971 | Shell | sfanxiang/archboot | /usr/share/archboot/installer/setup | UTF-8 | 207,428 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
# we rely on some output which is parsed in english!
unset LANG
ANSWER="/tmp/.setup"
TITLE="Arch Linux Installation"
# use the first VT not dedicated to a running console
LOG="/dev/tty7"
# where the Archboot media (ISO/CD/USB) should be mounted
_MEDIA="/src"
# don't use /mnt because it's intended to... | true |
1449dac6be273d0175c01126834d140288c6a7c5 | Shell | osenlin/gsxt_spider | /start_offline_searchlist_process.sh | UTF-8 | 362 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
while true
do
#
python_pid=`ps aux |grep start_offline_crawler.py |grep python | grep -w offline_gsxt_searchlist.conf | grep -w offline_all_list | awk '{print $2;}'`
if [ "$python_pid" == '' ]; then
nohup python start_offline_crawler.py 'config/offline_gsxt_searchlist.conf' 'offline_all_list' '... | true |
07d90bec6c6ac236039ddc249d2c66e95c8a28a9 | Shell | OneboxTM/puppet-openvpn | /vagrant/provision_module.sh | UTF-8 | 275 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
if [ ! -f /module-installed ]; then
apt-get update
apt-get install -y ruby-dev git
gem install librarian-puppet --no-rdoc --no-ri
cp /vagrant/vagrant/Puppetfile /tmp
cd /tmp && librarian-puppet install --verbose
touch /module-installed
fi
| true |
a2588ad90e22854b22c143ed86daadfe61df9c45 | Shell | DavidMcAfeeGraphite/Pop-1.0 | /build_pop_xcode/build/Pop.build/Release ARM/Pop.build/Script-shell_script_object5.sh | UTF-8 | 1,036 | 2.65625 | 3 | [] | no_license | #!/bin/bash
set -e
if [ "$CONFIGURATION" = "Release" -o "$CONFIGURATION" = "Release ARM" ]; then echo "skipping for release builds" && exit 0; fi
if [ "$CONFIGURATION" = "Debug" -o "$CONFIGURATION" = "Release" ]; then echo "skipping for x86 builds" && exit 0; fi
PATH="/Applications/Marmalade.app/Contents/tools/gcc/x86/... | true |
fc2427d489c9c4fd94b47d480208cb834f2444c3 | Shell | NamChimwiset/Linux-RDP-1 | /rdpsploit.sh | UTF-8 | 11,906 | 3.828125 | 4 | [] | no_license | #!/bin/bash
# RDP Finder & Bruter Script
#
# Requires NMAP & HYDRA (w/RDP Support)
#Start the magic....
JUNK=/tmp
SCANCOUNT="$2"
STORAGE1=$(mktemp -p "$JUNK" -t fooooobar1.tmp.XXX)
STORAGE2=$(mktemp -p "$JUNK" -t fooooobar2.tmp.XXX)
#First a simple Bashtrap function to handle interupt (CTRL+C)
trap bashtrap INT
func... | true |
a79d5e0544d5fb4353b68530b6ab0299e9b3ca2d | Shell | darklang/dark | /scripts/clear-db.sh | UTF-8 | 1,172 | 3.03125 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
. ./scripts/devcontainer/_assert-in-container "$0" "$@"
set -euo pipefail
# Clear DBs
DBLOG="${DARK_CONFIG_RUNDIR}/clear-db.log"
echo "Clearing old DB data (logs in ${DBLOG})"
DB="${DARK_CONFIG_DB_DBNAME}"
function run_sql { psql -d "$DB" -c "$@" >> "$DBLOG" ; }
function fetch_sql { psql -d "$D... | true |
245f7dac8967468fd3ac33ed45e80e92cb6cce01 | Shell | pieterlukasse/rest_api | /.circleci/clean_appeng_versions_with_no_traffic.sh | UTF-8 | 605 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
echo ... will remove all STOPPED AppEngine versions older than 5 days
gcloud --project=$GOOGLE_PROJECT_ID app versions list \
--format json \
--filter="traffic_split<1" |\
jq -r '.[] | .id' |\
while read id
do
echo "Attempting to delete: $id in project $PROJECT"
... | true |
ddc7f2ef600a3a68bed1a5508d5fc162e2e20dcb | Shell | VijayEluri/migdb | /scripts/check_config.sh | UTF-8 | 727 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#check existence of migdb configuration file.
if [ ! -f ~/migdb_config.cfg ]
then
echo Your home folder doesn\'t contain configuration file migdb_config.cfg. Check https://github.com/migdb/migdb/wiki/scripts for help
exit 1
fi
#get working branch
branch=`git branch | grep \* | cut -d' ' -f2`
echo cu... | true |
ee96a70057145ad40438210595d398c8cb9ef593 | Shell | elhuhdron/emdrp | /pipeline/K0057_D31_dsx3y3z1-run4/volume_clean.sh | UTF-8 | 2,725 | 3.15625 | 3 | [
"MIT"
] | permissive |
# run on biowulf in ~/gits/emdrp/recon/python
# script automatically submits jobs with dependencies since all cleaned outputs are written to same hdf5 file.
# NOTE: DO NOT use lscratch, as we want all the subgroups in the same hdf5 file.
OUTD=out_batches/20170727_K0057_run4/clean
no_fill_iter=0
count=0
iter=0
while ... | true |
dadc869b7efbc9d1bf35e8ba86e5d5352716ce7d | Shell | dysmento/dotfiles | /newmac.sh | UTF-8 | 3,594 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive |
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: `basename $0` <github password> <bitbucket password>"
exit 0
fi
# dock preferences
defaults write com.apple.dock autohide 1
defaults write com.apple.dock largesize 64
defaults write com.apple.dock magnification 1
defaults write com.apple.dock mineffect scale
defa... | true |
c14a345f2a7dc8609e2704de5a760c87b5a038af | Shell | NetBSD/pkgsrc-wip | /newsboat213/patches/patch-config.sh | UTF-8 | 704 | 2.75 | 3 | [] | no_license | $NetBSD$
Remove overly "smart" detection script for ncurses. This doesn't work on NetBSD.
If libstfl is linked against the system-wide curses, you can't later link against
ncurses. Newsboat can use the ncursesw compat offered by NetBSD 6.x native curses.
--- config.sh.orig 2017-12-25 17:49:35.000000000 +0000
+++ co... | true |
db28bfcf55639ecabfc6e5e086f7507d54ee917a | Shell | atang42/batfish | /.buildkite/pipeline.sh | UTF-8 | 4,867 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
### Build and quick lint
set -euo pipefail
BATFISH_ARTIFACTS_PLUGIN_VERSION="${BATFISH_ARTIFACTS_PLUGIN_VERSION:-v1.4.0}"
BATFISH_DOCKER_PLUGIN_VERSION="${BATFISH_DOCKER_PLUGIN_VERSION:-v3.9.0}"
BATFISH_DOCKER_CI_BASE_IMAGE="${BATFISH_DOCKER_CI_BASE_IMAGE:-docker.io/batfish/ci-base:c21e89b-89cdebc6... | true |
1adec2bd795e7173162ef11cfde274167d8f2d3b | Shell | guoyu07/provenance-analysis | /apt_check.sh | UTF-8 | 232 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# List all current installed packages that managed by APT
echo "package_name,installed_version,architecture,latest_version"
apt list --installed | sed -nr 's_(.*)/(.*) (.*) (.*) (.*)upgradable to: (.*)]_\1,\3,\4,\6_p'
| true |
4a32eac23ea63a8d0e0247636fc1143c42c2838e | Shell | tomwilkie/scope | /docker/entrypoint.sh | UTF-8 | 1,659 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
usage() {
echo "$0 --dns <IP> --hostname <NAME> --searchpath <SEARCHPATH> --app.foo bar --probe.foo bar"
exit 1
}
# This script exists to modify the network settings in the scope containers
# as docker doesn't allow it when started with --net=host
APP_ARGS=""
PROBE_ARGS=""
while true; do
case "$1" i... | true |
007e337d4eae8397576c473f00aa283d42c0c6ad | Shell | ujagaga/OpenWrt_Network_Setup | /router/email | UTF-8 | 360 | 3.390625 | 3 | [] | no_license | #!/bin/sh
# Custom email sending script. It sends e-mail with predefined
# title, recepient and sender info. Uses email_template and adds content.
# usage email "message to send"
RECEPIENT="user@gmail.com"
TEMPLATE="email_template"
DIR=$(readlink -f "$0" | xargs dirname)
cd $DIR
cp $TEMPLATE /tmp/
echo "$1">> /tmp/... | true |
14c56395ec708d24b1265ee9b663a302d508442d | Shell | nabiuddin6/scripts-1 | /GTD/turls | UTF-8 | 783 | 3.46875 | 3 | [] | no_license | #!/bin/bash
###################################################################################
# Shows list of tasks in taskwarrior belonging to projects that reference URLs. #
###################################################################################
prompt="All(a), Blogs(b), Docs(d), or Videos(v)?: "
i... | true |
a863e48691edd085e38e74c7ac0fd5ef257ce11a | Shell | den1den/adaptive_cruise_control | /ISO_model/scripts/schemes/check.sh | UTF-8 | 743 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# https://www.npmjs.com/package/pajv
# pajv -s interpretation_scheme.json -d ../interpretation.yaml
cd ~/Dropbox/0cn
. venv/bin/activate
export PYTHONPATH=.
function _check {
pajv -s $1 -d $2 --verbose
# --errors=js --all-errors
}
# Compile all schemes again
for scheme_source in ISO_mode... | true |
921103019f7951f223e7a3731da43467e82410a4 | Shell | strigo/ami-bakery-linuxdesktop | /community/ubuntu18/install.sh | UTF-8 | 330 | 2.53125 | 3 | [] | no_license | #!/bin/bash -e
# This is based off of https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-18-04/
apt-get update -y
apt-get upgrade -y
apt install xrdp xorg dbus-x11 x11-xserver-utils -y
# Skip this if xcfe is already installed.
apt install xfce4 xfce4-goodies -y
adduser xrdp ssl-cert
systemctl restart xrdp
ufw a... | true |
05a63019ac6a83a92e522d1f5329651222149770 | Shell | simhaonline/fireguard | /.ci/functional_test.sh | UTF-8 | 621 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -x
sudo apt-get update
sudo apt-get install -y postgresql \
wireguard iptables net-tools curl ca-certificates
sudo systemctl start postgresql
sudo dpkg -i fireguard*.deb
echo "Enabling service..."
sudo systemctl start fireguard
# Wait for app to start
sleep 10
echo "Service status..."
sudo... | true |
60a4fbb226e70ba4685fa085e0bb3ec94fc1dc07 | Shell | nyambati/dotfiles-deprecated | /lib/ansible | UTF-8 | 520 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
system::ansible::install_ansible_roles() {
require_variable ANSIBLE_REQUIREMENTS
require_variable ANSIBLE_ROLES_PATH
if ! system::util::type_exists ansible-galaxy; then
echo "Command does not exist"
exit 1
fi
if [ ! -e "$ANSIBLE_REQUIREMENTS" ]; then
error "ERROR: Ansible G... | true |
ef4290227ec01376353b9c17575bc4c125b61273 | Shell | SpuzzSomchai/scripts | /build Android/v2/myupload.sh | UTF-8 | 1,395 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/usr/bin
enviar_sourceforge() {
if [ "$ROM" = "rr" ] ; then
cd ~/rr/out/target/product/sanders
echo -e ${ylw}"\n\n ▼ ROM está sendo enviada para sourceforge?\n"${txtrst}
scp RR*.zip j144df@frs.sourceforge.net:/home/frs/project/j144df/sanders/
fi
}
enviar_alteracoes() {
modirDev=~/apps/devx12/rr
nomeD... | true |
5767bd217c80f45ae249de9146c2da4ece2c4de7 | Shell | BCDigLib/fcrepo-reporting-utilities | /countFedoraObjectsAndDatastreams.sh | UTF-8 | 1,004 | 2.6875 | 3 | [] | no_license | #/bin/bash
# -edf 2014-0908
FedoraUser=fedoraAdminUser
FedoraUserPassword=fedoraAdminPassword
FedoraHostname="http://yourserver.domain.net" # example http://fedora.coalliance.org
FedoraPort=":8080"
FedoraContext="/fedora"
FedoraServer="$FedoraHostname$FedoraPort$FedoraContext"
resultObject=$(curl -s -u $FedoraUser:... | true |
8da780411d88c8ef8ce740a6c342ca0689a74db6 | Shell | jadinvt/davis_clanin | /scripts/rotate_pics.sh | UTF-8 | 234 | 2.6875 | 3 | [] | no_license | export y=$1
shift
for x in $@ ; do
convert img_${x}_large.jpg -rotate $y img_${x}_large.jpg;
convert img_${x}_medium.jpg -rotate $y img_${x}_medium.jpg;
convert img_${x}_small.jpg -rotate $y img_${x}_small.jpg;
done
| true |
413017f0bb7e2d149c8650f3206285613f3abc10 | Shell | google-code/auroral-resources-toolkit | /source/resource/scenejs_embedded/js/compress_js | UTF-8 | 109 | 2.90625 | 3 | [] | no_license | #!/usr/bin/env bash
js=`find . -name '*.js'`
for file in ${js[*]}
do
gzip -9 -c "$file" > "$file.gz"
done
| true |
795644f999c1ce632665c448fe781a57eac573ef | Shell | amanos1022/youtube-dl-queue | /yt-queue-processor.sh | UTF-8 | 761 | 3.625 | 4 | [] | no_license | #!/bin/bash
input="$HOME/Testing/bash/yt-video-queue"
dir="$HOME/Videos/Organize/"
if [ "$1" = "music" ]; then
input="$HOME/Testing/bash/yt-music-queue"
dir="$HOME/Music/Organize/"
fi
while IFS= read -r line
do
while read url subDir
do
if [ -z "$subDir" ]; then
dir="$vidDir"
... | true |
a3cf9c6c5917a074043f84cc52cc6f2dccc18ccd | Shell | Jacobog02/Maslenlab_Thesis | /scripts/jg_bismark_alignment/DECIDE_mcseq_align_pipeline.sh | UTF-8 | 6,827 | 3.09375 | 3 | [] | no_license | #!/bin/bash
##### PURPOSE #####
## Jacob Gutierrez guteirja@ohsu.edu
## Reused 3/29/20
## The purpose of this file is to intitialize the probe validation program. PREVIOUSLY
# This script is now the dependecy file for the preprocessing of the raw methyl-capture sequencing data.
# Analysis Pipeline:
## 0) Create Mappi... | true |
45aae1922839707d927724e2f45dd95f18b3893b | Shell | ecmwf/magics | /regression/load_py.ksh | UTF-8 | 451 | 2.765625 | 3 | [
"Zlib",
"LGPL-2.0-or-later",
"MIT",
"LicenseRef-scancode-other-permissive",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"xlock",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/ksh
set +x
versions="3.0.1"
ext="py"
img_ext="png"
where='proj4'
interpretor='python'
src='tpers'
dir=`pwd`
name=`basename $dir`
for s in $src
do
for v in $versions
do
module swap Magics/$v
echo "magics/reference/$v/$where"
# ../upload.py $v ./$sf $s.$img_ext magics/reference/$v/$where -i $interpre... | true |
786fac96f39a8ece6f5117214a42b00ec2dfd112 | Shell | mkearney/dot_files | /files/.bashrc | UTF-8 | 3,954 | 3.125 | 3 | [] | no_license | # ssh into work computer var
export WORKIP=128.206.132.181
# Update github repositories
update_repos()
{
# start at home dir
cd ~
# apitools
cd ~/R/apitools
echo "REPO:apitools"
echo "pull..."
git pull
echo "pushing..."
git add .
git commit -m "fresh update from macbook"
gi... | true |
0a676e8b80d6fd7701feabcaa52b3f6f6d570d54 | Shell | engells/knowlinux | /prog_coding/python_edit_jupyter.txt | UTF-8 | 5,578 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# vim:ts=4
# program: Using to note the knowledge about Jupyter
# made by: Engells
# date: Jan 30, 2021
# content: Just for memo
指令
====================
jupyter notebook
# --ip=xxx.xxx.xxx.xxx; ip=0.0.0.0; ip='*'
# --port=8890
# --no-browser
# --allow-root
# pipenv run jupyter noteboo... | true |
4154e08cdad726c7e1c7dd88d3278776b06f4e49 | Shell | alxlu/dotfiles | /bin/setupRclone | UTF-8 | 231 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
if [[ $_ != $0 ]]; then
export RCLONE_CONFIG=/mnt/data/shared/rclone.conf
echo Type in config pass:
read -s RCLONE_CONFIG_PASS
export RCLONE_CONFIG_PASS
else
echo "Script must be sourced"
exit 1
fi
| true |
2aaa66b81283b55a7c0137cbc2055d46afbf96d8 | Shell | ernestojpg/varnish-docker | /start-varnish.sh | UTF-8 | 523 | 3.3125 | 3 | [] | no_license | #!/bin/sh
if [ -z "${VARNISH_PID_FILE}" ]; then
VARNISH_PID_FILE="/var/run/varnish.pid"
fi
COMMAND="/usr/local/sbin/varnishd \
-F \
-P ${VARNISH_PID_FILE} \
-f ${VARNISH_VCL_CONF} \
-a ${VARNISH_LISTEN_ADDRESS}:${VARNISH_LISTEN_PORT} \
${DAEMON_OPTS}"
echo "Starting Varnish version ${VARNISH_VERSION} .... | true |
ac01b074d963f82ba18c0459541a250f1f56403d | Shell | tixsys/esteid | /packages/jhbuild/trunk/setup-jhbuild.sh | UTF-8 | 1,215 | 3.90625 | 4 | [] | no_license | #!/bin/sh
#
# Script that sets up jhbuild for Open EstEID.
# Run this to checkout jhbuild and the required configuration.
# Copyright 2010 Antti Andreimann
#
# Quick HOWTO:
#
# sh setup-jhbuild.sh
#
# jhbuild -f config bootstrap --ignore-system
# jhbuild -f config build
#
mydir=`dirname $0`
mydir=`pwd`/$mydir
BDIR=$m... | true |
00430e668f515ca46922db16d188788a3fc7c04a | Shell | n3wscott/ledhouse-broker | /test.sh | UTF-8 | 1,858 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
printf "\n\nGet the catalog:\n\n"
curl -X GET "http://localhost:3000/v2/catalog" -H "accept: application/json" -H "X-Broker-API-Version: 2.13"
# -----------------------
printf "\n\nProvision the light registry:\n\n"
curl -X PUT "http://localhost:3000/v2/service_instances/lightreg" -H "accept: applicati... | true |
399f1672fc7098581083ff917d1e3d8eeb727b90 | Shell | kiemlicz/util | /vm/docker_functions | UTF-8 | 1,651 | 3.765625 | 4 | [] | no_license | #!/usr/bin/env bash
docker_run_publish_ports() {
local host_port=${2}
local container_port=${3}
local host_ip=${5-127.0.0.1}
docker run -d -p $host_ip:$host_port:$container_port --name $4 $1
}
docker_run_interactive() {
docker run -it --entrypoint=/bin/bash $1
}
# attach to running container and ... | true |
4638bdb2749d948778eb93c73448f4d753dcd1a3 | Shell | Roshanjossey/dot-files | /.oh-my-zsh/plugins/command-not-found/command-not-found.plugin.zsh | UTF-8 | 1,154 | 3.09375 | 3 | [
"MIT"
] | permissive | # Uses the command-not-found package zsh support
# as seen in http://www.porcheron.info/command-not-found-for-zsh/
# this is installed in Ubuntu
[[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found
# Arch Linux command-not-found support, you must have package pkgfile installed
# https://wiki.archl... | true |
bfb8b241300f720cdf9e039216f8e84ac88f032e | Shell | hehexianshi/simple_code | /rand.sh | UTF-8 | 268 | 3.546875 | 4 | [] | no_license | #!/bin/bash
#随机取出任意文件行
file=$1
count=10
#echo $file
len=`cat $file|wc -l`
while [ $count -gt 0 ]
do
rand=`expr $RANDOM % $len`
awk 'BEGIN{ d = "'`echo $rand`'";}{ if ( NR == d ) printf $0}' $file
echo
count=`expr $count - 1`
done
| true |
590ab1d3a9a42994abbc3fa21b8ca32f69882021 | Shell | eirikurn/oh-my-zsh | /themes/eirikur.zsh-theme | UTF-8 | 481 | 2.765625 | 3 | [] | no_license | function venv_prompt_info() {
if [ ! -z "$VIRTUAL_ENV" ] ; then
echo "$(basename $VIRTUAL_ENV) "
fi
}
PROMPT='%{$fg[green]%} %% '
# RPS1='%{$fg[blue]%}%~%{$reset_color%} '
RPS1='%{$fg[white]%}%2~$(git_prompt_info) %{$fg[red]%}$(venv_prompt_info)%{$fg_bold[blue]%}%m%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.