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
9120bd5ac2f3e875a5409e677ad0257f4a6025af
Shell
RafiKueng/ScienceCloudSetup
/backup_old_approach/settings/networks.sh
UTF-8
882
3.125
3
[]
no_license
#!/bin/bash # # This script sets the IDs of the networks already created in openstack gui # echo "GET NETWORK NAMES" # get already created networks echo " > internal network" NETWINT=`openstack network list -f value | grep net_internal | cut --delimiter " " --fields 1` SNETINT=`openstack subnet list -f value | grep ...
true
305cd56caf579373ee2f29e66a12087c33fb152d
Shell
EnginesOS/ServiceImageBuilds
/images/03.ServiceImages/pgsql/home/engines/scripts/configurators/set_db_master_pass.sh
UTF-8
304
2.59375
3
[]
no_license
#!/bin/sh . /home/engines/functions/checks.sh required_values="db_master_pass" check_required_values if test -n $db_master_pass then db_master_pass=`echo $db_master_pass|sed "/'/s///g"` echo "alter user rma with PASSWORD '$db_master_pass';" | psql postgres postgres fi
true
1a90710b8538ffdea4117c3f71205aed68d7ae3c
Shell
kaiwan/usefulsnips
/pidshow.sh
UTF-8
5,108
3.890625
4
[ "MIT" ]
permissive
#!/bin/bash # pidshow # # Shell Script. # # Primary objective: # Display useful info about the process. # Uses procfs to get (most of) the info. # # Author(s): # (c) 2012 Kaiwan NB # # URL: # http://kaiwantech.wordpress.com/2012/02/23/exploring-linux-procfs-via-shell-scripts/ # MIT License. name=$(basename $0) #...
true
e9c16601b631caeb270c27bec19581c29e4691ee
Shell
spoterianski/Ignat
/sh-examples
UTF-8
833
4.15625
4
[]
no_license
#!/bin/sh -eu # -e stops if some command returned non-zero # -u stops if used unset variable msg() { echo "$@"; } die() { echo "build: $*" >&2; exit 1; } len() { echo $OPTIONS | wc -w } at() { echo $1 | awk -v i="$2" '{print $i}' } # integer cycle for (( i = 1 ; i <= `len $OPTIONS`; i++ )); do ...; done; ...
true
b08dc457bacc74cf671406ebe1151fa8b6e1197c
Shell
eyantra/cs308_2014
/cs308_2014_TU02_Smart Greenhouse/Code/SmartGH-master/cameramon/cameramon-svc.sh
UTF-8
578
3.109375
3
[ "Unlicense", "MIT" ]
permissive
#!/bin/bash RESTART_DELAY=0.5 CAMERAMON_OUT_PATH="/var/log/cameramon" rm -rf "$CAMERAMON_OUT_PATH" mkdir -p "$CAMERAMON_OUT_PATH" function on_exit { kill 0 } trap on_exit EXIT while :; do nice -5 fswebcam --resolution 640x480 --skip 1 --loop 1 --quiet \ --banner-colour "#FF000000" --lin...
true
0931342802d047fea8bbadf621fbd7c9dfcc7011
Shell
azzahamdani/CHFA-questions
/Question1/verifymyresult.sh
UTF-8
1,552
3.5625
4
[]
no_license
#!/bin/bash echo -e "Checking Objectives..." OBJECTIVE_NUM=0 function printresult { ((OBJECTIVE_NUM+=1)) echo -e "\n----- Checking Objective $OBJECTIVE_NUM -----" echo -e "----- $1" if [ $2 -eq 0 ]; then echo -e " \033[0;32m[COMPLETE]\033[0m Congrats! This objective is complete!" else echo -e...
true
56ffc3ef0d0d27285e0c073c2d7d5e39d88e5889
Shell
ericdweise/notes
/build.sh
UTF-8
690
3.765625
4
[]
no_license
#!/bin/bash set -e function convert { INFILE=$1 OUTFILE=$(echo $INFILE | sed -r 's/.md/.html/') echo "$INFILE ---> $OUTFILE" echo '<!DOCTYPE html>' > $OUTFILE echo '<html lang="en">' >> $OUTFILE cat assets/parts/head.html >> $OUTFILE echo '<body>' >> $OUTFILE cat assets/parts/header.ht...
true
06781a5bba01db8f638d8ba13762c513d7861435
Shell
skanev/dotfiles
/setup/packs/ranger
UTF-8
454
3
3
[]
no_license
#!/usr/bin/env zsh source setup/shared install-pack() { mkdir -p ~/.config/ranger/plugins if [[ ! -d ~/.config/ranger/plugins/ranger_devicons/.git ]] ; then git clone https://github.com/alexanderjeurissen/ranger_devicons ~/.config/ranger/plugins/ranger_devicons fi (cd ~/.config/ranger/plugins/ranger_dev...
true
b03efc19af08e667642dff1ce5c62f6403735d09
Shell
xakep666/build
/core/tasks/edk2-common.sh
UTF-8
5,040
2.578125
3
[ "Apache-2.0" ]
permissive
# # Copyright (C) 2016 The EFIDroid Project # # 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...
true
ec79e4c89dbb13f371e0c3204cc4309729143bb6
Shell
iocraft-org/IO-Portal
/start.sh
UTF-8
1,210
2.890625
3
[]
no_license
#!/bin/bash cd "$(dirname "$0")" rm -rf logs/*.gz #DISCORD=$(cat ~/.discord_token) #WP_USER=$(cat ~/.wp_username) #WP_PASS=$(cat ~/.wp_password) MYSQL_DATABASE=$(cat ~/.mysql_database) MYSQL_USERNAME=$(cat ~/.mysql_username) MYSQL_PASSWORD=$(cat ~/.mysql_password) MYSQL_HOSTNAME=$(cat ~/.mysql_hostname) #IRC_PASSWORD=$...
true
69a31238b200333edc6464159bca36e0e89f8c66
Shell
andresgalaz/asegurarte
/sync.sh
UTF-8
1,196
3.234375
3
[]
no_license
#!/bin/bash function vamos(){ # Busca Canbios, arma comandos para ftp find . -type f -cnewer sync.ctrl ! -name '*.*~' -a ! -name rsync_lis -a ! -name sync.ctrl | awk '{print "put -z " substr($0,3) " " substr($0,3);}' > rsync_lis # Si hay cambios se sincroniza if [ -s rsync_lis ] ; then echo Inicio sincronizando ...
true
2227a03058c79812faafa2a97f50ab154ce71e39
Shell
dmitry12/dotfiles-old
/bin/rename-component
UTF-8
842
3.96875
4
[]
no_license
#!/bin/bash # Usage # $ rename-component OldName NewName COMPONENT_NAME=$1 NEW_COMPONENT_NAME=$2 COMPONENT_PATH=$(find public-src -iname "$COMPONENT_NAME.*") NEW_COMPONENT_PATH=$(echo $COMPONENT_PATH | sed "s/$COMPONENT_NAME/$NEW_COMPONENT_NAME/") echo echo -e "\e[92mI will move\e[0m" echo -e "\e$COMPONENT_PATH -> ...
true
88e822c95fd38ba58d2a3c15dcf0dea12dd07150
Shell
alexQch/vimPlugins
/backup/picasa-hook-filemanager.sh~
UTF-8
1,316
3.5625
4
[]
no_license
#!/bin/bash #---------< Hook File >------------------------------------------------------ # # Picasa 'Hook' file to allow Picasa to be more closely # integrated with your desktop. # # Picasa tries to integrate nicely with the Linux desktop where # and when it can. However, Linux does not have standard or #...
true
8a6f76aba5826d7ce5ed469cbc2bb878e5ab1b30
Shell
eg15/pfsense-to-influxdb
/pfsense_to_influxdb_lan.sh
UTF-8
324
3.296875
3
[]
no_license
#!/bin/sh case "$1" in start) /root/bin/pfsense_to_influxdb -u http://1.2.3.4:8086 -d office_lan -n 192.168.0.0/16 -i igb0 >/dev/null 2>&1 & ;; stop) ppid=`pgrep -d, -f pfsense_to_influxdb` [ -n "$ppid" ] && /bin/pkill -P $ppid rate ;; *) echo "Usage: `basename $0` {start|stop}" >&2 exit 1 ;; esac exi...
true
8436793250c9d3acf9688d8abda843ff3878c3b6
Shell
skiv71/BMSLink-core
/com/dev-path
UTF-8
363
3.421875
3
[]
no_license
#!/bin/bash # args sn=$1 type=$2 # initialise path=$(bms-temp) table=devices # check [ -n "$path" ] && [[ $# -ge 1 ]] || exit 1 # main if [ -n "$type" ]; then path+=/$type/$sn echo $path else if chk-int $sn; then bms-sql SELECT path FROM $table where id=\"$sn\" 2>/dev/null else bms-sql SELECT path FROM $tab...
true
fde8261931bfe2a38b9826c6d7b56c569348c84d
Shell
H1d3r/quiver
/scripts/dns-reverse-brute.zsh
UTF-8
433
3.171875
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh ############################################################# # dns-reverse-brute ############################################################# #[[ -z $1 ]] && echo -e "[!] Missing argument.\nUsage: zsh $0 <file>" && exit cat $1 | while read domain; do if host -t A "$domain" | awk '{print $NF}' |...
true
d3a71617fd51b25703e28a6f9ce43ffef7bf24ec
Shell
sdevriend/Student-Portfolio
/NGS-Pipeline/BGSE-NGS-Pipeline.sh
UTF-8
1,377
3.578125
4
[]
no_license
#!/bin/bash # Additional information: # ======================= # Dit script roept alle losse scripts aan die # nodig zijn om paired end fastq bestanden om te analyseren, # te trimmen, te mappen en daarna te converteren aan. # # Het script heeft een run naam nodig en 2 fastq bestanden. if [ "$1" = "--h" ] || [ "$1" =...
true
b35ff4ab89b0ee6ead828db64b1a4182d487496a
Shell
openhoat/vagrant-puppet-http-client-cert-sample
/bin/include/functions
UTF-8
138
2.890625
3
[]
no_license
#!/usr/bin/env bash function evalTemplate { TEMPLATE_FILE=$1 RESULT_FILE=$2 eval "cat << EOF $( < $TEMPLATE_FILE) EOF " > $RESULT_FILE }
true
c05a860d330ca7815668cc87e827009b0fb25022
Shell
mobileink/aama-data
/bin/fuget.sh
UTF-8
641
3.515625
4
[]
no_license
#!/bin/bash # usage: fuget "dir" # examples: # aama/$ tools/fuget "data/*" -- gets everything # aama/$ tools/fuget "data/alaaba" -- gets only alaabe # aama/$ tools/fuget "data/alaaba data/burji data/coptic" -- gets all 3 datasets # aama/$ tools/fuget "schema" -- gets all 3 datasets # cumulative logfile wr...
true
491ea1b311e578a2096dca9082c9512a13262575
Shell
hades13/apv5sdk-v15
/apv5sdk-v15/autelan/base-files/files_cavium/usr/sbin/set_channel_auto
UTF-8
527
3.40625
3
[]
no_license
#!/bin/sh IWCONFIG=/usr/sbin/iwconfig IWLIST=/usr/sbin/iwlist IFCONFIG=/sbin/ifconfig flag=0 vapname="ath0" if [ ! -z $2 ];then flag=$2 fi if [ ! -z $1 ];then vapname="${1}" fi ${IFCONFIG} ${vapname} down if [ 0${flag} -eq 0 ];then ${IWCONFIG} ${vapname} channel auto else lineno=`${IWLIST} ${vapname} channel |...
true
418cf5cc221c542052651017b0afdcc1f7240865
Shell
AsciiShell/hse_os_course
/build.sh
UTF-8
215
3.390625
3
[]
no_license
RED='\033[0;32m' NC='\033[0m' # No Color base=$PWD for file in `find . -type f -name main.sh` do abspath="$(realpath "${file}")" echo -e "${RED}${file}${NC}" cd "$(dirname "${file}")" sh $abspath cd $base done
true
fa09ece18744d9c4f8db258cc73bb102f4df22a6
Shell
AOV-Team/aov-py-backend
/scripts/install_redis.sh
UTF-8
267
2.53125
3
[]
no_license
#!/usr/bin/env bash echo "Installing Redis 3.0.7" cd ~vagrant echo wget http://download.redis.io/releases/redis-3.0.7.tar.gz echo tar xzf redis-3.0.7.tar.gz echo cd redis-3.0.7 echo make sudo make install sudo echo utils/install_server.sh echo "Done installing Redis"
true
7a5a7a2026f87d2277e7c8c2092e8a69ac0a0a44
Shell
pkhdipraja/slurk
/scripts/create_room_with_layout.sh
UTF-8
765
3.796875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # create a slurk room with TOKEN, NAME and LABEL, and LAYOUT # TOKEN: typically the $ADMIN_TOKEN # NAME: an identifier, typically in snake_case # LABEL: a string name, must be enclosed in quotes if it contains whitespace # LAYOUT: an id that was assigned by push_room_layout.sh, e.g. 2 TOKEN=$1 NAME=$2 LAB...
true
ee77714cabd719d44c19609c930a1f8b87f3b81b
Shell
robenkleene/Dotfiles
/install/files/link_user_brew.sh
UTF-8
1,411
4.0625
4
[]
no_license
#!/usr/bin/env bash set -euo pipefail # Anything that's used as a shell needs a absolute path that's not specific to # one username default_brew_bin=/usr/local/bin if [[ ! -e "$default_brew_bin" ]]; then sudo mkdir -p "$default_brew_bin" elif [[ ! -d "$default_brew_bin" ]]; then echo "$default_brew_bin exists bu...
true
77c7ae5f443f58e20a51e1c87b942a5d11446d9e
Shell
edeno/release_pypi_conda
/upload_to_conda.sh
UTF-8
301
2.578125
3
[]
no_license
#!/bin/sh CONDA_DIR=~/miniconda3 PACKAGE=$1 VERSION=$2 USER=${3:-edeno} conda skeleton pypi $PACKAGE --version $VERSION --noarch-python conda-build $PACKAGE --no-anaconda-upload anaconda upload $CONDA_DIR/conda-bld/*/$PACKAGE-$VERSION*.tar.bz2 -u $USER --skip rm -r $PACKAGE conda build purge-all
true
199f3a71a90ecbfb3cebd0cb278d09bf18ef2050
Shell
vojtad/heroku-buildpack-vendorbinaries
/bin/compile
UTF-8
2,541
3.984375
4
[]
no_license
#!/bin/bash BUILD_DIR="$1" CACHE_DIR="$2" VENDOR_DIR="$BUILD_DIR/vendor" PROFILE_D_DIR="$BUILD_DIR/.profile.d" indent() { sed -u 's/^/ /' } fail() { echo "$1" | indent >&2 exit 1 } echo "-----> Found a .vendor_urls file" # Bail early but noisily if [ ! -s $1/.vendor_urls ]; then echo ".vendor_urls e...
true
3cc89b0862d3c8d3d809b5e8b5d06d528afff8ea
Shell
mikaelkall/OSCP-cheat-sheet
/post/privesc/linux/unix-privesc-check-master/lib/checks/world_writable
UTF-8
1,678
3.546875
4
[]
no_license
#!/bin/sh # $Revision$ # # 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 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope tha...
true
73619b75420b1b19c6145637bc103e0faf82d343
Shell
MikeRena77/sdlw
/SQL/archiveCMEW_Original_AIX_Scripts/installDB4.sh
UTF-8
842
3.890625
4
[]
no_license
#!/bin/sh # Database Server Setup Script 4 of 4 # ################################################################### # # During installation, this script is called with the following: # CMEW_DB_TABLE_OWNER - CMEW DB Table owner name # CMEW_DB_TABLE_OWNER_PASS - CMEW DB Table owner password # # #...
true
de9a9dacd662fedbd31115b574e5e7c9fde522a6
Shell
Schnitzel/lagoon
/services/api-db/rerun_initdb.sh
UTF-8
139
2.765625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh INITDB_DIR="/docker-entrypoint-initdb.d" for sql_file in `ls $INITDB_DIR`; do mysql --verbose < "$INITDB_DIR/$sql_file" ; done
true
79e6b7b86da7e59648545650744f7c50293644da
Shell
KristijanL/zpscan
/zpscan.sh
UTF-8
6,894
4.21875
4
[]
no_license
#!/usr/bin/env bash # Scan pool for failed disks and light failure LED # Should work with Supermicro SAS2 backplanes, unknown if it will work in other environments # works with SAS2008 and Dell R720 # https://github.com/danb35/zpscan # Possible failure conditions: # -Unable to detect the correct LED if a failure happe...
true
0960bc0fbe8e47d8de25c3d1265342f2f2970412
Shell
particleman314/RunHarness
/build_prereqs/build_jq.sh
UTF-8
3,709
3.46875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash ############################################################################### # Copyright (c) 2018. All rights reserved. # Mike Klusman IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A # COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS # ONE POSSIBLE IMPLEMENTATIO...
true
7c06cd4059dbeca8f5bfc860989a3b65828eefdd
Shell
MichalMaruska-TomTom/mmc-shell
/bin/average-value
UTF-8
1,133
3.015625
3
[]
no_license
#! /bin/bash # this puts a program/macro into register `r' and the program invokes itself! # it invokes "program in r" when the stack is still more than 1 # file=times.pure # with precision 9 # register a ... count # register r ... macro # # $file exec dc --file=- --expression='9k 1sa [+1 la+sa z1<r]sr z1<r la ...
true
efe35adc5fff41886e6269f1a4d6e71a13e60946
Shell
facebook/flipper
/scripts/install-dependencies.sh
UTF-8
704
3.328125
3
[ "MIT" ]
permissive
#!/bin/sh # Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. set -e main () { local -r THIS_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) ROOT_DIR=$(cd "$THIS_DIR" && hg root) sour...
true
e2a23fad5e3809848b4ac5250781130058959f21
Shell
zachlambert/zarduino
/tools/flash
UTF-8
529
3.484375
3
[]
no_license
#!/bin/sh if [ $# != 1 ]; then echo "Usage: tools/flash [example name]" echo "This will flash [example name].elf onto the device after converting to a hex file." exit 1 fi name=$1 cd build/examples if [ ! -e $name.elf ]; then echo "File $name.elf couldn't be found" exit 1 fi avr-objcopy -j .text -...
true
6c694c5a802263659810eb4cdbcd8401ae4ef883
Shell
billwanjohi/dotfiles
/chezmoi-home/run_onchange_emacs.sh.tmpl
UTF-8
1,264
3.09375
3
[]
no_license
#!/usr/bin/env bash set -Eeuxo pipefail {{ if eq .chezmoi.os "darwin" -}} if ! [ -x "$(command -v brew)" ] then sudo chown "$(whoami)":admin \ /usr/local/share/zsh \ /usr/local/share/zsh/site-functions /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install....
true
7585ca53ec49e617a73e5ca15372adc47ac5b180
Shell
ryankschott/Best_Transcript_Set_Updated
/blastp_split.sh
UTF-8
1,022
3.578125
4
[]
no_license
#Splits the database into pieces based on the number of CPUs you specify and then runs hmmscan on each piece similtaneously #Usage: bash blastp_split.sh <CPUs> <BLAST Database> <Peptides_fasata> CPUS=$1 REF=$2 PEP=$3 PEPNAME=$(basename "${PEP%.*}") PEPEXT=$(basename "${PEP##*.}") i="0" ii="00" echo "Using "$CPUS" CPUS...
true
644df72dae31c23550357615a4cda6148852c791
Shell
GaelGuegan/project_euler
/tools/add_problem.sh
UTF-8
639
3.578125
4
[]
no_license
#!/bin/bash NUM=$1 dir=src/problem_$NUM tmp=$(mktemp) readme=$dir/README.md mkdir "$dir" cp tools/template.h "$dir"/problem_"$NUM".h cp tools/template.cpp "$dir"/problem_"$NUM".cpp cp tools/template.CMakeLists.txt "$dir"/CMakeLists.txt sed -i 's/NUM/'"$NUM"'/' "$dir"/problem_"$NUM".* curl https://projecteuler.net/...
true
b1dfaeed17c4a61fe36ddf957400e1669c91f8aa
Shell
FrancisTurner/pi-gen-docker
/stage2_01-sys-tweaks_files_boot2net.sh
UTF-8
457
2.984375
3
[ "BSD-3-Clause", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
#!/bin/bash echo "boot2net running" >/tmp/t.t # Remove old config if there was one /bin/sed '/Config.*netcfg\.txt/,$ d' -i /etc/dhcpcd.conf # Add identifier to start of new config, then copy in the config removing any windows CRs echo "#Config from /boot/netcfg.txt" >>/etc/dhcpcd.conf /bin/sed 's/\r//g' /boot/netcfg....
true
bbc1953e87f4afe6103d6fe1320eb01ec1a61c2d
Shell
aspiers/pim
/bin/sync-org-mobile
UTF-8
1,284
3.046875
3
[]
no_license
#!/usr/bin/env zsh # Does org-mobile-push from ~/org/mobile via tramp+scp to the remote # directory. # # For org-mobile-pull, emacs reads from and writes to the remote # mobileorg.org inbox directly via tramp so no rsync is required. # Any new items captured via the Android app will then appear locally # in the file d...
true
48853e1b775a3e046ad6c91999140946beae6738
Shell
SuzyWu2014/coprhd-controller
/tools/tests/export-tests/sghelper.sh
UTF-8
4,057
3.546875
4
[]
no_license
#!/bin/sh # # Copyright (c) 2015 EMC Corporation # All Rights Reserved # # # Quick verification script # # Usage: ./sghelper.sh <SID> <NAME_PATTERN> <NUMBER_OF_MASKING_VIEWS> <NUMBER_OF_LUNS_EXPECTED> <POLICY_NAME> # # set -x # First parameter is the Symm ID SID=$1 shift # Subsequent parameters: MaskingView Name, Nu...
true
7984453b16741bb8f9733e75201091e6f9285988
Shell
metanoia1989/shellStudy
/CoreProgramming/chapter01_flying/calc.sh
UTF-8
1,328
3.671875
4
[]
no_license
#!/bin/bash # Shell 算术运算 # 计算 1 + 2 + 3...+n的和,可以使用n*(n+1)/2 公式快速计算结果 read -p "请输入一个正整数:" num sum=$[num*(num+1)/2] echo -e "\033[32m$num以内整数的总和是:$sum\033[0m" # 使用三角形的底边和高计算面积:A=1/2 * bottom * height read -p "请输入三角形底边长度:" bottom read -p "请输入三角形高度:" height A=$(echo "scale=1;1/2*$bottom*$height" | bc) echo -e "\033[32...
true
4da9366508fcde41a50b1b82dc513f7d83c981db
Shell
seniocaires/c3270-web
/cron/limpar-processos.sh
UTF-8
646
3.484375
3
[]
no_license
#!/bin/bash # max time in minutes MAXTIME=10 OLDIFS=$IFS IFS=' ' for i in `w | sed '1,3d' | awk '{ print $2,$5 }' | sed 's/:.*$//' | sed -e '/^.*[0-9]s$/d'`; do idletime=`echo $i |awk '{ print $2 }'` if [ $idletime -gt $MAXTIME ]; then TTYTOKILL=`echo "$i" | awk '{print $1}' | sed 's/^.*\///'...
true
88760b2d54c67be82d9d932ff24de0f60ce98233
Shell
Weltraumschaf/shell-scripts
/src/create-random-files.sh
UTF-8
287
3.703125
4
[ "Beerware" ]
permissive
#!/usr/bin/env bash set -eu COUNG="${1:-10}" CWD=$(pwd) echo "Creating $COUNG files in $CWD ..." for n in $(seq 1 $COUNG); do filename="${CWD}/file$( printf %03d "$n" )" kbytes=$(shuf -i 1-1024 -n 1) dd if=/dev/urandom of="$filename" bs=1 count=$(( kbytes * 1024 )) done
true
0487bd4770ff5757eeb955f2dfc92f360f225ca5
Shell
Deva88/flip-coin-combination-simulation
/flip-combination.sh
UTF-8
329
3.171875
3
[]
no_license
#!/bin/bash H=0 T=0 count=10 declare -A coinCombination for ((i=1; i<=10; i++)) do flip=$((RANDOM%2)) if [ $flip -eq 0 ] then ((H++)) else ((T++)) fi done coinCombination["H"]=$(($(($H*100))/$count)) coinCombination["T"]=$(($T*100/count)) echo "percentage of Heads Tails :" ${coinCombinat...
true
7c8e0cd519b489ae500995dd69121bef54661338
Shell
yujiansong/shell
/test-shell/sh16.sh
UTF-8
220
3.171875
3
[]
no_license
#!/bin/bash #Program: # Use id, finger command to check system account's information. #History # 2016/11/14 yujiansong users=$(cut -d ':' -f1 /etc/passwd) for username in $users do id $username finger $username done
true
fde5728b6c0610b96e5b9a76b473dd5863f1abe8
Shell
cstyan/dotfiles
/scripts/install-rofi.sh
UTF-8
982
2.890625
3
[]
no_license
ROFI_VER=rofi_1.4.2-1 ROFI_DEB="$ROFI_VER"_amd64.deb ROFI_URL=http://launchpadlibrarian.net/344694647/"$ROFI_DEB" libxkb_url=http://launchpadlibrarian.net/337252168/libxkbcommon0_0.7.1-2_amd64.deb libxkb_common_url=http://launchpadlibrarian.net/337252162/libxkbcommon-dev_0.7.1-2_amd64.deb libxkb_x11_url=http://launchp...
true
5e26ec7c6317d80d8911ad3a29d16b76172f7c22
Shell
robjmberry/arch-bspwm
/000-use-all-cores-makepkg-conf-v4.sh
UTF-8
354
2.609375
3
[]
no_license
#!/bin/bash # credits to Soehub # https://gist.github.com/soehub/fc07b86e2292c562328ee0dc2aadf740 set -e numberofcores=$(grep -c ^processor /proc/cpuinfo) sudo sed -i 's/#MAKEFLAGS="-j2"/MAKEFLAGS="-j'$(($numberofcores+1))'"/g' /etc/makepkg.conf; sudo sed -i 's/COMPRESSXZ=(xz -c -z -)/COMPRESSXZ=(xz -c -T '"$numberofc...
true
4ff02325bdeede3e2fa5409c472056819a976fc4
Shell
jeyronangulocascante/backend
/scripts/aws-cognito-auth.sh
UTF-8
3,334
3.65625
4
[]
no_license
#!/bin/bash # ------------------------------------------------------------------ # -- AWS User Pool Authenticator # -- # -- Requires: # -- aws-cli # -- # -- @author Pablo Viquez <pviquez@pabloviquez.com> # ------------------------------------------------------------------ SELF_SCRIPT_PATH="$( cd "$( dirname "${BASH...
true
617a329d2d107ed3392d604cef177a2f304ba560
Shell
jocelyn/dev_tools
/svnsync/set_mirror_uuid
UTF-8
210
2.75
3
[]
no_license
#!/bin/sh DEST="$1" UUID=$2 DEST_TMP="$1.tmp" echo SVN-fs-dump-format-version: 2 > $DEST_TMP echo "" >> $DEST_TMP echo UUID: $UUID >> $DEST_TMP svnadmin load --force-uuid `pwd`/$DEST < $DEST_TMP rm $DEST_TMP
true
d138eda37fd9761378919720cf8310ce78cd17fa
Shell
kabenke/Very-High-Speed-Integrated-Circuit-Hardware-Description-Language
/U3/L/3.1.2/fa_tb.sh
UTF-8
788
3.265625
3
[]
no_license
#!/bin/bash name="fa_tb.vhdl" nam="fa_tb" ghdl -s $name if [ $? -eq 0 ]; then echo Syntax-check OK ghdl -a $name if [ $? -eq 0 ]; then echo Analyse OK ghdl -e $nam if [ $? -eq 0 ]; then echo Build OK ghdl -r $nam --vcd=testbench.vcd if [ $? -...
true
7774ee1b2e2b07456e3661567b0458721e979d32
Shell
Parag08/os_helper_scripts
/make_multiple_copies/makedeployemts.sh
UTF-8
364
3.171875
3
[]
no_license
#!/bin/bash list_of_services="nodejs-orientdb-service nodejs-kafka-service" for service_name in $list_of_services; do echo $service_name rm -rf $service_name mkdir $service_name cp basicstructrue/* $service_name cd $service_name rename "s/basicstructrue/$service_name/" * sed -i -- "s/basics...
true
01f0bdce014609864415bc5df9011e5d404fcb4a
Shell
TortugaLabs/codelib1
/_attic/notify2
UTF-8
1,950
3.484375
3
[ "MIT" ]
permissive
#!/bin/sh # # tags:alpine-notify-srv alpine-hw # target::/usr/local/bin/ # mode:755 # set -euf -o pipefail bot_api="https://api.telegram.org/bot" send_notification() { wget -O- "${bot_api}${bot_key}/sendMessage?${textmode}${ding}chat_id=${chat_id}&text=$(urlencode "$*")" } urlencode() { # urlencode <string> ol...
true
cb1fc02466900b3b49e7a2c9543186f407edb31a
Shell
jwaldmann/matchbox
/release.sh
UTF-8
957
3.296875
3
[]
no_license
#!/bin/bash -v # this script puts the matchbox executable # in a zip file that can be submitted # to the starexec execution platform source=MB.hs exe=MB.exe target=matchbox2016 # target=matchbox-compress # name of the binary in the release package # will be $target.bin # note that source release/$target.sh must ex...
true
3d1f6af7ca4efa233387536de1e0dda3a82adb22
Shell
seazson/zstd
/shell/menu.sh
UTF-8
1,441
3.796875
4
[]
no_license
#! /bin/bash diskspace(){ clear df -k } whoseon(){ clear who } meminfo(){ clear cat /proc/meminfo } menu(){ clear echo echo -e "\t Sys Admin Menu\n" echo -e "\t1.Display disk space" echo -e "\t2.Display logged on users" echo -e "\t3.Display memory usage" echo -e "\t0.Exit program" echo -en "\tEnter ...
true
44e75a1e4b31faae2fc7983013947a4188055014
Shell
exoclim/socrates_tools
/gen_spec_files/sp_sw_dsa_titan/mk_sp_sw_14_dsa_titan
UTF-8
5,384
3.015625
3
[ "MIT" ]
permissive
#!/bin/bash NBANDS="14" SP_ID="dsa_titan" SOLAR_SPEC="sun" PT_FILE="pt_titan" PT_CONT="pt_cont_titan" # For a 2 bar atmosphere, up to 5% CH4, 1% H2 COL_CH4="6e+2" COL_N2_CH4="4e+3" COL_N2_N2="2e+5" COL_N2_H2="1e+2" . ../set_paths_sw ################################################################################ # ...
true
1a6661f4499a9b044d0d15d1ba8d78c64026f086
Shell
abelsiqueira/CirrusCI.jl
/bin/install.sh
UTF-8
4,669
3.859375
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh set -e stop() { echo "$@" >&2 exit 1 } ### Sanity check the environment if [ "${CIRRUS_CI}" != "true" ]; then stop "Script is not running on Cirrus CI" fi # TODO: Remove this check and allow other OSes if [ "$(uname -s)" != "FreeBSD" ]; then stop "This script currently only supports FreeB...
true
3bd1404aa0bfa3bd415f497f90fcd51739b86d6f
Shell
MyWorldReady/OcThreadAndMemery
/bk/discardLines.sh
UTF-8
1,306
3.765625
4
[]
no_license
#!/bin/bash #这个脚本是用来删除多行的 #比如,清理从'<main id'到' <content> -->'所在的行 #现在这个脚本写死删除从'<main id'到' <content> -->'所在的行 #系统类型 0:mac 1:win 2linux os=1 if [ "$(uname)" == "Darwin" ] then os=0 fi filepath=$(cd "$(dirname "$0")"; pwd) rootHtmlPath="${filepath}/Tutorial" #TDOO文件名包含空格未处理 只处理了包看 "副本" 字眼的文件 SAVEIFS=$I...
true
06483d7fd7cecb51e885431cdee7ddbd31b46d32
Shell
potigol/gitpod
/lib/potigol2scala_vscode.sh
UTF-8
353
2.78125
3
[ "MIT" ]
permissive
#!/bin/bash -li echo "/* Traducao de Potigol para Scala usando http://github.com/potigol/potigol2scala" > $1.scala cat $1 >> $1.scala echo "*/" >> $1.scala cat /workspaces/gitpod/lib/potigolutil.scala >> $1.scala echo "object Main extends App{" >> $1.scala potigol -d $1 | tail -n +6 >> $1.scala echo "}" >> $1.scala ec...
true
e4130ec19c5707ee1b4e3fe79253b0866c9a3ddd
Shell
0xflotus/prolog_notes
/jpl_java_prolog_bridge/calling_from_java/callprolog/make_javadoc.sh
UTF-8
200
2.75
3
[ "Unlicense" ]
permissive
#!/bin/bash here=$(dirname "$0") javadocs="$here/javadocs" cd "$javadocs" || { echo "Could not cd to directory 'javadocs' -- exiting" >&2 exit 1 } javadoc -sourcepath ../javasrc/ org.jpl7
true
5f7cf6485c9d8192ae6235c1a7702379ea3f1d37
Shell
rogue-yogi/ECE364
/Prelabs/Prelab01/sensor_sum.sh
UTF-8
447
3.5625
4
[]
no_license
#! /bin/bash $Author: ee364f07 $ $Revision: 99196 $ $Id: sensor_sum.sh 99196 2017-01-16 00:23:11Z ee364f07 $ #input validation if (( $# != 1 )) then echo "usage: sensor_sum.sh log" exit fi #check if log is readable if [[ ! -r $1 ]] then echo "error: $1 is not a readable file!" exit fi #read file line by line wh...
true
6bd416e127f61a8a3c1a7ff23c5166d9a0948f7b
Shell
amireldor/amir-taninfiles
/nicescripts/55_npm_home.sh
UTF-8
282
3.25
3
[]
no_license
#/bin/bash # Set npm's path to user-space so -g is still fun mkdir -p $HOME/.npm-packages if ! grep -q 'npm will install stuff' "$HOME/.bashrc"; then cat <<NPM >> "$HOME/.bashrc" # npm will install stuff in user-space => fun! export PATH=~/.bin:~/.npm-packages/bin:\$PATH NPM fi
true
97c4f68c4457284ee194c45f6d825a4fd98ec012
Shell
adamlwgriffiths/envboot
/ubuntu.sh
UTF-8
529
3.1875
3
[]
no_license
set -e DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" pushd $DIR . ./bash/ubuntu_install.sh . ./bash/ubuntu_base.sh . ./vim/ubuntu_install.sh . ./git/ubuntu_install.sh . ./anaconda/ubuntu_install.sh . ./condawrapper/ubuntu_install.sh . ./heroku/ubuntu_install.sh . ./ruby/ubuntu_install.sh . ./foreman/...
true
46b9e72401fe1ebd1a6e54ac70e3d64f43be8aee
Shell
flyfire/Resource
/shell/scripts/deploy_swift_cluster.folsom/proxyServer/proxyBuildRing.sh
UTF-8
2,149
3.078125
3
[]
no_license
#!/bin/bash # #create ring after install proxy server for a cluster # #all right reserved by ludaquan (ludaquan@cn.ibm.com) # # #=================================================================================== #usage run it in a proxy server # ./xx.sh #==============================================================...
true
b10e7f8d5950111d43559a1769853501de640a90
Shell
Frijke1978/LinuxAcademy
/Using Terraform to Manage Applications and Infrastructure/Networking Part 3 Variables and Outputs.sh
UTF-8
1,186
3.203125
3
[]
no_license
In this lesson, we will finish off the networking module by creating the variables and outputs Terraform files. Finally we will test the module before integrating it into the root module. Edit variables.tf: vi variables.tf variables.tf: #----networking/variables.tf---- variable "vpc_cidr" {} variable "public_ci...
true
d8ff8362ee2a53f822a966ee5be547e01b5da17a
Shell
d4smart/Mall
/deploy.sh
UTF-8
1,057
3.15625
3
[]
no_license
#!/usr/bin/env bash tomcat_home=/root/docs/apache-tomcat-7.0.73 mall_home=/home/wwwroot/mall.d4smarter.com echo "===========进入git项目mall目录=============" cd ${mall_home} echo "==================git fetch======================" git fetch echo "==================git pull======================" git pull echo "========...
true
f57f62a85bb756f2e9c163e5f34c01088478de3a
Shell
quatmo/RuneAudio
/set_notify/set.sh
UTF-8
437
2.984375
3
[]
no_license
#!/bin/bash rm $0 . /srv/http/addonstitle.sh title -l '=' "$bar Change notification duration ..." file=/srv/http/assets/js/enhancebanner.js if [[ -e $file ]]; then sed -i "s/.000/${1}000/" $file else sed -i "s/[0-9]\+\( : notify.delay\)/${1}000 ))\1/" /srv/http/assets/js/runeui.js sed -i "s/[0-9]\+e3\(:notify.de...
true
c731ac962950f098748e1aec22603b6a7a3bbc07
Shell
TheReddKing/bibimbop
/ipaimperial/initialize.sh
UTF-8
814
2.53125
3
[]
no_license
mkdir -p data if [[ ! -f data/dictionary.txt ]]; then wget -O data/dictionary.txt https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt fi if [[ ! -f data/dictionary_small.txt ]]; then wget -O data/dictionary_small.txt https://raw.githubusercontent.com/first20hours/google-10000-english/mas...
true
c567862b2b579254eef18bad74213e7410c72ebb
Shell
btozer/fatiando
/.push-docs.sh
UTF-8
1,377
3.78125
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # Based on # http://sleepycoders.blogspot.com.au/2013/03/sharing-travis-ci-generated-files.html # and https://github.com/richfitz/wood echo -e "Preparing to copy generated files to fatiando.github.io" if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then echo -e "Starting to...
true
5517984f62bd61bb8cfa2b57ddc549876848872d
Shell
Makoto603/Github
/temp_recorder.sh
UTF-8
265
2.859375
3
[]
no_license
#!/bin/bash date=(`date +"%m/%d"`) ndate=(`date +"%m%d"`) time=(`date +"%H:%M"`) temp=(`vcgencmd measure_temp`) str=$date" "$time","${temp:5:-2} echo $str >> "/var/www/html/temp/"$ndate"_temp_log.csv" echo sudo chmod 777 "/var/www/html/temp/"$ndate"_temp_log.csv"
true
30b8b61fd92752ec9bde121093080ea7b20627c6
Shell
mimarpe/ansible
/roles/cassandra-setup/templates/cassandra_stop.sh.j2
UTF-8
350
2.984375
3
[]
no_license
#!/bin/bash CPID=`cat {{cassandra_home}}/current_cassandra/bin/cassandra.pid` echo "Kill Cassandra process: $CPID" > /home/{{ansible_ssh_user}}/cpid chown {{ansible_ssh_user}}:ged /home/{{ansible_ssh_user}}/cpid echo "Kill Cassandra process: $CPID" kill $CPID echo "Wait for process to finish, timeout 60s" timeout 60 ...
true
812e754fa1a4ddfdb803016df3cf2a802a8769c5
Shell
mauimauer/flynn
/util/rubyassetbuilder/build.sh
UTF-8
1,364
3.859375
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -exo pipefail tmpdir=$(mktemp --directory) ROOT="$(cd "$(dirname "$0")/../.." && pwd)" source "${ROOT}/script/lib/ui.sh" usage() { cat <<USAGE >&2 usage: $0 <image|app> <dashboard|installer> USAGE } main() { local target pkg case $2 in dashboard) target=$2 pkg="main" ;; ...
true
80fc488ea137e8a06cb97f0600c538b9bd14f832
Shell
gregdel/dotfiles
/tag-music/local/bin/flac2mp3
UTF-8
316
3.734375
4
[]
no_license
#!/bin/sh _usage() { echo "Usage: $(basename "$0") file.flac [...file.flac]" exit 1 } while [ -n "$1" ]; do filename=$(basename -s .flac "$1") [ -f "$filename.flac" ] || _usage shift echo "Converting '$filename' to mp3" ffmpeg -i "$filename.flac" -f wav - | lame -V 2 --noreplaygain - "$filename.mp3" done
true
05c759a0146f03bf768b9e77847123a2d49c9fc1
Shell
konstyab/sisyphus-clonezilla
/clonezilla/setup/files/gparted/gparted-live.d/S07choose-lang
UTF-8
4,755
3.078125
3
[]
no_license
#!/bin/bash # Load gparted live functions . /usr/share/gparted/bin/gl-functions gparted_chooseLanguage() { VALIDLANG=0 echo "Loading language settings:" echo " 01: Portuguese (Brazilian) 18: Latvian" echo " 02: British English 19: Macedonian" echo " 03: Bulgarian 20: Norwegian" echo " 04: Ca...
true
dd985e64084fed266e1bc7f7d6f5ac6c52fa23b5
Shell
AnderRasoVazquez/webapp_iso
/src/funciones/menu_sin_dialog/php/probarPHP.sh
UTF-8
571
3.90625
4
[]
no_license
#!/bin/bash probarPHP() { # 1. Crear el fichero “test.php” en /var/www/ con el siguiente código: # ( <?php phpinfo(); ?>) # 2. Abrir test.php con un navegador web. ¿Qué permisos son necesarios # para que podamos verlo todo el mundo? # Variables CARPETA='/var/www/' FICHERO_PHP='test.php' ...
true
3c902265354f12b0ef2813e7a69d30ac819a67d4
Shell
Russmania101/Dynamic_GPU_Cache_Bypass_Project
/benchmarks/rodinia/HT/HT.sh~
UTF-8
530
3.03125
3
[]
no_license
#!/bin/bash echo "Running Rodinia HT Benchmark" ht=$(pwd) cd ../../.. repo=$(pwd) test_dir=$repo/benchmarks/test echo repo directory: $repo echo ht directory: $ht echo "test" directory: $test_dir cd $ht cp heartwall-rodinia-3.1 $test_dir cp -r ht_data/ $test_dir/ht_data cd $test_dir echo -n "Start Time: " date "+%H...
true
a420bf174a98b47be462bdd7d2aad313b27b3833
Shell
Blizzard/node-rdkafka
/make_docs.sh
UTF-8
1,287
3.671875
4
[ "MIT" ]
permissive
#!/bin/bash if [[ `git status --porcelain` ]]; then # changes >&2 echo "You have unstaged changes. Please commit before you run this." exit 1 fi # REPO=git@github.com:Blizzard/node-rdkafka.git REPO=https://github.com/Blizzard/node-rdkafka.git git remote add deploy $REPO # Get the most recent stuff if we don't...
true
89aab9985e6b55ef8f00b607c35a88e5d88cee89
Shell
theory/pg_bulkload
/bin/postgresql
UTF-8
9,248
4
4
[]
no_license
#! /bin/sh #------------------------------------------------------------------------------ # # postgresql-- a wrapper script of pg_ctl # # - NOTE: If you use pg_bulkload, you must use this script instead of pg_ctl. # + This script calls our own recovery process solving clash while data is # loaded with p...
true
10f40243a7af099b39fb282e8638167128aa6344
Shell
TimelordUK/node-sqlserver-v8
/tool/odbc.sh
UTF-8
668
2.78125
3
[ "Apache-2.0" ]
permissive
if ! [[ "18.04 20.04 22.04" == *"$(lsb_release -rs)"* ]]; then echo "Ubuntu $(lsb_release -rs) is not currently supported."; exit; fi sudo su curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list > /etc/apt/sources...
true
68c084fa6f8507c5add247d369315ba9eb6446a9
Shell
cecevu/hpc_results_v0.7
/Fujitsu/benchmarks/deepcam/implementations/implementation_abci/run_scripts/qsub.sh
UTF-8
1,595
3.609375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash if [ $# -eq 0 ]; then echo "$0 [num_nodes] [num_procs_per_node (default: 4)] [mode (default: 1)] [prof: (default: off)]" echo "mode:" echo " 0: direct data loading with full dataset," echo " 1: data staging with full dataset (default)," echo " 2: data staging with small dataset (for debug)," ec...
true
bb559c68bc643d9809f20b5caaacb1187b217e83
Shell
kamir/wikixmldumpstatistics
/java/wikixmldumpstatistics/bin/runDumpConverter.sh
UTF-8
863
3.34375
3
[]
no_license
#!/bin/sh # # startet den XML-Wiki-Dump-Converter # # Stand: 16.7.2012 # buildClassPath() { jar_dir=$1 if [ $# -ne 1 ]; then echo "Jar directory must be specified." exit 1 fi class_path= c=1 for i in `ls $jar_dir/*.jar` do ...
true
0760b4c0ff1910aba572bc70a304e73e8bed2c0b
Shell
vmonteco/docker-rendu
/mission03/boot2docker-launch.sh
UTF-8
1,237
3.75
4
[]
no_license
#!/bin/sh # more infos on https://gist.github.com/codeinthehole/7ea69f8a21c67cc07293 # https://github.com/boot2docker/boot2docker/issues/678 #set -x SHAREDIR=$HOME/share # stop boot2docker if [[ $(boot2docker status) == "running" ]]; then echo "Shutting boot2docker down." boot2docker down echo "boot2docker is no...
true
88303ffbd16fe47173296d13a0df178ebf0712f7
Shell
AgustinCB/dotfiles
/config/eww/arin/scripts/system
UTF-8
584
3.390625
3
[]
no_license
#!/usr/bin/env bash CFG="$HOME/.config/eww/arin/sidebar" EWW=`which eww` close_eww() { ${EWW} --config "$CFG" close resources logout suspend lock reboot shutdown quotes } if [[ $1 = "--logout" ]]; then close_eww $HOME/.local/bin/logout elif [[ $1 = "--suspend" ]]; then close_eww systemctl suspend elif [[ $1...
true
62b88a1737f3d869fcf31a86b7f6021ddae4950a
Shell
gorijapan/dotfiles
/setup.sh
UTF-8
260
3.109375
3
[]
no_license
#!/bin/bash for f in .??* do [[ "$f" == ".git" ]] && continue [[ "$f" == ".DS_Store" ]] && continue echo "$f" ln -s $HOME/dotfiles/$f $HOME/$f done mkdir -p $HOME/.config/git/ ln -s $HOME/dotfiles/config/git/ignore $HOME/.config/git/ignore
true
7583ac4684e477472b15724a9362fed4efd7e0d0
Shell
rairongf/dotfiles
/dot_local/bin/executable_code
UTF-8
321
3.75
4
[ "MIT" ]
permissive
#!/bin/sh get_in_path_except_current() { which -a "$1" | grep -A1 "$0" | grep -v "$0" } code="$(get_in_path_except_current code)" if [ -n "$code" ]; then exec "$code" "$@" elif [ "$(command -v code-insiders)" ]; then exec code-insiders "$@" else echo "code or code-insiders is not installed" >&2 exit 127 fi...
true
18a4eafcbee175b1dd2c8e2df994d15ab1db87f6
Shell
delkyd/alfheim_linux-PKGBUILDS
/emscripten-git/PKGBUILD
UTF-8
3,905
2.671875
3
[]
no_license
# Contributor: Vlad Kolotvin <vlad.kolotvin@gmail.com> # Maintainer: Stefan Husmann <stefan-husmann@t-online.de> pkgname=emscripten-git pkgver=1.37.21.88.g5d18b58b0 pkgrel=1 pkgdesc="LLVM-to-JavaScript compiler" arch=('i686' 'x86_64') url="http://emscripten.org" license=('custom') depends=('nodejs' 'python2' 'python')...
true
91592db009319145b983e824c72e4f516d67ffe6
Shell
hime/LearnBash
/unzipAll.sh
UTF-8
665
4.40625
4
[]
no_license
#!bin/bash # Jaime Bohorquez # Script to unzip all files in a directory # Unzip must be installed. To install use: # brew install unzip or for linux apt-get install unzip # Check if the new storage directory exists. if [ -z "$(ls zips)"]; then mkdir zips # make a directory where to store the zip files fi # Loop t...
true
a3d906e44f3a2ec683fcfed69739f659dda712aa
Shell
jeffrey-xiao/dotfiles-solus-i3
/bin/dmenu-power
UTF-8
599
3.6875
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
#!/bin/sh dmenu_cmd() { rofi -i -fuzzy -dmenu -p "$1" } power_options="lock\\nlogout\\nsuspend\\nhibernate\\nreboot\\npoweroff" selected_power_option=$(printf "%b" "$power_options" | dmenu_cmd "power") [ -z "$selected_power_option" ] && exit case "$selected_power_option" in "lock") lock ;; "logout") ...
true
53d891d9598688d9f48d2810b1553ef426dfa714
Shell
nrhines/homework_2
/HW_2_2_3
UTF-8
525
3.703125
4
[]
no_license
#!/bin/bash a=$1 n=$(find $a -maxdepth 0 -type f | wc -l) if [ $n == 0 ] then echo "There is no file $a located in your current directory" else b=$(echo $PWD) cd g=$(find Trash -maxdepth 0 -type d | wc -l) cd $b if [ $g == 1 ] then mv $a /home/nrhines/Trash echo "...
true
a4c11650c921ef99a077f208702bc236380db206
Shell
GreenDragon/dotd_parser
/sbin/dotd-parser-update-shared-raids-dotd.sh
UTF-8
365
2.625
3
[ "LicenseRef-scancode-public-domain", "MIT" ]
permissive
#!/bin/bash cd /${WEB2PY_HOME}/applications/dotd_parser/cron for platform in facebook kongregate armor newgrounds; do for table in armor fb kong ng; do for server in 1 2; do # echo "Updating DotD ${plaform} ${table} ${server}..." ./get_shared_raid_details.py dawn_shared_raids_${table}_s${server} daw...
true
94c20b55458210a6d209d71d0b29bd45ca947110
Shell
jiama843/cs246_review
/MidtermReview/Shell/count.sh
UTF-8
254
3.65625
4
[]
no_license
#!/bin/bash # countWords word file # Prints the number of times word occurs in file x=0 for word in $(cat "$2"); do if [ $word == "$1" ]; then x=$((x + 1)) echo $((x + 1 + 1)) #echo $x + 1 fi done echo ${#} echo ${@} #echo ${$} echo $x
true
e4a2af1c963ae8b356cc1dcc3102832c572b2061
Shell
ktp-forked-repos/SBD-Evaluation
/code/analysis/corpusstats/calculateends
UTF-8
1,227
3.015625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Script to calculate frequency of sentence terminal characters in a corpus # DATAROOT=/vagrant/data ANLSROOT=${DATAROOT}/analysis/ending-chars echo -n Analyzing BNC... corpus=${DATAROOT}/bnc/plaintext bounds=${DATAROOT}/bnc/bounds txtend=".xml.txt" bndend=".xml.txt.bounds.permissive" log=$ANLSROOT/bnc....
true
42a28473867699bb44ad69bd7e2eff41ff781453
Shell
mikoscz/dotfiles
/.zshrc
UTF-8
1,963
2.734375
3
[]
no_license
### Added by Zinit's installer if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/...
true
ba08118d3a2cca112f10147193d02981e4da06be
Shell
DevotionZhu/k8s-easy-install
/haproxy/install-haproxy.sh
UTF-8
399
2.765625
3
[]
no_license
#!/usr/bin/env bash . utils.sh prnt "Installing kubemaster load balancer on $loadbalancer" if [[ "$this_host_ip" = "$loadbalancer" ]] || [[ "$this_host_name" = "$loadbalancer" ]]; then sudo apt update sudo apt install -y haproxy sudo apt autoremove -y else remote_cmd $loadbalancer apt update remote_cmd $loadb...
true
db877461dea035ca489febfb3ebdeedb83f4e56a
Shell
Taiwanese-Corpus/Goo-Gi-Khuai-Ik-Thong
/liah.bash
UTF-8
906
3.21875
3
[ "MIT" ]
permissive
#!/bin/bash #m f j #target_kiap="m" # Huagi: g # Taigi: m j f # Haffa: c h d r z l" # Tsokgi: "a t b n p" # English: "e" # Liah MP3 curl "http://163.21.182.5/ez5language/ezlearn/FM/{g,m,j,f,c,h,d,r,z,l,a,t,b,n,p,e}_files/[001-206].mp3" -fL0 --create-dirs -o "./mp3/#1_files/#2.mp3" # Liah XML curl "http://163....
true
641af6c00e5f71d47d51bb8a7fc92a08e2295e3e
Shell
woojoong88/dev_env_woojoong
/setup.sh
UTF-8
2,416
3.09375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright 2019-present an Individual Developer Woojoong Kim # # 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...
true
ba5864c08845228d2187601cbfa4bfaef4c1f545
Shell
zoglee/env
/setup_dev_system
UTF-8
2,336
2.8125
3
[]
no_license
#!/bin/bash CPU_NUM=$(cat /proc/cpuinfo | grep -wc processor) if ! grep -q "SETUP_ENV_MAGIC=142857" ~/.bashrc; then echo " # SETUP_ENV_MAGIC=142857 # my exports export HISTSIZE=100000 export HISTTIMEFORMAT="%F-%T: " export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:/usr/local/lib:\$HOME/lib:\$LD_LIBRARY_PATH export ...
true
0e9ad221dcb074518bac5ccfbf1ebb602601623d
Shell
haydargokmen/mbe
/scripts/copy2.sh
UTF-8
87
2.546875
3
[]
no_license
#!/bin/bash for i in `ls -1 /directroy` do cp $i /newDirectory/$i.`date +%m%d%Y` done
true
14d7fe9ac3f3b6358a8c0e0ac0a55c940c65b916
Shell
boryshrebennikov/helm-node
/scripts/versioning_aws
UTF-8
932
3.21875
3
[]
no_license
#!/bin/bash version="$(jq .version package.json)" version="$(sed -e 's/^"//' -e 's/"$//' <<< "$version")" previous_version=$(aws ecr describe-images --repository-name $PROJECT --query 'sort_by(imageDetails,& imagePushedAt)[-1].imageTags[0]' --region eu-central-1) previous_version="$(sed -e 's/^"//' -e 's/"$//' <<< "$pr...
true
dc66328ac46886987a09daaf869d074f5b75a5ac
Shell
djzort/scmbug
/src/glue/templates/scm_git/latest/post-commit.in
UTF-8
562
2.796875
3
[]
no_license
#!/bin/sh # # An example hook script that is called after a successful # commit is made. # # To enable this hook, make this file executable. # @DEVEL_PRODUCT_NAME@_STANZA_START # # # Call the @DEVEL_PRODUCT_NAME@ integration glue REPOS="@DEVEL_PRODUCT_NAME@_STANZA_REPOS" @DEVEL_CONFIG_PERL_BINARY@ -I ${REPOS}/.git/ho...
true
63f95c31e9573855ec3637c5f711ce78d0c6b8e4
Shell
rushioda/PIXELVALID_athena
/athena/AtlasTest/DatabaseTest/TagCollectionTest/share/listCollectionFiles.sh
UTF-8
963
3.640625
4
[]
no_license
#!/bin/sh if [ $# -lt 1 -o "$1" = '-h' ]; then echo 'Usage: createFileCatalogFromCollection.sh \' echo ' <collection name> \' echo ' [collection type (DEFAULT: "ExplicitROOT")] \' echo ' [collection database connection (DEFAULT: "")] \' echo ' [catalog name (DEFAULT: "xmlcat...
true