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
8702b1cfd930b898f1efca32721e2ad61a1366e1
Shell
vlussenburg/xlr-docker-dev-run
/resources/command.sh
UTF-8
1,054
3.34375
3
[]
no_license
#!/usr/bin/env bash # Copy downloads into 'plugins' if [ -d "/data/build/downloads/plugins" ]; then cp /data/build/downloads/plugins/* /opt/xlr/server/plugins fi # Copy to plugins cp /data/build/libs/*.jar /opt/xlr/server/plugins # Link `ext` folder find /data/src/main/resources -maxdepth 1 -mindepth 1 -type d -...
true
6b72557b5b2e36da8e8fa65682e103946d68aa13
Shell
DavidRabel-b1/ocelot
/tweaks/.bashrc
UTF-8
380
2.828125
3
[ "CC0-1.0", "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
# HINT: do not replace your "~/.bashrc" with this file, just copy what you need # # ^ ^ # +-------+ # | o_O | # | >.< |__/ # +-------+ # load a prompt that fits to "ocelot" if [[ -f ~/.bash_functions ]] ; then . ~/.bash_functions export PS1 fi # autostart X after login and takeover process of shell if [[ ! ...
true
20b820c18a728d8272928779b521dde1ab41845e
Shell
need-some/need-some-test.bash
/sample/tested-script.sh
UTF-8
260
3.28125
3
[ "MIT" ]
permissive
#!/bin/bash if [ "$1" = "add" ]; then shift a=$1 a1=$(( $a + 1 )) b=$2 b1=$(( $b - 1 )) echo $(( $a + $b )) elif [ "$1" = "sub" ]; then shift a=$1 a1=$(( $a + 1 )) b=$2 b1=$(( $b - 1 )) echo $(( $a - $b )) else echo "add|sub a b" >&2 exit 99 fi
true
8c802e911ab5a89f105c7bcd38d24c6a70faa4bc
Shell
derco0n/nagios_check_plugins
/libexec/check_snmp_server
UTF-8
20,336
3.5
4
[]
no_license
#!/bin/bash ######################################################### # # # SNMP Server Check # # # # check_snmp_server # # Version 0.6 (June 26, 2018) # # by D.Marx # # # # kleines Tool um Server per SNMP abzufragen # # # # ...
true
99813f2d283fa6d8da0218bc5152a51484ddec87
Shell
jonasbfranco/fonts
/.scripts_jonas/radio.sh
UTF-8
565
2.984375
3
[]
no_license
#!/usr/bin/env bash # Ouvir rádios online #Declarando ARRAY associativa. declare -A ip ip=( ["89 Radio Rock"]="https://streamingv2.shoutcast.com/89-a-radio-rock-sao-paulo-" ["Jovem Pan Pop Brasil"]="http://6d9a.webradio.upx.net.br:9046/stream?1597501793407" ["91Rock Curitiba"]="http://servidor40.brlogic.com:8044/l...
true
f1aab54527fd0fa442338706546921ae9e397574
Shell
miraculixx/minicf
/bin/build-image
UTF-8
2,635
4.40625
4
[ "MIT" ]
permissive
#!/bin/bash # build the buildpack files and create an image # # Use: build-image image buildpack [buildpack [...]] # # The image will be built and committed to docker with # at repository $BUILDPACK with tag latest # # 1. Build the context for docker build in $TMP/$BUILDPACK # # ./Dockerfile # ./bin # ./bin/build ...
true
7a1845509fb576deab9b05dcfc80dd106faa7d66
Shell
maudetroll/IoTSmartBeverage
/balena-containers/mysql/mysql-init/do.sh
UTF-8
689
3.078125
3
[]
no_license
#!/bin/sh while [ 1 ]; do if [ ! -f already-executed ]; then echo MYSQL_SA echo MYSQL_SP echo MYSQL_ROOT_PASSWORD echo MYSQL_U echo MYSQL_P echo starting to fill the database mysql -h mysql -u root < /usr/share/work/01-user-and-permissions.sql mysql -h...
true
319b631f383fcf546a7dbae4b24d73f1d3146cc1
Shell
caraujoufsm/UFSM-Hadoop
/scripts/reply_arch.sh
UTF-8
194
2.65625
3
[]
no_license
#!/bin/bash cat $1 >> arc0.txt for i in $(seq 1 $2); do cat $1 >> arc1.txt done for i in $(seq 1 $3); do cat $1 >> arc2.txt done for i in $(seq 1 $4); do cat $1 >> arc3.txt done
true
ecd1b20d420f8e4cbbf8af15a85414b844219fce
Shell
erickinho1bra/myProjects
/bash/interactive_script.sh
UTF-8
467
3.453125
3
[]
no_license
#!/bin/bash clear read -p "Hello, what is your first name? " FIRSTNAME read -p "$FIRSTNAME, what a lovely name! What is your last name? " LASTNAME read -p "Oh, the $LASTNAME family. Powerful people. And, lastly, how old are you? " USERAGE RESPONSETOAGE=`expr "$USERAGE" - 5` echo "Wow, you don't look a day under $RESP...
true
9a647103bdbf9a91536a7ea086c8a9ff2e2c5b11
Shell
TimothyLe/server-setup
/fedora/STARTHERE.sh
UTF-8
2,483
3.53125
4
[ "MIT" ]
permissive
#!/bin/bash # CHECK SUDO PRIVELEGE #sudo -l -U $USER if sudo -v > /dev/null; then echo "ERROR: Must be a sudoer to continue" exit fi # INSTALL NETWORK TOOLS if ! command -v ifconfig > /dev/null > /dev/null; then sudo yum install net-tools -y fi # NETWORK DETAILS NIC=$(ip addr | awk '/state UP/ {print $2}' | sed '...
true
1e7f32b2d7ff6815e16972eeacfbcb80dd75e61d
Shell
tribblix/build
/TRIBsamba4/fixit
UTF-8
581
2.875
3
[]
no_license
#!/bin/sh # # some files have "odd" names incompatible with SVR4 packaging # mv usr/share/samba/setup/cn=samba.ldif usr/share/samba/setup/cn-samba.ldif # # this is a Solaris base command # mv usr/bin/profiles usr/bin/smbprofiles mv usr/share/man/man1/profiles.1 usr/share/man/man1/smbprofiles.1 # # and this conflicts wi...
true
2a0aa240cb2317ff2ff887e7c80dc6825aef714b
Shell
offero/dotfiles
/win/zshrc
UTF-8
5,070
2.59375
3
[]
no_license
# options setopt AUTOCD # share history across multiple zsh sessions setopt SHARE_HISTORY # append to history setopt APPEND_HISTORY # adds commands as they are typed, not at shell exit setopt INC_APPEND_HISTORY # expire duplicates first setopt HIST_EXPIRE_DUPS_FIRST # do not store duplications setopt HIST_IGNORE_DUPS #...
true
4c8708b37ebf2c844c59254f82c944f25eb98b1c
Shell
AAdeleye/2019_Project-Perdictive_Exploraiton
/ubuntu_xenial_cuda_pytorchv1_3_habitatai/docker_image/install_cuda_10_1.sh
UTF-8
1,230
2.609375
3
[]
no_license
#!/usr/bin/env bash set -e export DEBIAN_FRONTEND=noninteractive TEMP_DEB="$(mktemp)" && wget -O "$TEMP_DEB" 'http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-10-1_10.1.243-1_amd64.deb' && sudo dpkg -i "$TEMP_DEB" rm -f "$TEMP_DEB" apt-key adv --fetch-keys http://developer.download.nvid...
true
8a4b8a6ec3c71f1ff6e5b3a359cf5c41228ce5ea
Shell
marionnyaboke/tbrucei_gcn
/scripts/analysis/exclude-features.sh
UTF-8
1,543
3.515625
4
[]
no_license
# #!/bin/bash # script to exclude gene features from reads counts # USAGE: # ./exclude-features.sh \ # ../../data/intermediate/tbrucei_read_counts/savage \ # ../../data/intermediate/excluded_features.txt \ # ../../data/intermediate/tbrucei_read_counts_mRNA-only/savage \ # ../../data/intermediate/tbrucei_read_counts_m...
true
e883b73899775cf2e3f3120f90d0431587283636
Shell
w4-pwr/SO2Lab
/Lab1/skrypt10/skrypt10
UTF-8
562
3.609375
4
[]
no_license
#!/bin/bash #Porównanie zawartości dwóch zadanych katalogów (argumenty skryptu). Przyporównaniu należy ignorować podkatalogi. W wyniku wyświetlić na ekranielistę plików o identycznych nazwach w obu katalogach echo "Skrypt 10" if [ $# -eq 0 ] then echo "Brak argumentów" #wypisujemy komunikat else if [[ -d ...
true
d205362654c2e1bad4f6212d7dac540cfb4f5112
Shell
sec51/cryptoengine-lib
/tools/boringssl.sh
UTF-8
335
3.046875
3
[ "ISC" ]
permissive
#!/bin/sh cd third-party GIT_CMD=`which git` # clone google boringssl into the third-party folder echo "Cloning BoringSSL..." $GIT_CMD clone https://boringssl.googlesource.com/boringssl cd boringssl #$GIT_CMD reset --hard 10a1a9d32ebba0e9db7ef3524a77e2a7b1f3b8bd mkdir build && cd build cmake .. make echo "Cloning Bor...
true
55da9ceb822580438c8b6b9134b6aa084db73275
Shell
akozlins/vhdutil
/util/quartus/components_pkg.sh
UTF-8
416
3.59375
4
[]
no_license
#!/bin/sh set -euf # find '*.cmp' files # and generate 'components' package if [ $# -ge 1 ] ; then cd -- "$1" || exit 1 fi cat << EOF library ieee; use ieee.std_logic_1164.all; package components is constant GIT_HEAD : std_logic_vector(16*4-1 downto 0) := X"$(git rev-parse --short=16 HEAD | rev)"; EOF fi...
true
76a7bd4e9b1742f9caf9578ba2b9ecaf100bd586
Shell
wws2003/StudyProjectL2.3
/samplebatchprocessing/setup/01_setupSchema.sh
UTF-8
2,082
3.46875
3
[]
no_license
#!/bin/bash # Set environment variables echo "1. Setting environment variables" source 00_setEnv.sh echo "--------------------------------" # Prepate handy PostgreSQL password file export pg_pass_file=~/.pgpass export pg_db_password_line=$pg_db_host:$pg_db_port:$connection_check_db_name:$pg_db_user:$pg_db_password ech...
true
b8388a1f0a676a1729e9aa580a9de846f6737dbe
Shell
TerryIron/sample_plugin
/new_plugin
UTF-8
1,817
3.546875
4
[]
no_license
#!/bin/bash # # Copyright (c) 2015-2018 Terry Xi # All Rights Reserved. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED # TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR # PURPOSE ARE DISCLAIM...
true
3687241d5a63f740cdcb91fa1d7f1555943fb280
Shell
woolfg/mysql-backup-sidecar
/scripts/start.sh
UTF-8
441
3.125
3
[ "MIT" ]
permissive
#!/bin/bash CRON_PATTERN=${CRON_SCHEDULE:-"5 5 * * *"} CRON_FILE=/etc/cron.d/backup mkdir -p /etc/cron.d echo -e "${CRON_PATTERN} root \ /scripts/backup.sh > /proc/1/fd/1 2>/proc/1/fd/2 \ && /scripts/rotate.sh > /proc/1/fd/1 2>/proc/1/fd/2 \n" > ${CRON_FILE} printenv | cat - ${CRON_FILE} > /tmp/cron cat /tmp/cron >...
true
4dc418a770b335f8701e60df1ba9ad48df316902
Shell
foysalit/learning-bash-for-uni
/awk/proc_by_username.sh
UTF-8
192
3.0625
3
[]
no_license
#!/bin/bash # print the process name only for user defined by argument 1 # and only the processes which contain "linux" in it ps aux | awk '($1=="'"$1"'" && $11 ~ /linux/ && NR>1) {print $11}'
true
a93d4a94359f4ff2bd4a8e385db303268c9d34d9
Shell
kissthink/main
/valgrind/PKGBUILD
UTF-8
584
2.796875
3
[]
no_license
pkgname=valgrind pkgver=3.12.0 pkgrel=2 pkgdesc="A tool to help find memory-management problems in programs" arch=('x86_64') license=('GPL') url="http://valgrind.org/" depends=('glibc>=2.23' 'glibc<2.24' 'perl') makedepends=('gdb') options=('!emptydirs' '!buildflags') source=("http://valgrind.org/downloads/${pkgname}-...
true
31aa767e30e728cafc0ca4edb5527f98c44898ae
Shell
frontapp/docker-kube-azure-node-labels
/apply_labels.sh
UTF-8
1,215
3.09375
3
[]
no_license
#!/bin/sh INSTANCE_INFO=`curl -s http://169.254.169.254/metadata/v1/InstanceInfo` UPDATE_DOMAIN=`echo ${INSTANCE_INFO} | jq --raw-output '.UD'` FAULT_DOMAIN=`echo ${INSTANCE_INFO} | jq --raw-output '.FD'` # It appears it takes a while for the pod to incorporate the node name. while [ "x$NODE" = "x" ] || [ "$NODE" = "...
true
c6bf81174ffd3df23871b3dc5bf2df4e332c7dbd
Shell
xen0l/pkgbuild
/scripts/mk-release-bootstrap
UTF-8
1,941
3.296875
3
[]
no_license
#!/bin/bash # # Create the final bootstrap kit for each pkgbuild. # if [ $# -ne 1 ]; then echo "usage: $0 <pkgbuild>" 1>&2 exit 2 else pkgbuild=$1; shift fi # Load per-pkgbuild config . $(dirname $0)/../conf/${pkgbuild}/pkgbuild.conf ${CHROOT_CREATE} /chroot/bootstrap-${pkgbuild} chroot /chroot/bootstrap-${pkgbui...
true
f59ef53e9fc2b8bc2ee16137fc7920942910ea6d
Shell
BackEndCoder/guestlist-vagrant
/web_bootstrap.sh
UTF-8
1,738
2.984375
3
[]
no_license
#!/usr/bin/env bash echo "deb http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list echo "deb-src http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list wget https://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg apt-get update apt-get install --reinstall ca-certificates apt-get -y install nano ...
true
293462b757fa0fce939061261e5951e1a1626a04
Shell
albertcp/dotfiles
/zshrc
UTF-8
2,615
2.78125
3
[]
no_license
# If you come from bash you might have to change your $PATH. export PATH=$HOME/bin:/usr/local/bin:$PATH if [ -d ~/.cargo ];then export PATH="$HOME/.cargo/bin:$PATH" fi # Path to your oh-my-zsh installation. export ZSH=$HOME/.oh-my-zsh # Set name of the theme to load. Optionally, if you set this to "random" # it'll ...
true
9497d69ea4dc8944b403d571957a183acaa95364
Shell
petitviolet/slack.sh
/install.sh
UTF-8
235
3.140625
3
[]
no_license
#!/bin/bash URL=https://raw.githubusercontent.com/petitviolet/slack.sh/master/slack DIST=/usr/local/bin/slack.sh wget $URL -O $DIST chmod +x $DIST if [ $? == 0 ]; then echo "SUCCESS!" sh -c "$DIST help" else echo "FAIL..." fi
true
312692790eaaf48bbd12f412e0c577870d0cdf65
Shell
idyakov/bastion_host_asg
/user_data.sh
UTF-8
573
2.703125
3
[]
no_license
#!/bin/bash echo "------------------------Start------------------------------" sudo su yum -y update yum -y install httpd echo "<html><body bgcolor=black><center><h2><p><font color=red>WebServer_AWS_High_Availability</h2></center></body></html>" > /var/www/html/index.html PrivatIp=`curl http://169.254.169.254/latest/...
true
f0304120f88a2747e33835b3aa261f40f92fa085
Shell
linoproject/blog
/nginx_certificate/script-prepare-cert.sh
UTF-8
826
2.53125
3
[]
no_license
### Note substitute test.local with your FQDN # CA openssl genrsa -aes256 -out ca.key 4096 openssl req -new -x509 -key ca.key -days 365 -sha256 -subj "/C=IT/ST=Italy/L=Cremona/O=RD/OU=RD/CN=test.local" -out ca.crt #Server openssl genrsa -aes256 -out server.key 4096 openssl req -subj "/CN=test.local" -sha256 -new -key...
true
9b2857be885fde56c97c27431ab19c34d91b5d9c
Shell
mururu/elixir-build
/install.sh
UTF-8
364
3.6875
4
[ "MIT" ]
permissive
#!/bin/sh set -e if [ -z "${PREFIX}" ]; then PREFIX="/usr/local" fi BIN_PATH="${PREFIX}/bin" SHARE_PATH="${PREFIX}/share/elixir-build" mkdir -p "${BIN_PATH}" mkdir -p "${SHARE_PATH}" for file in bin/*; do cp "${file}" "${BIN_PATH}" done for file in share/elixir-build/*; do cp "${file}" "${SHARE_PATH}" done ...
true
a73037e08a8084442751b79042510b2fcc33a2d9
Shell
freexyz/oe
/install-oe
UTF-8
2,540
3.84375
4
[]
no_license
#! /bin/bash # # OEBASE=$(pwd) ## Provide an echo that supports -e and -n # If formatting is needed, $ECHO should be used case "`echo -e -n test`" in -[en]*) ECHO=/bin/echo ;; *) ECHO=echo ;; esac ## Set color commands, used via $ECHO # Please consult `man console_codes for more information # under the...
true
27a65d7d83d725086730822e340a00473431828d
Shell
gauee/git-stats
/scripts/export-utils.sh
UTF-8
1,845
4.15625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash __title_regex="^=+ (.*) =+$" export_deactivate() { unset EXPORT_ACTIVATED log_debug "EXPORT_ACTIVATED: $EXPORT_ACTIVATED" } export_activate() { EXPORT_ACTIVATED=true log_debug "EXPORT_ACTIVATED: $EXPORT_ACTIVATED" } export_get_dir() { echo "$_repo_location/git-stats-exports" } export_create_f...
true
722fd819ddc55d7067390864193abab2d0e2365c
Shell
xgoods/CSGOscores
/getCSGO.sh
UTF-8
7,694
3.734375
4
[]
no_license
#!/bin/bash #sort tmpGameResultsComma.txt | uniq -u #start on parsing results.html date=`date` dateSplit=() dateIndex=0 folderDateIndex=0 resultDate=() resultDateIndex=0 gameFolderDate2=() #date +%B' '%C' '%Y start=`date +%s` function getTmpMatchResults() { if [ -d ~/Desktop/csgostuff ] then : ...
true
1c06077253d36a03ab477a698333da6e64b94f6e
Shell
Klowar/cdb
/src/client/client.sh
UTF-8
182
3.125
3
[ "MIT" ]
permissive
#!/bin/bash # Super simple client for socket based server host=$1 port=$2 if [ -z "$1" ]; then host="localhost" fi if [ -z "$2" ]; then port="9999" fi nc "$host" "$port"
true
2bd1b400d70369561545fef40c846d5c49242ae6
Shell
roongr2k7/smart-contract
/docker/scripts/init-tendermint.sh
UTF-8
516
3.078125
3
[ "MIT" ]
permissive
#!/bin/bash CONFIG_PATH="/tendermint/${HOSTNAME}/config" SEED_HOST=${3:-genesis-tendermint} SEED_CONFIG_PATH="/tendermint/${SEED_HOST}/config" if [[ $HOSTNAME =~ ^.*-0$ ]] || [[ $HOSTNAME == 'genesis-tendermint' ]]; then tendermint init --home=/tendermint/${HOSTNAME} echo '' > /tendermint/seed_id else te...
true
fd0cb21b87b26ddfdb29e356c2b1a9c36e977366
Shell
zk1132/bwtracker
/files/usr/bin/mac2vendor
UTF-8
565
3.515625
4
[]
no_license
#!/bin/sh . /usr/share/libubox/jshn.sh DB_PATH=/usr/share/mac2vendor [ ! -d "$DB_PATH" ] && mkdir -p $DB_PATH cd "$DB_PATH" [ -z "$1" ] && exit 1 if [ -e "$1" ]; then : else LINK=http://www.macvendorlookup.com/api/v2 wget "$LINK/"$1"" &> /dev/null || exit 1 fi DATA=`cat "$1"` if [ "${DATA:0:1}" = "[" ]; then ...
true
0f96b8a9983debc2baaa476f0ae9f9fe8e74e521
Shell
xhlstar/bash
/bash/single.sh
UTF-8
176
2.8125
3
[]
no_license
#!/bin/bash trap " exit " SIGINT SIGTERM echo this is test command count=1 while [ $count -lt 10 ] do echo $count sleep 5 let count+=1 done echo This is end of script
true
9985b340ae81f3dadaa5c476c133863cae9c4062
Shell
Arch-Linux-MIPS/packages-core
/systemd/systemd.install
UTF-8
4,770
3.84375
4
[]
no_license
#!/bin/bash sd_booted() { [[ -d run/systemd/system ]] } add_privs() { if ! setcap "$2" "$1" 2>/dev/null; then echo "==> Warning: setcap failed, falling back to setuid root on /$1" chmod u+s "$1" fi } add_journal_acls() { # ignore errors, since the filesystem might not support ACLs setfacl -Rnm g:wh...
true
d7fb37040618545ba4cc1b7419013885e29b8600
Shell
sscaglione/smallerProjects
/caesar.sh
UTF-8
636
3.984375
4
[]
no_license
#!/bin/sh usage(){ echo "Usage: $0 [rotation]" echo echo "This program will read from stdin and rotate (shift right) the text by" echo "the specified rotation. If none is specified, then the default value is" echo "13." exit 1 } if [ $# -eq 0 ]; then key=13 elif [ "$1" = "-h" ]; then usage else key=$(($1%26...
true
ce527bc51562e8039cd661fb39d7705b402ec96c
Shell
gregorg/ansible-roles
/pg-replication/files/pg_purge_archives
UTF-8
1,278
4.15625
4
[]
no_license
#!/bin/bash # Purge and compress WAL archives ARCHIVE_PATH="$1" # in GB MAXDISKSPACE=$2 MAXDAYS=$3 LOG=/var/log/postgresql/purge-archives.log COMPRESS=/usr/bin/pigz compressed=0 lockfile=/tmp/pg_purge_archives.lock # To GB MAXDISKSPACE=$(( $MAXDISKSPACE * 1024 * 1024 )) if [ -e $lockfile ] then echo "$( date -R ) :...
true
62d6cebecc7fd4dd72168c6fcb4a1355db31ec10
Shell
zsunberg/config
/.kde/share/icons/DarkFuture/colorize.sh
UTF-8
2,652
3.609375
4
[]
no_license
#!/bin/sh # # Dark Future Colorizer # # Authors: Claudio (CoD) Canavese <cod@cod-web.net> # Version: 0.1 # Description: Automagically colorize the Dark Future KDE 4 icon theme creating a new theme # Last modified: 2010/09/06 # # Changelog: # 0.1 first version of this wonderful script # # This...
true
765f2396d3ac37edb1d4679fec51d931b0b299af
Shell
beekpr/docker-postgres-create-db
/run.sh
UTF-8
543
3.46875
3
[]
no_license
#!/bin/bash databaseName=${PSQL_NEW_DB_NAME} password=${PSQL_NEW_DB_PASSWORD} if [[ -z "$databaseName" ]]; then echo "missing PSQL_NEW_DB_NAME env variable" exit 2 fi if [[ -z "$password" ]]; then echo "missing PSQL_NEW_DB_PASSWORD env variable" exit 2 fi cat > create.sql << EOF CREATE ROLE "${databaseName...
true
317db8562f31734766b955006d16963a9b4366c0
Shell
rcbops/rpc-ceph
/tests/network_interfaces/rpm_interface_ifup-post.cfg.j2
UTF-8
1,556
3.28125
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # Copyright 2014, Rackspace US, Inc. # Copyright 2017, SUSE LINUX GmbH. # # 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
d2c69f30cf634c4ce2a9247b0602adab7f07b1c0
Shell
danteaguiar/archbackup
/Mate-wallp-changer.sh
UTF-8
452
3.234375
3
[]
no_license
# Script to randomly set Background from files in a directory while true;do # Directory Containing Pictures DIR="/Your/Wallpapers/Folder" # Command to Select a random jpg file from directory # Delete the *.jpg to select any file but it may return a folder PIC=$(ls $DIR/*.jpg | shuf -n1) # Command to set Background I...
true
8fcefe2131a9469dc50ef49307e9a1d185c07f67
Shell
cityofsmiles/myscripts
/bash-scripts/feh-change-background.sh
UTF-8
357
2.84375
3
[]
no_license
#!/usr/bin/bash #img=(`find /home/jonathan/Documents/wallpapers -name '*' -exec file {} \; | grep -o -P '^.+: \w+ image' | cut -d':' -f1`) #wallpapers='/home/jonathan/Documents/wallpapers' sleep 10s while true do # feh --bg-scale "${img[$RANDOM % ${#img[@]} ]}" feh --bg-scale --randomize /home/jonathan/Documents/l...
true
3304f76481a4973f831fd7dbc945a681f1b3c86f
Shell
Reregistered/games-framework
/tools/setup.sh
UTF-8
5,492
3.765625
4
[ "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
#!/bin/bash # Copyright 2012 Google Inc. All Rights Reserved. # Games Framework unix setup script # This script will install all dependencies to the system. # The dependencies are all global, and require root to install. If no package # manager is supported on your system (or this file doesn't support yours) # pleas...
true
823e2bc8af8698034fbe5b4436b6a3180f80198e
Shell
salahbesbes/holberton-system_engineering-devops
/0x05-processes_and_signals/8-beheaded_process
UTF-8
135
2.703125
3
[]
no_license
#!/usr/bin/env bash # seatch the pid of an other program by name; kill that program pid=$(pgrep -f "./7-highlander") kill -KILL "$pid"
true
9200a09cc5064092097ad910ed218ac0d85a7cb2
Shell
BradDenver/dotfiles
/.bash_profile
UTF-8
249
3.078125
3
[]
no_license
# .bash_profile # User specific environment and startup programs PATH=$PATH:$HOME/bin if [ -d "$HOME/.local/bin" ]; then PATH="$HOME/.local/bin:$PATH" fi export PATH # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi
true
71f704c784777eb1c716e323eb9357391ef3b5d9
Shell
tencentyun/cos-c-sdk-v5
/gen_lcov.sh
UTF-8
1,481
2.609375
3
[ "MIT" ]
permissive
#!/bin/sh workspace=`pwd` EXTRACT="${workspace}/cos_c_sdk/cos_auth.c ${workspace}/cos_c_sdk/cos_bucket.c ${workspace}/cos_c_sdk/cos_buf.c ${workspace}/cos_c_sdk/cos_fstack.c ${workspace}/cos_c_sdk/cos_http_io.c ${workspace}/cos_c_sdk/cos_http_io.h ${workspace}/cos_c_sdk/cos_list.h ${workspace}/cos_c_sdk/cos_log.c ${wor...
true
08d1e8194ca7d598df255ee25be11d22c66bb100
Shell
iSynaptic/base-ubuntu-env
/scripts/common.sh
UTF-8
996
3.8125
4
[]
no_license
#!/bin/bash if [ "$COMMON_SCRIPT_LOADED" = "1" ]; then return fi export ANSI_COLOR_RED='\033[0;31m' export ANSI_COLOR_GREEN='\033[0;32m' export ANSI_COLOR_YELLOW='\033[0;33m' export ANSI_COLOR_NONE='\033[0m' # No Color function installing() { doing "Installing" "$1" } function configuring() { doing "Con...
true
d5c000536c135c681eb38a39063a887be6d84d4f
Shell
simonzsolt/linux-setup
/update-slack
UTF-8
382
3.078125
3
[]
no_license
#!/bin/bash LATEST="$( curl -s https://slack.com/downloads/linux | grep 'Version' | cut -d ' ' -f 2 | cut -d '<' -f 1 )"; URL_PREFIX=https://downloads.slack-edge.com/linux_releases/; APP=slack-desktop; SUFFIX=amd64.deb; sudo mkdir /tmp/slack-deb; cd /tmp/slack-deb; sudo curl -LO $URL_PREFIX$APP-$LATEST-$SUFFIX; sudo d...
true
4941cb391c5b05d583c6434f893f53c6227d2217
Shell
tectronics/socialgossip
/Shared/misc/cli/experiment-ls
UTF-8
329
3.296875
3
[]
no_license
#!/bin/bash . $BASH_LIB/common.lib checkenv TPL_HOME=`analyzer -t python -V attribute=experiment.TEMPLATES_ROOT misc.cli.ReadAttribute 2> /dev/null` echo "" echo "Available templates are:" counter=0 for i in `ls -R $TPL_HOME`; do if [ -f $TPL_HOME/$i ] then let counter=counter+1 echo ${counter}: $i ...
true
cbfa5f2bd2bbc48d0495bb6f2760e4720aa1c367
Shell
david-eve-za/misc
/ffmpegARM.sh
UTF-8
1,849
3.109375
3
[]
no_license
#!/bin/bash sudo apt update -qq sudo apt -y install \ autoconf \ automake \ build-essential \ cmake \ git-core \ libass-dev \ libfreetype6-dev \ libsdl2-dev \ libtool \ libva-dev \ libvdpau-dev \ libvorbis-dev \ libxcb1-dev \ libxcb-shm0-dev \ libxcb-xfixes0-dev \ pkg-config \ texinfo...
true
09d90819914b2e928ace0c693d739f4dbcf629e1
Shell
dalreak/hanium-webServer
/public/javascripts/proj4js/publish.sh
UTF-8
421
2.90625
3
[ "MIT" ]
permissive
#!/bin/bash # get current version VERSION=$(npm ls --json=true proj4js | grep version | awk '{ print $2}'| sed -e 's/^"//' -e 's/"$//') # Build git checkout -b build node_modules/.bin/grunt git add dist -f git commit -m "build $VERSION" # Tag and push git tag $VERSION git push --tags git@github.com:pro...
true
06123e1c478fbb93478261c481814ec93c556f09
Shell
pcarranza/dotfiles
/activate.sh
UTF-8
1,002
3.15625
3
[]
no_license
#!/bin/bash if [ ! -f activate.sh ]; then echo "This script should be run from the .dotfiles dir" exit 1 fi git submodule init git submodule update cd ~ ln -s .dotfiles/gitconfig .gitconfig ln -s .dotfiles/githelpers .githelpers ln -s .dotfiles/gitignore .gitignore ln -s .dotfiles/vim .vim ln -s .dotfiles/vi...
true
9289236e034697038050d050e835516b12b2de7d
Shell
knowit/kubernetes-workshop
/apps/kubetools/kubetools.sh
UTF-8
405
2.875
3
[]
no_license
: "${LINUX_DIR:?Needs to be non-empty.}" # Show kube context and namespace in PS1. Use kubeon and kubeoff to retry. sed s%###LINUX_DIR###%$LINUX_DIR% kubetools_bashrc_template.sh >> ~/.bashrc # Auto completion for path/kube{ctx,ns} sudo cp kubectx_completion/* /etc/bash_completion.d sudo chmod u=rw,g=r,o=r /etc/bash_...
true
3459c09281a35d18242bf28b7f1afe5713e11034
Shell
brian-arnold/machina
/result/sims/clustering/pyclone_slurm_binomial.sh
UTF-8
914
2.953125
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash for m in {m5,m8} do for p in {mS,S,M,R} do for f in ../../../../data/sims/$m/$p/reads_seed*.tsv do s=$(basename $f .tsv | sed -e s/reads_seed//g) echo Generating PyClone slurm file for seed $s pattern $p... f="${m}_${p}_${s}.slurm" ...
true
a49c42133dbe199603c49a9c6d5cbe4259851714
Shell
walkerverchiel/EECS2031Lab09
/waitForButtonPress.sh
UTF-8
186
2.96875
3
[]
no_license
#!/bin/bash b=$(gpio read 5); until [ $b -eq 0 ] do # sleep 0.25 let b=$(gpio read 5) done until [ $b -eq 1 ] do # sleep 0.25 let b=$(gpio read 5) done echo "Setting Value..."
true
198849c51e127a9868b38d3d203e8aa22734ffeb
Shell
Landmark25/testcases
/Adebayo/java/ebay/backfile2.sh
UTF-8
466
2.71875
3
[]
no_license
#! /bin/bash # FOR multi line comment <<com Author: Ayomide Year:2021 OS:Linux Purpose: This script will monitor servers and create alarms echo Multi line comment ends The lines below re multi tier and they need to be structured com touch /tmp/class25 # class25 file will be created in the tmp directory # move ...
true
e05a99e7af7f9af3e4671108c332cc6992879000
Shell
wahello/mining-monitoring
/cmd/deploy/start_deploy.sh
UTF-8
156
2.65625
3
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash PIDS=`ps -ef | grep deploy | awk '{print $2}'` for pid in $PIDS do kill -9 $pid done nohup ./deploy >> deploy.log 2>&1 & echo "done"
true
3ae7d7c27f6f2e20f9aa7b6d37787a890fa1b8e0
Shell
boltKrank/k8s-terraform
/lab_2_1/gcs_terraform_lab_2_1/files/kube_ubuntu.sh
UTF-8
692
2.875
3
[]
no_license
#!/bin/bash # This installs Kubeadm, Kubelet, and Kubectl # # Has only been tested on Ubuntu 18.04.05 LTS # # docker_ubuntu.sh needs to be run before as a pre-req. # Install the k8s GPG key curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - # Add the k8s repo (bionic isn't available ...
true
66ecfd7ffa76ceb9002248955b383ad8d3805d1d
Shell
Oftime117/TOEFL_Extract
/Extraction/script/script.sh
UTF-8
2,502
3.484375
3
[]
no_license
#!/bin/bash # Florian TALOUR & Tristan LE NAIR # le dossier wapiti principal est supposé dans le même répertoire que ce fichier # le dossier data contenant train.txt aussi # si l'opération a été interompu il faut supprimer les fichiers qui n'avaient pas finis d'être créés if [ "$1" -eq "1" ]; then # supprime tout rm ...
true
b1d9dd1f44d434d0ac4ab53b3db563452c719e4f
Shell
thomhastings/bt5-scripts
/c0ntempt/bash/get-sublime.sh
UTF-8
324
3.0625
3
[ "BSD-3-Clause", "MIT" ]
permissive
#!/bin/sh cd /tmp MACHINE_TYPE=`uname -m` if [ ${MACHINE_TYPE} = 'x86_64' ] then URL="http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3066_amd64.deb" else URL="http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3066_i386.deb" fi FILE="sublime.deb" wget -N "$URL" -O $FILE && sudo dpkg -i $FILE -y #rm $F...
true
5f84c95069244176d818fc86b9dcb31fa802952e
Shell
dingwell/dotfiles
/bin_files/autostart.sh
UTF-8
439
3.140625
3
[]
no_license
#!/bin/bash # Script used to auto-start different applications depending on the current desktop environment if [ $DESKTOP_SESSION == "kde-plasma" ]; then echo "KDE detected, launching KDE-specific apps" nm-applet & ubunutu-control-panel-qt --with-icon & yakuake & elif [ $DESKTOP_SESSION == "ubuntu" ]; then e...
true
fba9125117b28ad94adfb829d855475405689485
Shell
pranavenzo/CS252
/lab5-src/test/test6-4.sh
UTF-8
950
3.21875
3
[]
no_license
# get the name and path of the current file except for the .sh extension testcase=${0%\.*} reqfile="$testcase.req" resfile="$testcase.org.res" outfile="$testcase.out.res" cmpfile="$testcase.cmp" host=$1 port=$2 verbose=$3 printf "POST /script/pizza.py HTTP/1.0\r\n" > $reqfile printf "Content-Length: 26\r\n" >> $reqfi...
true
7568c1f44fa3a62e77e264a76cfdb9531cdbfff0
Shell
hyperf/hyperf
/.travis/setup.pgsql.sh
UTF-8
375
2.96875
3
[ "BSD-3-Clause", "WTFPL", "MIT", "Apache-2.0", "LGPL-2.1-only", "LGPL-2.1-or-later" ]
permissive
#!/usr/bin/env bash CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) TRAVIS_BUILD_DIR="${TRAVIS_BUILD_DIR:-$(dirname $(dirname $CURRENT_DIR))}" echo -e "Init PostgreSQL database..." echo "127.0.0.1:5432:postgres:postgres:postgres" > ~/.pgpass chmod 600 ~/.pgpass psql -h 127.0.0.1 -p 5432 -d postgres -U...
true
df399a8e9d329e97f9284f6b92e342dcbcf66e09
Shell
wp-pay/travis-ci-test
/scripts/install.sh
UTF-8
1,187
3.5
4
[]
no_license
#!/bin/bash # Delete WordPress rm -rf ./wordpress/ # Download WP-CLI wget -O wp-cli.phar https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar # Make sure WP-CLI is executable chmod +x wp-cli.phar # Check if WP-CLI works php wp-cli.phar --info # Download WordPress into `wordpress` direc...
true
b5bdb56136a633d75104c1837b27125ffd4be70d
Shell
HemilModi/Hemil_Modi
/Lab_4/Shell_script_4.sh
UTF-8
383
3.71875
4
[]
no_license
echo "Enter a number to find out if it is prime or not" read num n=`expr $num / 2 ` i=2 flag=0 if [ $num == 2 ] then flag=0 elif [ $num == 3 ] then flag=0 else while [ "$i" -le "$n" ] do d=`expr $num % $i ` if [ $d == 0 ] then flag=1 fi i=`expr $i + 1 ` done fi if [ $flag == 1 ] then ech...
true
8b8ad565fde883c69f47c5a8225fef58cc4a3c16
Shell
iduhao/bash
/loop.sh
UTF-8
180
2.765625
3
[]
no_license
#!/bin/bash #使用嵌套循环打印图案 # for((i=1;i<=5;i++)) do for m in `seq $i` do echo -n "*" done echo "" done #====================== #* #** #*** #**** #*****
true
4a89f2722f71e0cc842c5042d80e2f960ba20afc
Shell
papeh/sldr
/bin/sldr-flat-publish.sh
UTF-8
1,565
4.0625
4
[ "MIT" ]
permissive
#!/bin/sh help () { cat << EOT $(basename $0) [-h | [-d] [-p] [-s]] TARGET TARGET may be of the form: user@host -- for default document root based on hostname user@host:docroot -- for a custom docroot :/local/path -- for rsyncing to a local path -h Print this help. -d Dry-run print the commands executed a...
true
b233fa51af98ddbd27b00b836e93023d5bd9aabf
Shell
bridgecrew-perf6/deploy-549
/deploy.sh
UTF-8
691
2.796875
3
[]
no_license
#!bin/bash/ times=$(date +%s) echo Hi, I was created to deploy a term paper Boyko Bogdan echo --Start deploy environment-- echo Now mount the site sleep 5 sudo mkdir /home/graf git clone https://github.com/Lucky-graf/site-car.git /home/graf/ sudo mkdir /var/www/ sudo mv /home/graf/deploy/site-car /var/www/ echo Deploym...
true
3690d0eefb97e885a78f67ad644b5d918721ba99
Shell
tlhc/shell_for_nas
/www/cgi-bin/recv/respose_sys_log.sh
UTF-8
1,991
3.28125
3
[]
no_license
#!/bin/sh #=============================================================================== # # FILE: respose_sys_log.sh # # USAGE: ./respose_sys_log.sh # # DESCRIPTION: # # OPTIONS: --- # REQUIREMENTS: --- # BUGS: --- # NOTES: --- # AUTHOR: YOUR NAME (), # ORGANI...
true
3e83aa189b78c88d4faee1b1fcb6284af3d50c64
Shell
php/systems
/maintain-pear
UTF-8
322
2.5625
3
[]
no_license
#!/bin/sh # # $Id$ # # regular housekeeping for PEAR # #if test "$how" = "weekly"; #then # # clean trackbacks that are marked as spam # /usr/bin/env php /local/web/pear.php.net/cron/trackback-cleanup.php #fi if test "$how" = "monthly"; then /usr/bin/env php /local/web/pear.php.net/cron/bug-summary.php > /dev/null f...
true
9bd4419b5e4f70b0b16d44c0fa02653e587e7c1d
Shell
RickCogley/dotfiles
/zsh/.zshenv
UTF-8
1,429
3.390625
3
[ "MIT" ]
permissive
# `.zshenv' is sourced on all invocations of the shell, unless the -f # option is set. It should contain commands to set the command search path, # plus other important environment variables. `.zshenv' should not contain # commands that produce output or assume the shell is attached to a tty. # # Do not modify this fi...
true
d5cf3f3630d76548206855312b36542bb5bd4eb3
Shell
zentech/webPhotoAlbum
/webPhotoAlbum.sh
UTF-8
2,916
4.28125
4
[]
no_license
#!/bin/bash #photo album script #script to generate webpages for wiewing pictures #script takes one argument which is the picture directory, and should be one level down. #This script changes directory and creates html/javascript code for viewing pictures. #Finally, builds a link to be send to friends for viewing of t...
true
52443a3e7b7df10681a552c00b1f569bd5bbe0fb
Shell
lowRISC/opentitan
/hw/ip/otbn/dv/smoke/run_smoke.sh
UTF-8
1,714
3.5625
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/bin/bash # Copyright lowRISC contributors. # Licensed under the Apache License, Version 2.0, see LICENSE for details. # SPDX-License-Identifier: Apache-2.0 # Runs the OTBN smoke test (builds software, build simulation, runs simulation # and checks expected output) fail() { echo >&2 "OTBN SMOKE FAILURE: $*" ...
true
5eb079d0a4be3b99902d2087c8b009cbee0e2760
Shell
yoya/x.org
/X11R6/contrib/programs/xcolorize/xcolorize.sh
UTF-8
4,192
3.484375
3
[]
no_license
#! /bin/sh # $Id: xcolorize.sh,v 6.1 94/05/25 13:53:51 dd Exp $ # Copyright (c) 1994 David DiGiacomo david@slack.com # # The X Consortium, and any party obtaining a copy of these files from # the X Consortium, directly or indirectly, is granted, free of charge, a # full and unrestricted irrevocable, world-wide, paid u...
true
1c0ee4bf348d80afa46a56abc6037469a9ecf4df
Shell
elastic/terraform-provider-ec
/scripts/update-provider-version.sh
UTF-8
877
4.34375
4
[ "Apache-2.0", "MPL-2.0", "BSD-3-Clause", "0BSD", "MPL-2.0-no-copyleft-exception", "BSD-2-Clause" ]
permissive
#!/usr/bin/env bash # # This script takes in a single parameter with the current provider version # and updates all the files that contain a declaration of the 'ec' provider # to use the current version. # set -e echo "-> Updating the version field on references to the previous 'ec' provider declaration" declare -a...
true
e9b0cfa69799bfb2bcbd26c0a3be077b76397665
Shell
TheMdTF/mdtf-public
/apis/image-analysis/go-example/docker/run-docker-image.sh
UTF-8
275
3.171875
3
[]
no_license
#!/bin/bash COMPANY_NAME=$1 HOST_PORT=$2 if [ -z $COMPANY_NAME ]; then COMPANY_NAME=unknown fi if [ -z $HOST_PORT ]; then HOST_PORT=8080 fi #run the docker image in detached mode - forward a host port docker run -d -p "$HOST_PORT":8080 ${COMPANY_NAME}-image-analysis
true
af279cc31b2b9aa22665fce8e5ae481b04c82192
Shell
Matovic/bash
/z5.sh
UTF-8
5,656
3.078125
3
[]
no_license
#! /bin/bash # # Meno: Erik Matovic # Kruzok: Piatok 8:00, Ing. Juraj Petrik # Datum: 09.12.2020 # Zadanie: zadanie05 # # Text zadania: # # Zistite, ktori pouzivatelia sa prihlasuju na server OS z viac ako 10tich roznych # strojov za poslednu dobu (odkedy system zaznamenava tieto informacie). # Ak bude skript spusteny...
true
9178130cc91d7f0eecc83b5289b3ef4d2ace1fb7
Shell
AindriyaBarua/s4-shell-programming
/lab1/10.sh
UTF-8
110
3.1875
3
[]
no_license
#!/bin/bash i=1 mkdir $1 while[$i -le $2] do echo "enter filename:" read fn cp $fn $1 i=`expr $i + 1` done
true
1ecfe3ea2f12f501bac5e2a86b36b5a521cd05b8
Shell
rushairer/FrameworkTest
/build_sdks.sh
UTF-8
1,767
3.421875
3
[]
no_license
#!/bin/sh # build_sdks.sh # # Created by Abenx on 2021/2/27. # ROOT_DIR=`PWD` BUILD_DIR=$ROOT_DIR/\build TARGET_LIST=(FrameworkTest) clean() { rm -rf build/* mkdir -p build/release } build() { for element in ${TARGET_LIST[@]} do buildTarget $element done } buildTarget() { cd $ROOT_DIR xcodebuild archive \ -sche...
true
06770f0a958f52b6d4e230a0d594854151f00192
Shell
CyanogenModXT720/openrecovery_xt720
/OpenRecovery/sbin/date
UTF-8
134
2.9375
3
[]
no_license
#!/sbin/bash if [ "$TZ" == "" ]; then if [ -f /etc/timezone ]; then export TZ=`awk 'NR==1' /etc/timezone` fi fi busybox date $@
true
8f12222478de24377261fc2b2214008850c9d823
Shell
fabrik-red/images
/aws_firstboot
UTF-8
1,033
3.53125
4
[]
no_license
#!/bin/sh # KEYWORD: firstboot # PROVIDE: aws_firstboot # REQUIRE: NETWORKING # BEFORE: LOGIN : ${user=devops} . /etc/rc.subr name=aws_firstboot rcvar=aws_firstboot_enable start_cmd="${name}_run" SSHKEYURL="http://169.254.169.254/1.0/meta-data/public-keys/0/openssh-key" aws_firstboot_run() { eval SSHKEYFI...
true
ad625ee33f4de65ba8b9377510dbb41392c2c645
Shell
xhaa123/alps
/alps-new/var/cache/alps/scripts/postgresql.sh
UTF-8
3,236
3.328125
3
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e set +h . /etc/alps/alps.conf . /var/lib/alps/functions . /etc/alps/directories.conf cd $SOURCE_DIR NAME=postgresql VERSION=12.3 URL=http://ftp.postgresql.org/pub/source/v12.3/postgresql-12.3.tar.bz2 SECTION="Databases" DESCRIPTION="PostgreSQL is an advanced object-relational database management ...
true
2561e98b9cea6e7d979fb8124f45b5f8320f9c73
Shell
sunny04sam/ibex
/IBEX
UTF-8
5,961
3.59375
4
[]
no_license
#!/bin/bash DEFAULT_MODE="t" [[ $1 = "" ]] && MODE=$DEFAULT_MODE || MODE="$1" function usage { printf "\033[1;31mArgument(s) error\033[0m\n" echo "usage : IBEX <mode> <project> <action> <environment> <region>" echo " : When mode t for terraform." echo " : Default project is live. Action can...
true
84ed7aeacabc7823bddeebf9d2c9964a42fe70f6
Shell
ScriptnKitten/scripts
/monitor.sh
UTF-8
543
3.796875
4
[]
no_license
#!/bin/bash #finds the current external wireless adapter, places it into monitor mode, and runs aircrack-ng INTERF=$(ifconfig | grep wlp0 | cut -b 1-11) case $INTERF in "wlp0s26u1u1") ;; "wlp0s26u1u2") ;; "wlp0s29u1u1") ;; "wlp0s29u1u2") ;; *) INTERF="no" ;; esac if [ ! "$INTERF" = "no" ]; then echo ...
true
34499631b4b5e84cdaf051d9fd770b10200ff202
Shell
PariveshG/QuorumMakerWithTruffle
/TestNetwork/node1/migrate_to_tessera.sh
UTF-8
2,105
3.375
3
[ "Apache-2.0" ]
permissive
#!/bin/bash tessera="java -jar /tessera/tessera-app.jar" tessera_data_migration="java -jar /tessera/data-migration-cli.jar" tessera_config_migration="java -Djavax.xml.bind.JAXBContextFactory=org.eclipse.persistence.jaxb.JAXBContextFactory -Djavax.xml.bind.context.factory=org.eclipse.persistence.jaxb.JAXBContextFactory...
true
ba60ab024ce4a9419c497a9d1b2f9b14eec15d6d
Shell
bertvv/scripts
/src/buildcp.sh
UTF-8
869
4.34375
4
[]
no_license
#! /bin/bash # # buildcp -- builds a classpath with all jars in the specified directories. # # Author: Bert Van Vreckem, 2002, 2012 # These are the directories searched by default. DEFAULT_DIRS=/usr/share/java # These directories or jars are always added. CP=. # These are de directories to be searched. DIRS= functi...
true
bd7a8539d2928754e306a1b285c5091dfba050c5
Shell
andymiaomiao/framework-repositories
/databases/redis/conf/redis-rdb-day.sh
UTF-8
531
2.59375
3
[ "Apache-2.0" ]
permissive
#!/bin/sh cur_date=`date +%Y%m%d%k` #当前时间精确到小时 rm -rf /usr/local/redis-3.2.9/backups/$cur_date #删除当前时间的目录 mkdir /usr/local/redis-3.2.9/backups/$cur_date #新建当前时间的目录 cp /usr/local/redis-3.2.9/dump.rdb /usr/local/redis-3.2.9/appendonly.aof /usr/local/redis-3.2.9/backups/$cur_date #将rdb文件copy到当前时间创建的目录 del_date=`dat...
true
45553394c09a2d7063f4ea4ecf0411a99290f2cb
Shell
vslovik/LingITII
/scripts/splitter.sh
UTF-8
417
2.984375
3
[]
no_license
#!/usr/bin/env bash #ffmpeg="/home/valeriya/project/ffmpeg-3.2.2-64bit-static/ffmpeg" input="/home/valeriya/project/LingITII/sound2/DGmtA01F" i=1 s=0 max=925 step=10 overlap=5 while [ $s -lt $max ] && [ $s -gt -1 ] do e=$(($s+$step)) echo "Start: $s end: $e" space="_" output=$input$space$i ffmpeg -...
true
d357db5469cfa5bc156cfb4a5c1e194806c45ab1
Shell
Chick2D/dotfiles-1
/home/.config/colors/ArchLight.sh
UTF-8
7,650
2.734375
3
[]
no_license
#!/bin/bash CONF="$HOME/.config" POLY="$CONF/polybar" WALL="$HOME/Pictures/Wallpaper" NOTI="$CONF/dunst" ALAC="$CONF/alacritty" GTK3="$CONF/gtk-3.0" CORD="$CONF/powercord/src/Powercord/themes/discord" CHRO="$HOME/.mozilla/firefox/*.default-release/chrome" EWW="$HOME/.config/eww" i3="$CONF/i3" BSP="$CONF/bspwm" OBOX="$...
true
bdc1b9c506f761231866494fb0544b1ae44f8fe8
Shell
scottrbaxter/profile
/scripts/op_session.sh
UTF-8
1,630
3.765625
4
[]
no_license
#!/usr/bin/env bash # starts (or restarts) a 1password cli session, sets 30 minute countdown variable # use: OP_CLOUD_ACCOUNT="[your-account-name]" source /path/to/op_session.sh command # e.g.: OP_CLOUD_ACCOUNT="familyname" source ~/op_session.sh get account # caveat: if you have spaces in a name, you need to escape...
true
ead13b60273efa1f60c0c8a788b483196b612aff
Shell
jhandley/palay
/test/run_tests.sh
UTF-8
1,133
3.984375
4
[ "Apache-2.0" ]
permissive
#!/bin/bash SCRIPT_NAME=$0 TEST_DIR=$(dirname $(readlink -f $0)) TESTS=$* red='\E[31m' green='\E[32m' normal='\E[0m' PALAY=$TEST_DIR/../palay/palay COMPAREPDF=$TEST_DIR/diffpdf.sh command -v $COMPAREPDF >/dev/null 2>&1 || { echo "$SCRIPT_NAME: comparepdf required. Install by 'sudo apt-get install comparepdf' or sim...
true
52d9ddec98dd76917373de00fb8a343e13dc99e2
Shell
FrauBSD/pkgcenter-R
/depend/R-3.1.1/clean_fraubsd.sh
UTF-8
3,065
3.1875
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh ############################################################ IDENT(1) # # $Title: Script to clean R $ # $Copyright: 2019-2020 Devin Teske. All rights reserved. $ # $FrauBSD: pkgcenter-R/depend/R-3.1.1/clean_fraubsd.sh 2020-07-16 17:08:32 -0700 freebsdfrau $ # ##################################################...
true
12c4d22ba2e3ccb4ddcff53fc963d60fc29e8b08
Shell
Llinjing/bigdata
/article-gmp/oversea/bin/recover-history-total-decay-feedback.sh
UTF-8
1,136
2.671875
3
[]
no_license
#!/bin/bash # huanghaifeng # 2016-09-03 function get_data() { hadoop fs -cat /inveno-projects/article-gmp-sparkstreaming/data/total-decay-feedback/total-decay-feedback-1472919600000/part-* > total-decay-feedback.list } function parse_data() { touch ./total-decay-feedback.list cat ./total-decay-feedback.list | awk...
true
660da2996e2adaa5f6432b633827d940bb95668c
Shell
leo-project/leveldb
/tools/pbuilder.sh
UTF-8
2,320
3.546875
4
[ "BSD-3-Clause" ]
permissive
#! /bin/bash ## ./pbuilder.sh builder.list leveldb_tag ## or ## ./pbuilder.sh builder.list "" tarfile.tgz ## $0 $1 $2 $3 ## ## NOTE: you must manually ssh to each buildbot to get RSA fingerprint ## into your local known_hosts file before script works REPO=leve...
true
336ba7330e6ca6725d325a01ca57d0537b6b1a1c
Shell
EstebanJimenez/Repositorios-Publicos
/CristianTorres_JavierSierra/ejercicio5
UTF-8
329
2.78125
3
[]
no_license
#!/bin/bash #copia de seguridad filenamer="copia de seguridad-$(date +%Y%m%d).tar" usernamer="$(whoami)" echo "$usernamer" tar -cf /home/$usernamer/Escritorio/$filenamer /home/$usernamer/ 7z a /home/$usernamer/Escritorio/$filenamer.7z -mhe=on /home/$usernamer/Escritorio/$filenamer rm /home/$usernamer/Escritorio/$f...
true
c3c84d8538eb40b22998cd79191188285f63a7cb
Shell
jtmoon79/dotfiles
/utilities/blob64-test.sh
UTF-8
1,476
3.984375
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env bash # # self-test of blob64 scripts set -euo pipefail TMPFILE_DATA1=$(mktemp --suffix .data1) TMPFILE_DATA2=$(mktemp --suffix .data2) TMPFILE_DATA_ENCIPHER=$(mktemp --suffix .data-enciphered) TMPFILE_PASSPHRASE=$(mktemp --suffix .passphrase) trap "rm -v -- ${TMPFILE_DATA1} ${TMPFILE_DATA2} ${TMPFILE_D...
true
2c273e8b6d8dde878ead86a7b93670500e66c909
Shell
glombek/Perplex.ContentBlocks
/version
UTF-8
827
3.59375
4
[ "MIT" ]
permissive
#!/bin/bash version=$1 if [ -z "$version" ]; then echo -e "Usage: ./version <version>\n\ne.g. ./version 1.2.3-rc1" exit; fi # Version without suffix. E.g. 1.2.3-rc1 becomes 1.2.3 version_info=$(echo $1 | sed 's/-.*//') # Save any open work git stash > /dev/null 2>&1 projectDir=src/Perplex.ContentBlocks # ...
true