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
b0ad39f01fdf2debb8385bc8df64aabe0e6f5714
Shell
cuijialang/vtr
/vtr_flow/tasks/run_all_modified.sh
UTF-8
281
3.015625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "MIT-Modern-Variant" ]
permissive
# find all tasks with a config tasks=$(find . -name "regression_*" -prune -o -name "config" -print) for task in $tasks do striped="${task%/config}" striped="${striped#./}" echo "${striped}" ~/vtr-verilog-to-routing/vtr_flow/scripts/run_vtr_task.pl $striped done
true
f1e5a9e1ad2d96777d33e106a0b89345e09a689b
Shell
msm1723/playground
/bash/445_posit-params3.sh
UTF-8
646
4
4
[]
no_license
#!/usr/bin/env bash ## 445_posit-params3.sh ## posit-params3: script to demonstrate $* and $@ print_params () { echo "\$1 = $1"; echo "\$2 = $2" # charecter ; helps to write two commands in one line echo "\$3 = $3" echo "\$4 = $4" } pass_params () { echo -e "\n" '$* :'; print_params $* echo -e "\n" '"$*" :'; pr...
true
513b3d0831f1d086938686e655683ad52904e8c0
Shell
dynamy/ocp18
/environment/new.sh
UTF-8
2,632
3.15625
3
[]
no_license
#!/bin/bash # move to the ec2-user directory and update yum cd /home/ec2-user sudo yum update -y sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel socat wget -y # This downloads the OneAgent installer from your tenant wget --no-check-certificate -O Dynatrace-OneAgent-Linux.sh "https://[Yo...
true
62330360abb59013ca962237f9a491d1ff234e69
Shell
5h4thru/bash_programming
/getopts_shopt_fgkill.sh
UTF-8
1,923
3.890625
4
[]
no_license
#!/bin/bash ######################### # Getopts Command ######################### echo -e "\n##### Getopts Command #####" # getopts is a part of internal_commands.sh script while getopts :dm option do case $option in d) d_option=1;; m) m_option=1;; *) echo "Usage: -dm" esac done day=`date | awk '{print $1 " " ...
true
7590c1c88bd7fad3e82732893574897057ac09be
Shell
rafaelrojasmiliani/kamilscripts
/bin/,todoist
UTF-8
6,900
3.53125
4
[ "Beerware", "MIT" ]
permissive
#!/bin/bash set -euo pipefail T_get_token() { jq -r .token ~/.todoist.config.json } T_exec_nosynctoken() { cmd=( curl -sS https://api.todoist.com/sync/v8/sync -d token="$(T_get_token)" -d "$@" ) ( set -x "${cmd[@]}" ) } T_exec() { T_exec_nosynctoken sync_token="$(T_get_sync_token)" -d "$@" } g_all...
true
004ecac067ccc96ca3483c6d67f096313f4012bd
Shell
superdaigo/morning-playlist
/alert_10_minutes.sh
UTF-8
514
3.5625
4
[]
no_license
#!/bin/bash STOP_AT=$(date -j -v "+1H" "+%H:%M") if [ ! -z $1 ] && [[ $1 =~ ^[0-9]{1,2}:[0-9]{2}$ ]] ; then STOP_AT="${1}" if [ ${#1} -eq 4 ] ; then STOP_AT="0${1}" fi fi echo "Will stop at ${STOP_AT}" while : do MS=$(date "+%M%S") TIME=$(date "+%H:%M") if [ ${MS:1:3} -eq "000" ] ; then say -v Kyok...
true
83f0c256a55ee32846d153637ff72bdd410bd878
Shell
ProbablyNotArtyom/G-DOS
/test-archs.sh
UTF-8
522
3.34375
3
[]
no_license
#!/bin/bash local ARCH_OLD local PLATFORM_OLD if [[ -e .config ]]; then source .config ARCH_OLD=$ARCH PLATFORM_OLD=$PLATFORM fi function build_arch { ./config.sh ARCH=$1 PLATFORM=$2 make clean make if [[ $? != "0" ]]; then echo "[!!!] PLATFORM FAILED:" echo "[!!!] $1/$2" exit fi } make -i distclean bu...
true
78d1864780c440065a4fe357a6f3b6c6fd3d7973
Shell
dino-/scripts
/mdconv
UTF-8
1,210
4.125
4
[]
no_license
#! /bin/bash basename=$(basename "$0") function usage { cat <<USAGE $basename - Convert Markdown to various formats using Pandoc usage: $basename OUTPUT_FORMAT MARKDOWN_DOCUMENT OUTPUT_FORMAT is one of: html, pdf The new file will be in the same directory and named just like the Markdown file with the approp...
true
f9c541023b6f5f790a98fa46275b688f4e81af13
Shell
Morgareth99/gists
/wtosd
UTF-8
1,313
3.53125
4
[]
no_license
#!/bin/bash # wtosd - Window Title On Screen Display # Written 20140905 by Armin <netzverweigerer@github> # This script was made for window manager setups that do not show a title bar # for windows. It looks for the currently active window, looks up the window # title via xprop, and then renders an OSD (on screen dis...
true
d0ce9f4047c7f3f24ac9945a52abf4d5c37bcb13
Shell
passy/ndocker-postfix-relay
/rootfs/init/run.sh
UTF-8
424
2.8125
3
[]
no_license
#!/usr/bin/env sh set -ex # shellcheck disable=SC2154 if test "$NOMAD_PORT_smtp"; then export SMTP_PORT="$NOMAD_PORT_smtp" else export SMTP_PORT="smtp" fi busybox syslogd -n -O /dev/stdout & bbchild=$! newaliases postmap /etc/postfix/overlay/virtual consul-template -config /etc/ndocker/postfix.hcl & child=$! ...
true
8626ba0da5d9f3fdcad97dcf325cb0d2fed8bad2
Shell
pietaridaemonna/job_dsigner_core
/scripts/deployVM.txt
UTF-8
4,815
3.953125
4
[ "MIT" ]
permissive
#!/bin/bash QEMU_IMG=/usr/bin/qemu-img VIRT_INST=/usr/bin/virt-install NAME=$1 # Change ISO and INST_PATH variable ISO="debian-6.0.7-amd64-CD-1.iso" ISODIR="/var/lib/libvirt/images" INST_PATH="/var/lib/libvirt/images/vms" # DONT CHANGE BELOW if [[ ${EUID} != 0 ]]; then printf "${USER}. You must be root\n" exit ...
true
69e7dcaa8bc476f9ff430ab6eb058029b93513ce
Shell
vinaymk009/aws-material
/arguments_ex1.sh
UTF-8
145
2.609375
3
[]
no_license
#!bin/bash #Program with arguments in functions function arguments_ex(){ echo "Hello, $1 location at $2" } arguments_ex KnowledgeIT Ameerpet
true
37cbfc324c0454cf78c3c5bf1ebd75bf41c87d1e
Shell
nfschina/nfs-antivirus
/nfs-antivirus-0.1/src/bin/detect_usb/autorunDetectUsb
UTF-8
1,518
3.59375
4
[]
no_license
#!/bin/sh ### BEGIN INIT INFO # Provides: detect_usb # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # X-Start-Before: kdm gdm3 xdm lightdm # X-Stop-After: kdm gdm3 xdm lightdm # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Start the Advanced Con...
true
7fc36d2582f0a3241c1181116419d975cc6cb46f
Shell
Smithx10/nyble
/drivers/i40e/install
UTF-8
723
2.828125
3
[]
no_license
#!/bin/bash VER=2.4.6 if [ -e "/etc/debian_version" ]; then export KV=`dpkg -l | grep linux-image- | grep -v meta | perl -lane 'print $F[1] =~ /linux-image-(.*)/'` export KSV=`echo ${KV} | perl -lane 'printf $F[0] =~ /^(\d+\.\d+)/'` export KP=/usr/src/linux-source-${KSV} fi if [ -e "/etc/redhat-release" ]; then exp...
true
9284e43a1110d068302a47964717c717d014258b
Shell
kilnamkim/settings
/scripts/vim_local_install.sh
UTF-8
770
3.90625
4
[]
no_license
#!/bin/bash # Script for installing vim on systems where you don't have root access. # vim will be installed in $HOME/opt/vim. # exit on error set -e VERSION=8.2.0430 # create our directories mkdir -p $HOME/vim_tmp $HOME/opt cd $HOME/vim_tmp # download source files for vim REL=https://github.com/vim/vim/archive FI...
true
2208ccd68ab2ca414d061fe1922584082c734a09
Shell
CardiffMathematicsCodeClub/CardiffMathematicsCodeClub.github.io
/script/bump-version.sh
UTF-8
787
3.890625
4
[]
no_license
#!/bin/bash # Get the latest tags git fetch upstream --tags # Get the latest version in the form x.y ver=$(git tag | tail -n 1 | sed 's/v//') # Get the x part of the version major_ver=$(echo $ver | sed 's/\.[0-9]*//') # Get the y part of the version minor_ver=$(echo $ver | sed 's/[0-9]*\.//') # Calculate the numbe...
true
2ae67df6a5c181ba2c8fb16b95c7718f11e6cbcc
Shell
dyno/bin.dyno
/apt-get-download-only.sh
UTF-8
203
2.921875
3
[]
no_license
#!/bin/sh #this will download the installed package deb file #then use dbkg -i --force-<action> $1 force reinstall the package if [ $# == 1 ] then echo sudo apt-get --download-only --reinstall $1 fi
true
f05db9ba62e1b9158981624f126cf6a02c76c862
Shell
lisuke/repo
/archlinuxcn/git-subrepo-git/PKGBUILD
UTF-8
791
3.046875
3
[]
no_license
# Maintainer: James An <james@jamesan.ca> pkgname=git-subrepo-git _pkgname=${pkgname%-git} epoch=1 pkgver=0.4.6.r0.g110b9eb pkgrel=1 pkgdesc="Git command is an improvement from git-submodule and git-subtree." arch=('any') url="https://github.com/ingydotnet/$_pkgname" license=('GPL') depends=('git') provides=("$_pkgnam...
true
23b3c27fb9ef0dfbf6e5d02d2485f12efdfb1850
Shell
joeking11829/Ubuntu-CB5-311-TK1
/install-cuda.sh
UTF-8
3,354
2.59375
3
[]
no_license
cd && clear echo "--------------------------------------------------------" echo " Script to re-enable cuda capabilities " echo " on Acer CB5-311 Chromebooks " echo "--------------------------------------------------------" echo #echo "install tools" #sudo apt-get -y install ...
true
4914a3c220485ccd2f4effc090759bac6f362a57
Shell
pnnl/mass2
/test/flow/spur-dike-1/mkgrid.sh
UTF-8
1,092
3.046875
3
[]
no_license
#! /bin/sh # ------------------------------------------------------------- # file: mkgrid.sh # ------------------------------------------------------------- # ------------------------------------------------------------- # Battelle Memorial Institute # Pacific Northwest Laboratory # ------------------------------------...
true
064d7e1b4ce6d5e92d0049880e1bddf2a5d0398e
Shell
mtransitapps/commons
/shared/build.sh
UTF-8
5,886
3.6875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash source commons/commons.sh; echo "================================================================================"; echo "> BUILD ALL..."; echo "--------------------------------------------------------------------------------"; BEFORE_DATE=$(date +%D-%X); BEFORE_DATE_SEC=$(date +%s); CURRENT_PATH=$(pwd); C...
true
ed414e81311b6c56fed2857d2bce3656a18f4bad
Shell
tuian/Hybrid-Darknet-Concept
/hp-installer-active.sh
UTF-8
11,092
2.765625
3
[ "BSD-2-Clause" ]
permissive
#################################################### #### #### #### Ubuntu 14.04LTS Honeypot Install Script #### #### Updated for 14.04 by Zane Witherspoon & #### #### tuna@people.ops-trust.net #### #### #### ##...
true
6019f48102f0d6df4ba2c5f2e47ced047cdaaa17
Shell
stqism/xnu-chroot-x86_64
/var/lib/dpkg/info/binfmt-support.postinst
UTF-8
1,128
3.296875
3
[]
no_license
#! /bin/sh set -e if [ "$1" = configure ]; then update-binfmts --import || true if dpkg --compare-versions "$2" lt 2.0.0; then rm -rf /var/cache/binfmts fi fi # Automatically added by dh_systemd_enable # This will only remove masks created by d-s-h on package removal. deb-systemd-helper unmask binfmt-s...
true
e9ed37c3190018c26fbf28228ee35bc90eb38c3e
Shell
andrewidya/pico
/.openshift/action_hooks/deploy
UTF-8
861
2.546875
3
[]
no_license
#!/bin/bash # This deploy hook gets executed after dependencies are resolved and the # build hook has been run but before the application has been started back # up again. This script gets executed directly, so it could be python, php, # ruby, etc. # GETTING-STARTED: change 'myproject' to your project name: echo "Exe...
true
53ddc60929c97b73ecb3ff2a674cf3418ea1887e
Shell
chendaye/Shell
/advance_shell_programming/mail/basics/mail_distribute_proxy_sh
UTF-8
495
2.59375
3
[]
no_license
#!/bin/bash # 邮件分发代理 # MDA软件负责把消息分发个本地用户 # MDA软件集中将邮件发送给本地用户 # 邮件管理员可以为用户提供额外的功能。比如过滤垃圾邮件,邮件排序等等 # # MDA程序收到消息时必须确保消息发送到正确位置,也就是本地用户邮箱或者用户自定义的其他位置 # 目前Linux上最常用的3种邮箱类型: # /var/spool/mail 或 /var/mail # $HOME/mail # Maildir 样式的邮箱目录
true
da8171739425515a7e2b8cf58feeb32a5c95dae2
Shell
cuthik/submit_cab
/respmcs_TMPL.sh
UTF-8
3,295
3.171875
3
[]
no_license
#!/bin/bash ## ## @file respmcs_TMPL.sh ## ## template FOR CAB ## ## @author cuto <Jakub.Cuth@cern.ch> ## @date 2014-02-16 #PBS -N OUTNAME #PBS -q sam_hi@d0cabsrv2 #PBS -j oe #PBS -k o #PBS -l nodes=1 # for testing the settings DRYRUN="echo " # !!!! uncomment line below to actualy run something !!! DRYRUN= CP="${D...
true
1d0ec98968d86dcf9d285c0bf206dc033e34fdc1
Shell
cliffton/caliper
/capstone/launchOrderer.sh
UTF-8
1,860
3.375
3
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
#!/bin/bash # set -x export CALIPER_FABRIC=$HOME/caliper/packages/caliper-samples/network/fabric-v1.4/ function usage { echo "./launchOrderer.sh ORDERER_ID kafka" } # Check if ORG_NAME passed if [ -z $1 ]; then usage echo "Please provide the ORDERER_ID!!!" exit 0 else ORDERER_ID=$1 fi if [ -z...
true
747a0de4166ffa2c02188f243d88b84819a38ccf
Shell
mickelindahl/bgmodel
/nest/dist/install-nest-2.6.0.sh
UTF-8
2,403
4.15625
4
[]
no_license
#!/bin/sh NEST_VERSION=2.6.0 NEST_FOLDER_NAME=nest-2.6.0 NEST_TAR=nest-$NEST_VERSION.tar.gz echo "" if [ -d "source/$NEST_FOLDER_NAME" ]; then echo "Source files already downloaded" else mkdir -p source echo "Entering source folder" cd source URL="https://github.com/nest/nest-simulator/releas...
true
d737729868c7e4dedd8610e68e9d073a46289520
Shell
AlD/archlinux
/pkgbuilds/bareos/PKGBUILD
UTF-8
10,271
2.96875
3
[]
no_license
# Maintainer: Daniel Albers <daniel@lbe.rs> # bareos-fd.service by Christian Hesse <arch@eworm.de> pkgbase='bareos' pkgname=( "${pkgbase}-common" "${pkgbase}-console" "${pkgbase}-fd" "${pkgbase}-sd" "${pkgbase}-dir" "${pkgbase}-dir-sqlite3" "${pkgbase}-dir-mysql" "${pkgbase}-dir-mariadb" "${pkgbase}-dir-postgresql" ) ...
true
83b79c62ae39abb4c93657cb244f8646aa762814
Shell
urbanski/flow-scripts
/port-recon/port-recon
UTF-8
675
3.3125
3
[]
no_license
#!/bin/bash RA="/usr/local/bin/ra" NETWORKS_FILE="networks.lst" PORTS_FILE="ports.lst" IFILE=$1 NETWORKS="" PORTS="" RACMD="$RA -r $IFILE -n -s dport daddr:64 " for netw in `cat $NETWORKS_FILE`; do if [ "$NETWORKS" != "" ]; then NETWORKS="$NETWORKS or " fi NETWORKS="$NETWORKS dst net $netw" done for port in `c...
true
08faf51239338cee4546d674767ee79351f355ad
Shell
jjwill/environment
/.bash/.functions_git.bash
UTF-8
5,634
3.765625
4
[]
no_license
# git related functions, sourced in ~/.bashrc # Get the common functions loaded . ~/.bash/.bash_functions # Global git branches we don't want to touch, blacklisted. # (not sure if origin is needed actually) export __GIT_YOUR_HANDS_OFF=("HEAD" "staging" "master" "development" "origin" "SEURAT_*") # You can also have ...
true
058c3d904dda2ceacce28e33a03a9a52a98c19a5
Shell
shlomis1/vsa
/src/vscli
UTF-8
279
3.171875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" . $DIR/scripts/common.sh fail_if_not_root base=`basename $0` user="" if [ "$base" == "vscliuser" ]; then user="--user" fi export PYTHONPATH="$DIR" python $DIR/vsa/client/cli/vsacli.pyc $user $*
true
f3527b9dae92e5fb0d429aa9e8028ba58110459e
Shell
boredom101/nix-tip
/nix-tip
UTF-8
2,191
4.25
4
[ "MIT" ]
permissive
#!/usr/bin/env bash RED='\033[1;31m' GREEN='\033[1;32m' NC='\033[0m' type= config= tip= extraFlags= attr=" " colored=false showSyntax() { echo "Usage: $0 --tip <tips.nix> --type <TYPE> --config <config.nix>" echo echo "Options" echo echo " -A, --attr ATTRIBUTE Optional attribute that select...
true
859c838d0b65664c728d6df5129dfe1560e9bfc9
Shell
keonjeo/erlvm
/scripts/functions/erlvm_printers
UTF-8
927
3.328125
3
[]
no_license
#!/usr/bin/env bash erlvm_fatal() { tput sgr0 tput setaf 1 # Red color echo "[ERROR] $1" >&2 tput sgr0 exit 1 } erlvm_error() { tput sgr0 tput setaf 1 # Red color echo "[ERROR] $1" >&2 tput sgr0 } erlvm_warn() { tput sgr0 tput setaf 3 # Yellow color echo "[WARN] $1" >&1 tput sgr0 } erlvm_info(...
true
64addb14b4115bda614611eda10b878b453e83fb
Shell
openstack/openstack-helm
/tools/deployment/common/test-networkpolicy.sh
UTF-8
6,619
3.15625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # 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 or agreed to in writing, so...
true
bcfbaaa694192e3397895a15dcd79fa212649303
Shell
xgi/houdoku-plugins
/.circleci/deploy.sh
UTF-8
1,127
3
3
[ "MIT" ]
permissive
#!/bin/bash # download/authorize google cloud sdk curl -o gcloud-sdk.tar.gz https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-241.0.0-linux-x86_64.tar.gz tar zxvf gcloud-sdk.tar.gz google-cloud-sdk mv google-cloud-sdk gcloud-sdk echo $GCLOUD_SERVICE_KEY | ./gcloud-sdk/bin/gcloud auth activa...
true
865f646e1c5fb45b1fb5fae97f282db8e9ea2fef
Shell
cloux/runit-base
/etc/runit/bootup/00-pseudofs.sh
UTF-8
2,143
3.25
3
[ "LicenseRef-scancode-unknown-license-reference", "WTFPL" ]
permissive
# *-*- Shell Script -*-* # from VOID Linux (https://www.voidlinux.org) printf '=> Mounting pseudo-filesystems ...\n' mountpoint -q /proc || mount -o nosuid,noexec,nodev -t proc proc /proc mountpoint -q /proc/sys/fs/binfmt_misc || ( [ -d /proc/sys/fs/binfmt_misc ] && \ mount binfmt_misc -t binfmt_misc /pr...
true
b730b482b9ffebd4321e100bda4d08162f19a4ce
Shell
jeromeyoon/LFSR
/run_test
UTF-8
411
2.75
3
[]
no_license
#!/bin/sh echo -n "insert dataset name(EX:horizontal,vertical,views):" read dataset echo -n "insert GPU number:" read gpu echo -n "insert GPU factor:" read gpu_factor if [ -z "$gpu" ]||[ -z "$gpu_factor" ] then echo "Please insert GPU number and GPU factor \n" exit else CUDA_VISIBLE_DEVICES=$gpu python main_test.py...
true
49687b91e6888fe4699df2413d0b157c4ff88616
Shell
Vaa3D/vaa3d_tools
/hackathon/PengXie/NeuronStructNavigator/cmake-3.6.2/Utilities/Scripts/update-curl.bash
UTF-8
689
3.046875
3
[ "BSD-3-Clause", "MIT" ]
permissive
#!/usr/bin/env bash set -e set -x shopt -s dotglob readonly name="curl" readonly ownership="Curl Upstream <curl-library@cool.haxx.se>" readonly subtree="Utilities/cmcurl" readonly repo="https://github.com/bagder/curl.git" readonly tag="curl-7_50_1" readonly shortlog=false readonly paths=" CMake/* CMakeLists.txt ...
true
4ce3e47a7b3110cccbfd3a03f215adf8f8b52362
Shell
dmitry-solomadin/skwibl
/bin/config.sh
UTF-8
1,842
2.90625
3
[]
no_license
## dynamic server DYN='app' ## socket server SOC='server' ## coffee executable COFFEE='bin/coffee' ## uglifyjs executable UGLIFYJS='bin/uglifyjs' ## cleancss executable CLEANCSS='bin/cleancss' ## application script name JS_NAME='./assets/js/skwibl' ## application style name CSS_NAME='./assets/css/skwibl' ## soc...
true
8f55b10d231d3ffd56c13aa24383ea142460b9bf
Shell
selvaje/YaleRep
/SRTM/sc09_renameTif.sh
UTF-8
3,140
2.84375
3
[]
no_license
# qsub /lustre/home/client/fas/sbsc/ga254/scripts/SRTM/sc9_renameTif.sh #PBS -S /bin/bash #PBS -q fas_normal #PBS -l walltime=10:00:00 #PBS -l nodes=1:ppn=8 #PBS -V #PBS -o /scratch/fas/sbsc/ga254/stdout #PBS -e /scratch/fas/sbsc/ga254/stderr export INDIR=/lustre/scratch/client/fas/sbsc/ga254/dataproces/SRTM export...
true
f163b1c2abc348bf724fe4c9b3c805b5e6f5ea49
Shell
evanslabSJCRH/Polygenomic-Analysis
/run02.sh
UTF-8
26,378
2.9375
3
[]
no_license
#!/bin/bash # #Runs the drworkflow pipeline. ################################################################################ set -e source config.rc timestamp=`date +%Y%m%d%H%M%S%N` currdate=`date +%Y%m%d_%H%M%S` echo $wd echo $timestamp # Prestage the files datadir="/drworkflow_data" ln -sf ${datadir}/20111103_...
true
050d0629008a51a45abf9be3285240b230948fed
Shell
jjourdai/ft_ssl_md5
/diff_des.bash
UTF-8
4,098
2.984375
3
[]
no_license
#/bin/bash make nb=1000 for i in `seq 0 $nb`; do echo $i cat /dev/urandom | head -c $RANDOM > random.txt pass=$RANDOM K=$(head -c 100 /dev/urandom | md5 -q | head -c 16) ./ft_ssl des -e -a -k $K -i random.txt > test1 openssl des-ecb -e -a -K $K -in random.txt > test2 ./ft_ssl des -d -a -k $K -i test1 > test3...
true
f5ff0b2531d27d8cb4cd066d1f69ac6d0b0e05ed
Shell
togawatakuya/bert_test
/run_test_jp.sh
UTF-8
733
2.6875
3
[]
no_license
BATCH_SIZE=32 TEXT_LENGTH=256 MECAB_DICT_DIR=`mecab-config --dicdir` MECAB_OPT="" if [ -x ${MECAB_DICT_DIR}/mecab-ipadic-neologd ]; then MECAB_OPT="--mecab_dict ${MECAB_DICT_DIR}/mecab-ipadic-neologd" fi # remove comment if require Japanese text normalization. # DO_NORMALIZE='--normalize_text' MODEL_DIR=./models...
true
c5a26c70f2dd5547b18569b6095124a6313d558a
Shell
q4Zar/cardano_token_minting_scripts
/check_balance.sh
UTF-8
595
2.671875
3
[]
no_license
#!/bin/bash set -e ############################################################################### ############################################################################### NAME="minter" SENDER_ADDR=$(cat ${NAME}/${NAME}_base.addr) ############################################################################### #...
true
81ee20fd5ca0abadae1f5b0d73a5842a14a918c7
Shell
miki725/.dotfiles
/.bin/generate_manpath.sh
UTF-8
1,078
3.6875
4
[]
no_license
#!/bin/sh function generate_manpath_for_root { root=$1 [ -d $root ] || return for i in $( find -L /usr/local/opt -name '*man*' -type d \ | grep -vE 'man[0-9]' \ | grep -vi command \ | grep -vi resources \ | grep -v '/system/' \ | grep -v ...
true
007c3512bfc81d1f583f511f942f7c04b3860cf2
Shell
altergui/wbm-configs
/wbm-5691/overlay/etc/wbm/protos/batadv.sh
UTF-8
1,261
3.265625
3
[]
no_license
#!/bin/sh ACTION=$1 LOGICAL_INTERFACE=$2 REAL_INTERFACE=$3 IPV4=$4 IPV6=$5 ipv4_addr () { echo ${IPV4%%/*} } ipv4_netmask () { echo ${IPV4##*/} } clean () { true } prepare () { uci set batman-adv.bat0=mesh uci set batman-adv.bat0.bridge_loop_avoidance=1 uci commit batman-adv uci set network.bat0=i...
true
a345f576e878a3183da42370438d443feebfcb6f
Shell
nd1511/hub
/tensorflow_hub/pip_package/build_pip_package.sh
UTF-8
1,832
3.765625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2018 The TensorFlow Hub Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
true
5122bbe4bb1e1e4ba73f03d06e60361212dc7415
Shell
komokun/xrplkd
/install/install_xrplkd_service.sh
UTF-8
293
2.609375
3
[]
no_license
#!/bin/sh sed -e "s;%WORKING_DIR%;$1;g" -e "s;%YARN%;$2;g" -e "s;%DIR%;$3;g" service.template > xrplkd.service cd $1 sudo $2 build cd $1/install sudo cp xrplkd.service /etc/systemd/system sudo rm xrplkd.service sudo systemctl enable xrplkd.service sudo systemctl start xrplkd.service
true
56e01ec4a3636cb368d81dfb84e09fa55a7cb7de
Shell
onap/aai-graphadmin
/src/main/scripts/extract-events.sh
UTF-8
413
3.515625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash usage(){ echo "Usage $0 input-file output-file event-type"; } if [ "${#}" -lt 3 ]; then usage; exit -1 fi; input_file=$1 output_file=$2 event_type=$3 grep "|${event_type}|" ${input_file} > ${output_file}.1 sed -i -e '/InvokeReturn/s/^.*$//g' ${output_file}.1 sed -i '/^$/d' ${output_file}.1...
true
4c4111b978bf94c0f6a355cc05b5d9b2ee3c9393
Shell
aikomastboom/Prototyper
/bin/coverit
UTF-8
579
3.171875
3
[]
no_license
#!/usr/bin/env bash current_dir=$(cd $(dirname $0) && pwd) base_dir=${current_dir}/.. cd ${base_dir} if [ ! -x ./opt/node-jscoverage/jscoverage ]; then mkdir -p ./opt cd ./opt git clone git://github.com/visionmedia/node-jscoverage.git cd node-jscoverage/ ./configure && make cd ${base_dir} fi ...
true
7db7ffd761b1be5d22e712042686a17c6b8aaafe
Shell
ryo853fj/etrobo
/scripts/console
UTF-8
1,199
3.84375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # console pipe, input from stdin and output to both console and stdout # console # Author: jtFuruhata # Copyright (c) 2020 ETロボコン実行委員会, Released under the MIT license # See LICENSE # # `console` is no longer needed, use `tee`. # see `athrill_runner` # if [ "$1" == "usage" ] || [ "$1" == "--help" ]...
true
daccc15788f2554ff8344914d7322d2c4fd0fe4a
Shell
isabella232/docker-from-scratch
/scripts/build
UTF-8
808
3.25
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -ex cd $(dirname $0)/.. arch="$1" rm -rf build mkdir -p build cp /etc/ssl/certs/ca-certificates.crt ./build/ cp ./assets/base-files_${arch}.tar.gz ./build/base-files.tar.gz tar -xf ./assets/docker-$(echo $DOCKER_VERSION | sed -e 's/^v//')_${arch}.tgz -C ./build --strip-components=1 strip_bin=$(whic...
true
c7c5dab79faeb391b1a3f0b44eccc6d5ce33d31c
Shell
laradevio/Shipyard
/shipyard.sh
UTF-8
6,863
4.375
4
[ "MIT" ]
permissive
#! /bin/bash # This is the main Shipyard entrypoint for using it. The purpose # of this file is to ask the user some questions to properly # configurate Laravel Shipyard for using inside the OS. # Laravel Shipyard Initialization Script # Version 1.0.20170901A printf " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wel...
true
eab5c06c963a73c21030a7ef8c2bb1208ea82ecf
Shell
delkyd/alfheim_linux-PKGBUILDS
/quake-par/PKGBUILD
UTF-8
837
2.875
3
[]
no_license
# Maintainer: Slash <demodevil5[at]yahoo[dot]com> pkgname=quake-par pkgver=0.03.01 pkgrel=2 pkgdesc="Quake PAK archiving utility." url="http://ftp.vim.org/ibiblio/games/quake/" license=('GPL') arch=('i686' 'x86_64') depends=('glibc') source=("http://ftp.vim.org/ibiblio/games/quake/par-${pkgver}.tar.gz") sha256sums=('e...
true
a10ef6b4e53b636ad4e92353921ce849532a96f2
Shell
rafaelameijeiras/PandoraFMS
/pandorafms_community/pandorafms/sources/run_pandora.sh
UTF-8
5,504
3.734375
4
[]
no_license
#!/bin/bash # # Prepares environment and launchs Pandora FMS # # Global vars # PANDORA_CONSOLE=/var/www/html/pandora_console PANDORA_SERVER_CONF=/etc/pandora/pandora_server.conf PANDORA_SERVER_BIN=/usr/bin/pandora_server PANDORA_HA_BIN=/usr/bin/pandora_ha PANDORA_TABLES_MIN=160 # # Check database # function db_check {...
true
e9e67b5bba95ff374c2ec2c7f5491672dcf67cea
Shell
megacoder/howto
/howtos/howto-vim
UTF-8
1,102
3.15625
3
[]
no_license
#!/bin/zsh # This script gets run in the top-level directory and invokes # my "configure" script there; the "-C src" switch makes the # script run in the "src" subdirector. RPMS=( libXt-devel ) NORPM= for RPM in ${RPMS}; do if rpm -q ${RPM} >/dev/null 2>&1; then # OK else NORPM+=" ${RPM}" echo "${RPM} not fo...
true
b860a1fb6daa3d4bc2497833c201363b99551072
Shell
lkochniss/intent-backend
/travis/before-install.sh
UTF-8
201
2.84375
3
[]
no_license
#!/bin/bash -e pushd "$(dirname $0)" > /dev/null cd .. rm composer.lock composer self-update -q if [ -n "GITHUB" ] ; then composer config github-oauth.github.com ${GITHUB}; else exit 1; fi
true
53332033724f6993e25711318932b52c89b8a54d
Shell
CARLA-TEAM/uwa-simulation
/scripts/run-ros.sh
UTF-8
1,295
3
3
[]
no_license
#!/bin/bash # --------------------------------------------------------------------- # SCRIPT TO RUN CARLA WITH ROS # # Troubleshooting: # Could not contact ROS master at http://localhost:XXXX # Run the next command on the terminal: roscore # ----------------------------------------------------------------------- cd ~...
true
21752367e295544ff59551803762caa78235810f
Shell
jianxiamage/Proj_TestResults
/TestResult_Project_ver0.3/GetResultsXls/Make_Result_Ini_Select.sh
UTF-8
2,156
3.8125
4
[]
no_license
#!/bin/bash #set -e #功能: #多线程执行程序,可以设置测试节点的每个测试用例的测试结果(标记:初值->1,成功->0) #最终目的是便于之后为在前端展示测试用例的执行结果而做的结果文件 if [ $# -ne 2 ];then echo "usage: $0 TestType Platform" exit 1 fi TestType="$1" Platform="$2" #---------------------------------------------------------------------------------------- #TestType="OS" #Platform="...
true
d4d151c0bd58f88540a2c8d11d914440b4eb2a83
Shell
webee/rc
/env/pyenvrun.sh
UTF-8
1,165
3.8125
4
[]
no_license
#!/bin/bash #require: virtualenv, virtualenvwrapper #set -x #set -e function set_py_home() { # if already set. if [ "$PY_HOME" != "" ]; then return fi # find from global python profile. if [ -f /etc/profile.d/python.sh ]; then source /etc/profile.d/python.sh if [ "$PY_HOME"...
true
0cababbbf8aaf785443a5c76cd72259902ea6abd
Shell
gvalkov/dotfiles
/zsh/install.sh
UTF-8
153
2.828125
3
[]
no_license
#!/bin/sh set -x cd $(dirname $0) c () { readlink -f $1 ; } ln -snvf `c zshrc` ~/.zshrc ln -snvf `c zshenv` ~/.zshenv ln -snvf `c zfunc` ~/.zfunc
true
5449c5cd07c045bdb24645dba96a27594104538b
Shell
jasonfsmitty/utilities
/scripts/common.sh
UTF-8
4,965
4.21875
4
[]
no_license
#!/bin/bash #--------------------------------------------------------------------- # Options for common functions; can modify directly or use the # appropriate set_*() helper. OPT_COMMON_VERBOSE=${OPT_COMMON_VERBOSE:-false} OPT_COMMON_DRY_RUN=${OPT_COMMON_DRY_RUN:-false} #--------------------------------------------...
true
5ef28e5ec50ef6b08d758ae21e875f63de8fa2e2
Shell
MASILab/N-GSBSS
/scripts/examples/freesurfer/runSmooth_Freesurfer.sh
UTF-8
572
2.96875
3
[]
no_license
#!/bin/bash input=$1 basedir=$2 outdir=$3 lh_tgtSurface=lh_tgtSurface.res.vtk rh_tgtSurface=rh_tgtSurface.res.vtk mkdir $outdir echo $DATE_WITH_TIME # Geodescic distance --- DATE_WITH_TIME=`date "+%Y-%m-%d-%H:%M:%S"` echo "$DATE_WITH_TIME:Starting 2mm smoothing" GeodesicSmoothing -i $lh_tgtSurface -p $based...
true
7d5b55fbfbb2a3d24a7a2ae73cf39ae5207e1a98
Shell
internetwache/Internetwache-CTF-2016
/tasks/web90/code/cleanpdfdir.sh
UTF-8
114
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash DIR="./pdf/" SIZE=$(du -sm $DIR | grep -oP "\d+") if [[ $SIZE -gt 100 ]]; then rm -r "$DIR*.pdf" fi
true
4557fa40196508bc938ca7b4b09ec7fa9f6cc9f9
Shell
ismo-karkkainen/datalackey
/test/error/run.sh
UTF-8
3,122
3.078125
3
[ "LicenseRef-scancode-unknown-license-reference", "UPL-1.0" ]
permissive
#!/bin/sh if [ $# -ne 1 ]; then echo "Usage: $(basename $0) datalackey-executable" exit 100 fi B=$(basename $0 .sh) DL=$1 OUT="${B}_out.txt" EXP="${B}_expected.txt" cat > _script.sh << EOF #!/bin/sh while read L do echo \$L done EOF chmod a+x _script.sh ( echo '["1","run","in","JSON","stdin","program","....
true
e34163c3b68bab690586dfe86ef64ac23e560189
Shell
sikachu/dotfiles
/aliases
UTF-8
5,003
2.8125
3
[ "MIT" ]
permissive
# vim: set filetype=bash: # aliases alias ra="source ~/.aliases" alias ea="mvim ~/.aliases" # rcm alias rcup="rcup -v" # zsh alias ezsh="mvim ~/.zshrc" # General alias agq='ag -Q' e() { if [[ -x "$(command -v mvim)" ]]; then mvim $@ else vim $@ fi } p() { cd "$HOME/code/$1" } _projects() { compadd...
true
fe045540aa2cb57ad85676b52631e800f15d03f0
Shell
ak352/melanomics
/genome/variants2/annotation/mutect_strelka/runAnnovarTestvariantFile.sh
UTF-8
6,608
2.828125
3
[]
no_license
#!/bin/bash ######################################################## # Version 25.03.2014 # - change dbsnp version 137 to 138 # - change cosmic verstion 67 to 68 # - add cosmic version 68 wgs # - add clinVar version 20140211 # - change from ljb2 to ljb23 with new scores # - add cadd scores direct from ANNOVAR (>20, ...
true
715f81e6f10d877b4452716c6164085693250868
Shell
baseboxorg/dotfiles-7
/.bashrc
UTF-8
259
2.625
3
[]
no_license
alias ll='ls -AlF' source ~/.shell_prompt.sh export NVM_DIR=~/.nvm source ~/.nvm/nvm.sh function vim() { if test $# -gt 0; then env vim "$@" elif test -f Session.vim; then env vim -S else env vim -c Obsession fi } HISTCONTROL=ignoreboth
true
2e7ce1700f9a2a143f0cee4adabcea9bf138d5b3
Shell
Indigitous/godtools-web
/.travis/invalidate_cloudfront_cache.sh
UTF-8
1,087
3.5625
4
[]
no_license
############################################################################### ### Resets CloudFront cache with boto/cfadmin utility ### Run: ./this_script ############################################################################### # # Travis specific part - run this script only for production # if [[ $TRAVIS_...
true
7ee29cc2cc4d89bb515fd428d4de5b93af615a5f
Shell
l-korous/hermes-testing
/run.sh
UTF-8
5,182
3.21875
3
[]
no_license
cmake . echo "This test suite will fail if you do not have Hermes, or Valgrind, etc.." echo "CMake generation done." echo "Run memory-leaks tests? (Long) [y/n]" read ans if [ "$ans" = "y" ]; then memory_start_time=`date +%s` echo "Processing memory leaks tests..." cd memory-leaks cd 01-memory-simple echo "Buil...
true
ebfd2ba1d5828140f99d301b40d1fbe5334c7a0b
Shell
AatishLanghee/Embedded_Linux_T2
/stats.sh
UTF-8
1,229
3.625
4
[]
no_license
###################################################################################################################################### # Author: Aatish Langhee (MIS: 121735011) # T2: Program-3: Write a shell script to print RAM usage, disk usage and CPU usage in tabular form. Also, print name of the process that is ...
true
54a7e22494183dcf6dcc1449d225d8ab968271cc
Shell
sorrowxfull/dots
/.local/bin/scripts/cron/cronbat
UTF-8
375
3.171875
3
[ "CC0-1.0" ]
permissive
#!/bin/sh # Notify me with notify-send if my battery is below 25%. if [ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ]; then [ -f '/tmp/cronbat.lock' ] && rm '/tmp/cronbat.lock' elif [ "$(cat /sys/class/power_supply/BAT0/capacity)" -lt 25 ] && [ ! -f '/tmp/cronbat.lock' ]; then touch '/tmp/cronbat.lock'...
true
6aefe6dec764b7ab004bfa1eb4b73f458f08937f
Shell
zhaohe123/system_shell
/rootfs/buildroot/cfg_rootfs.sh
UTF-8
2,474
3.875
4
[]
no_license
#!/bin/bash ############################################################################### # 版 权:米联客 # 技术社区:www.osrc.cn # 功能描述:1. 清除配置文件和编译中间结果 # 2. 重新配置根文件系统 # 3. 编译开发所需要的工具 # 版 本 号:V1.0 ############################################################################### # => Setting The Development...
true
fd64db4744173ca7d13e6d7608a083d88b04aaad
Shell
leandroohf/Public_Liberty_Mutual_Group_Property_Inspection_Prediction
/config/setup.sh
UTF-8
674
2.984375
3
[ "Apache-2.0" ]
permissive
echo "preparing variable senviroments" export PATH=/home/ubuntu/anaconda/bin:${PATH} echo "updatting the system " sudo apt-get update ## && sudo apt-get upgrade -y echo "installing packages " echo "\tinstalling git" sudo apt-get -y install git echo "\tinstalling make" sudo apt-get -y install make echo "\tinstalling ht...
true
539a18d8f49bf4bbdb6ef8b7b3f7017cd90d533f
Shell
jacobke/etrace
/etrace-plugins/etrace-prometheus-pushgateway/script/run.sh
UTF-8
2,301
3.8125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]}) # App Home cd "$SCRIPT_DIR" APP_HOME=${APP_HOME-$(pwd -P)} DAEMON="pushgateway" DESC="ETrace pushgateway" LOG_PATH="$APP_HOME/logs" EXE_FILE="$APP_HOME/bin/pushgateway.sh" LOG_FILE="pushgateway.out" PID=0 TIMEOUT=3 pushgateway_run(){ echo "Starting ${DESC} .......
true
5885e9f607d1831e4e9e4e724e0daefdae42abc6
Shell
yugosever/bash-repo
/fedora-2.sh
UTF-8
203
2.65625
3
[]
no_license
#!/bin/bash echo "This porgram finds vms ip address and after that make ssh connection" fedora_2_ip=`virsh net-dhcp-leases default | grep fedora-2 | awk '{print $5}' | cut -d/ -f1` #ssh vl@$fedora_2_ip
true
64d6e2b37dab6bd727bbaae3505a81f3d83822fe
Shell
NrgXnat/xnat_bash_utils
/src/xnat2loc
UTF-8
8,267
3.71875
4
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # Author: Mikhail Milchenko, mmilchenko@wustl.edu # Copyright (c) 2010-2021, Computational Imaging Lab, School of Medicine, # Washington University in Saint Louis # Redistribution and use in source and binary forms, # with or without modification, are permitted provided # that the following conditions a...
true
45c256fe59132afa834627ce500ce7f95a586399
Shell
facebook/flow
/tests/saved_state_init_recheck/test.sh
UTF-8
2,054
3.0625
3
[ "MIT", "CC-BY-4.0" ]
permissive
#!/bin/bash # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. printf "There should be no errors when the saved state is generated\\n" assert_ok "$FLOW" status assert_ok "$FLOW" save-state --...
true
035eecbe6551763fe52da68071637d4c9a61f5e7
Shell
szovaty/scripts
/ygrive
UTF-8
220
3.015625
3
[]
no_license
#!/bin/bash PATH="/proj/exosite/grive" LOG="/var/log/ygrive.log" EXE="/usr/bin/grive" echo "*** Starting $0 at $PATH on: `/bin/date` ***" >> $LOG cd $PATH test $? -eq 0 && $EXE 2>&1 | /usr/bin/tee -a $LOG sleep 2
true
c557d63d2f84845a235a5dfd32c27ae0d59cb448
Shell
armin-m-garcia/autocomplete
/autocomplete/build.sh
UTF-8
1,129
3.9375
4
[]
no_license
#!/bin/sh ## Is the java version valid is_version_valid() { if [[ "$1" ]]; then version=$("$1" -version 2>&1 | awk -F ' ' '{print $1}') if [[ "$version" < "16" ]]; then echo "The minimum java version required to run the application is '16.x.x'. The available version is '${version}'. Please install and/or upd...
true
7bdb88e2cac03db515912a625e6180031491c2ee
Shell
HarryKodden/JupyterHub-SAML
/saml/start.sh
UTF-8
445
2.703125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -e # Apache gets grumpy about PID files pre-existing rm -f /usr/local/apache2/logs/httpd.pid sed -i 's/ulimit -n [0-9]*/ulimit -n 100/' /usr/sbin/apachectl cd /etc/shibboleth && ln -sf /opt/shibboleth-sp/etc/shibboleth/surfconext.pem . cd /etc/shibboleth && ln -sf /run/sp/sp-* . /etc/init.d/shibd res...
true
2511a3f117403a765341ec27ce3399f3dbee0da2
Shell
galaxyproject/usegalaxy-playbook
/env/common/files/pulsar/mount_cvmfs
UTF-8
1,397
3.671875
4
[ "AFL-3.0" ]
permissive
#!/bin/bash ## ## This file is maintained by Ansible - CHANGES WILL BE OVERWRITTEN ## set -euo pipefail # required vars: # $CVMFS_MOUNT_ROOT : ${UID:="$(id -u)"} : ${CVMFS_BINARY:="cvmfs2"} : ${CVMFS_LOCAL_ROOT:="/run/user/${UID}/cvmfs"} : ${CVMFS_KEYS_DIR:="${HOME}/cvmfs/keys"} : ${CVMFS_LOG_FILE:="$(pwd)/cvmfs.log"...
true
f41859c888db8921ec47cebaffebb9fb4c7b54bd
Shell
jensg-st/gobuilder
/build/builder/build.sh
UTF-8
612
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash repo=$(cat /flux-data/data.in | jq -r '.repo') img=$(cat /flux-data/data.in | jq -r '.image') target=$(cat /flux-data/data.in | jq -r '.target') login=$(cat /flux-data/data.in | jq -r '.login') token=$(cat /flux-data/data.in | jq -r '.token') echo "building $repo" git clone $repo 2>&1 base=$(basename $...
true
7ae15d4aa1d8dbd346eed93d351e808774ab72b8
Shell
llimon/kubeam
/pre-setup.sh
UTF-8
453
2.828125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash ## curl -L -o kubectl.linux https://storage.googleapis.com/kubernetes-release/release/v1.9.0/bin/linux/amd64/kubectl ## ## create self signed cert. We don't want to provide real information on cert signature if [ ! -f server.key -o ! -f server.crt ]; then openssl req -new -newkey rsa:4096 -days...
true
e2e6cbe87f28fb5ba0382bdc4c6b9f507ef18d69
Shell
D0ot/hfcexp
/pred_test_pure.sh
UTF-8
1,642
2.78125
3
[]
no_license
#!/bin/bash SIM_SCALAR=/home/doot/programs/simplescalar/simplesim-3.0 SIM_BPRED=${SIM_SCALAR}/sim-bpred SIM_BPRED_CONFIGS=("-bpred:bimod 2048" "-bpred:2lev 1 1024 8 0" "-bpred taken" "-bpred nottaken") SIM_BPRED_CONFIG_NAMES=( "_bimod" "_2lev" "_taken" "_nottaken" ) OUTPUT_DIR=pred_output mkdir -p ./${OUTPUT_...
true
0827f624084d0c79897035a1e947f761aa650db9
Shell
motoy3d/SmartJ-Server
/Shell/GMO/playerTweets.sh
UTF-8
306
2.640625
3
[]
no_license
#!/bin/bash export JAVA=/usr/bin/java export WEBINF=/usr/tomcat6/webapps/redsmylife/WEB-INF export LIB=$WEBINF/lib CLASSPATH= for name in `ls $LIB/*.jar`; do CLASSPATH="${CLASSPATH}:$name" done export CLASSPATH=$CLASSPATH:$WEBINF/classes $JAVA -cp $CLASSPATH com.urawaredsmylife.PlayerTweetsSaver $1
true
644a9e521a2b45cb87c84596d751a92f48c70ef0
Shell
cscolabear/my-brew-bundle
/link-git.sh
UTF-8
1,518
3.53125
4
[]
no_license
#!/bin/bash red=`tput setaf 1` green=`tput setaf 2` reset=`tput sgr0` echo echo echo "${green}---------------------------${reset}" echo "${green}--- link-git ---${reset}" echo "${green}---------------------------${reset}" echo source ./.env function fun_link() { echo " - 🔍 is target exist? : \`${green}${target...
true
545957c445f155f326f77a54d063b2cc7ce64827
Shell
qengli/neouzabox
/packages/fbi/scripts/view_img
UTF-8
702
3.515625
4
[]
no_license
#!/bin/sh for i in `cat /etc/img_ext`; do if [ -z "$EXTS" ]; then EXTS="$i" else EXTS="$EXTS\|$i" fi done if test "$1" = "-a"; then # display all images in the selected folder DIR=$2 [ -d "$DIR" ] || DIR=${DIR%/[^/]*}/ ls -1 "$DIR" | grep -i "\.\($EXTS\)\$" | sed "s%\(.*\)%$DIR\1%" > /tmp/view_i...
true
d239315a196eac47b203fe19620957e8a7dac772
Shell
oloapinivad/ece3-postproc
/easy2cmor3/scripts/call_qa-dkrz.sh
UTF-8
1,696
3.234375
3
[]
no_license
#!/bin/bash # Easy2cmor tool # by Paolo Davini (May 2019) # Script to call QA-dkrz # info for installation: prepare is installed in ece2cmor3 #conda create -n qa-dkrz -c conda-forge -c h-dh qa-dkrz #qa-dkrz install --up --force CMIP6 set -e #Will validate all years between year1 and year2 of experiment with name ex...
true
8a965e42af0ff92a000f9be0eddde7a29c3e4040
Shell
flatcap/dot-config
/bin/backup/tar-encrypt-split.sh
UTF-8
496
3.28125
3
[]
no_license
#!/bin/bash set -o errexit # set -e set -o nounset # set -u renice --priority 19 --pid $$ > /dev/null ionice --class 3 --pid $$ > /dev/null RCPT="Rich Russon (backup) <rich@flatcap.org>" DIR="${1%/}" SUFFIX=".tar.gpg" NUM_LENGTH=2 CHUNK_SIZE="1G" [ -d "$DIR" ] || exit 1 tar --sort=name -cvf - "$DIR" \ | gpg2 ...
true
ddba3f036e28c16adf5494ce03e0ae5a2c7aaf56
Shell
s-p-k/qdb
/qdb
UTF-8
5,038
4.03125
4
[ "MIT" ]
permissive
#! /bin/bash # ############################ QuickDB 0.1 ############################## # # This script will create a DB name, DB user and DB password. # # Usage: # qdb [-n <database name> ] [-u <database user>] [-p <database password>] # # Notes: # 1. Modify the DB parameters below to avoid being prompted for a # ...
true
8166b3b5d07e8b7a76de273bc4392b392c0e8032
Shell
judgegrubb/voltest
/creduce/showme.sh
UTF-8
14,453
3.8125
4
[]
no_license
#!/bin/bash ## ## Copyright (c) 2013 The University of Utah ## All rights reserved. ## ## This is a predicate script for C-Reduce, for reducing programs that reveal ## "volatile defects" in C compilers. ## ## This script judges that the file named by its argument is interesting if: ## ## + it appears to be a valid, s...
true
8845f4c6d0ac231345cb0749873be9976c3e86e7
Shell
awhitbeck/usercode
/lowMassAnalysis1D/makeDataCards/datacards_TEMPLATE/make_SMCLS.sh
UTF-8
1,365
3.1875
3
[]
no_license
#!/bin/bash if test -d $1; then MASS=$1; else echo "Usage: $0 mass [what ]"; exit 1; fi; cd $MASS MATCH=$2; OPTIONS="-M HybridNew --freq --optimizeSim=1 --singlePoint 1" function run { WHAT=$1; shift NAM=$(echo $1 | sed -e s/comb_// -e s/.root// | tr [a-z] [A-Z]) BSP=${1/.root}; if [[ "$MATCH" == "...
true
74ec6f3b563854b97afa260ba973a195d0c0fbdb
Shell
petronny/aur3-mirror
/winscp4/winscp4
UTF-8
276
3.046875
3
[]
no_license
#!/bin/bash pkg=winscp4 export WINEPREFIX="$HOME/.$pkg/wine" export WINEDLLOVERRIDES="mscoree,mshtml=" if [ ! -d "$HOME"/.$pkg ] ; then mkdir -p "$HOME"/.$pkg || exit 1 ln -s /usr/share/$pkg/$pkg.exe "$HOME"/.$pkg/$pkg.exe || exit 1 fi wine "$HOME"/.$pkg/$pkg.exe "$@"
true
accace90abe7a671c0e5ad35ecbf439ab6b2f09d
Shell
arbitrary-dev/scripts
/powermode-switch
UTF-8
2,421
4.15625
4
[ "WTFPL" ]
permissive
#!/bin/sh TMPDIR=${TMPDIR:-/tmp} CURR=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor` MODES=(`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors`) function _try_mode() { MODE=(`grep -oE "\b[a-z]*$1[a-z]*\b" <<< ${MODES[@]}`) if (( ${#MODE[@]} == 0 )); then echo "No such mode: $1"...
true
ce90b65dd8de42d2f3d78083217b4d7797f75738
Shell
zhujs/codesnippets
/bash.note/autocomplete.bash
UTF-8
1,475
4.125
4
[]
no_license
#!/bin/bash func1() { echo "You are in func1: $@" } func2() { echo "You are in func2: $@" } myFunc1() { echo "You are in myFunc1: $@" } #use: autocomplete "word1 word2 ..." autocomplete() { # we only try to autocomplete the last word so # we keep a record of the rest of the input OTHER_...
true
9643052f95c4aa3865f0ddde30dc62ef00cd1af4
Shell
vh21/fuego
/fuego-ro/toolchains/debian-armel-tools.sh
UTF-8
805
2.890625
3
[ "BSD-3-Clause", "MIT" ]
permissive
# fuego toolchain script # this sets up the environment needed for fuego to use a toolchain # this includes the following variables: # CC, CXX, CPP, CXXCPP, CONFIGURE_FLAGS, AS, LD, ARCH # CROSS_COMPILE, PREFIX, HOST, SDKROOT # CFLAGS and LDFLAGS are optional # # this script is sourced by ${FUEGO_RO}/toolchains/tools.s...
true
371ac8ee2e90a502172e5e2b791892ea56b8970b
Shell
hy57in/test-git-auto-commit
/file/userCommit.sh
UTF-8
407
2.953125
3
[]
no_license
echo "UserCommit and Push" branch="$1" message="$2" git checkout $branch git merge --squash auto-commit git commit -m "$message" git push -u origin master git checkout -b auto-commit-temp git merge --no-edit auto-commit git commit --amend -m "User makes commit and push it to user branch." git push -f git branch -d...
true
0550b2ec60682fa9a95192f3d778e6ede7f2b534
Shell
olgeni/bsdkit
/cloud-init/digitalocean.sh
UTF-8
3,522
2.890625
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh set -e -u -x exec > /var/log/bsdkit-cloud-init.log 2>&1 : "${BSDKIT_BRANCH:=master}" : "${BSDKIT_VERSION:=13.2}" : "${BSDKIT_JAIL_NETWORK:=172.16.1.0/24}" : "${ZFS_SWAP_SIZE:=4G}" export IGNORE_OSVERSION=yes cd /root rm -f /root/.wget-hsts # shellcheck disable=SC2016 chpass -p '$1$Kk8uqtid$UZr4tpkPw638...
true