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
fe9416da2750bf0aad684523adfb4bb7b7738740
Shell
kill121/ipxe-helper
/compile_ipxe.sh
UTF-8
361
2.71875
3
[]
no_license
#!/usr/bin/env bash . common.sh log "Cloning ipxe source" git clone -q git://git.ipxe.org/ipxe.git cd ipxe; git pull || error "No git?..." log "Preparing binary" cd src copy_template bootstrap.ipxe make bin/undionly.kpxe EMBED=bootstrap.ipxe > /dev/null || error "Could not compile :(" echo log "Done, copy $(pw...
true
dd8bdb8a9e6e3f6c71aa444a8426c01e5d1b0cd1
Shell
mihalea/bitwarden-pyro
/packaging/deploy.sh
UTF-8
617
3.0625
3
[ "MIT" ]
permissive
#!/bin/bash set -ex cd "$TRAVIS_BUILD_DIR/packaging" # Get the repo git clone ssh://aur@aur.archlinux.org/bitwarden-pyro-git.git aur # Update it cp PKGBUILD aur cd aur # Change pkgver to current version sed -i -r "s/^(pkgver)=(.*)$/\1=${VERSION}/g" PKGBUILD sed -i -r "s/^(source=.*#tag)=(.*)$/\1=${TRAVIS_TAG}\")/g"...
true
eddbfbd9487b411ba6e6372af485b845ac0b7e27
Shell
luispedrosa/vigor
/bench/clean.sh
UTF-8
184
2.625
3
[ "MIT" ]
permissive
#!/bin/bash . ./config.sh # $1: The middlebox path (so we know what to kill) echo "[clean] Cleaning machines..." ssh $TESTER_HOST "~/scripts/clean/tester.sh" ./clean/middlebox.sh $1
true
1871123e693b11ff160851eebbd75956ad0c62ac
Shell
flukso/flm02
/tools/fff/www/cgi-bin/status
UTF-8
1,027
2.96875
3
[]
no_license
#!/usr/bin/env bash # # status - an fff script returning the last command's status code # # Copyright (C) 2015 Bart Van Der Meerssche <bart.vandermeerssche@flukso.net> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by ...
true
7dd7289aae944dd25c3eb86c4da212d3531d0586
Shell
bertvv/presentation-clean-bash
/examples/connections.sh
UTF-8
3,370
4.46875
4
[]
no_license
#! /usr/bin/env bash # # Author: Bert Van Vreckem <bert.vanvreckem@gmail.com> # # Give a list of all open connections, consisting of IP address and host name # (if reverse DNS lookup succeeds). # # https://github.com/bertvv/scripts/blob/master/src/connections.sh set -o errexit # abort on nonzero exitstatus set -o n...
true
21bd39539913da0dfb0aaad3733b3885f48382ef
Shell
ipbit/falcon-plugin
/plugin-update.sh
UTF-8
436
2.8125
3
[]
no_license
#!/bin/bash PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin PLUGIN_DIR=/usr/local/open-falcon/plugin/ RANDOM_SLEEP=`echo $(($RANDOM%3000))` sleep $RANDOM_SLEEP cd $PLUGIN_DIR git reset --hard git reset --hard origin/master curl http://127.0.0.1:1988/plugin/up...
true
fb50469155f3ad27e06daf1f4599a733910a2a67
Shell
tiagorol/cloudify-wordpress
/scripts/nginx/configure-nginx.sh
UTF-8
382
2.828125
3
[]
no_license
#!/bin/bash set -e cd /home/ubuntu/ ctx logger info "Incio da Configuracao do Nginx..." wget https://raw.githubusercontent.com/tiagorol/cloudify-wordpress/master/resources/nginx/nginx.conf HOST_NG=$(wget http://ipecho.net/plain -O - -q ; echo) sudo sed -i "s/HOST_NGINX/$HOST_NG/" nginx.conf sudo cp nginx.conf /et...
true
192d462cb42b8ca5da139afc4240d3d21fd90cca
Shell
brunevikis/Scripts_Queue_CPAS
/Local/scripts/GNL/OLD/Altera_Adterm.sh
UTF-8
3,041
3.015625
3
[]
no_license
#!/bin/bash Alterar_Adterm() { i=0 j=0 mes=1 linha_Usina=False bloco_Antigo="" bloco_Novo="" Dir_Atual=$(pwd) n=6 pos=${#Dir_Atual} n_5=$((pos-6)) Pasta_Data=${Dir_Atual:$n_5:$n} insertpoint=2 IFS=$'\n' while read d1 do i=$((i+1)) j=$((j+1)) linha_AD=$(echo "$d1") if [[ i -gt 2 ]]; then ...
true
e4460078f56afd0addefa06e4274c459438ff06d
Shell
gilbertoamarcon/sfm
/add-cam.sh
UTF-8
258
2.796875
3
[]
no_license
#!/bin/bash cam_model=$1 cam_focal_dist=$2 sensor_db=${HOME}/dev/openMVG/src/openMVG/exif/sensor_width_database/sensor_width_camera_database.txt # Inserting camera into the db echo $cam_model';'$cam_focal_dist >> $sensor_db sort -o $sensor_db $sensor_db
true
0e434b437f01763f5168b6031f8cdff6b7262f34
Shell
b4/4.3BSD-Quasijarus
/usr.bin/diction/SCCS/s.diction.sh
UTF-8
1,616
2.515625
3
[]
no_license
h51544 s 00001/00001/00027 d D 4.5 82/11/06 17:54:54 rrh 5 4 c fix minor formatting botch e s 00006/00002/00022 d D 4.4 82/11/06 17:13:29 rrh 4 3 c Change so default macro package is -me; added -me, -ma and -k flags c for deroff e s 00002/00001/00022 d D 4.3 82/11/06 17:08:06 rrh 3 2 c Change path to derof...
true
6de5039558e1d94350e4b81fde30e966e6c7a418
Shell
edwardsmarkf/fastfeathers
/init-mariadb-client.bsh
UTF-8
4,062
3.46875
3
[]
no_license
#! /bin/bash # init-mariadb-client.bsh last update: 2018-04-18 # 2018-09-12 -- commented out firewall # this script builds a mariadb client from scratch for testing with init-mariadb-server.bsh dbServerIP='XXX.XXX.XXX.XXX'; ## this this from init-mariadb-server.bsh dbUser='feathersuser'; dbPass='aaaaaa'; db...
true
0b9bd81d36f752cde253422881811cbb293c419a
Shell
ernestrc/logd
/test/helper.sh.in
UTF-8
7,806
2.90625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash LOGD_SLAB_CAP=@LOGD_SLAB_CAP@ LOGD_BUF_INIT_CAP=@LOGD_BUF_INIT_CAP@ LOGD_BUF_MAX_CAP=@LOGD_BUF_MAX_CAP@ if [[ $SED == "" ]]; then SED=sed fi TESTS_SLEEP="$TESTS_SLEEP" if [[ "$TESTS_SLEEP" == "" ]]; then TESTS_SLEEP=1 fi function assert_file_content { local __OUT=$(tr -d '\0' < $2) if [ "...
true
2eb727192a9b3d4419464ca96c7dd2c40f1a69e4
Shell
resmo/voyage-linux
/meshlium/plugins/system/Synchronization/data/gps_date.sh
UTF-8
322
3.53125
4
[]
no_license
#!/bin/bash launch_gps_time=$(cat /etc/gps_time.conf |grep on|wc -l) if [ $launch_gps_time -gt 0 ] ; then gpsd=$(ps -e |grep gpsd) if [ -n "$gpsd" ] ; then date=`gps_parser.py` echo "date $date" else echo "gpsd not active" fi else echo "gps not configured to actualize date" ...
true
0c24a83b34c79b106d3c39c5653e7d19f8e394ff
Shell
inetum-orleans/docker-devbox-scripts
/.bash_enter.d/81-git-chmod
UTF-8
1,720
4.125
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # This should apply executable flags defined on git repository based on git ls-files -s output function _git_chmod { if $([ -d .git ] || git rev-parse --git-dir > /dev/null 2>&1); then submodule_path=$(_utils_relative_path "$PWD") if [[ -z $submodule_path ]]; then echo "$(tput setaf 7)Check...
true
0bc7f12d834cb0e20f16e794c1ff98ac4ea8050e
Shell
jhuntwork/merelinux
/packages/rust/PKGBUILD
UTF-8
1,957
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash # shellcheck disable=SC2034,SC2154,SC2068 pkgname=(rust) pkgver=1.66.0 pkgrel=1 pkgdesc='The Rust programming language' arch=(x86_64) url='https://www.rust-lang.org' license=(GPL) groups=() depends=() makedepends=( cmake llvm-dev ninja openssl-dev python zlib-ng-dev ) options=() cha...
true
49a7731f88a16892aadf03a71f3df38415de6e5b
Shell
KostyaEsmukov/dotfiles
/scripts/install_docker.sh
UTF-8
1,023
3.5625
4
[]
no_license
#!/bin/bash set -euxo pipefail if [ "Darwin" = `uname` ]; then brew install --cask docker elif which apt; then # https://docs.docker.com/install/linux/docker-ce/debian/ if [ "x86_64" != `uname -m` ]; then echo "This script is for x86_64 only." echo "Please install docker manually inste...
true
705d6d00f8a446c3ba19edc0fa051c4c4acafb2d
Shell
git-hub-lab/reactor
/.travis/install_docker.sh
UTF-8
815
3.375
3
[]
no_license
#!/usr/bin/env bash set -e install_engine() { echo "update docker engine" curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" sudo apt-get update sudo apt-get -y -o Dpkg::Op...
true
6dc2b0f376cdee47972041fff61e7b6798ad68d2
Shell
mumahendras3/configs-scripts
/scripts/nvidia-driver-recompile
UTF-8
3,135
4.25
4
[ "MIT" ]
permissive
#!/bin/sh # Variable initialization BBSBPATH=${BBSBPATH:-/root/SlackBuilds-extra/Bumblebee-SlackBuilds} COMPAT32=${COMPAT32:-yes} NVDVER=${NVDVER:-390.12} KERNEL=${KERNEL:-$(uname -r)} # Telling the Bumblebee-Slackbuilds directory that's going to be used if [ "$BBSBPATH" == "/root/Downloads/Bumblebee-SlackBuilds" ]; ...
true
b2764e8ebb9a6e690bede366bbdaf1e2bf8728b8
Shell
freebsd/freebsd-ports
/net/rp-pppoe/files/04pppoe-server.sh.sample
UTF-8
555
3.3125
3
[ "BSD-2-Clause" ]
permissive
#! /bin/sh # use a subshell to support new -CURRENT rc.d structure ( daemon=pppoe-server daemon_path=/usr/local/sbin #daemon_flags= case $1 in start) if [ -x ${daemon_path}/$daemon ]; then ${daemon_path}/$daemon $daemon_flags echo -n " $daemon" fi ;; stop) ...
true
0918b74fbb2f78b0070fde440e15a3797471ad67
Shell
JohnCremona/apocrita_scripts
/jcontrol
UTF-8
932
3.375
3
[]
no_license
#!/bin/bash JOBNAME=$1 MAXJOBS=$2 function nr () { qstat | grep mpx017 | grep -c " r " ; } function nq () { qstat | grep " qw " | awk 'BEGIN{s=0;}{a=gensub("-.*$","","g",$9); b=gensub(":.*$","","g",gensub("^.*-","","g",$9)); s+=(1+b-a);}END{print s}' ; } while true; do NRUN=`nr` NQUE=`nq` NJOBS=`expr $NRUN...
true
2341d84b49620ad096c4506db1e228414d077965
Shell
alejandrogallo/hirata
/tools/indices.sh
UTF-8
518
2.90625
3
[]
no_license
holes=(i j k l m n o p) parti=(a b c d e f g h) { for a in h p; do for b in h p; do for c in h p; do for d in h p; do for e in h p; do for f in h p; do for g in h p; do nholes=0 nparti=0 index="" for var in a b c d e f g; do [[ ${!var} = h ]] && { index="${index}${holes[nholes]}"; let nholes+=1; }...
true
09000e845aa1e5450e27622514774c5d2d08dd9b
Shell
travis-ci/php-src-builder
/bin/install-libzip
UTF-8
1,433
3.671875
4
[]
no_license
#!/usr/bin/env bash set -o xtrace set -o errexit # If PHP < 7.3, exit if [[ ! $VERSION =~ ^master$ ]] && [[ "$(printf "7.3\n$VERSION" | sort -V | head -n1)" < "7.3" ]]; then echo 'PHP < 7.3; skip libzip steps' exit 0 fi LIBZIP_INSTALL_DIR=$HOME/.phpenv/versions/$VERSION # uninstall system-wide zip packages sudo a...
true
0c07c108311cce1531eb9fef0b02ec704d0eed35
Shell
yqtianust/gradingFramework
/2test.sh
UTF-8
614
2.796875
3
[]
no_license
#!/bin/bash echo "compile and test" for f in lab_5/*/; do echo ${f} srcfolder=`find ${f} -name Map.java -exec dirname {} \;` find ${f} -name Map.java -exec javac -cp ${srcfolder} {} -d ${f} \; srcfolder=`find ${f} -name BadMapException.java -exec dirname {} \;` find ${f} -name BadMapException.java -exec javac -cp ...
true
9427ec39f9811d35f656c202404365a789d2ac96
Shell
container-images/boltron-27
/diff-mods.sh
UTF-8
354
2.921875
3
[]
no_license
#! /bin/sh -e if [ ! -f latest-Fedora-Modular-27.COMPOSE_ID ]; then echo No known latest mod. exit 1 fi if [ ! -f prev-Fedora-Modular-27.COMPOSE_ID ]; then echo No known prev mod. exit 1 fi tests="test-$(cat latest-Fedora-Modular-27.COMPOSE_ID)" otests="test-$(cat prev-Fedora-Modular-27.COMPOSE_ID)" ...
true
7119430093e547f4417bb6f11d9f4941869772b5
Shell
janmojzis/curvevpn
/debian/service/curvecp/log/run
UTF-8
472
2.96875
3
[]
no_license
#!/bin/sh DEFAULTFILE="/etc/default/curvevpn-server-run" [ -f "${DEFAULTFILE}" ] && . "${DEFAULTFILE}" if [ x"${LOGDIR}" = x ]; then echo "\$LOGDIR not set, please edit ${DEFAULTFILE}"; exit 111; fi if [ x"${LOGUSER}" = x ]; then echo "\$LOGUSER not set, please edit ${DEFAULTFILE}"; exit 111; fi mkdir -p "${LOGDIR}/...
true
137727ffa6f36cb5b33884ce3e305802671727f4
Shell
jg19/scripts-shell-linux
/1-basicos/if-elif-else/if-eq-procura-usuario.sh
UTF-8
404
3.515625
4
[]
no_license
#!/bin/bash # Descrição: eemplo de if com teste de igual a 0 echo "Digite o nome do usuário que deseja procurar:" read nome echo "Procurando $nome..." who | grep $nome if [ $? -eq 0 ]; then echo "$nome encontrado, este usuário está logado" else echo "$nome não foi encontrado" fi # Neste script podemos ver: # - U...
true
2651d25741f9f5bad49a3f14105cc891342bbd48
Shell
rdjeddi/typhon
/SOURCE/Util/countlines
UTF-8
268
2.796875
3
[]
no_license
#!/bin/sh echo "* number of files : "$(ls -l */*.f90 | wc -l) echo "* total lines : "$(cat */*.f90 | wc -l) echo "* coded lines : "$(cat */*.f90 | grep -v '^ *$' | grep -v '^ *!' | wc -l) echo "* comments : "$(cat */*.f90 | grep '^ *!' | wc -l)
true
e126216ed47cb90bce7869178bd04db21425bad0
Shell
gvtek/MySQLDBSetup
/MySQLDBSetup.sh
UTF-8
779
3.328125
3
[]
no_license
# !/bin/bash # # initialize databases from a standard file # creating databases as needed DBLIST=$(mysql -e "SHOW DATABASES;" | tail +2) select DB in $DBLIST "new..." do if [[ $DB == "new..." ]] then printf "%b" "name for the new db: " read db test echo creating new database $DB mysql -e "CREATE DATABASE IF ...
true
c5b2bb031a4b6da619d534f1c752a25ca9cd8792
Shell
lgtczh/ShellLearning
/02SubsAndLookup/merge-sales.sh
UTF-8
373
2.828125
3
[]
no_license
#! /bin/sh # merge-sales.sh # 结合配额与业务员数据 # 删除注释并按姓名排序数据文件 sed '/^#/d' quotas | sort > quotas.sorted sed '/^#/d' sales | sort -k 2 > sales.sorted # 以名字作为key进行结合,将结果产生至标准输出 join -2 2 -o 1.1,1.2,2.3 quotas.sorted sales.sorted # 删除缓存文件 rm quotas.sorted sales.sorted
true
e7b01380ffeb3573dccc83834f5a005d43d24813
Shell
yaolongli520/rootfs
/unit_tests/BAT/bat-gpio-keypad.sh
UTF-8
4,176
4.09375
4
[]
no_license
#!/bin/bash # # Tests that the GPIO keys are successfully registered for each board. # Most boards have a power on/off button, some also have volume up/down, etc. # Also tests that the state of the GPIO keys is unpressed when running this # test. # set -e batdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) . $batdi...
true
963268b6cb71ce4944d841a06971f93d8dc03d67
Shell
mgibson91/geonames-to-json
/update/updateGeonamesData.sh
UTF-8
1,244
4
4
[ "MIT" ]
permissive
#!/bin/bash user="" password="" database="" function usage() { echo "./updateGeonamesData.sh -u<user> -p<password> -d<database>" } while getopts u:d:p:f: option do case "${option}" in u) user=${OPTARG};; p) password=${OPTARG};; d) database=${OPTARG};; h) usage;; esac do...
true
5386ca3fd7c931fd49f8864ffa69863844a85e9b
Shell
rahulyesantharao/dotfiles
/bash/prompt.bash
UTF-8
12,895
3
3
[]
no_license
# taken from: https://github.com/chris-marsh/pureline # DEFAULTS ############################################ # Color Set declare -A PL_COLORS=( [Color_Off]='\[\e[0m\]' # Text Reset # Foreground [Default]='\[\e[0;39m\]' # Default [Black]='\[\e[38;2;40;44;52m\]' # Black [Red]='\[\e[38;2;224;1...
true
1035c25f2626cf1ff9bb37609c290c95cfba3efc
Shell
replit/polygott
/out/share/polygott/phase2.d/ballerina
UTF-8
973
3.171875
3
[ "MIT" ]
permissive
#!/bin/bash set -ev shopt -s dotglob export HOME=/home/runner rsync --delete --recursive --links --perms --times /opt/homes/default/ /home/runner echo 'Setup parents of ballerina' rsync --recursive --links --perms --times /opt/homes/java/ /home/runner/ chown -R $(id -u):$(id -g) /home/runner echo 'Setup ballerina' c...
true
5b3391fcd66bf49c7f48c2f267e833e63b8ff69d
Shell
fr34k8/prowler
/checks/check312
UTF-8
3,010
2.625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Prowler - the handy cloud security tool (copyright 2019) by Toni de la Fuente # # 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...
true
8d9595afd73c8e4445e65a3aa97544e84989a0d2
Shell
nataliamedinat/holberton-system_engineering-devops
/0x05-processes_and_signals/4-to_infinity_and_beyond
UTF-8
114
2.546875
3
[]
no_license
#!/usr/bin/env bash #Display a sentence indefinitely while true do echo "To infinity and beyond" sleep 2 done
true
e25dc33a750090da9eb9a099ae2bf2ba06ddd8ec
Shell
maksbotan/scripts
/rotate.sh
UTF-8
608
3.5625
4
[]
no_license
#!/bin/sh start(){ gpg -d ~/.vk/pass.bin 2>/dev/null > ~/pass ~/scripts/vk_spy.py > /home/maksbotan/vk_spy.log 2>&1 & } stop(){ killall vk_spy.py && sleep 5 } rotate(){ mv ~/log.json{,-$(date +%F)} mv ~/vk_spy.debug{,-$(date +%F)} } case $1 in --restart) stop start ;;...
true
775451917cdbbbcc1ce5f43bd661f229b97867c2
Shell
ginnocen/Run3Analysisvalidation
/codeHF/config_input.sh
UTF-8
2,768
2.609375
3
[]
no_license
#!/bin/bash # shellcheck disable=SC2034 # Ignore unused parameters. # Input specification for runtest.sh # (Modifies input parameters.) INPUT_CASE=2 # Input case NFILESMAX=1 # Maximum number of processed input files. (Set to -0 to process all; to -N to process all but the last N files.) # Num...
true
cd533f45b8b21d2f917995e6c13d6f7d9fa2ad6f
Shell
stephanfriedrich/dockerbunker
/data/services/seafilepro/containers.sh
UTF-8
2,027
3.078125
3
[ "MIT" ]
permissive
seafilepro_db_dockerbunker() { docker run -d \ --name=${FUNCNAME[0]//_/-} \ --restart=always \ --network dockerbunker-${SERVICE_NAME} \ --net-alias=db \ -v ${SERVICE_NAME}-db-vol-1:${volumes[${SERVICE_NAME}-db-vol-1]} \ --env MYSQL_ROOT_PASSWORD=${DBROOT} \ --env MYSQL_USER=${DBUSER} \ --env MYSQL_PAS...
true
d4331b88fee142fa7fc50c5ecc7ccc3befc251bd
Shell
ldraw-linux/ldraw-library
/ldraw-wrapper
UTF-8
2,094
4.25
4
[]
no_license
#!/bin/bash # Run LDraw application after checking/creating of $LDRAWHOME directory # This is a wrapper for all the programs that are part of the # linux-ldraw project. The system LDraw library is installed in # /usr/share/ldraw To allow users to have their own unofficial # parts, a custom ldconfig.ldr or other cust...
true
929f0c15c0bace41f5d58741191df9c7a9eef3ab
Shell
miguelrjim/lolmanager
/.openshift/action_hooks/build
UTF-8
332
2.84375
3
[]
no_license
#!/bin/bash OLD_HOME=$HOME echo "Bower & Gulp" export HOME=$OPENSHIFT_REPO_DIR if [ -f "${OPENSHIFT_REPO_DIR}"/bower.json ]; then (cd "${OPENSHIFT_REPO_DIR}"; node_modules/.bin/bower install) fi if [ -f "${OPENSHIFT_REPO_DIR}"/gulpfile.js ]; then (cd "${OPENSHIFT_REPO_DIR}"; node_modules/.bin/gulp build) fi export HO...
true
eaf08162e9133dbb6e9e3b632ff10e0835ee7f9d
Shell
sschuberth/dev-scripts
/git/git-log-json
UTF-8
275
2.703125
3
[ "MIT" ]
permissive
#!/bin/sh # See https://til.simonwillison.net/jq/git-log-json. git log --pretty=format:'%H%x00%an <%ae>%x00%ad%x00%s%x00' | \ jq -R -s '[split("\n")[:-1] | map(split("\u0000")) | .[] | { "commit": .[0], "author": .[1], "date": .[2], "message": .[3] }]'
true
2bf391ae025c660d1b8db3dc0c9d19e13a3f9102
Shell
akoenig/bldr
/bldr
UTF-8
755
3.921875
4
[]
no_license
#!/usr/bin/env bash # # bldr # # Performs the build process of an application # in an ad-hoc container-like environment # # # Author: André König <andre.koenig@posteo.de> # PKG=package.json CWD=$(readlink -f .) MANIFEST=$CWD/$PKG echo "bldr" if [ ! -f $MANIFEST ]; then echo "Well, there is no '$PKG' in this pro...
true
891ec845d66aaee3a760a00b7ff115ac8e53d972
Shell
karlmolina/dotfiles
/.zshrc
UTF-8
3,315
2.609375
3
[]
no_license
source ~/zsh-defer/zsh-defer.plugin.zsh # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH export PATH="$PATH:$HOME/flutter/bin" ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git" [ ! -d $ZINIT_HOME ] && mkdir -p "$(dirname $ZINIT_HOME)" [ ! -d $Z...
true
84b056fa1e7a12f8ec438da853172b7b599e7078
Shell
taiji4444/cc
/DHshell/mkfs_mount.sh
UTF-8
530
3.6875
4
[]
no_license
#!/bin/bash disk=/dev/$1 datadir=$2 if [ $# -ne 2 ];then echo "argment error" echo "exmple:sh $0 sdb /data" exit 1 fi if [ ! -d $datadir ];then mkdir -p $datadir fi flag=`fdisk -l | grep $disk| wc -l` if [ $flag -eq 1 ];then mkfs.xfs $disk else echo "$disk not exits " exit 1 fi if [ $? -ne 0 ];then echo "form...
true
87bb4d85c9128a26b4db8f3c9abe8e0be41e9543
Shell
asyrjasalo/kongman
/make_dc_and_examples
UTF-8
835
2.75
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -e unset KONG_ADMIN_URL KONG_ADMIN_KEY ### recreate env and install package from source make --silent dc_rm dc install ### create or upgrade Kong Admin API loopback requiring auth kong-incubator --yaml examples/kadmin.yaml --output None admin_key=$(kong-incubator --key-auth root --output ke...
true
d45ebf32255a0823bdd2a17e82d402320fd2be54
Shell
jamescostian/.config
/update-setup.sh
UTF-8
1,037
3.296875
3
[ "ISC" ]
permissive
#!/usr/bin/env bash # setup.sh takes the existing configuration and writes it, it does _not_ absorb the configuration on your machine; it just overwrites it. # But what if you have changes on your machine that are worth keeping? Run this script to prevent setup.sh from messing up your setup. if [[ "$(uname)" = "Darwin...
true
7b60f4cade6527ee045571748150fc95be055e70
Shell
DarcyChang/MyProjects
/Senao/UTM-T55/wg/T55_MFG/tpm_test.sh
UTF-8
1,784
3.03125
3
[]
no_license
#! /bin/bash #source /root/automation/Library/path.sh test_result_path=$(cat /root/automation/T55_MFG/mfg_version | grep "test_result_path" | awk '{print $2}') test_result_failure_path=$(cat /root/automation/T55_MFG/mfg_version | grep "test_result_failure_path" | ...
true
a43d53344846d495c67e2038709633265ea85106
Shell
iacabezasbaculima/UNIX_ShellScripting
/for.sh
UTF-8
357
3.9375
4
[ "Apache-2.0" ]
permissive
#!/bin/sh # Using a "for" loop echo "Please enter a list of number between 1 and 100." read NUMBERS # iterate through each item in $NUMBERS and put value in $NUM for NUM in $NUMBERS do if [ "$NUM" -lt 1 ] || [ "$NUM" -gt 100 ]; then echo "Invalid Number ($NUM) - Must be between 1 and 100!" else ...
true
54bb557ce202f3903c8be3a27cfcf85c7624e5b8
Shell
tsarpaul/linux-bootloader
/build-initramfs.sh
UTF-8
1,092
3.953125
4
[]
no_license
#!/bin/sh # To create a 32-bit image I used an AWS instance. if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" exit 1 fi mkdir --parents ./initramfs/{bin,dev,etc,lib,lib64,mnt/root,proc,root,sbin,sys} cp --archive /dev/{null,console,tty,sda1} ./initramfs/dev/ yum install -y busybox cp --arch...
true
eb2ca0e6fd1b5560e7b7dcc91ba086d2a1a58038
Shell
delkyd/alfheim_linux-PKGBUILDS
/dxreminders/PKGBUILD
UTF-8
552
2.609375
3
[]
no_license
# Contributor: David Vachulka <arch_dvx@users.sourceforge.net> pkgname=dxreminders pkgver=1.10.1 pkgrel=1 pkgdesc="A simple program for reminders" arch=('i686' 'x86_64') url="http://dxreminders.dxsolutions.org" license=('GPL') depends=('wxgtk2') makedepends=('cmake') install=${pkgname}.install source=(http://files.dxs...
true
0d64bfe570e8c49fd18055dcf907a2faa4cfe30e
Shell
praser/restos-a-pagar
/backend/build.sh
UTF-8
875
3.34375
3
[]
no_license
#!/bin/bash while getopts t: flag do case "${flag}" in t) tag=${OPTARG};; esac done echo "Gerando build com a tag: $tag..."; # Remover build pre existente rm -rf ./build # copiar a pasta do projeto rsync -ax ./ ./build # acessar a pasta do build cd build # instalar dependências de produção rm -rf vendor &...
true
7a398f71543fa78c3e80cd8dccfa2d066e7a1441
Shell
DannyBen/rush-repo
/gpg2/main
UTF-8
289
3.421875
3
[]
no_license
#!/usr/bin/env bash source "$REPO_PATH/lib.sh" if command_exist gpg2 ; then say "gpg2 is already installed" else case "$DISTRO" in "ubuntu") package_install gnupg2 ;; "arch") package_install gnupg ;; esac say "copying bashrc.d config" cp gpg2.bashrc ~/.bashrc.d/ fi
true
e3738206c757f51045baf6793e4f2b66146ab38d
Shell
daoleviethoang/lthdt-18clc6-group16
/login
UTF-8
1,316
2.515625
3
[]
no_license
int Login(string &user) { char pass[50]; int check = 0; int check1 = 0; int temp = 0; int index = 0; do { cout << " |=========================|" << endl; cout << " | (1) - LOGIN |" << endl; cout << " | (2) - CHANGE PASSWORD |" << endl; cout << " | (3) - CREATE ACOUNT |" ...
true
6348bd7a29333ab51b2b6a635b6772a4ebb560db
Shell
minbrowser/min
/resources/postinst_script
UTF-8
451
3.140625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh set -e if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then update-alternatives --install /usr/bin/x-www-browser \ x-www-browser /opt/Min/min 80 chown root /opt/Min/chrome-sandbox chmod 4755 /opt/Min/chrome-sandbox echo "Run sudo xdg-settings set default-web-browser min.deskt...
true
dcf47f8c4eeee81b79d5c92f81f617ef44dcb85c
Shell
alejandropachecovizuet/node-api-rest-elastic
/extras/bin/testApp.sh
UTF-8
1,105
3.15625
3
[]
no_license
IP=$1 PORT=$2 CONTEXT=$3 me=`basename "$0"` if [[ "$IP" != "" && "$PORT" != "" && "$CONTEXT" != "" ]]; then echo "--------------------------------" echo "login:"`curl -X POST -H "Accept: application/json" -d '{"username":"chingon", "pwd":"123456"}' http://$IP:$PORT/$CONTEXT` echo "" echo "ping:" curl -I...
true
97dd7345e97dfa25a47735f7465db88477fa08e9
Shell
laaners/progetto-labiagi_pick_e_delivery
/catkin_ws/src/srrg_cmake_modules/ci_scripts/build.sh
UTF-8
1,333
3.578125
4
[ "MIT", "BSD-2-Clause", "BSD-3-Clause" ]
permissive
#!/bin/bash #ds check input parameters if [ "$#" -ne 3 ]; then echo "ERROR: call as $0 BUILD_DIRECTORY PROJECT_NAME CMAKE_BUILD_TYPE" exit -1 fi #ds parameters BUILD_DIRECTORY="$1" PROJECT_NAME="$2" CMAKE_BUILD_TYPE="$3" echo -e "\e[1;96m----------------------------------------------------------------------------...
true
c8f2014535610540e9787bede0c39936f62a2ce7
Shell
mrfarstad/thesis
/scripts/test_all_configurations.sh
UTF-8
1,168
3.34375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash project_folder=$(echo ${PWD} | sed 's/thesis.*/thesis/') source $project_folder/constants.sh host=yme out_path=results/out.txt gpus=(1 2 4) stencils=(1 2 4 8 16 32 64 128) for g in "${gpus[@]}" do : if [[ $g -eq 1 ]] ; then versions=(base smem coop) # coop_smem) else versions=(bas...
true
fe98a3f5e987cd9ccee4881a69e32d2270507bd7
Shell
madharjan/docker-base
/services/syslog-ng/syslog-ng.sh
UTF-8
833
3.3125
3
[ "MIT" ]
permissive
#!/bin/bash set -e export LC_ALL=C export DEBIAN_FRONTEND=noninteractive if [ "${DEBUG}" = true ]; then set -x fi SYSLOG_NG_BUILD_PATH=/build/services/syslog-ng ## Install a syslog daemon. apt-get install -y --no-install-recommends syslog-ng-core mkdir -p /var/lib/syslog-ng cp $SYSLOG_NG_BUILD_PATH/syslog-ng-defa...
true
de5b25c33febd4993ddd0d487d70c11c4aa65b1b
Shell
xavim/android_device_infotm_imapx800
/InfotmMedia/collect.sh
UTF-8
5,526
3.40625
3
[]
no_license
#!/bin/bash ### sam_ye, 2012/06/02 ### ### to fix the current path LOCAL_PATH=`pwd` cd .. TMP_PATH=`pwd` TMP_PATH=${TMP_PATH/%\/} cd $LOCAL_PATH if [ "$TMP_PATH/" = "${LOCAL_PATH/%InfotmMedia}" ] then cd ${0/collect.sh} fi IM_ROOT=`pwd` state_file="env_state_must_not_delete" config_file="./config.mk" IM_EXTERNAL_R...
true
521dd076dee018d02a175945e0804db301a84742
Shell
Eric2018/curl-ndk
/jni/configure.sh
UTF-8
2,263
3.15625
3
[ "curl", "NTP", "BSD-2-Clause" ]
permissive
#!/bin/sh # the path of curl and c_ares SOURCE=/home/android # the path of android ndk ANDROID_NDK="/home/android/android-ndk-r8b" # toolchain version, change them if necessary # android-ndk r8b supports 4.4.3 and 4.6 TOOLCHAIN_VERSION="4.4.3" # platform version, i.e. api level PLATFORM_VERSION=8 # target TARGET=arm-...
true
5fc00aa5349243092a23caaef1ea45308b4f2e21
Shell
h01ger/piuparts
/custom-scripts/scripts-debug-problemresolver/pre_install_debug_problemresolver
UTF-8
381
3
3
[]
no_license
#!/bin/sh set -e test "$PIUPARTS_TEST" = "install" || exit 0 if [ ! -f /etc/apt/apt.conf.d/piuparts-debug-problemresolver ] then echo "Enabling Debug::pkgProblemResolver" echo 'Debug::pkgProblemResolver "true";' >> /etc/apt/apt.conf.d/piuparts-debug-problemresolver echo 'Debug::pkgProblemResolver::ShowScores "true...
true
5a3b7c59e79c69cd298229020206d3da8bfef678
Shell
magos-linux/magos-linux
/make_modules/add-modules/make_mod_deps.sh
UTF-8
1,150
3.171875
3
[]
no_license
#!/bin/bash # Лицензия: GPL последней версии # Описание: Генерирует файлы с зависимостями пакетов модулей для MagOS # Дата модификации: 03.12.2012 # Автор: Горошкин Антон if [ "`id -u`" != "0" ] ;then echo "Нужны права root" exit 1 fi if [ -f .config ] ;then . .config else echo "Не вижу файла .conf...
true
44c99e879ccc7419ee7bea8d41ab690f07946481
Shell
Otus-DevOps-2020-02/DmitryKorlas_infra
/VPN/setupvpn.sh
UTF-8
766
2.640625
3
[ "MIT" ]
permissive
#!/bin/bash # pritunl sudo tee /etc/apt/sources.list.d/pritunl.list << EOF deb http://repo.pritunl.com/stable/apt xenial main EOF sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 7568D9BB55FF9E5287D586017AE645C0CF8E292A # mongodb wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-k...
true
a0ccb41d5f52904ad203c2c2aa870a37488ddd05
Shell
x11remix/portable-pypy
/build_deps
UTF-8
2,824
2.921875
3
[]
no_license
#!/bin/bash set -e if [[ $ABI == "32" ]]; then export CFLAGS="-m32 $CFLAGS" export CPPFLAGS=$CFLAGS export LDFLAGS="-m32 $LDFLAGS" fi env set -x wget http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz -O - | tar xz cd ncurses-6.0 ./configure --prefix=/opt/prefix --without-cxx --with-termlib --without-no...
true
a11956fba5d4c81d827c969090bceec726767011
Shell
ubes-exped/goaty
/serve
UTF-8
392
2.515625
3
[ "MIT" ]
permissive
#!/usr/bin/env sh export RABBITMQ_NODE_IP_ADDRESS=127.0.0.1 export ERL_EPMD_ADDRESS=127.0.0.1 export RABBITMQ_NODENAME=rabbit@localhost cleanup() { rabbitmqctl shutdown trap - INT kill -s INT "$$" } trap cleanup INT wait_and_start() { sleep 5 rabbitmqctl await_startup yarn start rabbitmq...
true
7d5ef4f06946e8dc878d299824740d16a14745c8
Shell
xjdsdm/youtube-video
/share.sh
UTF-8
890
3.46875
3
[]
no_license
#!/bin/bash baseDir=/usr/share/nginx/html page=$baseDir/share.html egrep "singlemessage|groupmessage" /var/log/nginx/access.log | awk '{ print $1","$7 }' | cut -d'?' -f1 | sed 's/"//g' | grep 'htm' | sort | uniq | cut -d',' -f2 | sort | uniq -c | sort -nr > ll.txt cat > $page << EOF <meta charset="UTF-8"> <meta nam...
true
c161af2c444d3284ef044a80271a2dc1bac8dac0
Shell
contiln/dotfiles
/bash/bash_profile
UTF-8
166
2.921875
3
[]
no_license
# Source ~/.profile if [ -f "$HOME"/.profile ] ; then source "$HOME"/.profile fi # Source ~/.bashrc if [ -f "$HOME"/.bashrc ] ; then source "$HOME"/.bashrc fi
true
c92c6141cb2027d514c4ef721b40cbda03e8d84d
Shell
intelsdi-x/snap-plugin-publisher-graphite
/scripts/medium.sh
UTF-8
1,251
3.28125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # File managed by pluginsync set -e set -u set -o pipefail __dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" __proj_dir="$(dirname "$__dir")" __proj_name="$(basename "$__proj_dir")" # shellcheck source=scripts/common.sh . "${__dir}/common.sh" _verify_docker() { type -p docker > /dev/null 2...
true
f739515db67157b5bc8acae741623cdf55d3fab2
Shell
ericseong/wlan-monitor
/test/send-logs.sh
UTF-8
751
3.515625
4
[]
no_license
#!/bin/bash function send_logs() { # get kernel log now=$(date +'%Y%m%d-%H%M') dmesg > "${now}-dmesg.txt" systemctl -n 100 status wlanmonitor > "${now}-systemctl_status.txt" tail -n 500 /var/log/syslog > "${now}-syslog.txt" tail -n 100 /var/log/mail.log > "${now}-mail-log.txt" tail -n 100 /var/log/mail....
true
40247caba37c9eaf0f87401b6c2abc9da19e8d4c
Shell
jlevon/grot
/git/git-fixup
UTF-8
163
2.828125
3
[]
no_license
#!/bin/bash # squash current diff, staged, or current commit into a specific commit base=${2:-master} git commit -a --fixup $1 git rebase --autosquash -i $base
true
ad4742227cc186f70157fbcdbb830b478e3d1a23
Shell
dns301/conll-2012
/setup_training.sh
UTF-8
1,339
2.9375
3
[]
no_license
#!/bin/bash OUTDIR=$1 dlx() { wget $1/$2 tar -xvzf $2 rm $2 } conll_url=http://conll.cemantix.org/2012/download dlx $conll_url conll-2012-train.v4.tar.gz dlx $conll_url conll-2012-development.v4.tar.gz dlx $conll_url/test conll-2012-test-key.tar.gz dlx $conll_url/test conll-2012-test-official.v9.tar.gz dlx $c...
true
954182a0b4fcec9401e5b61854dba889572485d9
Shell
BCLab-UNM/Swarmathon-Deployment
/scripts/buildAllTeams.sh
UTF-8
691
3.15625
3
[]
no_license
#!/bin/bash shopt -s extglob for filename in ./*.tar.gz; do tar -xvzf "$filename" dir=$(basename "$filename" .tar.gz) mv $dir rover_workspace/ if [ -d rover_workspace ]; then mv rover_workspace/ ~/rover_workspace/ cd ~/rover_workspace/ catkin clean --yes catkin build source /home/swarmie...
true
3f350ebf293f7274fb97bfdb2f7c620fba81fcac
Shell
wawltor/models
/PaddleCV/caffe2fluid/examples/imagenet/tools/run.sh
UTF-8
2,012
3.9375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash #function: # a tool used to: # 1, convert a caffe model # 2, do inference(only in fluid) using this model # #usage: # cd caffe2fluid/examples/imagenet && bash run.sh resnet50 ./models.caffe/resnet50 ./models/resnet50 # #set -x if [[ $# -lt 3 ]];then echo "usage:" echo " bash $0 [m...
true
3f97b535f3f533ad17087630116cf9ecfefa0c8f
Shell
temptemp3/hackerrank.com
/test-tail-of-text-file-1.sh
UTF-8
580
2.671875
3
[]
no_license
#!/bin/bash ## test-tail-of-text-file-1 ## version 0.0.1 - initial ################################################## test-tail-of-text-file-1() { tail -n 20 /dev/stdin } ################################################## if [ ${#} -eq 0 ] then true else exit 1 # wrong args fi #####################################...
true
635987725297e827e82e0bee7d006d4c1985de34
Shell
cih9088/dotfiles
/config/simplebar/skhd_mode
UTF-8
575
3.390625
3
[]
no_license
#!/usr/bin/env bash modefile=$TMPDIR/current_skhd_mode if [[ -r $modefile ]]; then mod="$(cat "$modefile")" mod="$(echo "$mod" | awk '{print toupper($0)}')" if [[ -n $mod ]]; then skhd_mode="$mod" if [[ $skhd_mode == 'FOCUS' ]]; then menu="✧" elif [[ $skhd_mode == 'WARP'...
true
793d8c7e7850ac8d66c0936c49c289c9c5379482
Shell
ericosur/ericosur-snippet
/perl/bash/cnt.sh
UTF-8
484
3.390625
3
[]
no_license
#!/bin/bash # use bash shell script to count numbers # # 2006/12/27 by ericosur # LIMIT=50 for ((i=0; i <= LIMIT; i++)) do if [ $i -lt 10 ] ; then echo -n "00$i " else echo -n "0$i " fi done echo ; echo #echo $STR i=0 variable2=`while [ "$i" -le 50 ] do if [ $i -lt 10 ] ; then echo -n "lk00$i " else e...
true
09e91742c472ec0875b2e325c3b8546b829801ec
Shell
mr-segfault/mme
/odroid-mitm/masquerade.sh
UTF-8
1,480
3.671875
4
[ "WTFPL" ]
permissive
#!/bin/sh UPSTREAM_LAN_INTERFACE=eth0 UPSTREAM_WIFI_INTERFACE=eth0 DOWNSTREAM_WIFI_INTERFACE=wlan1 DOWNSTREAM_LAN_INTERFACE=eth1 # Detect which interface is actually connected to the internet ifconfig $UPSTREAM_LAN_INTERFACE | grep 'inet ' &> /dev/null if [ $? -eq 0 ]; then echo "Using LAN interface for Internet acc...
true
b48949257b12c37e1c5c661ff278e1ba392ca966
Shell
ohmycode/backbone.js-boilerplate-setup-script
/omc_bin/setup.sh
UTF-8
696
2.75
3
[]
no_license
#!/bin/sh BOILERPLATE_VERSION=`php ./get_boilerplate_version.php` wget "http://github.com/h5bp/html5-boilerplate/zipball/"$BOILERPLATE_VERSION"stripped" --no-check-certificate . unzip $BOILERPLATE_VERSION"stripped" -d ./omc_temp TEMPNAME=`ls ./omc_temp/` mv omc_temp/$TEMPNAME ./web wget -P ./web/js/libs/ http://bac...
true
2399a25ac57e60c20ce1f6112e1b11db5e6c3528
Shell
ulissigroup/MTT-MD
/SDS/adsorption/simulations/output_umbrella/submit_all.sh
UTF-8
235
2.6875
3
[]
no_license
if (( $# != 1 )); then { echo "usage: $0 <num_window>" exit -1 }; fi for (( i=0; i<$1; ++i )); do cd $i; sbatch submit_calc.sh; cd ../;done #for (( i=0; i<$1; ++i )); do cd ../;done #do sbatch submit_calc.sh #do cd ../} #done
true
e9f009e891698664a385f51882c4523edf8d4dcf
Shell
dashkb/buildpack-cmd
/bin/compile
UTF-8
162
2.796875
3
[]
no_license
#!/usr/bin/env bash export BUILD_DIR=$1 export CACHE_DIR=$2 export ENV_DIR=$3 cd "$BUILD_DIR" cmd=$(cat "$ENV_DIR/BUILDPACK_CMD") echo "Executing $cmd" $cmd
true
acbfeff296b20cd02e8701a98fe8f05924b1bf60
Shell
stori-es/stori_es
/tool/db_update_triggers.sh
UTF-8
777
3.75
4
[ "Apache-2.0" ]
permissive
#!/bin/bash clear MAIN_PATH=`dirname $0`/.. MYSQL='mysql --no-defaults' MDB="stories" GREP=$(which grep) AWK=$(which awk) source $MAIN_PATH/aws-settings.prop TRIGGERS=$MAIN_PATH/site/WEB-INF/schemaUpdates/2012-08-24_systwo-1100-stories_triggers.sql echo "...Stories db Update Triggers Manually... Started..." # make...
true
6153df743d554070c8b537f8a0633c6b3a9da524
Shell
derek-dalle/config-dalle
/bin/gettokens
UTF-8
363
3.515625
4
[ "MIT" ]
permissive
#!/bin/bash # Get the user name if [ $# -lt 1 ]; then # Default: the Unix username user=$USER else # username argument user=$1 fi # First get the Kerberos version 5 tokens kinit -5 -l 30d "$user@UMICH.EDU" # Then get the AFS tokens aklog -cell umich.edu # Now change the current directory to match that one. cd ...
true
b366371299a2cfce9018652d0adfdbf0c49edc4c
Shell
irepan/NearTest
/bin/stack-commons.sh
UTF-8
3,946
3.890625
4
[]
no_license
#!/bin/bash export scriptDir=$(cd `dirname $0` ; pwd) export REGION=$(aws configure get region) function test_stack { typeset var local STACK_NAME=$1 aws cloudformation describe-stacks --stack-name $STACK_NAME >/dev/null 2>&1 exitSts=$? if [ $exitSts -eq 0 ] ; then echo 0 else echo...
true
6b275ce06538a08672893d7bd79d18f45381c6c5
Shell
iCodeIN/reaveros
/loader/uefi/run.sh
UTF-8
728
2.90625
3
[ "LicenseRef-scancode-other-permissive", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash if [[ -z "$mkfs" ]] then mkfs_fat=mkfs.fat fi if ! which $mkfs_fat then if [[ -x /sbin/mkfs.fat ]] then mkfs_fat=/sbin/mkfs.fat else echo "Can't find mkfs.fat; please install it, or provide via an environment variable $$mkfs_fat." exit 1 fi fi set -e ma...
true
353383082d0e362922fcf22d311ba3580f1939c4
Shell
Horgix/salt-states
/users/files/bashrc
UTF-8
423
2.703125
3
[]
no_license
# HGXonf # by Alexis 'Horgix' Chotard # https://bitbucket.org/Horgix/ # .bashrc for BASH # Loads every needed configuration file for bash for file in ~/.shell-config/*; do source $file; done for file in ~/.bash/*; do source $file; done if [ -d ~/.local.bash/ ]; then for file in ~/.local.bash/*; do ...
true
8e42e8c2f438642fc8e0038e5f5b182364b768da
Shell
delkyd/alfheim_linux-PKGBUILDS
/dtach-git/PKGBUILD
UTF-8
869
2.625
3
[]
no_license
# $Id$ # Maintainer: John Lane <archlinux@jelmail.com> # Contributor: Chris Brannon <cmbrannon79@gmail.com> # Contributor: Allan McRae <allan@archlinux.org> # Contributor: Adam Vogt <vogt.adam@gmail.com> pkgname=dtach-git pkgver=r40.c794d06 pkgrel=1 pkgdesc="emulates the detach feature of screen" arch=('i686' 'x86_64'...
true
156c027bb4e3b5da9b90c34a45a0f94cad86c9c9
Shell
bellmit/swarm
/scripts/client/build_js.sh
UTF-8
424
3.375
3
[ "MIT" ]
permissive
#!/bin/bash # "Builds" all the JS, taking minified GWT output, and cat-ing that with minified native support JS # like History.JS, CodeMirror, Modernizr, etc. Then updates resource version in HTML (or JSP) file. APP_JS=$1 JS_MIN_OUT=$2 HTML_FILE=$3 MODULE=$4 sh minify_js.sh SUPPORT_JS="../../bin/dependencies.min.js...
true
8e18e0c63d19820af9d1b0eb75078686afcee7c6
Shell
qianwenluo/biosys-analytics
/lectures/04-shell-scripting/examples/while.sh
UTF-8
98
2.703125
3
[ "MIT" ]
permissive
#!/bin/bash FILE=${1:-'srr.txt'} while read -r LINE; do echo "LINE \"$LINE\"" done < "$FILE"
true
f352b75631b7ce11d0a6f9c526f0947c29a4d42f
Shell
wakafengfan/CPM-1-Finetune
/scripts/few-shot_generate_dialog.sh
UTF-8
1,188
2.546875
3
[ "MIT" ]
permissive
#!/bin/bash DATA_DIR="data/STC/" CHECKPOINT_PATH="data/checkpoints/CPM-large" RESULTS_DIR="results/few-shot_dialog/" TOKENIZER_PATH="bpe_3w_new/" MPSIZE=2 NLAYERS=32 NHIDDEN=2560 NATT=32 MAXSEQLEN=1024 #SAMPLING ARGS TEMP=0.9 #If TOPK/TOPP are 0 it defaults to greedy sampling, top-k will also override top-p TOPK=0 TO...
true
5c2b88d73757245bfd5010d4e54866576b29a2e9
Shell
ThonyDroidYT/Herramientas
/shell-obsh.sh
UTF-8
1,773
3.40625
3
[]
no_license
#!/bin/bash #BARRAS AZUL #barra="\033[1;34m======================================================\033[0m" #barra="\033[1;34m**********************************************************\033[0m" barra="\033[1;34m+++++++++++++++++++++++++++++++++++++++++++++++++++++++\033[0m" #barra="\033[1;34m##############################...
true
cda18349a0a10515457241385e971159cccb88dc
Shell
lday0321/uDepot
/scripts/benchmarking/ubench-1core.sh
UTF-8
6,218
2.875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Copyright (c) 2020 International Business Machines # All rights reserved. # # SPDX-License-Identifier: BSD-3-Clause # # Authors: Kornilios Kourtis (kou@zurich.ibm.com, kornilios@gmail.com) # echo "device:$DEVNAME SN:$DEV_SN NUMA_NODE:$DEV_NODE CPUS:${DEV_CPUS[@]}" > $dname/device sud...
true
57267f48874350aedabe3f34b903ea9b1d1eed7f
Shell
doohee323/tz-tajo
/scripts/master01.sh
UTF-8
3,382
2.9375
3
[]
no_license
#!/usr/bin/env bash # change hosts echo '' >> /etc/hosts echo '# for vm' >> /etc/hosts echo '192.168.82.170 master01' >> /etc/hosts echo '192.168.82.171 slave01' >> /etc/hosts echo '192.168.82.172 slave02' >> /etc/hosts echo '192.168.82.173 slave03' >> /etc/hosts echo "Reading config...." >&2 source /vagrant/setup.rc...
true
7d782218113291a1a85442392b91eea2cc70694f
Shell
rosethepose/username
/username.sh
UTF-8
401
3.34375
3
[]
no_license
echo '''Enter a username with at least 3 and no more that 12 characters It must start with a lower case letter and the only charcaters that can be used are lower case letters, digits, and underscore.''' read USERNAME while echo $USERNAME | egrep -v "^[a-z]"+"[0-9,a-z,_]{3,12}$"> /dev/null 2>&1 do echo "You must have ...
true
a9d049149dd1ef76157f7c455575b69f7a426e83
Shell
rsenn/scripts
/sh/rcat.sh
UTF-8
623
3.65625
4
[]
no_license
#!/bin/bash NL=" " # # rcat.sh: # # $Id: rcat.sh 538 2008-08-18 19:20:49Z enki $ # ------------------------------------------------------------------------- pushv() { eval "shift;$1=\"\${$1+\"\$$1\${IFS%\"\${IFS#?}\"}\"}\$*\"" } # rcat [options] [files...] # # A recursive 'cat' through 'grep' # ----------------...
true
6f27ba9d06780e290cdb5c28b92a35b59e20d199
Shell
gruntwork-io/terraform-aws-couchbase
/modules/couchbase-commons/couchbase-common.sh
UTF-8
10,068
4.03125
4
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-free-unknown", "Apache-2.0" ]
permissive
#!/bin/bash set -e source "/opt/gruntwork/bash-commons/log.sh" source "/opt/gruntwork/bash-commons/string.sh" source "/opt/gruntwork/bash-commons/assert.sh" source "/opt/gruntwork/bash-commons/aws-wrapper.sh" readonly COUCHBASE_BASE_DIR="/opt/couchbase" readonly COUCHBASE_BIN_DIR="$COUCHBASE_BASE_DIR/bin" readonly C...
true
72d583aac01f2ccb6db5a4b0b6279f1afb79a49b
Shell
anarabanana/Dictionary-English_Kazakh
/dictionary_ui
UTF-8
1,254
4.03125
4
[]
no_license
#!/bin/sh CALC=dictionary HOST=localhost PORT=1234 FILE1=/tmp/calc1-$$ FILE2=/tmp/calc2-$$ ERROR=/tmp/calc-err-$$ GETTEXT="gettext -d dictionary_ui" if [ -r ~/.dictionary.conf ] then . ~/.dictionary.conf elif [ -r /etc/dictionary.conf ] then . /etc/dictionary.conf fi which gdialog 2> /dev/null && DIALOG=gdialog ...
true
51ef567e645af02ad5f479692590b31f5d733b94
Shell
realBjornRoden/cognition
/azure/pre-request.sh
UTF-8
2,555
2.75
3
[ "MIT" ]
permissive
# # pre-request.sh # # Copyright (c) 2019 B.Roden # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge...
true
887e5533aad705d0e8852f893123ec62ca0e7e0a
Shell
tmlye/dotfiles
/createSymlinks.sh
UTF-8
2,221
3.046875
3
[]
no_license
#!/bin/bash # Create .config directory if needed mkdir -p $HOME/.config declare -a links=(.gitconfig .zlogin .zshrc .vim .vimrc .config/zathura/zathurarc .config/htop/htoprc .config/gtk-3.0 .config/ranger .tmux.conf .config/user-dirs.dirs .config/waybar) # If files already exist create backups for i in ${links[*]} d...
true
c9f8a4818b415c4fda8a32b54c41bab06d97de80
Shell
ArcticDevs/ev-server
/githooks/pre-commit
UTF-8
458
2.875
3
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/sh # Instructions: # Put this file into your .git/hooks folder and set as executable # - for Windows (attrib +x pre-commit) # - for *nix (chmod +x pre-commit) # echo "Starting the server" # npm run start:dev echo "Running linter fix:" npm run eslint:fix echo "Running unit tests (do not forget to start th...
true
5165fad325200e50ba2e33fb1e7be078dc709201
Shell
gregorybrancq/shellScripts
/loadDiffWallpaper.bash
UTF-8
558
3.328125
3
[ "MIT" ]
permissive
#!/bin/bash # Script pour changer le fond d'écran lors du changement de bureau. desktop_dir="/home/greg/Wallpaper/Home/" # chemin complet du dossier des images; desktop_img[0]="desk_1.jpg" desktop_img[1]="desk_2.jpg" desktop_img[2]="desk_3.png" desktop_img[3]="desk_4.jpg" desktop_img[4]="desk_5.jpg" setdesktop() { ...
true