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
afd79e29d6fed8b9ef61956bd64510878dcbcc94
Shell
fuog/zsh-ssh-agent
/ssh-agent.zsh
UTF-8
2,029
3.875
4
[ "MIT" ]
permissive
typeset ssh_environment function start_ssh_agent() { local lifetime local -a identities # Check if the variable is not defined and set it : ${SSH_UNLOCK_IDS_FILE:=$HOME/.ssh/unlock_ids} : ${SSH_UNLOCK_IDS_TMP_SH:=$HOME/.ssh/.unlock_tmp.sh} zstyle -s :plugins:ssh-agent lifetime lifetime ssh-agent -s ${lifetime:+...
true
e73bab322735883bb542022443f050a6ddb74840
Shell
junhyeokpark1213/hello-world
/project3/3test2.bash
UTF-8
443
2.609375
3
[]
no_license
#!/bin/bash port=$3 rep=$2 userid=$1 cp nginxdp.yaml $userid-nginx.yaml sed -i 's/name: name/name: '"$userid"'/g' $userid-nginx.yaml sed -i 's/app: name/app: '"$userid"'/g' $userid-nginx.yaml sed -i 's/Name: name/Name: '"$userid"'/g' $userid-nginx.yaml sed -i 's/replicas: number/replicas: '"$rep"'/g' $user...
true
e8db3c8988387dd57fe94cb4fde0bcd21188b73d
Shell
Bogdanp/deta
/ci/docs.sh
UTF-8
597
2.734375
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -euo pipefail sudo apt-get update sudo apt-get install -y --no-install-recommends gettext-base gpg ssh rsync raco scribble +m --dest doc --redirect 'https://docs.racket-lang.org/local-redirect/index.html' deta-doc/deta.scrbl mv doc/deta.html doc/index.html mkdir -p /tmp/secrets gpg -q --batc...
true
5bdd09d8f88cdc9c2f2e1cf24b180d610a786f22
Shell
mntyfrsh/navcoin-express
/scripts/import.sh
UTF-8
655
3.3125
3
[]
no_license
#!/bin/bash echo echo "IMPORTING wallet.dat" echo log=/opt/navcoin-express/log/import-wallet.log touch $log chmod 777 $log now=$(date +"%m-%d-%Y %T") echo "${now} - importing wallet" >> $log time=$(date +"%s") FILE=$1 # backup old wallet.dat file mv /home/odroid/.navcoin4/wallet.dat /home/odroid/.navcoin4/${time}_...
true
a32afce116614be88bddac0e9e85d8d47c59d484
Shell
bch0w/simutils
/cluster/runscripts/auxiliary/template_mpi-openmp_hybrid.sh
UTF-8
1,130
2.75
3
[]
no_license
#!/bin/bash #SBATCH --job-name=??? #SBATCH --nodes=x #SBATCH --ntasks=y #SBATCH --cpus-per-task=z #SBATCH --hint=nomultithread #SBATCH --account=??? #SBATCH --clusters=??? #SBATCH --partition=??? #SBATCH --time=0:01:00 #SBATCH --output=???_%j.out # From email correspondence with NeSI engineer Alex Pletzer: # # To set...
true
414a8eec179699279d9274604415ec9379b355d5
Shell
cristianrz/win-stealth
/win-stealth.sh
UTF-8
820
3.71875
4
[ "BSD-3-Clause" ]
permissive
#!/bin/bash CURRENT=$(hostname) HOSTNAME_PREFIX="PC-" randomise_hostname(){ new="$HOSTNAME_PREFIX"-$(echo -e $RANDOM | cut -c -2) if ! wmic computersystem where caption=\'"$CURRENT"\' rename \'"$new"\'; then echo -e [X] wmic failed echo -e [X] Exiting.... return 1 fi return 0 } echo -e "\e[34m[*]\e[39m ...
true
79e55d23039c56f27e305ca02639ebcb515a9689
Shell
niconistal/dotfiles
/bootstrap.sh
UTF-8
668
3.90625
4
[]
no_license
#!/usr/bin/env bash DOTFILES_ROOT=$PWD OLDDIR=$HOME/.dotfiles_old files=$(find "$DOTFILES_ROOT" -maxdepth 2 -name \*.symlink -print | grep -v "bash" | grep -v "osx") # create dotfiles_old in homedir echo "Creating $OLDDIR for backup of any existing dotfiles in ~" mkdir -p $OLDDIR echo "...done" # move any existing ...
true
1b9f05fdd855d7b041e750801f43bb3599b5f6c4
Shell
YuqianHou/OS_homework
/进程管理/Shell_script/script7.sh
UTF-8
312
3.625
4
[]
no_license
#!/bin/bash #设计一个函数并递归调用之,打印出用户指定目录或当前目录中的所有文件和目录 function echo_name(){ for file in `ls $1` do echo $1"/"$file if [ -d $1"/"$file ] then echo_name $1"/"$file fi done } echo_name $1
true
45ca6cbb2ad3f80419466bde76da422a373791d7
Shell
shaunfink/vagrant-ldap-rabbitmq
/scripts/create-certs.sh
UTF-8
3,073
3.34375
3
[]
no_license
#!/bin/bash # Script to generate a local CA and aerver & client certificates signed by that CA. set -e set -x # Set the current path dir=$( pwd ) hostname="rabbitmq.dev" ou="rabbitmq" o="dev" caname="TestCA" # Create directory structure mkdir -p ${dir}/ca-certs/${caname}/{certs,private} # Configure the ${caname} di...
true
76fe7aae5d3bd0011b6586ff81f6db6932704a4a
Shell
Feller09/seizure_prediction
/run_docker.sh
UTF-8
804
3.09375
3
[]
no_license
#!/usr/bin/env bash DOCKER_NAME=${1:-doc_pytorch} # If arg1 does not exist use doc_pytorch as default HOST_PORT=${2:-8888} # If arg2 does not exist use port 8888 as default DOCKER_TAG=${3:-20200429033528} # If arg3 does not exist use tag 20200429033528 as default DOCKER_USER=$(id -un) # docker run -p...
true
914ed0840bbea6d3b5317e130646658bab976609
Shell
shubhamsaini/str-imputation
/L1O_Analysis/runme_xsede.sh
UTF-8
1,890
2.78125
3
[]
no_license
#!/bin/bash ### usage: ./runme.sh phasedstr.vcf.gz snp.vcf.gz snp.str.vcf.gz chrom ### usage: sbatch -p shared -A ddp268 -t 0-12:00 --job-name=chr21loo --mem=5G -c 1 --get-user-env ./runme.sh /oasis/scratch/comet/s1saini/temp_project/phased_feb18/hipstr.chr21.phased.vcf.gz /oasis/scratch/comet/s1saini/temp_project/sha...
true
6c74b5b6ab77436b80bd4ef627e55aae0ae01af6
Shell
flammable/gaussian16
/gaussian_setup_16.sh
UTF-8
1,167
3.328125
3
[]
no_license
#!/bin/bash echo="/bin/echo" mkdir="/bin/mkdir" chown="/usr/sbin/chown" chmod="/bin/chmod" python="/usr/bin/python" current_user=$(${python} -c 'from SystemConfiguration import SCDynamicStoreCopyConsoleUser; import sys; username = (SCDynamicStoreCopyConsoleUser(None, None, None) or [None])[0]; username = [username,""...
true
97a5dbd90427a8bc53e2ef26dc4689326f5e2a92
Shell
fransvanberckel/debian-workflow
/debian/create_tink_workflow.sh
UTF-8
1,608
3.59375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash if [[ $EUID -ne 0 ]]; then echo "This script must be run as sudo ./create_tink_workflow.sh" exit 1 fi export OS_CODENAME=bullseye export MAC_ADDRESS=00:1d:21:58:43:5d export IP_ADDRESS=192.168.1.5 export NETMASK=255.255.255.0 export GATEWAY=192.168.1.1 export HOSTNAME=server001 read -sp 'En...
true
12caf543aabe82a3ca26b4c5cc11ddc62ef64877
Shell
ParBLiSS/kmerhash
/scripts/pinthreads.sh
UTF-8
3,748
3.671875
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # creates a core map list for pinning OpenMP threads to CPU cores in the # GNU's GOMP_CPU_AFFINITY or PGI's MPI_BLIST format # more info at https://gcc.gnu.org/onlinedocs/libgomp/index.html#toc_Environment-Variables # please address any feedback to m.cuma at utah.edu # There are the following presumpti...
true
2c8c01fa85ee62bb0471411e9533253a1a4ba315
Shell
Rintarou/smart-tpf
/scripts/run_all.sh
UTF-8
331
2.96875
3
[]
no_license
#!/bin/bash FILE=$1 echo "Query Number, LDF Time (ms), ZZ Time (ms), Sound & Complete, ZZ Server Calls" > $FILE # while read -r; do # line="$REPLY" # echo "$REPLY" # done for FILENAME in queries/*.rq; do node clientLDF.js $FILENAME node client.js $FILENAME >> $FILE done # node client.js queries/query_1017.r...
true
ba7c9a54f9372cf538ff9390a80427b6df9f0744
Shell
smalltotem/opdemand-ubuntu
/bin/opdemand-deploy
UTF-8
623
3.375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh -e # source orchestration inputs as environment vars . /var/cache/opdemand/inputs.sh # check for a url is_url=`python -c "print \"$SERVER_DEPLOY_SCRIPT\".startswith(\"http\")"` if [ $is_url = True ] ; then curl -s -o /var/cache/opdemand/deploy $SERVER_DEPLOY_SCRIPT else cp /var/lib/opdemand/$SERVER_...
true
1493f1bc423704b53e3238f2c6c88401b72eae23
Shell
xlloss/rzg2_bsp_scripts
/yocto_setup/setup.sh
UTF-8
19,572
3.390625
3
[]
no_license
#!/bin/bash # Setup and Configuration GUI for Renesas RZ/G2 BSP # Set environment variable "ADVANCED=1" to get full menu. # For example: $ ADVANCED=1 ./config.sh if [ "$ADVANCED" == "1" ] ; then echo "Advanced menu" fi # Start in base directory of BSP if [ ! -e "meta-rzg2" ] ; then cd .. ; fi if [ ! -e "meta-rzg...
true
13bf22b36af61a2e6e1f3004e721380fb6d4eb36
Shell
olegsu/cli-generator
/scripts/example.sh
UTF-8
526
2.90625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e make build echo "Generating greed directory" mkdir greet echo "Generating new CLI: greet" cli-generator-dev generate --project-dir greet --language go --spec ./examples/greet.yaml --go-package github.com/greet/greet --create-handlers --run-init-flow --verbose --run-post-init-flow cd greet echo "...
true
c2db760a6ac48cf498a827a6170a05230dab9eec
Shell
equinor/radix-platform
/scripts/migrate.sh
UTF-8
30,979
3.484375
3
[ "MIT" ]
permissive
#!/usr/bin/env bash ####################################################################################### ### PURPOSE ### # Migrate the radix platform from cluster to cluster ####################################################################################### ### INPUTS ### # Required: # - RADIX_ZONE_ENV ...
true
6b52cd63dd5ec8a9110755ea448985b19f14f6da
Shell
4ernogoria/maria_backup_thin
/dailymanager.sh
UTF-8
705
3.640625
4
[]
no_license
#!/bin/bash dayfolder=/backup/backups/daily hourfolder=/backup/backups/hourly mkdir -p "$dayfolder" mkdir -p "$hourfolder" onedayold=$(find "$hourfolder" -type f -printf '%T+ %p\n' | sort | tail -n 1 | awk '{ print $2 }') NOW=$(date '+%b %y %H:%M:%S') #supposed to be executed late at evening if [ -s "onedayold" ] th...
true
c8a24df9134a26607ad7b4f248d7aa225ce4829c
Shell
andreldsa/FFmpeg-Analyser
/monitor.sh
UTF-8
156
3.046875
3
[]
no_license
#!/bin/bash j=0; while true; do pid=$(pidof ffmpeg); if ! [ -z "$pid" ] ; then echo $pid && ps -p $pid -o %cpu,%mem,cmd | tail -n 1 fi sleep 2; done
true
25dafe4bac814f302c19585c3614542edf3ba069
Shell
billy3321/lazyscripts_pool_debian_ubuntu
/Customize/nautilus
UTF-8
843
2.8125
3
[]
no_license
#!/bin/bash # -*- coding: utf-8 -*- # # @name_enUS '' # @name_zhTW '安裝幾個好用的 Nautilus(檔案管理程式)外掛' # @desc_enUS '' # @desc_zhTW 'nautilus-gksu:以系統管理員權限開啟目錄 # nautilus-open-terminal:在目前目錄下開啟終端機視窗 # nautilus-script-audio-convert:音樂轉檔外掛 # nautilus-image-converter:圖片轉檔外掛' # @category 'C...
true
39d7ed7aca1c10220162aceebafc69fc6657b9f5
Shell
tapansirol/backend-scripts
/watcherforcluster/DevSecOps/cluster-api-scripts/getServiceEndpoints.sh
UTF-8
1,414
4.25
4
[]
no_license
#!/bin/bash # Usage: getServiceEndpoints.sh <solution-name> <release-name> <namespace> [timeout] set -e SOLUTION_NAME=$1 RELEASE_NAME=$2 NAMESPACE=$3 #TIMEOUT=${4:-20} # 20 second default timeout if not specified TIMEOUT=90 echo 'executing getserviceEndPoint**********************************' echo $TIMEOUT # Get ...
true
93393bf9da13e8339558d2c6c57191dbcce81b6c
Shell
CodistoConnect/CodistoConnectQA
/tasks/demo/instance-tools/fcgiinstancehelper.sh
UTF-8
1,166
3.1875
3
[]
no_license
#!/bin/bash # Started via /opt/bitnami/scripts/init on demo instance # Receives input from sandringham and in turn updates bitnami_magento database with updated merchant state MERCHANTID=$1 HOSTKEY=$2 MAGENTOADMINPASS=$3 echo "Merchantstate updated on $MDATE MerchantID to $MERCHANTID , HostKey to $HOSTKEY, MagentoAdm...
true
010d79dcfe302292337e524faa4fbd0a98a1ab11
Shell
OperationalFallacy/shpy
/test/test_createStub
UTF-8
169
2.546875
3
[ "MIT" ]
permissive
#!/usr/bin/env sh itCreatesSpyWhenCreateStubIsCalled() { doOrDie createStub dosomething dosomething assertEquals 'function was not created for spy' 0 $? }
true
66ad7afb336e7ca9e6e6b94a3d9862b3c7e4fe81
Shell
Frusty/scripts
/ecomfit
UTF-8
1,257
3.34375
3
[ "MIT" ]
permissive
#!/bin/bash # Author: Jan Krueger # Description: This will launch the apache and a custom tc server with debug enabled. It is killing all other running apaches if found. export DW_HOME=`pwd` echo "Killing all httpd and relaunching a new instance" sudo killall httpd OUT=$? if [ $OUT -eq 0 ];then echo " Killed h...
true
5f56fbf8c8e458f3ffb27457914e5e78136a9498
Shell
pankajsharma184/shellscripting
/3script.sh
UTF-8
265
2.859375
3
[]
no_license
#!/bin/bash read -p 'Enter your username: ' USERNAME read -p 'Enter your full name: ' NAME read -p 'Enter password for the username: ' PASSWORD useradd -c "${NAME}" -m ${USERNAME} echo ${PASSWORD} | passwd --stdin ${USERNAME} echo passwd -e ${USERNAME}
true
86240544c3e0d168b0eefcace79293860b3be96e
Shell
equityit/vagrant_demo
/gateway/resources/devops/inodes/node_info.sh
UTF-8
348
2.859375
3
[]
no_license
#!/bin/ksh #set -x dir=/opt/geneos/gateway/resources/devops/inodes node_info=`df -iP > $$.out` #node_info_header="`cat $$.out | head -n 1 | sed 's/(.*//'`" cat $$.out | head -n 1 | sed -e 's/\s\+/,/g' -e 's/Mounted,on/Mounted on/' sed -n '2,$ p' $$.out | while read line do echo $line | sed 's/://' | sed '...
true
c37a6ecb5900e9c5aa6efb7b5f07e53d41e934c6
Shell
YukiYamashina/XSERVER-install-scripts
/bin/install_git_on_xserver.sh
UTF-8
2,913
3.640625
4
[ "MIT" ]
permissive
#!/bin/bash # # # curl -o- https://raw.githubusercontent.com/YukiYamashina/XSERVER-install-scripts/master/bin/install_git_on_xserver.sh | bash # # #---------------------------------------------------------------------- # install_dir=$HOME/opt # #---------------------------------------------------------------------- # e...
true
fe8880bdc9d186c8e15cbff10ef8a5a3b46bfaf0
Shell
FoxAndDuckSoftware/prowler
/checks/check24
UTF-8
3,574
3.0625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Prowler - the handy cloud security tool (copyright 2019) by Toni de la Fuente # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at http://www.apache.org/licenses/LICENSE-2.0...
true
df45dba1dac45ceb9d208a920b079527dc3fae90
Shell
deepfence/ThreatMapper
/deepfence_console/generate_certs.sh
UTF-8
444
3.265625
3
[ "Apache-2.0" ]
permissive
#!/bin/sh if [ ! -f certs/ssl/filebeat.crt ]; then echo "SSL certificate not found! Grenerating SSL certificate...." mkdir -p certs/ssl sudo openssl genrsa -out certs/ssl/filebeat.key 2048 sudo openssl req -new -x509 -config self-signed-certificate.cnf -nodes -days 365 -key certs/ssl/filebeat.key -out ...
true
2f9c8eb6944727a5c6900c7be1f5912f543009b2
Shell
bentolor/microframeworks-showcase
/benchmark.sh
UTF-8
1,594
3.25
3
[ "Apache-2.0" ]
permissive
#!/bin/bash echo "---------------------------------------------------" echo " Quick & Dirty benchmarking the microframeworks" echo "---------------------------------------------------" echo "Note: You need apache2-utils & gnuplot installed:" echo " sudo apt install apache2-utils gnuplot5" echo "" ./gradlew clean sh...
true
d73ade508fe7e26478f382e6086191ac32ecd17c
Shell
paulvl/dockstead
/dockstead
UTF-8
1,513
3.109375
3
[]
no_license
#!/bin/bash if [ -z "$1" ]; then echo "Dockstead: debe de especificar una acción" else if [ "$1" == "install" ]; then sudo cp dockstead /usr/local/bin/dockstead elif [ "$1" == "submodule" ]; then git submodule add https://github.com/paulvl/dockstead.git docker-...
true
d0e672a595274eb1f112200b23a6b5d514e0fe03
Shell
duhai-alshukaili/StructuringLDSearchResults
/learn
UTF-8
694
3.078125
3
[]
no_license
#!/bin/bash if [ "$#" -ne 1 ] || ! [ -d "$1" ]; then echo "Usage: $0 COLLECTION_DIR" >&2 exit 1 fi #dbfiles=$(ls *.db 2> /dev/null | wc -l) #if [[ "$dbfiles" != "0" ]]; then # rm -fr *.db #fi rm /media/black/*.db java -Xmx4096m -cp ./target/classes:`cat classpath.out` com.wordpress.chapter10.LoadData $1 ...
true
5b7ec48177544ff48103148c8e2e92f1b6f162d2
Shell
BotTech/dev-setup
/bin/bootstrap.sh
UTF-8
5,198
4.03125
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash set -e readonly DEV_SETUP_GIT_BRANCH=master readonly DEV_SETUP_GIT_URL=git@github.com:BotTech/dev-setup.git readonly DEV_SETUP_HTTP_URL=https://github.com/BotTech/dev-setup readonly EXIT_CANNOT_PARSE_SSH_KEYGEN=1 readonly EXIT_GITHUB_SSH_FAILED=2 echo "Bootstrapping dev-setup..." # Another file...
true
2544c70ff278abdc6bea510e1bdb735c7a3c635b
Shell
wuhanbo/LMDZ
/LMDZ.GENERIC/deftank/def_generic_giants/randomRestart/.svn/text-base/compile.svn-base
UTF-8
517
2.59375
3
[]
no_license
#!/bin/bash #netcdfPath=/d2/emlmd/netcdf64-4.0.1_gfortran netcdfPath=/san/home/indurain/PROG/netcdf/netcdf64-4.0.1_gfortran export FC=gfortran #export FFLAGS="-fdefault-real-8 -O0 -g -fbounds-check -Wall -ffpe-trap=invalid,zero,overflow,underflow -ftrapv -fimplicit-none -fno-automatic" export FFLAGS="" command="${F...
true
b7dbacdbe3b8bcdaf4637a414144c13fa47cb956
Shell
flazx/dtable-server
/index.sh.template
UTF-8
1,005
3.4375
3
[]
no_license
#!/bin/bash # set environment variables export CCNET_CONF_DIR=/data/conf export SEAFILE_CONF_DIR=/data/conf/seafile-data export PYTHONPATH=/data/dev/libsearpc:/data/dev/ccnet-pro-server/python:/data/dev/seafile-pro-server/python:$PYTHONPATH export LOG_DIR=/data/logs export DTABLE_SERVER_CONFIG=config/config.json expor...
true
62207e3f5089289018366933b74ac90d0873ed86
Shell
souzat89/Bot-Lab
/MemScan
UTF-8
1,370
3.3125
3
[]
no_license
#!/bin/bash # Written by: M.B. Hudson (2020) malcode.net cd cd Bot-Lab clear echo " A global Scan will be conducted and will take approx 24 hours" echo " during the scanning stage you may press CTRL+C to skip to the " echo " Nmap portion were the newly acquired server list will be" echo " checked for amplification vul...
true
a8a7e82d356fa14a1e6163ae5f91e624a178cab1
Shell
igaurab/dotfiles
/scripts/animjs.sh
UTF-8
524
2.765625
3
[]
no_license
#!/usr/bin/env bash mkdir $1 && cd $1 && touch index.html style.css script.js && echo "<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="style.css"> <title> Learn Javascript...
true
6547385ee67fa00a6d620e350637c46358f1d3c9
Shell
aditp928/cyber-secruitiy-
/4-OldFiles/02-Traffic-Analysis/1/Activities/09-Ins_SSH/demo.sh
UTF-8
1,869
3.90625
4
[]
no_license
# STEP 1: Creating User Accounts # Determine the current user whoami # Add a normal user with their very own directory in `/home` useradd -m -s /bin/bash ahmed # Sets the user's password through an interactive prompt. Use a dummy password, like: `password` # The account isn't active until you do this step! passwd ahm...
true
d98bf72163ecebda22a7baa9b0ba7c2653eeedde
Shell
itals53fs/trabalhos-redes-II
/trabalho-01/linux/log3.sh
UTF-8
377
2.671875
3
[]
no_license
#grupo: #Camila de Souza Ferreira #Érica Cristiana dos Santos #Gabriel Morais Oliveira #Marleison da Silva Rodrigues #Tales Félix Gonçalves Cruz #Ulisses Xavier Brandão echo -e 'Processando...\n' ifconfig > log3.txt #ifconfig lista as interface de redes, a informação esta sendo direcionada para o arquivo cat lo...
true
86794cb5a93f7ee6c1bc31dba3f637d2d315f01d
Shell
maxg0/displaysocket.js
/createCerts.sh
UTF-8
592
2.96875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # copied directly from: # http://www.gilluminate.com/2014/06/10/livereload-ssl-https-grunt-watch/ # # TODO automatically fill in some good default values # (when running this script it will prompt for values) # # used to create certs that are used by grunt to serve https pages so that we # can get ...
true
6b9126e9490b6c5f0139d95acecc70e6ceddc629
Shell
peetrike/shell-p
/shell/ch10/lokaalne.bash
UTF-8
612
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash miski() { local minu=23 #dash/bash typeset korn="ehhee" #ksh/bash local override="funktsioon" # see muutuja on lokaalne muutuja, mis peidab globaalse global="vahetatud" # kirjutan globaalse muutuja väärtuse üle uus="uus muutuja" echo "funktsioonis: " $minu $korn $g...
true
e12208b11f3f4754f35afa6f20fda37b3a16843d
Shell
Applied-Genomics-NYU/homework02-hrc312
/arabidopsis_data.sh
UTF-8
398
2.53125
3
[]
no_license
#!/bin/bash # #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --cpus-per-task=1 #SBATCH --time=1:00:00 #SBATCH --mem=4GB #SBATCH --job-name=MYJOB #SBATCH --output=slurm_%j.out module load hisat2/intel/2.0.5 hisat2-build Arabidopsis.fa arabidopsis_index for read in ./*_1.fastq do hisat2 -p 8 -x ./arabidopsis_...
true
8d9e0d94026071bd644e82dcc069c234ddbc0f92
Shell
JefferyQ101/buendia
/packages/buendia-backup/data/usr/bin/buendia-backup
UTF-8
8,246
4.0625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2015 The Project Buendia Authors # # Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy # of the License at: http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ...
true
10969ca122928bd97ec1739521e44e174307acc0
Shell
vivek231098/BOOTCAMP
/day6Ass/functions/conversion.sh
UTF-8
614
3.75
4
[]
no_license
read -p "Conversion to be done : " con degf=1; degc=2; function conversion() { case $con in $degf) read -p "Enter in Centigrades " centi if [[ $centi -ge 0 && $centi -le 100 ]] then Degreef=$((($centi*9/5) + 32)) echo "Termperature is $degf Farhenheit" else echo "Range between 0 & 100" exit ...
true
b16f654dc45c3decb559efbe6093883f42d156c4
Shell
endurehero/config-yaml-generator-for-tensile
/install_depend.sh
UTF-8
569
3.328125
3
[]
no_license
#!/bin/bash DEPEND_DIR="./dependences" GFLAGS_DIR="${DEPEND_DIR}/gflags" XLRD_DIR="${DEPEND_DIR}/xlrd" if [ ! -d ${DEPEND_DIR}]; then echo "the dependences dir is not exist!" exit 1 fi if [ ! -d ${GFLAGS_DIR}]; then echo "the gflags dir is not exist!" exit 1 fi if [ ! -d ${XLRD_DIR}]; then echo...
true
509cb3479f8ec7cedaec5ecc4748d89293279dca
Shell
pinpoint-apm/pinpoint
/thrift/install-thrift-linux.sh
UTF-8
5,108
3.96875
4
[ "DOC", "LicenseRef-scancode-free-unknown", "CC0-1.0", "OFL-1.1", "GPL-1.0-or-later", "CC-PDDC", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-public-domain", "CC-BY-3.0", "LicenseRef-scancode-unknown-license-reference", "MITNFA", "MIT", "CC-BY-4.0", "OFL-1.0" ]
permissive
#!/usr/bin/env bash readonly APACHE_MIRROR_URL="http://mirror.navercorp.com/apache" readonly DEFAULT_PATH="./src/compiler/linux/" readonly DEFAULT_BIN="thrift-0.16.0" if [ -z "$1" ]; then tpath=${DEFAULT_PATH} else tpath=$1 fi if [ -z "$2" ]; then tbin=${DEFAULT_BIN} else tbin=$2 fi readonly tversio...
true
a9f6fb4523194c728e0b86d799e7179f73314c1b
Shell
elemgee123/code-4-the-animals
/bootstrap.sh
UTF-8
989
3.90625
4
[ "Apache-2.0" ]
permissive
#This file is intended to setup Vagrant VM. # but this same file can be used to setup a physical machine such as a Rasberry pi. # Installs python3 environment, installs requirements, updates crontab for auto-exectuion #!/bin/bash sudo su - apt-get update && apt-get upgrade -y apt-get install python-virtualenv python3-...
true
51b877701f26dd2d23870cfff943d2d161161a43
Shell
chenyuanchun/algor
/scripts/shell/ase/newfailures
UTF-8
292
3.5625
4
[]
no_license
#!/bin/sh # take 2 params: # 1. new test report path # 2. report in comparison MY_FAILURES=`grep FAIL $1 | awk -F\, '{ print $2 }' ` for AFAIL in $MY_FAILURES do REPORT= grep -w $AFAIL $2 | grep PASS > /dev/null rc=$? if [ $rc -eq 0 ]; then echo $AFAIL fi done
true
c4bf82bdc9cca83860318b2fe07d20bcca17ec53
Shell
choruslab/NoVizThermal
/trackpad/server/results/mongo.sh
UTF-8
330
2.765625
3
[]
no_license
#!/bin/bash # This script will get all the contents of the specified collection # and output them in CSV format. # Currently, the _id column (MongoDB's ids) are not included in the export # Column names will be taken from fields.txt mongoexport --db=Test --collection=TestData --type=csv --fieldFile=fields.txt --out=r...
true
524e3fc7103bb9fd5c7ac6383cc71b09b7805a9c
Shell
hachiojipm/aimai
/devtool/bootstrap.sh
UTF-8
355
2.953125
3
[]
no_license
#!/bin/bash set -uex pythonz install 3.7.4 --configure="--with-openssl=$(brew --prefix openssl)" ENVRC_FILE='.envrc' ENVRC_PYTHON_INST="layout python \$(pythonz locate 3.7.4)" if ! grep "$ENVRC_PYTHON_INST" "$ENVRC_FILE"; then echo "$ENVRC_PYTHON_INST" >> .envrc direnv allow . fi pip install platformio git su...
true
1a4dd6572911c972dc8d68405619e380732bd43e
Shell
zarplata/zabbix-agent-extension-elasticsearch
/configs/template/custom_key_template.sh
UTF-8
269
2.984375
3
[]
no_license
#!/bin/sh prefix="$1" if [ -z "$prefix" ]; then echo "Not define prefix." exit 1 fi sed "s/elasticsearch./$prefix.elasticsearch./g" -i template_elasticsearch_service.xml sed "s/None_pfx/$prefix/g" -i template_elasticsearch_service.xml echo "Done." exit 0
true
5197ab18467225a64d7bdc0dbf1e8547d099da82
Shell
sideeffffect/intro-to-zio
/throttling-test.sh
UTF-8
353
3.234375
3
[]
no_license
#!/usr/bin/env bash cust_func(){ ./proxy-curl -v http://facebook.com 2>&1 | grep 'HTTP/1.1 ' } # For loop 5 times for i in {1..300} do echo $(cust_func $i) & # Put a function in the background done ## Put all cust_func in the background and bash ## would wait until those are completed ## before displaying all d...
true
0df9164a95a7def597b943b0ff55e900de7dc78b
Shell
superche/toolkits
/remindme
UTF-8
437
2.703125
3
[]
no_license
#!/bin/bash title=${1} delayByMin=${2} osascript - ${title} ${delayByMin} <<END on run args tell app "Reminders" set current to (current date) set theDate to current + ((item 2 of args) * minutes) set myList to list "MyList" tell myList set newReminder to (make new reminder) set name o...
true
595c7e98eb502be4e17ef57bb75fa8c115037f2e
Shell
chelle-rr/digarch_scripts
/Mac/kryofluxmove.sh
UTF-8
1,728
3.765625
4
[]
no_license
#!/bin/bash # this script moves kryoflux output for media item into objects folder and the log into a metadata folder. BLUE='\033[0;36m' GREEN='\033[1;32m' RED='\033[0:31m' NC='\033[0m' echo -e "${BLUE}Please enter your collection number to initiate the move.${NC}" read collnum #find . -name "$collnum-*" > tempfil...
true
1cc10db2b721abb3bb7fdccc6cefa3881021aa8c
Shell
adrianriobo/crc-containers
/openshift-test/run.sh
UTF-8
539
2.515625
3
[]
no_license
#!/bin/bash set -exuo pipefail # -- privileged To avoid SELinux issues https://github.com/containers/podman/issues/3683#issuecomment-517237050 #-v /proc/modules:/proc/modules \ # -it --rm # As we want to user a non root user to run the container # and also user data from $USER # we check id -u $USER and --user 1000 ...
true
c422d0e6195b5d63643367a3508f6b7be717bf9c
Shell
haniokasai/netwalker-rootfs
/var/lib/dpkg/info/unattended-upgrades.postinst
UTF-8
1,265
3.328125
3
[]
no_license
#!/bin/sh # see: dh_installdeb(1) set -e # Do debconf stuff here . /usr/share/debconf/confmodule # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `...
true
5eb4d156677db43f2867c31c9f21e89e080c2820
Shell
Sveeeeeen/festeip-ip-updater
/updater.sh
UTF-8
786
3.421875
3
[]
no_license
#!/bin/bash # Check FIP_HOSTID if [ ! -n "$FIP_HOSTID" ]; then echo "Your need to supply the FIP_HOSTID!" exit 1 fi # Check FIP_HOSTNAME if [ ! -n "$FIP_HOSTNAME" ]; then echo "Your need to supply the FIP_HOSTNAME!" exit 1 fi # Check FIP_PASSWORD if [ ! -n "$FIP_PASSWORD" ]; then echo "Your need ...
true
ea30a6b52bb77914471e10eacf7ae47f434ca204
Shell
Bromancelot/bash-scripts
/x
UTF-8
557
3.078125
3
[]
no_license
#!/bin/bash ## -- Acme setup #FONT="xft:Liberaton Mono:pixelsize=14:antialias=true" FONT="xft:IBM Plex Mono Text:pixelsize=14:antialias=true" ## -- 3270 setup #FONT="xft:IBM 3270:pixelsize=16:antialias=true" #FONT="xft:IBM 3270:size=13:antialias=true" if [ $# -gt 0 ] && [ $1 == '-t' ]; then shift nthe "${@}...
true
9526751a830bd3760661cdf971fcc65480fb3f15
Shell
petronny/aur3-mirror
/gmpc-dynamic-playlist-hg/PKGBUILD
UTF-8
885
2.9375
3
[]
no_license
# Contributor: Andre Klitzing <andre () incubo () de> pkgname=gmpc-dynamic-playlist-hg pkgver=308 pkgrel=1 pkgdesc="A plugin for adding similar songs to playlist" arch=('i686' 'x86_64') url="http://bitbucket.org/misery/dynamic-playlist/" license=('GPL') depends=('gmpc-git' 'libmpd-git') makedepends=('pkgconfig' 'mercur...
true
27e5513cac07442816c7b19a0f154a0926ccdca9
Shell
EMBL-EBI-GCA/gca-tools
/submissions/file-manifest
UTF-8
1,478
4.25
4
[ "Apache-2.0" ]
permissive
#!/bin/sh usage="Usage: $(basename "$0") [-h | --help] [path]... Generate a file manifest for submitting to GCA at EMBL-EBI -h | --help display this help and exit This script generates a file manifest for files that you want to submit to GCA at EMBL-EBI. The script takes a list of directories or files to add...
true
4a17656c37ac8312bf8068ed3a227126a6a88f72
Shell
b115030/Codin
/src/com/DictionaryShellScripts/DictionaryBirthday.sh
UTF-8
561
3.578125
4
[]
no_license
#!/bin/bash a=0 declare -A CommonBirthday declare -A Names declare -A Birthday for ((i=0;i<50;i++)) do Names[$i]=$(cat /dev/urandom | tr -dc 'a-z' | fold -w 4 | head -n 1) Birthday[${Names[$i]}]=$(((RANDOM%12)+1)) done echo "All the names of 50 individual: " echo ${Names[@]} for ((i=0;i<12;i++)) do k=0 unset 'Com...
true
04124c50cd798e5ac6c11fb9e293c9b41c72f51d
Shell
sravanre/bash_scripts
/nicearg
UTF-8
276
3.25
3
[]
no_license
#!/bin/bash #Script that shows how arguments are used echo "\$* gives $*" echo "\$# gives $#" echo "\$@ gives $@" echo "\$0 gives $0" #showing interpretation for $* for i in "$*" do echo $i done # showing interpretation for $@ for q in $@ do echo $q done exit 0
true
646eb8f1145b3f5dc42d2043b54b942f600c60ae
Shell
CASTLE-FWK/CASTLELIB
/observationTool/bash/plotFromAllMetricsFile.sh
UTF-8
8,932
2.75
3
[]
no_license
#/bin/bash # #Plot all results from an (system)_allMetrics file. This will be brutal # # FILE=$1 FNAME=`basename $FILE .tsv` echo $FNAME NICENAME=$(echo $FNAME | awk '{split($0,a,"\_"); print a[1]}') echo "NICENAME: $NICENAME" #This is going to hurt xRange=1000 #Plot ChanGol iT and zT first #Column 5, 6 gnuplot <<- EOF...
true
d8a03de70d41b07d14734bd8f4cc82d895497100
Shell
jeroenwijdemans/valueobjects
/cd/deploy.sh
UTF-8
410
2.828125
3
[ "MIT" ]
permissive
#!/usr/bin/env bash echo 'deploy ... ' if [ "$TRAVIS_PULL_REQUEST" == 'false' ]; then openssl aes-256-cbc -K $encrypted_5a8251e4ea42_key -iv $encrypted_5a8251e4ea42_iv -in ./cd/codesigning.asc.enc -out ./cd/codesigning.asc -d gpg --fast-import ./cd/codesigning.asc ./gradlew uploadArchives -s echo "Finis...
true
56ff9f33e9564daa94fbc4a126ee25b90fdf8363
Shell
umbrella-project/umbrella-experiments
/scripts/FailOverResponseTime/linkFailureSwitchExp.sh
UTF-8
1,107
2.796875
3
[]
no_license
#!/bin/sh interfaceName1="A2" interfaceName2="A4" interval=20 simTime=100 switchIP=10.10.0.6 for j in {26..27..8} do for k in {1..5} do interval=$j echo "interval-round:" $interval "," $k ssh nebula106 "iperf3 -s -p 8080" & sleep 3 ssh nebula105 "iperf3 -c 10.6.0.6 -t $simTime -i 1 -p 8080 -P 30 > clie...
true
b25cd51c9b6dff6bcbe65d1f55b83412bafdf200
Shell
matdlu/misc
/scripts/voidlinux/findDevelPkgs.sh
UTF-8
497
3.40625
3
[]
no_license
#!/bin/sh pkgs_with_version="$(xbps-query -l | grep ii | cut -d' ' -f2 | sed '/-devel/d')" version="$(echo "$pkgs_with_version" | rev | cut -d'-' -f1 | rev)" sed_cmds="" for version in $version; do sed_cmds="-e s/-$version/-devel/ $sed_cmds" done potential_pkgs_devel="$(echo "$pkgs_with_version" | eval "sed $sed_cm...
true
3af6f283ea989cce7f32b2dfddcf536e7c3a543a
Shell
bikegriffith/dotfiles
/.bashrc
UTF-8
2,933
3.328125
3
[]
no_license
#!/bin/bash # ~/.bashrc: executed by bash(1) for non-login shells. export VIM=/usr/share/vim/vim80/ # Ruby things export RESTCLIENT_LOG=stdout export DSN='mysql://root@localhost(3306)/test' export REDIS_URL='redis://localhost:6379' # Roku things export ROKU_DEV_TARGET=192.168.1.13 export DEVPASSWORD=password # Node...
true
819f9659585f0a53c2be2bf0515e8c9cd839a5b9
Shell
blogic/ucentral-feed
/ucentral-client/files/ucentral_cmd.sh
UTF-8
304
3.109375
3
[]
no_license
#!/bin/sh cmd=$1 [ -f "$cmd" ] || { logger "ucentral_cmd: invalid paramters" exit 1 } ucode -m uci -m fs -m ubus -E capab=/etc/ucentral/capabilities.json -E cmd=$1 -i /usr/share/ucentral/cmd.uc > /tmp/ucentral.cmd [ $? -eq 0 ] || { logger "ucentral_cmd: executing $cmd failed" exit 1 } return 0
true
54b13c3ed92069a17d983e19672446f758ca06ad
Shell
vlig/cfgs
/backup/rsync-termux.sh
UTF-8
1,944
3.59375
4
[]
no_license
#!/data/data/com.termux/files/usr/bin/bash OPTS='-rltHPESh --info=progress2 --no-compress --delete --delete-excluded --delete-after' # --rsync-path="sudo rsync"' SRC="~/storage/shared/" EXCL='"/Android/","/MIUI/backup/","/DCIM/"' PORT=22 ENV=STORAGE_BACKUP_DEST OPTS_T='-aHPESh --info=progress2 --no-compress --numeric...
true
6cc6f5bed7fd3625139dcfecbfccc0dbe1f1247d
Shell
karlfloersch/remix-project
/apps/remix-ide/ci/build_and_publish_docker_images.sh
UTF-8
380
3.046875
3
[ "MIT" ]
permissive
#!/bin/bash set -e export TAG="$CIRCLE_BRANCH" if [ "$CIRCLE_BRANCH" == "master" ]; then export TAG="latest"; fi rm -rf temp_publish_docker mkdir temp_publish_docker cp -r $FILES_TO_PACKAGE temp_publish_docker ls docker login --username $DOCKER_USER --password $DOCKER_PASS docker-compose -f docker-compose.yaml ...
true
5679b635d41f02d70231ce33b3bf8171c782165d
Shell
WangSSGit/lnmt-deploy
/uninstall.sh
UTF-8
1,077
3.453125
3
[]
no_license
#!/bin/bash . ./lnmt.conf . ./include/check_os.sh . ./include/check_services.sh if [[ ${uninstall_web_yn} == "y" ]]; then Check_Exists nginx nginx_check=$? Check_Exists tomcat tomcat_check=$? if [[ nginx_check -eq 0 ]]; then echo "Nginx service will be uninstalled..." fi if [[ tomcat_check -eq 0 ]...
true
00c549b5b2e368479b56e226675f43683bc3f4e2
Shell
jketterl/openwebrx-pi-gen
/stage3/00-openwebrx-repo/00-run.sh
UTF-8
244
2.515625
3
[ "BSD-3-Clause" ]
permissive
#!/usr/bin/env bash set -euo pipefail install -m 644 files/openwebrx.list "${ROOTFS_DIR}/etc/apt/sources.list.d/" gpg --dearmor < files/openwebrx.gpg.key > "${ROOTFS_DIR}/usr/share/keyrings/openwebrx.gpg" on_chroot << EOF apt-get update EOF
true
0b69a3fa60c794894569a041ed3fb27681080f45
Shell
freebsd/freebsd-ports
/www/p5-FCGI-Spawn/pkg-install
UTF-8
544
3.53125
4
[ "BSD-2-Clause" ]
permissive
#!/bin/sh if [ "$2" != "PRE-INSTALL" ]; then exit 0 fi USER=fcgi GROUP=${USER} if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then if pw groupadd ${GROUP} ; then echo "Added group \"${GROUP}\"." else echo "Adding group \"${GROUP}\" failed..." exit 1 fi fi if ! pw usershow "${USER}" 2>/dev/null 1>&2; th...
true
febf6ac79f91a97cff8ea65ed9575c28c620f54e
Shell
iNode/dotfiles
/scripts/ee
UTF-8
365
3.0625
3
[]
no_license
#!/bin/sh cmd='emacsclient -n -a /usr/bin/vim' # TODO: parse result from grep/ack and change file.ext:line to +line file.ext if [ $# -eq 1 ]; then args=`echo $1 | perl -ne 'print if s/(.*):(\d+):?/+$2 $1/'` # cmd=echo if [ "x$args" != "x" ]; then $cmd $args else $cmd $1 fi else ...
true
0b397ad6de06884e1ef33cd516d94e370e164223
Shell
skyformat99/iconv-nkf
/test-iconv-nkf-preload.sh
UTF-8
610
3.046875
3
[ "BSD-3-Clause" ]
permissive
#!/bin/sh set -u LD_PRELOAD=`pwd`/iconv-nkf.so export LD_PRELOAD echo "Test: iconv-nkf.so: iconv(1) で柔軟なエンコーディング変換" str_in='123 あ ①' str_out=` echo "$str_in" \ |iconv --from 'UTF-8' --to 'Shift_JIS' \ |iconv --from 'Shift_JIS' --to 'EUC-JP' \ |iconv --from 'EUC-JP' --to 'ISO-2022-JP' \ |iconv --from 'ISO-20...
true
9e196b98ab84411ca11ec6bd32c62de8c3ad479b
Shell
shuming02/scripts
/fix_procs.sh
UTF-8
2,891
3.875
4
[]
no_license
#!/usr/bin/bash if [ $# -ne 1 ] then echo "The number of parameters is wrong" echo "Usage: ./script container_hostname" echo ".mt suffixed for container_hostname" exit 1 fi targethname=$1 get_containerid_from_hostname() { target_hostname=$1 echo "target: $target_hostname" chname="" ...
true
33de5de8bbd976c5ec8bb638d1639929bb6b1ce3
Shell
Foundations-of-Applied-Mathematics/Student-Materials
/UnixShell1/unixshell1.sh
UTF-8
1,564
3.875
4
[]
no_license
#!/bin/bash # remove any previously unzipped copies of Shell1/ if [ -d Shell1 ]; then echo "Removing old copies of Shell1/..." rm -r Shell1 echo "Done" fi # unzip a fresh copy of Shell1/ echo "Unzipping Shell1.zip..." unzip -q Shell1 echo "Done" : ' Problem 1: In the space below, write commands to change into ...
true
1b719323d37c3c300bb238fc7d402a72600e0b44
Shell
kokitsuyuzaki/snakemake-exercise
/level1/workflow.sh
UTF-8
634
3.34375
3
[]
no_license
#!/bin/bash # Setting mkdir -p data mkdir -p output mkdir -p output/{fastqc,multiqc} mkdir -p logs export PATH=$PATH:/home/koki/Software/sratoolkit.2.10.8-centos_linux64/bin:/home/koki/Software/fastqc/FastQC:/home/koki/miniconda3/bin srr=(`echo SRR{8452726..8453394}`) for ((i = 0; i < ${#srr[@]}; i++)) { # Step1: f...
true
289b61ad3d30d0d8a33d45da5b729b51b7ff4dbf
Shell
yosoufe/ros2_docker_image
/scripts.sh
UTF-8
1,918
4.15625
4
[]
no_license
#!/bin/bash function usage { echo "usage: ./scripts.sh [[-b ] | [-r]]" echo "-b | --build Build ros dev docker image" echo "-r | --run Run ros dev docker image" echo "-p | --push Push ros dev docker image" echo "-h | --help This message" } IMAGE_NAME=yosoufe/...
true
4ffe87ee0ecde56cb1216fb3156ea9e96eb54474
Shell
kr1sp1n/vault-webui
/scripts/build-prod.sh
UTF-8
371
2.515625
3
[ "MIT" ]
permissive
#!/usr/bin/env bash # Clean distribution directory. rm -rf dist && mkdir dist && mkdir dist/js # Bundle the main js file. # add -d switch for sourcemapping and debugging production. NODE_ENV=production browserify -e src/index.js -o dist/js/main.js \ -t envify \ -g yo-yoify \ -g unassertify \ -g es2040 \ -...
true
dca68be9f03cd20ee9edda0d132a28a55266020f
Shell
garysmith-img/digitize
/build-scripts/destroy-env.sh
UTF-8
1,017
3.5625
4
[]
no_license
#!/usr/bin/env bash set -eo pipefail if [ -z ${ENV+x} ]; then echo "ENV is unset"; exit 1; else echo "Destroying ENV '$ENV'"; fi TERRAFORM_STATE_BUCKET="io.benyon.digitize.$ENV.terraform" set +e eval "aws s3api head-bucket --bucket '$TERRAFORM_STATE_BUCKET' 2>/dev/null" TF_STATE_BUCKET_LOOKUP_RESULT=$? set -e if [...
true
c2a17bfc0e21a4105606efae2419455657426c76
Shell
codenjoyme/codenjoy-portable-linux
/up.sh
UTF-8
2,357
3.015625
3
[]
no_license
#!/usr/bin/env bash ### # #%L # Codenjoy - it's a dojo-like platform from developers to developers. # %% # Copyright (C) 2012 - 2022 Codenjoy # %% # 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...
true
63baca94b11a919a173dbe6615c2fe03c7a6a1bd
Shell
bryanchance/glitch-studio
/deprecated-bash/glitch.sh
UTF-8
487
3.0625
3
[ "MIT" ]
permissive
newFileName='glitch_'$1; cat "$1" > "$newFileName"; function i__gli() { fileSize=$(wc -c < "$1"); headerSize=1000; skip=$(shuf -i "$headerSize"-"$fileSize" -n 1); count=$(shuf -i 1-10 -n 1); for i in $(seq 1 $count);do byteStr=$byteStr'\x'$(shuf -i 0-254 -n 1); done; echo $byteStr' @ '$skip; printf $byteStr...
true
1f4bbfa2ead3e9494e9c929dac228a535d7703dd
Shell
squaresLab/ArduBugs
/builder
UTF-8
761
3.46875
3
[ "MIT" ]
permissive
#!/bin/bash DIR_SRC=/opt/ardupilot DIR_BIN="${DIR_SRC}/build/sitl/bin" mkdir -p "${DIR_BIN}" function build_make() { case $1 in rover) (cd APMrover2 && make sitl && mv APMrover2.elf "${DIR_BIN}/ardurover");; plane) (cd ArduPlane && make sitl && mv ArduPlane.elf "${DIR_BIN}/arduplane");; copte...
true
3dca8839059f016d42bf2aa0ddc1d3d62307126f
Shell
jlec/relax
/devel_scripts/backup_mailing_lists
UTF-8
880
3.390625
3
[]
no_license
#! /bin/sh # Shell script for backing up the relax mailing lists. # # This will download all of the mbox files (as well as the less useful HTML files). To run this as a cron job, a line such as the following can be added to the crontab (via 'crontab -e'): # # 5 0 * * * /data/relax/gna/backup_mailing_lists > /de...
true
91811d478c4162587c459c48fd25935fb645a6a1
Shell
ezaruba/chrome_extension
/build.sh
UTF-8
636
3.25
3
[ "MIT" ]
permissive
#!/bin/bash set -e cd "$(dirname "$0")" BASE=`pwd` VERSION=`jq -r .version manifest.json` OUTPUT_DIR="build_${VERSION}"; rm -rf "$OUTPUT_DIR" && mkdir "$OUTPUT_DIR" npm run clean ./node_modules/.bin/webpack -p cp -R build _locales fonts images lib config.js manifest.json "$OUTPUT_DIR" ( mkdir -p "$OUTPUT_DIR"/{c...
true
5d01a23018f9a957f13005610cea6c028fec1399
Shell
profstudebaker/sample-python-unittest-autograder
/grade.sh
UTF-8
973
3.796875
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Set up autograder files EXPECTED_FILES="labxx.py" if [ "$#" -eq 1 ]; then SUBMISSION_SOURCE=`pwd`/$1 else SUBMISSION_SOURCE=/autograder/submission fi if [ -d $SUBMISSION_SOURCE ]; then echo "Checking submission from $SUBMISSION_SOURCE" else echo "ERROR: $SUBMISSION_SOURCE does ...
true
091f7de305852ed6c960f4734e0ade6402ef7187
Shell
aberends/msat
/msat/custom-rpms/support-5/ntp-sync/ntp-sync/ntp-sync.sh
UTF-8
2,232
3.578125
4
[ "LicenseRef-scancode-fsf-notice" ]
permissive
#!/bin/bash # # SCRIPT # ntp-sync.sh # DESCRIPTION # Systems must use NTP to keep track of time. When the NTP # service is down, systems must rely on their internal # clock. Hence, the internal clock must be synchronised to # NTP. This is done once a day via this script, run from # cron. The name of the cro...
true
1e6afe71b2017f7107c35acbcee90b7a9d4b0649
Shell
LongfeiProjects/exotica
/.ci/after_success.sh
UTF-8
956
3.03125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash # CI after_success script: builds a debian and uploads it # # author: Wolfgang Merkt VERSION=`date +%Y.%m.%d-%H-%M` mkdir -p ~/create_deb/DEBIAN echo ' Package: exotica Version: '"$VERSION"' Architecture: all Maintainer: IPAB-SLMC, The University of Edinburgh Priority: optional Homepage: http://github.com...
true
40f7c33bbf020a6dc4ef150c296c0bad44d29d5e
Shell
Nadorrano/dotfiles
/lemonbar/.config/lemonbar/lemonbar-powerline-wal.sh
UTF-8
3,739
3.390625
3
[ "MIT" ]
permissive
#!/bin/bash # _ _ # | | | | # | | ___ _ __ ___ ___ _ __ | |__ __ _ _ __ # | | / _ \ '_ ` _ \ / _ \| '_ \| '_ \ / _` | '__| # | |___| __/ | | | | | (_) | | | | |_) | (_| | | # |______\___|_| |_| |_|\___/|_| |_|_.__/ \__,_|_| # # Launcher # pkil...
true
c4db2a5ce20cbc3740499df5a4947b409383da57
Shell
MalavikaAjit/RepetitionAndFunctions
/primeornot.sh
UTF-8
271
3.921875
4
[]
no_license
#!/bin/bash -x #check the number is prime or not read -p "Enter a number: " number i=2 while [ $i -lt $number ] do if [ $(( $number % $i)) -eq 0 ] then echo "$number is not a prime number" fi i=$(( $i + 1)) done echo "$number is a prime number "
true
8958da23a41cf4799059406690e05f6a2a64b0c9
Shell
pgillich/openstack-ccp
/deploy.sh
UTF-8
1,683
2.625
3
[ "Apache-2.0" ]
permissive
#!/bin/bash declare -A REPO WDIR="/opt" TDIR="tools/deployment/multinode" DELAY=30 TASKS=( '010-setup-client' '020-ingress' '020-lma-nfs-provisioner' '040-prometheus' '050-alertmanager' '060-kube-state-metrics' '070-node-exporter' '030-ceph' '040-ceph-ns-activate' '050-mariadb' ...
true
72cd5bb89cca044de9cc2f8c272ad765f9fec60f
Shell
aaronsapa1/big-data
/alumnos/felipegerard/GDELT/en_serie.sh
UTF-8
529
3.078125
3
[]
no_license
#! /bin/zsh for gdelt_file in *.zip do unzip -p $gdelt_file \ | cut -f3,27,31 \ | awk '{$2 = substr($2,0,2); print $0 }' \ | awk ' { evento[$1,$2]++; goldstein_scale[$1,$2]+=$3 } END { for (i in evento) print i "\t" evento[i]"\t"goldstein_scale[i]}' done \ | awk '{ evento...
true
b4d4ca15cddeb5ca6dd311a0830e31b38e5f58c3
Shell
daviortega/BITK
/stable/MD/CC-corr.sh
UTF-8
374
2.8125
3
[]
no_license
#! /bin/bash mkdir results direct=`pwd` content=(`cat .input.dat`) JOB_NAME=${content[0]} NUM_TRY=${content[1]} JOB_NUM=${content[2]} for i in $(seq 1 1 $NUM_TRY) do cd ./$i echo $JOB_NAME-$i-sim-all-nw-aligned.dcd ca_ca_corr_matrix 0 1 $JOB_NAME-$i-sim-all-nw-aligned.pdb wait cp caca_corr_DT_0_0.dat ../res...
true
10de12a8fb6579c6da4d09210dac8d93eabb1e62
Shell
salma-rodriguez/cop-6611
/scripts/start.sh
UTF-8
1,183
3.421875
3
[]
no_license
#! /bin/bash # configure cache device cac='/dev/sdc' # dm-cache kernel object tk="dm-cache.ko" # parm 1: start index of source device # parm 2: final index of source device # parm 3: the word 'cache' which must be included # parm 4: source device # parm 5: cache device # parm 6: load previous cache configuration; ot...
true
d881fbe81707bc9444de1c5c451df5795a42d730
Shell
eschabell/summit-choose-own-adventure-brms
/brms-install-demo/init.sh
UTF-8
4,919
3.375
3
[]
no_license
#!/bin/sh DEMO="Install Demo" AUTHORS="Andrew Block, Eric D. Schabell" PROJECT="git@github.com:jbossdemocentral/brms-install-demo.git" PRODUCT="JBoss BRMS" JBOSS_HOME=./target/jboss-eap-6.4 SERVER_DIR=$JBOSS_HOME/standalone/deployments/ SERVER_CONF=$JBOSS_HOME/standalone/configuration/ SERVER_BIN=$JBOSS_HOME/bin SRC_D...
true
84a526efed4007e2f12e421fce6f87a61637e21c
Shell
TGAC/grassroots-build-tools
/unix/linux/test.sh
UTF-8
194
2.875
3
[ "Apache-2.0" ]
permissive
#!/bin/bash GRASSROOTS_EXTRAS_INSTALL_PATH=/home/billy/Applications/grassroots/extras mkdir -p $GRASSROOTS_EXTRAS_INSTALL_PATH THIS_PATH="$( cd "$(dirname "$0")" ; pwd -P )" echo $THIS_PATH
true
77cc4db64ee9de834fe239ff3e96c38bfacb7cfb
Shell
c0axial/scripts
/tools/multiping.sh
UTF-8
3,929
3.40625
3
[]
no_license
#!/bin/sh # # Arquivo : multiping.sh #---------------------------------------------------------------------- # Autor e Mantenedor : # Ataliba de Oliveira Teixeira < ataliba@ataliba.eti.br or ataliba@at...
true