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
7ed94438d32559ac6339b924a28cb4ff21bcc800
Shell
mjasek114/UCB-MIDS
/exercise_2/install-script.sh
UTF-8
1,168
2.6875
3
[]
no_license
#!/bin/bash # install R and RStudio and start RStudio server yum -y install R yum -y install r-studio wget https://download2.rstudio.org/rstudio-server-rhel-0.99.489-x86_64.rpm yum -y install --nogpgcheck rstudio-server-rhel-0.99.489-x86_64.rpm sudo rstudio-server stop sudo rstudio-server start #install streamparse s...
true
e754d1474243d5a5f271891ae2f58245494e69c9
Shell
maticairo/SistemasOperativos
/BASH/script.sh
UTF-8
1,745
3.484375
3
[]
no_license
#Ejercicio 4 #Tp N°2 #Matias Ezequiel Cairo 39670522 #Thomas Ignacio Reynoso 39332450 #Pablo Avalo 39214569 #Luciano Gabriel Tonlorenzi Sebastía 39244171 #De Rito Micaela 39547209 #Primera Entrega #!/bin/bash # -*- ENCODING: UTF-8 -*- if [ $# -eq 1 ];then if ([ $1 == "-help" ] || [ $1 == "-h" ] || [ $1 == "-?" ]);the...
true
482bf938c4364098c9a7c6c2afa9ca9ddaa17a4f
Shell
kant/multicloud-operators-subscription-release
/build/install-operator-sdk.sh
UTF-8
376
2.53125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo ">>> Installing Operator SDK" echo ">>> >>> Downloading source code" GO111MODULE=off go get -d -v github.com/operator-framework/operator-sdk cd $GOPATH/src/github.com/operator-framework/operator-sdk echo ">>> >>> Checking out version 0.10.0" git checkout v0.10.0 echo ">>> >>> Running make tidy" mak...
true
7f67c67d1d7e9b915362d9b4acda4c20146e53f5
Shell
nowiwr01w/itmo
/os/lab2/script5.sh
UTF-8
596
3.015625
3
[]
no_license
#!/bin/bash # -n sort by numbers # -k param (1 or 2 == $1 or $3) # -F separator (:) awk -F ":" '{ print $3 ":" $1}' /etc/passwd | sort -n -k 1 # -F ":" - ключ-разделитель в нашем случае - это двоеточие # ну, с awk и принтом по шаблону мы уже знакомы :) Выводим именно то, что от нас хотят - параметры 1 и 3 # sort -n ...
true
c090848ba1df2f64026dd5d6b1be20a11c1e71dc
Shell
allprobe/snmp-extensions
/v1/ext/snmp/mount_check.sh
UTF-8
183
3.1875
3
[]
no_license
#!/bin/bash BUFFER="/etc/apr/buffer" mountpoint="$1" mountpoint_to_filename=`echo ${mountpoint//\//_}` CMD=`cat $BUFFER/mount_check$mountpoint_to_filename` OUTPUT=$CMD echo $OUTPUT
true
78e1fccbc3fed4c20fae832cbc7c29cbc36673ef
Shell
kdave/xfstests
/tests/overlay/055
UTF-8
5,465
3.515625
4
[]
no_license
#! /bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2018 CTERA Networks. All Rights Reserved. # # FS QA Test No. 055 # # Test overlay file handle of dir with ancestor under lower redirect # # Overlayfs with nfs_export enabled, indexes all directories on copy up. # Directory index is requires for decoding lo...
true
7eab9672b4cdfd6ba48de5799705ee7fce6e1b5f
Shell
bolin62007/OpenWrt-CI
/target/linux/apm821xx/base-files/lib/preinit/79_move_config
UTF-8
365
3.25
3
[ "MIT" ]
permissive
#!/bin/sh BOOTPART=/dev/sda1 move_config() { . /lib/functions.sh . /lib/upgrade/common.sh case "$(board_name)" in wd,mybooklive) if [ -b $BOOTPART ]; then mkdir -p /boot mount -t ext4 -o rw,noatime $BOOTPART /boot [ -f "/boot/$BACKUP_FILE" ] && mv -f "/boot/$BACKUP_FILE" / fi ;; *) ;; esac } ...
true
b527937f6aadbfad1761c8ff71246a7e9846f530
Shell
h01ger/piuparts
/custom-scripts/scripts/pre_test_root_password
UTF-8
217
2.78125
3
[]
no_license
#!/bin/sh set -e # sudo refuses removal if no root password is set, so set one # unconditionally, as there are quite some packages depending on sudo # (and since its harmless and fast) yes "yes" 2>/dev/null | passwd
true
ab2f59768605b432003a777fc9423bdc29a64780
Shell
tclu82/AWSLambdaETL
/app/microservice_flow_control_cli.sh
UTF-8
607
2.90625
3
[]
no_license
#!/bin/bash # JSON object to pass to Lambda Function json={"\"bucketname\"":"\"tcss562.group.project\"","\"filename\"":"\"$1\u0020Sales\u0020Records.csv\"","\"filter\"":"\"Region='Europe'\u0020AND\u0020Order_Priority='Medium'\"","\"aggregation\"":"\"AVG(Gross_Margin),AVG(Order_Processing_Time)\""} echo $json echo "In...
true
e056cfc08da4237d99a064e13509ae4a5841a415
Shell
joshnadevireddyD/bashv2new
/arryfiles.sh
UTF-8
99
2.921875
3
[]
no_license
#!/bin/sh arr=(*) n=${#arr[@]} echo "number of files and dirs "$n echo ${arr[0]} echo ${arr[1]}
true
482b44316f6566dddbc61c2b268ea17d7fe67b3d
Shell
miraiworks/couchbase-lite-C
/scripts/build_android.sh
UTF-8
1,497
3.765625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -e SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" pushd $SCRIPT_DIR/.. NDK_DEFAULT_VERSION="21.4.7075529" CMAKE_DEFAULT_VERSION="3.18.1" mkdir -p build_android_out mkdir -p build_android_x86 mkdir -p build_android_arm mkdir -p build_android_x64 mkdir -p build_android_arm64 i...
true
f5f5a6ddda8f9dd7a6ecca8bcfd780fea8a5cf48
Shell
laparca/bash-hpqc
/usr/share/hpqc/plugins/hpqc-new-search
UTF-8
6,268
3.828125
4
[]
no_license
#!/bin/bash #set -x function get_column() { local LINE="$1" local COL="$2" local _OLD_IFS="${IFS}" IFS="|" local tokens=(${LINE}) echo ${tokens[$COL]} IFS="${_OLD_IFS}" } # Devuelve el tipo de campo function field_type() { local ENTITY="$1" local FIELD="$2" line=$(grep ${FIELD} ${CACHE}/entity_${ENTITY}_fi...
true
2a7069969e16e26094bd3a0372250ac186f8c812
Shell
simondeziel/custom-nagios-plugins
/plugins/check_mysql_backups
UTF-8
2,922
4.21875
4
[]
no_license
#!/bin/sh # Nagios plugin to check if the local MySQL server was backed up recently # Copyright (c) 2014 Simon Deziel <simon.deziel@gmail.com> # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this p...
true
f922e6807c8eba0dc0521989e38ba9baedec87dc
Shell
ccrouch/tripleo-image-elements-1
/elements/openstack-clients/install.d/51-openstack-clients
UTF-8
666
3.1875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -eux install-packages git build-essential python-dev libssl-dev python-pip client_install_list="\ glance \ heat \ keystone \ neutron \ nova" for client in $client_install_list; do repo=python-${client}client virtualenv --system-site-packages /opt/stack/venvs/$repo set +u source /opt/...
true
33bebca4dabbc16884f8c758592b9ad71fe7172a
Shell
pilona/dotfiles
/.profile.d/bookmarks.d/termium
UTF-8
1,685
3.109375
3
[]
no_license
# vim: ft=sh Termium() { local _lang local _base _lang=eng _base="http://www.btb.termiumplus.gc.ca/tpv2alpha/alpha-eng.html?lang=${_lang}" if [ $# = 0 ]; then "$BROWSER" "$_base" else "$BROWSER" "${_base}&i=&index=alt&__index=alt&srchtxt=$(python -c "import urllib.request; prin...
true
c766e240cd9a9e5cae817cef228d7b87d3a74525
Shell
jmprusi/serverless-operator
/hack/lib/ui.bash
UTF-8
2,603
4.0625
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash if [ -t 1 ]; then IS_TTY=true else IS_TTY=false fi readonly IS_TTY readonly FORCE_COLOR="${FORCE_COLOR:-false}" SHOULD_COLOR="$(if [[ "${FORCE_COLOR}" == "true" ]] || [[ "${IS_TTY}" == "true" ]]; then echo true; else echo false; fi)" readonly SHOULD_COLOR readonly COLOR_NC='\e[0m' # No Colo...
true
725c9e6d19dcfbd9458bcd45ca4f69af70ba0ab6
Shell
1847123212/work
/sdk_use/target/hibuilder/scripts/build_scripts/prepare.sh
UTF-8
641
2.640625
3
[]
no_license
#!/bin/sh -e set -x export BASE_DIR=$PWD mkdir env_prepare cd env_prepare tar xf $BASE_DIR/tarball/binutils-2.26.tar.gz tar xf $BASE_DIR/tarball/gcc-linaro-4.9-2015.06.tar.xz tar xf $BASE_DIR/tarball/mpfr-3.1.4.tar.xz -C gcc-linaro-4.9-2015.06/ tar xf $BASE_DIR/tarball/gmp-6.1.0.tar.bz2 -C gcc-linaro-4.9-2015.06/ t...
true
c11974bbd2d8dc1f88018f830c5698602d51fa02
Shell
ghugo83/tkLayout-bot
/bin/make_dev_gabie
UTF-8
3,911
3.578125
4
[]
no_license
#!/bin/bash # Helper function to get the absolute path of a relative directory function absolute-dir { currentDir=`pwd` cd $1 pwd cd $currentDir } # Some environment variables tkLayoutDirectory=/home/tklayout-git doxygenTargetDirectory="/eos/user/t/tklayout/www/tklayout-git_doxygen" myDir=`dirname $0` echo my...
true
81489afbf21e72b663ad547a61bb1a1993f7edfe
Shell
d68fbe50/docker-sparkleshare
/run.sh
UTF-8
645
3.03125
3
[ "MIT" ]
permissive
#!/bin/bash DIR=$(dirname $(realpath $0)) . $DIR/docker-shell/shared-functions.sh VAR=IMAGE docker_select_image VAR=CONTAINER_NAME docker_enter_container_name VAR=LOCALPATH DESC="storage" PLACEHOLDER="/docker/sparkleshare/home/storage/" docker_enter_dir VAR=LOGPATH DESC="logs" PLACEHOLDER="/var/log/docker/sparkleshar...
true
48ea7fdfe204e4d9064655552a5dcc5a502e6411
Shell
exallium/todoapp
/image_extractor.sh
UTF-8
687
2.78125
3
[]
no_license
#!/usr/bin/env bash SOURCE=${MATERIAL_SOURCE} if [[ -z "$SOURCE" ]]; then SOURCE=~/src/material-design-icons fi mkdir -p app/src/main/res/drawable-hdpi mkdir -p app/src/main/res/drawable-mdpi mkdir -p app/src/main/res/drawable-xhdpi mkdir -p app/src/main/res/drawable-xxhdpi mkdir -p app/src/main/res/drawable-xxxh...
true
0a0e45d179d2a1c9e0d095b1a65b62697ba12fc6
Shell
adamors/vagrant
/bootstrap.sh
UTF-8
1,698
2.984375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo "Updating packages list" sudo apt-get update echo "Installing NFS stuff" sudo apt-get install -y nfs-common portmap echo "Installing MySQL" sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password password root' sudo debconf-set-selections <<< 'mysql-server mysql-server/root_p...
true
189f9cde64bc5cb7a23848775436f2b8864d08db
Shell
addshore/mediawiki-docker-dev
/scripts/mysql_connector.sh
UTF-8
2,995
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash # Modified from http://tarunlalwani.com/post/mysql-master-slave-using-docker/ BASE_PATH=$(dirname $0) echo "Waiting for mysql to start" # Give 60 seconds for master and slave to start # sleep 60 /tmp/wait-for-it.sh db-master:3306 /tmp/wait-for-it.sh db-slave:3306 # Double check /tmp/wait-for-it.sh db-m...
true
2ccb56447a9a4b01b77b2bef1ffa5a1b9ac78f31
Shell
joyyoj/aws-test
/bin/dump_history.sh
UTF-8
597
2.65625
3
[]
no_license
#!/bin/sh set -e neo=/etc/azkaban/neo bin=/etc/azkaban/neo/bin export CLASSPATH=. . $bin/neo-config.sh if [[ $1 == "debug" ]]; then JAVA_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=8000" shift fi day=$1 start_date=$2 end_date=$3 sql_file=$4 #input=/data/userProfile/neo/delta/$version...
true
dd098b66616d672d2e3ca93a412fd4abc17d0604
Shell
ablimit/hadoopgis
/boundary/mapreduce/uploadPAISFromLocal.sh
UTF-8
418
3.40625
3
[]
no_license
#! /bin/bash #if [ ! $# == 1 ]; then # echo "Usage: $0 [replication factor]" # exit 0 #fi localfileloc=/data2/ablimit/Data/spatialdata/pais/boundarytest hdfsloc=/user/aaji/paisboundary # factor=${1} for factor in 3 4 5 6 7 8 9 do echo "uploading PAIS data with replication factor ${factor}.." sudo -u hd...
true
20e34b18dc50ca484982426ab5bf74fdb785e189
Shell
fedosgad/miscellanous
/mipt/5_term/razryv/gen_results.sh
UTF-8
1,291
3.125
3
[]
no_license
#!/bin/sh mkdir -p results/coefs mkdir -p results/root_intervals mkdir -p results/roots mkdir -p results/answers echo "Calculating 1 var. coefs..." for i in $(seq 8) do ./razryv -1 -q -c < data/var_1.$i > results/coefs/coefs_1.$i done echo "Calculating 2 var. coefs..." for i in $(seq 8) do ...
true
e184fc52a45ae1231715cb651ae451cc5efaec45
Shell
zeronone/dotfiles
/config/arch-home/bin/wayland-sway-mirror.sh
UTF-8
750
3.015625
3
[]
no_license
#!/bin/bash # https://gist.io/@progandy/bff675311aa2c3b777a37abe81aa4b4d # sway-mirror OPTIONS # # Examples: # # sway-mirror # # sway-mirror --output LVDS-1 # export SDL_VIDEODRIVER=wayland instance=sway-mirror$$ wf-recorder "$@" -c rawvideo -m sdl -f pipe:$instance & sleep 1 if kill -0 $! 2>/dev/null && swaymsg "[ti...
true
11a03a689891e9c75fc25c80b3aee230ffff7b41
Shell
wmatex/dotfiles
/.local/bin/bspwm_external_rules
UTF-8
1,077
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash wid=$1 class=$2 instance=$3 consequences=$4 #echo $@ >> /tmp/rules #xprop -id $wid >> /tmp/rules name=$(xprop -id $wid WM_NAME) echo "$class: $name" >> /tmp/slack_rules echo $name | grep "Slack | Slack call with" >> /tmp/slack_rules case "$class" in ([Ss]lack) echo "Matched slack" >> /tmp/sl...
true
990fc266daddf2f801f690cc08401b22362b2d49
Shell
Project-Google-Tango/android_device_nvidia_jxd_yellowstone
/common/init_lbh.sh
UTF-8
1,664
3.53125
4
[]
no_license
#!/system/bin/sh # Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. # # NVIDIA CORPORATION and its licensors retain all intellectual property # and proprietary rights in and to this software, related documentation # and any modifications thereto. Any use, reproduction, disclosure or # distribution of thi...
true
62c9b95f12d93601e253aea24aad289f59d21215
Shell
bigjosh/pushphyfix
/push.sh
UTF-8
393
3.03125
3
[]
no_license
#/bin/bash if [ -z $1 ]; then echo call with target host to install bbbphyfix on exit 1 fi #we need the no-host-checking so it doesn't say "fingerprint doesnt match" rsync -e "ssh -o StrictHostKeyChecking=no" -r assets/* root@$1:/root/phyfixassets/ ssh -o StrictHostKeyChecking=no root@$1 "pushd phyfixasset...
true
792c830cea34b4ef10e24c55eb5727253b5c4f26
Shell
boethius70/ansible-demo
/rundeck-jobscripts/createvm-windows-step2.sh
UTF-8
1,275
3.265625
3
[]
no_license
#!/bin/bash powerOnTimeout='75' vmtemplateWin=$2 machineName=$1 vcenter_hostname=$3 baseDir='/home/ubadmin/ansible-demo' if [[ $vcenter_hostname == 'vsphere01.contoso.local' ]] then cluster_name=QA_DEV datacenter_name=NA esx_hostname=NA vsphere_vars_file=group_vars/vsphere.yml vcenter_hostname=vsphere01.con...
true
d150264d10f3c14afaf31c22ac86a03a81f6206f
Shell
ybiquitous/dotfiles
/install/zsh.sh
UTF-8
375
3.703125
4
[]
no_license
#!/bin/bash set -euo pipefail readonly env="${HOME}/.zshrc.env" if [[ -f $env ]]; then echo "'${env}' already exists." else cat <<EOF > "${env}" # Customize functions or variables for a specific environment. For example: # export PATH="/Applications/Firefox.app/Contents/MacOS:${PATH}" # export BROWSER=firefox EOF ...
true
03b53b4596e1b95fa918a363448d37e840b48f41
Shell
shparks12/rc-cli
/rc-cli.sh
UTF-8
29,827
3.859375
4
[]
no_license
#!/bin/bash # # A CLI for the Routing Challenge. # TODO(luisvasq): Set -u globally and fix all unbound variables # Constants readonly CHARS_LINE="============================" readonly RC_CLI_DEFAULT_TEMPLATE="rc_python" readonly RC_CLI_PATH="${HOME}/.rc-cli" readonly RC_CLI_LONG_NAME="Routing Challenge CLI" readonl...
true
322f8186507fdf10e0664c066ed3b5f4e1116ed3
Shell
jarviscanada/jarvis_data_eng_KevinShimotakahara
/linux_sql/scripts/host_usage.sh
UTF-8
2,532
3.875
4
[]
no_license
#!/bin/bash # Script usage #bash scripts/host_usage.sh psql_host psql_port db_name psql_user psql_password # Example #bash scripts/host_usage.sh localhost 5432 host_agent postgres password #error function errorf(){ echo $1 1>&2 exit 1 } #validate arguments if [ "$#" -ne 5 ]; then echo "Illegal number of par...
true
00d2ee9be0138e67f4fb49379421a1be17d4ed45
Shell
saranreddy56/sixarm_unix_shell_scripts
/brew-reset-clean
UTF-8
434
3.28125
3
[]
no_license
#!/bin/bash set -euf -o pipefail out () { printf %s\\n "$*" ; } ## # brew reset clean # # Author: Joel Parker Henderson (joel@joelparkerhenderson.com) # License: GPL # Updated: 2015-02-06 ## cd $(brew --prefix) && git reset --hard FETCH_HEAD && git clean -df out "Optionally run these:" out "brew --config" out "brew ...
true
dd8e347634afc255675d080b1f217608c8ee5df0
Shell
hejindan/scripts-store
/建立ssh互信/version_2/step0_make_ssh_connection_all.sh
UTF-8
389
3.296875
3
[]
no_license
#!/bin/sh # set the local host connection to each other chmod +x make_ssh_connection.sh ./make_ssh_connection.sh cat nodes.conf | while read line ; do host=$(echo $line | awk -F: '{print $2}') username=$(echo $line | awk -F: '{print $3}') scp make_ssh_connection.sh nodes.conf ${username}@${host}:/tmp ...
true
bea765bcb45c543c88581d93039cd752100d24fe
Shell
jav-rojas/ssaw
/tests/create_instance.sh
UTF-8
1,135
2.6875
3
[]
no_license
#!/bin/bash . ./env_vars.sh if test -f "./env_vars_override.sh"; then . ./env_vars_override.sh fi docker volume create ssaw_testing_app docker volume create ssaw_testing_app_key docker run -d --rm \ --name $container_name \ --network "db-net" \ --env ASPNETCORE_ENVIRONMENT="Production" \ --env HQ...
true
51001eb3b58fbab45cb6c6f0882b603e30dcc6ac
Shell
southpolekat/dgtest
/sqlcmd/ext_tbl_transform.sh
UTF-8
1,002
2.9375
3
[]
no_license
#!/bin/bash # Reference: http://www.pivotalguru.com/?p=871 set -e source ../dgtest_env.sh yml=/tmp/dgtest.yml gen=/tmp/get_df.sh cat > $yml <<EOF --- VERSION: 1.0.0.1 TRANSFORMATIONS: transform_1: TYPE: input CONTENT: data COMMAND: /bin/bash $gen EOF cat > $gen <<EOF df -k | awk '{prin...
true
20c0160ef930e0a1f2f58cca2fb3ea45ca10a7c1
Shell
delkyd/alfheim_linux-PKGBUILDS
/xmlrpc-epi/PKGBUILD
UTF-8
642
2.5625
3
[]
no_license
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> pkgname=xmlrpc-epi pkgver=0.54.2 pkgrel=1 pkgdesc="An implementation of the xmlrpc protocol in C" arch=('i686' 'x86_64') url="http://xmlrpc-epi.sourceforge.net/" license=('MIT') depends=('expat') source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-base/$...
true
5ccb5f1fca8864c9627a2895945dd0f3dea3e1bd
Shell
MMcintire96/dotfiles
/new/i3/polybar/launch.sh
UTF-8
1,019
2.59375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
#!/usr/bin/env bash killall -q polybar # Wait until the processes have been shut down #while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do #MONITOR=$m polybar --config=/home/michael/.config/i3/polybar/config --reload mybar & if [ $m !...
true
ef430cc6f06a696f6eac5d04770c14e9622806f3
Shell
paulehoffman/html-parsers-benchmark
/golang/prepare.sh
UTF-8
406
2.515625
3
[]
no_license
#!/bin/bash # Requirements: go >= 1.0 DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" export GOPATH=$DIR # Download source code to $GOPATH/src/ go get github.com/moovweb/gokogiri go get code.google.com/p/go-html-transform/h5 tar -xzf go-2c8a88c1efce-exp-html.tar.gz -C $DIR/src # Compile & write binaries to ...
true
c4da312b55290de01ac1c468773901c4499c6877
Shell
jakeyeung/scChIC-analysis
/scripts/processing/motevo/1-get_gene_region/5-assign_window_to_nearby_genes.sh
UTF-8
1,007
3.0625
3
[]
no_license
#!/bin/sh # Jake Yeung # 5-assign_window_to_nearby_genes.sh # Assign each window to genes based on distance (multiple genes) # 2016-04-04 dist=50000 [[ $dist != [0-9]* ]] && echo "Must be integer: $dist" && exit 1 assignscript="/Home/jyeung/projects/tissue_specificity_hogenesch_shellscripts/merged_dhs/expand_gene_co...
true
6328a6f76946d3cca94c3c581358e41ae8c40ed5
Shell
radelmann/dev-env-setup
/setup-bash.sh
UTF-8
1,048
2.765625
3
[]
no_license
# create sublime sym link ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime # append bash_profile_ra.txt -> ~/.bash_profile cat bash_profile_ra.txt >> ~/.bash_profile # git aliases & config settings git config --global core.autocrlf input git config --global core.safecrlf...
true
d892053ffb3d83c212bfd1439d00e7cdb1da9d3e
Shell
DPBayes/data-sharing-examples
/ard/mixture_female/generate.sh
UTF-8
185
2.703125
3
[ "MIT" ]
permissive
#!/bin/bash source activate myenv for eps in $(cat gen_epsilons.txt) do echo $eps for seed in $(cat gen_seeds.txt) do python3 generate_data_by_seed.py $eps $seed done done
true
e2bdb5b6fd0ec5ede3c905b17f9cdc702c301aa8
Shell
officialgupta/GoPoster
/posterpi.sh
UTF-8
390
3.015625
3
[]
no_license
#!/bin/bash #Start Loop Process while true; do #Delete old files rm /home/pi/PosterPi.txt rm /home/pi/PosterPi.tmp #Find all jpg images, inc subdirs, add to PosterPi.txt find /home/pi/posters -name "*jpg" > /home/pi/PosterPi.txt #Launch FBI viewer, read from PosterPi.tmp fbi -t 300 -a --noverbose -l /home/pi/Poster...
true
c63165a8e23f553662f4ff03c5bb0bb0cca2d605
Shell
mehrdad-shokri/Scriptology
/BASH/workfiles/04-declare_variable.sh
UTF-8
290
2.859375
3
[ "CC0-1.0" ]
permissive
#!/bin/bash declare -i number1=123 # number1 is an integer declare -r number2=232 # number2 read-only declare -l some_text="LoLCats" # some_text equals lolcats declare -u Some_String="lolcats" # Some_String equals LOLCATS echo $number1 echo $number2 echo $some_text echo $Some_String
true
3699cb20544eddb62e2171cf64aaa0f506907e5f
Shell
blogmotion/bm-tomato-adblock
/adblock.sh
UTF-8
2,256
3.53125
4
[]
no_license
#!/bin/sh ########################################### # Télécharge une liste de sites à bloquer dans dnsmasq ########################################### # auteur : Mr Xhark (blogmotion.fr) # inspiré de : https://tuxicoman.jesuislibre.net/2016/10/bloquer-les-publicites-et-traqueurs-au-niveau-du-dns-avec-unbound.html ...
true
923aceab97257ef294745b76e1d7c3db76e386a7
Shell
Richard-Barrett/DOCs
/SCRIPTS/NG/New_User_Stuff/NewPanfsUser.txt
UTF-8
1,375
3.203125
3
[]
no_license
#! /bin/bash #***************************************************************** # Name: NewPanfsUser # # Purpose: To add new panfs users to the s018 cluster. # # # Calls To: None # # Usage: NewPanfsUser # # # Author Date Version Comments # ---------------+----------------+---------------+-...
true
73266c5e01ed14d31e6391dfac06e135c37bebb8
Shell
WebProjectsInitiatives/Generic-Web-Project
/git-hooks-sources/commit-msg.bat
UTF-8
672
3.671875
4
[ "MIT" ]
permissive
#!/bin/sh ################################################################################ # Project Template - Windows - Git hooks - Check the commit message syntax # ################################################################################ # regex to validate in commit message commit_regex="^((\[(([0-9a-...
true
f50fe65babdf49106213fdb2d4181214c37be98d
Shell
Shanices/fatdistnGWAS
/plinkClump.sh
UTF-8
1,380
2.65625
3
[]
no_license
#!/bin/sh #$ -cwd #$ -P lindgren.prjc #$ -q short.qc pheno=$1 sex=$2 window=$3 # make sure plink really knows how many threads it can use! this might be system-specific variable export OMP_NUM_THREADS=1 plink=/apps/well/plink/1.90b3/plink for chr in {1..22}; do # here's the GWAS summary data # this data is formatt...
true
d824bc645d23e4b8d67ce8b70c86dcf9622a402b
Shell
jmpoder/gloria
/gloria.sh
UTF-8
5,267
4.125
4
[]
no_license
#!/bin/bash # Log de operaciones realizadas LOG="" function mostrar_banner { echo "" echo " _____) " echo " / /) , " echo " / ___ // _____ _ " echo " / / ) (/_(_)/ (__(_(_(_" echo "(____ / " echo "" echo "En base a lo que haz traido, analizare los archivo...
true
a0fdf6185d70f3be943395bc43490b4b3e246c72
Shell
kseniya-tychkova/fortress
/install.sh
UTF-8
10,995
3.296875
3
[]
no_license
#!/bin/bash ###################################################################### ## Functions to deploy Fortress environment on localhost ###################################################################### ## Prerequesites function prerequesites { sudo apt-get update sudo apt-get install -y git # Dir...
true
cd0690d9ad5d1962d4e26c4c2236b9eea39339f1
Shell
nuada/variant-calling
/lib/bwa_aln.sh
UTF-8
674
3.015625
3
[]
no_license
#!/bin/bash BWA_INDEX=${RESOURCES}/${REFERENCE}/bwa/0.7.5/${REFERENCE_NAME} function _align { cpus=$((${CPUS}/2)) [[ ${cpus} -eq 0 ]] && cpus=1 for i in $(seq 2); do bwa aln -t ${cpus} -R 10000 -q 15 ${BWA_INDEX} ${temp}/${sample}.r${i}.${FASTQ_EXT} > ${temp}/${sample}.r${i}.${FASTQ_EXT}.sai & done wait bwa ...
true
fc1c488348f7d9f5bec2a72fba4717a16ab6b108
Shell
anomen-s/anomen-kernel-config
/malina4/customs/usr/local/sbin/netstats.sh
UTF-8
230
2.84375
3
[]
no_license
#!/bin/bash D=`date +%F` S=`cat /sys/class/net/eth0/statistics/{rx_bytes,rx_packets,tx_bytes,tx_packets}` touch /var/log/netstats.log echo -n "${S}" | tr '\n' '\t' >> /var/log/netstats.log echo " ${D}" >> /var/log/netstats.log
true
2903dbda052a1ea102919edb8779b13f8c5307e8
Shell
juandiegomoya/scripting
/04_type.sh
UTF-8
798
2.953125
3
[]
no_license
# !/bin/bash #Tipos de datos #Author Juan Moya num1=10 num2=20 echo "Operadores" echo "imprimiendo num1 $num1 y num2 $num2" echo "suma entre A y B:" $((num1 + num2)) echo "resta entre A y B:" $((num1 - num2)) echo "multiplicacion entre A y B:" $((num1 * num2)) echo "division entre A y B:" $((num1 / num2)) echo "resid...
true
f0f2234dfdbc7aadbc54441ab4af851d5c1c4b63
Shell
moormaster/msdos-and-windows-vm
/lib-install-app-ie-on-qemu.sh
UTF-8
1,247
3.453125
3
[]
no_license
. lib-bogomips-sleep.sh . lib-qemu.sh install-app-ie-on-qemu() { isoimage="$1" if [ $# -lt 1 ] then install-app-ie-on-qemu-usage return fi if ! [ -f "$1" ] then echo "file not found: $1" 1>&2 install-app-ie-on-qemu-usage return fi qemu-change-cdrom "$isoimage" echo "extracting setup..." qemu-sen...
true
6d22aa198b2a35e347f40e5c9ea3b13191640a2d
Shell
delapuente/jquery.sampling
/gendoc.sh
UTF-8
749
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash -e PROJECT=jquery.sampling TAR_FILE=$PROJECT"_docs_html$(date +%s).tar" echo "Entering sphinx source directory" cd sphinx echo "Generating HTML documentation..." make html echo "Saving documentation" cd build/html tar -vcf /tmp/$TAR_FILE * cd ../.. echo "Exiting sphinx source directory" cd .. echo "Sw...
true
b2cce18ddf412e4c6ae2e474289da45bd596d78f
Shell
ZoltanDalmadi/dotfiles
/bashrc
UTF-8
16,814
2.859375
3
[]
no_license
# Archlinux Ultimate Install - .bashrc # by helmuthdu ## OVERALL CONDITIONALS {{{ _islinux=false [[ "$(uname -s)" =~ Linux|GNU|GNU/* ]] && _islinux=true _isarch=false [[ -f /etc/arch-release ]] && _isarch=true _isxrunning=false [[ -n "$DISPLAY" ]] && _isxrunning=true _isroot=false [[ $UID -eq 0 ]] && _isroot=true # ...
true
3f13da7bd12c17c61fa347a7edaa6be1c53b3520
Shell
oracle/weblogic-deploy-tooling
/installer/src/main/bin/updateDomain.sh
UTF-8
6,972
3.546875
4
[ "UPL-1.0", "LicenseRef-scancode-other-copyleft", "MIT", "GPL-2.0-only", "Classpath-exception-2.0", "Apache-2.0", "CDDL-1.1" ]
permissive
#!/bin/sh # ***************************************************************************** # updateDomain.sh # # Copyright (c) 2017, 2023, Oracle Corporation and/or its affiliates. All rights reserved. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. # # NAME ...
true
a219ab61d2cead61fef0f6cb72c0916d236eb817
Shell
MatrixMike/sdr-scripts
/sdr2.sh
UTF-8
1,267
3.1875
3
[]
no_license
#!/bin/bash # This script should install and build all needed stuff for # using the SDRPlay on Ubuntu 16.04 or later. It must be # run as root. # # This is part two. # Here we build SoapySDR #cd SoapySDR cd ~/SoapySDR || exit ~/sdr-scripts/sub1.sh ##*mkdir build #cd build ##*cd build || exit ##*cmake .. ##*make -j4 ...
true
e8000057fb2cd7e054f02df84ce1844eb6f9a109
Shell
AlanFermat/leetcode
/linux/validPhone.sh
UTF-8
505
2.625
3
[]
no_license
#this is wrong #\{3\} means it appears three times #\d[3] is three digits #[] matching any one of the enclosed form #parenthesis can be added directly grep '([0-9]\{3\}) [0-9]\{3\}-[0-9]\{4\}\|d[3]-[0-9]\{3\}-[0-9]\{4\}' file.txt #start with / end with/ #^$ #() will group the patterns #when parentheses are needed...
true
1b8848d4e256a07f79a5819f68d26d292474c500
Shell
dpsmith/oxt-setup
/scripts/container-setup.sh
UTF-8
3,283
3.28125
3
[]
no_license
#!/bin/bash # # This script is for setting up a debian environment for building # OpenXT. # # The contents of this are derived from OpenXT build-scripts. # # Copyright (c) 2016 Assured Information Security, Inc. # Copyright (c) 2016 BAE Systems # Copyright (c) 2016 Apertus Solutions # # Contributions by Jean-Edouard Le...
true
9cb99c6b763477d138a411c381174ac63596fa6b
Shell
duominuolin/datasets
/scripts/xlsxToTsv.sh
UTF-8
360
3.734375
4
[]
no_license
#!/bin/bash # Use LibreOffice to convert from xlsx if [ $# -eq 0 ]; then echo "Usage: $0 in.xlsx out.tsv"; exit 1; fi; IN=$1 OUT=$2 ssconvert --export-type="Gnumeric_stf:stf_assistant" --export-options="eol=unix separator=' '" "$IN" "$OUT" if [ $? -gt 0 ]; then echo "ERROR with ssconvert program. Do you have...
true
1e5acf6d1838346ca475e27d26d46cca4a1e6def
Shell
Bhaskers-Blu-Org1/clai
/uninstall.sh
UTF-8
701
3.875
4
[ "LicenseRef-scancode-free-art-1.3", "MIT" ]
permissive
#!/bin/bash -e die () { echo -e $1; exit $2; } is_sh () { value=$(ps -o args= -p "$$" | cut -f 1 -d " ") test "sh" = $value return } command_exists () { type "$1" &> /dev/null ; } if is_sh ; then die "\n Please don't invoke with sh, to uninstall use ./uninstall.sh" fi if [ "$EUID" -ne 0 ]...
true
a1f7fea73fe629a316dd4a73b382ebac7716f645
Shell
mmitch/webcomics
/Nodwick/mkindex.sh
UTF-8
137
2.84375
3
[]
no_license
#!/bin/bash ls | egrep '\.jpeg$' | sort | while read FILE; do echo -e "${FILE}\t${FILE:8:2}.${FILE:5:2}.${FILE:0:4}" done > index
true
cb7dea316bf42ba7d59030bee3e8c5876fb8a71b
Shell
wxl/adventofcode-solutions
/bash/AdventOfCodeSolution-Day2.sh
UTF-8
1,320
3.640625
4
[ "MIT" ]
permissive
#!/usr/bin/env bash function papercalc { l=$(echo $1 | cut -dx -f1) w=$(echo $1 | cut -dx -f2) h=$(echo $1 | cut -dx -f3) sidearea1=$(( $l * $w )) sidearea2=$(( $w * $h )) sidearea3=$(( $h * $l )) # area of right rectangular prism present=$(( 2 * $sidearea1 + 2 * $sidearea2 + 2 * $sidearea3 )) # area of ...
true
a7b19d89c41f6abddb6613b650002fa582a825b4
Shell
alces-software/forge-packages
/schedulers/pbspro-compute/package/install.sh
UTF-8
516
3.03125
3
[]
no_license
#!/bin/bash require files files_load_config distro if [[ "$cw_DIST" == "el7" ]]; then yum install -e0 -y hwloc-libs elif [[ "$cw_DIST" == "ubuntu1604" ]]; then apt-get install -y libhwloc5 else echo "Unsupported distribution: ${cw_DIST}" exit 1 fi if [ ! -d /var/spool/pbs ]; then mkdir /var/spool/pbs tar ...
true
612940cab95234740eb47da4a74dfbd6456d3da7
Shell
PassZhang/simple-microservice
/k8s/delete-ns.sh
UTF-8
389
3.265625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e useage(){ echo "useage:" echo " delns.sh NAMESPACE" } if [ $# -lt 1 ];then useage exit fi NAMESPACE=$1 JSONFILE=${NAMESPACE}.json kubectl get ns "${NAMESPACE}" -o json > "${JSONFILE}" vi "${JSONFILE}" curl -k -H "Content-Type: application/json" -X PUT --data-binary @"${JSONFLE}" \...
true
c18174daee7334ed48a5bfdece89ca040180f69c
Shell
wasv/BluePill-VM
/setup.sh
UTF-8
1,481
3.203125
3
[ "MIT" ]
permissive
#!/bin/bash LAUNCH_USER="${LAUNCH_USER:-vagrant}" sudo apt-get install -y unzip usbutils minicom gcc-arm-none-eabi gdb-arm-none-eabi libc6-i386 openocd screen dfu-util # Recreate downloads folder. rm -rfv /tmp/setup-downloads mkdir -v /tmp/setup-downloads cd /tmp/setup-downloads # Download archives wget -q https://...
true
30411f58e2683134d7de77435d8b44d852b6a402
Shell
pfhonore/cports
/packages/atlas/3.8.3/lapackconfig.intel11.0.sh
UTF-8
544
2.921875
3
[]
no_license
#!/bin/bash -x cd work optflags=$(cat compflags) #rm compflags mkdir lapackdir cd lapackdir wget -c http://www.netlib.org/lapack/lapack-3.2.2.tgz tar zxvf lapack-3.2.2.tgz lapv=$(find . -maxdepth 1 -type d -printf '%f\n' | grep lapack | sed -e 's/^lapack-//') if [[ $lapv ]] then mv lapack-$lapv lapackinst else ...
true
9635e5b8307314521fb365aa3111446d9875bd14
Shell
ariscahyadi/Orchestration-OFTEIN-LifeCycleExperiment
/Developer/automatic-demo.sh
UTF-8
3,452
3.609375
4
[]
no_license
#!/bin/bash # # Name : automatic-demo.sh # Description : Script for OF@TEIN Infrastructure Checking Resource, Executing Experiment # and Displaying Result Automatically (PING, IPERF and VIDEO Experiment) # # Created by : TEIN_GIST@nm.gist.ac.kr # Version : 0.1 # Last Update : November, 2014 # # CONFIGU...
true
7a09778f4a87b551ef7355931fab4baa53c082e9
Shell
websages/raspi
/sd_build/post_dd_config-black
UTF-8
2,226
2.671875
3
[]
no_license
#!/bin/bash echo PATH="/usr/local/bin:/usr/bin:/bin" mount | grep mmcblk0p2 || mount /dev/mmcblk0p2 /media/ || exit 1 mount | grep mmcblk0p1 || mount /dev/mmcblk0p1 /media/boot/ || exit 1 if [ ! -f /media/boot/config.txt.dist ]; then cp /media/boot/config.txt /media/boot/config.txt.dist fi cat<<EOF > /media/boot/co...
true
37a1f76999dff33088d65af2253952210022f15d
Shell
fakewaffle/shell-config
/aliases/docker
UTF-8
1,299
3.6875
4
[]
no_license
#!/bin/sh if hash docker 2>/dev/null; then # Get latest container ID alias dl="docker ps -l -q" # Get container process alias dps="docker ps" # Get process included stop container alias dpa="docker ps -a" # Get images alias di="docker images" # Get container IP alias dip="docker inspect --format '{{ .Ne...
true
f862748b5530779be3256842770af76f99e998ee
Shell
TIBHannover/orkg-frontend
/entrypoint.sh
UTF-8
261
2.59375
3
[ "MIT" ]
permissive
#!/bin/sh # From: https://github.com/andrewmclagan/react-env/blob/master/packages/nginx/entrypoint.sh set -e echo "Serializing environment" react-env --dest /usr/share/nginx/html/ cat /usr/share/nginx/html/__ENV.js exec "$@" echo "Serializing successful"
true
c511f0bde362a3039f869728942e419cda79ca36
Shell
arbal/cloud
/scripts/setup.sh
UTF-8
529
2.625
3
[]
no_license
#!/usr/bin/env bash COMPOSE_VERSION=1.26.2 # Update sudo apt update sudo apt upgrade -y # Install Docker curl -fsSL https://get.docker.com | sudo sh # Install Docker Compose sudo curl -L "https://github.com/docker/compose/releases/download/${COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin...
true
2c52c60b934699de67d39c598a9b2b58c3cb1ab2
Shell
brandewang/jenkins
/java/cover-config.sh
UTF-8
746
3.25
3
[]
no_license
#!/bin/bash # 部分tomcat服务有web.xml概念,并且需要覆盖。 # 建议开发修复 # 覆盖配置文件 source ${JENKINS_JAVA_SHELL_PATH}common.sh if [[ -d ${project_config_path} ]];then rsync -av ${project_config_path}/* ${resources_path} --exclude web.xml if [[ $? -ne 0 ]];then exit 1 fi webxml=$(find ${project_config_path} -name web....
true
e547419e2d7e98f6fbc066915ded7d3766222e05
Shell
EasonJackson/BASH-Menu-Templete
/gui_template.sh
UTF-8
1,985
4.1875
4
[]
no_license
#!/bin/bash # Bash Menu Script Example SEPERATOR="================================================================" function display_menu { local options=("$@") echo echo "$1" for index in `seq 1 $((${#options[@]}-1))`; do echo "$((index))) ${options[$index]}" done }...
true
f1bb660721e610c627900e0fcb581b9b5ada5cba
Shell
thescott/gke-cloudshell-demo
/k8sCreds.sh
UTF-8
480
2.84375
3
[]
no_license
#!/usr/bin/env bash set -x set -e clusterID="$(terraform output subnetwork_name)" # Set your compute zone to match what your terraform is creating gcloud config set compute/zone us-central1-a # Authenticate to your newly created cluster gcloud container clusters get-credentials $clusterID # Copy Kubernetes terrafo...
true
84832b3bf1d063c62f4aad433748d9af47bc0ae3
Shell
jwessel/device-cloud-python
/docker/build.sh
UTF-8
1,509
3.546875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright (c) 2017 Wind River Systems, 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 applicabl...
true
243f3068277b923fe9134008cf78d0470c077c12
Shell
sureshkvl/contrail-install-doc
/provisioning-scripts/vrouter_setup.sh
UTF-8
3,736
3.1875
3
[ "Apache-2.0" ]
permissive
# This has to run in compute node / devsack #Steps: #1. Load the vrouter module, creating the vhost0 interface #2. Run provisioning scripts # a. setup vgw interface and iptables for NAT. #Prerequisties: #1. vrouter, vrouter-agents, neutron-plugin installation should have been done. # neutron plugin??????? locat...
true
1bd1f1ce1bdf8002c771cb0cecea71c706559bb7
Shell
wfarr/incubator-aurora
/src/test/sh/org/apache/aurora/verify_thrift_checksum.sh
UTF-8
2,981
3.90625
4
[ "MIT", "Apache-2.0" ]
permissive
#!/bin/bash # # 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 to in writing, software # distri...
true
553ef91821b843333b492e7830a20d05326e3224
Shell
Ayuei/Lexical-Segmentation-Transformer-Investigation
/src/lexical_investigation/runner_script.sh
UTF-8
561
2.625
3
[ "MIT" ]
permissive
#!/bin/sh export CUDA_VISIBLE_DEVICES=1 set -e base_dir=pretrained/ task_name="mednli" data_dir="/scratch1/ngu143/Super_Transfer/data/" for folder in $(ls "${base_dir}"/); do full_path="${base_dir}""${folder}" #transformers bert "${full_path}"/model.ckpt "${full_path}"/bert_config.json "${full_path}"/pytorch_mod...
true
6427bde3f3c56fc2c041fc112320959ae65d5031
Shell
opencv-infrastructure/opencv-worker-config
/images/ffmpeg-master/post-build/prepare.sh
UTF-8
980
3.328125
3
[]
no_license
#!/bin/bash -e { # force bash to read file completelly DIR=$1 . /app/deploy/env.sh # fetch files from host cache mkdir -p /opt/build-containers-cache/ffmpeg/.git mkdir -p /home/build/sources/ffmpeg/ rsync -axHAX /opt/build-containers-cache/ffmpeg/.git /home/build/sources/ffmpeg/ pushd /home/build/sources/ffmpeg set...
true
b179692131333128f2faf2454503d3b651c4a5eb
Shell
avahe-kellenberger/dotfiles
/scripts/weather
UTF-8
1,848
3.984375
4
[]
no_license
#!/bin/bash if [[ "$1" = "-h" ]] || [[ "$1" = "--help" ]]; then printf "Help Menu:\n\n" printf " Help menu: [-h | --help ]\n" printf " Display with icon: [-i | --icon ]\n" printf " Round the temperature: [-r | --round]\n" exit fi function get_icon() { weather...
true
397805c19f8da1fd11d26d481b2abbeb60c1f339
Shell
xuyinhao/lgpbenchmark
/loongoopBench/api/bin/cp/case/11-2
UTF-8
360
2.859375
3
[]
no_license
#!/bin/sh srcPath1="$apiPath/cp11-2a" srcPath2="$apiPath/cp11-2b" `$mkdir $srcPath1 $srcPath2 2>/dev/null` distPath="$apiPath/cp11-2dist" `$mkdir $distPath 2>/dev/null` `$cp $srcPath1 $srcPath2 $distPath 2>/dev/null` ret=`checkOkForPath $? "$distPath/cp11-2a"` if [ 1 -eq $ret ]; then ret=`checkOkForPath $? "$distPath/...
true
5a627fe173ec256f2f0bd71463ffd2a200026ca1
Shell
Mic92/xfstests-cntr
/tests/xfs/212
UTF-8
2,192
3.4375
3
[]
no_license
#! /usr/bin/env bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2016, Oracle and/or its affiliates. All Rights Reserved. # # FS QA Test No. 212 # # Test recovery of "lost" CoW blocks after a crash: # - Create two reflinked files. Set extsz hint on second file. # - Dirty one byte on the second file and fsync. ...
true
c79acfdab111a217678b46ad87470e3bc0cd04d9
Shell
cascafico/tools
/relations-to-wiki.sh
UTF-8
986
3.359375
3
[]
no_license
#!/bin/bash #first argument must be OSM area name (i.e. Trieste) #output wikitable with paths in local walking network (lwn) #OSM csv extraction base on this query http://overpass-turbo.eu/s/Epu #REQUIRED csv2wiki python script (see wget below) wget -nc https://raw.githubusercontent.com/dlink/vbin/master/csv2wiki if...
true
f9d480276eed006937f6ee2dc275cd0e8d8a329e
Shell
larsbrinkhoff/tots-tools
/scripts/request.sh
UTF-8
426
3.28125
3
[]
no_license
tape="" end="" cat "$1" | while read i; do t=`echo $i | cut -d/ -f1` if test \! "$t" = "$tape"; then tape="$t" echo "$end" echo -n "TAPE: " echo -n `grep "$t" all.sh | cut -d' ' -f3 | tr -d v` echo -n " " (cd tapes; find . -name "$tape.tap*" | cut -c3- | sed -e s/...
true
019030153c8d3d56294e9cb22ecc24102830679e
Shell
RossLab/Sex-Specific_Methylation_P.citri
/De_novo_transcriptome/NO_prepping_files_for_annotation.sh
UTF-8
1,222
2.8125
3
[]
no_license
#$ -V #$ -cwd #$ -j y #$ -o /data/ross/mealybugs/analyses/hollie/logs/annotation_prep_$JOB_ID.o set -e SCRATCH=/scratch/$USER mkdir -p $SCRATCH cd $SCRATCH start=`date +%s` # NOTE: conda activate holl_trinity #--------------------------------------------- echo "copying data in" rsync /data/ross/mealybugs/analyses...
true
263c7341812fbbd0173aae69ebd8be3efccfb5b9
Shell
KaOSx/main
/xdelta3/PKGBUILD
UTF-8
527
2.9375
3
[]
no_license
pkgname=xdelta3 pkgver=3.1.0 pkgrel=3 pkgdesc="A diff utility which works with binary files" arch=('x86_64') url="http://xdelta.org/" license=('Apache') depends=('xz') source=("https://github.com/jmacd/xdelta-gpl/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz") md5sums=('5ac7b9d0dc9695124816ecbd397f5bee') b...
true
1b5edb4077f1fe6328fee5787de002f7fe32080f
Shell
wolfhechel/tilde
/.config/statusbar.sh
UTF-8
3,086
3.78125
4
[]
no_license
#!/bin/sh battery_status() { BAT_dir=/sys/class/power_supply/$1 AC_dir=/sys/class/power_supply/AC charge_now=$(cat ${BAT_dir}/charge_now) charge_full=$(cat ${BAT_dir}/charge_full) level=`echo "scale=2;(${charge_now}/${charge_full})*100" | bc | cut -d'.' -f1` AC_online=$(cat ${AC_dir}/online)...
true
a6054d38ab9571445555cff9c52c21ae561d4c5f
Shell
jamesoff/tmux-vpn
/scripts/display_net.sh
UTF-8
828
3.46875
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash connectivity_file="$HOME/.connectivity-check" # check for network connectivity last_check=0 if [[ -r $connectivity_file ]]; then last_check=$( stat -f %m "$connectivity_file" 2> /dev/null ) fi age=$(( $( date +%s ) - last_check )) if [[ $age -gt 30 ]]; then network_name=$( /System/Library/Pri...
true
6e82912ae8a412fff94b93fec60d719ebf6af204
Shell
gcoop-libre/sugar-graphviz
/append.sh
UTF-8
257
3.09375
3
[]
no_license
#!/bin/bash PREFIX='sugarcct' ls $PREFIX*.png | sed s/$PREFIX[0-9]*-//g | sort -u | while read i do echo $i IMG1=$PREFIX'15-'$i IMG2=$PREFIX'30-'$i IMG3='diff-'$i echo $IMG3 convert -background white $IMG1 $IMG2 -append $IMG3 done
true
a5818e600547d2878a810b52fba95a38cd6b42f9
Shell
lockfale/sshpocworm
/build.sh
UTF-8
398
3.4375
3
[ "Zlib" ]
permissive
#!/bin/sh # # build.sh # Build a project # By J. Stuart McMurray # Created 20160221 # Last Modified 20160808 set -e PROG=$(basename $(pwd)) echo "Building $PROG" go vet for GOOS in linux openbsd darwin; do for GOARCH in 386 amd64; do export GOOS GOARCH N="$PROG.$GOOS.$GOARCH...
true
b703ffe59043ddf1465b36bba778d2fdf85fb709
Shell
melloneyha82/build_scripts
/build_Polyphony
UTF-8
1,813
4.3125
4
[]
no_license
#!/bin/sh ############################################################################## # This script will build a Harmoni package and put it a ~/Releases directory. # # 3rd party libraries will also be downloaded from the git repository server # and copied into the appropriate places. ##############################...
true
cac0e535eea2c761ea6a6311555df6b50ae3c010
Shell
fengerhu1/Order-processing
/scripts/stop_node_violent.sh
UTF-8
1,823
3.59375
4
[]
no_license
#!/bin/bash MASTER_HOST="vm1" SLAVE_HOSTS="vm2 vm3 vm4" HOSTS="vm1 vm2 vm3 vm4" #stop spark STOP_SPARK_MASTER="jps | grep 'Master' | awk -F ' ' '{print $1}' | xargs kill -9" STOP_SPARK_WORKER="jps | grep 'Worker' | awk -F ' ' '{print $1}' | xargs kill -9" for SLAVE in ${HOSTS} ; do ssh ${SLAVE} "${STOP_SPARK_WORK...
true
6bc943a9ab0fb9e3a646b3a51e5af54bc3c4a0d4
Shell
gh3orghiu/chemshell-dna-sample-inputs
/example_inputs_and_scripts/no_field/scripts/set_up_struc.sh
UTF-8
1,968
3.546875
4
[]
no_license
#!/bin/bash ## This script takes in a PDB snapshot saved using VMD and creates a suitable open-boundary structure for ChemShell. # Ensure you have the /scripts/ folder in your PATH # The PDB snapshot may come from a MD trajectory containing DNA, solvent and counter-ions # This this script in a folder containing the pd...
true
7675af0a0ebfb101462189933014ca059a8f5e75
Shell
janithjeewantha/ELK_Learning_Lab
/ELK_Test/scripts/run.sh
UTF-8
629
2.53125
3
[ "MIT" ]
permissive
#!/bin/sh echo " ============= Booting up ELK =============" echo " " echo " Starting Elasticsearch... " sh elasticsearch/bin/elasticsearch -E http.host=0.0.0.0 --quiet & echo " Starting Elasticsearch Complete " echo " " echo " Starting Kibana... " kibana/bin/kibana --host 0.0.0.0 -Q & echo " Starting K...
true
cc5de6f04a951943b2fa59f424f1d6dc9cb81328
Shell
mcomella/timebox.sh
/timebox
UTF-8
662
3.859375
4
[ "MIT", "X11" ]
permissive
#!/bin/bash function date_fmt { date "+%H:%M:%S" } start_date=`date_fmt` echo "Started: $start_date" seconds=$(($1 * 60)) sleep $seconds echo "Complete: `date_fmt`" # Notify through UI. if [ $2 ]; then title=$2 else title="Timebox complete" fi body_text="Slept $1 minutes starting at $start_date" if [ $...
true
337f166178869ff3defb77f965f45de8f6969f8e
Shell
xtech/up-2-date
/photobox/extract_update.sh
UTF-8
255
3.609375
4
[ "MIT" ]
permissive
#!/bin/sh PACKET=$1 TARGET=$2 BINARY=$3 echo "Extracting update from $PACKET to $TARGET with binary name $BINARY" rm -rf $TARGET # Unpack and install if [ ! -d $TARGET ]; then mkdir -p $TARGET fi tar xf $PACKET -C $TARGET chmod +x $TARGET/$BINARY
true
7d545c7b9b85d4cb76eea399b01f70b1b74a0529
Shell
zezhouliu/fuzzy-llama
/http-parser/setup.sh
UTF-8
1,331
3.5625
4
[ "MIT" ]
permissive
#!/bin/sh setup_prep(){ if [ -f out.o ] || [ -f http_parser.o ] || [ -f http_parser.o ]; then make -f my_make.mk clean fi make -f my_make.mk out.o } setup_klee(){ #exec klee --optimize --emit-all-errors --libc=uclibc --posix-runtime ./out.o $1 #exec klee --only-output-states-covering-new --optimize --emit-al...
true