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
61c7719fd3f162750abbb8deb9cc0e660b78f903
Shell
TsuboiLab/script
/analysis/yuido/yuido_IMPeg.sh
UTF-8
1,924
3.140625
3
[]
no_license
#!/bin/bash ############################################################################ #IMPeg # #”1つのデータ”に対して優位度判定を行うスクリプト #2019/12/11 (T.Sato) ############################################################################ if [ -e *tgz ]; then gunzip -f *gz tar xf **.tar ls | grep -v -E 'tar$' | xargs rm -r t...
true
287fa379d93f39770e2ba71868057b73e68f168c
Shell
ntu-sdi/dataset-labelling-tool
/build.sh
UTF-8
403
2.703125
3
[]
no_license
#!/bin/bash if [[ "$*" == "-clean" ]] then rm -rf ./build rm -rf ./tests/build rm ./tests/cmake_install.cmake rm ./tests/CMakeCache.txt fi if [[ "$*" == "-build" ]] then cmake -B ./build make -C build cmake -B ./tests/build -S ./tests make -C ./tests/build fi if [[ "$*" == "-run" ]] then ./build/Dataset-Labelling-T...
true
9df9c5a6b2820a366ac787c19bd8c9b8a7d83b14
Shell
FLyG33K/v1l03t
/.v1l03t
UTF-8
111
2.625
3
[]
no_license
#!/bin/bash subs=$1 if host $subs &> /dev/null; then echo $subs echo $subs >> v1l03t.txt fi
true
4289ed7750f6e48530ee9b815f05487327284e7c
Shell
chutaicho/bashfiles
/name-to-folder.sh
UTF-8
180
3.1875
3
[]
no_license
#!/bin/bash for i in `find . -name "*.JPG"` do filename=$(basename "$i") # extension="${filename##*.}" newdir="${filename%.*}" mkdir $newdir mv $filename $newdir echo $newdir done
true
04256b97034dec19d2c4975ecb392e63547f888d
Shell
weerd/dotfiles
/configs/moom/import.sh
UTF-8
819
3.046875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # ------------------------------------------------------------------------------ # Moom Settings Import # ------------------------------------------------------------------------------ # https://manytricks.com/support/index.php?act=article&code=view&id=47 # https://manytricks.com/blog/?p=3049 r...
true
e7dfde1ece8654b77f3938ae895990202a95d436
Shell
lynceuslq/Profiling_phages_in_metagenomes
/profiling_human_gut_phages.sh
UTF-8
1,759
3.5
4
[]
no_license
#!/bin/bash BOWTIE2="/PATH/TO/bowtie2" SAMTOOLS="/PATH/TO/samtools" BEDTOOLS="/PATH/TO/bedtools" GPD_index="/PATH/TO/phage_genome_bowrie2_index" inputpath="/PATH/TO/metagenomic_samples" outputdir1="/PATH/TO/ouput" samplelist="/PATH/TO/samplelist.txt" genomelist="/PATH/TO/phage_genome.list" while read sample do echo...
true
e70e765e7117f55150cabee6134586b6c73be2b4
Shell
tlarrieu/dotfiles
/scripts/cont
UTF-8
320
3.34375
3
[]
no_license
#!/bin/sh if [ -z "$1" ]; then source ~/.context.env case $CONTEXT in home) CONTEXT="work" ;; *) CONTEXT="home" ;; esac else CONTEXT="$1" fi notify-send Success "Context set to '$CONTEXT'" echo "CONTEXT=\"$CONTEXT\"" > ~/.context.env echo "context=$CONTEXT" > ~/.task.context
true
22eff7ca80a1547f194d994f6c157ad09ddededd
Shell
edgedb/edgedb-docker
/docker-entrypoint-funcs.sh
UTF-8
45,388
3.9375
4
[]
no_license
#!/usr/bin/env bash declare -A _edbdocker_log_levels=( [trace]=0 [debug]=1 [info]=2 [warning]=3 [error]=4 ) edbdocker_setup_shell() { set -Eeu -o pipefail shopt -s dotglob inherit_errexit nullglob compat"${BASH_COMPAT=42}" : "${EDGEDB_DOCKER_LOG_LEVEL:=${EDGEDB_SERVER_DOCKER_LOG_LEVEL:-info}}" EDG...
true
5b7705e96c8f71b59ef5f176c6b296d9a9c8e315
Shell
YogSottot/useful_scripts
/initial_server_setup/mydumper_cnf_setup.sh
UTF-8
805
3.796875
4
[]
no_license
#!/usr/bin/env bash set -eo pipefail pathToIniFile=/root/.my.cnf ## Parse data from passed content of ini section function getValueFromINI() { local sourceData=$1; local paramName=$2; ## 1. Get value "platform=%OUR_VALUE%" ## 2. Remove illegal characters echo $(echo "$sourceData" | sed -n '/^'$paramName'=\(.*...
true
4733f501a398d54872d5f6c283f09ee36e73fc69
Shell
balrajgoudkalal/Newfolder
/06-Functions.sh
UTF-8
1,058
3.484375
3
[]
no_license
#!/bin/bash ##define a function #function func_name(){} (this is one way) #func_name(){} (thi is second way) SAMPLE() { echo this is a sample function } SAMPLE1(){ echo first argument=$1 } SAMPLE2(){ A=100 local a=100 } SAMPLE3(){ echo hi return ...
true
0d456ee5381c2dc04080a8d21a6d248a9fac35df
Shell
antagon/sexy.sh
/chew.sh
UTF-8
136
3.25
3
[]
no_license
#!/bin/bash if [ $# -lt 1 ]; then echo "Usage: $0 <file>" exit 1 fi for arg in "$@" do echo "$(base64 -w 0 "$arg") " done exit 0
true
b065f9c6b4ae20f372c0840a9f0ff10b3a9ec456
Shell
ShubhamAgrawal-13/Scripting_project
/Snake_game/snake.sh
UTF-8
2,925
3.40625
3
[]
no_license
#!/bin/bash #Snake game len=25 rw=2 cl=2 width=$(($(tput lines)-rw)) height=$(($(tput cols)-cw)) x=$(echo `expr $width / 2`) y=$(echo `expr $height / 2`) game=1 k=0 move=0 for((i=0;i<len;i++)) do ((xx[i]=x)) ((yy[i]=y-i-1)) done ((px=xx[len-1])) ((py=yy[len-1])) arrow_up="^" arrow_down="v" arrow_left="<" arrow_rig...
true
0e65b314ec194ee34a5860152f3c0387ab89e05b
Shell
jomare1188/ubiquitous-potato
/grep_genes.sh
UTF-8
330
3.390625
3
[]
no_license
#!/bin/bash mapfile -t input < input_list let counter=0 let ensayo=1 for list in $(cat list_of_lists) do for genes in $(cat $list) do grep $genes ${input[${counter}]} >> result_${ensayo} echo buscando $genes en ${input[${counter}]} y copiando en result_${ensayo} done let counter++ let ensa...
true
1a89507527586482834e0c32d0950ab74626ccf5
Shell
nosinovacao/kafka-poc
/istio/istio-operator/scripts/install_kustomize.sh
UTF-8
327
2.953125
3
[ "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/usr/bin/env bash version=2.0.3 opsys=$(uname -s | awk '{print tolower($0)}') # download the release curl -O -L "https://github.com/kubernetes-sigs/kustomize/releases/download/v${version}/kustomize_${version}_${opsys}_amd64" # move to bin mkdir -p bin mv "kustomize_*_${opsys}_amd64" bin/kustomize chmod u+x bin/kus...
true
25917f701948126e720a85357cd509c9aa02670b
Shell
jvinet/dotfiles
/bin/watch_fan
UTF-8
296
3.578125
4
[]
no_license
#!/bin/bash # # Keep an eye on the CPU fan speed and alert me if it exceeds a # nominal threshold. # THRESH=3500 while true; do fanrpm=`exec sensors | grep 'RPM' | awk '{print $3}'` if [ "$fanrpm" -gt $THRESH ]; then notify-send "CPU fan speed is currently $fanrpm RPM" fi sleep 120 done
true
6860e6f0d0cf9e93ab326149dbf42c7a14c2c0df
Shell
cjgd/scripts
/file/dir-diff
UTF-8
1,325
3.953125
4
[]
no_license
#! /bin/sh # Carlos Duarte, 021229/030825 # usage: dir-diff dir1 dir2 SEDCMD="" while :; do case $1 in -e) SEDCMD="$SEDCMD;$2"; shift 2; continue ;; -*) echo "$1: unknown flag, usage: dir-diff [-e sedcmds] dir1 dir2"; exit ;; *) break ;; esac done SEDCMD="$(echo "$SEDCMD" | sed 's/^;*//; s/;*$//')" #echo "$SED...
true
6b1c4ad10ffd13755fd896e0c29ca0cdbee91051
Shell
cnswift/cnswift.github.io
/img/shan/switch.sh
UTF-8
77
2.5625
3
[ "MIT" ]
permissive
#!/bin/bash for file in *.JPG; do mv $file `basename $file .JPG`.jpg; done
true
764a10ee9c5cd3cfa4d3c35973d653cf68b289ca
Shell
SidoShiro/SRAP_Kaldi_NLP
/fr_receipe/local/download_data.sh
UTF-8
341
2.53125
3
[]
no_license
#!/bin/bash # Copyright 2014 Nickolay V. Shmyrev # 2014 Brno University of Technology (Author: Karel Vesely) # 2016 John Hopkins University (author: Daniel Povey) # Apache 2.0 mkdir -p db cd db ### Note: the rest of this script is executed from the directory 'db'. # DECODA database: # del...
true
2464b191f1c45ee716535184cd437f52fa7b52f6
Shell
Dream-Team-of-Sab/projet-coloc
/scripts/stop_app.sh
UTF-8
151
2.671875
3
[]
no_license
#!/bin/bash cd /src/api-flat isExistApp="pgrep docker" if [[ -n $isExistApp ]]; then docker stop $(docker ps -a -q) docker rm $(docker ps -a -q) fi
true
6b2fa13620520771bbb93327063e2a35d095da5a
Shell
JustinAGriffiths/InsightDigitalWallet
/run.sh
UTF-8
554
2.90625
3
[]
no_license
#!/bin/bash if [ `head -c4 paymo_input/batch_payment.txt` == "time" ]; then echo "doing simple test" echo "usage is" python src/antifraud.py -h python src/antifraud.py -i paymo_input/batch_payment.txt -s paymo_input/stream_payment.txt exit fi if [ ! -f paymo_input/batch_payment.csv ]; then `ca...
true
2074694146e7302147a9e0bcf290c0b0517ab830
Shell
holland11/boat_datasatore_csc462_project
/start.sh
UTF-8
4,343
2.859375
3
[]
no_license
# MongoDB # script to start a sharded environment on localhost # https://premaseem.wordpress.com/2016/02/14/mongodb-script-to-run-sharding-with-replica-set-on-local-machine/ # clean everything up echo "killing mongod and mongos" killall mongod killall mongos echo "removing data files" rm -rf /data/config rm -rf /data/...
true
5271061532a7ed4d63dca7c2324e381532ec19e8
Shell
caofangkun/apache-storm-java
/storm-dist/bin/deploy_to_tomcat.sh
UTF-8
427
3.6875
4
[]
no_license
#!/usr/bin/env bash bin=`dirname "$0"` bin=`cd "$bin"; pwd` function print_usage { echo "Deploy Storm UI War To Tomcat" echo "Uage: " echo " ./deploy_to_tomcat.sh" } if [ -n "${STORM_HOME}" ]; then RUNNER="${STORM_HOME}" else if [ `command -v storm` ]; then RUNNER="storm" else ...
true
0896fcc0af38c1ffd8881c8025709283d68631fb
Shell
mayadata-io/openebs-enterprise
/openebs-ee/tag-images/tag-ee.sh
UTF-8
1,338
3.46875
3
[]
no_license
#!/bin/sh # For the repos that do not have enterprises builds # get the community image and push them to # enterprise container image registry set -x sudo docker login -u "${DNAME}" -p "${DPASS}"; usage() { echo "Usage: $0 <community version> [<rc-tag>]" echo "Example: To tag 1.10.0-ee from 1.10.0, use: $0 1.10....
true
486cc68b1ac3fae8a3a1f78bdcf0496d4395b1a2
Shell
markcunninghamgit/quick-ssl
/first.sh
UTF-8
1,209
3.921875
4
[]
no_license
#!/bin/bash opensslbin=$(which openssl) if [ -z "$opensslbin" ] ; then echo Error, openssl is not found exit 1 fi function genrsa() { if [ -z "$1" ] ;then read -p "Key Size [2048]: " keysize if [ -z "$keysize" ] ; then keysize=2048 fi else keysize=$1 fi echo "key size $keysize selected" while [...
true
2e04590388db93a10261db1ad1e4fe0e5e269624
Shell
wangguitao/intelligent-protector
/bin/shell/hanarecover.sh
UTF-8
2,938
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh ################################################################################# # Copyright @ Huawei Technologies Co., Ltd. 2017-2018. All rights reserved. ################################################################################# set +x AGENT_ROOT_PATH=$1 PID=$2 . "${AGENT_ROOT_PATH}/bin/agent_fu...
true
721e6d52305677d8ce3fbf00ce03c0d377e07810
Shell
batmicho/myScripts
/mySortedCheck.sh
UTF-8
473
2.921875
3
[]
no_license
#!/bin/bash echo '--------------------- Sorted Check by Michkata -------------------' > sortedCheck.txt VARIABLES=('error ips' 'error hostname' 'error os' 'error name' 'error diff ips' 'error vps is' 'error vps status' 'error plan' 'vpses no longer exists' 'vps is not') for (( i= 0; i < ${#VARIABLES[@]}; i++)) do ...
true
c8ca86ae67d3c228eba14310825559274174738d
Shell
interactar/nodejs-vagrant
/sh/mongodb.sh
UTF-8
448
2.796875
3
[ "MIT" ]
permissive
#!/bin/bash # Update apt-get to get 10gen stable packages apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/10gen.list apt-get update # Install specific stable version apt-get install -y mongodb-10gen...
true
162b10fd71c29b7e1e96ea52e03186f6a79c67aa
Shell
tqvarnst/idc-quarkus-labs
/src/main/scripts/run-lab2.sh
UTF-8
3,977
4
4
[]
no_license
#!/bin/bash set -e script_dir=$(dirname $0) ############ ## Settings ############ container_runtime=podman container_network_name=host container_stats_extra_settings="--no-reset" container_db_name=postgresql container_spring_name=spring-boot container_spring_port=8080 container_spring_image=spring/todo contain...
true
adacdb61880ba8a1b6c6dfbf79d480365e08222e
Shell
Estella/vyatta-quicktun
/vyatta-quicktun/opt/vyatta/sbin/vyatta-generate-quicktun
UTF-8
770
3.359375
3
[]
no_license
#!/bin/sh cli-shell-api inSession if [ $? -ne 0 ]; then echo "Unable to set up API session to read back config" exit -1 fi if cli-shell-api exists interfaces quicktun $1 local public-key then exit fi if cli-shell-api exists interfaces quicktun $1 local private-key then exit fi PROTOCOL=`cli-shell-api returnValu...
true
a78b9b7e5ca50ed9a23187668ad8ee03c9579706
Shell
toejamhoney/voodo
/doc/voodo_gw_configs 2/bin/echo_test.sh
UTF-8
270
3.265625
3
[]
no_license
if [ "$#" -ne 1 ]; then echo Incorrect input else echo Input: $1 fi echo $HOME echo $HOME"/bin" if [ -d $HOME"/bin" ]; then echo It\'s a directory fi if [ -d $HOME"/bin/echo_test.sh" ]; then echo It\'s a directory else echo Who knows what that is fi
true
c50496ce10549cfcbf549b2768da1569830fad8b
Shell
floquet/builds
/SpWx/scripts-shell/SpWx-build-magfield.sh
UTF-8
3,377
2.96875
3
[]
no_license
#! /usr/bin/env bash printf "%s\n" "$(date), $(tput bold)${BASH_SOURCE[0]}$(tput sgr0)" # Wed Feb 16 10:26:35 MST 2022 # source /repos/github/builds/SpWx/scripts-shell/SpWx-build-magfield.sh 2>&1 | tee -a ${HOME}/SpWx-build-magfield-dialog.txt source ${repo_build}/scripts-spack/shared/common-header.sh export buildSe...
true
73b3893497b120a02d0542bdad401459611095bc
Shell
ak352/melanomics
/genome/lumpy/coverages/run_samtools.sh
UTF-8
262
3.109375
3
[]
no_license
#!/bin/bash --login module load SAMtools status() { d=`date` echo [$d] $1 } out_status() { d=`date` echo [$d] Output written to $1 wc -l $1 } status "Extracting paired-end reads from $1..." samtools view -b -f 0x0001 $1 > $2 out_status $2
true
c9126dcdaaaa52d1ffb9c38ca348529eb2091895
Shell
gokcedilek/BCGSC-BTL
/gtimeparse.sh
UTF-8
1,729
3.875
4
[]
no_license
#!/bin/bash IFS=$'\n' t=$(printf '\t') dir=$1 #this is the data directory that holds the output files key=$2 #this is the key identifier of the dataset (ie. f1chr2R or f1chr4) #this script takes the output of a "gtime" command -- extracts the step name(need to be fixed), the process time in either hh:mm:ss or mm:ss (ha...
true
c3bc30721e8ae878f61979a41ccb7a8674e29628
Shell
guidola/debian-custom
/CommonScripts/install_zsh.sh
UTF-8
2,238
3.640625
4
[ "MIT" ]
permissive
################################################################ # File: install_zsh.sh # Author: Albert Lloveras Carbonell (albertlloveras@gmail.com), # Roger Fernandez Guri (rfguri@gmail.com). # Date: 08/01/2015 # Description: Script that installs Oh My Zsh terminal and makes # it the default terminal for the current...
true
83906db9ec6c8d14aec1ca6f7081a6da989f5481
Shell
openSUSE/osc-plugin-collab
/server/openSUSE-setup/osc-collab-runner
UTF-8
482
2.65625
3
[]
no_license
#!/bin/sh LIBEXEC=/usr/lib/osc-collab-server # self-heal if runaway task detected: none can run longer than a day find /var/lib/osc-collab/.cache -name running -mtime +1 -delete -print # Find out what the latest gnome-versions are ${LIBEXEC}/run-gnome-versions # Merge gnome-versions and find other upstream versions...
true
fc3372d89003940eb9d13347a8ae598a0ecc360a
Shell
kevinisaac/server-scripts
/scripts/user_omf_fishmarks.sh
UTF-8
1,042
3.734375
4
[]
no_license
#!/bin/bash SERVER_IP=`ip route get 1 | awk '{print $NF;exit}'` USERNAME=`whoami` DEFAULT_OMFTHEME='bobthefish' read -p "Enter the omf theme you want to use for $USERNAME ($DEFAULT_OMFTHEME): " OMFTHEME OMFTHEME=${OMFTHEME:-$DEFAULT_OMFTHEME} cd ~ echo "Cloning kevinisaac/server-scripts" git clone https://github.com/...
true
b1227984a52a78c8b32708228b6ea01f2a02f97b
Shell
3pillarlabs/hailstorm-site
/setup/create_vagrant_user.sh
UTF-8
156
2.71875
3
[]
no_license
getent passwd vagrant >/dev/null 2>&1 if [ $? -ne 0 ]; then useradd -d /home/vagrant -G adm,sudo -m -s /bin/bash vagrant fi chown -R vagrant: /vagrant/*
true
5dcf28d8d34956e1a2c227a4dc17a090196da6c1
Shell
sitnikovalex/doorbell-customize
/SDcard/MONITORING/send_pic_telegram
UTF-8
1,007
3.640625
4
[ "MIT" ]
permissive
#!/bin/sh # Sends a message to a Telegram bot with an attached image. # Alarm with taking snapshot should be enabled in the doorbell # Today's date - such dir should be created for alarm pics DIR=`date +%Y-%m-%d` # Alarm picture storage PTH="/mnt/disc1/npc/push/alarm" # Wait until snapshot is taken #/mnt/disc1/busy...
true
e8b1a6e94f477bd12e21bcccc931d8cb945f2ce5
Shell
trafodion/infra
/modules/traf/files/dashboard/purgeDashboardDB.sh
UTF-8
1,632
3.171875
3
[]
no_license
#!/bin/bash # @@@ START COPYRIGHT @@@ # # (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P. # # 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/l...
true
561d40db56f73d8d08b147060736917a62b67863
Shell
jeffchannell/.dotfiles
/bin/keep_p.sh
UTF-8
6,657
3.859375
4
[ "MIT" ]
permissive
#!/bin/bash #-------constants----------# #this vars are for the options_checker() arg_1=$1 arg_2=$2 ammount_args=$# total=1 csv_args=$@ #file to be tested test_file=.keep #test_file=${test_file_1// /"\ "} #for recursive_mode() main_dict=`pwd` dicts_array=() #-------constants----------# usage() { cat << EOF usage #...
true
7cafbf716306b93fdf0d180da8c24717e1943eb8
Shell
jmn8718/crawler_python
/crawl.sh
UTF-8
312
3.09375
3
[]
no_license
#!/bin/bash if [ -d "logs" ]; then echo 'Folder "logs" exists' else mkdir logs fi #python crawler.py http://www.bbvaapimarket.com/ python main.py PRO #FILE=$(ls -r data | head -1) #if [ -f "data/$FILE" ]; then # echo 'file '$FILE' exist' #python template.py $FILE #else # echo 'No file to process' #fi
true
72cc84be432fde1bbe992975fb0b1289b4ae0cf0
Shell
M-McCallum/dotfiles
/bin/scr
UTF-8
782
2.875
3
[ "Unlicense" ]
permissive
#!/usr/bin/env bash scr_path=~/pics/scrots n=6; output=$(tr -cd '[:alnum:]' < /dev/urandom | head -c$n) if [ "$1" == "" ]; then import -window root "$scr_path/$output.png" notify-send 'screenshot taken!' elif [ "$1" == "-w" ]; then import -window "$(xdotool getwindowfocus)" "$scr_path/$output.png" convert "$scr_p...
true
60cddf8000de599a7a5085ac3b4b09051689eb0d
Shell
ikeyasu/roboschool_chainerrl
/build_docker.sh
UTF-8
784
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash set -eu if [[ ! -f docker_repository_name ]]; then echo "Please \`cp docker_repository_name.example docker_repository_name\` and edit it." echo "You need to prepare two repositories named 'sagemaker-rl-chainer' and" echo "'rovboschool_chainerrl' in your ECR. Please create in the console site." echo "In...
true
6a2c61454ed74d318a377cf8555830f7576835c3
Shell
HansZimmer5000/HelpTools
/setupAndUpdate/bash_profile_additions.sh
UTF-8
1,379
3.84375
4
[]
no_license
#!/bin/bash # In use on MacOS # User specific aliases and functionsexport BASH_SILENCE_DEPRECATION_WARNING=1 ## env vars alias docker=podman alias clr="printf '\33c\e[3J'" alias soffice=/Applications/LibreOffice.app/Contents/MacOS/soffice export BASH_SILENCE_DEPRECATION_WARNING=1 ## PS STARTCOLOR='\e[0;32m' ENDCOLOR...
true
5581cefcc7b2ab7d9473a77153596bb3d79013aa
Shell
Edragon/RDA-RDA5856
/IoT-RDA5836_3.3/env/utils/depgen.sh
UTF-8
280
2.890625
3
[]
no_license
#!/bin/bash # modify the windows path to linux path in depends file echo $2 | sed 's/\//\\\//g' > deppath DEPPATH=`cat deppath` rm -rf deppath #echo $DEPPATH #echo cat $1 sed 's/\\/\//g' sed 's/'$3'/'$2/$3'/g' cat $1 | sed 's/\\/\//g' | sed 's/^'$3'/'$DEPPATH'\/'$3'/g' > $1
true
550ea2dafce7ff82b1eda875600519eaa6fd01b7
Shell
tanchuanxin/cs3245_homework_1
/CS3245-hw1-check.sh
UTF-8
1,730
3.578125
4
[ "MIT" ]
permissive
# Author: Do Ngoc Duc and Sashankh Chengavalli Kumar BUILD_FILE="build_test_LM.py" README="README.txt" REQUIRED_FILES=2 echo -e "Initialising CS3245 script..." echo -e "Setting up..." mkdir evaluation submittedFiles=0 echo -e "Set up completed!" echo -e "" echo -n "Enter zip file (A0123456X.zip) > " read zipfile ech...
true
1a012e7fdb13f07bddf251d57d6ca1f8d6f6aeb5
Shell
eellak/greek-commiters
/get_repo_info.sh
UTF-8
2,333
3.859375
4
[]
no_license
#!/bin/bash #### Get users contributions in his own repos and joined organisations while read user do if (( ${limit} >= 3 )) then sum=0 ### Get more info about each users repo and save it to file if ! [[ -f "user/contr/${user}.json" ]] then for repo in $(sed -n 's/.*"full_name": "\(.*\)",/\1/p' ...
true
5767866e4f917790ea78af9c584414ed6098f936
Shell
russelltsherman/k8s-up-and-running
/vagrant/role/worker/certs_copy.sh
UTF-8
815
2.921875
3
[]
no_license
#!/usr/bin/env bash apt-get install -qq -y sshpass CERT_HOST="k8s-ca" KCFG_HOST="k8s-m1" SCP="scp -o StrictHostKeyChecking=no" echo "" echo "Copy Certificates from CA server:" echo "#########################################################" mkdir -p ${PKI_DIR} sshpass -p "${ROOTPASSWORD}" $SCP $CERT_HOST:${PKI_DIR...
true
214155035be1ca6b0501e421b9effb926fbd5e6f
Shell
stephen-hill/munin-redis
/redis_memory_
UTF-8
291
2.828125
3
[ "MIT" ]
permissive
#!/bin/bash case $1 in config) cat <<'EOM' graph_args --base 1024 -l 0 graph_title Redis Memory graph_vlabel memory graph_category redis memory.label memory memory.draw AREA EOM exit 0;; esac redis-cli info | grep 'used_memory:' | awk -F':' '{ print "memory.value " $2 }'
true
820529d3c6f2e597cc49de5613d36570266518b1
Shell
aoliver44/Spare-Tools
/Add-MIDAS-Taxonomy/add_midas_taxonomy.sh
UTF-8
2,827
3.3125
3
[]
no_license
#!/bin/bash # What you NEED (my script will attempt to download from internet): ##### A count_reads.txt file from MIDAS output ##### the genome_info.txt from MIDAS db ##### the genome_taxonomy.txt from MIDAS db # NOTE: this runs ~20 seconds faster if you use ag instead of grep STARTTIME=$(date +%s) echo " #########...
true
b8ebc244a918216910864981766d86398f1b4646
Shell
mingkaic/tenncor
/scripts/tests.sh
UTF-8
2,752
3.453125
3
[ "MIT", "BSL-1.0" ]
permissive
#!/usr/bin/env bash THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"; COV_DIR="$THIS_DIR"; CONTEXT=$(cd "$1" && pwd); if (( $# > 1 )); then MODE="$2"; else MODE="all"; fi if (( $# > 2 )); then COVMODE="$3"; else COVMODE="all"; fi COVERAGE_CTX="$CONTEXT/tmp/tenncor_coverage"; CONVERSION_CSV="$CONTEX...
true
3a18055a6b390603975f393b43da3d1f65e3f6ff
Shell
maxenergy/CPP_2020520
/caffe_cambricon/src/caffe/test/test_all_op_offline.sh
UTF-8
1,559
3.4375
3
[ "LicenseRef-scancode-generic-cla", "BSD-2-Clause", "BSD-3-Clause", "LicenseRef-scancode-public-domain" ]
permissive
# !/bin/bash rm output_data_subnet* &> /dev/null function getdir() { for element in `ls $1` do name="${element%.*}" echo "testing "$name" ......" model="prototxts/$element" weights="$name.caffemodel" if [[ $name == "roi_align" ]]; then ./test_roi_align_off.sh $model $weights &>> test_a...
true
982a03d6cbdfbcfbb7c8cc20c4c96bf3b59b9a2b
Shell
core-c/LEDE_17.01.4.FPU_EMULATION
/SETUP/files/etc/init.d/create-spi-gpio
UTF-8
282
2.796875
3
[]
no_license
#!/bin/sh /etc/rc.common # enables the correct bitbanged spi device START=60 start() { . /lib/ar71xx.sh case $(ar71xx_board_name) in arduino-yun) insmod spi-gpio-custom bus0=1,11,27,8,0,125000 ;; yun-shield) insmod spi-gpio-custom bus0=1,19,20,21,0,125000 ;; esac }
true
a60065a7bc1bff3f0189cd08a1faa5a43559bf61
Shell
Karimi-M/scRNA-Dimensionality-Reduction
/scripts/sivm_dinfo_reshape.sh
UTF-8
306
2.828125
3
[]
no_license
#!/bin/sh file="sivm_dinfo.csv" header=$(head -n1 $file) IFS=$'\n' echo $(echo $header|cut -d',' -f1-10),method,score for line in $(tail -n +2 $file); do for i in $(seq 11 43); do echo $(echo $line|cut -d',' -f1-10),$(echo $header|cut -d',' -f $i),$(echo $line|cut -d',' -f $i) done done
true
c381fdd8bd9b25b316b2d41c691d42922ce6b510
Shell
dxw/session-handler-redis
/script/test
UTF-8
536
3.078125
3
[]
no_license
#!/bin/sh # script/test: Run the test suite for the package set -e cd "$(dirname "$0")/.." if [ -n "$DEBUG" ]; then set -x fi echo "==> Updating..." script/update echo "==> Running linter..." vendor/bin/php-cs-fixer fix --dry-run -v --diff echo "==> Running static code analysis..." vendor/bin/psalm echo "==> ...
true
7468cee9feb04e907af9325892009cd39ec71c23
Shell
abhirupray14/Shell_Programs
/greatest.sh
UTF-8
439
3.515625
4
[]
no_license
#!/bin/bash echo "enter first number" read first echo "enter second number" read sec echo "enter third number" read third if [ $first -gt $sec ] ; then if [ $first -gt $third ] ; then echo -e " $first is greatest number " else echo -e " $third is greatest number " fi else if [ $sec -gt $thir...
true
61977a3ee4831cb4082960c2e65c4f10b7a2db9b
Shell
niloufar/xmingw32
/local/src/packaging/zstd-1.5.2.sh
UTF-8
3,590
3.515625
4
[]
no_license
#!/bin/bash # vim: tabstop=4 fileformat=unix fileencoding=utf-8 filetype=sh # license: Apache v2.0 if [ "" = "${IN_PACKAGE_SCRIPT}" ] then echo "FAIL: \${XMINGW}/package から実行してください。" exit 1 fi # ARCHSUFFIX は package が設定している。 # XLIBRARY_SOURCES は xmingw のための環境変数。 env.sh で設定している。 init_var() { #XLIBRARY_SET="set li...
true
733d85cad562df236ae64e5c42d6aeb9c065f901
Shell
marco-c/gecko-dev-wordified
/third_party/libwebrtc/build/install-build-deps.sh
UTF-8
23,077
3.078125
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
# ! / bin / bash - e # Copyright ( c ) 2012 The Chromium Authors . All rights reserved . # Use of this source code is governed by a BSD - style license that can be # found in the LICENSE file . # Script to install everything needed to build chromium ( well ideally anyway ) # See https : / / chromium . googlesource . co...
true
0aa0847bd1a2a7871779d6fcc202dfef433ae15f
Shell
ACMCMC/SOII
/foro/foro_solucion_peterson/ejecutar_pruebas.sh
UTF-8
257
2.9375
3
[]
no_license
min=10 max=5000 incremento=10 echo 'M,T,errores' > estadisticas.txt make for (( i=$min; i<=$max; i+=$incremento )); do suma=0 for (( j=0; j<=$i; j++ )); do suma=$(( $suma + $j )) done echo "Probando $i" ./sumas_hilos.out $i 2 $suma >> estadisticas.txt done
true
44a9cccaa2082237962528b06e6691da01f10326
Shell
moka-guys/workstation_housekeeping
/ngrok_start.sh
UTF-8
2,164
4.28125
4
[]
no_license
#!/bin/bash # ngrok_start.sh - A script to allow SSH access to the system by running ngrok as a background process # Prints SSH details if ngrok is already running. # Note: The ngrok process can be closed at anytime with `kill $(pidof ngrok)` # Get the process ID of ngrok if it is already running on the system EXI...
true
bfd91297fc00f258eee040c5d180b66151ad96ea
Shell
StarkLabUCI/Woofusion
/get_tensor_metrics.sh
UTF-8
1,770
3.171875
3
[]
no_license
#! /bin/bash #$ -S /bin/bash -V #$ -pe openmp 4 #$ -l arch=linux-x64 #$ -j y if [ ! -n "$NSLOTS" ]; then NSLOTS=4 fi # Log some useful stuff into that log file echo Started at `date` echo Running on $subject in `pwd` echo Running on $HOSTNAME export OMP_NUM_THREADS=$NSLOTS config=$1 sub=$2 ses=$3 . $config ...
true
78396611fa5b676bd7bdf2fc73a149b2817e253c
Shell
fawnshao/UTHealthMut2Loop
/Cosmic_codes/pMUT_EXPR_in_TAD.sh
UTF-8
5,952
3.34375
3
[]
no_license
#!/bin/sh bindir=/home1/04935/shaojf/myTools/UTHealthMut2Loop module load Rstats # all input files should be 6-column sorted bed files ### # the 4th column of mutation is named as: SampleName~PrimarySite~PrimaryHistology # the TAD file is 3-column bed files # default parameters #input mutationBED=CosmicNCV.WGSv79.large...
true
5178c1b7c97f9631bb3f35f3154a38dd734196dc
Shell
hfxunlp/understanding-mbr
/scripts/tatoeba/tar_lengths_counts_extract.sh
UTF-8
894
2.890625
3
[ "MIT" ]
permissive
#! /bin/bash base=/net/cephfs/scratch/mathmu/map-volatility lengths=$base/lengths counts=$base/counts extracts=$base/extracts summaries=$base/summaries summaries_sub=$summaries/tatoeba mkdir -p $summaries_sub if [[ -d $lengths ]]; then (cd $base && tar -czf $summaries_sub/lengths.tar.gz lengths) # upload ...
true
5d87e71476a504bcdf17a9a7fcda511eaefcc334
Shell
campbe13/ScriptsSamples241
/08-functions/func3a.sh
UTF-8
430
3.203125
3
[ "MIT" ]
permissive
#!/bin/bash # pmc # 2016-02-29 # functions try out # special args # all func args $# # all vars in bash are global in scope # unless explicitly declared as local # inside a function test() { echo $FUNCNAME local count=0 for arg in $* do echo arg $arg ((count++)) done return 5 } test echo return code $? echo ...
true
8e47695508aead212c345eea16bdbf1bb81db042
Shell
uonick/laravel-vm
/scripts/post-nginx.sh
UTF-8
1,989
2.828125
3
[ "MIT" ]
permissive
echo -e "\n--- POST-NGINX ---\n" sudo rm -rf /etc/nginx/sites-available/default sudo rm -rf /etc/nginx/sites-enabled/default cd ~ echo 'server { listen 80 default_server; charset utf-8; index index.php index.html index.htm; set $basepath "/vagrant/www"; set $domain $host; # check...
true
c5eaffcf3cf00fc42b79f426787b568de3e144d1
Shell
jcihain/chenty
/lujs/.prent/command/lufax.d/check.d/02releaseDocCheck.sh
UTF-8
1,428
3.59375
4
[]
no_license
#!/bin/sh releaseDocPwd=release dbRepoPwd=".." dbSql=$(sed -n '/\[DB1/,/\[/{/DB/d;/#/d;/^$/d;/.*/p}' release/$versionNo.txt| grep -v 'bettle=') hasError=0 if [ -n "$dbSql" ]; then for sql in $dbSql; do if [ ! "${sql:0:1}" == "/" ]; then sql="/$sql" fi if [ ! "${sql:0:3}" == "/db" ]; then sql="/db$sql" ...
true
5e252716297f88cae7d37a08e2120210c772d6bd
Shell
avantgardnerio/droidcat
/ML/samplelists/getmd5.sh
UTF-8
100
2.75
3
[]
no_license
#!/bin/bash > md5.$1 cat $1 | while read apk; do md5sum $2/$apk | awk '{print $1}' >> md5.$1; done
true
1173bb8fe1966b4386c707d2e06a0eb7e46b1143
Shell
motoedy/a320_src
/openbor/environ.sh
UTF-8
12,876
3.125
3
[]
no_license
# # OpenBOR - http://www.LavaLit.com # ----------------------------------------------------------------------- # Licensed under the BSD license, see LICENSE in OpenBOR root for details. # # Copyright (c) 2004 - 2009 OpenBOR Team # #!/bin/bash # Environments for Specific HOST_PLATFORMs # environ.sh by SX (SumolX@gmail....
true
7e89a5d715112e2d84c69ce53dbefcb681ed6e7d
Shell
softecspa/puppet-softecscripts
/files/muscolo.softecspa.it/bin/backup-www
UTF-8
4,041
3.390625
3
[]
no_license
#!/bin/bash # Questo valore e' molto importante, # permette di identificare files/directory con caratteri accentati export LC_ALL=it_IT.utf8 TODAY=$(date +'%Y%m%d') SOURCEPATH="/mnt" LOCKFILE="/var/lock/backup-www.lock" trap "rm -f ${LOCKFILE}" SIGINT SIGQUIT SIGTERM MOUNTPOINT="/mnt/disco-usb-backup-www" DESTPATH=...
true
491f4e5dae0e341ee938daad737a6af105144845
Shell
artiomn/snippets
/picture_resizer.sh
UTF-8
545
3.109375
3
[]
no_license
#!/bin/sh # ============================================================================== # # Picturename # # Description: Resize pictures # # # @author Artiom N. <artiomsoft@yandex.ru> # @date Сбт 26 Окт 2013 21:04:00 # # ============================================================================== #!/bin/sh count...
true
9af660e4787e90e6d1f9697f09b146e3e5f6277a
Shell
chanedwin/mlmutation
/simulators/scripts/truthprocessingformason.sh
UTF-8
1,340
2.828125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ###PRESTEP -VARSIM ###POSTSTEP - testonlyTruthTable.sh REFPATH=$2 BCFPATH=/data/backup/metacaller/download/bcftools/bcftools-1.3/bcftools SAMTOOLSPATH=/data/backup/metacaller/download/samtools-1.3/samtools PICARDPATH=/data/backup/metacaller/download/picard-tools-2.3.0/picard.jar VTPATH=/data/backup/metacall...
true
01cfc0e5f38d30c3b4df5c35d814f6136851a706
Shell
AlexSomba/test
/up-ddos.sh
UTF-8
9,920
3.25
3
[]
no_license
#!/bin/bash ######################################################### # ANTI-DDOS BASH SCRIPT # # Created to mitigate DDOS/DOS attacks # # Compatible with CS2D game servers # ######################################################### # CONTACT ...
true
056a644dc93036d27ee3399ec3bc908c4537bad1
Shell
JunrQ/hadoop-book
/ch02-mr-intro/src/main/awk/max_temperature.sh
UTF-8
325
3
3
[]
no_license
#!/usr/bin/env bash ncdcds=${GIT_DIRECTORY}/hadoop-book/input/ncdc for year in ${ncdcds}/all/* do echo -ne `basename $year`"\t" cat $year | \ awk '{ temp = substr($0, 88, 5) + 0; q = substr($0, 93, 1); if (temp !=9999 && q ~ /[01459]/ && temp > max) max = temp } END { print max }'...
true
e6bc996198a262c167b8fb2ab98b63babc8f1580
Shell
w3f-grants-archive/polkadot_cosmos_integration
/scripts/integration_tests/basic_test_2_nodes.sh
UTF-8
1,286
2.59375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash trap "exit" INT TERM ERR trap "kill 0" EXIT ## import source ./testing_setup/test_utils.sh source ./testing_setup/basic_setup.sh ## Start cosmos nodes clean_cosmos_1 start_cosmos_1 sleep 2s clean_cosmos_2 start_cosmos_2 sleep 2s ## Start substarte nodes clean_substrate_1 start_substrate_1 sleep 5...
true
34fbc51604b057a586afa74c47a8b47fa04baad7
Shell
wdicarlo/wdc-do-commands
/project/do-project-setup
UTF-8
538
3.703125
4
[]
no_license
#!/usr/bin/env bash cmd=$(basename $0) if [ ! $# == 2 ] then echo "Usage: $cmd <ref-project> <project-name>" exit fi curr_path=$PWD curr_folder=`basename $PWD` if [ ! "$curr_folder" == "projects" ] then echo "Not in projects folder" exit fi if [ ! -d "$1" ] then echo "$1 does not exists" ...
true
85a44ab1aa0a638f9e940961af92782303bbda31
Shell
l-lin/dev-cheat-sheet
/shell/script-template.sh
UTF-8
1,830
4.40625
4
[]
no_license
#!/usr/bin/env bash # ----------------------------------------- # script description here # ----------------------------------------- set -e foo=${FOO:-foo} show_help() { cat << EOF Script description here Usage: ${0##*/} <flags> <args> Examples: # Prompt name when greeting ${0##*/} greet # Greet L...
true
c264a08d3970aa98b099b5a44b45ee5b1b982d9f
Shell
JeremyCoxBMI/kluesuite
/src/main/RELEASE_SCRIPTS/klat.sh
UTF-8
865
3.34375
3
[]
no_license
#!/usr/bin/env bash #bash script settings jar=kluesuite-1.0-SNAPSHOT.jar #java 1.8 or later java18=java if [[ $# -ne 4 ]]; then echo "KLAT uses a KLUE database to calculate alignments" echo"" echo "You entered incorrect number of parameters" echo"" echo "0 : (path +) prefix name of KLUE databases"...
true
be5146d5c411251f06f541d2362b16a4cc09697d
Shell
tomciopp/FrameworkBenchmarks
/frameworks/C/facil.io/setup-common.sh
UTF-8
1,143
3.765625
4
[ "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/bash # Don't redownload facil.io unless using the FIO_EDGE flag. if [[ (! -d facil_app) || (-n "${FIO_EDGE}") ]] ; then # remove existing installation, if any if [ -e facil_app ] ; then rm -R facil_app fi # create new installation folder mkdir facil_app cd facil_app #### Download and unpack # Down...
true
59597d19fe974cdae874d75faaf7be8ae61a3910
Shell
dgrisham/bitswap-tests
/bin/set_rate.sh
UTF-8
1,658
3.609375
4
[ "MIT" ]
permissive
#!/bin/sh usage="\ ./set_rate.sh [-h] -n NODE_NUM -f INTERFACE_NUM -u EXT_INTERFACE [-i NUM_INTERFACES]" while getopts "n:f:u:i:h" opt; do case $opt in n) node_num="$OPTARG" ;; f) ifnum="$OPTARG" ;; u) ext_up="$OPTAR...
true
4e6312789f180da7a87478361c641c86fe1606d9
Shell
shwoop/nagbot
/test.sh
UTF-8
179
2.890625
3
[]
no_license
#!/bin/bash COMMAND="nagbot version" if (( $# > 1 )); then COMMAND=$@ fi COMMAND=${COMMAND/ /+} curl -v --data "text=$COMMAND&token=ehtest" http://0.0.0.0:8080/nagios_bot
true
fe9aed4249dd9ec89a2ccba3932ad0802b394e68
Shell
dssg/infonavit-public
/feature-engineering/geospatial/create_feature_geo_distance_load_all.sh
UTF-8
1,239
3.4375
3
[]
no_license
#!/bin/bash -x # The username is required as parameter USERNAME="infonavit" RUN_ON_MYDB="psql -X -U $USERNAME -h dssgsummer2014postgres.c5faqozfo86k.us-west-2.rds.amazonaws.com -d infonavit" for YEAR in 2011 2012 2013 2015 do $RUN_ON_MYDB <<SQL drop table if exists feature_geo_distance_denue$YEAR; SQL TABLE=$(cat c...
true
adf2c6f9005f211fac1fa8251c21de2e53c4dbcd
Shell
Fabian1409/scripts
/volume
UTF-8
1,283
3.78125
4
[]
no_license
#!/bin/bash # You can call this script like this: # $./volume.sh up # $./volume.sh down # $./volume.sh mute function get_volume { amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1 } function is_mute { amixer get Master | grep '%' | grep -oE '[^ ]+$' | grep off > /dev/null } case $...
true
b6c3a5809cbea3b243b8e1b1c2ef1be1d5218610
Shell
unixpickle/neurocli
/examples/bidir_xor/run.sh
UTF-8
706
2.625
3
[]
no_license
#!/bin/bash OUT_FILE=net_out SAMPLES=data.txt echo 'Creating network...' neurocli new -in fwd_back.txt -out forward neurocli new -in fwd_back.txt -out backward neurocli new -in mixer.txt -out mixer neurocli bidir -forward forward -backward backward -mixer mixer -out $OUT_FILE rm forward backward mixer echo 'Training...
true
d0a0eb0866649e733f4b50cd802e4195002fd016
Shell
wowi42/wowi.io
/build.sh
UTF-8
432
3.484375
3
[ "MIT" ]
permissive
#!/bin/bash set -e [ -z "$APP_HOME" ] && export APP_HOME=$(pwd) [ -z "$HUGO_VERSION" ] && export HUGO_VERSION="0.81.0" mkdir -p hugo cd hugo if [ ! -f hugo_${HUGO_VERSION}_Linux-64bit.tar.gz ]; then echo "Hugo not found, Downloading version $HUGO_VERSION" wget https://github.com/gohugoio/hugo/releases/download...
true
db300ecd0e75c2277a0f95cc08729de21bf80f83
Shell
LikeNeko/bash
/time_send
UTF-8
384
2.765625
3
[]
no_license
#! /bin/zsh source ~/bash_script/nkcore wx_user_id=$1 content=$2 if [ -f "$2" ]; then content=$(cat $2) fi nlog $0 "发送一条消息$wx_user_id,$content" curl --request POST \ --url 'http://127.0.0.1:52700/wechat-plugin/send-message?=' \ --header 'cache-control: no-cache' \ --header 'host: 127.0.0.1:52700' \ --data...
true
a2b19e28a8a2057fe0b52813ee37d5c5d6770b40
Shell
rossning92/MyScripts
/scripts/r/linux/screen/run_command_in_screen.sh
UTF-8
773
3.65625
4
[]
no_license
set -e source "$(dirname "$0")/_wsl_screen_workaround.sh" # Clean-up dead sessions screen -wipe || true name="$1" commands="$2" if screen -ls $name; then echo "Reattach to screen session: $name" screen -r $name else echo "Create new screen session: $name" if [[ $(grep Microsoft /proc/version) ]]; the...
true
98436d6ee5964245f1e70208cea83f30135e12b2
Shell
NatLibFi/bib-rdf-pipeline
/test/15_mrcx.bats
UTF-8
4,895
2.921875
3
[ "CC0-1.0" ]
permissive
#!/usr/bin/env bats load test_helper setup () { global_setup make slice } @test "MARCXML: basic conversion" { rm -f slices/kotona-00097.mrcx make -j2 mrcx [ -s slices/kotona-00097.mrcx ] } @test "MARCXML: skips prepublication records" { make slices/prepub-00566.mrcx run bash -c "xmllint --format slice...
true
6ebef4269db8d659beb1545fb90c8c2c2d277f2f
Shell
envoyproxy/nighthawk
/ci/docker/benchmark_build.sh
UTF-8
1,026
3.859375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Builds a docker image nighthawk-benchmark-dev:latest containing the benchmark scripts # Stop on errors. set -e # NOTE: explicit no -x for verbose commands. Because this is run in CI, doing so may result in # publishing sensitive information into public CI logs if someone makes a change in a # consuming...
true
b3a2f6aef57f6cfbcf5bc2094f68ba8bc3d8199e
Shell
rafael-pinho/dot-files
/elementary/post-install-config.sh
UTF-8
1,111
2.8125
3
[]
no_license
#!/bin/bash #update system apt-get update apt-get upgrade -y #install some util packages apt-get install software-properties-common \ gdebi \ ubuntu-restricted-extras \ -y #add elementary tweaks, numix and arc theme repositories add-apt-repository ppa:philip.scott/el...
true
d30ce558bcd9c57965a53de04b6d8c8b4db74b8a
Shell
troyh/beercrush_php
/tools/format_xml.sh
UTF-8
288
3.46875
3
[]
no_license
#!/bin/bash if [ "$1" == "" ]; then MINDEPTH=2; else MINDEPTH=$1; fi find . -mindepth $MINDEPTH -type f -name "*.xml" | while read F; do xmlstarlet fo --encode utf-8 $F > $F.new; if diff $F $F.new > /dev/null; then rm $F.new; else echo "Formatted: $F"; mv $F.new $F fi done
true
a3d76f9abc01f7dd540cf673d79c0798de3d9bfb
Shell
Konubinix/Devel
/bin/konix_crypton_mount.sh
UTF-8
258
2.859375
3
[]
no_license
#!/bin/bash set -ue mkdir -p "${KONIX_CRYPTOFF}" if which konix_dump_crypton-passphrase.sh > /dev/null then encfs --extpass=konix_dump_crypton-passphrase.sh "${KONIX_CRYPTON}" "${KONIX_CRYPTOFF}" else encfs "${KONIX_CRYPTON}" "${KONIX_CRYPTOFF}" fi
true
0048d354fffa111e7630f300e296deb7f7d38352
Shell
bacobart/subpub
/deps/upgrade_to_r3.sh
UTF-8
1,104
3.296875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh ORIG_DIR=`pwd` cd `dirname $0` ROOT_DIR=`pwd` cd $ROOT_DIR #Stop the old prospero if it is running sudo /etc/init.d/prospero stop #The old prospero was installed to /opt/prospero, so lets' move it to /opt/prospero-<version> PREV_VERSION=`grep VERSION /opt/prospero/include/prospero.hrl | sed -E "s/-define...
true
aaecd2afe1fc5bdb5b72d51dc3b3e80663d430b1
Shell
Hua-Zhang/util
/runsvr.sh
UTF-8
509
3.390625
3
[]
no_license
#!/bin/bash while [ 1 ] do for i in $(seq 9001 9001) do pid=$(pgrep -f "./bin/topic_analysis_svr $i") if [ "$pid" = "" ] then timestamp=`date +%F-%T` echo -n $timestamp" Restarting topicAnalysis Server $i..." # logging method info ./bin/top...
true
c1b45bfacf44d5f89e86f387141bcea408cd9c14
Shell
gabrielatrindade/send-a-tree
/learning/bash/ifstatement.sh
UTF-8
83
3.015625
3
[]
no_license
#!/usr/bin/env bash i=$1 if (( $i % 2 == 0 )) then echo 'even' else echo 'odd' fi
true
dcba8a4e2e14a8332a333b7cd72fed8a66e39a00
Shell
zwbao/Triti-Map
/tritimap/scripts/format_pfamout.sh
UTF-8
2,662
3.28125
3
[ "MIT" ]
permissive
#!/usr/bin/env sh ############################################################################### # # Author contact: # zhaofei920810@gmail.com # # 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 a...
true
749099c9c9d793431bdfaf64f918e23ebc661cf2
Shell
circinusX1/wifiphp-one
/patchsys.sh
UTF-8
982
2.546875
3
[ "MIT" ]
permissive
#!/bin/bash apt-get update apt-get install wireless-tools apt-get install libssh2-php spt-get install php-ssh2 service apache2 restart service lighttpd restart chown www-data:$USER /etc/wpa_supplicant/wpa_supplicant.conf touch /etc/wpa_supplicant/env chown www-data:$USER /etc/wpa_supplicant/env chomod 775 /et...
true
e62923b138a210b03127743c9da7924d333f09fa
Shell
fluent/fluent-bit
/lib/librdkafka-2.1.0/packaging/homebrew/brew-update-pr.sh
UTF-8
542
3.734375
4
[ "Apache-2.0", "BSD-2-Clause", "MIT", "BSD-3-Clause", "Zlib", "LicenseRef-scancode-public-domain", "ISC", "LicenseRef-scancode-public-domain-disclaimer" ]
permissive
#!/bin/bash # # Automatically pushes a PR to homebrew-core to update # the librdkafka version. # # Usage: # # Dry-run: # ./brew-update-pr.sh v0.11.0 # # if everything looks good: # ./brew-update-pr.sh --upload v0.11.0 # DRY_RUN="--dry-run" if [[ $1 == "--upload" ]]; then DRY_RUN= shift fi TAG=$1 if [[...
true
c635472b0a246a37a402baaac38551c8cf697af5
Shell
kiddico/i3_config
/blocks/calendar.sh
UTF-8
270
2.625
3
[]
no_license
#!/bin/bash echo " $(date +%y‧%-m‧%-d)" #echo " $(date +%D)" case $BLOCK_BUTTON in 1) gnome-calendar --class floater;; # l click 2) ;; # middle clock click 3) ;; # right click, mute/unmute 4) ;; # scroll up, increase 5) ;; # scroll down, decrease esac
true
19f6e21b615e5379b41e6ceee6a9458d070ba39a
Shell
flypigg/objective-git
/script/update_libssh2_ios
UTF-8
3,109
3.5625
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh set -e if [ -f "External/libssh2-ios/lib/libssh2.a" ]; then echo "No update needed." exit 0 fi PATH="/usr/local/bin:$PATH" SDKVERSION="6.1" CURRENTPATH=`pwd` ARCHS="i386 armv7 armv7s" DEVELOPER="/Applications/Xcode.app/Contents/Developer" mkdir -p External/libssh2-ios/lib External/libssh2-ios/lib...
true
24a33baf9eb9c3bb3dbef3f05c9c1f5b089c1aec
Shell
RyanGao67/Shell_Script
/demos/mytest1.sh
UTF-8
112
2.8125
3
[]
no_license
#!/bin/bash AR=('foo' 'bar' 'baz' 'bat') for i in "${!AR[@]}"; do printf '${AR[%s]}=%s\n' "$i" "${AR[i]}" done
true