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
943ba551ae453095da3f0f8d0a0dfd2361d43ff4
Shell
tnakaicode/jburkardt
/cycle_brent/cycle_brent.sh
UTF-8
272
2.859375
3
[]
no_license
#!/bin/bash # cp cycle_brent.hpp /$HOME/include # g++ -c -I /$HOME/include cycle_brent.cpp if [ $? -ne 0 ]; then echo "Errors compiling cycle_brent.cpp" exit fi # mv cycle_brent.o ~/libcpp/$ARCH/cycle_brent.o # echo "Library installed as ~/libcpp/$ARCH/cycle_brent.o"
true
acae0c7fde9580503a71e7dc13e5014c03a32f6b
Shell
git-for-windows/MSYS2-packages
/rebase/paths-from-unix-to-windows
UTF-8
512
3.75
4
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash # Copyright (c) 2014, Ray Donnelly # # Usage: paths-from-unix-to-windows <infilelist> <outfilelist> <replace> # # <infilelist> File containing a list of Unix filenames. # # <outfilelist> File to write Windows (mixed) filenames to. # # <replace> String to replace in_filelist=$1...
true
95fe4cf8cd063e04e7f0b460534ae31d470a5467
Shell
cremesk/firmware-freifunk-dresden
/feeds/openwrt/feeds-own/OVPNCerts/files/tunnel.cgi
UTF-8
3,729
3.484375
3
[]
no_license
#!/bin/sh . /lib/functions.sh export TITLE="Verwaltung > Software" OVPN_FILE="/tmp/ovpn.tgz" if [ "$REQUEST_METHOD" = "GET" -a -n "$QUERY_STRING" ]; then . /usr/lib/www/page-pre.sh ${0%/*} notebox 'GET not allowed' . /usr/lib/www/page-post.sh ${0%/*} exit 0 fi #get form data and optionally file eval $(/usr/bin...
true
95fbfea8116ebe76585a21595faaa11e6eac678c
Shell
miro298/enigma2-plugin-extensions-zoom
/usr/script/saveCFG.sh
UTF-8
314
2.515625
3
[]
no_license
#!/bin/sh echo "zálohuji Váš CCcam.cfg" sleep 1 if [ -e "/usr/keys/CCcam.cfg" ]; then cp /usr/keys/CCcam.cfg /etc/CCcam1.cfg more /usr/keys/CCcam.cfg echo '!!!/usr/keys/!!!' elif [ -e "/etc/CCcam.cfg" ]; then cp /etc/CCcam.cfg /etc/CCcam1.cfg more /etc/CCcam.cfg echo '!!!/etc/!!!' fi sleep 1 echo "uloženo...!!!" exit
true
ecfee8ddf6322465e38c95d915a416756c377b7f
Shell
jeonghanlee/epics-tools
/setup/download_requirements.sh
UTF-8
3,242
2.671875
3
[]
no_license
#!/bin/sh # Download third party tools and services needed for the epics tools and services mkdir -p ~/epics-tools/lib/jvm # download jdk 11 if [ ! -d ~/epics-tools/lib/jvm/jdk-11.0.2 ]; then wget https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz -O /tmp/openjdk-11+28_linux-x64_bin....
true
36abfff2e7978a5013fe1aad8e5add917b554f25
Shell
andreotec/linux
/ogg-converter
UTF-8
246
2.703125
3
[]
no_license
#!/bin/bash #Ogg-Converter #By Andreo Rissardo echo "Convertendo pra ogg" echo "Aguarde!!!" mkdir ogg-music cp *.mp3 ogg-music cd ogg-music for f in ./*.mp3; do ffmpeg -i "$f" -c:a libvorbis -q:a 192k "${f/%mp3/ogg}"; done rm -rf *.mp3 echo "Pronto!!!"
true
820c182ac1a064beb975c68789048fad30cf3bac
Shell
chamer81/docker-minecraft
/minecraft/commandReader.sh
UTF-8
1,842
4.0625
4
[]
no_license
#!/bin/sh STOP_CMD=stop BACKUP_TIME=${CUSTOM_BACKUP_TIME:-0530} /usr/local/bin/getLatestServer.py touch cmdfile # clear any existing commands: truncate --size 0 cmdfile while [ "$COMMAND" != "$STOP_CMD" ] ; do COMMAND=`cat cmdfile` if [ -n "$COMMAND" ]; then truncate --size 0 cmdfile ; ...
true
fe58399d0c93f3a38bdefd3d3cf5aa1c5565a0fa
Shell
ajm-asiaa/deploytask
/final_centos6_packaging_steps.sh
UTF-8
3,231
3.21875
3
[]
no_license
#!/bin/bash ### ### Final packaging steps on CentOS6 (Last updated: 3/5/17) ### ### Uses our own modified 'carta-distro' template (taken from the NRAO casa-pkg) ### (Including the 'desktop' to 'CARTA' name update from the 28th April 2017 ### develop branch commit) ### ### Note: Some paths may need to be adjusted for...
true
3c2c3e71d765f41afee6324e5b689b86cdabf503
Shell
aammirmirza/azure-cli-samples
/batch-ai/create-cluster/create-cluster-config-file.sh
UTF-8
1,279
2.890625
3
[ "MIT" ]
permissive
#!/bin/bash # Create a resource group. az group create --name myResourceGroup --location eastus2 # Create a storage account for mounting a file share to cluster nodes. az storage account create \ --resource-group myResourceGroup \ --name mystorageaccount \ --location eastus2 \ --sku Standard_LRS # Cr...
true
eb9f789fb9084003b2d6fba0bbf7f2cc1f67495f
Shell
mirkoevo/MatroxMGA
/version.sed
UTF-8
524
3.890625
4
[ "LicenseRef-scancode-unknown-license-reference", "BSD-2-Clause" ]
permissive
#!/bin/sh if [ "$1" = "" ]; then echo "Usage: version.sed version-number"; exit; fi VERS=`cat version` echo $VERS FILES=`find . -name \*.table -print` for file in $FILES; do echo Updating $file ; rm -f tmp-edit-file tmp-edit-file1 sed -e 's,"MatroxMGA '$VERS'","MatroxMGA '$1'",' $file > tmp-edit-file1 ; sed...
true
2dd2471f83d5acfbc156a3a24b372386c7472598
Shell
ebfe/m3utils
/m3uext
UTF-8
195
3.046875
3
[]
no_license
#!/bin/sh # m3uext [-f format] -- generate m3u extended playlist [ "$1" = "-f" ] && { fmt="$2"; shift 2; } fmt="#EXTINF:-1,${fmt:=%A - %a - %t}\n%f" echo '#EXTM3U' exec m3print -f "${fmt}" "$@"
true
a3b72a023e92fa7b95cab431116d940291564b3f
Shell
giogen/fMRI-preprocessing-pipeline
/05.Compute_Structural_Warp.sh
UTF-8
2,969
3.171875
3
[]
no_license
#!/bin/bash # Set directory containing antsRegistration scripts ANTSPATH=/usr/local/antsbin/bin # Set ITK thread count ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS=1 export ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS # Loop over subjects and run ANTs normalization for sbj in 0{01..32} do echo "Running subject: ${sbj}" cd /d...
true
0d5f8641cdf0e489d67b63fd6db271aafa9fd447
Shell
EricZBL/ClusterBuildScripts
/expand/install/expand_rocketmq.sh
UTF-8
8,588
3.28125
3
[]
no_license
#!/bin/bash ################################################################################ ## Copyright: HZGOSUN Tech. Co, BigData ## Filename: expand_rocketmq.sh ## Description: rocketmq扩展安装 ## Version: 2.4 ## Author: yinhang ## Created: 2018-07-14 ##################################################...
true
625b54f0a52c056e7386f26ddcbba7929dc1dfb9
Shell
nicordev/learn_bash
/parameter/pass_parameter/pass_parameter.sh
UTF-8
494
3.90625
4
[]
no_license
#! /bin/bash getContainerIdFromName() { if [ $# -lt 1 ]; then echo -e "${SCRIPT_NAME} ${FUNCNAME[0]} \e[33mcontainerNameHere\e[0m" return 1 fi docker ps --filter name="${1}" --quiet } getPostgresContainerId() { local containerId=$(getContainerIdFromName "${1}_postgres_main") if ...
true
4ceb91814b8b60ed2e9917fc014b84b7473c890b
Shell
emeraldpay/dshackle
/.envrc
UTF-8
646
3.1875
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Reload if any of these files change watch_file nix/* watch_file .envrc.local # Build a folder that contains all the tools nix-build ./nix -A env --out-link ./env # source .profile from `$env`. # This is only used to set things interpolated by nix. # All *static* things should live inside .envrc...
true
473fb06f89a71424e76ce2d1459d523744127cbd
Shell
josephsdavid/nixfiles
/scripts/spongebob
UTF-8
176
2.578125
3
[]
no_license
#!/usr/bin/env bash # # ty to turqoise while IFS= read -rn1 char; do ((RANDOM & 2)) && tmp=${char^} || tmp=${char,} echo -n "$tmp" done <<< ${*:-`< /dev/stdin`} echo
true
a898fc94b6f8a8a0e89c5a47dedcd130937f1a37
Shell
xxxmii/config
/.zshrc
UTF-8
770
2.71875
3
[]
no_license
# # Executes commands at the start of an interactive session. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi # Customize to your needs... # peco function peco-history-selection() { ...
true
289721d62a8481f6c5d35008115c92492caad739
Shell
PacktPublishing/Mastering-Git-Skills
/Module 2/Chapter 10/02_patches_from_ref.sh
UTF-8
652
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash # Git Version Control System Cookbook # Chapter 10 - Patching and offline sharing # # Copyright 2014 Aske Olsson # # Show whats is happening set -x # Getting ready # Remove dir if it exists rm -rf offline-sharing # Clone git clone https://github.com/dvaske/offline-sharing.git # How to do it cd offline-...
true
c89195945dd424be9b8632ae8ac1b26d53fd6f83
Shell
Markuze/RingFlod
/parser/collect_files.sh
UTF-8
186
2.78125
3
[]
no_license
#!/bin/bash home=`pwd` kern=/homes/markuze/copy/ func=map_single cd $kern cd drivers #git grep -n $func > $home/tmp/$func.txt git grep -n $func|cut -d: -f 1|uniq > $home/tmp/$func.txt
true
274b7fa823fa6a4c79136ff178c1df2cd0675119
Shell
levibyte/bats
/special_tests/common.bash
UTF-8
352
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash mkdir -p dir mkdir -p not_exisiting_dir touch not_writable_file -f chmod 555 not_writable_file mkdir -p dir mkdir -p not_writable_dir chmod 555 not_writable_dir/ if [ -f .count ]; then chmod 777 .count rm -rf .count fi #chmod 777 .count -f touch .count -f #fix unstabillity chmod 777 .count ech...
true
5d417b347fe6bf693af59a3db626eb5e0facc6c1
Shell
fhavrlent/arch-setup
/first.sh
UTF-8
696
2.609375
3
[]
no_license
#!/bin/bash # Format partition nvme0n1p1 to FAT32 mkfs.fat -F32 /dev/nvme0n1p1 # LVM setup pvcreate -dataalignment 1m /dev/nvme0n1p2 pvcreate -dataalignment 1m /dev/nvme1n1p1 vgcreate vol1 /dev/nvme0n1p2 vgcreate vol2 /dev/nvme1n1p1 lvcreate -l 100%FREE vol1 -n root lvcreate -l 100%FREE vol2 -n home modprobe dm_mo...
true
0684acb96da22fd5fb83620d5832e44dd4bf3393
Shell
grizzlybassist/media
/scripts/ytdl.sh
UTF-8
8,693
3.296875
3
[]
no_license
#!/bin/sh SHELL=/bin/sh PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin HOME=/home/server localname=`hostname` unraid="/mnt/unraid" working="$unraid/Cronjobs/media" media="$unraid/Media" downloads="$unraid/Downloads" time=$(date +"%Y-%m-%d.%H%M") now=$(date +"%Y-...
true
ef59df7e07a653266c4d6c9219ef5b7591b62141
Shell
aab64/PyCatKin
/docs/source/code_layout/build_code_layout.sh
UTF-8
208
2.59375
3
[ "MIT" ]
permissive
#!/bin/bash file="code_layout.svg" if [ -f "$file" ] ; then rm "$file" fi latex code_layout.tex dvisvgm --exact --font-format=woff code_layout.dvi pdflatex code_layout.tex rm -f *.aux *.gz *.log *.dvi
true
46dee6a75e8e1d94b48b4e472dae791299e10d25
Shell
int/go-nuts
/pre-commit
UTF-8
112
2.96875
3
[]
no_license
#!/bin/sh # copy it to .git/hooks/ s=`gofmt -l *.go` if [ "$s" ]; then echo 'gofmt' $s gofmt -w $s exit 1 fi
true
39419ae44bc0a044f847993e90b988681740541a
Shell
unixnme/fst_ngram
/hbka/run.sh
UTF-8
1,640
2.671875
3
[]
no_license
set -e set -x lmplz_dir=$1 echo "be an app pa" | python ../create_lex.py echo "a b e n p" | python ../create_t.py $lmplz_dir/lmplz --order 3 --discount_fallback -S 10% < ../corpus.txt > 3gram.arpa ngramread --ARPA --symbols=lexicon.syms 3gram.arpa | fstarcsort --sort_type=ilabel - G.fst fstcompile --isymbols=tokens....
true
c4b477d7a7785f4dc93cfb6379c93167a1c2a758
Shell
GruveTools/gruve-client
/install.sh
UTF-8
7,444
4.03125
4
[]
no_license
#!/usr/bin/env bash { # this ensures the entire script is downloaded # gruve_has() { type "$1" > /dev/null 2>&1 } gruve_install_dir() { printf %s "${GRUVE_DIR:-"$HOME/gruve-client"}" } gruve_latest_version() { echo "master" } # # Outputs the location to Gruve depending on: # * The availability of $GRUVE_SOUR...
true
efe64ea252bd0acfa8ad83dfb65da11c8d664bdd
Shell
eugenio165/es2-api
/docker/nodejs/run.sh
UTF-8
901
3.234375
3
[ "MIT" ]
permissive
#!/bin/sh echo '===============================================' echo 'Testando versão do node e npm' echo '===============================================' echo '' node -v npm -v echo '' echo '===============================================' echo 'Instalação dos pacotes do projeto' echo '===========================...
true
90964530f05c7c3dc8f9fb773c7e48bf70399195
Shell
Antynea/raspi-overlayroot
/initcpio-hooks-overlayroot
UTF-8
979
3.53125
4
[ "MIT" ]
permissive
#!/usr/bin/ash run_hook() { if [ "${overlayroot}" ]; then # Create overlay tree in RAM mkdir -p /overlay mount -t tmpfs overlayroot /overlay mkdir -p /overlay/upper mkdir -p /overlay/work mkdir -p /overlay/lower # Remove /new_root directory and replace it with symlink # After run_hoo...
true
a11c49cf1d93d61673611fe4260c68d2d2dffe1e
Shell
bebrws/jeval
/test.sh
UTF-8
1,159
2.71875
3
[]
no_license
#!/usr/bin/env zsh export CORRECT1="[ 'THERE', 'NAME', 'BRAD' ]"; export TEST1="`echo "hey\nthere\nmy\nname\nis\nBrad" | jeval "cl(this.l.toUpperCase())" | jeval "([])" "this.l.length > 3 && this.a.push(this.l);" "cl(this);"`"; if [[ "$CORRECT1" == "$TEST1" ]]; then echo "Test 1 Passes" else echo "Test 1 Fai...
true
c560978f0e971438a42753dc3e47c6f472e60605
Shell
cha63506/WikiAtlas_scripts
/back/10_looping/looping.bash
UTF-8
110
2.578125
3
[ "MIT" ]
permissive
#!/bin/bash while IFS=; read -r subject W N E S do make subject="$subject" W="$W" N="$N" E="$E" S="$S" done
true
df1be3870f5c596b77e95db2f35a6019f5cbe596
Shell
qus-jiawei/cdh3to4
/bin/4_change_ha.sh
UTF-8
2,001
3.0625
3
[]
no_license
#!/usr/bin/env bash UP_BIN=$(cd $(dirname $0);pwd) . $UP_BIN/head.sh var_die UP_ROOT start_zk(){ sh $UP_BIN/start-zk.sh sh $UP_BIN/start_close_check.sh zk start } function formatZK(){ expect -c "; spawn hdfs zkfc -formatZK; expect \"(Y or N)\"; send \"Y\n\"; exec sleep 1; send \"exit\n\"; expect"; }...
true
bfee33657f4fb72fa01d66586c4df78eab999ffc
Shell
gstyleqq/jiangfeng-subtitles
/release.sh
UTF-8
1,199
3.453125
3
[]
no_license
#!/bin/bash # author: gfw-breaker langs="zh" index=README.md ## README page cat > $index << EOF ### 《江峰时刻》节目字幕/文字稿 --- ##### 友情链接:[免翻墙看禁闻,包含大纪元、新唐人等](https://github.com/gfw-breaker/banned-news) | 视频节目名称 | 视频/音频 | 简体字幕 | 简体文字稿 | 正體字幕 | 正體文字稿 | |---|---|---|---|---|---| EOF ## generate for lang in $langs; do mont...
true
723a3f31f6661e1faeee78324d88a5087db1c3bc
Shell
noam-c/dotfiles
/bash/bash_profile
UTF-8
441
2.6875
3
[]
no_license
# Make prompt more git-friendly source ~/.git-completion.bash source ~/.git-prompt.sh # Add extra machine-specific setup (e.g. project directory names) source ~/machine/extra.sh # Use clang instead of g++ for C/C++ export CC=clang export CXX=clang++ # More thorough ls by default alias ls="ls -ahlrt" export PS1='C:/...
true
532cf017bd3c08f48d60eb24b1fe73bc72e7b49b
Shell
ZeusBlockchain/docker-compose-files
/hyperledger/1.0/cc_operations/map_remove.sh
UTF-8
415
2.96875
3
[]
no_license
#!/bin/bash source cc_operations/globalFunctions.sh echo_b "Channel name : "$CHANNEL_NAME if [ "$#" -ne 2 ]; then echo_r "=========================== Usage: map_remove map key =========================== " echo_r "e.g. map_remove VOTERS voterKey" exit 1 fi map_remove 2 "$1" "$2" echo echo_g "=============...
true
61ec30ac0e9940f6bdd07d0cbb69661bd3303dd0
Shell
patevn/LearningBash
/Case
UTF-8
426
3.59375
4
[]
no_license
#!/bin/bash echo "What is your favorite ninja turtle?" echo "1 - Raphael" echo "2 - Donatello" echo "3 - Michaelangelo" echo "4 - Leo" ##read in input from keyboard read turtle; case $turtle in 1) echo "Raphael is cool, but rude";; 2) echo "Donatello is wise";; 3) echo "Michaelangello like to party";; 4) echo...
true
ea15fab6255ea5925c12499f36f3c3c5f51f4118
Shell
marshall-lee/dotfiles
/zshrc
UTF-8
774
3.4375
3
[ "MIT" ]
permissive
[[ -z "$ZSH" ]] && export ZSH="$HOME/.zsh" function my_start() { local my_sources=($ZSH/lib.zsh) if [[ -f $ZSH/pre-init.zsh ]] { my_sources=($my_sources $ZSH/pre-init.zsh) } my_sources=($my_sources $ZSH/brew.zsh $ZSH/init/*.zsh $ZSH/compinit.zsh $ZSH/prompt.zsh ) if [[ -f $ZSH/post-init...
true
f72a951cf9953aa94802a7fb84d842aeb62db70d
Shell
ripley57/CW_Tools
/tools/javascript/load_tool.sh
UTF-8
8,647
4.0625
4
[]
no_license
TOOLS_DIR=$* # Description: # Wrapper function for the NodeJS "http-server" command. # # Without any argument, this will start a web server # serving the files in the current directory. # # This command will download and install nodejs, if not # done already, into CW_Tools/tools/javascript/nodejs. # # Usag...
true
36c6701e46d80de183d2df8d3a1d0fd8cf7fd299
Shell
akirchmyer/dotfiles
/.bash_profile
UTF-8
388
3.203125
3
[]
no_license
# .bash_profile # Get the aliases and functions #if [ -f ~/.bashrc ]; then # . ~/.bashrc #fi # Load ~/.extra, ~/.bash_prompt, ~/.exports, ~/.aliases and ~/.functions # ~/.extra can be used for settings you don.t want to commit echo 'Sourced the following files: ' for file in ~/.{exports,functions,aliases,bash_prompt...
true
32dd040f94b395e16c057a426fbef8cdcd8ff7be
Shell
aoanshakov/utils
/scripts/mergetool
UTF-8
199
2.84375
3
[]
no_license
#!/bin/bash tmux has-session if [ ! $? -eq 0 ]; then echo "NO SESSIONS" tmux new else echo "SESSION EXISTS" fi echo "CREATING NEW WINDOW" tmux new-window "ls -la /var/www/html;bash -i"
true
8f100a4ba3d3761c41984be8f8ab27144a348887
Shell
lcd10415/lcdIndividual
/lcdIndividual/shell/echousage.sh
UTF-8
302
2.953125
3
[]
no_license
#!/bin/bash echo "this is a echo test shell" echo "\"this is Escape character\"" readonly name="sssd" echo "$name It is a test" echo -e "OK! \n" echo "this is a echo test" echo -e "OK! \c" echo "this is a echo test " #原样输出字符串,不能进行转义或者变量 echo '"$name\"' echo `date`
true
fb3801d17e6acf4ea4612b9fd280771e7a1283c6
Shell
lodocj/simple-shell-tool
/find-tools/on_jars.sh
UTF-8
400
3.953125
4
[ "Apache-2.0" ]
permissive
#!/bin/sh usage="Usage: on_jars.sh \$jar_folder \$keyword" if [ $# -le 1 ]; then echo $usage exit 1 fi jar_folder=$1 keyword=$2 TMP=/tmp/on_jar cd $jar_folder if [ ! -d "$TMP" ];then mkdir $TMP fi for file in $(ls *.jar) do cp $file $TMP cd $TMP jar -xvf $file | grep -i $2 if [ $? -eq 0 ] ;...
true
318f12ce93755881001d47696c5431b303e03e11
Shell
cosmicc/galaxymediatools
/timesync
UTF-8
465
2.8125
3
[]
no_license
#!/bin/bash source "/opt/galaxymediatools/functions/prechecknl" LOGF="/mnt/storage/video/Incoming/logs/timesync.log" if [ "$HOSTNAME" == "$MSNAME" ]; then log "INFO" "Refreshing Time Server $HOSTNAME..." /usr/bin/ntpq -np &>> $LOGF fi if [ "$HOSTNAME" != "$MSNAME" ]; then log "INFO" "$HOSTNAME is refreshing Time f...
true
baf55707e9dcae4bacd6ea054f1507089c695e72
Shell
hernanmd/minimal-pharo-docker
/dfg
UTF-8
594
3.296875
3
[ "MIT" ]
permissive
#!/bin/bash pharofile="$1" sourcesfile="$2" echo "FROM pierceng/pharovm-alpine:1ea727f WORKDIR /pkg/image COPY $pharofile.image pharo.image COPY $pharofile.changes pharo.changes COPY $sourcesfile $sourcesfile RUN addgroup -g 1099 pharoapp \ && adduser -D -u 1099 -G pharoapp -h /home/pharoapp pharoapp \ && chown -...
true
bfa46ce3508278229edced420c74bd339e01236d
Shell
lokeland/dotfiles
/aliases.zsh
UTF-8
1,035
2.5625
3
[]
no_license
# Shortcuts alias copyssh="pbcopy < $HOME/.ssh/id_rsa.pub" alias reloadshell="source $HOME/.zshrc" alias reloaddns="dscacheutil -flushcache && sudo killall -HUP mDNSResponder" alias ll="/usr/local/opt/coreutils/libexec/gnubin/ls -AhlFo --color --group-directories-first" alias phpstorm='open -a /Applications/PhpStorm.ap...
true
9e9b8725564804d52837895f88ca0f15b0b793ba
Shell
nihildeb/dotfiles
/bash/bash.symlink/alias.sh
UTF-8
1,950
3.171875
3
[]
no_license
#!/usr/bin/env bash alias sl=ls alias la='ls -AF' # Compact view, show hidden alias ll='ls -al' alias l='ls -a' alias l1='ls -1' alias cls='clear' alias ..='cd ..' # Go up one directory alias ...='cd ../..' # Go up two directories alias ....='cd ../../..' # Go up three directories alias -- -='cd -' ...
true
b5d03b223cd8049e9a52cd0a6fa36a9db8aab494
Shell
pinard/paxutils
/tests/c-long.m4
UTF-8
2,268
2.765625
3
[]
no_license
# Long files names in cpio. -*- shell-script -*- AT_SETUP(cpio usual formats with long file names) dnl --------------------------------------- PREPARE(lmix, list-lmix) mkdir unmix AT_CHECK( [cat list-lmix | cpio -o -H newc > archive CPIO_FILTER ], , , [NN blocks ]) AT_CHECK( [cd unmix cpio -idm -H newc < ...
true
5728e52634e68e28a9139304a10a74e1e76b09f4
Shell
Hewlett-Packard-ESS/docker-elasticsearch
/cookbooks/elasticsearch/templates/default/backup_elasticsearch.sh.erb
UTF-8
754
3.484375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash ELASTICSEARCH_URL=localhost:9200/_snapshot/$1 # First try and get the backup if curl --silent $ELASTICSEARCH_URL | grep -q 404; then echo "Backup definition for $1 doesn't exist, creating..." curl -H "Content-Type: application/json" \ -XPUT "$ELASTICSEARCH_URL" \ ...
true
529adb4a9cefff9aa4ecdf376083bacc99763c27
Shell
stuartleeks/devcontainers
/snippets/tools-install/archive/pulumi.sh
UTF-8
179
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash # # This installs 'pulumi' # set -e DIR=$(cd `dirname $0` && pwd) source $DIR/.lib.sh start 'pulumi' curl -fsSL https://get.pulumi.com | sh end 'pulumi' 'version'
true
955bad037b164acd34d8fd3cd76059f18bc7a13b
Shell
lambda2/zsh-backup
/s1/release.sh
UTF-8
507
2.96875
3
[]
no_license
#!/bin/zsh cd $1 git checkout master git merge tests master rm .*.swp rm -rf Tests/ test.sh *.notes tag=`git tag | tail -1 | cut -c 3-` nexttab=`echo "$tag + 1" | bc` echo "Master repo is cleaned..." echo "Ready to publish version $nexttag !" git add . git add -u git commit -m "v$nexttag of project $1 ($2).\nPlease se...
true
e22511d4265a39e52e68fc8649bb8e82ebf2a61f
Shell
kompseye/vagrant-ubuntu-tc
/vagrant/bootstrap.sh
UTF-8
1,479
2.828125
3
[]
no_license
#!/usr/bin/env bash # Install Tomcat 7, Java 8, git, maven # https://dzone.com/articles/vagrant sudo apt-get update # echo "Installing Apache.." # sudo apt-get install -y apache2 echo "Installing Tomcat.." sudo apt-get install -y tomcat7 echo "Installing Tomcat7 docs.." sudo apt-get install -y tomcat7-docs echo "Inst...
true
b45a7299a29edbaa6d6fb13b6f52638d9fbe858f
Shell
jitensinha98/SHELL_SCRIPTING
/file_operation_8.sh
UTF-8
311
3.734375
4
[]
no_license
#! /bin/bash # displays the occured word in the file for all its occurences echo "Enter four file names : " read file1 read file2 read file3 read file4 echo "Enter the word : " read word files=($file1 $file2 $file3 $file4) for file in ${files[@]} do if [ -e $file ] then grep -o "$word" $file fi done
true
b01316f40c4ad0309e56a79aee87f32dd05f4910
Shell
ddzieduch/policat
/docker/php/apache2-foreground-user
UTF-8
1,016
2.921875
3
[ "MIT" ]
permissive
#!/bin/bash set -e if [ ! -z "$PHP_MAIL_FROM" ]; then sed -i "s/john.doe@example.com/${PHP_MAIL_FROM}/" /usr/local/etc/php/conf.d/sendmail.ini fi if [ ! -z "$PHP_MAIL_HOST" ]; then sed -i "s/--host=mail/--host=${PHP_MAIL_HOST}/" /usr/local/etc/php/conf.d/sendmail.ini fi mkdir -p /app/data/upload_tmp mkdir -p /app/...
true
f25695d36d125882f96723dcf76e168c77f842bc
Shell
alik918/esmacoin
/install.sh
UTF-8
1,318
2.90625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash if [ -d "/opt/esmacoin" ]; then # Control will enter here if $DIRECTORY exists. echo "#######################################################################" echo "__________ " echo "\____ /____ ___________ ____ " echo " / // ___\/ _ \_ __ \_/ __...
true
2a1ff5f6e5d82a43b4cf24b0a0da1fd5d81ae777
Shell
majkinetor/redserver
/ansible/roles/docker_redmine/templates/redmine-plugin-rm.j2
UTF-8
471
2.53125
3
[]
no_license
#!/bin/bash # {{ansible_managed}} PLUGIN_NAME=$1 set -e service {{service.name}} stop docker run --name={{service.name}}-plugin-re --link mysql:mysql -it --rm -v /opt/redmine/data:/home/redmine/data \ -e "DB_NAME={{db.name}}" -e "DB_USER={{db.user}}" -e "DB_PASS={{db.pass}}" \ {{service.container}}:{{service.ver...
true
e54e85053b076b2c2730b1ff6b3c91440ff327e7
Shell
achejq/moss18.04
/common/config_sys.sh
UTF-8
4,432
3.28125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash ## set hostname if ! grep '^SET_HOSTNAME' ${INST_LOG} > /dev/null 2>&1 ;then if [ ! -z "${OS_HOSTNAME}" ];then OLD_HOSTNAME=$(hostname) hostnamectl set-hostname "${OS_HOSTNAME}" if [ -n "$(grep "$OLD_HOSTNAME" /etc/hosts)" ]; then sed -i "s/${OLD_HOSTNAME}//g" /etc/h...
true
6d6ebb7e13b77b870a4472ab7d08e987869ed39b
Shell
oceanscape/dotfiles-11
/zsh/.zprofile
UTF-8
411
2.765625
3
[]
no_license
# zsh/.zprofile # Sourced on login shells only # For linux, the Display Manager (e.g. GDM or SDDM) will source this so things # will be available to the desktop env # Sourced after .zshenv and before .zshrc # macOS always starts a login shell. export DKO_SOURCE="${DKO_SOURCE} -> zsh/.zprofile {" if [ -f "/etc/arch-r...
true
482028f030ccba4e5755c767eb427c09d025dbc2
Shell
jp-rodrigues/2020-1
/exercicio_5/q4.sh
UTF-8
318
3.109375
3
[]
no_license
#!/bin/bash for ((i=1; i<=101; i++)); do echo "$[RANDOM%101]" >> num.txt done echo " " echo "$(wc -l num.txt)" echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" echo "segunda versão" for x in $(cat num.txt) ;do soma=$((${soma} + ${x})) echo "${soma}" done
true
d396a36bae4c6c469c74f24fea746f11424908be
Shell
CodeLongAndProsper90/configs
/powercheck.sh
UTF-8
446
3.046875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash unset cat POWER=`cat /sys/class/power_supply/BAT0/capacity` POWER=$(($POWER/1)) if (( $POWER < 3 )) then shutdown +h now elif (( $POWER < 5 )) then notify-send 'Shutting down' 'Power critical, shutting down in 10s' #shutdown -h +10s elif (( $POWER < 10 )) then notify-send 'Power low' 'Shutting down...
true
f00dacaf6863815f14bd54bd3f683a5e3ccfdf60
Shell
BnOncleBen/Morback.sh
/morback.sh
UTF-8
10,250
2.90625
3
[]
no_license
#!/bin/bash A1=0 A2=0 A3=0 B1=0 B2=0 B3=0 C1=0 C2=0 C3=0 Coordonnees="" continu=1 player=1 function Afficher() { i=0 j=0 for ((i=0; i<taille; i++)) do echo generation de la grille done if [ $A1 -eq 1 ] then hg="X" elif [ $A1 -eq 2 ] then hg="O" else hg=" " fi if [ $A2 -eq 1 ] then hm=...
true
c2a34d5349816cc094280939e3ed81b2c320abc1
Shell
ryanwoodsmall/busybox-misc
/httpd/cgi-bin/index.cgi
UTF-8
886
3.21875
3
[]
no_license
#!/usr/bin/env ash #set -x echo "Content-type: text/html" echo "" cat <<HEADER <html> <body style="font-family: monospace;"> HEADER REQUEST_URI="${REQUEST_URI//&*/}" REQUEST_URI="${REQUEST_URI//\?*/}" HTTPDTOPDIR=`dirname ${PWD}` FULLPATH="${HTTPDTOPDIR}${REQUEST_URI}" FULLHOSTURL="http://${HTTP_HOST}" FULLREQ="$...
true
fa572bc4f03b9f2f0d00fcde8d7a3ee9d540628c
Shell
emilio/saltfs
/.travis/setup_salt_roots.sh
UTF-8
239
2.578125
3
[ "MIT", "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env sh set -o errexit set -o nounset setup_salt_roots () { sudo rm -rf /srv/salt sudo mkdir -p /srv/salt sudo cp -r . /srv/salt/states sudo cp -r .travis/test_pillars /srv/salt/pillars } setup_salt_roots "$@"
true
4524145954581f64a852d51bb30fd38dd82eb427
Shell
pgajdos/apache-rex
/mod_proxy-ordering-ProxyPass/run.sh
UTF-8
1,075
2.796875
3
[ "LicenseRef-scancode-other-permissive", "MIT", "NTP", "LicenseRef-scancode-rsa-1990", "LicenseRef-scancode-rsa-md4", "Beerware", "RSA-MD", "HPND-sell-variant", "Spencer-94", "LicenseRef-scancode-zeusbench", "metamail", "Apache-2.0" ]
permissive
# http://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass # 'Ordering ProxyPass Directives' exit_code=0 mkdir -p $AREX_RUN_DIR/htdocs-backend1 echo 'Backend 1' > $AREX_RUN_DIR/htdocs-backend1/index.html mkdir -p $AREX_RUN_DIR/htdocs-backend2 echo 'Backend 2' > $AREX_RUN_DIR/htdocs-backend2/index.html mkdir -...
true
27063bf1db84c41893acb41e3949f12005f6a878
Shell
keegoid-nr/newrelic-lambda-layers
/python/publish-layers.sh
UTF-8
8,670
3.96875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash -x BUILD_DIR=python BUCKET_PREFIX=nr-layers DIST_DIR=dist PY27_DIST=$DIST_DIR/python27.zip PY36_DIST=$DIST_DIR/python36.zip PY37_DIST=dist/python37.zip PY38_DIST=dist/python38.zip REGIONS=( ap-northeast-1 ap-northeast-2 ap-south-1 ap-southeast-1 ap-southeast-2 ca-central-1 eu-central-1 eu-...
true
a2bb37811b18989272f6219c6a76ad83a481348f
Shell
balajipothula/nexus
/setup-nexus.sh
UTF-8
836
3.125
3
[]
no_license
#!/bin/bash # Author : BALAJI POTHULA <balaji.pothula@techie.com>, # Date : 31 August 2016, # Description : Installing nexus on rhel, ubuntu. # https://help.sonatype.com/repomanager2/download#Download-NexusRepositoryManager2OSS sudo yum -y update # installing git java-1.8.0 on ubuntu. # sudo apt -y inst...
true
3fbe5167255f374ebdad3ee4e1cd109f1affc293
Shell
tensult/gcp-automation
/dump-postgres-data.sh
UTF-8
654
3.890625
4
[ "MIT" ]
permissive
if [ -z "$HOST" ] || [ -z "$USERNAME" ] || [ -z "$DATABASES" ] || [ -z $PGPASSWORD ] || [ -z $FOLDER ]; then echo 'Please pass HOST, USERNAME, DATABASES, PGPASSWORD, FOLDER' else IFS=',' read -ra ADDR <<<"$DATABASES" for i in "${ADDR[@]}"; do mkdir -p $FOLDER storePath=$FOLDER'/' fil...
true
6acd9577c21cb8de016a977e6aaf415c6de67da5
Shell
ppc64le/build-scripts
/s/script_js/script-js_rhel_7.3.sh
UTF-8
1,779
3.53125
4
[ "Apache-2.0" ]
permissive
# ---------------------------------------------------------------------------- # # Package : script.js # Version : v2.5.8 # Source repo : https://github.com/ded/script.js # Tested on : rhel_7.3 # Script License: Apache License, Version 2 or later # Maintainer : Priya Seth <sethp@us.ibm.com> # # Dis...
true
5093507cba48d07cd2f2b0ce296b11d1e53b3b55
Shell
SantiagoHerreG/holberton-system_engineering-devops
/0x12-web_stack_debugging_2/100-fix_in_7_lines_or_less
UTF-8
393
2.765625
3
[]
no_license
#!/usr/bin/env bash # Runs nginx as the less privileged nginx user echo "nginx ALL=/etc/init.d/nginx start" >> /etc/sudoers chmod 777 /etc/nginx/nginx.conf sed -i -e 's@include /etc/nginx/conf\.d/\*\.conf@server {\n\tlisten 8080@' -e "s@include /etc/nginx/sites-enabled/\*@listen [::]:8080 default ipv6only=on@" -e 's@^...
true
3eb381336cec7d6684a8d992a8e1301e527f4960
Shell
dgmccain/COP2341_Valencia
/Example Scripts from Classmates/LawnMowing.sh
UTF-8
429
3.453125
3
[]
no_license
#!/bin/bash echo "Should you mow the lawn?" echo "Is it the weekend? (y or n)" read day echo "Is it after 5 pm (y or n)?" read time echo "Is the grass too long? (y or n)" read longGrass echo "Is it sunny outside? (y or n)" read sunny if [[ ( $day == "y" || ( $day == "n" && $time == "y" )) && $longGrass == "y" && $...
true
13da2bd9694e685334acf677e0cb802636dce5dc
Shell
jiayiiiyao/te-detector
/extract-reads.sh
UTF-8
301
3.046875
3
[]
no_license
cluster=$1 shift || { cat <<EOF Usage: $0 pairwise-alignments.maf sequences.fasta > out.fasta Get the FASTA sequences whose names appear in bottom MAF lines. EOF exit } sed 's/^>/> /' "$@" | awk ' BEGIN {while (getline < "'"$cluster"'") a[$1] = 1} /^>/ {i = $1 in a} i ' | sed 's/^> />/'
true
7cb6402d52e8d46d06e3b1d4086ab920a6740ac8
Shell
sidescale/brocade
/v6.3.0/v6.3.0d/SWBD86/preinst
UTF-8
57,495
3.421875
3
[]
no_license
#!/bin/sh # # Copyright (c) 2004-2009 Brocade Communications Systems, Inc. # All rights reserved. # # Description: # # This pre-install script will be run before firmware # download or firmwarerestore starts. It checks the # combination of platform (21=meteor/cp128, 42=saturn/cp256), # chassis...
true
d9e11e45cd640ff6170d8a9f3a0fca7628e535b4
Shell
choelhee/default_env
/bin/kafka/connect-elasticsearch-sink.sh
UTF-8
900
3.484375
3
[]
no_license
#!/bin/sh NAME=elastic-connector HOST=localhost PORT=8083 BIN=curl OPT="-i -X POST -H \"application/json\" -H \"Content-Type:application/json\" $HOST:$PORT/connectors/ -d '{ \"name\": \"${NAME}\", \"config\": { " CURL_CMD="$BIN $OPT $CONTEXT_STR" CONTEXT_STR=( "connector.class=ElasticsearchSinkConnector" "connecti...
true
529f7b0098ac05ba0062d0e65e74a1f859e86dc2
Shell
runninguru/vps_scripts
/vps.sh
UTF-8
4,074
2.953125
3
[]
no_license
#!/bin/bash # set up vim # set up nginx so it can run multiple websites/configurations/etc. # run this before using site_create.sh, or else it won't work. # July 11, 2021 # I still need to change the default nginx conf files to avoid indicating what the default website is. # in the default conf, http conf, and https c...
true
83bb18ac48f3bd5adffc7d43c27545bdbc07b651
Shell
flaviocamilo/mymacos
/dotfiles/shell/functions.sh
UTF-8
2,688
3.390625
3
[]
no_license
#!/usr/bin/env bash brew_cask_upgrade() { for app in $(brew cask list -1 | sort); do auto_updates=$(brew cask cat $app | grep 'auto_updates true') if [[ -z $auto_updates ]]; then info=$(brew cask info $app) latest_version=$(grep "$app: " <<< $info | sed -e "s/$app: //g") installed_version=$(grep "${HOMEB...
true
104a5e8c290291e4f7cd4d081146f3e14eec2566
Shell
Sphonic/drone-images
/_functions.sh
UTF-8
3,382
4
4
[]
no_license
# these function assume that the docker user is exported as an ENV variable DOCKER_USER=${DOCKER_USER:="sphonic"} LOG_DIR=${LOG_DIR:="$(cd $(dirname $(dirname $0)) && pwd)/logs"} ONLY=${ONLY:=""} # function to create Docker images and print out # the result. If image creation fails, we'll print # out the stderr. bui...
true
9567a9d1fb42b4708095181b81ff420377822e1c
Shell
msleprosy/cloud-pipeline
/pipe-cli/build_linux.sh
UTF-8
3,266
2.734375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.com/) # # 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 requ...
true
f7dbf8f7be57c08329cd93d2b3eee8f1636ec3c0
Shell
flanggut/dotfiles
/bashscripts/tm
UTF-8
1,882
4.09375
4
[]
no_license
#!/bin/bash __lower() { echo "$@"|tr "[:upper:]" "[:lower:]" } __menu() { local result="" PS3=$1 shift select opt in "$@" "Cancel"; do if [[ $REPLY =~ ^[0-9]+$ ]] && [[ $REPLY -le ${#options[@]} ]]; then result=$opt break else result="CANCEL" break fi done echo $result } # tmux wrapper # `...
true
8a97a2bed7cc47069d78d65802d345875b93404e
Shell
mengli404/rn-mobile
/bin/ci-android-deploy-setup.sh
UTF-8
1,302
2.765625
3
[]
no_license
#/bin/sh set -e # Install the sdk brew install Caskroom/cask/android-sdk # SDK Built Tools revision, per http://facebook.github.io/react-native/docs/getting-started.html ANDROID_SDK_BUILD_TOOLS_REVISION=23.0.1 # API Level we build with ANDROID_SDK_BUILD_API_LEVEL="23" # Minimum API Level we target, used for emulator im...
true
5ec8b6c2c2ddcd574cbe747dbe9d5c655d9dba4f
Shell
scofieldfan/crawle_dp
/bin/trans.sh
UTF-8
241
3.15625
3
[]
no_license
files=`find ../data/ -name *.csv` echo $files for file in $files do filename=`echo $file|sed 's/\.\.\/data\///'` echo $file echo $filename iconv -f 'utf8' -t 'gb18030' $file > ../output/$filename done tar -zcvf output.tar.gz ../output/
true
983fcafa252f5879bbf7df48603da408a5ab03e1
Shell
fireplacetv/config-files
/.bash_profile
UTF-8
902
2.8125
3
[]
no_license
# Prompt export PS1="\[\033[0;32m\]\h:\w\n\[\033[1;32m\]\u\$ \[\033[0;37m\]" # added by Anaconda3 4.4.0 installer export PATH="/Users/fireplacetv/anaconda/bin:$PATH" # git shortcuts if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi alias glog='git log --oneline -n 10' ...
true
8e48f1a9d0f47c4f84f9b871b3d40f4e7ae41800
Shell
tomnotcat/chinamap
/convert.sh
UTF-8
312
3.0625
3
[]
no_license
#!/bin/sh files=`ls -1` for i in $files; do if [ "$i" != "output" ] && [ "$i" != "convert.sh" ] && \ [ "$i" != "china-old.svg" ] && [ "$i" != "china-new.svg" ] \ && [ "$i" != "README.md" ] && [ "$i" != "svg2swf-0.5.win32.exe.zip" ]; then svg2swf "$i" "output/${i%.*}.swf" fi done
true
ed7823c9774cdeedfb88fd7076be9b7e1836163d
Shell
helincao618/mv-roi
/bdda/predict.sh
UTF-8
690
3.234375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash set -e SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" BDDA_PATH="$SCRIPT_DIR/driver_attention_prediction" DATA_PATH="$SCRIPT_DIR/data" MODEL_PATH="$BDDA_PATH"/pretrained_models/model_for_inference if [ -n "$1" ]; then MODEL_PATH=$(pwd)/$1 fi echo "Clean up old states..." rm -rf "...
true
400e9a7b5caba82c11c2fb9efe43699e533727c3
Shell
hakyimlab/gtex-miscellaneous-processing
/src/vcf_processing/filter_vcf_time_efficient_do_blacklist.sh
UTF-8
4,099
2.8125
3
[]
no_license
#!/bin/bash #PBS -N job_gtex_v8_filter #PBS -S /bin/bash #PBS -l walltime=120:00:00 #PBS -l nodes=1:ppn=1 #PBS -l mem=16gb #PBS -o logs/${PBS_JOBNAME}.o${PBS_JOBID}.log #PBS -e logs/${PBS_JOBNAME}.e${PBS_JOBID}.err #########################################################################################################...
true
02536f051a4a6c6fd614a2431178b94c15d5a16b
Shell
kikulikov/generate-certificates
/generate.sh
UTF-8
5,309
3.796875
4
[]
no_license
#!/usr/bin/env bash set -o pipefail set -eu echo "> Generates self-signed certificates for testing" readonly dir="./certificates" mkdir -p ${dir} readonly ca_key_path="${dir}/rootCA.key" readonly ca_cert_path="${dir}/rootCA.pem" # If you are generating a self signed cert, you can do both the key and cert in one com...
true
00777ec4ad50014c0b374faa71a6744781e4d7cd
Shell
nishanthvasudevan/git-scratch
/t/s2
UTF-8
238
3.28125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash -eu # parse each argument for i in {b,r,B}; do git scratch -$i; case $i in b|B) [ $(git -C scratch branch -a | wc -l) == 2 ] ;; r) [ -d /tmp/scratch.git ] && [ -d scratch ] && [ -d scratch.clone ] ;; esac done
true
81d96fd1cf889c8a00a9427eb6f5a28f8b8f9c80
Shell
kachnu/my_script
/my_anti_tearing.sh
UTF-8
1,546
3.453125
3
[]
no_license
#!/bin/bash KEY=$1 #KEY="-k" if ! [[ -d /etc/X11/xorg.conf.d ]]; then sudo mkdir -p /etc/X11/xorg.conf.d/ fi rm_20conf () { if [[ `ls /etc/X11/xorg.conf.d/20*` ]]; then echo remove all files 20\* sudo rm /etc/X11/xorg.conf.d/20*conf fi } mk_20_nvidia () { echo make 20-nvidia.conf echo 'Section "Device"...
true
e4f87bfb2d9a49701c0be80abbc5eb5568d24010
Shell
Nimuhsis/gravitas
/scripts/run.sh
UTF-8
334
3.5625
4
[]
no_license
#!/bin/bash DIR=$1 EXE=$2 BLUE="\033[0;34m" RESET="\033[0m" if [ -d "./bin/$DIR" ] && [ -f "./bin/$DIR/$EXE" ]; then ./bin/"$DIR"/"$EXE" else echo "Either ${BLUE}${DIR}${RESET} is not a directory or ${BLUE}${EXE}${RESET} is not an executable\n" fi #fl=$1 #fl2=$2 #fl_name="${fl%%.*}" #gcc $@ -o $fl_name -lSDL2 ...
true
13e9a451cac0921d90417918000556edbe3bbec0
Shell
stiftungswo/Dime
/.docker/rootfs/entrypoint.sh
UTF-8
1,606
3.328125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # setup composer install # dev environment config cp ./app/config/parameters.yml.dist ./app/config/parameters.yml /var/www/html/env/install_bundles.sh # /var/www/html/env/pub_get.sh # update supervisor configuration if [ -f /var/www/html/.docker/supervisord.conf ]; then cp /var/www/html/.docker...
true
31b7de80b27bb1a70b09834cc2ac4f2508b9b813
Shell
Goldob/CarND-Vehicle-Detection
/download_data.sh
UTF-8
500
3.453125
3
[ "MIT" ]
permissive
#!/bin/bash DATA_DIR="data" # Create data directory if it doesn't exist yet if [ ! -d "$DATA_DIR" ]; then mkdir $DATA_DIR fi # Download zip archives wget https://s3.amazonaws.com/udacity-sdc/Vehicle_Tracking/vehicles.zip -P $DATA_DIR wget https://s3.amazonaws.com/udacity-sdc/Vehicle_Tracking/non-vehicles.zip -P $DA...
true
5435f284d60a1bb5f94aefe72d05a30ed1569a41
Shell
caledios/Shell
/environment/functions.sh
UTF-8
16,856
3.5
4
[]
no_license
#=============================================================================== # Productivity and Support functions: # ------------------------------------------------------------------------------ # - Quick automation tools and shortcuts. # - Could be optimised or written more elegantly in some cases. #=============...
true
438d93db26dc7253dff683683d3c9340c122fd90
Shell
erf/serenity
/Ports/libmodplug/package.sh
UTF-8
803
2.6875
3
[ "BSD-2-Clause" ]
permissive
#!/usr/bin/env -S bash ../.port_include.sh port=libmodplug version=0.8.9.0 useconfigure=true use_fresh_config_sub=true configopts=("ac_cv_c_bigendian=no") files="https://download.sourceforge.net/modplug-xmms/libmodplug-${version}.tar.gz libmodplug-${version}.tar.gz 457ca5a6c179656d66c01505c0d95fafaead4329b9dbaa0f997d00...
true
d47f40dc36788ce12b832c766ad9cf671d5cc4d5
Shell
frf-ai/cluster.dev
/bin/aws_minikube.sh
UTF-8
4,549
3.375
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # shellcheck source=logging.sh source "$PRJ_ROOT"/bin/logging.sh source "$PRJ_ROOT"/bin/common.sh ####################################### # Pull a kubeconfig to instance via kubectl # Globals: # CLUSTER_FULLNAME # Arguments: # None # Outputs: # Writes progress status ########################...
true
a440bc997e495b22cfe140d43498fd68a4a18710
Shell
andrejumeahu/my-otsdaq-demo
/tools/start_ots.sh
UTF-8
1,687
3.59375
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash if ! [ -e setup_ots.sh ]; then kdialog --sorry "You must run this script from an OTSDAQ installation directory!" exit 1 fi Base=$PWD #commenting out unique filename generation # no need to keep more than one past log for standard users #alloutput_file=$( date | awk -v "SCRIPTNAME=$(basename $0)" '{pr...
true
cf34ea742d104b2ff5bc294b88387c0934e5045f
Shell
temoon/notumwars
/install.sh
UTF-8
260
2.703125
3
[]
no_license
#!/bin/sh DIR=$(dirname ${0}) echo -n "Installing ..." python ${DIR}/setup.py build >/dev/null && python ${DIR}/setup.py install >/dev/null && python ${DIR}/setup.py clean >/dev/null && rm -rf ${DIR}/build >/dev/null && echo " Done!" && exit 0 || exit 1
true
4971477fe7590a9555eacd7c94a39cc894254e95
Shell
0x00-0x00/shell_scripts
/to-do.sh
UTF-8
890
3.78125
4
[ "MIT" ]
permissive
#!/bin/bash # Shell script to add a To-Do at the conky script Black Pearl # ------------------- written by zc00l user_name=$(cat /etc/passwd | grep $(id -u) | grep -oP '[a-zA-Z0-9]+(?=:x)') todo_file="/home/$user_name/.todo/todo.txt" # Check if file exists. if [[ ! -e "$todo_file" ]]; then echo "[!] To-do file doe...
true
114bd789f49832519c61ab586396916ea70ae334
Shell
schalox/bwman
/bwman
UTF-8
18,316
3.640625
4
[]
no_license
#!/bin/bash # bwman # Copyright (C) 2012 schalox # # 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 the Free Software Foundation; version 2 # of the License. # # This program is distributed in the hope that it will be useful...
true
1c4e2f97da0c685af4baaab20535a285a9156c86
Shell
online-go/world-flags-sprite
/scaling_script.sh
UTF-8
299
2.78125
3
[ "MIT" ]
permissive
for i in $(basename -s .png *.png); do convert ${i}.png -scale 32x32 ${i}2.png convert ${i}2.png -background none -gravity center -extent 32x32 ${i}32.png convert ${i}.png -scale 16x16 ${i}2.png convert ${i}2.png -background none -gravity center -extent 16x16 ${i}16.png rm ${i}2.png done
true
2346efb44f76a7b06af6b69d0a34983a760ed8cf
Shell
xe2io/moto-openconnect
/run_openconnect
UTF-8
924
3.09375
3
[]
no_license
#!/bin/bash OPENCONNECT_IMG="openconnect:moto" # Assumes openconnect image is built as $OPENCONNECT_IMG # Volume mount SSH public key for tunneling to /motoremote.pub # or directly map /root/.ssh/authorized_keys (with correct permissions) # Can use sshd as a SOCKS proxy; example SSH config: #Host motoremote # Host...
true
7f7f27257a6fb0b3ec60dbb8f8d50dcd9ac2c46e
Shell
fuzzm/fuzzm-project
/benchmarks/LAVA-native/base64/coreutils-8.24-lava-safe/tests/misc/sort-compress-proc.sh
UTF-8
2,713
3.5625
4
[ "GPL-3.0-or-later", "LGPL-2.0-or-later", "GPL-3.0-only", "GFDL-1.3-or-later", "Apache-2.0" ]
permissive
#!/bin/sh # Test use of compression subprocesses by sort # Copyright (C) 2010-2015 Free Software Foundation, Inc. # 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 # the Free Software Foundation, either version 3 of the Licens...
true
7ccc3de8d2c73d3bc4d88c42e2491684de3816f0
Shell
pswietojanski/pylearn2kaldi
/nnet-py2/align.sh
UTF-8
3,852
3.078125
3
[]
no_license
#!/bin/bash # Begin configuration section. nj=4 cmd=run.pl stage=0 # Begin configuration. scale_opts="--transition-scale=1.0 --acoustic-scale=0.1 --self-loop-scale=0.1" beam=10 retry_beam=40 ctx_win=5 do_splicing=false align_to_lats=false # optionally produce alignment in lattice format lats_decode_opts="--acoustic...
true
5eeed5688e64fc336530d91a5f27c483ef6df951
Shell
NASARace/race
/script/clbench
UTF-8
261
3.0625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash DIR="$(dirname ${BASH_SOURCE[0]})" SCRIPT=$DIR/../race-cl-test/target/universal/stage/bin/benchmarks if [ -x $SCRIPT ]; then $SCRIPT -main gov.nasa.race.cl.Benchmarks $@ else echo "script $SCRIPT does not exist, run sbt race-cl-test/stage" fi
true