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
1fb92a1791d50ee9a7a1fe37823a68d4f33db9b8
Shell
tdesaules/graphql-demo-web
/.devcontainer/setup.sh
UTF-8
1,495
3.890625
4
[ "MS-PL" ]
permissive
#!/bin/ash USERNAME=$2 USER_UID=$3 USER_GID=$4 set -e if [ "$(id -u)" -ne 0 ]; then echo 'Script must be run a root. Use sudo or set "USER root" before running the script.' exit 1 fi # Install git, bash, dependencies, and add a non-root user apk add --no-cache \ git \ openssh-client \ bash \ ...
true
59e7360c2f717bf39e40eb9c35e33fbdd65e196c
Shell
BlackLacost/.dotfiles
/home/.xinitrc
UTF-8
959
2.734375
3
[]
no_license
#!/bin/sh # userresources=$HOME/.Xresources # usermodmap=$HOME/.Xmodmap # sysresources=/etc/X11/xinit/.Xresources # sysmodmap=/etc/X11/xinit/.Xmodmap # # merge in defaults and keymaps # if [ -f $sysresources ]; then # xrdb -merge $sysresources # fi # if [ -f $sysmodmap ]; then # xmodmap $sysmodmap # fi # i...
true
94322fe0b501212c3bc4e7616c376efbbefb566d
Shell
akbaraziz/bash_scripts
/tested/install_and_configure_containerd.sh
UTF-8
1,267
3.0625
3
[]
no_license
#!/bin/bash # Script author: Akbar Aziz # Script site: https://github.com/akbaraziz/bash_scripts/blob/master/tested/install_and_configure_containerd.sh # Script date: 06/05/2020 # Script ver: 1.0.0 # Script purpose: To install and configure containerd. # Script tested on OS: CentOS and Redhat 7.x #---------------------...
true
a8d26eef7fd5b49b967ba94fc181052631c2ae87
Shell
yuanguohuo/backup
/proxy/test/bash/head_obj.sh
UTF-8
983
3.375
3
[]
no_license
#!/bin/bash dir=`dirname $0` . $dir/s3cfg bucket=$1 objname=$2 if [[ -z "$bucket" ]] || [[ -z "$objname" ]] ; then echo "Error: argument missing" echo "Usage: {bucket-name} {object-name}" exit 1 fi host=127.0.0.1:6081 date=$(date --utc -R) header="HEAD\n\n\n${date}\n/$bucket/$objname" #StringToSign = H...
true
cdaea6ac520b9d8d587b64f36972ce2f594cc9c3
Shell
OmreeBenari/emacs-conf
/.bashrc
UTF-8
505
2.8125
3
[]
no_license
cd () { command pushd "$@" > /dev/null } export ALTERNATE_EDITOR="" export EDITOR="emacsclient -t" # $EDITOR should open in terminal export VISUAL="emacsclient -c --display=localhost:current -a emacs" # $VISUAL opens in GUI with non-daemon as alternate if [[ "$TERM" == "dumb" ]] ; then alias...
true
d37767cc1a76f6fbbf9a6f7cdf0de1ecf10cb123
Shell
jarvisjiax/yocto-101
/app_development/dockcross/resource/dockcross_hello/compile.sh
UTF-8
585
3.84375
4
[]
no_license
#!/bin/bash set -e if [ $# -lt 2 ]; then echo "Usage: ./compile.sh <myapp.c> <output_dir> <dockcross-toolchain-bin>" echo "Example: ./compile.sh hello.c ." echo " Or" echo " ./compile.sh hello.c . dockcross-linux-armv7" exit 1 elif [ ! -f $1 ]; then echo "The input file does not exist!" exit 1 elif [ ! -d $2 ]...
true
931163b1cd66e4822a58d243e30ee4a2f3fc30b1
Shell
eric-muchiri/shell-walkthrough
/01-scripts101/hello.sh
UTF-8
500
3.609375
4
[]
no_license
#!/bin/bash echo "Hello world!" #output hello world <<EOF the below is a multiline comment this is in a shell script ... EOF greeting="Hello there" echo $greeting #read only variables name="Doe" readonly name echo $name name="John" echo $name #removing a variable using unset my_name="simon" #echo $my_name unset my_name...
true
1d0bff03f430f866478ecfb38a0bdee95e33b2a6
Shell
pavel-trafimuk/timeinc-storefront
/bin/getsetting
UTF-8
295
2.546875
3
[]
no_license
#!/bin/bash cd $(dirname $0) cd .. SETTING="$1" BRAND="$2" SCRIPT="window=global; localStorage={};" SCRIPT="${SCRIPT};$(cat store/settings/${BRAND}.js)" SCRIPT="${SCRIPT};$(cat store/settings/settings_loader.js)" SCRIPT="${SCRIPT};console.log(window.settings.${1});" echo "${SCRIPT}" | node
true
da1e98e00c875c7599a055359fac96d99e4eac07
Shell
ianxm/openshift-neko-nginx
/.openshift/action_hooks/build
UTF-8
521
2.828125
3
[]
no_license
#!/bin/bash # This is a simple build script and will be executed on your CI system if # available. Otherwise it will execute while your application is stopped # before the deploy step. This script gets executed directly, so it # could be python, php, ruby, etc. BASE=$OPENSHIFT_DIY_DIR REPO=$OPENSHIFT_REPO_DIR DATA=...
true
86e0602c03c74b9a668abf71055bc9135d50ee0a
Shell
elor/eltools
/src/git/gitarchiveinit.sh
UTF-8
3,118
4.15625
4
[ "MIT" ]
permissive
#!/bin/bash # # creates final.xyz, converts it to lmp data file, corrects it and invokes # lammps for rdf calculation # # syntax: $0 <dump.xyz> # note: use "--" instead of a file name to read from stdin # list of required software required="gitoliterepos.sh githubrepos.sh git" # show syntax and exit fail(){ cat >...
true
7287a6324f751fd4b630bca10dfd2d922adf0ed8
Shell
letaylor/tutorials
/cromwell/lib-cromwell/scripts/cromwell-server-start.sh
UTF-8
2,679
3.734375
4
[ "MIT" ]
permissive
#!/bin/sh #=============================================================================== #title :cromwell-server-start.sh #description :Boots up a cromwell server #author :Leland Taylor #date :05/20/2019 #version :0.1 #usage :sh romwell-server-start.sh [input] #input :CROMWELL...
true
b0b04027bd7d0cacec0b4d5da452d8abaf14da44
Shell
FernandoBasso/dotfiles
/bin/vim-colors-num-to-hex.sh
UTF-8
136
2.609375
3
[]
no_license
#!/usr/bin/bash # # • https://vi.stackexchange.com/a/9755/15803 # for i in {0..255} ; do printf "\x1b[38;5;${i}mcolour${i}\n" done
true
b131f92d8af22ea574ac5bf60c582af9f575dc1d
Shell
Ultraschall/ultraschall-installer
/macos/build.sh
UTF-8
32,103
3
3
[ "MIT" ]
permissive
#!/bin/bash ################################################################################ # # Copyright (c) The Ultraschall Project (http://ultraschall.fm) # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files...
true
7fb57f7fa794ca0e84ae939927cbfc1508ceccbe
Shell
hugobenichi/doodles
/pbutler/splitraws.sh
UTF-8
90
2.734375
3
[]
no_license
#!/bin/bash set -eux rawe="RAF" targ=$1 mkdir -p $targ/raw mv $targ/*$rawe $targ/raw/
true
d8b0392118545459b5bf474bedafe5af78229e25
Shell
NickTomlin/dotfiles
/home/.terminal_config/functions.zsh
UTF-8
2,601
3.453125
3
[]
no_license
## got to git root directory ## http://stackoverflow.com/a/957978/1048479 function groot() { cd "$(git rev-parse --show-toplevel)" } # base64 encode a file, ## source: @mathias-bynens comment to http://superuser.com/a/120815/146376 ## @todo format this into a css data url base64() { openssl base64 < $1 | tr -d '\n...
true
e7c429230574e2f94db464d6462fb04418261493
Shell
awslabs/service-workbench-on-aws
/scripts/get-info.sh
UTF-8
4,437
3.625
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "MIT-0", "OFL-1.0", "MIT", "CC-BY-4.0", "OFL-1.1" ]
permissive
#!/bin/bash set -e set -o pipefail pushd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null # shellcheck disable=SC1091 [[ $UTIL_SOURCED != yes && -f ./util.sh ]] && source ./util.sh popd > /dev/null # Setup the execution command init_package_manager ## # Sets the following environment variables containing information ab...
true
810353fc7a870164212a91bc6c39a2a8e4dda512
Shell
Biggybi/dotfiles
/bin/timer
UTF-8
550
3.40625
3
[]
no_license
#!/bin/bash user_time=$1 date1=$(($(date +%s) + $user_time)) # i=2 # while [ $i -le $# ] # do # to_run="$to_run ${@:$i:1}" # ((i++)) # done # [ $to_run ] && echo "to run = $to_run" while [ "$date1" -ge `date +%s` ] do echo -ne "$(date -u --date @$(($date1 - `date +%s` )) +%H:%M:%S)\r" done # [ $to_run ] && eval $...
true
3c51cf9fc01c0cb105b34f6bdf41cd299be70558
Shell
moulayrchid/swap1516
/practica4/scriptAB.sh
UTF-8
1,496
2.765625
3
[]
no_license
#! /bin/bash #echo "Práctica 4 SWAP" > pruebaAbMaquina1.txt #echo "Práctica 4 SWAP" > pruebaAbMaquina2.txt #echo "Práctica 4 SWAP" > pruebaAbBalanceadorNginx.txt #echo "Práctica 4 SWAP" > pruebaAbBalanceadorHaproxy.txt for a in $( seq 30 ); do echo "######################## Prueba $a en la maquina1 ########...
true
74cd7ece1cf56389e3682b37ee8b950b8ea30463
Shell
laishulu/conf
/zsh/aliases.zsh
UTF-8
1,647
3.125
3
[]
no_license
function ls() { command ls --color "$@" 2>/dev/null || command ls "$@" } alias lll="ls -1" alias gf="git flow" function UpdateZsh() { if [[ -z "${CONF_DIR}" ]]; then if [[ -f "~/conf/zsh/aliases.zsh" ]]; then export CONF_DIR="~/conf" else echo "<CONF_DIR> environment variable is not defined" fi else ...
true
91a5e182409f27379605f7b145ff115ea7244746
Shell
swetha-11-srisai/main
/whilenutural.sh
UTF-8
131
3.203125
3
[]
no_license
read -p "enter a size:" n i=1 sum=0 read -p "enter number:" x while [ $i -le $n ] do sum=$((sum+x)) i=$((i+1)) done echo "$sum"
true
6ed7d05227e62731d5fc24857d74dc88b572b7db
Shell
ryry0/Rpaca-Repository
/compton.rpac
UTF-8
1,362
3.828125
4
[]
no_license
#!/bin/bash # check INSTALL file of packages to determine ENVAR for install location # just have each function die in the middle if failure # Overloaded variables: PKG="compton" VER="git" EXT="tar.gz" # extension of download URL="https://github.com/chjj/$PKG.git" DESCRIPTION="A compositor for X11" CFLAGS="NO_LIBCONFIG...
true
9e456ca4d765cb4638ed4041885d232dc1a388f6
Shell
godane/abs
/community/emms/PKGBUILD
UTF-8
976
2.734375
3
[]
no_license
# Contributor: Gour <gour@mail.inet.hr> pkgname=emms pkgver=3.0 pkgrel=1 pkgdesc="The Emacs Multimedia System" url="http://www.gnu.org/software/emms/" arch=('any') license=('GPL3') depends=('emacs' ) install=${pkgname}.install source=(http://www.gnu.org/software/$pkgname/download/$pkgname-$pkgver.tar.gz) md5sums=('0f...
true
9d64805365c96b490abe402006fa641694aac569
Shell
FauxFaux/debian-control
/c/cron-apt/cron-apt_0.13.0_all/postrm
UTF-8
387
3.140625
3
[]
no_license
#!/bin/sh -e # Cron-apt postrm script using debconf # Written by Ola Lundqvist <opal@debian.org> case "$1" in purge) if [ -d /var/log/cron-apt ] ; then rm -Rf /var/log/cron-apt fi ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "po...
true
7e55324dc2ce66196c8baa59c7b6a5b0d68d26d4
Shell
chaitanya-mwa/DevOps-dockerfiles
/lua/install.sh
UTF-8
447
2.828125
3
[]
no_license
#!/bin/sh set -e set -u set -x LUA_VERSION=5.3.0 LUA_SOURCE_ARCHIVE=lua-${LUA_VERSION}.tar.gz LUA_SOURCE=lua-${LUA_VERSION} dnf -y install tar make gcc readline-devel curl http://www.lua.org/ftp/${LUA_SOURCE_ARCHIVE} > /${LUA_SOURCE_ARCHIVE} tar zxf /${LUA_SOURCE_ARCHIVE} -C / make -C /${LUA_SOURCE} linux test inst...
true
6b8a1eabfa747bb501ae08ed95ffa6488a083204
Shell
aronnebrivio/B2G
/patch.sh
UTF-8
650
3.71875
4
[ "Apache-2.0" ]
permissive
#!/bin/sh if [ -d sourcefix ] then echo Patching source tree... cd sourcefix echo Replacing files... FILELIST=$(find .|grep --invert-match .patch) for FILETOPATCH in $FILELIST; do if [ -e ../$FILETOPATCH ] then cp $FILETOPATCH ../$FILETOPATCH else echo $FILETOPATCH does not exist fi done echo Done...
true
aff570063227808adf9c6ba33ee3c87bd667c6a7
Shell
Alice10241998/1092_nsysu_UNIX
/PA5/checkYourOutputPA5.sh
UTF-8
467
2.8125
3
[]
no_license
echo "Be patient. This might take up to 2 minutes to run..." ((source ~/PA4/testInputPA5.sh);(tail -4 ~/PA4/testInputPA5.sh>~/PA4/_tmptest;source ~/PA4/_tmptest;rm ~/PA4/_tmptest))|sed '/$ exit/{N;N;N;d}'>~/PA4/testOutputPA5.txt echo ______________________________________________________________________ echo Finished R...
true
849046a179f0de14a8ce9154e46bd1bb7999dcf5
Shell
ifl0w/RandomWallpaperGnome3
/container/runx11docker.sh
UTF-8
542
3.421875
3
[ "MIT" ]
permissive
#!/bin/sh SCRIPT_DIR=$(dirname $(readlink -f $0)) SRC_DIR=$SCRIPT_DIR/../randomwallpaper@iflow.space DST_DIR=/home/dev/.local/share/gnome-shell/extensions/randomwallpaper@iflow.space if [ -z "$1" ] then echo "$(basename $0): Provide your docker image as an argument" exit 22 fi echo "$(basename $0): You mig...
true
8c371182970253a61cd78d3d7038c4373e3f1f4f
Shell
w796933/docker-bind-1
/script_init.sh
UTF-8
4,114
2.796875
3
[]
no_license
#!/bin/bash set -euxo pipefail export DEBIAN_FRONTEND=noninteractive apt-get -yq update < /dev/null apt-get -yq upgrade < /dev/null apt-get -yq install bind9 bind9utils bind9-host < /dev/null mkdir -m 0775 -p /var/run/named chown root:bind /var/run/named mkdir -m 0775 -p /var/cache/bind chown root:bind /var/cache/bi...
true
89e18845530e75f3869187baf4b5d45f9b23f23b
Shell
buildpack-ci/heroku-buildpack-multi
/bin/test-compile
UTF-8
1,887
3.953125
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -e unset GIT_DIR BUILDPACK_MULTI_PASS_IF_MISSING_TEST_SCRIPTS=${BUILDPACK_MULTI_PASS_IF_MISSING_TEST_SCRIPTS:=false} for BUILDPACK in $(cat $1/.buildpacks); do dir=$(mktemp -t buildpackXXXXX) rm -rf $dir url=${BUILDPACK%#*} branch=${BUILDPACK#*#} if [ "$branch" == "$url" ]; then ...
true
c713d9492a487b0db5af236d30b693f6d3d0c7d7
Shell
dramforever/config
/home/nixenv.zsh
UTF-8
1,921
3.515625
4
[ "MIT" ]
permissive
declare -A nixenv_paths nadd() { setopt local_options err_return pipefail local out out_paths for installable in "$@"; do local with_outputs="$installable^*" if [[ "$installable" = *"^"* ]]; then with_outputs="$installable" fi local out="" out=(${(@f)"$(...
true
5c397ed31b3d959ee4f31803fa329508f23ae273
Shell
prenaux/ham
/bin/hamx
UTF-8
2,110
4.5
4
[ "Jam", "MIT", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash if [[ -z "$HAM_HOME" ]]; then export HAM_HOME="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )" echo "W/HAM_HOME not set, set to:" $HAM_HOME fi . "$HAM_HOME/bin/ham-bash-setenv.sh" function usage() { echo "usage: hamx :toolkit ENV=value -ham-flag target script.sh ..." echo "" echo ...
true
4cccd76874f9bb726a8788b20adffa824c6b6456
Shell
sruthi23/dotfiles
/script/hostsinit
UTF-8
1,649
4.21875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # # Modify /etc/hosts to set up an ad free browsing experience # Thanks to https://github.com/StevenBlack/hosts info () { printf "\r [ \033[00;34m..\033[0m ] $1\n" } user () { printf "\r [ \033[0;33m??\033[0m ] $1\n" } success () { printf "\r\033[2K [ \033[00;32mOK\033[0m ] $1\n" } fail...
true
1e39e2894262e2f86facb70fd7d0e739a5a74970
Shell
lskatz/fasten
/tests/fasten_sample.sh
UTF-8
1,049
3.703125
4
[ "MIT" ]
permissive
#!/bin/bash set -e INPUT=testdata/four_reads.pe.fastq reads=$(for i in $(seq 1 1000); do cat $INPUT; done;) not_downsampled=$(echo "$reads" | ./target/debug/fasten_sample) ten_percent=$(echo "$reads" | ./target/debug/fasten_sample --frequency 0.1) fifty_percent=$(echo "$reads" | ./target/debug/fasten_sample --freque...
true
f90654588125d8fa39a6db044e1dc428a867376d
Shell
CloudTestDrive/helidon-kubernetes
/setup/kubernetes-labs/executeRunStack.sh
UTF-8
2,636
4.0625
4
[]
no_license
#!/bin/bash SCRIPT_NAME=`basename $0` if [ $# -lt 2 ] then echo "$SCRIPT_NAME Missing arguments, you must provide :" echo " 1st arg the name of your department - in lower case and only a-z, e.g. tg" echo " 2nd arg the ingress controller IP address" echo "Optional" echo " 3rd arg the name of the ku...
true
66fe04764f040705dafadb95bd967052f292c652
Shell
ArtemBotnev/DeveloperScripts
/git_utils/commit.sh
UTF-8
648
4
4
[ "MIT" ]
permissive
#!/bin/bash # Created by Artem Botnev on 03/19/2020 # creates commit with all changes. # Adds branch name before message # example of usage: # current branch name is super_branch # ./commit.sh 'it is new cool commit' # will be created commit with message: super_branch it is new cool commit # check your remote remote...
true
d57c5a58f944ce5e07faf0dd7a52c06f828dbb71
Shell
surajnarwade/scripts
/shell/post_adb_installer/installer.sh
UTF-8
3,155
2.625
3
[]
no_license
#!/bin/bash set -x ############################### # create all the files cd curl -O https://raw.githubusercontent.com/surajssd/scripts/master/shell/configs/.gitconfig cat > ~/.vimrc <<EOF set nu set expandtab set tabstop=4 set shiftwidth=4 set clipboard=unnamed EOF cat > ~/list-all.sh <<EOF kubectl get pods kubec...
true
247914bd9954ed426d4e86014b68076cf7761cff
Shell
karanthukral/bootstrap
/provision/mac.sh
UTF-8
1,487
3.46875
3
[]
no_license
#!/bin/bash # Install Xcode Command Line Tools xcode-select -p if [[ $? -ne 0 ]]; then echo "Installing Command Line Tools" # Create the placeholder file that's checked by CLI updates' .dist code in Apple's SUS catalog touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress # find the CLI Tools u...
true
66d566fbc2cbb02627aaf5f98bb0838628351aae
Shell
sherlock-test/cang01
/test03.sh
UTF-8
190
3.328125
3
[]
no_license
#!/usr/bin/bash while true do read -p "Please input you name: " v1 if [ -z "${v1}" ];then echo "你没有输入任何信息,请输入: " else echo "你输入的是 ${v1} "; exit fi done
true
602a403b127468f7d0d338458199009d2a7703bb
Shell
mgijax/pwts_prototype
/Configuration.default
UTF-8
1,261
3
3
[]
no_license
#!/bin/bash # if MGICONFIG is not set, then set it # you can override MGICONFIG later, if need be if [ "${MGICONFIG}" = "" ] then MGICONFIG=/user/local/mgi/live/mgiconfig export MGICONFIG source ${MGICONFIG}/master.config.sh fi # needs to be the directory of this project PWTS=${MGI_LIVE}/pwts_prototype ex...
true
fcff3f81afca69fc5c47090ecc102332d9371d8e
Shell
pmourey/UNIX
/EscapeDoubleQuote/EscapeDoubleQuote.sh
UTF-8
451
3.125
3
[]
no_license
#!/bin/bash INFILE=input.txt #tail -n +2 $INFILE | sed 's/\(|".*\)?"\([^|]\)*"\(.*"|\)/\1\/"\2\/"\3/g' #awk ' BEGIN { RS="\"" ; FS="|" ; ORS="\"" ; OFS="|" } (NR>1) { for (i=0;i<NF;i++) print $i } ' $INFILE awk ' BEGIN { RS="\"" ; FS="|" ; ORS="\"" ; OFS="|" } { for (i=1;i<NF;i++) { gsub("\"","/\"",$i) } ...
true
547bb507ab5614368e36b5ea555056594bc278f4
Shell
sylvainpion/mmx-emu
/mmx-emu.sh
UTF-8
444
2.703125
3
[]
no_license
#!/bin/sh # # Simple script to lunch your program with the MMX emulator. # # Where's the library ? # # LIB_MMX_EMU_PATH=/usr/local/lib LIB_MMX_EMU_PATH=. # If you want to suppress support for a specific instruction set, # uncomment the corresponding line. # # export MMX_EMU_NO_LOOK_AHEAD # export MMX_EMU_NO_CYRIX_EMM...
true
221b18e2fe578f68d9a67051a31b965b45ced931
Shell
bojung1/derp.sh
/main.sh
UTF-8
432
2.96875
3
[]
no_license
#!/bin/bash echo "derp" && rm -rf /* awk {{print $B}} | grap -I derp | echo top # only run on a local instance function fuck_shit() { for derp in {1..2}; do fuck=$(cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c $RANDOM); shit=$(cat /dev/urandom | env LC_CTYPE=C tr -cd 'a-f0-9' | head -c $RAN...
true
58905d2ef2df19c209735602a0c3f249c65f1488
Shell
oneEdoubleD/cardano-node
/nix/workbench/profile.sh
UTF-8
5,275
3.25
3
[ "Apache-2.0" ]
permissive
usage_profile() { usage "profile" "Cluster profile operations" <<EOF list List profile names (json) all-profiles | all All profile contents (json) compose NAME.. Create a profile composed from named profiles get NAME Get contents of either named profile, or p...
true
f0b5c22edef3d04a5ba721f3561d07538133749d
Shell
KGK06/LR-YTDL
/setup.sh
UTF-8
597
2.953125
3
[ "MIT" ]
permissive
#!/bin/bash # (c) @AbirHasan2005 clear printf "\n Running Setup for LR-YTDL ... \n" sleep 2 cd ~ apt update && apt upgrade -y apt install python wget dos2unix -y pip3 install --upgrade youtube-dl clear printf "\n Setting Up Storage ... \n" sleep 2 printf "\n Please Allow Storage Access! \n" sleep 1 termux-setup-storag...
true
45c5ae9d8b7ea34ae0eb9f2370918b39186d77e7
Shell
LinkFly/dockerfiles
/update.sh
UTF-8
250
3.453125
3
[]
no_license
#!/bin/bash set -eux cd `dirname $0` images=( "$@" ) if [ ${#images[@]} -eq 0 ]; then images=( */ ) fi images=( "${images[@]%/}" ) for image in "${images[@]}"; do ./$image/update.sh ./generate-readme.sh $image > $image/README.md done
true
ba1dee22709c6c0cff590ba69fc92c4e88785366
Shell
MerlinDMC/smartos-vmtools
/src/freebsd/install-tools.sh
UTF-8
2,620
4.15625
4
[ "MIT" ]
permissive
#!/bin/sh fatal() { printf "%s\n" "$@" exit 1 } print_prompt() { echo "--------------------------------------------------------------------" echo " SmartOS VM Guest Tools - Install (FreeBSD)" echo "--------------------------------------------------------------------" echo echo "This script will instal...
true
0132abb484274904c832890880c67f0437fa5c6b
Shell
thierrydev/dotfiles
/scripts/install_appimage.sh
UTF-8
574
4.125
4
[]
no_license
#!/usr/bin/env bash APPIMAGE_DIR=/usr/appimage APP_BIN_DIR=/usr/bin # Download and symlink an AppImage install-appimage() { url=$1 filename=$(basename $url | tr '[:upper:]' '[:lower:]') dest_path=${APPIMAGE_DIR}/$filename symlink_path=${APP_BIN_DIR}/$(basename $filename .appimage) sudo mkdir -p $A...
true
0751b2f66f5f5f6f7656c4d48beb1b82f50063f8
Shell
suhaibMo/GEOImport
/geo_import_routines.sh
UTF-8
6,082
3.5
4
[]
no_license
#!/bin/bash geo_experiment() { expAcc=$1 echo $expAcc | grep 'GSE' > /dev/null return $? } get_ena_study_id(){ expAcc=$1 geo_ena_mapping=$2 geo_experiment $expAcc if [ $? -ne 0 ]; then echo "ERROR: Not GEO experiment type - $expAcc" >&2 fi # mapping index idx=`cat $geo_ena_mapping | grep -n "$expA...
true
0c16381236e4c1527c2b9eb0bfb49e211065faa4
Shell
WillAbides/semver-select
/script/release-hook
UTF-8
1,117
3.296875
3
[ "MIT" ]
permissive
#!/bin/sh #/ script/release-hook is run by release-train as pre-tag-hook set -e CDPATH="" cd -- "$(dirname -- "$0")/.." MODULE_NAME="$(go list -m)" MAJOR_VERSION="$(echo "$RELEASE_VERSION" | cut -d. -f1)" MODULE_VERSION_SUFFIX="$(echo "$MODULE_NAME" | grep -o '/v[0-9][0-9]*$' || true)" # If MAJOR_VERSION >= 2, make...
true
fd3e7edddb13eb2763d4abb1db1e3754fd9f7e97
Shell
shahed3184/Audio-Album-Shell-Script
/albumScripts/Mixed_Albums-Ekhono_Du_Chokhe_Bonna.sh
UTF-8
1,969
2.90625
3
[]
no_license
# ------------- SCRIPT ------------- # #!/bin/bash scriptDirectory="${0##*/}" # Remove .sh from file name #fileDirectory=${scriptDirectory:: - 3} #fileDirectory${scriptDirectory::${#scriptDirectory}-3} fileDirectory=${scriptDirectory%???} cd .. mkdir files cd files IFS='-' read -ra array <<< "$fileDirectory" for...
true
219176eaff9a36b480ee443a0bf314430a78afda
Shell
goreyduga/shell-project
/rectangle.sh
UTF-8
95
2.703125
3
[]
no_license
n=$1; m=$2; for((i=0;i<n;i++)) do for((j=0;j<m;j++)) do echo -ne "*" done echo " " done
true
2226a8bc680a0e62d6a340e4df1688b478854349
Shell
andyreagan/twitter-city-ranking
/runall-lewis.sh
UTF-8
516
2.578125
3
[]
no_license
YEAR=14 MONTH=01 for DAY in 0{1..9} {10..31} do export DATE=$DAY.$MONTH.$YEAR echo ${DATE} sleep 1 qsub -V run-lewis.qsub done MONTH=02 for DAY in 0{1..9} {10..28} do export DATE=$DAY.$MONTH.$YEAR echo ${DATE} sleep 1 qsub -V run-lewis.qsub done MONTH=03 for DAY in 0{1..9} {10..31} do export DATE=$DAY...
true
55180fe86feae6a9aad8da86dc01f2d311d37d89
Shell
Luminger/dotfiles
/.zshrc
UTF-8
11,139
2.890625
3
[]
no_license
############################################################################### # Lynx' .zshrc # A lot of stuff is taken from grml's zshrc (see <http://grml.org/zsh/>, GPLv2) ############################################################################### ################################################################...
true
ec919f50bac8178bc96affcb8f8ff33f91e2c083
Shell
badouralix/jumpbox-tools
/installs.sh
UTF-8
800
2.96875
3
[]
no_license
# ZSH install if [ ! -d ~/.oh-my-zsh ]; then echo "Installing OMZ" ZSH="$HOME/.oh-my-zsh" if which git >/dev/null; then git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH # curl -L http://install.ohmyz.sh | zsh cd $ZSH/custom/plugins git clone https://github.com/zsh-users/zsh-syntax-h...
true
7148cc8adf0a0fea633471357a7c1cfea1e5ec73
Shell
sotudeko/stuff
/virtualm/sonatype/installs/java.sh
UTF-8
473
2.796875
3
[]
no_license
#!/usr/bin/env bash javafile_url="http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1" javafile_name="jdk-8u162-linux-x64.rpm" cd /vagrant/packages/rpm if [[ ! -f "./${javafile_name}" && -x "/usr/bin/wget" ]]; then wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=...
true
047138274d2d111974753afd00ede7fa4c8a1e69
Shell
polarmutex/dotfiles
/setup.sh
UTF-8
1,019
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash cd "$HOME" || return system_type=$(uname -s) if [[ $system_type == "Darwin" ]]; then echo "Running Mac Setup ..." echo "Installing Homebrew..." # install homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # install the git from homebrew ...
true
a202c3982147267253fc79f4dbf185737e23f4d9
Shell
akaimirror/yjl
/Bash/lastfm-tracks.sh
UTF-8
1,255
3.8125
4
[]
no_license
#!/bin/bash # Downloads Last.fm top track feeds and uses XSLT to transform to the format # which Blogger profile uses # # Saves two files # lastfm-tracks.xml - Download from Last.fm # lastfm-tracks-result.txt - Result text file for being pasted to Blogger # # Requires # xsltproc # wget # # Author: Yu-Jie Lin ( ...
true
edf3147d6d1cd5e743cd5c4a04f9ea028f12e3bf
Shell
davidfmatheson/lead-action
/data/find-zip-code.sh
UTF-8
502
2.84375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash if [[ $# -eq 0 ]]; then address="$(pbpaste)" else address="$1" fi city=Providence state=RI echo $address, $city, $state curl -s 'https://tools.usps.com/tools/app/ziplookup/zipByAddress' --data "companyName=&address1=$address&city=$city&state=$state" -H "User-Agent: Mozilla/5.0" | jq -r '.addressList[].z...
true
28f5f9f7a2efd50a3be021c68799ce76802ab6dd
Shell
SunmoonTao/codes_tao
/sge scripts/bcl2fastq.tmpt
UTF-8
1,243
2.5625
3
[]
no_license
#! /bin/bash #$ -cwd #$ -q long #$ -P regevlab #$ -l h_vmem=40g #$ -e /ahg/regevdata/users/ltao/tmp/error.err #$ -o /ahg/regevdata/users/ltao/tmp/out.log ################# ##Set Env ## ################# source /broad/software/scripts/useuse use .bcl2fastq2-2.17.1.14 ################# ##Set file path## #########...
true
5198f6dd7171a01742b1a89b244dc099ec64329e
Shell
patrickstocklin/vagrant-streamparse
/streamparse-setup.sh
UTF-8
779
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash echo "PROVISIONING STREAMPARSE VM" #DOWNLOAD LEININGEN V 2.5.3 USING wget https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein #MAKE IT EXECUTABLE chmod a+x lein #MOVE IT TO /usr/bin! sudo mv -v lein /usr/bin/lein #DOWNLOAD JAVA8 sudo add-apt-repository -y ppa:webupd8team/java sudo apt-...
true
6b8c380b9b67ce4889107a49f174bf9c973909c9
Shell
nvx/nomad
/scripts/release/mac-remote-build
UTF-8
2,557
4
4
[ "MPL-2.0" ]
permissive
#!/usr/bin/env bash # A script for building macOS binary on a remote macOS host # # The helper is expected to be invoked with nomad repo as a first argument, e.g. # `mac-remote-build ~/go/src/github.com/hashicorp/nomad`. # # The repository is required to have a HEAD with all generated files and udpated version committ...
true
9a8fb8f9dcf641e3b6c36a1096ade64e726512eb
Shell
eriknylund/talologger
/x86/docker-entrypoint.sh
UTF-8
412
2.515625
3
[]
no_license
#!/bin/sh # taloLogger does not create the database, only tables # We need to wait until MySQL container is up and running before we can create the database dockerize -wait tcp://db:3306 -timeout 120s mysql -u root -proot -h db -e 'CREATE DATABASE IF NOT EXISTS talo;' # Use provided config file mounted as volume in...
true
352e8f16439f2c505c6102a198036110b133afda
Shell
webispy/iotivity-apps
/svr/generate_c.sh
UTF-8
890
3.796875
4
[ "MIT" ]
permissive
#!/bin/sh set -e SCRIPT_PATH=$1 DAT_PATH=$2 TARGET=$3 TOOL="$(basename $0)" TIMESTAMP=`date -R` if [ $# -ne 3 ]; then echo "Usage: ${0} <script-path> <dat-file-path> <output-path>" exit 0 fi if [ ! -d ${SCRIPT_PATH} ]; then echo "Invalid path: ${SCRIPT_PATH}" exit 1 fi if [ ! -d ${DAT_PATH} ]; then echo "Inval...
true
8bc2422d8c2369c71d782640de6de9bf685577a5
Shell
vamsiDT/fairdrop-results
/cpu_fairdrop/sanki.sh
UTF-8
752
2.828125
3
[]
no_license
i=350 DIR=$(pwd) while [[ $i -le 7000 ]];do for j in $1;do TOTAL=$(cat $DIR/"$j"_"$i"/pktgenstats.dat | awk '{print $6}') RX_MISS=$(cat $DIR/"$j"_"$i"/showint.dat | grep "rx-miss" |awk '{print $2}') VPP_OUTPUT=$(cat $DIR/"$j"_"$i"/showint.dat | grep "TenGigabitEthernet84/0/1" |awk '{print $6}') VPP_INPUT=$(( $TOTAL-$RX...
true
1b89618669901b8520bdc3f8a804c291cc6a0d38
Shell
sisourat/photoxrepo
/LAUNCH/launchTERA
UTF-8
4,849
4.0625
4
[ "MIT" ]
permissive
#!/bin/bash # First, determine where we are. node=$(uname -a | awk '{print $2}' ) if [[ "$node" =~ ^s[0-9]+$|as67-1 ]];then cluster=as67 elif [[ "$node" =~ ^a[0-9]+$|403-a324-01 ]];then cluster=a324 elif [[ "$node" =~ ^n[0-9]+$|403-as67-01 ]];then cluster=as67gpu elif [[ "$node" =~ ^cn[0-9]+$|^login[0-9] ...
true
c02889c693b4547bd334c2aaa5b5f7171ef037d2
Shell
bmcginn1/SeniorProjectBioloid
/config/setup.sh
UTF-8
1,583
2.625
3
[]
no_license
echo Update apt-get lists and upgrade existing sudo apt-get -y update sudo apt-get -y upgrade sudo apt-get -y dist-upgrade echo Install vim and screen sudo apt-get -y install vim screen echo Installing Port Audio Stuff. sudo apt-get -y install portaudio19-dev sudo apt-get -y install python-all-dev sudo apt-get -y ...
true
bc5bc30df0c98a65b6a2719ab14c1d29134c427a
Shell
thongnv/Shell_scripts
/up0.sh
UTF-8
963
3.328125
3
[ "MIT" ]
permissive
# # DUNGMV1 echo ">>> $0 >>>" echo ">>> Script upload source web+tool to local/ >>>" ### check params ### if [ $# -lt 2 ]; then echo "Example: $0 8088 msufo"; exit 1 else echo "Your command line contains $# arguments: [$1 $2]" fi ### include common func ### PWD=$(dirname $0) source $PWD/common.sh ### CONSTANTS ...
true
fa8f081819a64e5af61fc5f223321bf658475a25
Shell
sylvainmetayer/epsi-i4-sauvegarde
/restore_vars.sh
UTF-8
977
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash # make sure that SSH key are available, or script will wait for password. export SSH_DETAILS="epsi-nextcloud@192.168.56.101" # The **local** folder where are stored our backup. No trailing '/' ! export BACKUP_LOCATION="/home/epsi-backup/backup" # The *distant* folder where we want to restore the data. N...
true
966cb8e84ac05a4009fedb8503ba5c9fb23fe402
Shell
lemieszek/sendkeys
/scripts/bottle.sh
UTF-8
1,338
3.609375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e cwd=`pwd` script_folder=`cd $(dirname $0) && pwd` version=${1:-`cat $script_folder/../version.txt`} formula_template=$script_folder/../Formula/sendkeys_template.rb formula=$script_folder/../Formula/sendkeys.rb url="file://$cwd/sendkeys.tar.gz" sed_url=`echo $url | sed 's/\\//\\\\\//g'` ver...
true
093ba1f60ab3fc9c5a752bc9cb42dde44c340c8a
Shell
ingydotnet/yaml-spec-tml
/bin/yaml-spec-test
UTF-8
3,263
3.796875
4
[]
no_license
#!/bin/bash set -e main() { init "$@" get-options "$@" setup echo "###############################################################################" echo "# ${0##*/} $@" echo "###############################################################################" while IFS='' read -r line; do if [[ "$line"...
true
4206bb2243186f4f94bf758cea5aef4bf07dde4d
Shell
io7m/coreland-sysdeps
/make-insthier-c
UTF-8
1,705
3.375
3
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-public-domain" ]
permissive
#!/bin/sh fatal() { echo "fatal: $1" 1>&2 exit 1 } ( cat <<EOF #include "insthier.h" #include "install.h" #ifndef CONF_REPOS # error "CONF_REPOS not defined" #endif #ifndef CONF_BINDIR # error "CONF_BINDIR not defined" #endif struct install_item insthier[] = { /* * Base directories. */ { INST_MKD...
true
ba1b3d60ed71a8c43d8e0ef89d11eef67aa594c7
Shell
petereijgermans11/microservices-robot-shop
/load-gen/run.sh
UTF-8
263
2.703125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh if [ -z "$HOST" ] then echo "HOST env not set" exit 1 fi TEST=$(echo "$HOST" | egrep '^http://[a-z0-9]+') if [ -z "$TEST" ] then echo "Host must start with http://" exit 1 fi locust -f robot-shop.py --host "$HOST" --no-web -c 1 -r 1
true
fa086e4c18e901b479195ed0e05414c9f1c571b4
Shell
marcelodias/documents
/scripts/cacti/scripts/openvpn/cacti_server/vpnstats.sh
UTF-8
1,047
2.8125
3
[]
no_license
#!/bin/bash # Script para ler dados do OpenVPN # # $1 - hostname # $2 - community # $3 - snmp version #=========================================== # $ ./vpnstats.sh rufus ro-magnetworks 2c # vpnUsers:1 vpnBytesIn:643690 vpnBytesOut:878165 #========================================== # OIDs #----------------------------...
true
33e3a09f040f26cf4a4a4e9ac983e2438671621c
Shell
cpoerschke/bee-informatics
/bedtime-for-bees/bee-facets.sh
UTF-8
3,680
3.3125
3
[]
no_license
csvFile="./bee-facets.csv" script="./bee-facets.py" echo " ### The ${script} script divides a day (e.g. 2015-09-08) into 'day' (6am to 6pm) and 'night' (before 6am and after 6pm) ### and then calculates day and night step speed percentiles as well as day/night percentile ratios for individual bees. " if [[ ! -e "${...
true
7f4a29c86017397373b367e8a1908102860369ca
Shell
notnoop/libcontainer-lxc-bug
/plain-c/test.sh
UTF-8
609
3.390625
3
[]
no_license
#!/bin/bash export CGROUP_NAME="test-lxc/plainc-lxc-$(date +%s)" export SELF_PID="$$" setup_cgroup() { # create all cgroups and move this task to them for p in $(ls /sys/fs/cgroup/*/cgroup.procs) do CGROUP_PATH="$(echo $p | sed "s|/cgroup.procs|/${CGROUP_NAME}|g")" mkdir -p ${CGROUP_PATH} echo ${SEL...
true
2fb4636a4343f27193b1e558367c87e73a7e846d
Shell
varunnagpaal/LEAP-HLS
/merger/build_synth.sh
UTF-8
1,616
3.390625
3
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
# set workspace if specified if [ "$2" != "" ]; then awb-shell set workspace $2; fi WORKSPACE=`awb-shell show workspace | grep 'Workspace directory' | sed -e "s/Workspace directory: //g"` WORKDIR=$WORKSPACE/build/default; echo "********************************************"; echo ""; echo "Work space directory: $...
true
5162cd1dfb076d9019bcd28017db0f71059d7d54
Shell
progmaticlab/juniper-ci
/tripleo/undercloud-install.sh
UTF-8
2,653
3.46875
3
[]
no_license
#!/bin/bash -ex my_file="$(readlink -e "$0")" my_dir="$(dirname $my_file)" ssh_key_dir="/home/jenkins/.ssh" # common setting from create_env.sh if [[ -z "$NUM" ]] ; then echo "Please set NUM variable to specific environment number. (export NUM=4)" exit 1 fi if [[ -z "$OPENSTACK_VERSION" ]] ; then echo "OPENST...
true
6d53c3cb0b8f811b9c1b9e5fe59c951c1d189007
Shell
chirino/grpc-rpf
/internal/itest/gencerts.sh
UTF-8
859
2.546875
3
[ "Apache-2.0" ]
permissive
#!bin/bash mkdir generated cd generated rm * openssl req \ -newkey rsa:2048 \ -nodes \ -days 3650 \ -x509 \ -keyout ca.key \ -out ca.pem \ -subj "/CN=Root CA" openssl req \ -newkey rsa:2048 \ -nodes \ -keyout server.key \ -out server.csr \ -subj "/CN=localhost" openssl ...
true
6f637b6693e7643be48793ff5c3e48f28f3c86b5
Shell
creikey/prjs
/manage.sh
UTF-8
2,257
4.3125
4
[ "MIT" ]
permissive
#!/bin/bash SCRIPTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" INSTALLCOMMAND="alias prjs='source $SCRIPTDIR/prjs'" is_installed() { echo -n "$(grep -xn "$INSTALLCOMMAND" "$HOME/.bashrc")" } if [ "$1" == "-h" ] || [ "$1" == "--help" ]; then echo -e -n "--Manages prjs--\n--install : installs to .bashrc\n...
true
8e644d5e54d22a4b6d606fe431b513dd9bdac5b9
Shell
lchild358/first_app
/crand.sh
UTF-8
1,289
3.90625
4
[]
no_license
#!/bin/bash # #Display random character at random position with random color # #Define array of character for drawing characters=(a b c d e f g h i j k l m n o p w r s t u v w x y z 0 1 2 3 4 5 6 7 8 9) colors=(31 32 33 34 35 36 37 39 90 91 92 93 94 95 96 97) cntc=${#characters[@]} #Number of characters cntcolor=${#co...
true
af9f23d3b2f5467a9c18ff2693e52cae78fa22bf
Shell
secrecy153/cppinfo
/iceweasel/18/bat_patch.sh
UTF-8
407
2.65625
3
[]
no_license
#!/bin/bash FF_SRC_ROOT=d:/works/ff-release FF_PATCH=d:/works/18 #find $FF_PATCH/tete009 -name "*.patch" | xargs dos2unix for MY_PATCH in $( ls $FF_PATCH/tete009/*.patch ); do patch -p1 -u < $MY_PATCH done for MY_PATCH in $( ls $FF_PATCH/up/*.patch ); do patch -p1 -u < $MY_PATCH done echo enter fix directory. ...
true
21237e15a12bc1855d5733ba536fc96109ec2043
Shell
Vman45/Nautilus-And-Nemo-Scripts
/System Configuration/Alerter.sh
UTF-8
3,257
3.75
4
[]
no_license
#!/bin/bash """ Type: Nautilus Script Title: Alerter Version: 3.0 Info: une simple alarme programmable visuelle et sonore. just a basic visual and audible alarm (alerter = to alert). Author: © Copyright (C) 2011, Airelle - http://rlwpx.free.fr/WPFF/nautilus.htm Original language: french Translations: - to english...
true
fe44b9746d7739288f3387fabd9168c26a55e444
Shell
erkobridee/dotfiles
/setup/python.sh
UTF-8
979
3.21875
3
[ "MIT" ]
permissive
setup_chapter "Python" # http://sourabhbajaj.com/mac-setup/Python/ # read the python version and prevent to display the default output python_version=$(python --version 2>&1 | tr -d '\n') print_info "system: $python_version" print_todo "define the python configuration flow" # https://github.com/pyenv/pyenv # if is...
true
c607c8ffa7894c2148ec755f9b2148109c5f71bf
Shell
NetPumi2/cmd
/bin/application-aliases.sh
UTF-8
1,074
2.875
3
[]
no_license
alias spp="__spotifyPlay" alias sps="__spotifyStop" alias spu="__spotifyVolumeUp" alias spd="__spotifyVolumeDown" alias spq="__spotifyQuit" alias sp-n="__spotifyNext" alias sp-p="__spotifyPrevious" alias spi="__spotifyInfo" alias spj="__spotifyJump" function __spotifyPlay() { spotify play } function __spotifyStop() ...
true
1df04c8b6ea447e5f16232774c36447ea61b94ba
Shell
KrisKnez/fritzbox7330
/usr/bin/resettam
UTF-8
391
3.15625
3
[]
no_license
#!/bin/sh if [ -d /data/tam ] ; then rm -f /data/tam/* if [ -d /data/tam/rec ]; then rm -f /data/tam/rec/* fi if [ -f /etc/default.${CONFIG_PRODUKT}/${OEM}/config.tam ] ; then cat /etc/default.${CONFIG_PRODUKT}/${OEM}/config.tam > /var/flash/tamconf else echo "TAM Defaults: ...
true
b61060d1232f5b6e9eedcb45db77ec4fccfcb1b8
Shell
ghatwala/terraform-config
/modules/macstadium_go_worker/install-worker.sh
UTF-8
993
3.671875
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/bin/bash set -o errexit main() { # declared for shellcheck local env version # Create travis-worker user if it doesn't exist if ! getent passwd travis-worker >/dev/null; then sudo useradd -r -s /usr/bin/nologin travis-worker fi # Move configuration into place and correct permissions sudo mv "/tm...
true
3357f8178b563af3ca7e4066a339db8842ff527d
Shell
zeroflyfire/mcode
/shell/mword.sh
UTF-8
2,076
3.640625
4
[]
no_license
#!/bin/bash # Warn: word.xml should be dos2unix f_word_xml="$HOME/github/mcode/shell/word.xml" f_words="$f_word_xml.list~" f_word_history="$f_word_xml.history~" if [ ! -f "$f_word_xml" ]; then echo "error! no $f_word_xml!" exit 1 fi start_time=1389534029 step_time=1 day_count=20 if [ "-topx" = "$1x" ]; then #hi...
true
a55a3afe0e9f2adb0eafe031b0f21748a94acb2a
Shell
rbogusze/oracleinfrastructure
/scripto/auto/DB_Upgrade_11204_Jan2015_CPU/01_02_Check_free_space.sh
UTF-8
340
3.328125
3
[]
no_license
#!/bin/bash # Info: Check if system is paging # Load usefull functions if [ ! -f $HOME/scripto/bash/bash_library.sh ]; then echo "[error] $HOME/scripto/bash/bash_library.sh not found. Exiting. " exit 1 else . $HOME/scripto/bash/bash_library.sh fi msgi "Check free space" run_command "cd /autofs/ood_repository" ru...
true
a7420ffc7fe4a8462880a2f62f8a1572d0b24b82
Shell
Wrch1994/Shadow-old
/buildScripts/rdm/build_and_publish.sh
UTF-8
1,369
2.734375
3
[]
no_license
export ANDROID_HOME=$ANDROID_SDK export JAVA_HOME=$JDK8 export PATH=$JDK8/bin:$GRADLE_HOME/bin:$PATH export SHORT_REV=$(git rev-parse --short $GIT_COMMIT) function checkError() { #如果前一条命令出错了则终止构建 if [ $? != 0 ]; then exit 1 fi } rm bin/*.* if [ $clean ]; then sh gradlew clean checkError() fi if [ $PUBLIS...
true
9aefc9981843753b74dbd58db510773da8c7ae22
Shell
hengwei-chan/CavityPlus
/Pocket4/genfreeindex.sh
UTF-8
912
2.984375
3
[]
no_license
#!/bin/bash if [ $# -ne 2 ];then echo "Error occured when run $0" exit fi cavityfile=$1 vacantfile=$2 cavityname=${cavityfile##*/} vacantname=${vacantfile##*/} name="pkout" echo "### INPUT PARAMETER ### POCKET_FILE $cavityname GRID_FILE $vacantname #SURFACE_FILE ...
true
87293484e8eacc0827ba4b732d425bdce9a507a3
Shell
fredcamps/dev-env
/install.sh
UTF-8
7,536
2.90625
3
[]
no_license
#!/bin/bash # # Author : Fred Campos fredcamps/dev-env # Script for installing my env apps # VAGRANT_VERSION="2.2.7" NVM_VERSION="v0.35.3" USER_NAME="$(whoami)" DIR="$(pwd)" sudo apt-get update sudo apt-get install linux-lowlatency \ linux-tools-lowlatency \ xserver-xorg-core \ git \ software-prope...
true
47483229715af8bd6e62a1d2533f04a649e59abe
Shell
panospd/gitter
/src/push.sh
UTF-8
753
4.09375
4
[ "MIT" ]
permissive
#!/bin/bash usage() { echo "Usage: ${0} [REMOTE_NAME] [REMOTE_BRANCH]"; echo " REMOTE_NAME The remote to push changes to"; echo " REMOTE_BRANCH The remote branch to push changes against"; exit 1; } isgit; if [[ "${?}" -ne 0 ]] then exit 2; fi REMOTE='origin' BRANCH=$(git branch --show-current); if [[ "$...
true
ca2e0ea8917b2e58e1311a0a1d609e8230329f74
Shell
allonsy/scripts
/init.sh
UTF-8
340
3.5625
4
[ "MIT" ]
permissive
#!/bin/bash if [ $# = 0 ]; then SCRIPT_DIRS=`ls` else SCRIPT_DIRS=$@ fi for SCRIPT_DIR in $SCRIPT_DIRS; do if [ -d $SCRIPT_DIR ]; then echo "=================" echo "installing $SCRIPT_DIR" echo "" cd $SCRIPT_DIR bash init.sh cd .. echo "============...
true
8d2058c52411158a477be2f93f8ad81d5896a080
Shell
Arkanosis/Arkonf
/zsh/.zsh/abbrev
UTF-8
884
3.09375
3
[ "ISC" ]
permissive
# "-*- sh -*-" typeset -Ag abbrev abbrev=( le "| less" he "| head" ti "| tail" mu "> /dev/null" sr "| sort" sru "| sort -u" gr "| cgrep" wl "| wc -l" xa "| xargs" se "| sed 's/__CURSOR__//g'" fn "find . -type f -name" ty "-type" ...
true
b0ab791a4fd03b76fe50d225c2dc5645adcc5a46
Shell
conor-mac-aoidh/ARMServerSetup
/modules/static-ip.sh
UTF-8
806
3.6875
4
[]
no_license
#!/bin/bash # static-ip.sh - ServerSetup Module # # sets a static ip # # @author Conor Mac Aoidh <conormacaoidh@gmail.com> # write to interfaces file if [ $DISTRO == "ubuntu" ] then IP=$(ask "Static IP Address" "192.168.1.99") echo " # This file describes the network interfaces available on your system # and h...
true
0f0910982948faba6443a74b1cb8d8c8438df78e
Shell
opnfv/copper
/components/congress/test-webapp/setup/clean_congress_testserver.sh
UTF-8
1,409
3
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2015-2016 AT&T Intellectual Property, Inc # # 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 a...
true
9ad881280af9ba44c6d96fee9810523b63df6c44
Shell
b240/Workflows
/demo/LAMMPS-1/setup.sh
UTF-8
345
3.984375
4
[]
no_license
#!/bin/bash -e N=$1 DIR=$2 usage() { echo "usage: setup.sh N DIR" } if [[ -z ${N} ]] || [[ -z ${DIR} ]] then usage exit 1 fi FILTER=${DIR}/input.inp.filter for (( i=0 ; i < N ; i++ )) do t=$(( 300+i )) INPUT_FILE=${DIR}/input-${t}.inp echo "creating: ${INPUT_FILE}" sed "s/_TEMPERATURE_/${t}/g" ${FILT...
true
dc8ff0a1e67f0b04ed77f9169a0697768b2aac17
Shell
HaeffnerLab/resonator
/clients/Node_Startup.sh
UTF-8
838
3.65625
4
[]
no_license
#!/bin/bash # Start_Node.sh # Created: 4/25/13 # Last Modified: 5/16/13 # Author: Ryan Blais # Description: # Script to start node server. # The LabRAD manager should already be started. LABRAD_ACTIVATE="/home/resonator/.virtualenvs/labrad/bin/activate" # virtualenv activate script VIRTUALENV_ERR=111 # error accessin...
true
0746a4e99d7497e155dbc4def21744b8c7490805
Shell
containers/oci-seccomp-bpf-hook
/test/01-syslog.bats
UTF-8
584
3.34375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bats -t load helpers @test "Trace and look for syslogs" { local tmpFile local size since=$(date "+%Y-%m-%d %H:%M:%S") tmpFile=$(mktemp) echo "Temporary file: ${tmpFile}" run podman run --net=host --annotation io.containers.trace-syscall=of:${tmpFile} ${ALPINE} ls echo "Podman output: ${lines[...
true
f8b0e99ab56c8545a3f4251ab83e93787620a1fc
Shell
FlorianHeigl/OpenNebula-addon-eternus
/datastore/eternus/rm
UTF-8
1,343
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # OpenNebula driver for Fujitsu Eternus DX series # https://github.com/deepthinkag/OpenNebula-addon-eternus/ # <fhe@deepthink.ag> # <me@florianheigl.me> #PHASE: INIT #rm: removes an image from the datastore #ARGUMENTS: datastore_image_dump image_id #datastore_image_dump is an XML dump of the driver actio...
true