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
6b1b910ef8882fa7fb032a0f0aad4242ce7846c4
Shell
infectedvoltage/rr62x
/dkms-install
UTF-8
884
3.609375
4
[ "LicenseRef-scancode-other-permissive" ]
permissive
#!/usr/bin/env bash ME=$(readlink -f $0) HERE=${ME%/*} PRODUCT="rr62x" PVERSION="1.2" PTARGET="/usr/src/${PRODUCT}-${PVERSION}" die() { >&2 echo "ERROR: $@" exit } [ -d "$HERE" ] || die "Can't figure out where we are" [ -f "${HERE}/dkms.conf" ] || die "Can't find dkms.conf" [ $(id -u) -eq 0 ] ...
true
c5fcd875beab9b00f1434625b26f02c4001631e9
Shell
RunzheYang/Annotation-Game
/plotall.sh
UTF-8
258
2.65625
3
[]
no_license
for i in 0 1 2 3 do { if [ $i -eq 0 ] then python testbed.py elif [ $i -eq 1 ] then python testbed.py --acc elif [ $i -eq 2 ] then python testbed.py --pos elif [ $i -eq 3 ] then python testbed.py --acc --pos fi }& done wait
true
c6f86ddc5f8f51bf36fabd5140bad0f71810a13d
Shell
tomsquest/dotfiles
/bin/rerun
UTF-8
2,451
4.625
5
[ "Apache-2.0" ]
permissive
#!/bin/bash # Retries a command a configurable number of times until a success or a failure # Adapted from: # http://stackoverflow.com/questions/8350942/how-to-re-run-the-curl-command-automatically-when-the-error-occurs # Colors color_success=$(tput bold)$(tput setaf 2) # Green color_failure=$(tput bold)$(tput setaf ...
true
cf3da135213265c9b8485f1416084060ec10eb05
Shell
nethack8/roku-utility
/roku.sh
UTF-8
3,168
3.125
3
[]
no_license
#!/bin/bash # Roku management script host="192.168.1.65" # Get active app getactive() { # Args: none # Output: active roku app wget -q -O - http://$host:8060/query/active-app } getinstalled() { # Args: none # Output: list of installed apps wget -q -O - http://$host:8060/query/apps } getinfo() { # Args: none ...
true
d896177699cfe132bdb928747cebbf743335a816
Shell
BurtonQin/openstack_management_tool
/deconfig.sh
UTF-8
2,613
3.765625
4
[]
no_license
#!/bin/bash # ------------------------------------------------------------------------------- # Filename: deconfig.sh # Revision: 1.0 # Date: 2017/06/21 # Author: Qin Boqin # Email: bobbqqin#gmail.com # Description: Deconfig openstack # Notes: This plugin uses the "cp" command # ----------...
true
cccec1c3ea4f000f342c5bd571bcdd2f628d2338
Shell
vmarchuk/deploy
/lib/arch
UTF-8
1,859
3.296875
3
[]
no_license
#!/bin/bash # description: automatic binary resolver for different architectures # Expects real binaries to live in lib/$arch/ # arch can be a value from: $(uname -p | tr '[A-Z] ' '[a-z]_' | cut -d_ -f1) # currently our arches are sparc or x86 # author: walter RUN=$(env perl -e ...
true
19bf8a5300155ad8d9b17063ee4f7d5c2d6deff9
Shell
leanprover/vscode-lean4
/release.sh
UTF-8
296
3.1875
3
[ "Apache-2.0" ]
permissive
#!/bin/sh if [ $# != 1 ]; then echo Usage: ./release.sh 1.2.3 exit 1 fi new_version="$1" sed -i 's/"version": ".*"/"version": "'$new_version'"/' vscode-lean4/package.json git commit -am "Release $new_version" git tag -a v$new_version -m "vscode-lean4 $new_version" git push git push --tags
true
b1f54b4b78356c54d7bfc3a3ee38df4f090ad3e7
Shell
robert0714/devops26
/manuscript/scripts/jx/install.sh
UTF-8
1,442
3.015625
3
[]
no_license
# Source: https://gist.github.com/3dd5592dc5d582ceeb68fb3c1cc59233 ##################### # Install Jenkins X # ##################### # Replace `[...]` with the IP of the load balancer created when you installed the NGINX Ingress controller` LB_IP=[...] # Replace `[...]` with the domain that will be used to access J...
true
7b30d832cbc71c0b27aea670933532225953ff47
Shell
oyren/dotfiles
/common/scripts/monitor-hotplug.sh
UTF-8
712
3.359375
3
[ "WTFPL" ]
permissive
#!/bin/sh for monitor in $(bspc query -M --names); do monitors+=("$monitor") done #echo ${#monitors[@]} # Number of coonnected Monitors if [ ${#monitors[@]} == 1 ]; then # Single Monitor Setup # xrandr --output ${monitors[0]} --primary --mode 1920x1080 --pos 0x0 bspc monitor ${monitors[0]} -d 1 2 3 4 5 6 7 8 9 10 e...
true
bea62d327461f9e4e06f79291e28f22c2b839968
Shell
JDKling/Syn_microdiversity
/SCRIPTS/setup_conda_envs.sh
UTF-8
298
3.03125
3
[]
no_license
#!/usr/bin/env bash test=('/CONDA-ENVS/env0.yml' '/CONDA-ENVS/env1.yml' '/CONDA-ENVS/env2.yml' '/CONDA-ENVS/env3.yml' '/CONDA-ENVS/env4.yml') for yml in ${test[@]}; do if [ ! -f "$yml" ]; then echo "$yml does not exist. Make sure all files got downloaded correctly." return 0 fi done
true
35d34680f8043a510a7c5e79fc4906fcd2c174c4
Shell
guisty/pingidentity-devops-getting-started
/setup
UTF-8
4,113
4.15625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash cd "$( dirname "${0}" )" THIS="$( basename "${0}" )" THIS_DIR=`pwd` numTools=0 numOk=0 numMissing=0 # function to check for the existence of a tool command check_tool() { toolName="${1}" && shift toolCmd="${1}" && shift toolMsg="${1}" && shift numTools=$((numTools + 1)) ${toolCmd...
true
0b7bd31beb9818d4816bfb5ec85a523c705dde75
Shell
bgoonz/UsefulResourceRepo2.0
/MY_REPOS/misc-experiments/_FIREBFIRE/grpc/tools/internal_ci/linux/run_performance_profile_daily.sh
UTF-8
1,304
2.5625
3
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2016 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
true
6e50edf53ce0915e1bfa4881944934a73f4b8e1c
Shell
pmiddend/sjmanager
/run_tests
UTF-8
166
2.625
3
[]
no_license
#!/bin/bash export PYTHONPATH="$(pwd)" for i in tests/*.py; do if [[ $i == 'tests/test_dialog.py' ]]; then continue fi echo "$i" python3 "$i"; done
true
f44b04da0ee7be88429ca3c35e94826ae59d7280
Shell
Alberto42/A-star-algorithm-CUDA
/bin/runOnDifferentNumberOfThreads.sh
UTF-8
705
2.859375
3
[]
no_license
#!/usr/bin/env bash blockCounts=(1 1 3 1 10 30) threadPerBlockCounts=(1 3 1 32 32 32) for ((i=0;i<6;i+=1)) do cp main.cu main_tmp.cu sed -i -E "s/(const int BLOCKS_COUNT = )[0-9]+;/\1${blockCounts[$i]};/" main_tmp.cu sed -i -E "s/(const int THREADS_PER_BLOCK_COUNT = )[0-9]+;/\1${threadPerBlockCounts[$i]};...
true
4ca2d8bccad0ff51f17066fe40b8c6c3bd9982b1
Shell
owenstranathan/CompilerDesign
/Calc/demo.sh
UTF-8
1,240
3.953125
4
[]
no_license
#!/bin/bash # a simple bash script for running tests on calc # can take a test file as input and will run tests on # that file function pause() { read -p "$*" } echo "Now running tests for calc"; if [ -z ${1+x} ]; then echo "Using test input from file 'test/input/test-file1.txt'"; echo "Inpu...
true
426ae46a66fab5d667dc191b6d7450d5b95836f8
Shell
illtrax/legaleyes
/bot/start.sh
UTF-8
434
3.125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh install="false"; pull="false" for var in "$@"; do if [ "$var" = "-install" ]; then install="true" elif [ "$var" = "-pull" ]; then pull="true" fi; done $pull && bash -c "cd ../; git pull" $install && bash -c "cd ../; npm i" gnome-terminal --geometry 0 50 10 10 -e "bash -c 'cd ../; npm start; exec $...
true
f601d4c34342b645dccf473c3938c3defafc5423
Shell
Tier3SW/manageTier3SW
/functions.sh
UTF-8
15,897
3.796875
4
[]
no_license
#!---------------------------------------------------------------------------- #! #! functions.sh #! #! Various functions that are needed for manageTier3SW package #! #! Usage: #! source functions.sh #! #! History: #! 02Dec2016: A. De Silva, first version. #! #!------------------------------------------------...
true
8b330accf760cffa12dd03cb1c0053d522cb666b
Shell
azizmb/dotfiles
/refresh-conky.sh
UTF-8
312
3.328125
3
[]
no_license
#!/bin/bash function get_res { echo $(xrandr -q | awk -F'current' -F',' 'NR==1 {gsub("( |current)","");print $2}') } res1=$(get_res) while true; do sleep 5 res2=$(get_res) if [ "$res1" != "$res2" ]; then echo "Running refresh" bash "$HOME/.conky/conky-startup.sh" fi res1=$res2 done
true
cc9a2e5dacdff03a7c8d935bda16b0a439851883
Shell
MenkeTechnologies/zsh-learn
/autoload/zsh-learn-Searchle
UTF-8
2,567
3.046875
3
[ "MIT" ]
permissive
# -*- mode: sh -*- # vim: set ft=sh: function zsh-learn-Searchle(){ local arg argdollar searchCmd if test -z "$1"; then if [[ "$ZPWR_COLORS" = true ]]; then echo "select learning,category from $ZPWR_SCHEMA_NAME.$ZPWR_TABLE_NAME order by dateAdded" | ${=ZPWR_LEARN_COMMAND} 2>> ...
true
9dab56a151095a98a821c02be755e8ad9b53722a
Shell
dualznz/bash-scripts
/Bash Scripts/commands-g.sh
UTF-8
1,973
3.375
3
[]
no_license
#!/bin/bash # This file was written bu dualznz © 2020 # You can freely distribute this file and its contents but there is no liability # if anything goes wrong when using this file. # start # colors # forground colors fgBlack=$(tput setaf 0) fgRed=$(tput setaf 1) fgGreen=$(tput setaf 2) fgYellow=$(tput setaf 3) fgBl...
true
e1a583e2f083c6f44c3b4d8188b73a0c24a985ac
Shell
packcheng/android-ndk-demo
/linux/packing.sh
UTF-8
143
3.0625
3
[]
no_license
#!/bin/bash echo 将当前目录下所有后缀为.sh的文件添加到压缩包 for i in `find . -name "*.sh"` do `tar -czf all.taz $i` done
true
84a69c7bd68a238f7d27cf18bc58aadb375aa73b
Shell
sp1r1t/skripte
/offlineimap_wrapper.sh
UTF-8
168
2.796875
3
[]
no_license
#!/bin/bash # test internet connection inet=0 if ping -W 3 -c 1 8.8.8.8 &> /dev/null; then inet=1 else exit fi if [ $inet -eq 1 ]; then offlineimap -o fi
true
faf091645a5e1aa021f21c6ebb809986bdb164ca
Shell
KrushikReddyNallamilli/bash-scripts
/palindrome.sh
UTF-8
126
3.109375
3
[]
no_license
input="$1" echo "$input" if [ "$(echo "$input" | rev)" == "$input" ] then echo "Palindrome" else echo "Not a Palindrome" fi
true
3f4c3da7b9c54894694329ddafc732d9e010d439
Shell
robinrob/zsh
/practice/arrays.zsh
UTF-8
254
3.015625
3
[]
no_license
#!/usr/bin/env zsh source $ZSHLOG_PATH cyan "Array Elements are separated by a space:" log 'a=(1 2 3) print $a[2]' log cyan "Add array to an array" log 'a=(1 2) a=($a 3) print $a' log cyan "Length of an array:" log 'a=(1 2 3 4 5) print $#a'
true
18c50f40c78abfbb3b3b65a2d53e9667464bfad5
Shell
rennancockles/bin_files
/saved_wifi
UTF-8
230
3.171875
3
[]
no_license
#! /bin/bash if [ `id -u` != "0" ]; then echo "Must be root!"; exit 2; fi for f in /etc/NetworkManager/system-connections/*; do grep -E 'ssid=|psk=' "$f" | sed -r 's/.*=(.*)/\1/' | paste -sd ':'; done | grep ':' | sort -u
true
1750ca200369e17caa3cb294366b708efdcac7df
Shell
ProcursusTeam/Procursus
/build_info/redis-tools.postinst
UTF-8
652
3.53125
4
[ "0BSD" ]
permissive
#!/bin/sh set -eu USER="redis" Setup_dir () { DIR="${1}" MODE="${2}" GROUP="${3}" mkdir -p ${DIR} if ! @MEMO_PREFIX@@MEMO_SUB_PREFIX@/bin/dpkg-statoverride --list ${DIR} >/dev/null 2>&1 then chown ${USER}:${GROUP} ${DIR} chmod ${MODE} ${DIR} fi } if [ "$1" = "configure" ] then pw groupadd -n ${USER} >...
true
8429e5bd70faa129d60e19dbdc15b94845cff424
Shell
Red54/ArchLinux-x32
/libx32-libtirpc/PKGBUILD
UTF-8
1,546
2.609375
3
[]
no_license
# Contributor: Tobias Powalowski <tpowa@archlinux.org> # Maintainer: Fantix King <fantix.king at gmail.com> _pkgbasename=libtirpc pkgname=libx32-${_pkgbasename} pkgver=0.2.2 pkgrel=2.1 pkgdesc="Transport Independent RPC library (SunRPC replacement) (x32 ABI)" arch=('x86_64') url="http://libtirpc.sourceforge.net/" lice...
true
03ba1e38c4d3b999091278b7f19df62fd265b299
Shell
ichem/place_stories_server
/private/deploy_tol.bash
UTF-8
1,435
3.1875
3
[]
no_license
#!/bin/bash if [ "$1" == "master" ] then BRANCH="master" else if [ "$1" == "test" ] then BRANCH="test" else if [ "$1" == "www" ] then BRANCH="www" else BRANCH="0" fi fi fi if [ "$BRANCH" == "0" ] then echo -e "Branch to deploy: \...
true
4f23fd41a11ae9505b823885cf9d252d565f2f57
Shell
Alouie412/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/100-read_and_cut
UTF-8
197
3.09375
3
[]
no_license
#!/usr/bin/env bash # This script cuts and reads certain columns in the file passwd, located in the etc directory while IFS= read -r line do echo "$line" | cut -d ":" -f1,3,6 done < "/etc/passwd"
true
df921e24c45c6d775990535f5b2534bef00919c4
Shell
olegvn88/oshinko-s2i
/sparklyr-build/modules/common/install
UTF-8
1,338
3.453125
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e SCRIPT_DIR=$(dirname $0) ADDED_DIR=${SCRIPT_DIR}/added ARTIFACTS_DIR=/tmp/artifacts mkdir -p $APP_ROOT/src && mkdir -p $APP_ROOT/etc chown -R 185:0 $APP_ROOT && chmod a+rwX -R $APP_ROOT cp $ADDED_DIR/utils/* $APP_ROOT/src cp $ADDED_DIR/etc/* $APP_ROOT/etc # Change the permissions on /etc/passwd so ...
true
539615888875574d819e87abee96bf81eb8a056d
Shell
kmashint/akme-js
/scripts/getopts-instead.sh
UTF-8
330
3.96875
4
[]
no_license
#!/bin/bash # getopts-instead.sh # set -eu usage="Use: $0 [-a ...] [-b ...] c" a= b= function get_arg2 { (( $# > 1 )) && echo "$2" || echo "" } while (( $# > 0 )); do case "$1" in -a) echo a=$(get_arg2 "$@"); shift;; -b) echo b=$(get_arg2 "$@"); shift;; c) echo "$1";; *) echo $usage; exit 1;; esac s...
true
9a6a9f493759cdd2da5adfa3ea3a65a631ae999e
Shell
hamscher/Arelle
/scripts/runESEFtests.sh
UTF-8
933
2.984375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Run ESMA ESEF conformance tests TESTCASESROOT=/Users/hermf/Documents/mvsl/projects/ESMA/conf/esef_conformanceSuite_2020-03-06/index.xml rm -f /users/hermf/temp/ESEF-conf-* OUTPUTLOGFILE=/users/hermf/temp/ESEF-conf-log.txt OUTPUTERRFILE=/users/hermf/temp/ESEF-conf-err.txt OUTPUTCSVFILE=/users/hermf/temp...
true
3ac86787980992671afb8f46dc4b360cdee8d573
Shell
lsfxz/blackarch-ruby
/pkgs/gem-home/profile-d.gem_home.sh
UTF-8
101
2.546875
3
[]
no_license
if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then source /usr/share/gem_home/gem_home.sh fi
true
18fddacdc9b10ae6dbc97ead8a89f31fbcfb72c5
Shell
lonkamikaze/bsda2
/src/pkg_trim.sh
UTF-8
16,532
3.1875
3
[ "ISC" ]
permissive
test -n "$_pkg_trim_" && return 0 readonly _pkg_trim_=1 . ${bsda_dir:-.}/bsda_dialog.sh . ${bsda_dir:-.}/pkg_query.sh . ${bsda_dir:-.}/bsda_opts.sh # # A dialog(1) driven script to get rid of unwanted leaf packages. # # # Provides states for package selection to facilitate undo and redo. # # This is a two-way linked...
true
92c8b77561ff676c5d299f467d092e97497c0144
Shell
tzimos/events
/docker/backend/wait-for-db.sh
UTF-8
187
2.96875
3
[]
no_license
#!/bin/bash echo "Waiting Postgres to launch on 5432..." while ! nc -z db_prod 5432; do sleep 0.1 # wait for 1/10 of the second before check again done echo "Postgres launched"
true
6ca076b368ad8fe8d80d9a10f37bcb8b7bf49087
Shell
ric2b/Vivaldi-browser
/chromium/third_party/rust/backtrace/v0_3/crate/ci/miri-rustup.sh
UTF-8
267
2.53125
3
[ "BSD-3-Clause", "Apache-2.0", "LGPL-2.0-or-later", "MIT", "GPL-1.0-or-later", "LicenseRef-scancode-unknown-license-reference" ]
permissive
set -ex MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri) echo "Installing latest nightly with Miri: $MIRI_NIGHTLY" rustup set profile minimal rustup default "$MIRI_NIGHTLY" rustup component add miri
true
6b7422a431831a958720bd906e544a596401f548
Shell
xandhiller/meta
/scripts/today
UTF-8
157
2.9375
3
[]
no_license
#! /bin/sh -- if [ "$1" = "-r" ] then date "+%Y_%m_%d__%H_%M" elif [ "$1" = "-R" ] then date "+%Y_%m_%d__%H_%M_%S_%N" else date "+%Y_%m_%d" fi
true
cd1f01bc1d56da987b4a143bfecb449a9371e7ce
Shell
tomdee/calico-demo
/archive/setup.sh
UTF-8
506
2.515625
3
[]
no_license
#!/bin/sh #tmux -2 attach-session -d -t mydemo #tmux echo "pretty realistic virtual typing in window 1" | randtype -m 1 -t 5,20000 #echo i"pretty realistic virtual typing in window 2" | randtype -m 1 -t 5,20000 session_name=mydemo window=${session}:0 pane=${window}.0 tmux new-session -d -s ${session_name} tmux split...
true
f917e41ad6bd2ce4517f10dd68546538cfa6689c
Shell
VBSCanAction/VBSComparison
/parton-shower/cpfigures.sh
UTF-8
388
2.9375
3
[]
no_license
#!/bin/bash FIGS="jetsexclusive m_jj pT_j1 pT_j2 y_j2 Deltay_jj z_j3" for ORD in LOPS NLOPS; do for F in $FIGS; do echo $ORD $F cp rivet-$ORD/MC_VBSCAN_MCComparison/$F.pdf ../Draft/figures/$ORD/ done done cp rivet-NLOPS2/MC_VBSCAN_MCComparison/jetsexclusive.pdf ../Draft/figures/NLOPS/ cp ri...
true
d15d84cb81db0e66f448e21a8daa4724a38be9a0
Shell
xenopol/i3wm-config
/i3/scripts/brightness-notify
UTF-8
636
3.09375
3
[]
no_license
#!/bin/bash # Create a short delay so changes in brightness can be registered sleep 0.2 # Get the brightness percentage: MAX_BRIGHTNESS=$(cat /sys/class/backlight/intel_backlight/max_brightness); BRIGHTNESS=$(cat /sys/class/backlight/intel_backlight/actual_brightness); PCT=$(echo $BRIGHTNESS $MAX_BRIGHTNESS | awk '{p...
true
da812fe25537446e9a5e623d792d57ba6ff5c7c9
Shell
sunyta2/config_github
/app/espeak/espeak_xclip.sh
UTF-8
3,707
2.984375
3
[]
no_license
#!/usr/bin/sh # for rotate_state by 지구본(the Earth-key) # (shell-command "ln -s ~/config_github/app/xrandr/rotate_screen.sh ~/.bin/rotate_screen") # symlink make and run by $ ~/.bin/rotate_screen in start command # xbindkeys -f ~/config_github/app/xbindkeys/xbindkeysrc xclip_text="$(xclip -o)" reading_text="xclip -o ...
true
21e0eb219ec40ac37d6a04a05fc58411f1e99283
Shell
dharmaxbum1/dotfiles
/config/bash/aliases.bash
UTF-8
2,214
3.3125
3
[ "MIT", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
# Saner Defaults alias cp='cp -iv' # Preferred 'cp' implementation alias mv='mv -iv' # Preferred 'mv' implementation alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation alias grep='grep --color=always' # Always color grep alias cd..='cd ../' # Go...
true
a7e2f0eafbd626607b62b368f39d6731b19ad81d
Shell
hesa/license-compliance-toolbox
/exiftool-dir.sh
UTF-8
345
3.34375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -euo pipefail main() { local input="$1"; shift cd "$input" find . -type f -print0 | while IFS= read -r -d "" file; do exiftool -j "$file" || true done | jq '.[]' | jq -s 'map( { (.SourceFile|tostring): . } ) | add' } output=$(main "$1") && echo "$outpu...
true
7028d914976a55a09b235a1f580a9956d8867d73
Shell
espaciomore/STE-work-tools
/CommPro/MDN_Generator.sh
UTF-8
495
3.984375
4
[]
no_license
#! /bin/bash if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ] || [ -z "$4" ]; then echo "MDN Generator: [ US{1 XXX XXX XXXX} | UK{44 XXX XXXX XXXX} ] [size]" echo "ERROR : Invalid Argument : Missing arguments!" exit fi TIMESTAMP=`date "+%Y%m%d_%H%M%S"` SIZE=$5 MDN="$1$2$3$4" function main { if [ -z "$SIZE" ]; the...
true
0777e1095e93a95f7969cddee19fed5aebb4ae8a
Shell
src-run/usr-src-runner
/builders/_common/bash-inc_all.bash
UTF-8
582
2.796875
3
[]
no_license
#!/usr/bin/env bash ## # This file is part of `scr-be/shared-project-knowledge` # # (c) Rob Frawley 2nd <rmf@scr.be> # # For the full copyright and license information, view the LICENSE.md # file distributed with this source code. ## readonly SCRIPT_COMMON_SPATH="${0}" readonly SCRIPT_COMMON_RPATH="$(cd "$(dirname "$...
true
ea9f94a03084c8ec7ae148e66ef97e9d4e6c64f9
Shell
d66pak/mybin
/jenkins-ls.sh
UTF-8
367
2.9375
3
[]
no_license
#!/bin/bash function help_menu () { cat << EOF Usage: ${0} [Jenkins_View_name] EXAMPLES: List jobs under view 'Vista' $ ./jenkins-ls.sh Vista List all jobs/views $ ./jenkins-ls.sh EOF } JOB=$1 java -jar /home/deepakt/Documents/dev/tools/jenkins-cli.jar -s http://10.123.0.88:8080 list-jobs ${J...
true
e151b4df73841830b52f0c11ebf8741616fea7a0
Shell
Javnirabi/mediabox_osmc
/doclimus/verify_space.sh
UTF-8
463
2.9375
3
[]
no_license
#!/bin/bash SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin ESPACO=`df -h /media/STR | awk '{print $5}' | grep -v Use | sort -nr | awk -F % '{print $1}' | head -n1` # Verifica espaco em disco case $ESPACO in 9[1-9]) ls -ltrxp /media/STR/MOVIES | head -n 5 | tr "\n" "\0" | xar...
true
663c2431873717ffa616a416081834302f257e1b
Shell
ShalokShalom/plan.sh
/libmpeg2/plan.sh
UTF-8
782
2.65625
3
[ "Apache-2.0" ]
permissive
pkg_origin=cosmos pkg_name=libmpeg2 pkg_version=0.5.1 pkg_description="libmpeg2 is a library for decoding MPEG-1 and MPEG-2 video streams." pkg_upstream_url="http://libmpeg2.sourceforge.net/" pkg_license=('GPL2') pkg_deps=('glibc' 'sdl' 'libxv') pkg_source=("http://libmpeg2.sourceforge.net/files/${pkg_name}-${pkg_vers...
true
017f3e8072223a9572f7e394e78fa155c1d27bf0
Shell
jlouros/Docker-Toolbox
/dockerfiles-windows/wiremock/alpine/init.sh
UTF-8
316
3.03125
3
[ "MIT" ]
permissive
#!/bin/bash #Define cleanup procedure cleanup() { echo "Container stopped, performing cleanup..." echo "> sending request to shutdown Wiremock..." wget 'http://127.0.0.1:8080/__admin/shutdown' --post-data '' -q -S -T 1 } #Trap SIGTERM trap 'cleanup' SIGTERM #Execute a command "${@}" & #Wait wait $!
true
a77729b00c4302ba17f7d976e2b723e07f5dc875
Shell
mingfengwuye/seq2seq
/experiments/BTEC_speech/prepare.sh
UTF-8
6,218
2.625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # speech data preparation script # this script assumes that the BTEC raw files (btec-{train, dev-concat, test1, test2}.{fr,en,mref.en}) # are in ${raw_data_dir} # and the Voxygen credentials (wsclient.cred) are in experiments/btec_speech/voxygen raw_data_dir=data/raw/btec.fr-en raw_audio_dir=${raw_...
true
c413e3b406233ab4f60b84aa51551cd343b7968f
Shell
srtanish1992/csye6225-spring2019
/infrastructure/aws/cloudformation/csye6225-aws-cf-terminate-stack.sh
UTF-8
732
4
4
[ "Apache-2.0" ]
permissive
#!/bin/bash BASEDIR=$(dirname "$0") PARAM_FILE_PATH=$BASEDIR"/parameters.json" STACK_NAME=$(jq -r '.[0].NetworkStackName' "$PARAM_FILE_PATH") echo "VPN stack name: ${STACK_NAME}" read -p "Continue? (Y/N): " confirm && [[ $confirm == [yY] || $confirm == [yY][eE][sS] ]] || exit 1 if ! aws cloudformation describe-sta...
true
be9ce8f78f7721b48466ec8e75e54d67022a2d54
Shell
iancamp/Rehabilitative-Wristband
/scripts_osx/check_install.sh
UTF-8
570
3.3125
3
[]
no_license
#!/bin/bash # #check and see if the system has been configured to interface with an arduino properly if [[ ! -d /var/lock || \ ! $(ls -l /var/ | grep lock | awk -v col=4 '{print $col}') = "_uucp" || \ ! $(stat -f %Mp%Lp /var/lock) = "0775" || \ -z $(dscl . -read /Groups/_uucp GroupMembership | grep -o $USER) ]]; then ...
true
0eea9a1ea21e67a20026eb12bcc40d08577cec35
Shell
grubern/dotfiles-20
/scripts/go.sh
UTF-8
296
2.9375
3
[]
no_license
#!/bin/zsh ORG=$HOME/src/github.com/golang curl https://storage.googleapis.com/golang/go1.4.3.$(uname -s | tr '[A-Z]' '[a-z]')-amd64.tar.gz > go14.tar.gz tar xzf go14.tar.gz mv go ~/.go1.4 rm go14.tar.gz mkdir -p $ORG ( cd $ORG git clone https://github.com/golang/go cd go/src ./all.bash )
true
4938f09349662b778fd5e6e42cb17a398aa6735e
Shell
nationalarchives/tdr-e2e-tests
/.github/scripts/update-security-group.sh
UTF-8
424
2.875
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
GROUP_ID=$(aws ec2 describe-security-groups --filters Name=group-name,Values=frontend-load-balancer-security-group | jq -r '.SecurityGroups[0].GroupId') IP=$(curl https://ipinfo.io/ip) if [ $1 = "INSERT" ] then aws ec2 authorize-security-group-ingress --group-id $GROUP_ID --protocol tcp --port 443 --cidr $IP/32 else ...
true
49d22e927a1326226e054fbb9d95db0ca4a77e3b
Shell
compulab-yokneam/Documentation
/audio/sink-switch.sh
UTF-8
581
3.28125
3
[]
no_license
#!/bin/bash SINK=$(pactl info | awk '/Default Sink/&&($0=$NF)') CARD=$(pactl list sinks | awk -v SINK=${SINK} '($0~SINK)' RS="" | awk -F"\"" '/long_card_name/&&($0=$2)') PS3="Please select a card [ default: ${CARD} ] ] (Ctrl^C -- exit) : " select_string=$(pactl list sinks | awk -F"\"" '(/long_card_name/)&&($0=$2)' OR...
true
af8ebb3624dcf3489c592cb0caf811003fc71fda
Shell
Madh93/ComputerVisionPrototype
/PrototipoVPC/util/sort_translations.sh
UTF-8
524
3.109375
3
[]
no_license
cd ../src/i18n # Load file, sort each line of the file and save the file. sort_and_save() { cat $1 | sort > $1 } sort_and_save i18nBundle_en.properties sort_and_save i18nBundle_es.properties # TODO: script creates i18nBundle_empty.properties that has all combined keys from real bundles. # then compares itself with...
true
7429db42cbfe3000e1f4d1cfc83f9a5ed66715e5
Shell
jensp/Arch-Linux-on-i586
/extra/mailman/rc.mailman
UTF-8
601
3.453125
3
[]
no_license
#!/bin/bash # general config . /etc/rc.conf . /etc/rc.d/functions case "$1" in start) stat_busy "Starting mailman Daemon" /home/mailman/bin/mailmanctl start &>/dev/null if [ $? -gt 0 ]; then stat_fail else add_daemon mailman stat_done fi ;; stop) stat_busy "Stopping...
true
69ec662981f22435bab0abe4091b3058c7e241a2
Shell
tiwarikajal1306/SnakeAndLadder
/SnakeAndLadder.sh
UTF-8
2,029
3.328125
3
[]
no_license
INITIAL_POSITION=0 NO_PLAY=0 LADDER=1 SNAKE=2 WINNING_POSITION=100 player1Position=$INITIAL_POSITION player2Position=$INITIAL_POSITION declare -a positionTrack1 declare -a positionTrack2 count1=0 count2=0 while [[ $player1Position -ne $WINNING_POSITION && $player2Position -ne $WINNING_POSITION ]] do rollTheDie=$((RA...
true
ab6328434e5ee90257fc22cc7bcc3325068592b7
Shell
djwoodward/aws-lambda-with-authorizer-test
/create_jwt.sh
UTF-8
484
3.109375
3
[]
no_license
#!/bin/zsh # openssl genrsa -out private-key.pem 2048 # openssl rsa -in private-key.pem -pubout -out public-key.pem EXPIRES_PLUS_SECONDS=$1 ISSUER=$2 SUB=$3 PRIVS=$4 NOW=$(date +%s) || exit 1 EXPIRES=$((NOW + EXPIRES_PLUS_SECONDS)) || exit 1 JWT_PAYLOAD=$(cat <<-END { "privs": $PRIVS } END ) jwt encode --alg RS25...
true
d60f0a8acb96088e5874d60734e2015e8e2bd408
Shell
travisjayday/GeneticKeyboard
/data/gutenberg_downloader.sh
UTF-8
214
2.984375
3
[]
no_license
#!/bin/bash outdir=../src/main/resources/books name=short.txt rm $outdir/* for i in {1..20} do wget http://gutenberg.org/files/$i/$i.txt -P $outdir/ cat $outdir/$i.txt >> $outdir/$name rm $outdir/$i.txt done
true
c49226b11ec8396e82e7a8f9a0f41bceb1da613a
Shell
petronny/aur3-mirror
/mpm-itk/PKGBUILD
UTF-8
652
2.546875
3
[]
no_license
# Maintainer: Tomasz Cebula <tomaszc@o2.pl> pkgname=mpm-itk pkgver=2.4.7 pkgrel=2 pkgdesc="Running vhosts under separate UIDs/GIDs for Apache HTTP Server." arch=('i686' 'x86_64') url="http://mpm-itk.sesse.net/" license=('APACHE') depends=('apache>=2.4.7') source=(http://mpm-itk.sesse.net/$pkgname-$pkgver-0$pkgrel.tar....
true
473ce69ec83ec8991588576302ce33c05f6bda74
Shell
Alibaba-Gemini-Lab/OpenCheetah
/scripts/throttle.sh
UTF-8
747
2.78125
3
[]
no_license
#!/bin/bash ###### # Taken from https://github.com/emp-toolkit/emp-readme/blob/master/scripts/throttle.sh ###### ## replace DEV=lo with your card (e.g., eth0) DEV=lo if [ "$1" == "del" ] then sudo tc qdisc del dev $DEV root fi if [ "$1" == "lan" ] then sudo tc qdisc del dev $DEV root ## about 3Gbps sudo tc qdisc ad...
true
dfd660ac3e98a18b790ae9388817253821cd9e2e
Shell
mzzhmh/httpsProxy
/purgeDangLing.sh
UTF-8
818
3.25
3
[]
no_license
#!/usr/bin/bash danglingImg=`docker image ls | grep httpsproxy | grep latest | awk {'print $3'} | uniq` if [ -z "$danglingImg" ] then echo "Empty Image!" else printf "Images: $danglingImg \n=======\n" for word in $danglingImg do printf "Removing $word\n" c...
true
1a95c22249c42d071ecb4acc91a451af11691f45
Shell
kad-ecoli/COFACTOR_library
/psiblast4allPDB.sh
UTF-8
7,541
3.59375
4
[]
no_license
#!/bin/bash DOCSTRING="psiblast4allPDB.sh PDBDIR/ list Given 'PDBDIR', a folder of single chain PDB files, and 'list', a list of PDB chains. Seqentially run fixMSE.py reindex_pdb.py getfasta.py MakeMTX.sh MakePRF.pl MakeJSD.pl Deposit *.fasta files at PDBDIR/FASTA/ Deposit *.mtx files at PDBDIR/MTX/ ...
true
12ac7d19079226d9e3a32a18f339c523f998bfd9
Shell
chezhang/whpc-linux-communicator
/nodemanager/scripts/Statistics.sh
UTF-8
924
3.953125
4
[]
no_license
#!/bin/bash # collect the statistics of the cgroup . common.sh [ -z "$1" ] && echo "task id not specified" && exit 202 taskId=$1 userTime10Ms=0 kernelTime10Ms=0 processes="" workingSetBytes=0 function GetCpuStatFile { local groupName=$1 echo "$(GetGroupFile $groupName cpuacct cpuacct.stat)" } function GetCpuacc...
true
50af6d2f4c290b5271ffc49160786077b0a077ad
Shell
DrMurx/docker-shellinabox
/launch.sh
UTF-8
643
2.796875
3
[]
no_license
#! /bin/sh echo "user:${PASSWORD}" | /usr/sbin/chpasswd unset PASSWORD exec /usr/bin/shellinaboxd \ -u shellinabox \ -g shellinabox \ -c /var/lib/shellinabox \ -p 4200 \ -s /:AUTH:HOME:/bin/bash \ --no-beep \ --disable-ssl-menu \ --user-css "$( for i in $(ls /etc/shellinabox/options-enabled/*.css ...
true
e1ba5cba994d6b17e3579dfda1b456f917e13b4e
Shell
mkwon0/IOD-docker
/test-docker/scripts-test/simple/noCache/fio-CONTs-NS1-mixed.sh
UTF-8
2,796
3.375
3
[]
no_license
#!/bin/bash ## FIO parameters RUN_TIME=15 ARR_JOB=(rw randrw) ARR_QD=(1) ARR_BS=(4k) LOG_MSEC=100 ARR_READ_RATIO=(10 20 30 40 50 60 70 80 90) ## Test parameters MIN_NUM_CONT=0 MAX_NUM_CONT=9 DEV=nvme3n DEV_ID=1 SRC_VOL=resource IMAGE=fio-centos func_simple() { for JOB_TYPE in "${ARR_JOB[@]}"; do for BS in "${ARR_...
true
ad8b1a753a039d04c16b8a7a9105d1cacea5cdab
Shell
mkoskar/pkgbuilds
/aur/fswebcam/PKGBUILD
UTF-8
779
2.703125
3
[ "Apache-2.0" ]
permissive
# Maintainer: Christian Heusel <christian@heusel.eu> # Contributor: Gavin Lloyd <gavinhungry@gmail.com> # Contributor: Thorsten Töpper <atsutane-tu@freethoughts.de> # Contributor: SpepS <dreamspepser at yahoo dot it> # Contributor: Philipp Robbel <robbel@gmail.com> pkgname=fswebcam pkgver=20200725 pkgrel=1 pkgdesc='Ne...
true
689d3e69d56799c013a01c8df29ecd6e8801ea33
Shell
lachinyakov/mlops
/scripts/dvc_init.sh
UTF-8
697
2.953125
3
[]
no_license
#!/bin/bash # Скрипт инициализации dvc # ${BUCKET} Имя проекта/репозитория что бы подключиться к нужному бакету в хранилище # инициализируем dvc dvc init && # добавляем бакет стораджа dvc remote add -d storage s3://${BUCKET} && # устанавливаем что доступ в localhost в minio dvc remote modify storage endpointurl http:...
true
e776f749579bd4359ac3530be2a4a17dcf18c87c
Shell
terukura/installer
/Raspbian deb/1.3-07/weavedconnectd_1.3-07/usr/bin/task_notify.sh
UTF-8
9,655
3.703125
4
[]
no_license
#!/bin/bash # # Copyright (C) 2016 remot3.it # # This is a notification plugin for for bulk managment. # # The calling formats are as follows: # # task_notify.sh [cmd] [taskid] [api] [status] # # task_notify.sh 0 [taskid] [api] [status] # returns 200 OK for # # task_notify.sh 1 # returns 200 OK for # ...
true
c2614b5c066a280619ee68c98a1b82bbc02bcdc2
Shell
tingxueren/shell
/awk02.sh
UTF-8
402
3.171875
3
[]
no_license
#!/bin/bash FILE=$1 if [ -f $FILE ] ; then awk -F: '{ if ( $1 ~ /[Bb]/ ) { AMOUNT = $NF } if ( $1 ~ /[Dd]/) { AMOUNT += $NF printf "%s\t%f\n", $2, AMOUNT; } if ( $1 ~ /[Cc]/) { AMOUNT -= $NF printf "%s\t%f\n", $2, AMOUNT; } if ( $1 ~ /[Ww]/) { AMOUNT -= $NF printf "%s\t%f\n", $...
true
3d8f0fed005a520b7f125b6419cd2fa18c3ede22
Shell
Saiyato/volumio-kodi-plugin
/uninstall.sh
UTF-8
888
2.671875
3
[]
no_license
#!/bin/bash echo "Uninstalling Kodi configs" # Remove policies echo "Removing policies..." rm /etc/udev/rules.d/99-input.rules rm /etc/udev/rules.d/10-permissions.rules rm /etc/ld.so.conf.d/00-vmcs.conf rm /etc/polkit-1/localauthority/50-local.d/50-kodi-actions.pkla ldconfig # Update the GPU memory echo "Update the G...
true
eeda73bc524debf96a57b266a5f0a63fdd45c0c2
Shell
vaughnanderson/VLC-Resume
/vlc_resume.sh
UTF-8
5,282
3.921875
4
[]
no_license
#!/bin/bash # version 1.1 # By Vaughn Anderson # # Save the last location for a file playing, and then resume if it's been played before # NOTES: The reason "title" is used for the resume function is that # the input file can change after VLC opens, and then the resume log is inaccurate. # There doesn't seem to be any...
true
c9c3532b05d817baa6111d0952eeedabebd29522
Shell
alexeykomov/dotfiles
/aliases.sh
UTF-8
2,583
2.625
3
[]
no_license
PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH:/usr/local/Cellar/sbt/0.13.13/bin:" export NVM_DIR=~/.nvm source ~/.nvm/nvm.sh #Aliases. alias edit="/Applications/TextMate.app/Contents/Resources/mate -w" alias up="cd .." alias findg="find . -type f -print0 | xargs -0 grep -Ini --color=auto" alias la="ls -a" PATH="/...
true
4cca1f912304a9e9961ff19ff7d90bc2da2f5b3a
Shell
landryraccoon/cassieq
/core/docker/data/bin/service
UTF-8
2,341
3.8125
4
[]
no_license
#!/usr/bin/env bash conf_dir=/data/conf libs_dir=/data/lib configFile=$conf_dir/configuration.yml function run_app(){ classname="io.paradoxical.cassieq.ServiceApplication" command=$1 for jar in ${libs_dir}/*.jar; do classpath=$classpath:$jar done properties="-Djava.library.path=${lib...
true
37542a22a90fe7deb4e7299a1e5a44e77caa7fc0
Shell
dinushan/pittaniya
/git_new_proj.sh
UTF-8
143
2.953125
3
[]
no_license
#!/bin/bash if [ "$#" - ne 1 ]; then echo "Usage : git_new_project project_name" fi echo $1 git checkout --orphan $1 rm .git/index mkdir $1
true
c63d5ca2312dabf53a4e239d03fc436a5b9632dc
Shell
sensei-software/sensei-server
/bin/sensei-kill-all
UTF-8
291
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash # Base . ${0%/*}/../res/base/sensei.base echo "killing sensei-* processes" kill $(pgrep -f sensei- | grep -v ^$$\$ | grep -v ^$1\$ | grep -v ^$2\$ ) >/dev/null 2>&1 echo "killing others" killall tee 2>/dev/null killall tail 2>/dev/null killall highlight 2>/dev/null echo "End."
true
241fbb87aaf3732eb642f8b3630a60255022ff37
Shell
aodiogo/aerospike-tls-examples
/tls-example-java/install-certs.sh
UTF-8
1,711
3.75
4
[]
no_license
#!/usr/bin/env bash # Add certificates to TrustStore/KeyStore for testing Aerospike with TLS enabled # in JVM-based applications. PREFIX='example' CERTS=( "${PREFIX}.client" "${PREFIX}.server" ) CERT_DIR="../certs" TRUSTSTORE_DIR="etc/pki/certs" TRUSTSTORE_PASSWORD="changeit" KEYSTORE_DIR="etc/pki/private" KEYSTORE_P...
true
99d0ab482e3b08a0b6497bb966c10cc3dd7924e5
Shell
triihim/dockermooc
/Part3/3.3/github-publish.sh
UTF-8
813
4.0625
4
[]
no_license
#!/bin/bash if [ -z $REPOSITORY ] || [ -z $IMAGE_NAME ] || [ -z $TAG_NAME ] || [ -z $DOCKER_USERNAME ] || [ -z $DOCKER_PASSWORD ] then echo Error. Ensure all the following env variables are set. echo REPOSITORY echo IMAGE_NAME echo TAG_NAME echo DOCKER_USERNAME echo DOCKER_PASSWOR...
true
0b374cafd209719ecfad651d711c1ad6890481db
Shell
jianghaitao1221/appinhouse
/script/install_nginx.sh
UTF-8
1,185
3.71875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -ex #Installs Nginx package with instructions in: # http://nginx.org/en/linux_packages.html # # NOTE: Run this script as ROOT TMP_DIR='/tmp/nginx-install' CODENAME='trusty' # Not using /etc/apt/sources.list because it's written by cloud-init on first boot of an instance, # so modifications made there will...
true
b1ca9fb2bdaf2f8712f0482b1f04a83319c70994
Shell
Ichicoro/xash3d-fwgs
/scripts/yadisk_upload.sh
UTF-8
213
2.875
3
[]
no_license
FOLDER_NAME=$DEPLOY_BRANCH-$TRAVIS_BRANCH WEBDAV_SRV=https://$YANDEX_DISK_USER:$YANDEX_DISK_TOKEN@webdav.yandex.ru for file in $*; do echo "Uploading $file..." curl -T $file $WEBDAV_SRV/$FOLDER_NAME/$file done
true
03cc455cab292faa8dd9594d523d4eebe4ea8d7f
Shell
recepkandemir/opticks
/ana/cfpy.sh
UTF-8
2,365
3.265625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -l MODE=${1:-0} ana_cmd_0(){ cat << EOC $* $(which tboolean.py) --tagoffset 0 --tag 1 --cat tboolean-box --pfx tboolean-box --src torch --show EOC } ana_cmd_1(){ cat << EOC LV=box $* $(which histype.py) EOC } ana_cmd_2(){ cat << EOC $* $(which seq.py) EOC } usage(){ cat << EON To regenerate the event f...
true
b6eb72655139d5c1efa1a8f6b6d5c9b949058ff5
Shell
hansenherd/TechStuff
/bash/bash/unused_wmm/wmm-2.9.3-SNAPSHOT/bin/genUniqueIdsFile.sh
UTF-8
2,178
4.0625
4
[]
no_license
#!/bin/bash ################################################################ # # Check for FIP MEMBER files. For each file found, collect the # additional required data for processing and pass the pair of # files to Locator for processing on MSSQL. # ################################################################ fu...
true
2cc5c4b374fec7ea72c7947220bfb946177bc1f9
Shell
SuperPaintman/dotfiles
/bin/bin/awki
UTF-8
807
3.78125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # See: https://gist.github.com/reegnz/b9e40993d410b75c2d866441add2cb55 set -e set -u set -o pipefail for executable in fzf; do if ! which "$executable" > /dev/null 2>&1; then echo "Please install $executable" 1>&2 exit 1 fi done if [[ $# == 0 ]] || [[ $1 == "-" ]]; then ...
true
8bc8a9d02a7ae2881cf4da3ede0b9a20975dce3d
Shell
lawruble13/scripts
/shell/spinner
UTF-8
394
3.546875
4
[]
no_license
#!/bin/bash function show_spinner() { local -r pid="${1}" local -r delay='0.75' local spinstr='\|/-' local temp while (( `ps -p "${pid}" | wc -l` > 1 )) do temp="${spinstr#?}" printf " [%c] " "${spinstr}" spinstr=${temp}${spinstr%"${temp}"} sleep "${delay}" printf "\b\b\b\b\b\b" done ...
true
672b3cf0c18da19e7f428c615d1e11e51f93ae1f
Shell
fossabot/code-du-travail-numerique
/.k8s/data/create-index.sh
UTF-8
179
2.71875
3
[ "Apache-2.0", "JSON" ]
permissive
#!/bin/sh CDTN_POD_STATUS=$(kubectl get pod "$1") # Check if cdtn-data pod exists if [ "$CDTN_POD_STATUS" ]; then kubectl delete po "$1" fi kubectl apply -f ./deployment.yml
true
212f60a09debb0ad686a024e71d2d3a8f0c183da
Shell
Ariwor/RNA-seq-edgeR-CAMERA
/Trimmomatic_Bowtie2.sh
UTF-8
1,485
3.3125
3
[]
no_license
!/bin/bash base=/path/to/some_folder # Trimmomatic for IN in [/path/to/raw_data_folder*_R1.fastq.gz]; do name1=${IN/R1/R2}; base=$(basename ${IN} _R1.fastq.gz); trimmomatic PE -phred33 ${IN} ${name1} ${base}_f_paired.fastq.gz ${base}_f_unpaired.fastq.gz ${base}_r_paired.fastq.gz ${base}_r_unpaired.fastq....
true
3f2e0384343bf65f6539cce6012fc32e47786434
Shell
yahoo/panoptes_snmp
/src/net-snmp-5.7.3/testing/fulltests/default/T000configure_simple
UTF-8
573
3.203125
3
[ "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-unknown-license-reference", "MIT-CMU" ]
permissive
#!/bin/sh if test -f ../support/simple_eval_tools.sh ; then . ../support/simple_eval_tools.sh versionfile=$SNMP_BASEDIR/../../../dist/autoconf-version configurefile=$SNMP_BASEDIR/../../../configure else . ../eval_tools.sh versionfile=$SNMP_BASEDIR/../dist/autoconf-version configurefile=$SNMP_BASEDIR/../c...
true
3b0f71cef7999bd685bbef7973440757b05c0d24
Shell
gruppenpest/eee701
/PKGBUILD
UTF-8
10,219
2.890625
3
[ "MIT" ]
permissive
# Maintainer: gruppenpest <drgruppenpest@softhome.net> # Previous maintainer: OK <ok100.ok100.ok100@gmail.com> # Based on kernel-eee PKGBUILD by Dan McGee <dan@archlinux.org> pkgname=(linux-eee-ck linux-eee-ck-headers) _ckpatchversion=1 _majorver=4.0 _ckpatchname="patch-${_majorver}-ck${_ckpatchversion}" _srcname=linu...
true
19ad6fea4e2879c4f59496a912cb79adf5137a35
Shell
tg--/blog
/pelitool.zsh
UTF-8
2,225
4.15625
4
[]
no_license
#!/usr/bin/env zsh # pelican binary pelican=/usr/bin/pelican # theme theme="themes/tg" # content dir content="_content" # target dir target="_published" function print_help() { print "This is pelitool, a little helper for the pelican blog engine." print "It is intended to take over some annoying manual labor :)...
true
9213971d5baf62a5a442620a33b7c939d881e498
Shell
TresAmigosSD/SMV
/admin/gen_docs.sh
UTF-8
1,288
3.8125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ "$#" -ne 1 ]; then echo "ERROR: Invalid number of arguments" echo "USAGE: $0 output_path" echo "example:" echo " \$ $0 /tmp/docgen" exit 1 fi OUTPUT_DIR=$1 function define_vars() { SMV_TOOLS="$(cd "`dirname "$0"`"; pwd)" PKG_TO_DOC="$SMV_TOOLS/../src/main/python/smv" PKG_DIR=$(di...
true
ad63a1eba0f6ca5632a23cf57096d1a1eec7452a
Shell
delkyd/alfheim_linux-PKGBUILDS
/python-pysmi/PKGBUILD
UTF-8
1,218
2.703125
3
[]
no_license
# Maintainer: Muflone http://www.muflone.com/contacts/english/ pkgbase=python-pysmi _pkgbase=${pkgbase/*-/} pkgname=('python-pysmi' 'python2-pysmi') pkgver=0.0.7 pkgrel=1 pkgdesc="A pure-Python implementation of SNMP/SMI MIB parsing and conversion library. Can produce PySNMP MIB modules." url="https://sourceforge.net/...
true
9082cac0421947a0de5b2df883ff8390adf1a11c
Shell
emilianbold/netbeans-releases
/j2ee.sun.appsrv81/appsrvbridge/buildapijar.sh
UTF-8
7,100
2.53125
3
[]
no_license
#!/bin/sh # # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. # # Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved. # # Oracle and Java are registered trademarks of Oracle and/or its affiliates. # Other names may be trademarks of their respective owners. # # The contents of this file are s...
true
a99eafaf87227552b00dae5fae701ba3426e819c
Shell
JBorrow/swift-basic-hydro-convergence
/build.sh
UTF-8
809
2.875
3
[]
no_license
source shared.sh extra_flags="--disable-mpi --with-hydro-dimension=1" cd swiftsim-master ./autogen.sh mkdir build cd build echo "Generating builds" for scheme in "${sph[@]}" do echo "Generating build for ${scheme}" mkdir $scheme cd $scheme ../../configure --with-hydro=$scheme $extra_flags 2>&1 > configure_o...
true
2d7d09f5720780c7bab0cf76f7233648a6b96a47
Shell
heartshare/Auto-Deploying-Cloud-Storage
/deploy.sh
UTF-8
1,518
3.484375
3
[]
no_license
#/bin/bash echo "" > deploy.log mkdir -p tmp source ./config/config source ./script/functions chmod a+x ./script/* &> /dev/null #判斷config/hosts檔裡的IP是否為1或3個以上 if [ $total_hosts -eq 0 ] || [ $total_hosts -eq 2 ]; then echo "至少要1台或3台以上的主機!" | tee -a deploy.log exit 1 fi rpm -q openssh-clients > /dev/null if [ $? -n...
true
d0dac3c9fc1f58533fc18a2c7afce80e541ef02d
Shell
bubble501/matchbox
/tests/smoke/bootkube
UTF-8
1,844
3.640625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" source "${DIR}/common" main() { rm -rf assets cleanup trap cleanup EXIT ./scripts/get-kubectl ./scripts/get-bootkube ./scripts/devnet create bootkube ./scripts/libvirt create echo "bootkube render" ./bin/bootkube re...
true
8830cd8152c001bf39258030fe0e09a1b2d697ef
Shell
johandry/VeDeV
/packer/scripts/centos/locale.sh
UTF-8
300
3.296875
3
[]
no_license
#!/bin/bash -eux # Print script message in yellow message () { echo -e "\033[93;1mSCRIPT:\033[0m ${1}" } message "Removing locales but en_US" localedef --list-archive | grep -a -v en_US.utf8 | xargs localedef --delete-from-archive cp /usr/lib/locale/locale-archive{,.tmpl} build-locale-archive
true
69711bb880ca411e9be31cde20ed4bd7d911c8fe
Shell
JeffHiggy/bashprofile
/.dotfiles/.welcome
UTF-8
1,161
3.71875
4
[]
no_license
#!/bin/bash #Prepare welcome message vars let upSeconds="$(/usr/bin/cut -d. -f1 /proc/uptime)" let secs=$((${upSeconds}%60)) let mins=$((${upSeconds}/60%60)) let hours=$((${upSeconds}/3600%24)) let days=$((${upSeconds}/86400)) UPTIME=`printf "%d days, %02dh%02dm%02ds" "$days" "$hours" "$mins" "$secs"` #Load External F...
true
ac62e88f0332d770d7f9c738b794823a4c5e262c
Shell
ichjojo/latrappe
/scripts/build.sh
UTF-8
634
2.765625
3
[]
no_license
#!/bin/sh #sudo su - flu #cd /home/flu/peta_proj/github/latrappe #sudo su flu #sudo su flu <<! #year2000 #! #su - flu -c petalinux-build echo "the current working directory is:" pwd echo "the current working groups are:" groups echo "the current user is:" whoami echo "" echo "start to switch user to flu......" echo...
true
19344ae8e4fdd188e06243888df4a2bd9a25fb47
Shell
felidadae/musicallab
/tools/tools.sh
UTF-8
2,269
3.296875
3
[]
no_license
#Global tools # # scriptPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" projectRoot__=$scriptPath font0=$labs/MusicalLab/resources/"FluidR3GM2-2.SF2" font0=$labs/MusicalLab/resources/"HSSynth.sf2" ### # Use that tools to kill and rerun pulseaudio, # if You don't want to use brigde pulseaudio to jackd; ## fu...
true