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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
88e7c893d8b806fd265d7dee0e8dd37df2b6b148 | Shell | purpleposeidon/FzDocs | /update.sh | UTF-8 | 280 | 2.90625 | 3 | [] | no_license | #!/bin/bash
set -e
if [ ! -e /var/www/FzDocs ]; then
echo "not exported"
exit
fi
git checkout gh-pages
rm -rf * #Deletes this very script, but that's fine.
git checkout master *
wget -r http://localhost:8000/FzDocs/ || true
mv localhost*/FzDocs/* ./
rm -rf localhost*
| true |
c38dc037a135ab54c57860d954158953b5870b78 | Shell | fyfh/aria2-config | /autoupload1.sh | UTF-8 | 1,075 | 3.484375 | 3 | [] | no_license | #!/bin/bash
path="$3" #取原始路径,我的环境下如果是单文件则为/data/demo.png,如果是文件夹则该值为文件夹内某个文件比如/data/a/b/c/d.jpg
downloadpath='/usr/local/caddy/www/aria2/Download' #下载目录
rclone1='m:skr' #rclone挂载的目录1
rclone2='n:' #rclone挂载的目录2
if [ $2 -eq 0 ] #下载文件为0跳出脚本
then
exit 0
fi
while true; do #提取下载文件根路径,如把/data/a/b... | true |
21a9a08161142578f0dcf7c220840f3e41782b63 | Shell | otaviocarvalho/energy-project | /spark/energy_project/launch_local.sh | UTF-8 | 1,355 | 2.640625 | 3 | [] | no_license | #!/bin/bash
source ~/.bashrc
PROJECT_HOME="/home/omcarvalho/tcc/project/spark/energy_project/"
# zookeeper
nohup $ZOOKEEPER_HOME/bin/zkServer.sh start $ZOOKEEPER_HOME/conf/zoo.cfg &
sleep 1
# kafka
rm -rf /tmp/kafka-logs/streaming-topic*
echo "rmr /brokers/streaming-topic" | $ZOOKEEPER_HOME/bin/zkCli.sh
sleep 1
nohup... | true |
4e0bea51c2889b034f8c8735a916f6b587d18d69 | Shell | bryancarl7/gpu-bot | /start.sh | UTF-8 | 1,946 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | if [ "$1" == "-skip" ] ; then
# This skip is to set the flags to a switch
python=1
req=1
logging=1
else
# To ensure that Mac OS doesnt have trouble multi threading
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
echo "------------------------- Attention -------------------------------"
echo " If this is... | true |
2c5f1910374469e3a1084788774e37b60209d08f | Shell | yihanzhen/google-photos-uploader | /scripts/workflow.sh | UTF-8 | 1,106 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# handle arguments
if [ "${#}" -ne 5 ]; then
echo "Usage: workflow fromdir processeddir destdir time location"
exit 1
fi
fromdir=$1
processeddir=$2
destdir=$3
time=$4
location=$5
# build
mvn install
jarname=target/google-photos-uploader-1.0-SNAPSHOT-jar-with-dependencies.jar
mainclass=com.hzyi.google.... | true |
d29d04bdbc1e55038100cf60e4cf14b47a6a6c81 | Shell | woshimayi/driver | /tools/gdb-dof/coredumpBcmGpon | UTF-8 | 1,549 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#run coredump parse command for BCM GPON product automatically
#created by chenxi 2022-01-24
usage()
{
cat << EOF
coredumpBcmGpon [your-core-dump-file]
Note:
1.[your-core-dump-file] is optional if current direcotry exists [your-core-dump-file](prefix with core-svn-*).
2.fs.install files is required in cur... | true |
2f8bbd07df974b6e372782ee06887746aa58b61b | Shell | ngtankhoa/doan-power-frontend | /_docker/run-container.sh | UTF-8 | 829 | 3.453125 | 3 | [] | no_license | #!/bin/sh
# Print out current command and exit as soon as any line in the script fails
set -ex
source ./constants.sh .
NODE_ENV="${1:-production}"
if [ "$NODE_ENV" = "production" ]; then
docker run \
-d \
--name=$IMAGE_NAME \
--hostname=${WEB_NAME} \
--network=${NETWORK} \
--env-file=${ENV_FILE} \
-e ... | true |
0c800a4ad71ba8895984e150c143d7e61418c814 | Shell | cryptooman/dcos-php-api | /scripts/docker_gc.sh | UTF-8 | 4,973 | 4.1875 | 4 | [] | no_license | #!/bin/bash
# Docker garbage collection
DRY_RUN=0
for arg in "$@"
do
case $arg in
--dry-run=*)
DRY_RUN="${arg#*=}"
shift
;;
*)
echo "Unknown option [$arg]. Usage /bin/bash $0 [--dry-run=1]"
exit 1
;;
esac
done
echo 'Started at '`date '+%Y-%m-%d %H:%M:%S'`
# Unmount unused (stu... | true |
c7658efdabebcdbce946384f16910f3eb175264c | Shell | ncode3/content-google-cloud-engineer | /products/deploy/deploy.sh | UTF-8 | 967 | 2.828125 | 3 | [] | no_license | #!/bin/bash
set -e
# Import the settings from the common settings file
source ../../common/project_settings.sh
bash ../build/build.sh
# The tag la-ace-products:0.1 is set in the build file.
# If you change it here, change it there to match.
docker tag la-ace-products:0.1 "gcr.io/$PROJECT_NAME/products"
docker pu... | true |
085fc5f32cb52d2f58887106782aa11e80612c52 | Shell | mangalbhaskar/maskrcnn_sophisticate- | /scripts/lscripts/cuda-10.0-with-tensorrt.aptget-install.sh | UTF-8 | 4,042 | 3.078125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
function cuda_install_dockerfile() {
sudo apt -s purge 'cuda*'
sudo apt -s purge 'cudnn*'
sudo apt-get update && sudo apt-get install -y --no-install-recommends \
gnupg2 curl ca-certificates && \
curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.p... | true |
36ab3a12a9a4821a874af001b0cdc95c2488d6d0 | Shell | steerforth/docker-redis-cluster | /redis_cluster_failover.sh | UTF-8 | 850 | 3.046875 | 3 | [] | no_license | n=5
port=7001
query=`redis-cli -c -p $port cluster nodes |awk '{print $3}'`
########
#echo ${query}
for ((i=0;i<$n;i++));
do
if [[ $query == *fail* ]]
then
echo "[exist cluster node fail or pfail!!!]"
sleep 1
else
result=`redis-cli -c -p $port cluster failover`
######
#echo $result
if [[ $result == "ERR Y... | true |
7efb7104d9e633689194f6efdd1d4e19bce6db09 | Shell | xhkyyy/mongosh | /.evergreen/setup-env.sh | UTF-8 | 1,724 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | set -e
set -x
export BASEDIR="$PWD/.evergreen"
export PATH="$BASEDIR/mingit/cmd:$BASEDIR/mingit/mingw64/libexec/git-core:$BASEDIR/git-2:$BASEDIR/node-v$NODE_JS_VERSION-win-x64:/opt/python/3.6/bin:/opt/chefdk/gitbin:/cygdrive/c/Python39/Scripts:/cygdrive/c/Python39:/cygdrive/c/cmake/bin:/opt/mongodbtoolchain/v3/bin:$PAT... | true |
a9b685d2230d75180b3dd41641d80096ff03d002 | Shell | latifkabir/Computation_using_Fortran90 | /mxm/mxm.sh | UTF-8 | 308 | 3 | 3 | [] | no_license | #!/bin/bash
#
gfortran -c mxm.f90 >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling mxm.f90"
exit
fi
rm compiler.txt
#
gfortran mxm.o
if [ $? -ne 0 ]; then
echo "Errors linking and loading mxm.o"
exit
fi
rm mxm.o
#
mv a.out ~/bin/$ARCH/mxm
#
echo "Executable installed as ~/bin/$ARCH/mxm"
| true |
08d71b3c1cb9b8b1dddcdb128455f6cb98d40958 | Shell | obana2010/snorttest | /testinclude.sh | UTF-8 | 716 | 2.59375 | 3 | [] | no_license | #!/bin/bash
. envinclude.sh
export nodecount=200
export nodeinit=10000
export NODEMAX=$(($nodeinit+$nodecount))
# test timeslot size
export TIMESLOTSIZE=10
export timeslot_test_start=0 # always 0
export timeslot_test_end=30
export clients_count=200; # number of clients
export timeslots_client_attack_continue=30; #... | true |
bb00cb1fe7704c1b7207503c0731dba433f9b2d3 | Shell | joefutrelle/pocean-core | /docs/deploy.sh | UTF-8 | 265 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -ev
if [ "$TRAVIS_PYTHON_VERSION" == "3.5" ]; then
cd docs
conda install --file requirements.txt
sphinx-apidoc -M -f -o api ../pocean ../pocean/tests
make html
doctr deploy --built-docs=_site/html --gh-pages-docs .
cd ..
fi
| true |
7e0ff4acc9ef718fa95f5eae2b16eafb02b5d02c | Shell | climbcomp/climbcomp-api | /scripts/autocomplete | UTF-8 | 614 | 3.28125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
: "${PROG:=$(basename "${BASH_SOURCE[0]}")}"
_cli_bash_autocomplete() {
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
local cur opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
if [[ "$cur" == "-"* ]]; then
opts=$( "${COMP_WORDS[@]:0:$COMP_CWORD}" "${cur}" --generate-bash-complet... | true |
9dfb3773f8ac50fd463bdcccf35b50204b5aa039 | Shell | delkyd/alfheim_linux-PKGBUILDS | /kcm-imchooser-frameworks/PKGBUILD | UTF-8 | 1,446 | 2.578125 | 3 | [] | no_license | # Mantainer maz-1 < ohmygod19993 at gmail dot com >
pkgname=kcm-imchooser-frameworks
pkgver=0.1
pkgrel=2
pkgdesc="A input method starter and configure tool. It can help you set annoying system environment variable. Unofficial KF5 port."
arch=('i686' 'x86_64')
url='http://kde-apps.org/content/show.php/kcm+imchooser?cont... | true |
46494d7b6627721fa39be01ecd67018daf173751 | Shell | anilsarma/misc | /njt/jenkins.script.sh | UTF-8 | 430 | 2.90625 | 3 | [] | no_license | #git clone git@github.com:anilsarma/misc.git
cd misc/njt
git pull
before=`git log --pretty='%H' master|head -1`
python check_for_changes.py
after=`git log --pretty='%H' master|head -1`
EMAIL=<>
# send out and email if the version file has been updated.
if [ "$before" != "$after" ]; then
python ../google/gmail/gm... | true |
b4e4c3769d8f0627c7e51246dac77be3975e64f8 | Shell | rpdroky/android_device_samsung_i9300 | /configs/configure_zram | UTF-8 | 814 | 3.453125 | 3 | [] | no_license | #!/system/bin/sh
set -e
ZRAM_DEVICES="zram0 zram1 zram2 zram3"
ZRAM_SIZE="157286400" # Per each ZRAM_DEVICE, 150 MB (150 * 1048576)
SWAPPINESS="80"
SWAP_BIN="swapon"
SWAP_CMD="-p 2"
if ! swapon 2>&1 | grep -qi "\-p pri"; then # If swapon doesn't support priority
if ! busybox swapon 2>&1 | grep -qi "\-p pri"; then # ... | true |
a8ba9f985199b9f283e3e1abc185a4fcc231e317 | Shell | deapplegate/wtgpipeline | /non_essentials/postH_preprocess_2015-12-15_W-S-Z+-superflats-finish_FRINGE.sh | UTF-8 | 3,858 | 2.984375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
set -xv
### superscript template to do the preprocessing
. progs.ini > /tmp/progs.out 2>&1
REDDIR=`pwd`
####################################################
### the following need to be specified for each run
####################################################
export SUBARUDIR=/gpfs/slac/kipac/fs1/u/aw... | true |
17987dea113e07ca33798e3f0a8b39c4598e2d5c | Shell | pchemguy/sqliteodbc | /mkall.sh | UTF-8 | 2,465 | 3.265625 | 3 | [
"LicenseRef-scancode-newlib-historical",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
#
# Build everything for Win32/Win64
rm -rf dist
mkdir dist
exec >mkall.log 2>&1
set -x
if test -r VERSION ; then
VER32=$(tr -d '.' <VERSION)
VER=$(cat VERSION)
else
VER32="0"
VER="0.0"
fi
if test $(arch) = "x86_64" ; then
CC32="gcc -m32 -march=i386 -mtune=i386"
SH32="linux32 sh"
els... | true |
ae2fd2d268eb84065acdf2560f204e90aa958f35 | Shell | claudiopetrini/nginx-http2-pagespeed | /install.sh | UTF-8 | 1,648 | 3.234375 | 3 | [] | no_license | #bin/bash
#install dependencies
sudo apt-get install unzip zlibc zlib1g build-essential zlib1g-dev libpcre3 libpcre3-dev libssl-dev libxslt1-dev libxml2-dev libgd2-xpm-dev libgeoip-dev libgoogle-perftools-dev libperl-dev curl
#nginx version
NGINX_VERSION=1.12.1
#openssl version
OPENSSL_VERSION=1.0.2l
#ngx_pagespeed... | true |
7d9e090e21607672d3b258ca90506d97cbd5ac0b | Shell | feckert/dotfiles | /bin/trash/graph-iptables.sh | UTF-8 | 392 | 3.375 | 3 | [
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense"
] | permissive | #!/bin/sh
SRC="iptables"
DIR="/tmp"
if [ -e ${DIR}/${SRC}.txt ]; then
for t in "mangle" "filter" "nat" "raw"; do
~/bin/graph-iptables-save.pl -tables ${t} \
> ${DIR}/${SRC}-${t}.dot \
< ${DIR}/${SRC}.txt && \
dot -Tpng ${DIR}/${SRC}-${t}.dot > ${DIR}/${SRC}-${t}.png
done
else
echo "No input file ${DIR}/... | true |
11f582db41b65760e7e17859d956fef25e863a31 | Shell | devilbox/devilbox-cli | /src/commands/config/php.sh | UTF-8 | 253 | 3.359375 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | get_current_php_version () {
get_readable_current_choice "PHP" "$PHP_CONFIG"
}
get_all_php_versions () {
get_readable_all_choices "PHP" "$PHP_CONFIG"
}
set_php_version () {
local new=$1
set_readable_choice "PHP" "$PHP_CONFIG" "$new"
}
| true |
e5d7451f011c670d8eea6a8fb92b116e65e3287b | Shell | danchurch/MimulusLuteus_RNAseq | /RonPipe/Z40_SamtoolsMerge.sh | UTF-8 | 1,625 | 3.84375 | 4 | [] | no_license | ## Merge BAM files. Meant to be used on sequencing data from
## 2 different lanes (i.e. L001 and L002 files). Files should already be sorted.
##
## Ron Smith - 2/13/2017
## rdsmith@email.wm.edu
##
## ------------------------------------------------------------------------
## ----- Settings -------------------------... | true |
f856a56d39b3bc7f8e2d000b8c5f1293d6bea83f | Shell | amananas/tools | /customize/customize.sh | UTF-8 | 1,554 | 3.296875 | 3 | [] | no_license | #!/bin/bash
PROFILE_VARIABLES=(
'EDITOR="gvim"'
)
PROFILE_ALIASES=(
'drop_caches="sudo sh -c '"'"'echo 1 > /proc/sys/vm/drop_caches; echo 2 > /proc/sys/vm/drop_caches; echo 3 > /proc/sys/vm/drop_caches'"'"'"'
'git_remove_whitespaces="find . -type f -not -iwholename '"'"'*.git*'"'"' -print0 | xargs -0 perl -pi -e '"'"'... | true |
aaed2945a636aa6fa156c0c27096e5f74f7366f9 | Shell | skyshaw/skynet3 | /third_party/glog/fake_compiler.sh | UTF-8 | 153 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e -u
args=()
for arg in "$@"; do
case "${arg}" in
'-lgflags'|'-lgtest') :;;
*) args+=("${arg}");;
esac
done
"${args[@]}"
| true |
6bcd00a6ab366d366b68c4d29befeff2c4eb3edb | Shell | LaurentColoma/urshi | /src/app/css/images/rename | UTF-8 | 336 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
img=0
imgs=$(ls | grep -E '^[0-9]+\.(png|jpg|jpeg)$')
while [ 1 ]
do
echo -n "level: "
read level
echo -n "images: "
read images
for nb in $(seq $images)
do
n=$(($img + $nb))
file=$(echo "$imgs" | grep -E "^$n\.")
mv "$file" "level$level-$nb.$(echo "$file" | cut -d '.' -f2)"
done
img=$(($img ... | true |
eb9949a483a8abb3bd37d44064cf44366e20395a | Shell | andreyvit/env | /bin/autoshot | UTF-8 | 563 | 3.796875 | 4 | [] | no_license | #!/bin/bash
DESTDIR=~/Workcast/Shots
PERIOD=60
DATEFMT=%Y-%m-%d_%a_%H_%M
if test "$1" = "-d"; then
PERIOD=5
DATEFMT=%Y-%m-%d_%a_%H_%M_%S_debug
fi
idle_time() {
ioreg -c IOHIDSystem | grep HIDIdleTime | head -1 | sed 's/[^0-9]//g; s,$,/1000000000,' | bc
}
capture() {
mkdir -p $DESTDIR
file=$DEST... | true |
f43e96b4fc4d18fe56476fe57f4195ee5eb3004b | Shell | KevinGrandon/run-docker-compose-buildkite-plugin | /hooks/command | UTF-8 | 1,549 | 3.796875 | 4 | [] | no_license | #!/bin/bash
set -ex
SCRIPT=$BUILDKITE_COMMAND
IMAGE=$BUILDKITE_PLUGIN_RUN_DOCKER_COMPOSE_IMAGE
COMPOSE_FILE=$BUILDKITE_PLUGIN_RUN_DOCKER_COMPOSE_COMPOSE_FILE
SERVICE=$BUILDKITE_PLUGIN_RUN_DOCKER_COMPOSE_SERVICE
SHOULD_BUILD=$BUILDKITE_PLUGIN_RUN_DOCKER_COMPOSE_BUILD
export PACKAGE=$BUILDKITE_PLUGIN_RUN_DOCKER_COMPOSE... | true |
c330ccef3470781b072f5e5a1c29ec393a685d01 | Shell | marianoelsztain/Shcript | /ex7.sh | UTF-8 | 164 | 3.703125 | 4 | [] | no_license | #!/bin/bash
DIR=$1
if [ -d $DIR ]
then
COUNT=`ls $DIR | wc -l`
echo "O $DIR tem $COUNT arquivos"
else
echo "O argumento $DIR não é um diretorio"
fi
| true |
c90b34f0b1c0f9f49b52ce0a5a0ec18ddf655463 | Shell | fromeroj/mysql_replication_example | /source/provisionMaster.sh | UTF-8 | 433 | 2.65625 | 3 | [] | no_license | #!/usr/bin/env bash
source /home/vagrant/source/provision.sh
if [[ ! -e /home/vagrant/.provision ]];then
update_system
setup_mysql
sudo /etc/init.d/mysqld stop
sudo sed -i 's/\[mysqld_safe\]/bind-address = 192.168.20.100\nserver-id = 100\nlog_bin = \/var\/log\/mysql\/mysql-bin.log\nbinlog_do_db = examp... | true |
c266d06bdb2ff97aac4374f2ae6f92b4adcadc34 | Shell | Ju-lia/ng6-golden-layout | /initBuildServe.sh | UTF-8 | 476 | 2.75 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
npm install
ORG="@embedded-enterprises"
PKG="ng6-golden-layout"
echo "This scripts builds the projects."
echo "Building $ORG/$PKG"
ng build ee-golden-layout
echo "Copying readme"
cp README.md dist/$ORG/$PKG
echo "Repacking lib"
(cd dist/$ORG/$PKG && tar czvf ../$PKG.tgz *)
echo "Linking $ORG/$PKG"
rm... | true |
ad20ecfbd378d3411172e52d0e7976779dd753b5 | Shell | brainvisa/casa-distro | /etc/bash_completion.d/casa_distro-completion.bash | UTF-8 | 21,448 | 3.421875 | 3 | [
"CECILL-B"
] | permissive | function _complete_casa_distro_option_()
{
local word=${COMP_WORDS[COMP_CWORD]}
local opt_n=$(( COMP_CWORD - 2 ))
if [ "$word" = "=" ]; then
local word=""
local opt_n=$(( opt_n + 1 ))
fi
local opt=${COMP_WORDS[opt_n]}
# get repository location
if [ "${COMP_WORDS[1]}" = "-r" ... | true |
07e6ab58fb1d1ebf202d9ca9283df6957b1720de | Shell | Dinglesworth/bin | /bluetooth_scripts/bc | UTF-8 | 630 | 3.765625 | 4 | [] | no_license | #!/bin/bash
MAC_ADDRESS=$1
if [ "$MAC_ADDRESS" == "" ]; then
echo -e "\n\033[1;33mNO MAC ADDRESS WAS ENTERED\n"
exit
fi
bluetoothctl connect $MAC_ADDRESS > /dev/null
CONNECT_STATUS=$(bluetoothctl info $MAC_ADDRESS | awk '$1 == "Connected:" {print $2}')
DEVICE_NAME=$(bluetoothctl info $MAC_ADDRESS | awk '$1 == ... | true |
4ebd5e35609d5bc52ef10a3cf4804d8c93650dc4 | Shell | strange-jiong/small-demo | /shell/install-dog-tunnel.sh | UTF-8 | 733 | 2.53125 | 3 | [] | no_license | #!/bin/bash
echo "===============install go======="
#!/bin/bash
apt-get install software-properties-common
apt-get install python-software-properties
add-apt-repository ppa:gophers/go
apt-get install golang-go git-core mercurial
echo "===============create GOPATH=============="
echo "export GOPATH=/opt/go" >> ~/.bash... | true |
1ba5b2d43dbc83273a974fd4503ed2ce281d7ae4 | Shell | cHolzberger/kvm-osx | /bin/machine-list-host | UTF-8 | 397 | 3.28125 | 3 | [] | no_license | #!/bin/bash
VERBOSE=0
if [[ "$1" == "-v" ]]; then
VERBOSE=1
fi
_sum=0
for MACHINE_PATH in /srv/kvm/vms/*; do
{
HOST="-unknown-"
{
vm=$(basename $MACHINE_PATH)
if [ -f $MACHINE_PATH/config ]; then
source $MACHINE_PATH/config
source $MACHINE_PATH/seat
source $MACHINE_PATH/../../seats/seat-$vm
if... | true |
f13fc2b6c5b9aa8855e891afc272604741e0e27c | Shell | linuxmap/node.lua | /targets/linux/hi3516a/S88debug | UTF-8 | 1,082 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env sh
# 初始开发模式
# ======
# 这个脚本只在开发时使用不会被打包, 需在开发前手动复制到开发板 `/etc/init.d/` 目录下
# IPv4 address
# 配置默认的固定 IP 地址, 需和开发服务器在同一网段, 请按需修改
ifconfig eth0 192.168.77.113 netmask 255.255.255.0
# Gateway
# 设置所在网络的网关地址, 请按需修改
route add default gw 192.168.77.1
# 设置主机名称
hostname hi3516a
# tmpfs
# 将 /tmp 挂接为内存文件系统, /tm... | true |
c994875f08bea80532e9be7243732f3d9ca36021 | Shell | moneytech/sturm6502 | /build.sh | UTF-8 | 377 | 2.71875 | 3 | [] | no_license | #!/bin/bash
set -e
cc sturm6502.c -o sturm6502
./sturm6502 -d 1 -l test/smoke/sturmdos.lst -o test/smoke/sturmdos.bin test/smoke/sturmdos.asm
xxd test/smoke/sturmdos.bin > test/smoke/smoke.hex
set +e
diff test/smoke/expected.hex test/smoke/smoke.hex
exit_code=$?
if [ $exit_code != 0 ]; then
printf "SMOKE TEST FAILED... | true |
b0921a4463f7ed6e94c1b14d799ae659145dde2e | Shell | j5s/tudo | /solution/chain.sh | UTF-8 | 1,248 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# @title Chains together vulnerabilities for TUDO
# @author William Moody
# @date 10.03.2021
if [ "$#" -ne 4 ] || [ $4 -gt 6 ] || [ $4 -lt 1 ]; then
echo "usage: $0 TARGET HOST USER CHAIN"
echo
echo "valid CHAIN values:"
echo "1 :: SQLi -> XSS -> SSTI"
echo "2 :: SQLi -> XSS -> Image Upload Bypas... | true |
1a174a3adf051469be15105fe005bc2577300f37 | Shell | wxtim/workflows | /gui-demo/bin/fail_and_a_half | UTF-8 | 581 | 3.890625 | 4 | [] | permissive | #!/bin/bash
# Task succeeds or fails depending on Cylc task submit number
main() {
case "${CYLC_TASK_SUBMIT_NUMBER}" in
"1")
echo "Never succeed on the 1st try."
exit 1
;;
"2")
echo "Randomly succeed on the 2rd try."
if [[ $((RANDOM % 2)) == 1... | true |
138771c0d96c883566bd85aefa9745b7f96f5390 | Shell | UoA-eResearch/Create_Dropbox_Team_folders | /bin/cron.sh | UTF-8 | 731 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#Run from cron (crontab -l)
#1 8,12,16,20 * * * /home/figshare/dropbox_gen_groups_from_ldap/bin/cron.sh > /home/figshare/dropbox_gen_groups_from_ldap/log/last_run.log 2>&1
#
RM="/bin/rm"
LOCKFILE="/home/figshare/bin/lockfile"
TMP_DIR="/tmp"
LOCK_PID_FILE=${TMP_DIR}/dropbox_hr_feed.lock
${LOCKFILE} ${LOCK_PID... | true |
b3f3b17d5c303555756d85e5a1a2bdd3c36ae9d2 | Shell | LI3DS/ros-li3ds | /arduino/LI3DS_ARDUINO/configure.sh | UTF-8 | 250 | 2.734375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir -p build/
cd build
# chemin vers le fichier tool-chain d'arduino-cmake
TOOLCHAIN_FILE=$ARDUINOCMAKE_DIR/cmake/ArduinoToolchain.cmake
# on lance la generation du projet via CMake
cmake -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN_FILE ..
cd - | true |
e798497c4a9637a9a6f6df760077db7cca6f9f6f | Shell | tdharris/myNovellApp | /lib/qNotify/rc/notify | UTF-8 | 1,734 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#/etc/init.d/nodeup
### BEGIN INIT INFO
# Provides: notify
# Required-Start: $network
# Required-Stop: $network
# Should-Start: haveged auditd
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the notify daemon
### END INIT INFO
function askYesOrNo {
REPLY=""
while [ -z "$REPLY" ] ; do
... | true |
a34c92abbcdc3dbbdfd3e113c9a762f4dc699ce5 | Shell | breunigs/bravia-auth-and-remote | /auth_cookie_examples/auth.sh | UTF-8 | 2,480 | 3.609375 | 4 | [
"ISC"
] | permissive | #!/bin/sh
# Note: this is only useful when you want to build an APP that also supports
# authentication via cookie. The cookie method loses validity after a
# couple of weeks, so you need to run reauth.sh some time before that.
set -e
my_uuid=$(uuidgen)
cd $(dirname $0)
. ./bravia.cfg
if [ -e 'auth_co... | true |
2717e0fe0a56d2be36377cac6be909ca6ef9d2f8 | Shell | janarkopunk/a | /misc/bsa.sh | UTF-8 | 437 | 3.5625 | 4 | [] | no_license | # Binary search algorithm
function warn {
printf '\e[36m%s\e[m\n' "$*"
}
if [ $# != 2 ]
then
echo bsa.sh GOOD BAD
exit
fi
gb=$1
bb=$2
echo each iteration will be saved to clipboard
while :
do
(( ty = (gb + bb) / 2 ))
if (( sg[ty]++ ))
then
break
fi
warn $ty
printf $ty > /dev/clipboard
select ... | true |
3cad7cedd99acac61b77d5f51ce5fd5b3a0abdd1 | Shell | jornbergmans/snippets | /01_bash/99_ambassadors/gifenh.sh | UTF-8 | 2,652 | 3.953125 | 4 | [] | no_license | #!/usr/bin/env bash
IFS=$'\n'
# echo "
# First variable not set. Please enter input info in the following order:
# 1. Input file or folder
# 2. Output framerate
# 3. Output height in pixels
# 4. Debug mode enables
# "
#
# else
if [[ -z $1 ]] || [[ -z $2 ]] || [[ -z $3 ]]; then
echo "Please input folder"
rea... | true |
855a5cce6af0e30efc80e51d9bd9f891d3da195a | Shell | MaayanLab/MCF10A | /MCF10A_resources/L1000/run_L1000.sh | UTF-8 | 1,108 | 2.5625 | 3 | [] | no_license | #!/bin/bash
# run_L1000.sh data\GSE70138_Broad_LINCS_Level3_INF_mlr12k_n115209x22268_2015-12-31.gct MCF10A ..\brd_drugname output\
gct_filename="$1"
cell_line="$2"
brd_filename="$3"
output_folder="$4"
output_filename="L1000_csv_filenames.txt"
chdir_filenames="L1000_chdir_filenames.txt"
up_down_filenames="L1000_chdi... | true |
7046e462f04cbb68e3ade803551a7c6d6813a191 | Shell | kt97679/rescue-system | /build-rescue-image.sh | UTF-8 | 809 | 2.9375 | 3 | [] | no_license | #!/bin/bash
set -e -u
RESCUE_ROOT=/run/rescue
RESCUE_SSH_PORT=11122
RESCUE_SSH_PASSWORD=rescueme
mkdir -p $RESCUE_ROOT
mount none -t tmpfs -o size=1G $RESCUE_ROOT
debootstrap trusty $RESCUE_ROOT
echo "rescue_system" > $RESCUE_ROOT/etc/debian_chroot
mkdir -p $RESCUE_ROOT/old_root
gcc --static -o fakeinit fakeinit.c
s... | true |
5d2fb1e30dfb4081139917347c29e7165a33fde0 | Shell | mrinal10/covid-data-internal | /bin/start-test-db.sh | UTF-8 | 891 | 3.78125 | 4 | [] | no_license | #!/bin/sh
# This script starts the database in a Docker container locally. This is needed to run the tests locally, but not for
# Bitbucket Pipelines since the tests run in a container with their own database.
#
# See `../docker/test/db/docker-compose.yml` for details about the database and the container name.
# See `... | true |
37b8d9fc0ae9cc2795a6e799b4fda93173f9b692 | Shell | yushixiang/my-crawler | /deploy/app.sh | UTF-8 | 3,354 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
ENV="prod"
cd `dirname $0`
APPLICATION="my-crawler"
SERVER_PORT=9206
LOGS_DIR="/tmp/logs/${APPLICATION}"
mkdir -p ${LOGS_DIR}
HOST_NAME=`hostname`
SPRING_PROFILE=" -Dspring.profiles.active=${ENV} "
JAVA_MEM_OPTS=" -server -Xms2000m -Xmx2000m -Xmn500m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m... | true |
c4417cc9a4bf08121485ae1123932fe8e638a959 | Shell | hassanelseady09/vps_install | /my_lib/functions/remove_ng_php.sh | UTF-8 | 582 | 3.53125 | 4 | [] | no_license | #!/bin/bash
remove_ng_php(){
echo "function remove_ng_php"
sudo apt-get -y purge *php*
# remove from the /etc/nginx/sites-available/default
if [ "`grep -P "###php-code###" /etc/nginx/sites-available/default`" != "" ]; then
echo "==remove php from the /etc/nginx/sites-available/default==";
sudo sed -... | true |
f53ce500881ac500b1ff9818a4b734ceb3b1f87d | Shell | kitchell/app-LBspectrum | /start.sh | UTF-8 | 1,121 | 3.3125 | 3 | [] | no_license | #!/bin/bash
#mainly to debug locally
if [ -z $WORKFLOW_DIR ]; then export WORKFLOW_DIR=`pwd`; fi
if [ -z $TASK_DIR ]; then export TASK_DIR=`pwd`; fi
if [ -z $SERVICE_DIR ]; then export SERVICE_DIR=`pwd`; fi
rm -f finished
if [ $ENV == "IUHPC" ]; then
#clean up previous job (just in case)
rm -f finished
#jobid=`qs... | true |
b367566c519199040e69fc20f201dd5bd1694ad9 | Shell | muvaf/crossplane-cli | /bin/kubectl-crossplane-package-install | UTF-8 | 3,245 | 4.40625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
function usage {
# The reason for putting package name before package image source is it seems like package name
# would be overridden more often than package image source, but I kept going back and
# forth on that originally. Overriding the source is very useful when developing a
#... | true |
874544bb9de74b086738a7a08104ac1b871f2673 | Shell | teotikalki/privatix | /tools/dump_mac/dump_mac.sh | UTF-8 | 1,306 | 3.828125 | 4 | [] | no_license | #!/usr/bin/env bash
if (( "$#" > 1 ));
then
echo usage: dump_mac.sh [privatix_app_folder_path]
exit 1
fi
PRIVATIX_APP_FOLDER=${1:-/Applications/Privatix}
DESTINATION_FOLDER="${PRIVATIX_APP_FOLDER}/dump"
rm -rf "${DESTINATION_FOLDER}"
rm -rf "${DESTINATION_FOLDER}".zip
find_and_copy(){
mkdir -p "$2"
... | true |
aaabb34d07e7e7b8ab4ffd0b2911f8f482d42b2b | Shell | gabrielegiammatteo/maven-builder | /bin/mavenize | UTF-8 | 4,981 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#
#
# Authors:
# Gabriele Giammatteo - gabriele.giammatteo@eng.it
#
# 2012
#
######################
# initialisation and commandline parsing
#
MAVENIZER_HOME=$(dirname $(dirname $0))
source $MAVENIZER_HOME/lib/shflags
source $MAVENIZER_HOME/lib/mavenizelib
SCRIPT_NAME="mavenize"
if [[ "$MAVEN_BUILD_TY... | true |
2de2851a32b68de9dd724b852a350c626c721b66 | Shell | faisalbasha1982/pipeline-scripts | /dev-bobafett-rp.sh | UTF-8 | 1,080 | 2.875 | 3 | [] | no_license | #!/bin/bash
unset http_proxy
unset HTTP_PROXY
unset https_proxy
unset HTTPS_PROXY
unset NO_PROXY
unset no_proxy
kubectl get nodes
kubectl create secret generic regcred \
--from-file=.dockerconfigjson=/home/dotnet_user/.docker/config.json \
--type=kubernetes.io/dockerconfigjson -n development
ls -ahl
cd bob... | true |
9da5a5a297a5edd0c962dc271e1fc927650e98c2 | Shell | sakthivel9963/dot-source-files | /install/pgadmin-install.sh | UTF-8 | 450 | 3.078125 | 3 | [] | no_license | # Install the public key for the repository (if not done previously):
curl https://www.pgadmin.org/static/packages_pgadmin_org.pub | sudo apt-key add
# Create the repository configuration file:
sudo sh -c 'echo "deb https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" > /etc/apt/source... | true |
153ed88bb00ecf64e43aa7f159c95bf32c0a99bf | Shell | nchikuma/wagasci_software | /slowMonitor/script/eps2png.sh | UTF-8 | 256 | 3.53125 | 4 | [] | no_license | #!/bin/sh
inputfile=$1
outputfile=${inputfile//eps/png}
case "${inputfile}" in
*\.eps)
GS="gs -dBATCH -dNOPAUSE -dEPSCrop -r${2}x${3} -sDEVICE=png16m -sOutputFile=${outputfile} -f ${inputfile}"
$GS >> /dev/null
;;
*)
echo "Not eps file"
;;
esac
| true |
dc6ed9578135cb6afff4a1570461c95fae19d919 | Shell | FlorianHeigl/nagios | /check_mk/local/flow_tools | UTF-8 | 1,137 | 3.890625 | 4 | [] | no_license | #!/bin/sh
# Flow-tools check for FreeBSD
# Checks if data has been received in last minutes
# Maximum data age in minutes
maxage=15
# Minimum Size (bytes) for a file with >1 Flows
minsize=160
cmk_out()
{
prog="flow-tools-data"
echo "$state $prog - $msg"
exit $state
}
nagios_out()
{
echo "$msg"
... | true |
fe026a831f127928615f08e95f425bb083397881 | Shell | sorrowless/sensu-ansible | /files/data/static/sensu/checks/checks_tls_certs/check-cert.sh | UTF-8 | 688 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
CERT=${1:-nothing}
EXPWARN=${2:-604800} # One week by default
EXPCRIT=${3:-172800} # Two days by default
openssl x509 -in ${CERT} -checkend 0 | grep 'not expire' -q
RC=$?
if [ "$RC" -ne "0" ]; then
echo "CRIT: ${CERT} is expired"
exit 2
fi
openssl x509 -in ${CERT} -checkend ${EXPCRIT} | grep 'not ... | true |
dfc57afeda876064538a21178de415bf784421b8 | Shell | jfuku14/CMMPPT | /wit-sa-test/scripts/wit-test-case-save | UTF-8 | 888 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#------------------------------------------------------------------------------
# Script wit-test-case-save
#
# Saves the results of a single run of the WIT stand alone executable for test
# purposes.
# Log files are not saved.
# (CPLEX produces log files, whose contents can vary.
# By default, RTC ignores ... | true |
26900f0a5c8e9843c098d46fc59ad046e724ddbd | Shell | jampaniuday/scripts-2 | /oracle/ETL/backup_dp.sh | UTF-8 | 2,697 | 3.734375 | 4 | [] | no_license | #!/bin/bash
#INITIALIZE EVIRONMENT
#ORACLE_SID=orcl
#ORAENV_ASK=NO
#. oraenv
. /home/oracle/.bash_profile
#source backup.conf
#CONTENTS_METADATA=
CONTENTS_ALL=SCHEMA1,SCHEMA2
#TABLE_ONLY=REPORT.WD_SQLSTORE
DATE=$(date +\%Y-\%m-\%d)
ORA_DIR=BACKUP
DIRECTORY=$(sqlplus -S / as sysdba <<EOF
set head off
select directory_p... | true |
4a059486189a27430675b58205c413455ef5c346 | Shell | lejacobs/ohayo | /cgi/wakeup.sh | UTF-8 | 2,585 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# We set the default variables
startvolume="0"
endvolume="60"
fade="60" # The duration in seconds of the fading
changeplaylist="false"
random="false" # Toggles the random order
remote="false" # If true starts anyremote
remotecfg="$HOME""/Extra/Anyremote/Server-mode/mpd.cfg"
playlist="http://provisioning.s... | true |
03ffedd62820ede1f1d16f3351e0959f92abfcea | Shell | OmkarSsawant/bash-scripter | /beg.sh | UTF-8 | 1,181 | 3.4375 | 3 | [] | no_license | #!/bin/sh
#BASCICS
#VARIABLE INPUT AND UNSET
#VAR="YOUR NAME IS"
#echo "Enter Your name :"
#read NAME
#NAME="HACKED"
#echo "$VAR $NAM"
#unset NAME VAR
# SPECIAL CHARACTERS
#FILE_NAME=$0
#ARG_1=$1
#ARG_2=$2
#...ARG_N=$N
#ARG_LEN=$#
#DOUBLE_QUOTED_ARGS=$*
#INDIVIDUAL_DOUBLE_QUOTED=$@
#EXIT_STATUS_LAST_CMD=$?
#PROCESS... | true |
2c05a2869f6211179fb0ba8f4b9cde1d57102739 | Shell | MaxiLund/auto-sklearn | /ci_scripts/install.sh | UTF-8 | 1,078 | 2.90625 | 3 | [
"BSD-3-Clause"
] | permissive | pip --version
# Install general requirements the way setup.py suggests
pip install pytest pep8 codecov pytest-cov flake8
# Install the packages in the correct order specified by the requirements.txt file
cat requirements.txt | xargs -n 1 -L 1 pip install
# Debug output to know all exact package versions!
pip free... | true |
be135950d530c1632dd158534e69bbe11b0519fb | Shell | tarantool/tarantool-python | /tarantool/msgpack_ext/types/timezones/gen-timezones.sh | UTF-8 | 2,254 | 3.578125 | 4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
set -xeuo pipefail
SRC_COMMIT="9ee45289e01232b8df1413efea11db170ae3b3b4"
SRC_FILE=timezones.h
DST_FILE=timezones.py
[ -e ${SRC_FILE} ] && rm ${SRC_FILE}
wget -O ${SRC_FILE} \
https://raw.githubusercontent.com/tarantool/tarantool/${SRC_COMMIT}/src/lib/tzcode/timezones.h
# We don't need aliases in... | true |
81826cfad36075ab69edbb6e74b6c61cdaebab8b | Shell | stiles69/bin | /Automation_Custom_Script.sh | UTF-8 | 1,589 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#===============================================================================
#
# FILE: Automation_Custom_Script.sh
#
# USAGE: ./Automation_Custom_Script.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Bret... | true |
db16a36418493f4b8812d1a8cc06baebedfe8352 | Shell | naeramarth7/dotfiles | /zsh/.zprofile | UTF-8 | 634 | 3.265625 | 3 | [] | no_license | #!/usr/bin/env zsh
if $ZSH_DEBUG; then; echo -en "$(gdate +%s.%N) > .zprofile start\r\n"; fi
# Load the shell dotfiles, and then some:
# * ~/exports/*.src can be used for extending `$PATH` or addding env variables.
for dir in $ZDOTDIR/{exports}; do
if [ -d $dir ]; then
for file in $dir/*.src; do
[ -r "$fi... | true |
0877a08501b36d2777db6ad790d61147158360e8 | Shell | ripa1993/tpch-spark | /bin/functions.sh | UTF-8 | 143 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
function echo_and_run() { echo "$@" ; "$@" ; }
function get_start_ts() {
ts=`ssh ${MASTER} "date +%F-%T"`
echo $ts
} | true |
11939db402304b6ec8805d49bfc0de6c2166c086 | Shell | freebsd/freebsd-ports | /sysutils/choria/files/choria-server.in | UTF-8 | 719 | 3.21875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
#
# PROVIDE: choria_server
# REQUIRE: DAEMON
#
# Add the following lines to /etc/rc.conf to run the choria server:
#
# choria_server_enable (bool): Set it to "YES" to enable the choria server.
# Default is "NO".
# choria_server_options: Options to pass to the choria server
#
. /etc/rc.subr
name="choria_s... | true |
97ed4da07d28a9a4410d23d63aea85cf0d15e8a7 | Shell | isabella232/somerville-teacher-tool | /scripts/aws/base/clean_docker_remote.sh | UTF-8 | 493 | 3.03125 | 3 | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | # Remote script to clear disk space inside the Docker filesystem.
echo "Cleaning Docker filesystem..."
echo "Cleaning images more than a week old..."
docker rmi $(docker images --no-trunc | egrep ' (weeks|months) ago' | tr -s ' ' | cut -d' ' -f3)
echo "Cleaning volumes..." # see http://blog.yohanliyanage.com/2015/05... | true |
593302d76b5f1a0f82c908c45416b9df85baaf4a | Shell | makkarpov/scalingua | /sbt-plugin/src/sbt-test/main/no-escape-unicode/verify-pot.sh | UTF-8 | 234 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ ! -f "target/scala-2.12/messages/test.pot" ]; then
echo "test.pot does not exists!" >&2
exit 1
fi
tail -n +2 "target/scala-2.12/messages/test.pot" > generated.pot
diff -u generated.pot messages.pot || exit 1 | true |
32e48734d947167079d8ae4c50a031b7d01d2146 | Shell | ProfessionalFarmer/lake | /mountain/mdk/mergeBed.sh | UTF-8 | 355 | 2.65625 | 3 | [] | no_license | #! /bin/bash
# 2018-01-06: change $1 to $@ variable
bedtools='/share/apps/bedtools2/bin/bedtools'
cat $@ | sort -V -k1,1 -k2,2n > bedtools.in.sorted.bed
# -o can be followed by distinct, sum, min, max, absmin, absmax, mean, median, collapse, count_distinct, count
$bedtools merge -i bedtools.in.sorted.bed -c 4 -o dist... | true |
1b9051b2b393db013ac5e519d913c30b31a6e402 | Shell | ruflin/apm-python | /travis/run_tests.sh | UTF-8 | 959 | 2.734375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
PYTHON_MAJOR_VERSION=$(python -c "import sys; print(sys.version_info[0])");
mkdir -p $PIP_CACHE
mkdir -p wheelhouse
psql -c 'create database opbeat_test;' -U postgres
pip install -U pip
pip install -r test_requirements/requirements-${WEBFRAMEWORK}.txt --cache-dir ${PIP_CACHE}
pip install -r test_req... | true |
0786349eb9a6fbf2609a4f8cb809cc26d3c2c55b | Shell | map-dcomp/map-code | /src/MAP-ChartGeneration/scripts/batch_charts_with_load_latency_5/generate_service_ncp_demand_load_cap_req_plot.sh | UTF-8 | 31,309 | 3.0625 | 3 | [
"BSD-2-Clause"
] | permissive | #BBN_LICENSE_START -- DO NOT MODIFY BETWEEN LICENSE_{START,END} Lines
# Copyright (c) <2017,2018,2019,2020,2021>, <Raytheon BBN Technologies>
# To be applied to the DCOMP/MAP Public Source Code Release dated 2018-04-19, with
# the exception of the dcop implementation identified below (see notes).
#
# Dispersed Computi... | true |
74bd04791e2b3148ff248cbdc85874bfaf3e0f05 | Shell | DefaultValue/docker_infrastructure | /docker-image-build-and-push.sh | UTF-8 | 3,559 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# 1. Build development and production images
# 2. Run `DOCKERIZER magento:test dockerfiles`
# 3. Push images
# Check extensions list and custom PHP configuration file
# docker exec -it $(DOCKERIZER composition:get-container-name php) php -v
# docker exec -it $(DOCKERIZER composition:get-container-name php)... | true |
2410750d2f99f23d43c99d7093885fc2285a7a80 | Shell | TheRockXu/deepdive | /database/test/tsv2tsj.bats | UTF-8 | 1,646 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats
# Tests for tsv2tsj
load test_environ
load corner_cases
parse_each_tab_sep_json() {
tr '\t' '\n' |
tee /dev/stderr |
jq -c .
}
@test "tsv2tsj works" {
cd "$BATS_TEST_DIRNAME"
actual=$(eval keeping_output_of tsv2tsj $NastyTypes <<<"$NastyTSV" | parse_each_tab_sep_json)
diff... | true |
b37b0b9df2231dc2b8193adaf2aebc55d0fe1a80 | Shell | jgkennedy/openshift-tools | /docker/oso-rhel7-zagg-client/start.sh | UTF-8 | 515 | 2.96875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash -e
# set hostname to register against zabbix
echo 'setting hostname in ops-zagg-client'
CONTAINER_HOSTNAME=$(echo CTR-$(/usr/bin/pminfo -f kernel.uname.nodename | /usr/bin/awk -F \" /value/'{print $2}'))
sed -i -e "s/^ name:.*$/ name: $CONTAINER_HOSTNAME/" \
-e "s/^ host:.*$/ host: $... | true |
1c6d0f9b3f2c90d43e331a163c419c13bd481371 | Shell | hackoregon/cropcompass-vagrant | /scripts/reload-django-code.bash | UTF-8 | 604 | 2.90625 | 3 | [] | no_license | #!/bin/bash
echo `date` "stopping app server"
sudo service uwsgi stop
echo `date` "backing up old cropcompass Django app"
export STAMP=`date -Iseconds`
cp -rp ~/cropcompass ~/cropcompass-${STAMP}
echo `date` "copying Django app from '/vagrant/django-app' to '~vagrant/cropcompass'"
diff -r /vagrant/django-app ~vagran... | true |
ea78eac6462c81ce6139d8b2a786019455d36c00 | Shell | mateuszmidor/PythonStudy | /python-http-client-demo/run_all.sh | UTF-8 | 1,306 | 4.21875 | 4 | [] | no_license |
#!/usr/bin/env bash
trap tearDown SIGINT
PYTHON=python3
PIP=pip3
function stage() {
BOLD_BLUE="\e[1m\e[34m"
RESET="\e[0m"
msg="$1"
echo
echo -e "$BOLD_BLUE$msg$RESET"
}
function checkPrerequsites() {
stage "Checking prerequisites"
command $PYTHON --version > /dev/null 2>&1
[[ ... | true |
775e1517094ad4accf395f7d38541fd23d321435 | Shell | olecom/lftpd | /etc/rename_files_pre.sh | UTF-8 | 307 | 2.828125 | 3 | [
"MIT"
] | permissive | #exec 2>put_debug
set -e -x
for f in *$1
do case $f in
"*"*) # no DATAEXT files, list DATAEXT PREEXT prefixed, if any
for f in *$1$2
do case $f in
"*"*) exit 1;;
*) echo "mv $f ${f%$2}";;
esac
done
exit
;;
*) mv "$f" "$f$2"
echo "mv $f$2 $f"
;;
esac
done >rename_remote_norm.lftp
| true |
91926d807e482d3d8b0b75e9b79618958c77da79 | Shell | apples/scc | /wrf/compile/beninstallformic_smokey.sh | UTF-8 | 946 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#Define file paths here
IMPI_DIR="/opt/intel/impi"
ICS_DIR="/opt/intel/ics"
HDF5_DIR="/data/mic/wrf/lib/hdf5"
NETCDF_DIR="/data/mic/wrf/lib/netcdf"
MKL_DIR="/opt/intel/ics/composer_xe_2013.1.117/mkl"
#Add the Intel MPI compilers to the PATH
export CC="mpiicc"
export CXX="mpiicpc"
export FC="mpiifort"
expo... | true |
c4df05801977f4f99126dc0f8f758bd518a4940a | Shell | Teamprojekt-HSTrier/Bidirektionales-Kommunikationssystem | /SMS/files/CRONsendSMS.sh | UTF-8 | 712 | 3.640625 | 4 | [] | no_license | #!/bin/bash
#Endlosschleife zum versenden von SMS
while [ true ] ; do
#prüfen ob eine SMS angelegt wurde.
sms=$(cat /home/pi/SMS/sendsms)
#wenn keine SMS vorhanden is 10s warten
if [ -z "$sms" ]
then
sleep 10
else
#Sollte eine SMS vorhanden sein, so wird die Kontaktdatei ausgelesen und jedem Kontakt eine SMS übermit... | true |
749d861c73c884cd7976bf623dccfe1313155c24 | Shell | SiliconMeeple/sbt-git-stamp | /sbt | UTF-8 | 367 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
. ./build-env
SBT_BOOT_DIR=$HOME/.sbt/boot/
if [ ! -d "$SBT_BOOT_DIR" ]; then
mkdir -p $SBT_BOOT_DIR
fi
java -Dfile.encoding=UTF8 -Xmx1024M -XX:+CMSClassUnloadingEnabled -XX:+UseCompressedOops -XX:MaxPermSize=768m \
$SBT_EXTRA_PARAMS \
-Dbuild.time="`date`" \
-Dsbt.boot.directo... | true |
c1d94a9d365e137e918bd7d74cdb6ad0d47df26a | Shell | obino/appscale | /scripts/init-filebeat.sh | UTF-8 | 1,101 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
set -u
usage()
{
echo "usage: init-filebeat.sh --logstash IP:PORT"
}
if [[ $# == 2 && $1 == '--logstash' ]]; then
LOGSTASH_LOCATION=$2
else
usage
exit 1
fi
while fuser /var/cache/apt/archives/lock /var/lib/apt/lists/lock /var/lib/dpkg/lock ; do
echo "Waiting for apt loc... | true |
0ef2a197486983be134b144953c9dd8d161ec019 | Shell | srikanthvavila/openstack-opendaylight | /liberty-beryllium/createTenantAndVms1.sh | UTF-8 | 1,563 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
#
export TNT_ID=${TNT_ID:-1}
export VM_COUNT=${VM_COUNT:-1}
cd ~/devstack
source openrc admin admin ; export OS_PROJECT_NAME=admin
keystone tenant-create --name=tenant${TNT_ID} --enabled=true
keystone user-create --name=user${TNT_ID} --pass=user${TNT_ID} --email=user${TNT_ID}@example.com
keyston... | true |
3291c3689513974b1007d56cb2d79f134d5ff89b | Shell | strategist922/ezplot | /files/opt/chia/bin/plotdst | UTF-8 | 526 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
mkdir -p /tmp/ezplot/
# Get the plot destination with the most space.
if [[ ! -f "/tmp/ezplot/dsts" ]]; then
touch /tmp/ezplot/dsts
fi
if [[ `cat /tmp/ezplot/dsts | wc -l` == 0 ]]; then
ezplot plotspace > /tmp/ezplot/dsts
fi
next=`cat /tmp/ezplot/dsts | tail -n 1`
next_dst=`echo ${next} | cu... | true |
f7c8517fd27297bafe859a076130733c27c6c5b6 | Shell | cheyunhua/k8s_adm | /k8s_env.sh | UTF-8 | 1,637 | 2.59375 | 3 | [] | no_license | #/bin/bash
K8S_HOME=/root/k8s
DIST=$K8S_HOME/dist
#install docker
docker version || yum install -y $DIST/docker-ce-se*.rpm $DIST/docker-ce-17*.rpm
mkdir -p /etc/docker
cat << EOF > /etc/docker/daemon.json
{
"exec-opts": ["native.cgroupdriver=systemd"],
"registry-mirrors": ["http://ef017c13.m.daocloud.io"],
"live... | true |
3fb5998b9dac30474f830c2970a81b24bfe37155 | Shell | ag-archlinux/arch | /install1.sh | UTF-8 | 4,764 | 3.59375 | 4 | [] | no_license | #!/bin/bash
##### Created by: ag
##### File: install1.sh
##### --------------------------------------------------
##### INPUTS #####
##### hostname
echo -n "Hostname: "
read HOSTNAME
: "${HOSTNAME:?"Missing hostname"}"
##### root password
echo -n "Root password: "
re... | true |
9539c33288f95b8d0ceeea5f0e0d3eb25b296649 | Shell | robb-broome/dotfiles | /bashrc | UTF-8 | 3,286 | 2.9375 | 3 | [] | no_license | HISTTIMEFORMAT='%F %T '
HISTFILESIZE=1000000000
HISTSIZE=1000000
# Compress the cd, ls -l series of commands.
alias lc="cl"
function cl () {
if [ $# = 0 ]; then
cd && ll
else
cd "$*" && ll
fi
}
# trigger an .rvmrc if it's there
cd .
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircol... | true |
327ddacc560c636eedc54e1bc228cd070b964560 | Shell | unipheas/MAVSDK-Swift | /tools/generate_from_protos.bash | UTF-8 | 2,271 | 3.671875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
set -e
command -v protoc || { echo >&2 "Protobuf needs to be installed (e.g. '$ brew install protobuf') for this script to run!"; exit 1; }
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PB_PLUGINS_DIR=${PB_PLUGINS_DIR:-"${SCRIPT_DIR}/../proto/pb_plugins"}
PROTO_DIR=${PROTO_DIR:-"${SC... | true |
9b0ba24d218c7aaf64a15f2588ea3b07a2ee4fee | Shell | petomajci/magneticDipoles | /create_feature_list_2JHC.sh | UTF-8 | 2,965 | 2.90625 | 3 | [] | no_license | CODE=$1
NBINS=10
(echo id
echo id1
echo id2
echo molecule
echo TARGET
echo distance HX
echo distance CX
echo distance CH
echo angle HXC
echo charge H
echo charge C
echo charge X
echo X=H
echo X=C
echo X=N
echo X=F
echo X=O
for TT in X C; do
for mol in H C N F O all; do
echo $TT: number of neighbors of type ... | true |
ebb78425d4d5cdbf677e1145e1810b5701d80a2c | Shell | sivaraj2112/xcp-16.4-docker | /bam-db/init-db-user.sh | UTF-8 | 363 | 2.625 | 3 | [] | no_license | #!/bin/bash
set -e
BAM_DB_NAME=${BAM_DB_NAME:-bamdata}
BAM_DB_USER=${BAM_DB_USER:-bam}
BAM_DB_PWD=${BAM_DB_PWD:-password}
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" <<-EOSQL
CREATE USER ${BAM_DB_USER} WITH PASSWORD '${BAM_DB_PWD}';
CREATE DATABASE ${BAM_DB_NAME};
GRANT ALL PRIVILEGES ON DATABASE ... | true |
97fc8a4dfa9daacfe4c4219140e9380bb76389fb | Shell | audun/factorio-aloneinthedark | /setup_dev.sh | UTF-8 | 439 | 3.125 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
MOD=`grep \"name\" info.json | cut -f2 -d: | sed 's/[\", ]//g'`
VERSION=`grep \"version\" info.json | cut -f2 -d: | sed 's/[\", ]//g'`
NAME=${MOD}_$VERSION
ZIP=$NAME.zip
mkdir -p $NAME
cp -prv info.json *.lua locale *.txt *.md thumbnail.png $NAME/
rm -f $ZIP
find $NAME/ -name '*~' -delete
zip -r $ZIP $NAM... | true |
716dbf328967cdf24b13b89c34bc24f70e75509f | Shell | stephenway/sysconfig | /bin/dns | UTF-8 | 741 | 3.453125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
if [ -n "$1" ]; then
echo ""
echo "<----- Domain Results ----->"
echo ""
echo "Nameservers for $1:"
dig ns $1 +short
echo ""
echo "IP address for $1:"
dig $1 +short
echo ""
echo "MX records for $1:"
dig mx $1 +short
echo ""
echo "IP address for MX records:"
dig $(dig mx $1 +short) +short
whois... | true |
8069af5ae8b172754ded7f98be806a7918de747c | Shell | Vash2593/git-bin | /bin/git-list-sb | UTF-8 | 688 | 4.09375 | 4 | [] | no_license | #! /bin/sh
set -e
me=`basename $0`
unset GREP_OPTIONS
stderr ()
{
local i
for i
do
echo >&2 "$me: $i"
done
}
error ()
{
local sta=$1
shift
stderr "$@"
exit $sta
}
usage() {
cat <<EOF
usage: $0 <Options> [submodule...]
List all submodules
Options:
-h, --help Display this message... | true |
eefe5cd8dbeed834d746f572dedf347675914f06 | Shell | home-things/rpi-light-ctr | /src/run | UTF-8 | 127 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
dir=$(dirname $0)
cd $dir
./isr >> log 2> >(while read line; do echo -e "\e[01;33m$line\e[0m" >&2; done)
| true |
48e4bca29380063bd58f909e81636876bae6be78 | Shell | owncloud/administration | /jenkins/obs_integration/import_deb.sh | UTF-8 | 5,713 | 3.75 | 4 | [] | no_license | #! /bin/bash
# This script import a debian binary package into obs.
# A data.tar.gz and all the required debian.* files are created, so that the package
# can pass a normal build cycle, as if it were source. The contents of the data tar is simply copied through unchanged.
#
# Requires:
# sudo apt-get install libdistro... | true |
281e18746a4a64fba07e1025026a6e1575a217ea | Shell | Kho-Dialga/configs | /.local/bin/dmenu/dmenucfg | UTF-8 | 2,884 | 2.828125 | 3 | [] | no_license | #!/bin/sh
# Small dmenu script for editing the config files of programs that I use
# Program # Command to edit file
cfg="\
alacritty $TERMINAL -e $EDITOR $XDG_CONFIG_HOME/alacritty/alacritty.yml
awesome $TERMINAL -e $EDITOR $XDG_CONFIG_HOME/awesome/rc.lua
awesome (themes) $TERMINAL -... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.