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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b6d52783d14d53e4d8e8dc1e10050184cef5d8ab | Shell | ripley57/CW_Tools | /tools/bash/arrays/demo06.sh | UTF-8 | 291 | 3.09375 | 3 | [] | no_license | # Description: Add a new entries to an existing array.
declare -a Unix=('Debian' 'Red hat' 'Ubuntu' 'Suse' 'Fedora' 'UTS' 'OpenLinux');
echo
echo "BEFORE:"
for t in "${Unix[@]}"
do
echo $t
done
Unix=("${Unix[@]}" "AIX" "HP-UX")
echo
echo "AFTER:"
for t in "${Unix[@]}"
do
echo $t
done
| true |
cd982110537b91ebe4c1594cdb7134375e2c9258 | Shell | glowinthedark/qtpysmtpdaemon | /debian-build/build_deb.sh | UTF-8 | 997 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
cd "$(dirname "$0")"
appname=cutepiesmtpdaemon
appdir=build
srcdir=..
last_version=$(grep "VERSION =" $srcdir/$appname.py | cut -d "=" -f2 | tr -d " '")
#set version is control file
sed -i "/Version:/c\Version: $last_version" control
echo Version updated to: $last_version
mkdir -p $appname/{DEBI... | true |
cd064995763544143d0cc34dfb0eb787332760f9 | Shell | MediaServe/zabbix-templates | /lvm/zlvm | UTF-8 | 4,319 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Zabbix LVM pool monitoring script
# https://github.com/MediaServe/zabbix-templates
# MediaServe International B.V.
# Thomas Lobker
help () {
if [ ${#} -eq 1 ]; then
echo "ERROR: ${1}" 1>&2
exit 1
fi
echo "Usage: zlvm (-d [type]) | (-s|-u|-m [path])"
echo "Requires one method with one argument, o... | true |
810191f017ddfe6dc5e28d2194ef91ad2996687b | Shell | alundiak/lanbash | /lb_cdlb.sh | UTF-8 | 1,387 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# "mvn clean package" - build and packaging into WAR
# OR
# "mvn clean install" (with packaging and pointing artifact to local maven repo)
# http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
# "mvn clean package -o" - packaging into WAR but wothout trying to download artifacts... | true |
2602923b7bb17ee205793bc9d25be4b5be1ad026 | Shell | agmangas/mlops-poc | /install-minio.sh | UTF-8 | 1,779 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -x
: ${MINIO_NAMESPACE:="minio-operator"}
: ${MINIO_OP_TREEISH:="v4.2.10"}
CURR_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd )"
TMP_DIR=$(python3 -c "import tempfile; print(tempfile.gettempdir());")
MINIO_OP_REPO_PATH=${TMP_DIR}/minio-operator
rm -fr ${MINIO_OP_R... | true |
e4fc1753ae9698812dbb1b968db041f80978b515 | Shell | syyunn/CausalMBRL | /scripts/eval_rl_fixed_unobserved.sh | UTF-8 | 807 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo Running on $HOSTNAME
num_obj=$1
name=$2
encoder=$3
cmap=$4
seed=$5
loss=$6
mode=$7
emb=$8
steps=$9
dir="models_"$emb
#env=WShapesRL-Observed-$mode-$num_obj-$cmap-v0
#env=WShapesRL-Unobserved-Train-$num_obj-$cmap-v0
env=WShapesRL-FixedUnobserved-Train-$num_obj-$cmap-v0
save=$dir"/FixedUnobserved/"$... | true |
68446f268537a22f5b70655abb73f36088aec50e | Shell | Gentux/configurations | /bash/install.sh | UTF-8 | 287 | 2.59375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
CURRENT_PATH=$(dirname $(realpath $0))
source ${CURRENT_PATH}/../function.sh
create_or_replace_symlink ${CURRENT_PATH}/bashrc ~/.bashrc
create_or_replace_symlink ${CURRENT_PATH}/bash_aliases ~/.bash_aliases
create_or_replace_symlink ${CURRENT_PATH}/dircolors ~/.dircolors
| true |
348eddc61f0ea89a995d820a28b8fb31d182e049 | Shell | Salix-OS/lxc-salix | /rcs.patch | UTF-8 | 2,951 | 3.1875 | 3 | [] | no_license | --- rc.S.orig 2012-02-15 11:22:53.000000000 +0100
+++ rc.S 2012-02-15 14:17:18.000000000 +0100
@@ -6,6 +6,10 @@
#
# Tweaked for Salix by George Vlahavas <vlahavas~at~gmail~dot~com>
+# Tweaked for Salix container by Frédéric Galusik <fredg~at~salixos~dot~org>
+# based on the tweak for a slackware container
+# by pon... | true |
9f09d375e47a8aa42144ec326172506b7d682ba8 | Shell | LUXEsoftware/SeedingAlgorithm | /runSeeding3Or4Hits.sh | UTF-8 | 5,608 | 2.828125 | 3 | [] | no_license | #! /bin/zsh
postfix=""
needFitList="F"
needELaser=${1}
alias python3=/usr/local/bin/python3.9
for needFitIter in ${needFitList}; do
if [[ ${needFitIter} == "F" ]]
then
postfix="WithFit3or4HitsTracksAndDistanceCut"
needFit=1
else
postfix="WithoutFit3or4HitsTracksAndDistanceCut"
... | true |
e4559a21f751047289f3e0d6f2213f99fadfcce7 | Shell | manvantar/Shell_Programming_FOR_LOOP | /range_ofPrime_for.sh | UTF-8 | 311 | 3.46875 | 3 | [] | no_license | #!/bin/bash
read -p "Please enter the starting number to check prime or not: " n
read -p "Please enter the ending range: " m
for ((a=n; a<=m ;a++, n++))
do
flag=0
for ((i=2 ; i<=$(($n/2)) ; i++))
do
if [ $(($n%$i)) -eq 0 ]
then
flag=1
fi
done
if [ $flag -eq 0 ]
then
echo -n "$a "
fi
done
| true |
6c3aa093aefe603d1f4caca395f396ed9ac3e17b | Shell | luanxiangming/performance | /start_test.sh | UTF-8 | 3,209 | 2.953125 | 3 | [] | no_license | #!/bin/bash
source ./env.sh
for arg in "$@"
do
LOAD_COUNT=($arg)
done
testLen=${#TEST_PLAN[@]}
loadLen=${#LOAD_COUNT[@]}
testPlans=${TEST_PLAN[0]}
loadCounts=${LOAD_COUNT[0]}
for ((i=1;i<testLen;i++))
do testPlans=$testPlans","${TEST_PLAN[i]}
done
for ((i=1;i<loadLen;i++))
do loadCounts=$loadCounts",... | true |
8dfa50888a4835efdc9926821554f38da06059c6 | Shell | pesedr/dotfiles | /env.sh | UTF-8 | 1,149 | 2.5625 | 3 | [] | no_license | #!/bin/zsh
# dotfiles
alias dotedit='vim ~/Projects/env.sh'
alias dotsource='source ~/.zshrc'
alias vimedit='vim ~/.vimrc'
alias github='cd ~/Projects/go/src/github.com'
alias pesgit='cd ~/Projects/go/src/github.com/pesedr'
# Go
export GOPATH=$HOME/Projects/go
export PATH=$PATH:$(go env GOPATH)/bin
# nvm
export NVM_... | true |
4cb9de9c47a626c7633f95eb6a6c35963d1fe3b4 | Shell | doublesongsong/galaxy | /optools/galaxy | UTF-8 | 3,109 | 3.65625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
#
# /etc/init.d/galaxy
# Subsystem file for "galaxy" server
#
# chkconfig: 2345 95 05
# description: galaxy server daemon
#
# processname: galaxy
PROD_ADDR=ftp://xxxxxx/tmp/galaxy.tar.gz
. /etc/rc.d/init.d/functions
AGENT_IP=`hostname -i`
AGENT_HOME=/home/galaxy/agent
RETVAL=0
init() {
// config core dum... | true |
d1d4ac5c214e9ddd245a89244a82e70a95c1d011 | Shell | juanmasg/zshrc | /jobselect.zsh | UTF-8 | 705 | 3.25 | 3 | [] | no_license | jobselect() {
# read -k 1 "argno?job: "
read -k 1 argno
case $argno in
0)
BUFFER="jobs"
;;
"^]")
#BUFFER="fg"
joblist
;;
[0-9])
BUFFER="fg $argno"
;;
*)
echo "\nNo such job: $argno"
retu... | true |
0ac29b73d7c2484303233f3db829298acbf322df | Shell | strigo/ami-bakery-linuxdesktop | /scripts/install-xfce.sh | UTF-8 | 426 | 2.625 | 3 | [] | no_license | #!/bin/bash -e
apt-get install -y xfce4 xfce4-goodies
echo "xfce4-session" > /home/ubuntu/.xsession
cat <<EOF > /home/ubuntu/.xsessionrc
export XDG_SESSION_DESKTOP=xubuntu
export XDG_DATA_DIRS=/usr/share/xfce4:/usr/share/xubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share
export XDG_CONFIG_DIRS=/etc... | true |
474083c6897bf756f527249d00ece3232505bd44 | Shell | nuug/videogruppa | /tools/audio_split | UTF-8 | 613 | 3.84375 | 4 | [] | no_license | #!/bin/bash
#
# Date: 2009-12-10
# Author: Ole Kristian Lien
# License: GNU General Public License
#
# Splits a audio-file to a left- and right-file.
EXT=`echo "$1"|awk -F . '{print $NF}'`
NAME=`basename $1 .$EXT`
if [ -z "$1" ]; then
echo "Usage: $0 <audio-file>"
exit 1
fi
./require sox || { exit 1; }
# sox F... | true |
d243a8f11f0130a0c7e02233cc383257111b69ab | Shell | WangKaiwh/Learn_Record | /Bash_shell/parameter/shift.sh | UTF-8 | 222 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# -n 后面字符串一定要用双引号括起来
while [ -n "$1" ]; do
case "$1" in
-a) echo "-a option";;
-b) echo "-b option";;
-c) echo "-c option";;
*) echo "$1 is not an option"
esac
shift
done
| true |
bcfd0895d81150e095039996aff2a355ac8ab08b | Shell | Hacker0x01/mocha | /scripts/travis-after-script.sh | UTF-8 | 277 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# syncs Karma test bundles to S3 if $S3 is set
if [ ${S3} ]
then
mkdir -p .karma/${TRAVIS_JOB_NUMBER}
cp ./mocha.js ".karma/${TRAVIS_JOB_NUMBER}/mocha.js"
aws s3 sync ".karma/${TRAVIS_JOB_NUMBER}" "s3://mochajs/karma-bundles/${TRAVIS_JOB_NUMBER}"
fi
| true |
2fda261ea4375ed7f535432b71ac6eac3301863b | Shell | suresh16s/CodeInClub | /Function_pro/conversion.sh | UTF-8 | 583 | 3.875 | 4 | [] | no_license |
#!/bin/bash -x
degF(){
c=`(echo 'scale=2;9 / 5' | bc)`
d=`(echo 'scale=2;'$degC' * '$c'' | bc)`
e=`(echo $d + 32 | bc)`
echo $e
}
degC(){
c=`(echo 'scale=2;5 / 9' | bc)`
d=`(echo $degF - 32 | bc)`
e=`(echo 'scale=2;'$d' * '$c'' | bc)`
echo $e
}
echo -e "1:degC to degF\n2:degF to degC"
read ch
case $ch in
"... | true |
0c5f0ae68c5b171cb497c2c03baabfc9a87c7ccc | Shell | mxmlnkn/BTWPlots | /crawl.sh | UTF-8 | 1,808 | 3.625 | 4 | [] | no_license | #!/bin/bash
getUrls() { sed 's|<a href="|\nKEEP!!|g' "$1" | sed '/^KEEP!!/!d; s/KEEP!!//; s/".*$//g; s/ /%20/g'; }
mkdir -p '2017'
wget -q -O a 'https://www.bundeswahlleiter.de/bundestagswahlen/2017/ergebnisse.html'
for land in $( getUrls a | sed -n '/ergebnisse\/.*land-.*\.html/p' ); do
url='https://www.bundeswa... | true |
c09ab398d21c53266c95386f326a5a8e4b25ee98 | Shell | gma/nesta-regression | /bin/add-theme | UTF-8 | 665 | 4.21875 | 4 | [] | no_license | #!/bin/bash
ROOT="$(cd $(dirname $0)/..; pwd)"
REPO="$1"
[ -z "$REPO" ] && usage
THEME="${REPO##*/}"
THEME="${THEME%.git}"
## Functions
usage()
{
echo "Usage: $(basename $0) <repo-url>" 1>&2
exit 1
}
clone-theme()
{
git submodule add $REPO themes/$THEME
}
symlink-into-releases()
{
local release
... | true |
d5184301cd9360be64bd5d52e553fd1c6cacae5f | Shell | ynotradio/site | /bin/deploy.sh | UTF-8 | 352 | 2.53125 | 3 | [] | no_license | #!/bin/sh
# deploy.sh
set -e
sudo apt-get install -y lftp
# deployment via ftp upload. Using FTPS for that
lftp -c "set net:max-retries 2;set net:reconnect-interval-base 5;set net:reconnect-interval-multiplier 1; open ftp://$FTP_USER:$FTP_PASS@$FTP_HOST:21; cd public; mirror --reverse --parallel=20 --verbose --exclud... | true |
710f6bc042cddfc291a26ce7347c275a1e110bac | Shell | sergiobaro/bash-scripts | /bash-idioms/loops.sh | UTF-8 | 245 | 3 | 3 | [] | no_license | #!/bin/bash
for i in {01..10}; do
echo "$i"
done
echo
for ((i=0; i<10; i++))
do
echo "$i"
done
# for ((;;))
# do
# printf 'forever'
# done
echo
for arg; do
echo "$arg"
done
echo
for file in $(ls); do
echo "$file"
done
| true |
4eb7c968d613b1416d1a455912d7d05ab228e792 | Shell | TakGlobus/src_share | /001_get_multi_laads.bash | UTF-8 | 785 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# filename.txt
# <contents>
# date,directory-name
# * Point
# Do not make any space between ','
filename=$1 # filename of laads archive directory
target_basedir=`pwd`/$2
myappkey="A167C61A-10CF-11E9-BA61-CBB570C49BBF"
echo " Download 2 path ${target_dir} "
option1="-e robots=off -m -np -R .html,.... | true |
ba3903730722b1a74a622ef54ff1fe5619d5613d | Shell | alanzhang88/SONegativeCommentDetection | /models/CNN/run_experiments.sh | UTF-8 | 944 | 2.65625 | 3 | [] | no_license | declare -a num_filters=(32 64 128 256)
declare -a filter_sizes
filter_sizes[0]="3,4,5"
# filter_sizes[1]="4"
declare -a dp=(0.1 0.3 0.5)
declare -a lr=(0.001 0.002 0.003)
declare -a batch_size=(64)
declare -a activation=('tanh' 'softmax' 'relu' 'sigmoid')
declare -a count
count=0
for i in "${num_filters[@]}"
do
fo... | true |
5dcda3f2e968f25d98f69dd5cacf07b255b10741 | Shell | minewhat/mapr-azure | /azure-wrapper.sh | UTF-8 | 1,269 | 3.578125 | 4 | [] | no_license | #!/bin/bash
#
# Wrapper script around our deployment scripts.
#
# Assumptions: all other scripts downloaded to same directory.
#
# WARNING: The file upload process from the Azure templates CLEARS the
# execute bit on all files. For that reason, we must to "sh <script>"
# when chaining them together here.
#
# The key ... | true |
01b586f191cc4fd560ce123c73b96bd25d20b19b | Shell | SandileMP/testPHP | /docker/ffmpeg/video1.sh | UTF-8 | 4,030 | 3.40625 | 3 | [] | no_license | #! /bin/sh
folder=/app
cdate=$(date +"%Y-%m-%d-%H:%M")
host="http://php/logins/"
checkUrl="$host/console/interview/getNew"
startUrl="$host/console/interview/start?interview_id=%d"
completeUrl="$host/console/interview/complete?interview_id=%d&invite_id=%d"
errorUrl="$host/console/interview/error?interview_id=%d&invit... | true |
587fa654600f5017815e504dc01bc5d1377bd811 | Shell | diremy/whizzytex | /tags/initial/whizzytex | UTF-8 | 10,030 | 3.53125 | 4 | [] | no_license | #!/bin/sh
### Configuration
# time in milliseconds to sleep when the pool is empty.
typeset -i WYSIPAUSE=100
TEXERRORMAXLINES=50
TEXERRORAROUND=20
# whether Whysitex should send itself a STOP signal (then it must be waken up)
# or just sleep for a while when done and no slicing is available
STOP=true
# name (or f... | true |
f38519e6f3b91d83022bb9e763d2dd6ede14c619 | Shell | rock3125/wsd-training | /create_td/scripts/train.sh | UTF-8 | 250 | 3.078125 | 3 | [] | no_license | #!/bin/bash
if [ "$JAVA_HOME" == "" ]; then
echo "JAVA_HOME not set"
exit 1
fi
HOME=`dirname "$0"`
CP=`echo $HOME/lib/*.jar | tr ' ' ':'`
$JAVA_HOME/bin/java -cp $CP \
-XX:+UseG1GC \
industries.vocht.wsd_trainingset_creation.Main "$@"
| true |
4c5be0127f645100fe4d4ead6bb73d37788312b9 | Shell | deepakmench18/Assignment_1 | /day6problem/forloop/power2.sh | UTF-8 | 145 | 3.109375 | 3 | [] | no_license | echo "Enter Number"
read num
for (( i=1; i<=num; i++ ))
do
sum=2
for (( j=1; j<i; j++ ))
do
sum=$(( $sum*2 ))
done
echo $sum
done
| true |
1cd1e6ff807092199317ffa13913873f2e389054 | Shell | grumpyoldgit/wonderlamp | /fs/root/.bashrc | UTF-8 | 127 | 2.609375 | 3 | [] | no_license | # Set the node PATH if it exists
if [ -d "/nodejs/bin" ] ; then
PATH="/nodejs/bin:$PATH"
fi
# pretty
alias ls='ls --color'
| true |
3a72286fc4e06e7e04dc6087de99e054eccaccb2 | Shell | orange-cloudfoundry/bosh-go-cpi-cloudstack | /packages/cloudstack_cpi/packaging | UTF-8 | 277 | 2.75 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash -eu
ostype=$(uname | tr '[:upper:]' '[:lower:]')
mkdir -p ${BOSH_INSTALL_TARGET}/bin
tar zxf bosh-cpi-cloudstack_${ostype}.tar.gz --strip 1 -C ${BOSH_INSTALL_TARGET}/bin
mv ${BOSH_INSTALL_TARGET}/bin/bosh-cpi-cloudstack ${BOSH_INSTALL_TARGET}/bin/cloudstack_cpi
| true |
2aac11b76559b6c39272ef8c3ac81a2c3a6ab2ba | Shell | blacknon/tar2package | /dockerfiles/tar2deb/changelog.sh | UTF-8 | 493 | 3.296875 | 3 | [] | no_license | #!/bin/bash
set -e
_THIS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-${(%):-%N}}")"; pwd)"
cp "${_THIS_DIR}/deb-template/debian/changelog" /tmp/changelog
{
echo "@@@NAME@@@ (@@@VERSION@@@-$(date +%s)) trusty; urgency=medium"
echo
echo "@@@CHANGELOG@@@" | sed 's/^/ /'
echo
echo " -- @@@AUTHOR@@@ <@@@EMAIL@@@> $... | true |
d0182fc9192d3cf175825267b5120331986b6542 | Shell | dtuanon/challenge1 | /Py_code/run_queries | UTF-8 | 248 | 3.0625 | 3 | [] | no_license | #!/bin/bash
count=$(python query.py --query $1 --wiki_size $2 $3)
outfile=../query_results/"$2/$1_results.txt"
result_files="../query_results/$2/"*Handle*
cat $result_files > $outfile
rm $result_files
sed -i "1 s/^/$count\n/" $outfile
echo $count
| true |
e3d8746647331b39c19c4fa0866b259446cbdb9c | Shell | pedrocarrega/CN | /kubernets/spark-deploy/write-spark3.sh | UTF-8 | 1,267 | 2.59375 | 3 | [] | no_license | BUCKET_NAME=$1
echo "from pyspark.sql import SparkSession
from pyspark.sql.types import DateType
from pyspark.sql.types import DoubleType
from pyspark.sql.functions import asc
from pyspark.sql.functions import sum
from pyspark.sql.functions import date_format
from pyspark.sql.functions import avg
from pyspark.sql.func... | true |
aa26965753b1e88b70b8e722221717218ac9ff4f | Shell | jungcheolkwon/blueprint | /F5/blueprint_f5bigip_transit/scripts/test.sh | UTF-8 | 1,638 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#edited by JC
#j.kwon@f5.com
##https://github.com/F5Networks/terraform-provider-bigip/tree/master/examples/as3
##https://clouddocs.f5.com/products/big-iq/mgmt-api/v6.0/HowToSamples/bigiq_public_api_wf/t_bigiq_public_api_workflows.html
##https://clouddocs.f5.com/products/big-iq/mgmt-api/v6.0/ApiReferences/... | true |
50cece5acdcddab2e6eb12c4ba215b91f7b50755 | Shell | remoteit/docs | /.gitbook/assets/get-pi-status-filtered (1).sh | UTF-8 | 3,247 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# The above line should be the shell you wish to execute this script.
# Raspberry Pi supports bash shell
#
# remote.it Bulk Management Status Script
#
# $1 parameter is the jobID used for status updates
# $2 is API server
#
# This example script first clears all the status columns (Status A-E) in the remo... | true |
f0f567a63e1bb071f417de46ffbe9e1e813e8d33 | Shell | mikdusan/zig | /ci/zinc/build_aarch64_macos | UTF-8 | 402 | 2.5625 | 3 | [
"MIT",
"LicenseRef-scancode-other-permissive"
] | permissive | #!/bin/sh
set -x
set -e
RELEASE_STAGING="$DRONE_WORKSPACE/_release/staging"
TARGET="aarch64-macos-none"
MCPU="apple_a14"
INSTALL_PREFIX="$DRONE_WORKSPACE/$TARGET"
SEARCH_PREFIX="/deps/$TARGET"
"$RELEASE_STAGING/bin/zig" build \
--prefix "$INSTALL_PREFIX" \
--search-prefix "$SEARCH_PREFIX" \
-Dstatic-llvm \
-... | true |
9bdefb7fd5fc75874b8a06412a4f134796fc6968 | Shell | theRealCarneiro/Dotfiles | /.local/bin/randbg | UTF-8 | 262 | 3.15625 | 3 | [] | no_license | #!/bin/sh
wall=/home/gabriel/.config/wallpaper
toggle() {
wp=$(find /home/gabriel/Bibliotecas/Imagens/Wallpapers -type f | shuf | head -n1)
echo $wp > $wall
xwallpaper --zoom "$wp"
}
trap "toggle" USR1
while true; do
sleep 60 &
wait $! &&
toggle
done
| true |
b6a1fb43190fa85f8c5ee67a830f70bd0d581216 | Shell | pvavercak/cxx20-modules-examples | /test | UTF-8 | 4,792 | 3.15625 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
# Run various build tests (in source, install, etc) by essentially executing
# the commands shown in README.md files.
#
usage="usage: ./test c++-compiler [c++-compiler-option...]"
owd=`pwd`
trap "{ cd $owd; exit 1; }" ERR
set -o errtrace # Trap in functions.
if [ $# -eq 0 ]; then
echo "$usage"... | true |
c96f910b6d46b8a232c03e343fd49043333ab544 | Shell | franklines/elastic-kibana-k8s | /generateData.sh | UTF-8 | 889 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Author: Franklin E.
# Desc: The following Bash Script utilizes the OpenLibrary.org API to generate data for our ElasticSearch instance.
# API Info: https://openlibrary.org/developers/api
BOOK_API_ENDPOINT="https://openlibrary.org";
ELASTICSEARCH_HOST="http://localhost:9200";
function indexInit()
{
... | true |
f0f67199e78c561a72100aaae0459e5703c7a6cd | Shell | Frankiefir1/openmediavault-openvpn | /usr/share/openmediavault/confdb/create.d/conf.service.openvpn.sh | UTF-8 | 2,762 | 2.890625 | 3 | [] | no_license | #!/bin/sh
#
# @license http://www.gnu.org/licenses/gpl.html GPL Version 3
# @author Volker Theile <volker.theile@openmediavault.org>
# @author OpenMediaVault Plugin Developers <plugins@omv-extras.org>
# @copyright Copyright (c) 2009-2013 Volker Theile
# @copyright Copyright (c) 2013-2019 OpenMediaVault Plugin D... | true |
c0077f190fd89d8de9f90f6d82c28883d4499d28 | Shell | kdnfgc/.dotfiles | /zsh/.zshrc | UTF-8 | 2,490 | 2.765625 | 3 | [] | no_license | # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; t... | true |
d70c9f22f4902b8a368534667fe4aad76520ba21 | Shell | jleck/elasticbeanstalk-nginx-php | /build | UTF-8 | 3,894 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# AWS Elastic Beanstalk Nginx/PHP-FPM Configuration
#
# @author James Leckenby <me@jleck.co.uk>
# @link http://jleck.co.uk
# @copyright 2013 James Leckenby
# @license MIT License
# @version 1.0
#
# Global variables
FILE=${0##*/}
VERSION=3.0.0
# Parse options
ARGS=$(/usr/bin/getopt -o a:hv -l... | true |
21cdcd56163cd6131e05cea0e2c8f42858c73291 | Shell | widelec-BB/vagrant-webdev-vm | /build.sh | UTF-8 | 340 | 2.53125 | 3 | [] | no_license | #!/bin/bash
# remove old build
rm -f package.box
vagrant destroy -f || exit
# create and provision
vagrant up || exit
# reboot for VBox additions (apt-get upgrade in provision may cause
# need for reinstallation of VBox additions)
vagrant halt || exit
vagrant up || exit
# stop and package
vagrant halt || exit
vagra... | true |
def2f4a825faf50f5bf776a9317f3d62472f67b1 | Shell | rebelm/stigs | /files/redhat7/rhel_07_010340.sh | UTF-8 | 242 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# Remove NOPASSWD from /etc/sudoers
sed -i -e '/^[^#].*NOPASSWD.*/d' /etc/sudoers
# Remove NOPASSWD lines in sudoers.d directory
for file in $(find /etc/sudoers.d/ -type f); do
sed -i -e '/^[^#].*NOPASSWD.*/d' "${file}"
done
| true |
2f1c42d59fa1a813f9df8857772e6e8e0c5987f5 | Shell | Zygimantass/keep-ecdsa | /scripts/install-celo.sh | UTF-8 | 3,755 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
LOG_START='\n\e[1;36m' # new line + bold + cyan
LOG_END='\n\e[0m' # new line + reset
DONE_START='\n\e[1;32m' # new line + bold + green
DONE_END='\n\n\e[0m' # new line + reset
KEEP_ECDSA_PATH=$(realpath $(dirname $0)/../)
KEEP_ECDSA_SOL_PATH=$(realpath $KEEP_ECDSA_PATH/solidity)... | true |
663a3ab57e3c85a350186ce862779655c710a2ef | Shell | Spottybadrabbit/blobio | /cli/bio-put | UTF-8 | 1,259 | 4.21875 | 4 | [] | no_license | #!/bin/bash
#
# Synopsis:
# Put files to blobio server.
# Usage:
# bio-put <file1> <file2> ...
# find . -type f -print | bio-put
# Environment:
# BLOBIO_SERVICE
# BLOBIO_PUT_SERVICE
# BLOBIO_ALGORITHM
#
PROG=$(basename $0)
die()
{
echo "$PROG: ERROR: $@" >&2
exit 1
}
test -n "BLOBIO_SERVICE" || die 'env variabl... | true |
95018af0e2338698084f09aeab2cbd43fd55d448 | Shell | alexclewontin/docker-snap | /spread/image/create-image.sh | UTF-8 | 3,931 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Copyright (C) 2016 Canonical Ltd
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY... | true |
f2f2d83b03267af040e17e7c2e4574c03014402b | Shell | EtlamGit/cubian-packages | /oracle-java7-jre/DEBIAN/prerm | UTF-8 | 841 | 2.984375 | 3 | [] | no_license | #!/bin/sh -e
basedir=/usr/lib/jvm/java-7-oracle-1.7.0.51
basediralias=/usr/lib/jvm/java-7-oracle
jar_packs=''
jre_tools='ControlPanel java java_vm javaws jcontrol keytool pack200 policytool rmid rmiregistry unpack200 orbd servertool tnameserv'
for i in $jar_packs; do
jar=$(echo $i | sed 's/\.pack$/.jar/')
rm ... | true |
fa185fdf884770de41d328f6e2ba44b41f406b12 | Shell | psahanap/jenkinsrepo | /finaljenkins.sh | UTF-8 | 2,235 | 3.25 | 3 | [] | no_license | #!/bin/bash
#Script for automatically running the AWS deployments from Jenkins using CFTs , Jekins and Git
#The source code and script is stored in Git repo and run from Jenkins
#source ~/.bash_profile
/usr/local/bin/aws cloudformation describe-stacks --stack-name test--SG-creation --region ap-south-1
status=`echo... | true |
853b6bc634cda860238a3a54e81787796721a1a9 | Shell | gylzbk/aihome_codes | /mozart/output/molib/app/etc/init.d/S04bsa.sh | UTF-8 | 444 | 3.140625 | 3 | [] | no_license | #!/bin/bash
# start bsa server
case "$1" in
start)
echo -n "Starting bsa server ..."
echo 1 > /sys/class/rfkill/rfkill0/state
sleep 1
bsa_server_mips -all=0 -r 14 -d /dev/ttyS1 -u /var/run/ -p /lib/firmware/BCM_bt_firmware.hcd &
;;
stop)
echo -n "Stopping bsa server ..."
killall bsa_server_mips
echo 0 > ... | true |
3049c5afcd32e571856c90827334d8f15cfdabf9 | Shell | g0dlight/environment | /.bash_profile | UTF-8 | 600 | 2.578125 | 3 | [] | no_license | NOCOLOR="\[\033[0m\]"
BLACK="\[\033[0;30m\]"
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
YELLOW="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
PURPLE="\[\033[0;35m\]"
CYAN="\[\033[0;36m\]"
WHITE="\[\033[0;37m\]"
GIT_BRANCH=""
if [ -f /Users/orel/.git-prompt.sh ]; then
source /Users/orel/.git-prompt.sh
GIT_BRANCH='$(__git_... | true |
03b85be5260bc0159f70857790a0a2abd2bdd997 | Shell | MERobinson/pbs_scripts | /call_chip_mut_beb.sh | UTF-8 | 12,537 | 4 | 4 | [] | no_license | #!/bin/bash
# default arg
BASEDIR=$WORK
WORKDIR=$PWD
GENOME=mm10
DELIM=","
PLATFORM="ILLUMINA"
# default sample info fields
FQ1_IDX=1
FQ2_IDX=2
SMID_IDX=3
FCID_IDX=4
FCLN_IDX=5
BCID_IDX=6
CSID_IDX=7
# help message
USAGE="$(basename "$0") [-gbwdhv] -s <sample_info>
purpose:
--pipeline to align, clean, generate metri... | true |
38dbda1ebe5ae099b84cd7f5aff4ad4cf6bf33cd | Shell | StrasbourgEurometropole/Strasbourg-Next | /docker/2_shutdown-services-and-backups.sh | UTF-8 | 423 | 3.203125 | 3 | [] | no_license | #!/bin/bash
echo -e "\n\n \e[35m1# Récupération des variables d'environnements\e[0m"
cat .env
export $(cat .env)
echo -e "\n\n \e[35m2# Arrêt des services\e[0m"
docker stack rm ems-stack
echo -e "\n\n \e[35m3# Backup de la BDD\e[0m"
echo -e "Export du dump $DB_BACKUPS_PATH/$MYSQL_DB\_$(date +%Y%m%d-%H%M).sql"
mysqld... | true |
a2633734aed51b04d98933bd6d482e2e793ab0aa | Shell | kauezatarin/Domus | /DosmusRaspberryScripts/installDotnetCore.sh | UTF-8 | 576 | 3.296875 | 3 | [] | no_license | #!/bin/bash
cd ~/
sudo apt-get install curl libunwind8 gettext
echo "Baixando .NET Core 2.1.x Runtime"
curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/2.1/dotnet-runtime-latest-linux-arm.tar.gz
echo "Extraindo instalação para /opt/dotnet"
sudo rm -r /opt/dotnet
sudo mkdir -... | true |
e0c4b7abe15b74d0d3bacf0326c835f5cee3d9bd | Shell | pygos/init-scripts | /scripts/setntpdate.sh | UTF-8 | 779 | 3.875 | 4 | [
"ISC"
] | permissive | #!/bin/sh
resolve() {
local domain="$1"
local server="$2"
if [ -x "$(command -v dig)" ]; then
if [ -z "$server" ]; then
dig +short "$domain"
else
dig +short "@$server" "$domain"
fi
return $?
fi
if [ -x "$(command -v drill)" ]; then
if [ -z "$server" ]; then
drill "$domain" | grep "^$domain." ... | true |
1af1b5ad01de536ed393bfb3078701d43f3eddff | Shell | fanpiao/JIT-Cloud-shield | /研发代码/识别文件标签并在HDFS上创建新路径.txt | UTF-8 | 1,460 | 3.203125 | 3 | [] | no_license | #!/bin/sh
JAVA_HOME=/usr/local/jdk1.8.0_121
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
export HADOOP_HOME=/root/bigdata/hadoop
export PATH=${HADOOP_HOME}/bin:${HADOOP_HOME}/sbin:$PATH
Folder_A="/root/test/"
Output_file="/root/extra/output.txt"
Input_file="/root/e... | true |
5d52c9d6ef4893c020180d2331af0e099aff5193 | Shell | KazAoyama/KaigoSystem | /E-LIFE/SYSTEM_SETTEI/CGI/back/._MASTER_POPUP_UNIT.TOUROKU.20140130.155300 | UTF-8 | 6,040 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#
# MASTER_POPUP_UNIT.TOUROKU : ユニット登録
#
# Written by S.Otsubo
# 更新対象
# UNIT_NAME(ユニットが新規作成される場合)
# SHISETSU_TATEYA_FLOOR_UNIT
# 画面と直接やりとり
#--------------------------------------------------------------
# ログ
source /home/hands/E-LIFE/SYSTEM_SETTEI/CGI/SYSTEM_SETTEI.INI &> /dev/null
source /home/hands/.ba... | true |
756ea9b0a53bfb4586ef03b2a88b65e12ff14b23 | Shell | nysol/doc | /olddoc/tutorial/mcmd/en/exercise/mcalday.sh | UTF-8 | 586 | 2.828125 | 3 | [] | no_license | #/bin/bash
#=====================================================
# MCMD bash script - Lesson 11: Create calculated fields
# Exercise
#=====================================================
# Variables
inPath="tutorial_en"
# Command
mcut f=customer,date i=${inPath}/dat.csv |
msortf f=customer,date |
mcal c='diffda... | true |
0b47cc3965b65ecb02c858efa98ed9d4006a3b20 | Shell | FauxFaux/debian-control | /s/sddm/sddm_0.18.0-1_amd64/postrm | UTF-8 | 1,908 | 3.59375 | 4 | [] | no_license | #!/bin/sh
set -e
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
DEFAULT_SERVICE=/etc/systemd/system/display-manager.service
case "$1" in
purge)
update-rc.d sddm remove > /dev/null
if [ -d /var/cache/sddm ]; then rm -r /var/cache/sddm; fi
if [ -d /var/lib/sddm ]; then rm -r ... | true |
5355c64d31e736e9715063d875ba22f3e89c8c82 | Shell | mypaceshun/dotfiles | /setup.sh | UTF-8 | 1,007 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
BASEDIR=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd)
DOT_FILES=(.bash* .vim* .zsh* .gitconfig)
for file in ${DOT_FILES[@]}
do
if [ -f $HOME/$file -a ! -L $HOME/$file ]; then
# make backup directory
if [ ! -e ${BASEDIR}/backup ]; then
echo backup directory maked
mkdir ${BAS... | true |
3bb099b1148012c80212969fa6b88098dc27be9e | Shell | dladams/lbne-larrel | /larrel | UTF-8 | 16,323 | 3.625 | 4 | [] | no_license | #!/bin/sh
# David Adams
# October, 2014
#
# Script to build an LBNE release.
THISDIR=`dirname $0`
OLDPROD=larsoft
NEWPROD=lbnecode
TOPDIR=`pwd`
HISTFILE=$TOPDIR/history
COMHISTFILE=$TOPDIR/comhistory
DBG=
HELP=
README=
ENVCHK=
REMDIR=
REMALL=
DIRMAK=
CHKOUT=
VERUPD=
BUILD=
QUAL=e7:prof
Test=
OLDVERS=
NEWVERS=
COMMI... | true |
4c557537afda8db79c08b744d2076405ac1158ed | Shell | xadflores/UpsilonAna_Run2 | /UpperLimit/Code_2S/run_Ws.sh | UTF-8 | 408 | 2.515625 | 3 | [] | no_license |
#!/bin/bash
# dir
dir2=WS
#for cat in 0cent20 20cent60 60cent100 100cent160 0cent160; do
for cat in 0cent10; do
ppfile=`ls $dir2/FIT*PP*root`
pbpbfile=`ls $dir2/FIT*PbPb*$cat*root`
nice root -l -b -q Raa2S_Workspace.C\(\"${pbpbfile}\"\,\"${ppfile}\"\,\"$dir2/WS_combo2S_${cat}.root\"\)
mv c1.pdf $dir2/c... | true |
791db11fb6f7a6f1fa7ecba400bae5dfae24997e | Shell | jairot/yogcheck | /start2.sh | UTF-8 | 787 | 2.984375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
NAME="yogcheck" # Name of the application
DJANGODIR=/home/azureuser/yogcheck/ # Django project directory
USER=azureuser #the user to run as
GROUP=azureuser
NUM_WORKERS=3 # how many worker processes should Gunicorn spawn
#DJANGO_SETTINGS_MODULE=settings # which settings file should Django use
echo "St... | true |
a0d4671e5b387de630a96967dcaf8e6349d257a6 | Shell | Amar1729/bin | /nix-list | UTF-8 | 1,472 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# Query installed pkgs in nix store of the current user's profile
# see `man nix-store' for more info
#
# I wrote a little `depth' helper that makes viewing the --tree output a little better
op="$1"
[[ -z "$op" ]] && op="-R"
_name () {
fd --maxdepth 1 --type d "$1-?[^-]*$" /nix/store
}
# Args:
# ... | true |
bb4d4f963855b76b4a5edf99756b93966ac5ce66 | Shell | schiermi/bashmeetup | /demo/params.sh | UTF-8 | 365 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#IFS=$'\n\t'
fmt="%-4s i:%2i >%s<\n"
echo "Anzahl Parameter: $#"
echo
i=0
for p in $*
do
printf "${fmt}" '$*' $((i++)) "${p}"
done
echo
i=0
for p in "$*"
do
printf "${fmt}" '"$*"' $((i++)) "${p}"
done
echo
i=0
for p in $@
do
printf "${fmt}" '$@' $((i++)) "${p}"
done
echo
i=0
for p in "$@"
do
... | true |
8cabf5325595fa4e77bff4b794462e515f940e1d | Shell | dawson2016/script-mess | /mail.sh | UTF-8 | 1,088 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
to_email_address="$1" # 收件人Email地址,zabbix传入的第一个参数
message_subject_utf8="$2" # 邮件标题,zabbix传入的第二个参数
message_body_utf8="$3" # 邮件内容,zabbix传入的第三个参数
message_subject_gb2312=`iconv -t GB2312 -f UTF-8 << EOF
$message_subject_utf8
EOF`
[ $? -eq 0 ] && message_subject="$message_su... | true |
1ca49ce666b62f03a1aee1d6b86b4a5f1fc6cc8e | Shell | kei-sato/homebrew-tasktoday | /tasktoday | UTF-8 | 12,104 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
USAGE="
Recommend:
alias tt=tasktoday
Usage:
$0 (ad|in|st|en|ca|clear|ed|path|help) [options...]
Example:
- add a task with its estimated time 1 hour
tt ad -e 1 house keep
- insert a task (its estimated time is default to 0.5 hour)
tt in fit
- start a task
tt st... | true |
d77b69f4b1d2c7bc074246e5adaaeabad3c77f66 | Shell | tkdrob/docker-open-dns-ip-updater | /ddclient-init.sh | UTF-8 | 622 | 3.5625 | 4 | [] | no_license | #!/bin/sh
# Search for custom config file, if it doesn't exist, copy the default one
if [ ! -f /config/ddclient.conf ]; then
echo "Creating config file. Please do not forget to enter your info in ddclient.conf."
cp /root/ddclient/ddclient.conf /config/ddclient.conf
chmod a+w /config/ddclient.conf
exit 1
fi
# ... | true |
d1929fa42c67b55c6a140f9edb83e89dc6d2107d | Shell | kraffield-eb/dotfiles | /new-mac-setup.sh | UTF-8 | 1,263 | 3.53125 | 4 | [] | no_license | getbrew () {
which -s brew
if [[ $? != 0 ]] ; then
echo "homebrew isn't installed."
echo "installing homebrew..."
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo "updating homebrew"
brew update
fi
}
ins... | true |
a7af15ae9d612d8ca192ace6108ba42fd4a0e30f | Shell | rabbitear/AnchorageBusSkill | /publish.sh | UTF-8 | 602 | 3.34375 | 3 | [] | no_license | if [ -e index.zip ]
then
echo "[+] Deleting old index.zip."
rm index.zip
fi
if [ -d lambda ]
then
cd lambda
else
echo "[*] WARN: could not find lambda directory in cwd."
exit 1
fi
7z a -r ../index.zip
if [ $? -gt 0 ]
then
echo "[*] Something went wrong while zipping."
exit 1
cd ..
fi
cd ... | true |
0a356f6db3a6def15263525d91f0a600f5ec167b | Shell | pratikga/Vagrant_scripts | /bash_scripts/array | UTF-8 | 300 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#NAME=(Pratik ganapa varapu) #This is working
#echo "the name is ${NAME[0]}"
Name[0]="Pratik" # THis is also working
Name[1]="Gana"
Name[2]="Varapu"
#set -A Name pratik pratikgana ganapa varapu JIbe
echo "The value of the sring is ${Name[1]}"
echo "The value of all the srings are ${Name[@]}"
| true |
4cfdbb6c3e97e705edeee2a41425143515c5a4b1 | Shell | nalysann/init | /network/13 | UTF-8 | 513 | 2.921875 | 3 | [] | no_license | #!/bin/zsh
# Thanks to the previous question and the reverse DNS find the name of your host
ifconfig en0 | grep 'inet ' | awk '{print $2}' | xargs nslookup | grep name | awk '{print $4}'
# alternatively we can use `ifconfig en0 | grep 'inet ' | awk '{print $2}' | xargs host | grep name | awk '{print $5}'`
# alternat... | true |
b75fc57abfd216f1476622d4c6bc000e505064f2 | Shell | scottpunshon/dotfiles | /dotfiles/bash_prompt | UTF-8 | 379 | 3.15625 | 3 | [] | no_license | # vim: ft=sh
_PROMPT_USER='\033[92m\u\033[0m' # bright green
_PROMPT_HOST='\h'
_PROMPT_PWD='\033[94m\w\033[0m' # bright blue
# Show host information when connected from remote machine
if [ -n "${SSH_TTY}" ]; then
PS1="
${_PROMPT_USER}@${_PROMPT_HOST} ${_PROMPT_PWD}
\$ "
else
PS1="
${_PROMPT_USER} ${_PROMPT_PWD}
... | true |
92916ce468d16fd60d30ce8315340995b65d95b5 | Shell | Ponce/slackbuilds | /multimedia/Gem/Gem.SlackBuild | UTF-8 | 3,138 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# Slackware build script for <Gem>
#
# Michales (clavisound) Michaloudes korgie@gmail.com <2017>
# 20220214 bkw: Modified by SlackBuilds.org:
# - updated for v0.94, as 0.93.3 won't build on Slackware 15.0.
# - moved pkg-config stuff to proper place (/usr/lib64 on x86_64).
cd $(dirname $0) ; CWD=$(pwd)
PR... | true |
d00b4a511f1327e18967e0ea2429bceeaf1f3015 | Shell | nathan8299/OSX_MediaCenter_MountainLion | /scripts/install_plex_server_plexwatchweb.sh | UTF-8 | 1,702 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
echo "#------------------------------------------------------------------------------"
echo "# Install plexWebWatch for Plex Media Server"
echo "#------------------------------------------------------------------------------"
# https://github.com/ecleese/plexWatchWeb
source ../config.sh
if [ -e /... | true |
e5a54b79753b696c81d0a3783c846b6aa43572c2 | Shell | adelgadop/hpc-workshop-wrf | /pc_setup_scripts/git_download_and_run.sh | UTF-8 | 814 | 3.625 | 4 | [
"MIT-0",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
#Load Parallelcluster environment variables
. /etc/parallelcluster/cfnconfig
github_repo=$(echo ${cfn_postinstall_args}| cut -d ',' -f 1 )
setup_command=$(echo ${cfn_postinstall_args}| cut -d ',' -f 2 )
shared_folder=$(echo $cfn_shared_dir | cut -d ',' -f 1 )
echo "ARUMENTS $cfn_postinstall_args"
echo "RE... | true |
4cb019e4680c0b79cb47368a223b045a37cccb2f | Shell | shellingford330/A-Tour-of-Go | /bin/init | UTF-8 | 125 | 2.984375 | 3 | [] | no_license | #!/bin/bash
if test $# -eq 1
then
cat ~/Documents/go/bin/template.go > $1
else
echo "(Error): Please set a file name."
fi
| true |
00815fa528dde88def21058106b5610bb9856c79 | Shell | schopman/NoTube-ClioPatria-services | /data/dbpedia/fetch.sh | UTF-8 | 806 | 3.265625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
fixDBpediaFile ( ) {
: ${1?}
ZIPPED=$1.bz2
wget http://downloads.dbpedia.org/3.6/$2/$ZIPPED
bzip2 -cd $ZIPPED | gzip > $1.gz
rm $ZIPPED
echo "* fixed: $1"
}
fixDBpediaDataset ( ) {
: ${1?}
fixDBpediaFile $1 en
}
fixDBpediaAlignment ( ) {
: ${1?}
fixDBpediaFile $1 links
}
FILE=dbpedia_3.6.owl
Z... | true |
4256364d304e6928d6572862dc40b0e4548f3463 | Shell | ashhher3/pyDatasets | /bin/get_physionet_challenge2012_variables.sh | UTF-8 | 179 | 3.078125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DATADIR=$1
OUTDIR=$2
CURRDIR=`pwd`
cd $DATADIR
cat set-a/*.txt set-b/*.txt | sed 's/.*,\(.*\),.*$/\1/g' | sort | uniq > $OUTDIR/variables-from-data.txt
cd $CURRDIR
| true |
e29d5f84f0bfd0a95159d03695635acea10f4d9b | Shell | LuiGGi629/dotfiles | /install.sh | UTF-8 | 9,095 | 3.6875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env zsh
set -Eeuxo pipefail
######### Pre-checks #########
# Detect platform.
if [ "$(uname -s)" != "Darwin" ]; then
echo "These dotfiles only targets macOS."
exit 1
fi
# Check current shell interpreter.
ps -p $$ | grep "zsh"
if [ $? != 0 ]; then
echo "These dotfiles were only tested with Zsh... | true |
2b6b329996c8f0a9c683f7405d81eb43905eaa6e | Shell | akshayuprabhu/labWork3rdSem | /UNIX/Assignments/Assignment_3/sum_of_cube.sh | UTF-8 | 413 | 3.78125 | 4 | [] | no_license | #!/bin/bash
echo "This program displays numbers from 1 to 999 whose sum of cube of digits is equal to the number"
for (( num = 1; num < 1000; num++ )); do
n=$num
sum=0
while (( n > 0 )); do
digit=`expr $n % 10`
temp=`python -c "print $digit**3"`
sum=`expr $sum + $temp`
n=`ex... | true |
5cb29fe107d61feda3cbeb847485cc8a7757bc72 | Shell | Bjay1435/capstone | /rootfs/var/lib/dpkg/info/openssh-server.postrm | UTF-8 | 2,011 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
# Automatically added by dh_installdeb
dpkg-maintscript-helper mv_conffile /etc/pam.d/ssh /etc/pam.d/sshd 1:4.7p1-4~ -- "$@"
# End automatically added section
# Automatically added by dh_systemd_enable
if [ "$1" = "remove" ]; then
if [ -x "/usr/bin/deb-systemd-helper" ]; then
deb-systemd-helper mas... | true |
4da2c619db633c876767033c0d7fb4a3b4755e06 | Shell | anchitjain1234/irproject2 | /installation.sh | UTF-8 | 884 | 3.015625 | 3 | [] | no_license | while true; do
read -p "Do you want to install Scrapy?" yn
case $yn in
[Yy]* ) sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 627220E7;echo 'deb http://archive.scrapy.org/ubuntu scrapy main' | sudo tee /etc/apt/sources.list.d/scrapy.list;sudo apt-get update && sudo apt-get install scr... | true |
2e97302579a87b60e4c9a2495c4f62c4c27d4633 | Shell | NathanFaught/datahub | /metadata-ingestion/scripts/codegen.sh | UTF-8 | 381 | 2.671875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | #!/bin/bash
set -euxo pipefail
OUTDIR=./src/datahub/metadata
# Note: this assumes that datahub has already been built with `./gradlew build`.
DATAHUB_ROOT=..
cp $DATAHUB_ROOT/metadata-events/mxe-schemas/src/renamed/avro/com/linkedin/mxe/MetadataChangeEvent.avsc .
rm -r $OUTDIR || true
python scripts/avro_codegen.py ... | true |
99f5298571b2cdfe5a775ad3687ffc5a5482570a | Shell | vixie/mhdb | /mhdb-build.sh | UTF-8 | 266 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/sh
PATH=/home/vixie/src/mhdb:$PATH
case "$1" in
+*) folder=$1 ;;
*) echo usage: $0 +folder; exit 1
esac
path=`mhpath $folder`
if [ ! -d $path ]; then
echo $0: not a folder: $folder
exit 1
fi
rm -f $path/mhindex.db
mhpath all $folder | mhdb-add -
exit
| true |
e1aa6f17cdc422e6f91f7d2ece2959939da4647f | Shell | piotr-yuxuan/nile | /packer/scripts/installer-ssm-agent.sh | UTF-8 | 413 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -xe
# check if it runs as root
[ "$(id -u)" != "0" ] && echo "ERROR: The script needs to be executed as root user.." && exit 1
DEB_FILE=/tmp/amazon-ssm-agent.deb
DEPLOYMENT_REGION=eu-west-1
curl -XGET -O amazon-ssm-agent.db "https://s3.${DEPLOYMENT_REGION}.amazonaws.com/amazon-ssm-${DEPLOYMENT_REGION}/lat... | true |
f9d14fc2b91f474e360e604bd3fbae32d910b0da | Shell | ChadwickCSP/AdventureQuest | /support/install-nvm.command | UTF-8 | 1,820 | 2.515625 | 3 | [] | no_license | brew update
brew install nvm
mkdir -p ~/.nvm
INSTALL_LOCATION="$(brew --prefix nvm)"
echo '' >> ~/.bash_profile
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bash_profile
echo "[ -s \"$INSTALL_LOCATION/nvm.sh\" ] && . \"$INSTALL_LOCATION/nvm.sh\" # This loads nvm" >> ~/.bash_profile
echo "[ -s \"$INSTALL_LOCATION/etc/ba... | true |
fae58608de7470960fb939d03fbaa557ea6e5128 | Shell | baojiweicn/Misstar-Tools | /appstore/R3/ss/script/ss | UTF-8 | 12,118 | 2.9375 | 3 | [] | no_license | #!/bin/sh /etc/rc.common
#----------------------------------------------------------------
# Shell Name:ss
# Description:Plug-in startup script
# Author:Starry
# E-mail: starry@misstar.com
# Time:2016-11-06 02:30 CST
# Copyright © 2016 Misstar Tools. All rights reserved.
#---------------------------------------------... | true |
ee8472ab4a9723fabcda7e53909d3e809fc2599f | Shell | VinceBLOT/SyliusDockerDeployer | /deploy/scripts/update-remote-env.sh | UTF-8 | 171 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE%/*}" )" >/dev/null 2>&1 && pwd )/deploy/scripts"
. "$DIR/functions.sh"
echo "Update remote .env files"
rscp .env
exit 0
| true |
be969e5e2ec3feebdcc654e5efa13c94b3192a89 | Shell | bpan-org/bpan | /lib/cmd/config.bash | UTF-8 | 851 | 3.890625 | 4 | [
"MIT"
] | permissive | config:default() (
echo --help
)
config:usage() (
echo "$app [<$app-opts>] $cmd <key> [<value>]"
)
config:options() (
echo "f,file= Config file to use"
echo "l,local Use './.bpan/config'"
echo "g,global Use '\$BPAN_ROOT/config'"
echo "all Get all values for a key"
echo "list List all key... | true |
74b61a6e658c17aadd71d2cced56345291511364 | Shell | maniaxcz/Shell-Scripting | /until.sh | UTF-8 | 73 | 2.875 | 3 | [] | no_license | count=1
for $count in
do
echo $count
count=`expr $count + 1`
done | true |
ba068d144f1ab94abebd0bc99b94c1815e14d731 | Shell | mnabila/dotfiles | /scripts/dmenu_ffmpeg | UTF-8 | 5,509 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# dmenu_ffmpeg
# Copyright (c) 2021 M. Nabil Adani <nblid48[at]gmail[dot]com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation t... | true |
ffd49e0998274970a74e99906ce2dd3b3c62f77f | Shell | LyndonXu/Project | /user_sdk/common/rmoldbackup.sh | UTF-8 | 161 | 3.359375 | 3 | [] | no_license | #!/bin/sh
filelist=`ls ${1}* | sort`
cnt=1;
for filetmp in ${filelist};
do
((cnt++))
if [ "${cnt}" -gt 10 ];then
echo ${filetmp}
rm ${filetmp}
fi
done
| true |
e8e4e05333444d00c86380964b2933cca67ae72a | Shell | k-husmann/tools | /shell/create_git_repo.sh | UTF-8 | 388 | 3.125 | 3 | [] | no_license | #!/bin/bash
# Initialize a git repository in the temp directory and push it to my own
# server. I should have created a repository there on the server already with
# ``git init ~/repos/the_project_name --bare``.
cd /tmp
git init $1
cd $1
echo "hurray" > README.rst
git add README.rst
git commit -m "Added readme"
git re... | true |
0b9785dd1b3a04939b28adf962bef9f4be5dc606 | Shell | evernym/indy-sdk | /vcx/libvcx/build_scripts/android/libsodium/build.sh | UTF-8 | 1,577 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
TARGET_ARCH=$1
TARGET_API=$2
CROSS_COMPILE=$3
if [ -z "${TARGET_ARCH}" ]; then
echo STDERR "Missing TARGET_ARCH argument"
echo STDERR "e.g. x86 or arm"
exit 1
fi
if [ -z "${TARGET_API}" ]; then
echo STDERR "Missing TARGET_API argument"
echo STDERR "e.g. 21"
exit 1
fi
if [ -z "$... | true |
b9b42fb6ff2dee20cbd7ff028269237c44de174d | Shell | dankamongmen/snare | /sbin/snare-logdump | UTF-8 | 317 | 2.859375 | 3 | [] | no_license | #!/bin/sh
# Sends a no-op message to snare, ensuring that it's alive and addressable
# via the ctlserver at $SNARECTL.
set | grep ^CONF= > /dev/null || CONF=/usr/local/etc/crosier/crosier.conf
. $CONF || exit 1
echo "Running $CROSIER $SNARECTL log_dump < /dev/null..."
exec $CROSIER $SNARECTL log_dump < /dev/null
| true |
ae912c854003ad07b9f00222c514a2eb6142770b | Shell | juhanikataja/SAPPORO-service | /src/run_workflow.sh | UTF-8 | 1,520 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
function run_wf() {
if [[ ${execution_engine} == "cwltool" ]]; then
run_cwltool
elif [[ ${execution_engine} == "nextflow" ]]; then
run_nextflow
elif [[ ${execution_engine} == "toil" ]]; then
run_toil
fi
}
function run_cwltool() {
echo "RUNNING" >$status
cwltool --custom-net=sapporo... | true |
d0a05c885b8735d9f1453806cbacb2cd5e965705 | Shell | cyber-dojo-retired/porter | /sh/scratch.sh | UTF-8 | 762 | 2.921875 | 3 | [] | no_license | #!/bin/bash
curl -O https://raw.githubusercontent.com/cyber-dojo/porter/master/port_cyber_dojo_storer_to_saver.sh
chmod 700 port_cyber_dojo_storer_to_saver.sh
docker pull cyberdojo/storer
docker pull cyberdojo/saver
docker pull cyberdojo/porter
sudo mkdir /cyber-dojo
sudo chown 19663:65533 /cyber-dojo
sudo mkdir /port... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.