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
1b1a375613b2de23df1a0ea079003f61ceef7d31
Shell
Jack-0/dotfiles
/scripts/code_sesh.sh
UTF-8
344
3.71875
4
[]
no_license
#!/bin/bash # Requirements # # THIS SCRIPT ASSUMES YOU STORE ALL YOUR WORK CODE IN ONE DIR # # 1. brew install fzf # 2. change ~/dev to where ever you store your git repos if [[ $# -eq 1 ]]; then selected=$1 else selected=$(find ~/dev -mindepth 1 -maxdepth 1 -type d | fzf) fi if [[ -z $selected ]]; then ex...
true
752d8f294e7cbcc9fda8d005ffaf9bc283c25c9b
Shell
amedvedova/NWPvis
/runme.sh
UTF-8
634
3.25
3
[]
no_license
#!/bin/bash # This script runs the "main_bash.py" python script, which produces the vertical cross-section figures. # The python code takes 4 command line arguments: 3 for input data, 1 as path to output figures. # Path to data and figures: PATH_DATA='/home/alve/Desktop/NWPvis/data' PATH_FIGS='/home/alve/Desktop/NWP...
true
0beb1af7a9ba9697df173924fa330e70b12cc794
Shell
cs558i/bootscripts-standard
/bootscripts/cblfs/init.d/gdm
UTF-8
740
3.1875
3
[ "MIT" ]
permissive
#!/bin/bash # Begin $rc_base/init.d/gdm # Based on sysklogd script from LFS-3.1 and earlier. # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org #$LastChangedBy: randy $ #$Date: 2007-07-26 10:55:51 -0500 (Thu, 26 Jul 2007) $ . /etc/sysconfig/rc . $rc_functions pidfile=/run/gdm.pid export PATH=$PATH:/opt/...
true
2831b666d646e60546ae2ff191b43e7d295f0d7f
Shell
DuckSoft/AUR
/ventoy-bin/PKGBUILD
UTF-8
2,534
2.953125
3
[]
no_license
# Maintainer: DuckSoft <realducksoft at gmail dot com> # Co-Maintainer: Mark Wagie <mark dot wagie at tutanota dot com> # Contributor: KokaKiwi <kokakiwi+aur@kokakiwi.net> pkgname=ventoy-bin pkgver=1.0.43 pkgrel=1 pkgdesc='A new multiboot USB solution (Binary)' url='http://www.ventoy.net/' arch=('i686' 'x86_64') licen...
true
0a6ff79896eb21355e0813fbea0c87976f692ced
Shell
joejin00/utilis
/dom0_mem_precheck
UTF-8
4,470
3.453125
3
[]
no_license
#!/bin/bash XM=/usr/sbin/xm if ! [ -x $XM ]; then echo "Can not found xm command" exit 1 fi if ! $XM list &>/dev/null; then echo "Unable to connect to xend!" exit 1 fi function is_digit() { if [ "x$1" = "x" ]; then return 0 fi re='^[0-9]+$' if ! [[ $1 =~ $re ]] ; then ...
true
1bf51493448f348e8592d1330874f4a7bc52d380
Shell
Mic92/xfstests-cntr
/tests/xfs/150
UTF-8
1,051
3.328125
3
[]
no_license
#! /usr/bin/env bash # SPDX-License-Identifier: GPL-2.0 # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. # # FSQA Test No. 150 # # Set DM_EVENT_RENAME event on a DMAPI filesystem and verify it is set. # seq=`basename $0` seqres=$RESULT_DIR/$seq echo "QA output created by $seq" here=`pwd` tmp=/tmp/$$ s...
true
c746c8293702b2200de4c3e207348ce615b7561f
Shell
waveshare/pi-display
/install.sh
UTF-8
640
2.8125
3
[ "MIT" ]
permissive
#!/bin/sh set -e password=$1 # install pip and some apt dependencies echo $password | sudo -S apt-get update echo $password | sudo -S apt install -y python3-pil python3-smbus # install pidisplay echo $password | sudo -S python3 setup.py install # install picard display service echo $password | sudo -S sed -i -e 's...
true
f1a99389a10dd374bf3044679c772f86fb3a768e
Shell
portalssh/autologin
/wms/config/wifi_id
UTF-8
822
3
3
[]
no_license
#!/bin/sh #username wifi.id user="username_wifi.id" #password wifi.id pass="password_wifi.id" track2=$(ping -c 2 -W 4 -I wlan1 8.8.8.8) track2=$? if [ $track2 -eq 1 ] then logger "wifi.id disconnected...triying to reconnect..." ifdown wwan1 && sleep 5 && ifup wwan1 && sleep 20 ipwa...
true
6c4de534f4ce2543fa94f8fcca8112930a57e738
Shell
xstefank/bug-clerk
/src/main/bash/load-bugs.sh
UTF-8
1,609
3.703125
4
[]
no_license
#!/bin/bash readonly BZ_URL=${BZ_URL:-'https://bugzilla.redhat.com/buglist.cgi'} readonly CLASSIFICATION=${CLASSIFICATION:-'JBoss'} readonly URL="${BZ_URL}?${CLASSIFICATION}&columnlist=product%2Ccomponent%2Cassigned_to%2Cbug_status%2Cpriority%2Cbug_severity%2Cresolution%2Cshort_desc%2Cchangeddate%2Cflagtypes.name&pri...
true
a3cb2a035deefb451050541bcb45af842f607fbb
Shell
graphingwiki/collabbackend
/scripts/collab-check
UTF-8
1,005
3.6875
4
[]
no_license
#!/bin/sh # -*- coding: utf-8 -*- ## @copyright: 2015 by Marko Laakso ## @license: MIT <http://www.opensource.org/licenses/mit-license.php> myerr() { echo $@ 2>&1 exit 1 } CFG=/etc/local/collab/collab.ini if [ -f ${CFG} ]; then . ${CFG} 2> /dev/null else myerr "No ${CFG}" fi if [ $# -eq 1 ]; then toche...
true
41af605af45ac3f80f3c8c4850330cb4195f7a0d
Shell
zealic/zealic-learn
/BuildAutomation/ci-build.sh
UTF-8
86
2.640625
3
[]
no_license
#!/bin/bash cd `cd $(dirname $0) && pwd` for name in Travis-CI/*.sh do ./$name done
true
6fb031ded428c89d68fda9f93c111c56fea4bdf4
Shell
AlexDuperre/Autonomous-Drone-Navigation
/tensorflow/util/clear_empty_trajectories.sh
UTF-8
156
3.203125
3
[]
no_license
#!/bin/bash # echo 'file_path = ' $1 IFS='_' read -r -a array <<< "$1" if [ "${array[-2]}" == "${array[-3]}" ]; then rm -r $1 echo "Cleared " $1 fi
true
b3dafbc5410c5015bc8676ae6f2d7e46943993de
Shell
adeelmalik78/dxapikit
/API/flows.sh
UTF-8
5,493
3.578125
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distri...
true
75384a4f692edf710490dd96b6e929b6a15d8cf5
Shell
jamierocks/MCStats
/deploy.sh
UTF-8
677
3.078125
3
[ "BSD-2-Clause" ]
permissive
#!/bin/bash # get the start unix timestamp START=`date +%s` echo -e " [\e[1;33m++\e[00m] Compiling" mvn --quiet clean package chmod -R 777 . echo -e " [\e[1;33m++\e[00m] Uploading build" rsync -av --progress --exclude=*.tar.gz --exclude=archive-tmp --exclude=classes --exclude=maven-archiver --exclude=surefire targe...
true
4080a7fa1cec12b922ba0265b544882438ce8b9c
Shell
BinaryTreeCode/adJ
/pruebas/compila-libc.sh
UTF-8
261
2.609375
3
[ "ISC" ]
permissive
#!/bin/sh # Compila libc # Dominio Público. 2013. vtamara@pasosdeJesus.org SRC=/usr/src cd $SRC/include make make includes if (test "$?" != "0") then { exit 1; } fi; make install cd ../lib/libc #make clean make depend make if (test "$?" != "0") then { exit 1; } fi; make install
true
a04658207c0f5f3d4c24fbc8169dbe6f9f20d04c
Shell
aikuma0130/prezto
/runcoms/zprofile
UTF-8
3,218
3.0625
3
[ "MIT" ]
permissive
# # Executes commands at login pre-zshrc. # # Authors: # Sorin Ionescu <sorin.ionescu@gmail.com> # # # Browser # if [[ -z "$BROWSER" && "$OSTYPE" == darwin* ]]; then export BROWSER='open' fi # # Editors # if [[ -z "$EDITOR" ]]; then export EDITOR='nano' fi if [[ -z "$VISUAL" ]]; then export VISUAL='nano' fi...
true
3fd5ac208df19a2a497e45189bdd76a5d2cd708e
Shell
yarikoptic/dh-annex
/tools/generate_sample_repo
UTF-8
2,222
3.59375
4
[]
no_license
#!/bin/bash set -eu # just a sample script to generate a test/trial repository # which I could work with quickly and which would be git-annex repo odir=datatune-orig tdir=datatune rhost=washoe rpath=~/www/tmp/datatune.git git-sedi() { git grep -l $1 | xargs sed -i -e "s/$1/$2/g" } if [ -e $odir ]; then chmod +w ...
true
1188cf832146394f2be95aae3b73913840a3a7b3
Shell
YasirChoudhary/bash_scripts
/06_if_statement_1.sh
UTF-8
80
2.734375
3
[]
no_license
#! /bin/bash count=13 if (( $count <=9 )) then echo "Condition is true" fi
true
b25672ebec21b8b1bf3f999ecf00aab693d8b7ba
Shell
nickhould/.dotfiles
/.bash_profile
UTF-8
2,163
3.265625
3
[]
no_license
# My custom speed dial lckr=~/Dropbox/PasswordBox/lckr/app/lckr projects=~/Sites/rails_projects/ # Password Box - start server alias startlckr='rvmsudo MYSQL_SOCKET=/tmp/mysql.sock rails s -p 80' export MYSQL_SOCKET='/tmp/mysql.sock' # Git Tab Completion source ~/git-completion.bash source ~/hub.bash_completion.sh ...
true
fb1147991b55962c1cad4eef5cf73bfa3cb4ebc8
Shell
bossjones/scripts-1
/check-log-speed.sh
UTF-8
13,462
3.671875
4
[]
no_license
#!/bin/bash set -euo pipefail function get_running_pod() { # $1 is component for selector oc get pods -l component=$1 | awk -v sel=$1 '$1 ~ sel && $3 == "Running" {print $1}' | head -1 } function query_es_from_es() { oc exec $1 -- curl --connect-timeout 1 -s -k \ --cert /etc/elasticsearch/secret/a...
true
32cccae888e882ed6c20b24d4d4f88b2ea5d942e
Shell
robin22d/node_docker
/Terraform/Jenkins.sh
UTF-8
2,070
2.96875
3
[]
no_license
#!/bin/bash # updating machine echo "updating machine..." yum update -y yum upgrade -y echo "installing unzip and wget" # isntalling wget yum install wget -y # isntalling unzip yum install unzip -y echo "installing git..." # isntalling get yum install git -y echo "Installing java package" # installi...
true
d043cb7fc6ef145e2ffc2110cb00bb09db846e70
Shell
dsmastrodomenico/ShellAlgorithmPractice
/2_variables.sh
UTF-8
341
2.765625
3
[]
no_license
# !/bin/bash # Programa para revisar la declaración de variables # Autor:: Darwin Mastrodomenico opcion=0 nombre="Darwin Mastrodomenico" echo "" echo "opción: $opcion" echo "nombre: $nombre" echo "" # Exportar la variable nombre para que este disponible a los demas procesos export nombre # Llamar al siguiente scri...
true
0a0471180079cef96fe35d9bbf364c9b75cc7ac0
Shell
Just-Angelo/Example
/shrug-log.sh
UTF-8
556
3.796875
4
[]
no_license
#!/bin/bash repos_num=-1 Arg_count=$# #checks .shrug actually exist if [ ! -d ".shrug" ] then echo "shrug-add: error: no .shrug directory containing shrug repository exists" exit; fi if [ $Arg_count != 0 ] then echo "usage: shrug-log" exit fi #counts how many stages of commit there is, as theres an ...
true
59291609a8555d04e9fc024d8bcbb65ecf6a3e49
Shell
vtjnash/julia-buildbot
/commands/launchpad.sh
UTF-8
2,780
3.578125
4
[ "MIT" ]
permissive
#!/bin/bash set -e # This script functions best when the following are installed: # wget, git, bzr, dch, make, python (with the "requests" module installed, for Travis-ci API) # Note that in order to push to lp:~staticfloat/julianightlies/trunk, you need my GPG private key TEAM=~staticfloat PROJECT=julianightlies ...
true
6ebab5958e66f09c1976cf5798c9e728cc80ac19
Shell
v0rts/spaceship-prompt
/sections/perl.zsh
UTF-8
1,628
3.4375
3
[ "MIT" ]
permissive
# # Perl # # Perl is a general purpose programming language, originally developed for # text manipulation. # Perl refers to Perl 5.x, where Perl 6+ officially changed the name to Raku. # # Link: https://www.perl.org/ # ------------------------------------------------------------------------------ # Configuration # ----...
true
42d710a356b3a15948a6cb7149e27e320efb133c
Shell
oRiamn/x200t-xinput
/commands/toggle.sh
UTF-8
373
3.71875
4
[]
no_license
#!/bin/bash function toggle { local deviceID=$1 local deviceName=$2 local state=$(xinput list-props "$deviceID" | grep "Device Enabled" | grep -o "[01]$") if [ $state == '1' ];then xinput --disable "$deviceID" echo -e "\e[1m$deviceName\e[21m is now disable" else xinput --enable "$deviceID" ...
true
ab32da8171ce03f61295cfc2f9ccaad9b35f41e5
Shell
ethragur/dotfiles
/scripts/backlight.sh
UTF-8
201
2.828125
3
[]
no_license
#!/usr/bin/bash cd /sys/class/backlight/amdgpu_bl0/; m=$(cat max_brightness); c=$(cat brightness); if [ "$1" == "-i" ]; then n=$(($c + ($m/12))) else n=$(($c - ($m/12))) fi echo $n > brightness
true
8b21ae9f5a01c25ddec05cb853be2bf87ff4753d
Shell
EssTravelNet/eclipse.platform.releng.eclipsebuilder
/scripts/sdk/promotion/wgetSDKPromoteScripts.sh
UTF-8
2,010
3.25
3
[]
no_license
#!/usr/bin/env bash #Sample utility to wget files related to promotion # we say "branch or tag", but for tag, the wget has to use tag= instead of h= branchOrTag=master # remember that wget puts most its output on "standard error", I assume # following the philosophy that anything "diagnosic" related goes to standar...
true
2855ffec946131f979221e19686770ef2e634495
Shell
tox2ik/go-smux
/testdata/test.luks.sh
UTF-8
620
2.75
3
[]
no_license
#!/bin/bash sudo cryptsetup close test-smux losetup | awk '/crypto-fs.block/ { print $1}' | xargs --no-run-if-empty -n1 losetup -d if ! cryptsetup isLuks crypto-fs.block; then rm -fv crypto-fs.block fallocate crypto-fs.block -l $((1024**2 *20)) echo -n jwf > crypto-fs.key cryptsetup luksFormat -q cry...
true
dc403a8015296a8e346a61bbb95eb9e3eb5630c0
Shell
luiseduardohdbackup/mtk
/cyclone.sh
UTF-8
1,498
4.125
4
[ "WTFPL" ]
permissive
#!/usr/bin/env bash # clone all partitions of a drive and try not to waste space # @author Filipp Lepalaan <filipp@mcare.fi> # @package mtk if [[ $USER != "root" ]]; then echo "Insufficient privileges!" 2>&1 exit 1 fi if [[ $# -lt 2 ]]; then echo "Usage: $(basename $0) source destination" 2>&1 exit 1 fi SOUR...
true
b5eedda531506f104874afef5b8931f2457c2521
Shell
rebelplutonium/secret-editor
/extension/init.user.sh
UTF-8
1,441
2.9375
3
[]
no_license
#!/bin/sh TEMP=$(mktemp -d) && echo "${GPG_SECRET_KEY}" > ${TEMP}/gpg-secret-key && gpg --batch --import ${TEMP}/gpg-secret-key && echo "${GPG2_SECRET_KEY}" > ${TEMP}/gpg2-secret-key && gpg2 --batch --import ${TEMP}/gpg2-secret-key && echo "${GPG_OWNER_TRUST}" > ${TEMP}/gpg-owner-trust && gpg -...
true
a4e38aa669b2207afa4addb8c33e048790290c4b
Shell
dinjonya/blog
/Project.sh
UTF-8
691
2.625
3
[ "MIT" ]
permissive
if [ ! -d "Publish" ]; then echo 'Publish not exists,please look your current path' exit 0 fi #进入发布文件夹 清空发布文件夹 cd Publish rm -rf * #退出 cd .. echo -e "\033[47;35m apiblog \033[0m" cd apiblog dotnet build dotnet publish -o ../Publish/apiblog cd .. echo -e "\033[47;35m Authen \033[0m" cd Authen dotnet b...
true
c8542819f69a238cd55690707138c51c6ccc57fb
Shell
JJungJieun/test_jieun
/99for.sh
UTF-8
141
2.6875
3
[]
no_license
#!/bin/bash for i in 1 2 3 4 5 6 7 8 9 do for j in 1 2 3 4 5 6 7 8 9 do mul=`expr $i \* $j` echo $j'*' $i '=' $mul done done exit 0
true
dc71ee115d5dceb2c6b2850f43d779d402af993a
Shell
ndhoule/dotfiles
/packages/bin/bin/dot
UTF-8
2,556
4.15625
4
[]
no_license
#!/usr/bin/env bash # # Refresh dotfiles from repository and update dependencies. # set -o errexit set -o nounset set -o pipefail CURRENT_SCRIPT_PATH="$( cd "$(dirname "$0")" pwd -P )" OSTYPE=${OSTYPE:-} function log_info() { echo "[INFO]: $*" } function log_warn() { echo "[WARN]: $*" } function log_error...
true
7bbb7d86ac3cc1cbe582324b61aca7dac0762099
Shell
abhinav-webonise/linux_assignment
/ass7.sh
UTF-8
592
3.140625
3
[]
no_license
#!/bin/bash mkdir public_html test_folder touch public_html/public_html/linux_assignment/README.md chmod 777 public_html for filename in `find . -maxdepth 1 -type f | cut --complement -c1,2 | sort | head -4` do mv "$filename" "../public_html/$filename" echo "Moved $filename to ../public_html/$filename" done cd ...
true
e7b95a9f88e67245c6da1554b075af49b1ef1e87
Shell
anasthesia/soft_LLP
/MG5_aMC_v2_6_4/Singlet-triplet_MG_run_files/0_my_proc_generation_combined.sh
UTF-8
398
2.765625
3
[]
no_license
#!/bin/bash #The first script to run: creates the process folders #No need to run afterwards # set the paths MGdir=~/mywork/soft/MG5_aMC_v2_6_5/ CARDdir=$MGdir/Singlet-triplet_MG_run_files # set proc card file PROC_CARD_Sc="proc_card_scalar.dat" PROC_CARD_Ps="proc_card_pseudo.dat" # go to MG and generate the proces...
true
f0ffe57e25068fba1b0b8c014f93b2414e0c1dab
Shell
bajajamit01/docker-hello-world-spring-boot
/bin/spring-demo-api-deployment.sh
UTF-8
3,198
3.59375
4
[ "MIT" ]
permissive
#!/usr/bin/env bash # Exit script if any command returns non-zero set -e if [ "$#" -ne 6 ]; then echo "ERROR: Incorrect number of arguments, 8 required" echo "Usage:" echo "$0 <pullSecret> <ENVIRONMENT> <NAMESPACE> <IMAGE_NAME> <IMAGE_VERSION> <DOCKER_REPO> <ACR> <REPLICAS>" exit 1 fi PULL_SECRET=$1 ENVIRONM...
true
0a08d9eda42b8e3c0da1db929310fa8343e89f64
Shell
ardin/ardin-tools
/src/etc/profile.d/ardin-tools.sh
UTF-8
4,346
3.546875
4
[]
no_license
## ## Aliases ## alias s="ssh" alias h="host" alias pwgen-8="pwgen -s -1 8" alias pwgen-12="pwgen -s -1 12" alias pwgen-16="pwgen -s -1 16" ## ## Functions ## function ssl-san() { [[ -z $1 ]] && echo " * Syntax: $FUNCNAME site:port" && return 1 printf "\n" | openssl s_client -servername $(echo $1 | cut -f ...
true
032a66de07feff79ca9d9b5b84f4eb9e78d98ba6
Shell
bonohub13/free_cache
/free_cache.bash
UTF-8
366
3.1875
3
[ "LicenseRef-scancode-other-permissive" ]
permissive
#!/bin/bash # -*- coding:utf-8 -*- current_cache=$(free | grep Mem | sed -r -e "s/[^ ]+ +[^ ]+ +([^ ]+)+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+/\1/") mem_limit=6000000 # default to 6GB if [ $# -gt 0 ];then if [ -n $1 -a $1 -gt 1000000 ];then # clears mem_limit=$1 fi fi if [ $current_cache -gt $mem_limit ];then ...
true
3129439f089ec4f91b27e248b86941d0f2c5cba3
Shell
rahulyhg/saas-modal
/script/pulsar-saas-ssl.sh
UTF-8
5,993
2.921875
3
[]
no_license
#!/bin/bash #Program: pulsar-ssl.sh #Script to Configure NginX SSL Server for Pulsar(https) <cavirin-sudhirk> #instance_ip=$1 #Nginx variables upstream='$upstream' host='$host' remote_addr='$remote_addr' proxy_add_x_forwarded_for='$proxy_add_x_forwarded_for' request_uri='$request_uri' scheme='$scheme' #Creating the s...
true
1041eeb3fffc3ef1c17a7e62b7fe86921f7cbc1d
Shell
phantoscope/xbaydns
/xbaydns/tools/master/Log2IPlist.sh
UTF-8
331
2.9375
3
[ "BSD-2-Clause" ]
permissive
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` if [ -f "$PPATH/../master.conf" ]; then . $PPATH/../master.conf fi cd $PPATH if cat ../slave/named/log/*.log > ../slave/named/log/dummy ; then python logtolist.py ../slave/named/log/dummy ../iplist rm -f ../slave/named/log...
true
b986109977311c240545740904919b7615228f40
Shell
isabella232/freedom-sdk-utils
/scripts/create-project
UTF-8
5,788
3.765625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash set -e set -o pipefail help() { cat >&2 <<EOF $0: Create a software project direcrory for an overlay SiFive Freedom SDK --help Prints this help text. --project-path Specify project path for an overlay. --project-name Specify project name for an o...
true
d53640ef5c2addf11b853749a4ed8396d3b8ebd3
Shell
aurex-linux/aurex-corporative-client
/install.mount/usr/sbin/aurex-cc-mount-settings
UTF-8
2,456
3.515625
4
[]
no_license
#!/bin/sh # ------- # File: aurex-cc-mount-settings # Description: Generates pam_mount.conf.xml and aurex-umount configuration # Author: Luis Antonio Garcia Gisbert <luisgg@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public Li...
true
2719e8b9e35214119a41e58bf735d582243cb18a
Shell
ducduyn31/HasherSv
/start.sh
UTF-8
180
2.96875
3
[]
no_license
#!/usr/bin/env bash input=$1 while IFS= read -r line; do for N in {1..9}; do python runner.py -i "$line" -n "$N" done python runner.py -i "$line" -n 10 done <"$input"
true
b59a6d3d22ad284155158a0b6c007b6040f1ef02
Shell
iridium-browser/iridium-browser
/native_client/tests/spec2k/run_wasm.sh
UTF-8
3,579
3.671875
4
[ "BSD-3-Clause", "Zlib", "Classpath-exception-2.0", "BSD-Source-Code", "LZMA-exception", "LicenseRef-scancode-unicode", "LGPL-3.0-only", "LGPL-2.0-or-later", "LicenseRef-scancode-philippe-de-muyter", "LicenseRef-scancode-warranty-disclaimer", "LicenseRef-scancode-intel-osl-1993", "HPND-sell-var...
permissive
#!/bin/bash # Copyright 2016 The Native Client Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # This script assumes the waterfall framework # (https://github.com/WebAssembly/waterfall) has been downloaded and run, thus # it is require...
true
fa9c0a5b4197c9e1a25e6c951cc03f6b7e6bc1b7
Shell
mmellott/w-ilab-scripts
/functions
UTF-8
1,916
3.046875
3
[]
no_license
#!/bin/bash function for_each_node { . /users/mmellott/w-ilab-scripts/nodes for i in "${nodes[@]}"; do echo "$i" ssh "$i" "$@" done } function node_map { . /users/mmellott/w-ilab-scripts/nodes for i in "${nodes[@]}"; do echo "$i" ssh "$i" "hostname && ifconfig | g...
true
a4e901c02c10c9ba82ecb8eff45f40554b2ff0ab
Shell
whigg/SWARP-routines
/forecast_scripts/utility_scripts/check_ECMWF.sh
UTF-8
1,147
3.515625
4
[]
no_license
Edir=/work/shared/nersc/ECMWFR_T799/ source $SWARP_ROUTINES/source_files/hex_vars.src email=$(cat $FCemail) hr=`date +%H` if [ $hr -eq 23 ] || [ "$hr" == "00" ] then # rsync time exit fi if [ $# -eq 0 ] then alert=0 else alert=$1 fi yr=`date +%Y` correct=0 echo " " > txt for vbl in D2M MSL T2M TCC U10M ...
true
5a122d6ee1a51cb88c8b69d42d6346fcd89c60d4
Shell
haroldangenent/box
/provision/vhosts/hosts-clean.sh
UTF-8
280
3.109375
3
[ "MIT" ]
permissive
. $(dirname $0)/hosts-get.sh echo 'Cleaning up hostnames from /etc/hosts...' hosts=$(getHosts) ip=$(getIp) for host in $hosts do host=$(echo "$host"|tr -d '[:space:]') sudo sed -i '' "/$ip $host \# haroldangenent\/box/d" /etc/hosts done echo 'Finished cleaning /etc/hosts.'
true
80b522fc7d65a1861e6a60d2bd4818c31b7336fd
Shell
appuio/charts
/appuio/mariadb-galera/hack/failover-testing/client.sh
UTF-8
467
2.59375
3
[ "BSD-3-Clause" ]
permissive
#!/bin/bash set -eu kubectl run mariadb-client \ --rm --tty -i --restart='Never' \ --namespace default \ --labels="role=client" \ --image docker.io/bitnami/mariadb-galera:10.5.12-debian-10-r1 \ --command -- \ mysql -h ${1:-mariadb} -P 3306 -uroot \ -p$(kubectl get secret --namespace...
true
25dce99f97aaa38573876139f2c18cc671fb3f92
Shell
amberlauer/automate_azure2
/automate_azure_calc/automate_azure_calc.sh2
UTF-8
1,493
2.734375
3
[]
no_license
#!/bin/bash #g++ -o automate_azure.o automate_azure.cpp cwd=$(pwd) #cd /home/amber/executables/root_6.16.00/install cd /home/amber/executables/root-6.12.06/install source ./bin/thisroot.sh cd $cwd #rm automate_azure_calc.o g++ -o automate_azure_calc.o2 automate_azure_calc.cpp echo "what to name the output file?" rea...
true
8601bfa12e4083f7e9099077515ae211f9e2c1c6
Shell
amarr/config
/.bash_profile
UTF-8
671
2.953125
3
[]
no_license
export CLICOLOR=1 export LSCOLORS=ExFxCxDxBxegedabagacad # Add git completion if [ -e "/usr/local/git/contrib/completion/git-completion.bash" ] ; then source "/usr/local/git/contrib/completion/git-completion.bash" fi # Add git branch to prompt if [ -e "/usr/local/git/contrib/completion/git-prompt.sh" ] ; then...
true
c77e75ecaa99dbb5716952c977ce57557b8da76f
Shell
flavian-ndunda/Pluscoin
/qa/pull-tester/build-tests.sh.in.sh
UTF-8
1,287
3.546875
4
[ "MIT" ]
permissive
#!/bin/bash # Param1: The prefix to mingw staging # Param2: Path to java comparison tool # Param3: Number of make jobs. Defaults to 1. set -e set -o xtrace MINGWPREFIX=$1 JAVA_COMPARISON_TOOL=$2 JOBS=${3-1} if [ $# -lt 2 ]; then echo "Usage: $0 [mingw-prefix] [java-comparison-tool] <make jobs>" exi...
true
19a60616477cfec155071a3dded725a77dfa8e76
Shell
clarkngo/bash-scripts
/0_bash_exercises/10_PrintFibonacciNumbers1
UTF-8
520
4.0625
4
[]
no_license
#! /bin/bash #: Title: printFibonacciNumbers - Print out Fibonacci numbers #: Synopsis: printFibonacciNumber TOTAL_NUMBER #: Date: 2019-07-21 #: Version: 1.0 #: Author: Clark Ngo #: Options: null printFibonacciNumbers() { #@ DESCRIPTION: print Fibonacci numbers #@ USAGE: printFibonacciNumber...
true
5b19e6ce35b096d9a38f7fb85b35a957fc6425ca
Shell
lsteck/ibm-garage-iteration-zero
/install/install-tiles.sh
UTF-8
6,521
3.640625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ################################################################################### # Register a collection of IBM Cloud Private Catalog Offerings within an Existing # Catalog # # Author : Matthew Perrins, Sean Sundberg # email : mjperrin@us.ibm.com, seansund@us.ibm.com # ##################################...
true
7c9cdf1773b56fbbcbe432aa6a5188f6d0f4d00b
Shell
Gerling/habib
/Fredrik/Bash_script-master/Labb3/simplemath.sh
UTF-8
362
3.578125
4
[]
no_license
#!/bin/bash clear echo "Simple math\n------------------------------------------" read -p "Type two numbers, separated with space: " number1 number2 if [ $number1 -ge $number2 ]; then echo "Number one greater than or equal to Number two!" elif [ $number1 -le $number2 ]; then echo "Number one is less than or equa...
true
d975b0b8514699a0f8a1eaac889e4ef6ae49e670
Shell
SrinivasuluCharupally/expert_programming
/module-c-cpp-concepts-1/compare.sh
UTF-8
699
2.875
3
[]
no_license
cd backup_output_files_run2 echo $PWD folder="ls $1" #echo $folder rm compared.log for i in ./* do echo $i cmd="diff 10/Output_1024x768_f32.y $i/Output_1024x768_f32.y" $cmd &>> compared.log cmd1="diff 10/Output_1024x768_f32.y $i/Output1_1024x768_f32.y" cmd2="diff 10/Output_1024x768_f32.y $i/O...
true
5c71b755d610cade6ad6a128c5f5c75ca399197c
Shell
david-barbion/system
/bash-wait/wait1.sh
UTF-8
884
3.921875
4
[]
no_license
#!/bin/bash # + no external file # + easy to implement # - no return code after child execution # - the infinite loop consumes too much CPU # Start few childs pids="" for t in 3 5 4; do sleep "$t" & pids="$pids $!" done # Here, pids is a string containing all child pids # Start an infinite loop, checking for exi...
true
4d95358c8630704a7457ad6f2d2dda3bda3797f7
Shell
kiannikzad/CS111-1
/Project4/B/smoketest.sh
UTF-8
404
3.53125
4
[]
no_license
#!/bin/bash { echo "START"; sleep 2; echo "STOP"; sleep 2; echo "OFF"; } | ./lab4b --log=log.txt if [ $? -ne 0 ] then echo "Error: program should have exited with 0" else echo "good return value!" fi for c in START STOP OFF SHUTDOWN do grep "$c" log.txt > /dev/null if [ $? -ne 0 ] then echo "failed to lo...
true
e141284d24bee5c0110632b51c51711c7f6eac1b
Shell
awslabs/libfabric-ci-scripts
/nccl/common/nccl-common.sh
UTF-8
26,597
3.5
4
[ "Apache-2.0" ]
permissive
#!/bin/bash # # Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. # set -e # Generate universally unique identifier get_uniq_num() { echo $(uuidgen) } # AMIs dict declare -A AMIS # Placement groups dict declare -A PGS # List of aws regions where tests can be executed aws_regions=('us-we...
true
d1c9cf89efdad7a752fa73d6764b1c66c8264f09
Shell
korosuke613/dotfiles
/mac/zsh/.zshrc.auto_renice_fast
UTF-8
671
3.421875
3
[ "MIT" ]
permissive
#!/usr/bin/env zsh NICE_VALUE="-15" APPS=( "JapaneseIM-RomajiTyping.app" # mac標準日本語入力IME "TextInputMenuAgent.app" # mac標準日本語入力IME "TextInputSwitcher.app" # mac標準日本語入力IME "EmojiFunctionRowIM.app" # mac標準日本語入力IME ) for app in "${APPS[@]}" do pids=($(pgrep -f "${app}")) if [ $? -ne 1 ]; then # プロセスが存在するか確認 ...
true
6293ec7981873ed73e22e45ddfc2bea6386d63f3
Shell
cristian0497/holberton-system_engineering-devops
/0x04-loops_conditions_and_parsing/5-4_bad_luck_8_is_your_chance
UTF-8
292
3.515625
4
[]
no_license
#!/usr/bin/env bash # print Holberton school 10 times, if is 4 print bad luck, if 8 good look x=1 while [ $x -lt 11 ] do if [ $x -eq 4 ] then echo "bad luck" elif [ $x -eq 8 ] then echo "good luck" else echo "Holberton School" fi ((x++)) done
true
1d30119f1c734ee2da010c720dc9f06a240593bc
Shell
jackdoe/zr-public
/rfc/rfc.sh
UTF-8
999
3.484375
3
[]
no_license
root=$(dirname $0) mkdir -p $root/data if [ ! -f $root/data/RFC.tar.gz ]; then curl -sL https://www.rfc-editor.org/in-notes/tar/RFC-all.tar.gz > $root/data/RFC.tar.gz fi pushd $root/data tar --wildcards '*.txt' -xzvf RFC.tar.gz popd echo > data/pagerank.in # simply make for rfc in $(ls -1 $root/data/ | grep txt...
true
573111b457e07b38620e8e158a4d7d8c3e068be2
Shell
JessieAMorris/wd
/wait
UTF-8
155
3.046875
3
[ "Apache-2.0" ]
permissive
#! /bin/bash r=$[ ( $RANDOM % 100 ) ] echo got $r while [ $r -ge 20 ] do echo 'waiting 60 sec' sleep 60s r=$[ ( $RANDOM % 100 ) ] echo got $r done
true
d0b422dd4c6145585d8cb5e0efcb5716daf88820
Shell
swirepe/personalscripts
/sagify
UTF-8
1,569
3.96875
4
[]
no_license
#!/usr/bin/env bash # sudo apt-get update ; sudo apt-fast install -y # if apt-fast isn't installed, install it if [[ -z "$(which apt-fast)" ]] then echo "[sagify] apt-fast not installed: installing." sudo add-apt-repository ppa:apt-fast/stable sagi apt-fast fi CURRDIR=$(pwd) function update_machines { ...
true
a5ad6ff0b55f593f5da7b04d19dd6fe176016272
Shell
barryk/arch-osx
/libxml2/PKGBUILD
UTF-8
995
2.71875
3
[]
no_license
# PKGBUILD autocreated by ABStoOSX 0.1 # ArchLinux Maintainer: Jan de Groot <jgc@archlinux.org> # Contributor: John Proctor <jproctor@prium.net> pkgname=libxml2 pkgver=2.7.2 pkgrel=1 pkgdesc="XML parsing library, version 2" arch=('macx86') license=('custom') depends=('zlib>=1.2.3.3' 'libiconv') optdepends=('readline>=...
true
03878097f7fc9cdbcbfda5de4ac8a661e9bb112b
Shell
thaidn/tink
/examples/cc/digital_signatures/digital_signatures_cli_test.sh
UTF-8
4,226
3.765625
4
[ "Apache-2.0" ]
permissive
#!/bin/bash ############################################################################# #### Tests for digital_signatures_cli binary. SIGNATURE_CLI="$1" PRIVATE_KEYSET_FILE="$TEST_TMPDIR/private_keyset.bin" PUBLIC_KEYSET_FILE="$TEST_TMPDIR/public_keyset.bin" MESSAGE_FILE="$TEST_TMPDIR/message.txt" SIGNATURE_FILE="...
true
17609b3ecf4deca40b8e5e7c60493847f996bf76
Shell
slackpanos/SlackOnly-SlackBuilds
/games/xarchon/xarchon.SlackBuild
UTF-8
4,522
3.375
3
[ "MIT" ]
permissive
#!/bin/sh # Slackware build script for xarchon # Written by B. Watson (yalhcru@gmail.com) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. # note: xarchon plays Archon and Archon II: Adept. I can't tell if the # Adept game is complete or correct, because I never could understand # how ...
true
0fb29ff5d482af2a7505706fc8270cdd9be9dff3
Shell
ianisl/dotfiles
/.xinitrc
UTF-8
1,662
3.46875
3
[]
no_license
#!/usr/bin/env bash # Since we are using a custom xinitrc, we need to read Xresources [[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources # Set locale before launching URxvt so we don't have encoding problems export LANG=fr_FR.UTF-8 # According to https://wiki.archlinux.org/index.php/Xinit: # "At the very le...
true
7f7dff3a74cedbba6bcfcdbdfa7efd66595f5354
Shell
crawlingcity/macsetup
/bash_aliases
UTF-8
1,740
3.046875
3
[]
no_license
# lists contents of current directory with file permisions alias ll='ls -l -sort' # list all directories in current directories alias ldir='ls -l | grep ^d' # self explanatory alias ..='cd ..' alias ...='cd ../../' # show aliases alias a='echo "------------Your aliases------------";alias' # Apply chang...
true
a2714628987c4fa65e130f7a212af1e1bd2a9cda
Shell
Qrust/SaveVig
/run.sh
UTF-8
1,415
3.5625
4
[]
no_license
#!/bin/sh clear && clear FILE="Strong_vigenere_cipher-bin" LEN=$1 TESTS=$2 METHOD=$3 BASEDIR="$PWD" make -C "$BASEDIR" rebuild || { echo Failed to compile ; exit; } cd .. test -d "build" || mkdir "build" cd "build" mv ../src/$FILE ./ cp ../src/text.txt ./ test -d "py_tests" || mkdir "py_tests" cd "py_tests" mk...
true
1f948234870c4156548747d9890e0b76ce8562b4
Shell
whmzsu/kubernetes-handbook
/tools/wordcount/wordcount.sh
UTF-8
254
3.59375
4
[ "CC-BY-NC-SA-4.0", "CC-BY-4.0" ]
permissive
#!/bin/bash # Count Chinese characters total=0 basedir="../../" for x in `cd $basedir;fd -e md` do i=`cnwordcount -f $basedir/$x|cut -d " " -f2` total=$(($total+$i)) if [ $i -ne 0 ]; then echo "$x $i" fi done echo "Total $total"
true
fa650653d532b688caffb0daf7f4dcf1b567be60
Shell
weaming/daily-script-collections
/zsh/custom/7.fn.handy.sh
UTF-8
1,899
3.328125
3
[]
no_license
# Go alias cdwm='cd ~/go/src/github.com/weaming' alias musl-go-build='docker run --rm -v "$PWD":"/go${$(pwd)#$GOPATH}" -w "/go${$(pwd)#$GOPATH}" blang/golang-alpine go build -v' # conda workon() { source activate $1 export VIRTUAL_ENV="$(dirname $(dirname $(which python)))" which python function worko...
true
08c9398d6716b3b2efd0bfee53722b051620c967
Shell
b06902106/OSproj1
/demo.sh
UTF-8
293
2.578125
3
[]
no_license
#!/bin/bash tasks="TIME_MEASUREMENT FIFO_1 PSJF_2 RR_3 SJF_4" for task in TIME_MEASUREMENT FIFO_1 PSJF_2 RR_3 SJF_4; do echo "------------------------------------------------" echo "${task}" sudo dmesg -C sudo ./scheduler < test/${task}.txt sudo dmesg | grep Project1 done
true
d9bfaa889c6b06d42af904f48498f1f7b804e71b
Shell
andypost/drupal.ru
/scripts/before.sh
UTF-8
292
2.546875
3
[]
no_license
#!/bin/sh SITEPATH="$HOME/domains/$SETTINGS_DOMAIN" cd $SITEPATH #Quote module replacement. Issue #51 if [ -d "$SITEPATH/sites/all/modules/contrib/quote" ]; then drush -y dis quote rm -rf $SITEPATH/sites/all/modules/contrib/quote touch /tmp/quote.remove fi drush cache-clear drush
true
6dc6c71ea77f0da04767d7a516cdc8cbd6a0a485
Shell
gavinchou/vim_config
/install.sh
UTF-8
525
3.203125
3
[]
no_license
#!/bin/bash ## @brief install vim config ## @author Gavin Chou ## @email gavineaglechou@gmail.com ## @date 2016-05-12-Thu function digitaldatetime() { echo `date +"%Y%m%d%H%M%S"` } vim_config=`pwd -P` cd $HOME echo "mv .vimrc .vimrc.`digitaldatetime`" mv .vimrc .vimrc.`digitaldatetime`2>/dev/null echo "mv .vi...
true
8b7a8524f4f47276b8fd8cb369eb86ec5e4e4327
Shell
aixj1984/go-jira-api
/run.sh
UTF-8
107
2.546875
3
[ "MIT" ]
permissive
#!/usr/bin/env bash source .env if [[ "$1" == "" ]]; then go run main.go else go run examples/"$1" fi
true
c9feb53760ea6849a4111bb7fab654794702ac5d
Shell
frenzieddoll/dotfiles
/.emacs.d/script/mpv-rifle.sh
UTF-8
1,263
3.984375
4
[]
no_license
#!/bin/bash if [ $# -eq 0 ]; then echo "Usage: ${0##*/} PICTURES" exit fi [ "$1" = '--' ] && shift tmpfile=$(mktemp) # 生成した一時ファイルを削除する function rm_tmpfile { [[ -f "$tmpfile" ]] && rm -f "$tmpfile" } # 正常終了したとき trap rm_tmpfile EXIT # 異常終了したとき trap 'trap - EXIT; rm_tmpfile; exit -1' INT PIPE TERM abspath ()...
true
626e5fb675cef650b237c75f99fd317583ebf924
Shell
R-omk/webhook-receiver
/trigg.sh
UTF-8
1,216
4
4
[]
no_license
#!/bin/bash set -e ARGS="${@}" check_args.sh ${ARGS[@]} status="$?" if [[ "$status" != "0" ]]; then exit "$status" fi declare -A variables=() trigger_url="" trigger_token="" trigger_ref="master" if [[ "$#" == "0" ]]; then echo "!!! No options provided. Exiting..." exit 1 fi echo "start with args:" echo "${@}...
true
8bbe5cead0bc65ff29cc5ffdd8e3d80371d4897c
Shell
Paulmicha/common-web-tools
/cwt/extensions/apache/instance/init.hook.sh
UTF-8
721
3.171875
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
#!/usr/bin/env bash ## # Implements hook -a 'init' -v 'PROVISION_USING HOST_TYPE INSTANCE_TYPE'. # # @see u_instance_init() in cwt/instance/instance.inc.sh # case "$CWT_APACHE_INIT_VHOST" in true) if i_am_su; then u_apache_write_vhost_conf else # TODO [evol] non-interactive shell environments need sudoers...
true
cac2ca667a09333cc7a4ed544bd9dfd0b6456651
Shell
superice119/mypackages
/others/topologyd/files/etc/init.d/topologyd
UTF-8
470
2.8125
3
[]
no_license
#!/bin/sh /etc/rc.common START=14 STOP=96 USE_PROCD=1 start_service() { procd_open_instance config_load owsd config_get enable ubusproxy enable procd_set_param command "/sbin/topologyd" if [ "$enable" == "1" ] then procd_append_param command --root fi procd_set_param respawn # procd_set_param stdo...
true
2b1ae9d4bc1fe97d1bd0735e7504e7612a3e2369
Shell
zelhar/my-dotfiles-git
/usr_home/bin/surf_tabs.sh
UTF-8
579
2.796875
3
[]
no_license
#!/bin/bash #tabbed -cd zathura -e #$(tabbed -d >/tmp/tabbed.xid); urxvt -embed $(</tmp/tabbed.xid); #$(tabbed -d >/tmp/tabbed.xid); zathura -embed $(</tmp/tabbed.xid); file_path="/tmp/tabbed.xid" if ! pgrep -x "tabbed" > /dev/null #if tabbed is not running, delete tabbed.xid then # $(tabbed -d >/tmp/tabbed.xid); ...
true
9b6d18a17fe0a799ada544f08abffd189f5b98e7
Shell
michaelsalisbury/builder
/udev/archive/vbox_launcher.sh.v31
UTF-8
32,782
3.453125
3
[]
no_license
#!/bin/bash function main(){ case "${1}" in a*|A*) shift; ACTION_ADD "$@";; r*|R*) shift; ACTION_REMOVE "$@";; s*|S*) ACTION_SELECT;; t*|T*) shift; ACTION_TRIGGER "$@";; sd*) ACTION_ADD "$@";; *) ACTION_SELECT;; #*) UMOUNT=false # STARTVM=false # ACTION_ADD...
true
228ad1bdb1b0f959c463d48d00218ec35d5fdb9b
Shell
Grompokstar/saveApiData
/bin/full_deploy.sh
UTF-8
636
3.4375
3
[]
no_license
#!/bin/bash # Deploy revision using in webpack.prod.js export DEPLOY_REVISION=`date +"%s"` # vars ARCHIVE_NAME=$DEPLOY_REVISION.zip REMOTE_RELEASES_PATH=$DEPLOY_PATH set -o errexit # Exit on error # Build project yarn build # Zip project zip $ARCHIVE_NAME -r * # Remote commands # Make dir ssh $DEPLOY_ADDRESS -p $...
true
7316b1161daddd9e03530ea46c05b0622b6d39a0
Shell
gauglertodd/docker_scripts
/build_coin.sh
UTF-8
701
2.734375
3
[ "MIT" ]
permissive
#!/bin/bash VERSION="2.9" RELEASE="1" sudo apt-get update sudo apt-get install -y subversion g++ make zlib1g-dev pkg-config \ checkinstall svn co --non-interactive --trust-server-cert-failures=unknown-ca https://projects.coin-or.org/svn/Cbc/stable/${VERSION} coin_Cbc cd coin_Cbc ./configure...
true
901d24ddf86d62bc0dc93dbd0be02f79af02e760
Shell
rcopstein/Share
/createManyFiles.sh
UTF-8
139
2.765625
3
[]
no_license
#!/bin/bash for i in {0001..125} do mkdir ${i} for j in ` seq 1 3 150 ` do echo ${j} touch ${i}/${j}.txt done done
true
3045ea768eeb770e8cdc6aea162adf8bdc93b0f0
Shell
demorym/COSMO_extended_sandbox
/2_lm_c/set
UTF-8
1,193
3.015625
3
[]
no_license
#!/bin/bash NX=$1 NY=$2 NIO=$3 compact_io=$4 echo "grid $NX*$NY with $NIO IO processes" sed -i "s|nprocx=[0-9]*,|nprocx=${NX},|" INPUT_ORG sed -i "s|nprocy=[0-9]*,|nprocy=${NY},|" INPUT_ORG sed -i "s|nprocio=[0-9]*,|nprocio=${NIO},|" INPUT_ORG if [ "$compact_io" == "yes" ]; then NODES_IO=1 else NODES_IO=$[ ...
true
e192b9a185ca0f845e3943b65b4ed3889cdc2ad8
Shell
craja26/PostgreSQL
/pgbackrest.sh
UTF-8
1,799
3.1875
3
[]
no_license
## Installation: # connect as a root yum install pgbackrest --nogpgcheck mkdir -p /var/log/pgbackrest chown postgres:postgres /var/log/pgbackrest mkdir /etc/pgbackrest bash -c 'cat << EOF > /etc/pgbackrest/pgbackrest.conf [global] repo1-path=/var/lib/pgbackrest repo1-retention-full=2 [pg0app] pg1-path=/var/lib/pgsql/...
true
d744ffcb1d1a878b39f9585c5861be7939b70abd
Shell
NormanDunbar/C68Port
/Tests/01_LocalInteger/buildAll.sh
UTF-8
189
3.15625
3
[ "MIT" ]
permissive
#!/bin/bash # # A script to compile everything named *.c in the current directory. # for f in `ls *.c` do echo Compiling "${f}".c to "${f}".exe ... ./buildTests.sh "${f%.c}" done
true
461bfe0bb10dee48366d0c79a75b7fc69624ed84
Shell
flavio-fernandes/odl-openstack-ci-1
/odl-openstack-dg.sh
UTF-8
942
3.234375
3
[]
no_license
#!/bin/bash # NOTE: This file takes two jobs from the OpenStack infra and # puts them here. See here: # # https://github.com/openstack-infra/project-config/blob/master/jenkins/jobs/networking-odl.yaml # Check for Fedora vs. Ubuntu if [ -f "/etc/debian_version" ]; then IS_UBUNTU=1 else IS_FEDORA=1 fi if...
true
59eb9d886e855b8649716e957069d8ff2ada984c
Shell
EricArray/colaboreitor
/bash/get_cp.sh
UTF-8
351
3.078125
3
[]
no_license
if [ $# -ne 2 ] && [ $# -ne 3 ]; then echo "usage: user pass [cp]" exit 1 fi user="$1" pass="$2" cp="$3" server="http://localhost:8080" auth="X-Authorization: $user:$pass" content_type="Content-Type: application/json" if [ -z "$cp" ] then curl -X GET -H "$auth" "$server/cp" else curl -X GET -H "$...
true
6592930e6fbcd260c5ae04f6e6cdf4957aa8c068
Shell
BSShubham97/programs_btcmp
/ProgramArray/similarnumber.sh
UTF-8
396
3.578125
4
[]
no_license
#! /bin/bash -x # Find SIMILAR NUMBER WITHIN AN ARRAY LIKE 11 22 33 44 .... declare -a numbers1 declare -a numbers2 declare -a diff for((i=0;i<=100;i++)) do numbers1="$i" echo "${numbers1[*]}" done numbers1=(${numbers1[*]}) numbers2=( 11 22 33 44 55 66 77 88 99 ) echo ${numbers2[*]} diff=(`echo ${numbers1[*]} $...
true
bdcf4f20b1c575dad5442218e5eef6b7ef52de4e
Shell
Vulturem/introduction_to_linux_gb
/lesson4/task2/ascript.sh
UTF-8
130
2.921875
3
[]
no_license
#bin/bash for (( x = 1; x <= $((1+ RANDOM % 10)); x++)) do mkdir 00$x cd 00$x touch 00$x.txt echo file00$x >> 00$x.txt cd .. done
true
8c71b4745193e7151d4b0611d98b33381ea63e69
Shell
seanwooj/dotfiles
/makesymlinks.sh
UTF-8
1,029
4.0625
4
[]
no_license
#!/bin/bash ############################ # .make.sh # This script creates symlinks from the home directory to any desired dotfile in ~/dotfiles # Inspired by: http://blog.smalleycreative.com/tutorials/using-git-and-github-to-manage-your-dotfiles/ ############################ ###### Variables dir=~/dotfiles ...
true
2e710069ddef237ccc34420f55ec916181d5f20e
Shell
chrisnoto/KB
/ansible/ansible-zabbix/roles/base_inst_zbclient_linux/files/pageinout.sh
UTF-8
1,203
3.046875
3
[]
no_license
#!/bin/bash SENDER='/usr/bin/zabbix_sender' HOST="10.67.37.192" IP=`grep -i '^Hostname=' /etc/zabbix/zabbix_agentd.conf |cut -d'=' -f2` #active/inactive memory res=`vmstat -a|awk 'NR==3{print $6,$5}'` act=`echo $res|awk '{print $1}'` inact=`echo $res|awk '{print $2}'` #page in/out pi=`vmstat -s|grep "paged in"|awk '{...
true
47023ca124a2c7be81bb6a59622d03a7d6ef6183
Shell
LeavaTail/dotfiles
/common/scripts/checkfile.sh
UTF-8
566
3.953125
4
[]
permissive
#!/bin/bash -eu # # usage: # checkfile file dotfile # ex.: # checkfile /home/user/.vimrc # # description: # check dotfile is correct deploy. # # return: # 0: succeed # 1: command wrong usage # Invalid usage if [ "$#" != 1 ]; then echo "ERROR: command usage was wrong." 1>&2 exit 1 fi CHAR=' ' # symlink c...
true
3165586cb6dddfdef276dcf844b94d1c0569e008
Shell
Thibault2ss/heroku-doppler-buildpack
/bin/compile
UTF-8
2,738
3.84375
4
[ "MIT" ]
permissive
#!/bin/sh # bin/compile <build-dir> <cache-dir> <env-dir> # set -o errexit # always exit on error # set -o pipefail # don't ignore exit codes when piping output # set -o nounset # fail on unset variables # Parse args BUILD_DIR=$1 CACHE_DIR=$2 ENV_DIR=$3 # identify OS os="unknown" uname_os=$(uname -s) if [ "$...
true
12257f32858fc5f1b9fbc736bc875b973195e34a
Shell
Johnnyww/Awesome-TTRSS
/entrypoint.sh
UTF-8
571
3.140625
3
[ "MIT" ]
permissive
#!/bin/bash set -e # remove trailing / if any. SELF_URL_PATH=${SELF_URL_PATH/%\//} # extract the root path from SELF_URL_PATH (i.e http://domain.tld/<root_path>). ROOT_PATH=${SELF_URL_PATH/#http*\:\/\/*\//} if [ "${ROOT_PATH}" == "${SELF_URL_PATH}" ]; then # no root path in SELF_URL_PATH. mkdir -p /var/tmp ...
true
6d7482c7a8645eb23e451ef4a5f8e3ce8575397a
Shell
de-jcup/sechub
/sechub-server/src/main/resources/run.sh
UTF-8
948
3.234375
3
[ "MIT", "ANTLR-PD", "LicenseRef-scancode-generic-exception", "BSD-3-Clause", "LGPL-2.0-or-later", "LGPL-2.1-only", "GPL-1.0-or-later", "LicenseRef-scancode-oracle-openjdk-exception-2.0", "MPL-1.1", "MPL-2.0", "CC-PDDC", "LicenseRef-scancode-warranty-disclaimer", "EPL-2.0", "GPL-2.0-only", ...
permissive
#!/bin/bash # SPDX-License-Identifier: MIT echo "Starting run script:run.sh $1 $2" # Set debug options if required if [ x"${JAVA_ENABLE_DEBUG}" != x ] && [ "${JAVA_ENABLE_DEBUG}" != "false" ]; then JAVA_DBG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=${JAVA_DEBUG_PORT:-5005}" fi if [ -z "...
true
af6862653f1f93c609bdb65e61c9608ed0790dcb
Shell
anteskoric/BSPA1
/try-host.sh
UTF-8
1,146
4.125
4
[]
no_license
#!/bin/bash # <Pings given host machine or ipaddress> # <Ante Skoric and Timo Quednau> # <06.10.2019> # ------------------------------------------------------------ # This function shows the help text for this bash script usage(){ echo " $0 [-h|-s sec] hostname|ip-address Pings the given hostname or ip-address. ...
true
77683a3106f17485cedce2b5b0a52051a0320622
Shell
mastafunk/DX2-CWMR
/assets/hijack.killboot
UTF-8
1,718
3.328125
3
[]
no_license
#!/system/bin/sh logfile=/data/rec_log.txt echo >> " Inside kill all script." >> $logfile export PATH="/sbin:${PATH}" sleep 5s # kill all services for i in $(getprop | grep init.svc | sed -r 's/^\[init\.svc\.(.+)\]:.*$/\1/'); do # stop this fucking service (or try to anyway) echo " Attempting to stop servi...
true