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
9e6aefacc801980e9491d3a79a1939239346dbe2
Shell
dedowsdi/dotfiles
/.ddd/script/readtagsi
UTF-8
1,940
4.09375
4
[]
no_license
#!/usr/bin/env bash set -eu -o pipefail show_usage() { echo " Usage: ${0##*/} [-t TAGFILE]... [-k KIND]... <scope_name> Read from everything that have a scope. Your tag fields must include \"Z\" for this to work. Options: -h Show this help. -t TAGFILE Add tag file, can be used zero or...
true
bff965f6ba2f3fb9e2facb69f61aff0d4197bed3
Shell
chenqiangzhishen/Shell
/downloadAugusta/downloadAugusta.sh
UTF-8
10,011
4.0625
4
[]
no_license
#!/bin/bash # # The downloadAugusta script downloads the specified Augusta VM image. # # FEATURES: # - download up to 2 times faster # - only changed image blocks are downloaded # - sparse image file is used to minimize space # - automatic daily image download via crontab # - keeps multiple daily images # - automatica...
true
1b383fe816fd22b3310837d7ed1304e9b1ab352f
Shell
Sensei-Dad/dotfiles
/functions/hgrep
UTF-8
123
3.0625
3
[ "MIT" ]
permissive
#!/bin/sh # Grep the history for something # Usage: # hgrep <string> hgrep() { history | grep $1 | grep -v grep; }
true
65bff814da1e72d7f948fd43bd0f8a60130964fa
Shell
openshift/openshift-azure
/hack/aad.sh
UTF-8
1,900
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e usage() { cat <<EOF >&2 usage: $0 app-create name owner Examples: $0 app-create user-$USER-aad aro-team-shared EOF exit 1 } # Meaning of the below magic numbers # "00000002-0000-0000-c000-000000000000" -> AAD Graph API # "5778995a-e1bf-45b8-affa-663a9f3f4d04" -> Read directory data # "311a71...
true
9179f09ffb69141fffa3618409dbfe42a722bc59
Shell
clp-research/slurk-bots
/audio_video/setup_audio_video_room.sh
UTF-8
1,626
3.453125
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -eu # export SLURK_OPENVIDU_URL and SLURK_OPENVIDU_SECRET before starting the script function errcho { echo "$@" 1>&2 } function check_response { response=$("$@") if [ -z "$response" ]; then errcho "Unexpected error for call to: $1" exit 1 fi echo "$response...
true
4cf0d5bdffe7a16e61c46697fa35b4d4043e2987
Shell
openshift/openshift-docs
/scripts/analytics_fix.sh
UTF-8
895
2.6875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -ev NC='\033[0m' # No Color GREEN='\033[0;32m' # Download analytics related files and move them to correct folders echo -e "${GREEN}==== Download files with removed analytics ====${NC}" wget https://raw.githubusercontent.com/openshift/openshift-docs/main/scripts/ocpdocs/_analytics_other.html -O _templ...
true
655a635cf43615dcc094d9a2c6a42222c673e2e4
Shell
cloudcafetech/bridget
/bridget.sh
UTF-8
7,369
4.03125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh CNI_CONFIG="${CNI_CONFIG:-/etc/cni/net.d/10-bridget.conf}" usage() { cat <<EOF Available variables: - BRIDGE (example: cbr0) - VLAN (example: 100) - IFACE (example: eth0) - MTU (default: 1500) - CHECK_SLAVES (default: 1) - POD_NETWORK (default: 10.244.0.0/16) - DEBUG (defa...
true
3eea942a228cd996f38baa7caf40550d35bbc7a1
Shell
noirgif/CORDS
/systems/tikv/recover_all.sh
UTF-8
177
2.65625
3
[ "Apache-2.0", "MIT" ]
permissive
#!/bin/bash echo Recovering everything ... for f in tidb-docker-compose/workdir/{pd,tikv}? ; do sudo rm -rf $f/data cp -r $f/data.snapshot $f/data echo $(basename $f) done
true
05842ca7596dee895ef283628c52d5e5ea20f761
Shell
NNemec/DIYkit
/unchecked/ietl.diy
UTF-8
436
2.65625
3
[]
no_license
#!/bin/bash # DIYkit package: ??? NAME=ietl VERSION=2.2 DISTFILE=${NAME}-${VERSION}.tar.gz MASTER_SITE=http://www.comp-phys.org/software/${NAME} ARCHIVE_URL=${MASTER_SITE}/${DISTFILE} . $DIYkit/DIYkit-include.sh DEPENDS_ON atlas DOWNLOAD_ARCHIVE UNPACK_ARCHIVE cd $SRCDIR ./configure --prefix $PRE...
true
2c2527309912287922e22635eb0ed7c64e1cbe19
Shell
mineiro25/matrixmult-analysis
/code-cuda/search.sh
UTF-8
561
2.796875
3
[]
no_license
#!/bin/bash #PBS -N AA_CUDA #PBS -l walltime=03:00:00 #PBS -l nodes=1:r662:k20:ppn=48 source /share/apps/intel/parallel_studio_xe_2019/compilers_and_libraries_2019/linux/bin/compilervars.sh intel64 module purge module load papi/5.4.1 module load gcc/7.2.0 module load cuda/7.0.28 export CUDA=yes make StringVal ...
true
b7de54e649e3c312ede462ce8a50f2a1995df95d
Shell
zalkdo/vagrant
/centos/scripts/install.sh
UTF-8
806
2.671875
3
[]
no_license
echo "yum updating......." sudo yum update echo "ssh PasswordAuthentication enable" sudo sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config sudo systemctl restart sshd echo "docker installing......" sudo yum install -y yum-utils sudo yum-config-manager --add-repo https://download.d...
true
ac6245a29e833776297e3b632c1dee39faeb7c2e
Shell
renantmagalhaes/workstation
/utils/1password/install-1password.sh
UTF-8
1,213
3.34375
3
[]
no_license
#!/bin/bash check_cmd() { command -v "$1" 2> /dev/null } # Add the repository key with either wget or curl if check_cmd apt-get; then # FOR DEB SYSTEMS wget https://downloads.1password.com/linux/debian/amd64/stable/1password-latest.deb -O /tmp/1password-latest.deb sudo dpkg -i /tmp/1password-latest.deb ...
true
e0a19f4e0086ec011f3860267694c8aabf4dbd74
Shell
pklimov10/CMauto
/zabbix/verssion kontrok/ver.sh
UTF-8
821
2.921875
3
[]
no_license
#!/bin/bash #Путь до WildflyHome например /opt/wildfly WFHOME=/u01/CM/wildfly #логин пользователя login=irshk pass=1 #Урл сервера b=1 in=(SGO-SED-REP101 SGO-SED-AP102 SGO-SED-TECH102 SGO-SED-MRM102 SGO-SED-AP101 SGO-SED-MRM101 SGO-SED-AP107 SGO-SED-AP108 SGO-SED-VIP101 SGO-SED-AP109 SGO-SED-AP103 SGO-SED-AP105 SGO-S...
true
97b3f1bbc7367924b7c2a611385a7b68cdb0c760
Shell
Fennec89/PHS-scripts
/bash/advanced.sh
UTF-8
701
3.375
3
[]
no_license
#!/bin/bash ######################### # Author: Gustav Fahlén # # Date: 2012-09-28 # # @: PHS # ######################### folder=$1 target=$2 if [ $2 ];then arr=`find ${folder} -iname '*.avi' | cut -d'/' -f5` for line in ${arr} do echo ${line} mkdir -p "${target}${line}"...
true
1606db30f1a49cb7fc3697ac5c890c4c828a9024
Shell
handicraftsman/wunderlistux
/bin/install.sh
UTF-8
1,067
4.0625
4
[]
no_license
#!/bin/bash ARCH=`uname -m` KERNEL=`uname -s` if [[ $EUID -ne 0 ]]; then echo 'You need to run installer as root!' 2>&1 exit 1 fi if [ $KERNEL = 'Linux' ] && [ $ARCH = 'x86_64' ]; then URL='https://github.com/edipox/wunderlistux/archive/0.0.5-linux-x64.tar.gz' else URL='https://github.com/edipox/wunderlistux...
true
1fa9e560d6a3e6a8715c5dc3b1dbc41ac4eac2ca
Shell
vash15/magick-installer
/magick-installer.sh
UTF-8
2,616
3.15625
3
[]
no_license
#!/bin/sh set -e function download() { url=$1 base=$(basename $1) if [[ ! -e $base ]]; then echo "curling $url" curl -O -L $url fi } # mkdir magick-installer cd magick-installer download http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz download http://download.savannah.gnu.org/releases/freet...
true
17c376eac59ca5a9af8f637aaa6f69bc67533873
Shell
gassara-kys/aws-check-cli
/util/convert_admin_json2csv.sh
UTF-8
416
2.6875
3
[]
no_license
#!/bin/bash -eu DIR_NAME=$(dirname $0) # column echo "user_arn, user_name, access_key_id_1, access_key_id_2, has_user_admin, has_grorup_admin, enable_permission_boundory" > ${DIR_NAME}/admin.csv # convert by jq cat ${DIR_NAME}/admin.json | jq -r '.[][] | [.user_arn, .user_name, .access_key_id[0], .access_key_id[1], ...
true
a2bcc284deae8d2426060b38bb79b99a11d14cb5
Shell
yagamy4680/yapps-scripts
/.bashrc
UTF-8
606
3.296875
3
[ "Apache-2.0" ]
permissive
function setup_prompt_yac { local CONFIG=$1 local PROFILE=$(cat ${CONFIG} | grep -P "^profile\t" | awk '{print $2}') local BOARD_PROFILE_ENV=$(cat ${CONFIG} | grep -P "^profile_env\t" | awk '{print $2}') local BOARD_PROFILE_VERSION=$(cat ${CONFIG} | grep -P "^profile_version\t" | awk '{print $2}') local BOARD_SER...
true
30be4e022f605d205cc085a1ffe6f5df2a9761ca
Shell
pomadchin/geotrellis-pdal-benchmark
/scripts/emr/bootstrap-pdal.sh
UTF-8
2,931
2.5625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # This scripts bootstraps each node in the the EMR cluster to install PDAL. # Ensure that Spark knows where to find things. # sudo aws s3 cp s3://geotrellis-test/pdal-test/environment /etc/environment # Install minimal explicit dependencies. sudo yum -y install git geos-devel libcurl-devel cmake libtiff-...
true
01e556e9c0bee8ab6e2316844b7fb837b296fda5
Shell
maxfortun/PoolController
/bin/pool.cgi
UTF-8
2,686
3
3
[]
no_license
#!/bin/bash echo 'Content-type: text/html' echo SWD=$(dirname $(readlink -f $0)) pumpStatus=$($SWD/pump/status.sh) pumpAction=$($SWD/pump/actions.sh "$pumpStatus") drainStatus=$($SWD/drain/status.sh) drainAction=$($SWD/drain/actions.sh "$drainStatus") solarStatus=$($SWD/solar_heater/status.sh) solarAction=$($SWD/s...
true
9e45a557174bf8e28466577c6bfb1a361894f8a2
Shell
timesong/nginx-rp
/rpu
UTF-8
1,299
3.53125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "Create proxy.conf." tmpl='\t\tlocation /<svc> {\n\t\t\tproxy_pass http://<svc>:<port>/;\n\t\t\tproxy_http_version 1.1;\n\t\t\tproxy_set_header Upgrade $http_upgrade;\n\t\t\tproxy_set_header Connection $connection_upgrade;\n\t\t}' keyword=`printenv NP_SVC_KWD` addrs=`printenv NP_SVC_ADDRS` old_svcs=...
true
bef444d05f086e1597cad7c259d870859433c163
Shell
anderssandstrom/ecmc_bifrost_vac_tank_sat
/tests/scripts/ecmcScaleOffsetLines.bash
UTF-8
751
3.90625
4
[]
no_license
#!/bin/bash # # Scale and offset data in a camonitor text line (scale first then offset) # # Arg 1 Optional file name, otherwise stdin # Arg 2 Scale value # Arg 3 Offset value # # Return Complete camonitor lines scaled (with PV name and timestamp). # # Example:Scale all lines from stdin with 10 # bash ecmcScaleLines.b...
true
c3e647b7f3ae0b8bc55ba166a83134f92c5eaf03
Shell
anecsulea/LncEvoDevo
/gene_overlaps/extract.intergenic.regions.sh
UTF-8
1,113
2.921875
3
[]
no_license
#!/bin/bash export sp=$1 export annot=$2 ##################################################################### export path=LncEvoDevo export pathEnsembl=${path}/data/ensembl_annotations/${sp} export pathStringTie=${path}/results/stringtie_assembly/${sp}/combined export pathResults=${path}/results/gene_overlaps/${sp...
true
7d87444472721db6e4328c200326357c43973427
Shell
snabbco/snabb
/src/program/wall/tests/bench.sh
UTF-8
863
3.546875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # A benchmark script for 'snabb wall filter' # # Run this script with three arguments. The first two are the PCI addresses for the # two NICs that are connected. The third is the CPU to pin the filter. PCI1=$1 PCI2=$2 CPU=$3 DURATION=10 ITERS=10 echo "Firewall on $PCI1 (CPU $CPU). Packetblaster o...
true
9df28d875e073efa005bd17a8d58b7c913a8dbe1
Shell
DasJott/ScreenRotate
/toggleScreenRotation.sh
UTF-8
484
2.890625
3
[]
no_license
#!/bin/sh touchpad=$(xinput | grep "SYNA2B23:00 06CB:2714" | sed 's/^.*id=\([0-9]*\).*$/\1/') keyboard=$(xinput | grep "AT Translated Set 2 keyboard" | sed 's/^.*id=\([0-9]*\).*$/\1/') current=$(xrandr -q --verbose | grep "eDP1" | cut -d ' ' -f6) if [ $current = "normal" ]; then xrandr --output eDP1 --rotate invert...
true
b6f78adb2f557923317943c8a78d8ff234168ae4
Shell
wso2/testgrid-jenkins-library
/scripts/deployment-handler.sh
UTF-8
5,180
3.625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # ------------------------------------------------------------------------------------- # Copyright (c) 2022 WSO2 Inc. (http://www.wso2.org) All Rights Reserved. # # WSO2 Inc. licenses this file to you under the Apache License, # Version 2.0 (the "License"); you may not use this file except # in compliance ...
true
9cd46b29ef194bc64f42932a49cf66892e59204d
Shell
gorkinovich/UNIX
/UPSAM/Practica-4.3b.sh
UTF-8
349
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash ##################################################################### DIR="$HOME/uptime_history" echo "Numero de saltos de tiempo: " awk ' { if (NR == 1) { ant = $7 } else { if (($7 - ant) > 6) { printf ("Salto (%d): %f -> %f\n", NR, ant, $7) } ant = $7...
true
917d7c255b7121191b4f3d15fdd3f7c98ffd3219
Shell
Sword-Smith/EggsML
/concieggs/cmds/ugrundlov
UTF-8
281
2.78125
3
[]
no_license
#!/bin/sh # # Giv noget Markov-kædet grundlov. Brug: ugrundlov [ANTAL ORD] antal_ord="$1" if ! [ "$antal_ord" ]; then antal_ord=40; fi tmpfile=$(mktemp) echo -n "§$(random 1 89), stk. $(random 1 5). " markov "$antal_ord" grundlov "$CONCIEGGS_DB_DIR/grundloven/grundlov-markov-ready" | withSpaces
true
9f5e44aff8ff8f870ca90db67c92a884703b37cf
Shell
gokul-sarath07/CodinClub-BootCamp
/day8_assignment/month.sh
UTF-8
847
3.515625
4
[]
no_license
#!/bin/bash i=0 declare -A month while [[ $i -lt 50 ]] do check=$(( $((RANDOM%12)) + 1 )) if [[ $check -eq 1 ]] then month[$i]="January" elif [[ $check -eq 2 ]] then month[$i]="February" elif [[ $check -eq 3 ]] then month[$i]="March" elif [[ $check -eq 4 ]] then month[$i]="April" eli...
true
4b36592fcbd809b1f5a1baaec7f7d21806f3fd3f
Shell
BucknellFilmSearch/FilmMediaDatabase
/scripts/remote/deploy.sh
UTF-8
1,343
3.921875
4
[]
no_license
#!/bin/bash colorize() { echo -e "$(tput setaf $2)$1$(tput sgr0)"; } colorize() { echo -e "$(tput setaf $2)$1$(tput sgr0)"; } #put me in the right dir pushd $(dirname $0)/../../ &> /dev/null rm -rf build pushd src/server/ &> /dev/null build_tool='' # Check for either npm or yarn type yarn &> /dev/null if...
true
547395f1ee7b51a3a2163c06929f94319e356ad4
Shell
mavelyc/bash-scripts
/lab3/minor3_2
UTF-8
138
3.109375
3
[]
no_license
#!/bin/bash if [ $# -ne 4 ] then echo "My guy, what's with the constant brickage" exit fi egrep "$3|$4" $1 > $2 echo "done" >> $2
true
f315c88fa85e080f180227e537e53b377623f865
Shell
jagguli/arch-ppa
/src/solaar-git/PKGBUILD
UTF-8
1,008
2.53125
3
[ "MIT" ]
permissive
# Maintainer: Maxime Poulin <maxpoulin64@gmail.com> # Contributor: Arnaud Taffanel <dev@taffanel.org> # Contributor: Victor Häggqvist <victor@snilius.com> pkgname=solaar-git pkgver=r985.b852903 pkgrel=1 pkgdesc="Linux devices manager for the Logitech Unifying Receiver." arch=('any') url="http://pwr.github.io/Solaar/" l...
true
a09218ac280eba9cdec231bc9aad8feaef592639
Shell
OpenVnmrJ/OpenVnmrJ
/src/scripts/writeacct.sh
UTF-8
405
2.953125
3
[ "Apache-2.0", "GPL-3.0-only" ]
permissive
#!/bin/sh #writeacct.sh # The acct macro needs to be able to append to the acccounting file # as root. acct can call this script using sudo to append to the file. # Usage: "writeacct file_path operator owner start/done time" # The line should look something like the following: # account="" operator="vnmr1" owne...
true
3be8c2e7474bf64eda70d0bb28a300fc5c84214c
Shell
neilellis/easydeploy
/remote/install-component.sh
UTF-8
18,999
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -eux chmod 755 ~/bin/* error() { echo "**** EASYDEPLOY-COMPONENT-INSTALL-FAILED ****" sourcefile=$1 lineno=$2 code=$3 echo "$1:$2" $3 set +e exit $3 } trap 'error "${BASH_SOURCE}" "${LINENO}" "$?"' ERR cd $(dirname $0) DIR=$(pwd) echo "Setting defaults" export DATACENTER=$1 shi...
true
c4fcbb5a0eede232a38ab0722b71c345f7bf2d17
Shell
adobe/XMP-Toolkit-SDK
/build/cmake.command
UTF-8
978
3.78125
4
[ "BSD-3-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # ================================================================================================= # ADOBE SYSTEMS INCORPORATED # Copyright 2013 Adobe Systems Incorporated # All Rights Reserved # # NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms # of the Adob...
true
616f32eaf3c9567335639ed351e7780bf5e3fe2a
Shell
zhrq95/Learning
/Shell/根据不同的菜单选择,分别显示当前时间、登录用户和当前工作目录.sh
UTF-8
340
3.6875
4
[]
no_license
#!/bin/bash echo -e "\n Command MENU\n" echo "D.Current data and time" echo "U.Users currently logged in" echo -e "W.Name of the working directory\n" echo "Enter D,U or W:" read answer echo case "$answer" in D | d) date ;; U | u) who ;; W | w) pwd ;; *) echo "There is no selection:$a...
true
b9e6349dd23328d24523189d3c5c526b5442419d
Shell
jacebenson/workflow
/bin/beta-release
UTF-8
320
2.5625
3
[ "MIT" ]
permissive
#!/bin/bash # Clone mermaid-js/docs parallel with the mermaid live editor. # git clone git@github.com:mermaid-js/docs.git # git clone https://github.com/mermaid-js/docs.git yarn release pushd . cp -r docs/* ../docs/mermaid-live-editor-beta cd ../docs git add . git commit -m "Beta updated with latest changes" git pus...
true
a4c00a7b9e1c6a03f0589a6cd47bb563583f0466
Shell
legacy-codedigger/aix-4.1.3
/aix-4.1.3/bldenv/rastools/probeidsbld.sh
UTF-8
1,874
3.46875
3
[]
no_license
#!/bin/sh # @(#)15 1.1 src/bldenv/rastools/probeidsbld.sh, cmderrlg, bos412, GOLDA411a 10/20/93 14:29:41 # COMPONENT_NAME: CMDERRLG # # FUNCTIONS: tool to genenerate /usr/include/sys/probeids.h # # ORIGINS: 27 # # IBM CONFIDENTIAL -- (IBM Confidential Restricted when # combined with the aggregated modules for this pr...
true
6b557217859e3ba99dcf703d33b61e9f73d139f8
Shell
ayredkklc/myportfolio
/prod-test.sh
UTF-8
292
3.125
3
[]
no_license
#!/bin/sh server="https://deryakilic.duckdns.org/" while read endpoint; do response=$(curl --write-out '%{http_code}' --silent --output /dev/null $server$endpoint) if [[ $response == "200" ]]; then echo "Success /"$endpoint else echo "Error /"$endpoint exit 1 fi done < endpoint.txt exit 0
true
9c567c99fb8696074df89968c3b248e5f9695a4c
Shell
xiaostar518/chopper
/sh/changeEthX.sh
UTF-8
854
3.53125
4
[]
no_license
#!/usr/bin/env bash dumpSeries(){ lspci|grep Eth|awk '{print $1}'>/etc/1.txt exit 0 } updateDevice(){ for ((i=0; i<32; i++)) do ifconfig eth${i} down mac=`ifconfig eth${i}|grep ether|awk '{print $2}'` nameif e${i} ${mac} done n=0 for j in `cat /etc/1....
true
c87b8bbd4b700ab071c320a77445d7aaa6335226
Shell
udzura/docker-builds-haconiwa
/deb/builddeb.sh
UTF-8
1,353
3.15625
3
[]
no_license
#!/bin/bash set -xe export DEBIAN_FRONTEND=noninteractive export LANG=C VERSION=${1:-0.8.5} MAINTAINER=${2:-'udzura@udzura.jp'} MAINTAINER_NAME=${3:-'Uchio Kondo'} if test -d /build/haconiwa then mkdir /build/haconiwa-$VERSION rsync -a /build/haconiwa/ /build/haconiwa-$VERSION/ cd /build/haconiwa-$VERSIO...
true
ddfbb6dcfd12870df6be8ced17a8a9ea27321ff1
Shell
Dmytro10/env-vagrant
/scripts/finish-config.sh
UTF-8
433
3.390625
3
[]
no_license
#!/usr/bin/env bash sudo su # Hach for Windows ping -c 5 192.168.25.1 # Constants RED='\033[0;31m' GR='\033[0;32m' NC='\033[0m' # No Color OVPNS=$(ifconfig tun0) REALIP=$(wget http://ipinfo.io/ip -qO -) echo "You're good now :)" echo -e "${GR}Your output IP:${RED} $REALIP ${NC}" if [[ -z "$OVPNS" ]]; then echo -e "...
true
6a88d7f37d52f98efb9afd358e7d3dbd84d2b305
Shell
kmader/studio_home
/app/userstart.sh
UTF-8
707
2.578125
3
[]
no_license
#!/bin/bash # # Deep Learning Studio - GUI platform for designing Deep Learning AI without programming # # Copyright (C) 2016-2017 Deep Cognition Labs, Skiva Technologies Inc. # # All rights reserved. # export PYTHONPATH=/home/app export HOME=/home/app export LD_LIBRARY_PATH="/usr/local/nvidia/lib:/usr/local/nvidia/lib...
true
f200187b9599950daa5ce9532b622bdba57df9dd
Shell
epasham/bigdata-ansible
/filebeat-prd/symbolic_link.sh
UTF-8
414
2.828125
3
[]
no_license
#!/usr/bin/env bash bin=`dirname "$this"` bin=`cd "$bin"; pwd` export SERVERLIST="${bin}/serverlist/serverlist-$1" . ../elasticsearch-prd/mpalyes/script/env.sh for server in `cat "$SERVERLIST"`; do echo "ssh root@$server "ln -s /root/filebeat/filebeat-$ES_VERSION-linux-x86_64-$1 filebeat"" ssh root@$server "...
true
ad518729a675d965c97c25242ad66cf586c45922
Shell
DigitalPacific/corekube
/cloud-config/get_discovery_interface_ip.sh
UTF-8
265
2.90625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Get's the IP of the interface that discovery will be # accessible over DISCOVERY_IF=%discovery_net_interface% /usr/bin/ip -4 addr show $DISCOVERY_IF | /usr/bin/awk '/inet/ {print $2}' | /usr/bin/cut -d/ -f1 > /run/IP /usr/bin/sed -i 's/^/IP=/' /run/IP
true
fbcb8fbe84d6657d3afbc545ed0f7e4712f16c5a
Shell
lyokato/myenv
/roles/zsh/files/.zshrc
UTF-8
938
2.75
3
[]
no_license
source "${HOME}/.zgen/zgen.zsh" if ! zgen saved; then zgen oh-my-zsh zgen oh-my-zsh plugins/git zgen oh-my-zsh plugins/sudo zgen oh-my-zsh themes/gallois zgen load zsh-users/zsh-syntax-highlighting zgen load zsh-users/zsh-completions src zgen load zsh-users/zsh-history-substring-search zgen save fi ...
true
c0e7b38a0c466fb9a247c4b51a6b6d6734654525
Shell
kenmanheimer/ShellUtils
/envelope
UTF-8
5,222
4.03125
4
[]
no_license
#!/bin/bash # Execute a command, intercepting output and emailing if errors occur. # With many options to tailor behavior - 'envelope -?' for details. # Todo: # - Convert argument parsing to getopts. wrap="$0 $*" recipient=$LOGNAME scriptNm=$(basename $0) subjLine="$scriptNm RESULT for: COMMAND" alwaysSend=""; showE...
true
66e38e95dd6a7461d6b16c4c8446f5ab8e26c7c4
Shell
harvard-library/librarycloud_deploy
/vagrant-api/puppet-bootstrap-centos.sh
UTF-8
661
3.90625
4
[]
no_license
#!/usr/bin/env bash # This bootstraps Puppet on CentOS 7.x # It has been tested on CentOS 7.0 64bit set -e if [ "$EUID" -ne "0" ]; then echo "This script must be run as root." >&2 exit 1 fi if which puppet > /dev/null 2>&1; then echo "Puppet is already installed." exit 0 fi # Install puppet labs repo echo "...
true
0f3035e8b006f23fc6db8869aaf0625bac5fc788
Shell
nachtmaar/androlyze
/docker/mongodb/mongodb.sh
UTF-8
673
2.875
3
[ "MIT" ]
permissive
#!/bin/bash # `/sbin/setuser memcache` runs the given command as the user `memcache`. # If you omit that part, the command will be run as root. #/bin/chown -R mongodb:root /var/log/mongodb/ /var/lib/mongodb source $ANDROLYZE_UTIL echo "configuring mongodb ..." /etc/androlyze_init/mongodb_init.sh echo "configuring mon...
true
b6cd3a67c967f69aa106b34a3e56fb4b556660f4
Shell
itsmina1/OS10
/os.10/party.sh
UTF-8
287
2.875
3
[]
no_license
#!/bin/bash u_have_the_letter=true echo "say ur age plz" read x if [$x -gt 18]||[$x -eq 18] then echo "you may go to the party" elif $u_have_the_letter then echo "you may go to the party" else echo "you may not go to the party" fi
true
3f353cd7f308f33ba4b43eaaa923cb9942d44eca
Shell
kaiwan/L5_debug_trg
/stresstest/stressor.sh
UTF-8
500
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash # stressor.sh # Stress system # with stress(1) : CPU, I/O, VM, disk # Wrapper over stress(1) and stress-ng(1) [ $# -ne 1 ] && { echo "Usage: $0 duration-in-seconds (for both IO and n/w)" exit 1 } #sudo stress -v --cpu 4 --io 4 --vm 4 --hdd 4 & # IO, disk echo "1. sudo stress -v --io 8 --hdd 8 --timeou...
true
a4423a28182e1b7c790b8ac2c19a244cbd14a8ad
Shell
rhiswell/15418
/assignment1/prog2_vecintrin/collect.sh
UTF-8
1,358
3.875
4
[ "MIT" ]
permissive
#!/bin/bash VECTOR_WIDTH=( 2 4 8 16 ) default_vector_width=4 function inject_vector_width { local vector_width=$1 local target_file="./CMU418intrin.h" sed -i "s/#define VECTOR_WIDTH [0-9]\+/#define VECTOR_WIDTH $vector_width/g" \ $target_file } function collect_stat { local vector_width=$1 ...
true
496a35023b3c1b4de7f5f2a82871ffea259076b5
Shell
corsec00/Azure500Stuff
/az500/Getting-Started-Vault/m4/m4-tokenwrapping.sh
UTF-8
1,827
2.796875
3
[ "MIT" ]
permissive
#Export the Vault server running in AD environment export VAULT_ADDR=http://127.0.0.1:8200 export VAULT_TOKEN=AddYourVaultTokenHere #For Windows $env:VAULT_ADDR = "http://127.0.0.1:8200" $env:VAULT_TOKEN = "AddYourVaultTokenHere" $headers = @{ "X-Vault-Token" = $env:VAULT_TOKEN } #Log into Vault server...
true
f3d3ee94ceae04a4afde9d1c2d1840dd5f55b92a
Shell
FlintInspiresRealEngineers/Attendance
/nightly_refresh.sh
UTF-8
1,777
4.03125
4
[]
no_license
#!/bin/bash #Config REPO_PATH='/home/attendance/Attendance' DATA_PATH='/home/attendance/Attendance_data' MAKE_BACKUP=true BACKUP_PATH='/backup-usb' SIZE_LIMIT='28672' #in megabytes log () { echo [`date`] "$1" >> "$DATA_PATH/logs/refreshlog.log" } #Generate history cache log 'Creating history cache' python3.8 "$RE...
true
19b4fa54f538a3ee4a1bde2ba6ab35e22b53959c
Shell
osresearch/opensgx
/opensgx
UTF-8
1,883
3.828125
4
[]
no_license
#! /bin/bash ROOT=$(dirname "$0") SGXTOOL=$ROOT/user/sgx-tool SGX=$ROOT/sgx DEVICEKEY=$ROOT/user/conf/device.key key_gen() { FILENAME=sign.key $SGXTOOL -k 3072 > $FILENAME } compile_code() { BASEDIR=$(dirname $1) SUBDIR=${BASEDIR#*/} BASENAME=$(basename $1) NAME="${BASENAME%.*}" cd user make $SUBDIR...
true
72466af16d24e5349065b9cec608a3ab47aac6ff
Shell
wangaguo/ossf_openfoundry_projects
/services/rt/sync_group.sh
UTF-8
789
3.125
3
[]
no_license
#!/bin/sh CHECKOUT_PATH="/usr/local/rt36" SYNC_SECRET="5f12117baa04ce58" SYNC_HOST="192.168.3.80:80" DUMP_LINK="http://${SYNC_HOST}/openfoundry/foundry_sync?secret=${SYNC_SECRET}&module=rt" SYNC_SCRIPT=group.pl JSON_DUMP=b.json RESULT_LOG=group_result.txt CHECK_LOG=group_result2.txt #utils... PERL=`which perl` DATE=...
true
446d07608f0a40a9913e5a478c5537baebd52e42
Shell
ActianCorp/spark-vector
/deployment/docker/spark-provider/build_image.sh
UTF-8
1,885
3.828125
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT", "Apache-2.0" ]
permissive
#!/bin/bash #REQUIREMENTS: curl, sbt and docker have to be on PATH #ARG 1: Tag of the to-be-created docker image set -e SPARK_VERSION=3.1.1 HADOOP_VERSION=3.2 JAVA_VERSION=8 GCS_VERSION=2.1.5 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" PROJECT_ROOT="$(echo $SCRIPT_DIR | sed 's/\/depl...
true
c8d9755fb2980b685e938e66b3ebd0f9fee765ae
Shell
DQuomsieh/random-scripts
/cli_contact_manager/modifycontacts
UTF-8
5,306
3.75
4
[]
no_license
#!/bin/bash option=0 until [ "$option" = "4" ]; do echo "1.) Delete a contact" echo "2.) Delete all contacts" echo "3.) Modify contact info" echo "4.) Return" echo -n "Please enter your choice: " read option echo "" case $option in 1) clear echo "Please enter ID number" echo " " ...
true
c17a3d849106ebe02d90fb0410c5292dbfdd0d09
Shell
bmink/redissms
/check_sender.sh
UTF-8
231
2.921875
3
[]
no_license
#!/bin/bash # # Install this script in crontab to run every minute. # if [[ ! $(pidof redissms_sender) ]]; then logger "Starting redissms_sender" REDIS_ADDR="xx.xx.xx.xx" \ nohup /path/to/redissms_sender 2>&1 >/dev/null & fi
true
6110fd06052a159974710f251ec2f20f137270a5
Shell
kzsh/dotfiles
/common/scripts/bash/git/git-op.test.sh
UTF-8
96
2.5625
3
[]
no_license
#!/bin/bash . git-op.sh operation() { echo "is git" ls .git } forEachGitRepo "operation"
true
3e20a1f9a0314f7cb59e333d233def24c9321484
Shell
frizinak/provision.sh
/src/provision/go/init.sh
UTF-8
518
2.890625
3
[]
no_license
#! /bin/bash help_text <<EOF Basic golang install. EOF include web if [ ! -d /usr/local/go ]; then curl 'https://storage.googleapis.com/golang/go1.12.linux-amd64.tar.gz' | \ tar -C /usr/local -xzf - fi ensure_dir /home/${webuser}/web/go ln -sf /usr/local/go/bin/go /usr/local/bin/go set_line "/home/${w...
true
21661d484385b5096ff387714e77477aa6055ee4
Shell
SODALITE-EU/xopera-rest-api
/xOpera-rest-blueprint/prerequisites.sh
UTF-8
1,946
3.71875
4
[]
no_license
#!/bin/bash PIP_INSTALLED=$(which pip3) if [ -z "$PIP_INSTALLED" ]; then echo echo read -p "pip3 is not installed. Do you wish to update and install pip? " ynp if [ "$ynp" != "${ynp#[Yy]}" ] ;then echo echo "Installing pip3" else echo echo "Abort." return ...
true
8314dafe05c601d9bf6b938af3c5b5581b6aa2f4
Shell
personal-distro-configurator/personal-distro-configurator
/pdc/sh/steps/_execute.sh
UTF-8
361
3.171875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # shellcheck disable=SC2154 for execution in "${pdcyml_execute[@]}"; do for i in ${!pdcyml_executors__command[*]}; do if [ "${pdcyml_executors__command[$i]}" = "$(cut -d ' ' -f1 <<< "$execution")" ]; then "${pdcyml_executors__function[$i]}" "${execution#${pdcyml_executors__c...
true
a511915782a543e04ec23471fc3b7fb911ce1275
Shell
DARMA-tasking/vt
/ci/clean_cpp.sh
UTF-8
174
2.90625
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -ex source_dir=${1} build_dir=${2} export VT=${source_dir} export VT_BUILD=${build_dir}/vt pushd "$VT_BUILD" cmake --build . --target clean popd
true
81ae79f9e930e3a55789effca96b14a2a2a6ae17
Shell
tortious/dotfiles-9
/install_scripts/install_hub.sh
UTF-8
735
3.546875
4
[]
no_license
#!/bin/sh if [ -f /usr/local/bin/hub ]; then exit 0 elif [ "$(uname)" = "Darwin" ]; then exit 0 fi sudo mkdir -p /usr/local/share/man/man1 TMPDIR=$(mktemp -d) VERSION='2.5.1' cd $TMPDIR URL="https://github.com/github/hub/releases/download/v$VERSION/hub-linux-amd64-$VERSION.tgz" wget -q $URL -O hub-linux-amd64-$...
true
cce67df59d34312d213409f645342b2d31fd53f2
Shell
Prometeo/scripts_post_installing_fedora
/script.sh
UTF-8
1,035
2.96875
3
[]
no_license
#! /bin/bash LIST_OF_APPS="ansible" # update system echo "Updating ..." sudo dnf -y update # install development tools # sudo dnf -y groupinstall "Development Tools" # install development libraries # sudo dnf -y groupinstall "Development Libraries" # add rpmfusion echo "Adding rpmfusion repository ..." sudo dnf insta...
true
e53b13b75ad7a52fdbbcf69039769dd293e4d5ab
Shell
soda-research/soda-poc
/kolla/etc/kolla/config/trove/cloudinit/mariadb.cloudinit
UTF-8
1,889
3.171875
3
[]
no_license
#!/usr/bin/env bash # add osc public key mkdir -p /home/trove/.ssh/ cat <<EOT >> /home/trove/.ssh/authorized_keys <SSH_PUBLIC_KEY> EOT # add osc private key mkdir -p /root/.ssh/ cat <<EOT >> /root/.ssh/id_rsa <SSH_PRIVATE_KEY> EOT chmod 600 /root/.ssh/id_rsa # link guestagent config ln -s /etc/trove/conf.d/trove-gue...
true
c294db3082acc0a1af52f03a677687e941534cbd
Shell
roadhump/dotfiles
/zsh/aliases.zsh
UTF-8
2,733
3.015625
3
[]
no_license
alias reload!=src alias r!='src' alias c='clear' alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'" alias sourcetree='open -a SourceTree' alias chrome="open -a google\ chrome" alias finder='open -a Finder' alias gitme="open 'http://github.com/roadhump'" alias vscode="'/Applic...
true
aa50b89c0b841fad0effd423eb2fadf5f6122b15
Shell
olethrosdc/beliefbox
/src/algorithms/tests/scripts/pareto_ucb.sh
UTF-8
1,428
2.6875
3
[]
no_license
#! /bin/bash #PBS -S /bin/bash # use one node with 8 cores: #PBS -lnodes=1:ppn=8 # job requires at most 16 hours, 0 minutes # and 0 seconds wallclock time #PBS -lwalltime=48:00:00 # cd to the directory where the program is to be called: exc=$HOME/projects/beliefbox/src/algorithms/tests/bin/pareto_ucb actions=16 ou...
true
5837c6250afd1ae85b61f9f3b070f11146ace2d3
Shell
kangdazhi/pci-passthrough
/code/misc/sum_vm_exit_percentage_by_reason.sh
UTF-8
350
4.09375
4
[]
no_license
#!/bin/bash # For a given VM-exit reason, sum up its percentages. # Get the command line arguments. if [ $# -ne 2 ]; then echo "Usage: $0 <VM EXIT REASON> <KVM PROFILE>" exit 1 fi reason=$1 kvm_profile=$2 # Sum the percentage of VM exits grep -ie "${reason}" ${kvm_profile} | awk '{print $1}' | tr '%' ' ' | awk ...
true
c13622274399239aad997abf5f16a788836fa52a
Shell
richardc/marionette-collective
/ext/aio/suse/mcollective.init
UTF-8
3,978
3.703125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # # mcollective Application Server for STOMP based agents # # chkconfig: 345 24 76 # # description: mcollective lets you build powerful Stomp compatible middleware clients in ruby without having to worry too # much about all the setup and management of a Stomp connection, it also provides ...
true
685cf168729a70bb63d31d98153f8abb1b8f26c1
Shell
BrunoSilvaFreire/polybar-module-news
/install.sh
UTF-8
438
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh # this script installs the polybar module news destdir=${HOME}/.config/polybar/scripts/news polybar_conf=${HOME}/.config/polybar/config install -d "${destdir}" install -b -m 644 ./*.conf ./*.py rss.feeds "${destdir}" install -m 554 news.sh "${destdir}" if [ -f "${polybar_conf}" ]; then cat polybar.con...
true
fa05e96ac0058f37ad20034c290b058ed16436a4
Shell
Hardeep18/shell_script_01
/env.sh
UTF-8
339
2.8125
3
[]
no_license
#!/bin/bash clear echo "This script will give us the enviornment Information" echo "====================================================" echo "" echo "Hello username: $USER" echo "" echo "Your home Directory is $HOME" echo "" echo "Your History file will Ignore: $HISTCONTROL" echo "" echo "Your Terminal session type...
true
6f321c364926c3ae8ee5bf070057790c87d476fa
Shell
anlzou/linux-shell_test
/centos-shell/ruanyif/shell_variable.sh
UTF-8
8,466
3.84375
4
[]
no_license
#环境变量是 Bash 环境自带的变量,进入 Shell 时已经定义好了,可以直接使用。它们通常是系统定义好的,也可以由用户从父 Shell 传入子 Shell。 #env命令或printenv命令,可以显示所有环境变量。 #下面是一些常见的环境变量。 #BASHPID:Bash 进程的进程 ID。 #BASHOPTS:当前 Shell 的参数,可以用shopt命令修改。 #DISPLAY:图形环境的显示器名字,通常是:0,表示 X Server 的第一个显示器。 #EDITOR:默认的文本编辑器。 #HOME:用户的主目录。 #HOST:当前主机的名称。 #IFS:词与词之间的分隔符,默认为空格。 #LANG:字符集以及语言编码...
true
0ab7cb4647f2e4385b5a0be2c39602f5af0f150b
Shell
BarneyBuffet/docker-btc-rpc-explorer
/entrypoint.sh
UTF-8
12,784
3.890625
4
[ "MIT" ]
permissive
#!/bin/bash set -eo pipefail # Set config file variable EXP_CONFIG_FILE=${CONFIG_DIR}/btc-rpc-explorer.env ############################################################################## ## Map container runtime PUID & PGID ############################################################################## map_user(){ ##...
true
9beaa02e92ee3ee9bdd2aae5c7b52201955b493c
Shell
martin-der/gradle-shell-plugin
/test/tool/test_runner.sh
UTF-8
383
3.0625
3
[]
no_license
#!/usr/bin/env bash source "$(dirname "${BASH_SOURCE[0]}")/extra_assertions.sh" mkTestResultsDir() { mkdir -p "${MDU_SHELLTEST_TEST_GENERATED_DIRECTORY}" } runTests() { source "${MDU_SHELLTEST_TESTUNIT_SHUNIT2_EXEC}" || exit ${MDU_SHELLTEST_TEST_EXECUTION_ERROR_EXIT_CODE} [ ${__shunit_testsFailed} -gt 0 ] && exit...
true
ca4e6e9bb8efccc2a71f5717de93f207ee5e8f11
Shell
gravity-platform/vagrant-centos-7-php
/vendor-wrapper.sh
UTF-8
456
3.203125
3
[]
no_license
#/bin/sh # Simple wrapper for potentially vendorized bins # # This script is always called through a symlink. ie 'phpunit -> vagrant-centos-7-php-wrapper.sh'. # # @author Lucas Bickel <lucas.bickel@swisscom.com> # @license GPL # @link http://swisscom.com REQUESTED_BIN=`basename ${0}` if [[ -f ${PWD}/vendor/bin/${...
true
55895cb198e01c9dcadcc3ae6a7c28103d6590c9
Shell
shengyongniu/bulk_rna_seq_tophat
/RNA_flagstat.sh
UTF-8
279
2.546875
3
[]
no_license
#!/bin/bash -l module load samtools for file in *_thout/accepted_hits.bam ; do echo "${file}" >> RNA_merge_170415_NB501164_170506_NB501164_flagstat.txt ; OUTPUT="$(samtools flagstat $file)" ; echo "${OUTPUT}" >> RNA_merge_170415_NB501164_170506_NB501164_flagstat.txt ; done
true
8522e9ad645a2e4b71dcdfab08a484f863913012
Shell
exaltedmt/PA2
/autograder/test.sh
UTF-8
263
2.96875
3
[ "MIT" ]
permissive
#!/bin/bash tmpoutput=`echo -e freddy '\n' susan | ./a.out` CORRECT=0 f1=`echo $tmpoutput | grep -q 'freddy'` if [ $? = 0 ]; then let CORRECT=CORRECT+1 fi f1=`echo $tmpoutput | grep -q 'susan'` if [ $? = 0 ]; then let CORRECT=CORRECT+1 fi exit $CORRECT
true
aec3bf796170485a197f817ce262ea1c3a42f95f
Shell
nuitrcs/examplejobs
/alphafold/v2.1.1/example_submit_cpu_part.sh
UTF-8
2,227
2.78125
3
[]
no_license
#!/bin/bash #SBATCH --account=pXXXX ## YOUR ACCOUNT pXXXX or bXXXX #SBATCH --partition=short ### PARTITION (buyin, short, normal, etc) #SBATCH --nodes=1 ## how many computers do you need #SBATCH --ntasks-per-node=12 ## how many cpus or processors do you need on each computer #SBATCH --time=04:00:00 ## how long does t...
true
41cd02b2c5a81867105412fa390c6397304044ab
Shell
anirvanr/scripts
/start-mongo-shard.sh
UTF-8
4,235
3.390625
3
[]
no_license
#!/usr/bin/env bash set -e # This script will start three shards, a config server and a mongos, all on the current machine. # This script is only for testing purposes. In production, you would run each of these servers on a different machine. # It was written for Mongo v4.0.6 # clean everything up echo "killing mong...
true
b24f35aebc262b4f8fbba4a818a09d176837f312
Shell
navalekar-juhi/Network-Structure-Cloud-Computing
/Infrastructure/cloudformation/aws-cf-create-stack.sh
UTF-8
1,600
3.359375
3
[ "Apache-2.0" ]
permissive
STACK_NAME=$1 AWSREGION1=$2 AWSREGION2=$3 AWSREGION3=$4 VPC_NAME=${STACK_NAME}-csye6225-vpc SUBNET1_NAME=${STACK_NAME}-csye6225-subnet1 SUBNET2_NAME=${STACK_NAME}-csye6225-subnet2 SUBNET3_NAME=${STACK_NAME}-csye6225-subnet3 IGNAME=${STACK_NAME}-csye6225-InternetGateway PUBLIC_ROUTE_TABLE=${STACK_NAME}-csye6225-public-r...
true
ea5985a68c181792141728add23a276b703c6066
Shell
kversl/bash-snippets
/CaptureOneCatalogAddExifContent/setGeoOnImage.sh
UTF-8
4,236
3.90625
4
[]
no_license
#!/bin/bash # # required: ########################## # CaptureOne on MacOSX # #################################### # VARS: # - Image name (part of) # - overwrite? # - latitude/longitude # - path to CaptureOne Catalog ###################################### USAGE=" ==================================== add...
true
ba917bf631c376750c96d55f152e136cca380de1
Shell
B-Rich/autoscripts-for-cpeg657
/plot/enum.sh
UTF-8
184
3.03125
3
[]
no_license
#!/bin/bash cnt=1 for i in `cat xy.txt | head -1` do for j in `cat xy.txt | tail -1` do line=`cat input.txt|head -$cnt|tail -1` echo "[$i, $j]: $line" let "cnt+=1" done done
true
eb3c10bed898d7fdd6aa2f7ad3c0da3c2a637643
Shell
mj/dotfiles
/.zsh/mj.zsh-theme
UTF-8
2,186
3.71875
4
[]
no_license
# # Based on the awesome agnoster theme - https://gist.github.com/3712874 # CURRENT_BG='NONE' PRIMARY_FG=black # Characters SEGMENT_SEPARATOR="\ue0b0" PLUSMINUS="\u00b1" BRANCH="\ue0a0" DETACHED="\u27a6" LIGHTNING="\u26a1" # Begin a segment # Takes two arguments, background and foreground. prompt_segment() { loc...
true
238228c451ab4e219f567b32f2a146e8a8d14d5b
Shell
moogates/yarmproxy
/test/redis/set7.sh
UTF-8
470
3.4375
3
[]
no_license
#!/bin/bash YARMPROXY_PORT=11311 if [ $# -gt 0 ]; then YARMPROXY_PORT=$1 fi gunzip -c ./set7.data.gz | ../yarmnc 127.0.0.1 $YARMPROXY_PORT > set7.tmp # cat set7.tmp expected_count=$(gunzip -c set7.data.gz | grep "^*" | wc -l | awk '{print $1}') count=$(cat set7.tmp | wc -l | awk '{print $1}') if [ $count -ne $exp...
true
79d2da5158cdc3da1d637144782ccdb1b7f86628
Shell
kinoulink/infra
/stacks/manager/rsync/rsync
UTF-8
456
2.90625
3
[]
no_license
#!/bin/bash OWNER=${OWNER:-www-data} GROUP=${GROUP:-www-data} chown "${OWNER}:${GROUP}" "${VOLUME}" [ -f /etc/rsyncd.conf ] || cat <<EOF > /etc/rsyncd.conf uid = ${OWNER} gid = ${GROUP} use chroot = yes log file = /dev/stdout reverse lookup = no [server] read only = false path = /opt/ktv/shares/server [inf...
true
dc9cabbfc1e95de69f186a5d75f56d6e6662d787
Shell
swesterfeld/bfsync
/src/link-del-test.sh
UTF-8
655
3.359375
3
[]
no_license
#!/bin/bash usage() { echo "link-del-test.sh <dir>" exit 1 } [ -d "$1" ] || usage; mkdir -p $1/mnt-a mkdir -p $1/mnt-b bfsync init $1/master bfsync clone $1/master $1/repo-b bfsync clone $1/master $1/repo-a bfsyncfs $1/repo-a $1/mnt-a bfsyncfs $1/repo-b $1/mnt-b for i in $(seq 10) do for n in $(seq 1 ${i}0...
true
c6bc5a2b27b2fe5bfb2987565b0344a0e99ae85f
Shell
VicRef/Bash_Game_Simple_Snake
/catch_arrow_keys.sh
UTF-8
157
2.890625
3
[]
no_license
while true do read -r -sn1 t case $t in A) echo up ;; B) echo down ;; C) echo right ;; D) echo left ;; esac done
true
80f71a7c55e7cc653a722cc412eadde1e4e9d11e
Shell
artur-cabral/BashScript_Project
/animatedGif
UTF-8
989
3.859375
4
[]
no_license
#!/bin/bash echo "============================================================" echo "Author: Artur Cabral" echo "running animatedGif script File..." #Summary: The goal for this script is to transform .gif pictures into one animated gif # taking the arguments given by the user for the name, the starting number, and the...
true
6ba5d285ca7c2036f51c4d509f04ff9c264c955a
Shell
sjyoo/coexpression
/deps/WGCNA/install-r-packages.sh
UTF-8
1,872
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash dest=${TARGET-/usr/} runt=${KB_RUNTIME-/usr}/bin srcd="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo "using $dest as installation directory"; echo "using $runt as kb_runtime directory"; echo "using $srcd as package directory"; ### # Warning: the following installation package assumes the latest v...
true
e8738b390ffef48fd6484f0351ede930987dd7c3
Shell
Zemotacqy/hazelcast-simulator
/dist/src/main/dist/jdk-install/jdk-oracle-6-64.sh
UTF-8
211
2.765625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e source jdk-support.sh installPackage wget JDK_FILE="jdk-6u45-linux-x64.bin" cd ~ wget --no-verbose -N "$BASE_URL/$JDK_FILE" chmod +x ${JDK_FILE} ./${JDK_FILE} addJavaHome "~/jdk1.6.0_45"
true
e7766a0d658cf75e26d9d50ec2c77e2921da6ab8
Shell
andrewsoong/EnKF_crtm
/DA/module_enkf.sh
UTF-8
9,496
3.28125
3
[]
no_license
#!/bin/bash . $CONFIG_FILE rundir=$WORK_DIR/run/$DATE/enkf if [[ ! -d $rundir ]]; then mkdir -p $rundir; echo waiting > $rundir/stat; fi cd $rundir if [[ `cat stat` == "complete" ]]; then exit; fi #Check dependency wait_for_module ../../$PREVDATE/wrf_ens ../obsproc ../icbc if [[ $DATE == $LBDATE ]]; then wait_for_m...
true
6987130fe08bf1b25fe982acf918541a256c72fd
Shell
theodore/olympiads
/HOJ/1001/run.sh
UTF-8
153
2.515625
3
[]
no_license
#!/bin/bash -e for (( i = 0; i < $1; ++i )) do echo "test case #$i" echo $RANDOM $2 $3 $4 | ./data ./spfa ./rabbit < "in" > "out" diff ans out done
true
8350c7a3de646c49f7649d6aacb209dbc41ea458
Shell
TianZongyang/fastdfs_DockerFile
/start.sh
UTF-8
1,483
3.484375
3
[ "MIT" ]
permissive
#!/bin/bash #set -e if [ -n "$PORT" ] ; then sed -i "s|^port=.*$|port=${PORT}|g" /etc/fdfs/"$FASTDFS_MODE".conf fi if [ -n "$WEB_PORT" ] ; then sed -i "s|^http\.server_port=.*$|http\.server_port=${WEB_PORT}|g" /etc/fdfs/"$FASTDFS_MODE".conf sed -i "s|listen 80|listen ${WEB_PORT}|g" /usr/local/nginx/...
true
c40d41e8510cad28d2921220acc6c733214d02d6
Shell
MrVortexx/exercicios-shell-script
/exercicio4
UTF-8
142
2.84375
3
[]
no_license
#!usr/bin/env bash for i in *.txt; do actual_name= echo $"$i" cp "$i" "$i.bak" | sed -i 's,the,an,g' $echo "$i.bak" done
true
7a24420a059aa2645e28660d7be48fd916319628
Shell
ibrahimaycan/Shell-Scripts
/myprog4.sh
UTF-8
608
3.921875
4
[]
no_license
num=$1 #-------------------------------------- if [ $# -ne 1 ] then echo "please enter 1 argument" exit fi #--------------------------------------checks if argumant is a number re='^[0-9]+$' if ! [[ $1 =~ $re ]] ; then echo "argument must be a number" >&2; exit fi #--------------------------------------- c=...
true
e5aea9d1fe9ebda0be6ecd8ee81b454a68830e11
Shell
jenkins-x-apps/jx-app-jenkins
/plugins/updateplugins.sh
UTF-8
445
3.21875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh echo "updating the plugins to the latest verions" #updatebot pull -k plugins echo "adding plugins to ../jx-app-jenkins/values.schema.json" filename="plugins.txt" while read p; do pluginstxt=$pluginstxt\"$p\", done < $filename # trim the trailing , pluginstxt=`echo $pluginstxt | sed 's/.$//'` sed "s/\...
true
d05fa9a484c4940cc1c0029ef8ff3ec2f7a9eddc
Shell
foobarlab/funtoo-stage3-packer
/etc/build.conf
UTF-8
1,677
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash -uea # vim: ts=4 sw=4 et set -a # customized user configuration # overrides defaults in bin/config.sh # run `make config` to see actual settings BUILD__HELP="see file 'etc/build.conf' for customizing settings" # ----------------------------! customize settings below !---------------------------- ## m...
true
61915db8e4ceed5d225dc7e5ede1d114bc55836e
Shell
omarkaramat/bash
/variables.sh
UTF-8
131
2.96875
3
[]
no_license
#!/bin/bash echo "$$" # pid of current bash script for n in {0..5} do echo "BASH_VERSINFO[$n] = ${BASH_VERSINFO[$n]}" done
true