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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f15210b28fc6d0d0cfc0c37b15dff8b638f63586 | Shell | davidoae/CLIfairly | /map_files/map_functions/pallet_town_functions.sh | UTF-8 | 1,014 | 2.84375 | 3 | [] | no_license | #!bin/bash
map_function_conditions(){
# map swaps - always have to come before stops
# enter leftmost house
if [ "$newy" -eq 9 ]; then
if [ "$newx" -eq 7 -o "$newx" -eq 8 ]; then
change_conf_value "character_files/character.cfg" "current_map_char_is_on" 2
get_new_map_info_set_starting_po... | true |
8744ab53388865c8a0a04f9e370ed58bec676a83 | Shell | unRob/dotfiles | /.milpa/commands/computar/provision/dependencies.sh | UTF-8 | 3,462 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
@milpa.load_util user-input
base="$DOTFILES_PATH/brewfiles/"
brewfile="$HOME/.Brewfile"
case "$(uname -s)" in
Darwin)
os="macos"
if ! xcode-select --version >/dev/null; then
@milpa.log "Installing Command Line Tools (CLT) for Xcode, click on the thing!"
xcode-select --instal... | true |
2e6f98d9a084b3435e49ee6577231e13b2e29cc5 | Shell | shmuel4/mqtt-controler | /runme.sh | UTF-8 | 216 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#
# B.H.
#
script=`readlink -f $0`
dir=`dirname $script`
project=`basename $dir`
cd $dir
docker stop $project
docker rm $project
docker run -d --restart always \
-p 8091:8091 --name $project $project | true |
9cd3aee80247762035468e5529918d14552c3c7d | Shell | mrmiywj/SimpleDB | /CSE444-lab6/src/bin/startSimpleDB.sh | UTF-8 | 6,302 | 3.609375 | 4 | [] | no_license | #!/bin/bash
function setSimpleDBRoot
{
local this
local lls
local link
local bin
this="${BASH_SOURCE-$0}"
while [ -h "$this" ]; do
lls=`ls -ld "$this"`
link=`expr "$lls" : '.*-> \(.*\)$'`
if expr "$link" : '.*/.*' > /dev/null; then
this="$link"
else
this=`dirname "$this"`/"$link"
fi
do... | true |
1474d577a0e464d660d560ee1e35e6482d985c9d | Shell | mcarifio/sshfs | /sshfs.sh | UTF-8 | 1,068 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Mike Carifio <mike@carif.io>
# TODO mike@carif.io: figure out afuse to make this script unnecessary
# exit on error
# set -e
function usage {
echo <<EOF
-v verbose
-h help
-? help
-d mount all mount points in a directory
EOF
}
function complete {
echo "bash completion spec tbs"
}
f... | true |
399d3d3ea476263cab379b7804e5358912285657 | Shell | fulong/wechat_work_webhook | /tools/auxiliary_completion.bash | UTF-8 | 770 | 3.390625 | 3 | [] | no_license | #!/bin/bash
#让bash可以自动补全auxiliary工具参数,这脚本在install命令下会运行,也可以手动执行
_auxiliary()
{
COMPREPLY=()
local cur=${COMP_WORDS[COMP_CWORD]};
local cmd=${COMP_WORDS[COMP_CWORD-1]};
first_cmd="build install debug redebug project"
case $cmd in
'./linux_cmake_template_auxiliary.sh')
COMPREPLY=( $(compgen -W... | true |
10772419f7dd5437d49ecb824c8b7ab6996dd21b | Shell | pkerichang/hammer | /src/tools/get-makefile-vars | UTF-8 | 1,692 | 4.375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# get-makefile-vars
#
# Copyright 2017 Edward Wang <edward.c.wang@compdigitec.com>
#
# Get the expanded variable definitions from a Makefile.
#
# Usage:
# make <...> -pn | get-makefile-vars -
set -e
# The file containing the make -pn results.
if [[ $1 == "-" ]]; then
in_data=/dev/stdin
else
in_data=$1... | true |
aa2ff14e578882432318adca4bf0db9031109785 | Shell | euginetheninth/cs2150Labs | /lab07/postLab/averagetime.sh | UTF-8 | 577 | 3.671875 | 4 | [] | no_license | #!/bin/bash
# Derek Johnson dej3tc
# 10/31/19
# We will first prompt the user for a number
# between 1 and 9 that will be used for the
# timer program
read -e -p "Input a number between 1 and 9: " number
quit="quit"
if [ $number == $quit ]
then
exit
fi
clang++ counter.cpp
i=1
RUNNING_TIME=0
while [ $i -lt 6 ];... | true |
7ab2a65823e1020dcf847bbe910f7d3e16e9a904 | Shell | joshdorsey/temperature-monitor | /log.sh | UTF-8 | 1,162 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
pushd ~htpc/temperature > /dev/null
. time.sh
# Log Data
declare -r LOGFILE=temperature.log
temp=$(sensors -u | grep -A 1 'Package id 0:' | grep _input | cut -s -d\ -f 4)
time=$(getTime)
if [ ! -r $LOGFILE ]; then
echo "Couldn't find temperature log, creating it..."
echo "Time, Temperature... | true |
70d14a93b14e9aa1f6dfd29e3ff01f5d3cc3191d | Shell | frennkie/dotfiles | /zshrc | UTF-8 | 1,910 | 3.171875 | 3 | [] | no_license | export ZSH=~/.zsh
# Source git zshrc prompt style
source ~/dotfiles/zsh/lib/zsh-git-prompt/zshrc.sh
# Load all of the config files in ~/oh-my-zsh that end in .zsh
for config_file ($ZSH/lib/*.zsh) source $config_file
# Load and run compinit
autoload -U compinit
compinit -i
# this is a fix for vi in OS X
#alias vim="... | true |
98db6a3732a8b5d097d88e7b937e83b1010cd8ac | Shell | softbaseas/oracle7-deploy | /includes/main.sh | UTF-8 | 2,425 | 3.96875 | 4 | [] | no_license | #!/bin/bash
source ./includes/setVars.sh
while true; do
echo "";
echo "Choose one of the following possibilities:"
echo " 0 - Stop webnm"
echo " 1 - Setup network"
echo " 2 - Change hosts files"
echo " 3 - Change formsweb"
echo " 4 - Change Oracle virtual hosts"
echo " 5 - Deploy ORDS ... | true |
e3546fb7657e138bd57e5f8105a37f27d812859f | Shell | jianzuoyi/Chicken | /20.processing_for_gatk/Bat_merge.sh | UTF-8 | 385 | 3 | 3 | [] | no_license | #!/bin/bash
#set -vex
OUTDIR=/its1/GB_BT2/jianzuoyi/projects/Chicken/20.processing_for_gatk/merge_data
while read dir
do
sm=$(echo $dir | awk -F '/' '{print $10}')
# echo $sm
out_dir=${OUTDIR}/${sm}
read1=${sm}_1.fq.gz
read2=${sm}_2.fq.gz
echo "mkdir -p $out_dir;cd $dir; cat *_1.fq.gz > ${out_di... | true |
736717ececfac553109de34903d7e6815b3696cd | Shell | animuxOS/Genesis64 | /usr/share/kino/scripts/dvdauthor/qdvdauthor.sh | UTF-8 | 382 | 3.828125 | 4 | [] | no_license | #!/bin/sh
# A Kino script that invokes qdvdauthor on a generated dvdauthor xml file.
usage()
{
# Title
echo "Title: Open in 'Q' DVD-Author"
# Usable?
which qdvdauthor > /dev/null
[ $? -eq 0 ] && echo Status: Active || echo Status: Inactive
}
execute()
{
xml="$1"
output="$2"
qdvdauthor -a -d "$xml" &
}
[ "$... | true |
9aff5a61d277ca075c3f7bdc7da35804cee67883 | Shell | victoriza/docker-kafka-zookeeper | /assets/scripts/kafka_standalone.sh | UTF-8 | 693 | 2.59375 | 3 | [] | no_license | #install java
apt-get update
apt-get install openjdk-8-jre -y
#update-alternatives --config java
#note that default broker.id = 0
export ZOOKEEPER_VERSION=3.4.11
export SCALA_VERSION=2.12
export KAFKA_VERSION=1.0.0
export KAFKA_HOME=/opt/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION"
export KAFKA_DOWNLOAD_URL=https://archiv... | true |
ad116b2d020687509de65e8937aa0949af015524 | Shell | jpiscionere/BOSS-Clustering | /Scripts/calculate_wp_nojack.sh | UTF-8 | 537 | 2.546875 | 3 | [] | no_license | #! /bin/bash
#nden[1]=0.0002569
#nden[2]=0.0003243
#nden[3]=0.0002327
#nden[4]=0.0000942
#nden[5]=0.0001848
nden[1]=0.0002494737166611
nden[2]=0.0003150319712696
nden[3]=0.0002238406773599
nden[4]=0.0000912964784524
nden[5]=0.0001847687542961
i=1
for bin in bin1 bin2 bin3 bin4 bin_all
do
nden1=${nden[$i]}
ech... | true |
25ae0887837d26927f3ffc369fc6606e5a71a7d0 | Shell | hufh/osaris | /modules/unstable_coh_metric/UCM-batch.sh | UTF-8 | 1,735 | 3.3125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
start=`date +%s`
echo; echo "Starting UCM processing ..."; echo
UCM_work_PATH=$1
UCM_output_PATH=$2
corr_file=$3
high_corr_file=$4
high_corr_threshold=$5
boundary_box=$6
swath=$7
cd $UCM_work_PATH/input
echo; echo "Grdinfo high corr file:"
gmt grdinfo $high_corr_file
echo "Extracting high coherence ar... | true |
1ebfdec38dfe764577d115a8c3210c51030a20cc | Shell | mamihackl/MalletDT | /build_dt.sh | UTF-8 | 296 | 2.6875 | 3 | [] | no_license | #!/bin/bash
ul='_'
ext=$3$ul$4
accfile=$acc$ext
modelfile=$5$ext
sysfile=$6$ext
timelog='time.'
START=$SECONDS
./DTlearner.py $1 $3 $4 $modelfile
./DTclassifier.py $1 $2 $modelfile $sysfile
END=$SECONDS
DIFF=$(($END-$START))
echo ''$accfile: Processing time $DIFF seconds'' > $timelog$accfile
| true |
6c94d9dcafc17a16b1c205b8f9ab13c42fefb42b | Shell | zalando/skipper | /skptesting/profile-proxy.sh | UTF-8 | 494 | 2.765625 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | #! /bin/bash
if [ "$1" == -help ]; then
log profile-proxy.sh [duration] [connections]
exit 0
fi
source $GOPATH/src/github.com/zalando/skipper/skptesting/benchmark.inc
trap cleanup SIGINT
log [generating content]
lorem
log [content generated]
log; log [starting servers]
# ngx nginx-static.conf
skp :9980 static.es... | true |
3d868c1f6363341fac702ad2df47e7c79b0de799 | Shell | computezrmle/boinc-scripts | /vbox/tty2monitor/dump_atlas_logs | UTF-8 | 1,656 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# ATLAS logs don't grant read access to other accounts but atlas
# Hence we need to dump the logs to a location where the monitoring user can read them
source_location="/home/atlas/RunAtlas"
target_location="/home/montty2/RunAtlas"
main_log_name="log.EVNTtoHITS"
athena_log_name="AthenaMP.log"
athena_worke... | true |
5e276f23b72e6648560e6eabe0b096015822a97b | Shell | landrylaboratory/Gene_duplication_2019 | /scripts_for_simulations/006_gather_simulations.sh | UTF-8 | 2,638 | 3.53125 | 4 | [
"MIT"
] | permissive | ##!/bin/bash
# This script will go to a folder with the output of the simulations and gather the fixed and proposed mutations in tables
# in a subfolder called "Final_results"
# $1 = path to the directory with results from simulations
# $2 = number of replicates in that simulation
cd $1
num_reps=$2
mkdir Final_resu... | true |
1b7cfc613324fd4054ec8958ce42964fad2d5bbc | Shell | jormao/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/100-read_and_cut | UTF-8 | 234 | 3.203125 | 3 | [] | no_license | #!/usr/bin/env bash
# Bash script that displays the content of the file /etc/passwd.
# script should only display:
# username
# user id
# Home directory path for the user
while IFS= read
do
cut -d ":" -f 1,3,6
done < /etc/passwd
| true |
3f9c2c86becc1f7e92ee2be12d231668e5df35d0 | Shell | dameyerdave/sshutils | /sufw | UTF-8 | 4,899 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# require daemon
# require tcptunnel on remotehost
function usage {
echo "USAGE: $(basename $0) start|stop|status -h host -l localport -r remoteport [-u user] [-n name] [-k key] [-t]"
echo ""
echo " <connection name>: <localhost>:<localport> o==o <user>@<remotehost>:<remoteport> o== <tcptunnel>:<remot... | true |
aeec88a50abfac812d03b10626c9d5d7f02ce489 | Shell | dawxoje/Scripting | /Bash/B3_I10_Colección_Scripts_1/sc16.sh | UTF-8 | 480 | 3.375 | 3 | [] | no_license | #! /usr/bin/sh
echo "Introduzca un código postal: \c"
read cp
case "$cp" in
280[0-4][0-9] | 2805[0-4] )
echo "$cp es un código postal de Madrid"
;;
28[0-9][0-9][0-9] )
echo "$cp es un código postal de la provincia de Madrid"
;;
[0-4][0-9][0-9][0... | true |
39613d678886c61fc465ab4ace391da5ad76aa97 | Shell | sophia-jihye/coursera-ml | /sophia.sh | UTF-8 | 129 | 2.796875 | 3 | [] | no_license | if [ -z "$1" ]; then
echo "ERROR: One parameter is required. [COMMIT MESSAGE]"
exit
fi
git add .
git commit -m $1
git push
| true |
548dee73d75dfa7c2e5b373aa0c373a665ced758 | Shell | twotigers0608/test_python | /jenkins_android/clear_BAT.sh | UTF-8 | 6,566 | 3.515625 | 4 | [] | no_license | #/bin/sh
# Clear BAT script
failed_cve=
function tc_boot_first_boot ()
{
dmesg > dmesg.log
}
function tc_generics_check_kernel_warning () {
dmesg | grep -i warning | wc -l
}
function tc_generics_check_kernel_version () {
cat /proc/version
}
function tc_generics_kernel_cmdline () {
cat /proc/cmdline
}
function... | true |
99cfa8d266089c553e66af9c02592eb0c6d7cb89 | Shell | esa-shine/shine-testbed | /shaka-packager/segments-encrypt-contents.v2.sh | UTF-8 | 2,527 | 3.375 | 3 | [] | no_license | #!/bin/bash
echo -e "\n script per creare contenuti cifrati DASH-enabled usando shaka-packager. Prende in ingresso la durata di ogni segmento ed il nome del file mp4 da segmentare e cifrare."
# NOME_VIDEO_EXTENDED=$1
SEGMENT_DURATION=$1
for i in $( ls /shaka_packager/media/mp4); do
#rimuovo l'estensione dal file..
N... | true |
5146ac20a0231367515ab50ef60a6703eb15a3e8 | Shell | ShoupingShan/Shell | /train3/exam_while.sh | UTF-8 | 704 | 3.296875 | 3 | [] | no_license | #! /bin/bash
i=1
while [[ "$i" -lt 10 ]]
do
let "square=i*i"
echo "$square"
let "i++"
done
for ((i=1;i<=9;i++))
do
for ((j=1;j<=i;j++))
do
let "product=i*j"
printf "$i*$j=$product"
if [[ "$product" -gt 9 ]]
then
printf " "
else
printf " "
fi
if [[ "$j" -eq 5 ]]
... | true |
e6ab1b16808afd98121bdaeb30986a8e88552a73 | Shell | husiana/azurehpc | /ci/build.sh | UTF-8 | 4,243 | 3.90625 | 4 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | #!/bin/bash
PROJECT_DIR=$1
show_logs=${AZHPC_SHOW_LOGS,,}
if [ "$SYSTEM_DEBUG" = "true" ]; then
set -x
AZHPC_OPTION="--debug"
show_logs="true"
printenv
fi
if [ "$AZHPC_CONFIG" = "" ]; then
echo "variable AZHPC_CONFIG is required"
exit 1
fi
if [ "$AZHPC_PIPELINE_DIR" = "" ]; then
echo "variab... | true |
ef9716b1681fb9e311ee1c056eceac58ed4d5b30 | Shell | Giappo/jap | /cluster_scripts/run_on_cluster.bash | UTF-8 | 2,498 | 2.953125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --time=00:04:58 --partition=short
my_email=$3
chosen_partition=$4
cluster_folder=$5
account=$6
projects_folder_name=$7
package_name=$8
function_name=$9
cd /$cluster_folder/$account/jap_scripts/
args_file=$1
fun_file=$2
args_string=${args_file%.*}
echo ${args_file}
echo ${args_string}
echo ${fun_fi... | true |
90ea16043c2e5bf0bdc0dfdac0e1cff763cf4e40 | Shell | usergenic/dotfiles | /node/dot-bash_profile_node | UTF-8 | 276 | 2.671875 | 3 | [] | no_license | #! /bin/bash
# nvm
export NVM_DIR=$HOME/.nvm
# This loads nvm
[ -s $HOME/homebrew/opt/nvm/nvm.sh ] && \
. $HOME/homebrew/opt/nvm/nvm.sh
# This loads nvm bash_completion
[ -s $HOME/homebrew/opt/nvm/etc/bash_completion ] && \
. $HOME/homebrew/opt/nvm/etc/bash_completion
| true |
d1017073e30a04f679bfe9b95162f23e12e46da2 | Shell | elongeau/dotfiles | /vm.sh | UTF-8 | 833 | 3.625 | 4 | [] | no_license | # Variables pour la gestion des VMs
VBOX_HOME=/cygdrive/c/Program\ Files/Oracle/VirtualBox
VM_UBUNTU="ubuntu LVM"
alias VBoxHeadless='$VBOX_HOME/VBoxHeadless.exe'
alias VBoxManage='$VBOX_HOME/VBoxManage.exe'
# cette fonction permet de démarrer la VM en arrière plan et d'afficher une progression dans l'attente de son ... | true |
4a92e49352847a83b36a348a1441db7d3e25091b | Shell | yfang1644/FArm_distro | /script/ORBit2 | UTF-8 | 907 | 2.953125 | 3 | [] | no_license | #!/bin/bash
PKG_NAME=$1
PKG_VERSION=2.14.19
PKG_DEPENDS="libIDL"
PKG_MAINTAINER="Michael Meeks <michael@ximian.com>"
PKG_SECTION="gnome"
PKG_SHORTDESC="ORBit2 is a CORBA 2.4-compliant Object Request Broker (ORB) featuring mature C, C++ and Python bindings."
buildpkg() {
../configure ${TARGET_CONFIGURE_OPTS} \
... | true |
2b540f855137262742f1c6104c91974bb54ead4e | Shell | ternence-li/castle-games | /macosx/tools/update-framework.sh | UTF-8 | 919 | 3.859375 | 4 | [
"Zlib",
"BSD-3-Clause",
"MIT"
] | permissive | #!/bin/sh
# usage: update-framework [path]
#
# e.g. update-framework ./path/to/FreeType.framework
#
# WARNING: recommend doing this from someplace version controlled, because it deletes files.
#
# fixes a pre-mavericks macOS framework to follow the convention specified here:
# https://developer.apple.com/library/archi... | true |
ee0dbb0284a5a8fe281afc77d0116f95c7a8289b | Shell | feyfree/bash_draft | /read_file.sh | UTF-8 | 91 | 2.625 | 3 | [] | no_license | #!/bin/bash
filename='/etc/hosts'
while read myline
do
echo "$myline"
done < $filename
| true |
513334986021f8aa3745909a69f610842aa26e53 | Shell | huashuolee/borqs_stress | /atBorqs/presto/msr.sh | UTF-8 | 178 | 2.671875 | 3 | [] | no_license | #!/bin/bash
ss=""
[[ -n $1 ]] && ss="-s $1"
while true;
do
result = "`adb $ss logcat |grep "success"`"
if [ -n "$result" ];then
sleep 1
adb $ss shell input tap 731 525
fi
done
| true |
a4a9a133a05143181fae9fade3c429315bfabb43 | Shell | dead-beef/markovchain | /test | UTF-8 | 192 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ -d env ]; then
. env/bin/activate
fi
if which coverage >/dev/null 2>&1; then
coverage run --include 'markovchain/*' -m pytest && coverage report -m
else
pytest
fi
| true |
86db78bd76d4d603b78139578a5bd0d2e02a5999 | Shell | kushimoto/my-nvim-adjusting-space | /init.sh | UTF-8 | 150 | 2.515625 | 3 | [] | no_license | #!/bin/bash
cat <<EOF > .env
APP_NAME=${PWD##*/}
EOF
echo ;
echo "Please execute the following command.";
echo "$ (sudo) docker-compose up -d\n";
| true |
354c3460237c180cc7ec61b887ef1f5b7150f727 | Shell | selivanovm/dotfiles | /i3/status.sh | UTF-8 | 183 | 2.84375 | 3 | [] | no_license | #!/bin/sh
i3status -c ~/.i3/status.conf | while :
do
read line
mem=`free -t -m | grep "Total" | tail -n 1 | awk '{ print ""$3"MB"; }'`
echo "$mem | $line" || exit 1
done
| true |
1d6ee5a4d02d07447fc7dd633e06c6ad861ea5ac | Shell | lacraig2/JHU_Comp_Arch_Hacking_Book_Project | /run.sh | UTF-8 | 813 | 3.96875 | 4 | [] | no_license | # This example supports x86, x86_64, and ARM.
#
# It checks if you are on the right architecture
# when running the ARM example and uses QEMU
# if your machine isn't ARM.
# The first argument is the architecture.
# The second argument is the string to be supplied.
arch=$(arch)
if [[ "$#" -lt 1 ]]; then
arg1=... | true |
8265315d25fe31ed5dcbcb2bdd33ce1ed64d2a5f | Shell | vklimov1976/bash | /task04.sh | UTF-8 | 222 | 2.671875 | 3 | [] | no_license | if [ $base -eq 1 ] && [ $dm -eq 1 ]; then
installDMBase
elif [ $base -ne 1] && [ $dm -eq 1 ]; then
installBase
elif [ $base -eq 1 ] && [ $dm -eq 1 ]; then
installDM
else
echo '==> Installing nothing'
fi
| true |
60de4c6f107cac9f0ef60877df2099fd865e281f | Shell | verdude/random | /thechosenones/monitor-eb-target-group-health.sh | UTF-8 | 1,478 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
set -ueo pipefail
profile=""
environment=""
function usage() {
echo "Usage:"
echo " Required Arguments:"
echo " -e <environment name> # required. Elastic Beanstalk env."
echo
echo " Optional Arguments:"
echo " -p <aws profile name> # optional"
echo " -x ... | true |
2dbcb9f79c1718d12a9d4418b286da7dd084cae2 | Shell | drio/py.analysis | /pipelines/split_mapping/test/phix_test.sh | UTF-8 | 487 | 2.84375 | 3 | [] | no_license | #!/bin/bash
[ $(which sapi.py) ] || (echo "sapi.py not found"; exit 1)
curl -L http://cl.ly/1f0q3X2L373U/phix.tar.bz2 | tar -jx
end="-x"
bam="`pwd`/phix/phix.bam"
fa="`pwd`/phix/phix.fa"
sapi.py -i FOO -b $bam fastqc $end
sapi.py -i FOO -b $bam init -n 40000 $end
sapi.py -i FOO -b $bam -n 40000 splits $end
sapi.py... | true |
3839f45f2259dad69f8ac9e5ea56f62eba91fd4b | Shell | ilventu/aur-mirror | /mcobj-git/PKGBUILD | UTF-8 | 1,227 | 3.234375 | 3 | [] | no_license | # Maintainer: Limao Luo <luolimao+AUR@gmail.com>
_pkgname=mcobj
pkgname=$_pkgname-git
pkgver=20120930
pkgrel=1
pkgdesc="Exports minecraft worlds to .obj or .prt"
arch=(i686 x86_64)
url=https://github.com/quag/$_pkgname
license=(custom)
makedepends=($_pkgname-lib go git)
optdepends=(minecraft)
provides=($_pkgname=0.14)... | true |
7bb5fa064f0223ec978a5bc79ea420de9a9cec99 | Shell | javaskater/Utilitaires | /CMS/Drupal/LOCAL/composerInstallD8WithConf.sh | UTF-8 | 18,475 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
#The drush drupal8 installer drops by himself the database if exists
## Anyway if we need to create ti from scratch, just put true to the following variable
INSTALL_DATABASE="True"
LOCALE="fr"
# On http://docs.drush.org/en/master/install/ they note that:
## Drush 9 (coming soon!) only supports one ... | true |
b60549d4b4bd60b2d4205431ffaf44836b95813a | Shell | geodesicsolutions-community/geocore-community | /contrib/build-release.sh | UTF-8 | 1,846 | 3.46875 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #!/bin/bash
# builds the software for release - should be run using composer.
# this is quick and dirty - hopefully we'll switch to use github actions at some point.
composer install --no-dev --optimize-autoloader
# make folder if not exists
mkdir build
# remove existing files if exists
rm build/geocore-ce.zip buil... | true |
7cb88fb2f13f7af808e307abf314c00e4d63827b | Shell | efectn-forks/sayfalar | /update.sh | UTF-8 | 640 | 3.25 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
for j in man odt
do
rm -rf $j
mkdir -p $j
for i in $(ls rst/*.rst | sed "s/.rst$//g" | sed "s/rst\///g" | sort)
do
rst2$j rst/$i.rst > $j/$i.$j
done
done
rm -rf html
mkdir -p html
for i in $(ls rst/*.rst | sed "s/.rst$//g" | sed "s/rst\///g" | sort)
do
rst2html --link-stylesheet rst/$i.rst > html/$i... | true |
791a47a48ff0f32a3e24ccd981a30ce242ae514f | Shell | Kitware/VTK | /Utilities/KWIML/update.sh | UTF-8 | 625 | 2.90625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
set -e
set -x
shopt -s dotglob
readonly name="KWIML"
readonly ownership="KWIML Upstream <kwrobot@kitware.com>"
readonly subtree="Utilities/KWIML/vtkkwiml"
readonly repo="https://gitlab.kitware.com/utils/kwiml.git"
readonly tag="master"
readonly paths="
"
extract_source () {
git_archive
ca... | true |
3cc81e369c48bd0d1171ace653e135b991b7ea8d | Shell | led-spb/automate-scripts | /bin/check-mounts | UTF-8 | 346 | 3.453125 | 3 | [] | no_license | #!/bin/sh
touch .mounts.total
mounts="$1"
mount_ok(){
awk -v mount="$1" 'BEGIN{status="FAIL"} ($2==mount && $4 ~ /rw,/) {status="NORM"} END{print "Mount",mount,"has",status,"status"}' /proc/mounts
}
for mnt in $mounts; do
mount_ok $mnt
done | sort >.mounts.status
comm -2 -3 .mounts.status .mounts.total
cp -f .m... | true |
7e194fe4f476477caeb23156b6a34807027650e6 | Shell | benji07/hooks | /bin/bootstrap | UTF-8 | 243 | 3.234375 | 3 | [] | no_license | #!/bin/bash
if [ ! -d ~/bin ]; then
mkdir ~/bin
#on doit ajouter le dossier dans le PATH
echo "You must add the ~/bin directory to your path"
fi
DIR=$(cd $(dirname $0); pwd)
ln -snf $DIR/git-install-hook ~/bin/git-install-hook
| true |
fc0bd32307541df6580fda8e6412bf3c7ac0eae3 | Shell | docker-archive/docker-snap | /prep-docker-build.sh | UTF-8 | 1,056 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# should be sourced from snapcraft.yaml while building Docker
# current working directory should be the Docker source directory
# SNAPDIR should be set to the root of this Git repo
# (the directory of snapcraft.yml)
for patch in "$SNAPDIR"/patches/*.patch; do
echo "Applying $(basename "$patch") ..."
p... | true |
c95e3105e150d97c2b3fcd69fc1bae38b9851c75 | Shell | Millennial-Polymath/alx-system_engineering-devops | /0x05-processes_and_signals/7-highlander | UTF-8 | 201 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
# This script catches SIGTERM signal and echoes, "I am invicible"
sig()
{
echo "I am invincible!!!"
}
while :
do
echo "To infinity and beyond"
sleep 2
trap "sig" SIGTERM
done
| true |
b59168893cfc47a987e40ef85ad0f64bd93f0b16 | Shell | cutefishos-ubuntu/pacstall-programs | /packages/dotdrop/dotdrop.pacscript | UTF-8 | 810 | 2.515625 | 3 | [] | no_license | name="dotdrop"
version="1.7.1"
url="https://github.com/deadc0de6/dotdrop/archive/refs/tags/v${version}.zip"
hash="165347e1950c99dfb442ea19b670d1ad2769610682a1e2bf9abf7f51b64cb61c"
maintainer="TwilightBlood <hwengerstickel@pm.me>"
depends="python3 python3-docopt python3-setools python3-jinja2 python3-ruamel.yaml python3... | true |
5a262ac5ada03ed949f8e0d92a0cfbeb76f37857 | Shell | cyrilvj94/ShellScriptExamples | /2_For_While_funcs/while_4.sh | UTF-8 | 416 | 3.484375 | 3 | [] | no_license | #! /bin/bash
#Gambler problem
function simulate_coin_flip
{
echo $((RANDOM%2))
}
money=100
declare -a lst
lst[0]=TAILS
lst[1]=HEADS
while [ $money ]
do
if [ $money -eq 0 -o $money -eq 200 ]
then
echo Betting ended final money left $money
break
fi
result=$(simulate_coin_flip)
echo "Flipping coin : " ${lst[res... | true |
33801bcbb76f8865d59cad1f3cf871b823fb0122 | Shell | kennedyj/symphony | /bin/check-cert-dates | UTF-8 | 180 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ "X$1" == "X" ]
then
echo "usage: $0 certificate"
exit 1
fi
echo " - output the stat and end dates for the certificate"
openssl x509 -dates -noout -in "$1"
| true |
d24ad2806dbd232c8001ac6531bb912a2c7fec00 | Shell | davinci2016/calssification_person_dataset | /tools/__get_person_from_voc0712.sh | UTF-8 | 622 | 2.96875 | 3 | [] | no_license | #!/usr/bin/env bash
VOC_PATH=/home/davinci/dnn/data/voc/VOCdevkit/VOC0712
TARGET_PATH=/home/davinci/dnn/data/my_person/voc0712
year="VOC0712"
mkdir $TARGET_PATH
mkdir $TARGET_PATH/Annotations/
mkdir $TARGET_PATH/JPEGImages/
cd $VOC_PATH/Annotations/
grep -H -R "<name>person</name>" > $TARGET_PATH/temp.txt
cd $TARGET... | true |
51c31d1c93abf406650478a6f91a02ea07534041 | Shell | reo11/dotfiles | /.bin/lib/dotsinstaller/gnome-terminal-config-restore.sh | UTF-8 | 2,865 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -ue
if ! builtin command -v gnome-terminal > /dev/null 2>&1;then
echo "Not found gnome-terminal"
exit 0
fi
if ! builtin command -v dbus-launch > /dev/null 2>&1;then
echo "Not found dbus-launch"
exit 0
fi
if ! builtin command -v gsettings > /dev/null 2>&1;then
echo "Not found gsetting... | true |
319fad87ad9da820e7c6120a3c2fd9965f7c7b1f | Shell | mahesh-km/monitoring-server | /Collecting Log/Client_side/collecting-log~ | UTF-8 | 1,993 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#script for collecting log from local systems to the server;
#Run in host machines.
LOG_PATH="/mnt/logs"
LOG="/mnt/logs/log-to-server.log"
DATE=`date +%d-%m-%Y`
TIME=`date +%H:%M:%S`
TIME_STAMP=`date +%Y-%m-%d-%H-%M-%S`
#TIME_STAMP=`date +%d%m%Y%m%s`
NAME=`hostname`
RSYNC_OPTIONS="-razv"
DESTINATION=${NAME}... | true |
e22b3cd84c0c286c439982b4d1c7a3d7c491d90b | Shell | jhefferson144/MyVBoxWizar | /dialog.sh | UTF-8 | 204 | 2.53125 | 3 | [] | no_license | #!/bin/bash
NCORE="dialog --backtitle \"Num CPU\" --radiolist \"Seleccione num cpus:\" 10 40 4"
for i in `seq 1 1 2`; do NCORE="${NCORE} ${i} ${i} off"; done
NCORE=”${NCORE} 2> salida”
Eval ${NCORE}
| true |
a272c0a10bd808234909ec6c01ae9711bfbdfe88 | Shell | rgl/kubernetes-ubuntu-vagrant | /provision-docker.sh | UTF-8 | 3,145 | 3.640625 | 4 | [] | no_license | #!/bin/bash
source /vagrant/lib.sh
# NB execute apt-cache madison docker-ce to known the available versions.
docker_version="${1:-20.10.8}"; shift || true
# prevent apt-get et al from asking questions.
# NB even with this, you'll still get some warnings that you can ignore:
# dpkg-preconfigure: unable to re-open ... | true |
578bc672abc5fd3d203c42d4626b273dcccc3904 | Shell | flaviosakakibara/hyperledger-fabric | /start-kafka.sh | UTF-8 | 505 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Iniciando zookeepers"
for file in $(ls ./dc | grep zookeeper)
do
echo $file
oc create -f ./dc/$file
done
sleep 40
echo "Iniciando kafkas"
for file in $(ls ./dc | grep kafka )
do
echo $file
oc create -f ./dc/$file
done
sleep 25
echo "Iniciando orderers"
for file in $(ls ./dc | grep... | true |
e21c66a1cf4fd8d7714b9dae22447a35d0e146bf | Shell | mmgaggle/bench-cephstore | /test.sh | UTF-8 | 1,694 | 3.921875 | 4 | [] | no_license | #!/bin/bash
set -o nounset
set -o errexit
DEVICE=$1
DEVICE_BASENAME=$(basename ${DEVICE})
PREFIX=$(date +%d%m%y-%H%M%S)
echo " + Results will be stored at /tmp/${PREFIX}-fio"
mkdir /tmp/${PREFIX}-fio
echo " + Disable disk cache on ${DEVICE}"
hdparm -qW0 ${DEVICE}
echo " + Create disk partitions"
parted --script -- ... | true |
d7f6f68258a74bd367151158dd35cf7884692ec6 | Shell | PsymonLi/sw | /nic/apollo/test/scale/run_scale_test_mock.sh | UTF-8 | 1,627 | 2.71875 | 3 | [] | no_license | #! /bin/bash
set -e
export ASIC="${ASIC:-capri}"
export NICDIR=`pwd`
export PDSPKG_TOPDIR=$NICDIR
export NON_PERSISTENT_LOG_DIR=${NICDIR}
export ZMQ_SOC_DIR=${NICDIR}
export ASIC_MOCK_MODE=1
export ASIC_MOCK_MEMORY_MODE=1
export IPC_MOCK_MODE=1
export SKIP_VERIFY=1
export BUILD_DIR=${NICDIR}/build/x86_64/apollo/${ASIC... | true |
67774bd559b6b3b303bd4baa4cb0fd478b3c469d | Shell | wgoodall01/dotfiles | /lib/install_fzf.sh | UTF-8 | 432 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
install_fzf(){
printf "[fzf ] installing fzf... "
if [[ ! -d ~/.fzf ]]; then
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf &>>$LOGS/fzf_install \
|| fatal "Failed to download fzf. check \$LOGS/fzf_install"
~/.fzf/install --all --xdg &>>$LOGS/fzf_install \
|| fatal "F... | true |
411287c77def18a3ef44976ae30dcca3d8f2e122 | Shell | tday981/general_scripts | /sep | UTF-8 | 1,087 | 3.796875 | 4 | [] | no_license | #!/bin/bash
echo -n "Any special separator? (y/n) "
read answer
if [ "$answer" = "y" ]; then
echo -n "What is the field separator? "
read sep
echo -n "Which input file? "
read file
echo -n "Which column number do you want? "
read number
echo -n "Do you want to output to a file? (y/n) "
read out
if [ "$... | true |
42088fd6a91c51fdf152f10c5554d8973a685cc9 | Shell | thomas-barthelemy/docker-symfony-app | /php70/app/init | UTF-8 | 1,217 | 3.375 | 3 | [] | no_license | #!/bin/bash
script_dir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
application_dir="/var/app"
parameters_file="${application_dir}/app/config/parameters.yml"
secret=`apg -a 1 -M nl -n 1 -m 40 -E ghijklmnopqrstuvwxyz`
: ${database_host:=${DB_PORT_5432_TCP_ADDR}}
: ${database_port:=${DB_PORT_5432_TCP_PORT}}
: ${d... | true |
5697e335609e94cf7ab1891631a2896c14b44aa6 | Shell | lifeonmarspt/golds-tools | /bin/spreadsheets-jwt | UTF-8 | 832 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
PKEY="$(pass ${LIFEONMARS_PASSWORD_STORE_DIR}all/golds/spreadsheets-api | jq -Sjc .private_key)"
ISSUER="$(pass ${LIFEONMARS_PASSWORD_STORE_DIR}all/golds/spreadsheets-api | jq -Sjc .client_email)"
NOW="$(date +"%s")"
EXP=$(( $NOW + 3600 ))
HEADER="$(
jq -Sjcn '{"alg":"RS256","typ":"JWT"}... | true |
dc2179d3fe28d1177e047d828f43f430c3227f77 | Shell | dnkennedy/CloudComputeExample | /abcd-test_aws.sh | UTF-8 | 2,055 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
echo "abcd-test_aws.sh: Running dcanlabs/abcd-hcp-pipeline in test mode container on ABCD S3 BIDS case on aws"
# This is the main script, that lives on the aws instance itself, that, given
# the S3 path to an anatomic case, manages its fetch, kwyk run, and 'post' to
# the ReproNim S3 results location
# At... | true |
b9ffb157baf17e3d729a90d32414ec347a5050f0 | Shell | tapaswenipathak/linux-kernel-stats | /scripts/Extended Scripts/spinlock_log.sh | UTF-8 | 1,176 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Displays all git logs for spinlock and related keywords
# Contributor: kavita23meena.2002@gmail.com
SRCDIR=~/linux-stable/linux-stable
cd $SRCDIR
spinlock_keywords=("spinlock"
"spinlock_t"
"rwlock_t"
"ticket_spin_lock"
"raw_spinlock_t"
"qspinlock"
"ticket_spin_trylock"
"tic... | true |
6cedca8c9c5a030009e93f1e062079f02135383a | Shell | chrisfu/dotfiles | /bootstrap.sh | UTF-8 | 197 | 2.828125 | 3 | [] | no_license | #!/usr/bin/env bash
# Install zgen
if [ ! -f ~/.zgen ]
then
git clone https://github.com/tarjoilija/zgen.git ~/.zgen
fi
# Setup dotfile symlinks
cd stow
for app in */
do
stow -t ~/ $app
done
| true |
3f7c0b4bffda96dca488b87de9263eba9b862a99 | Shell | thuanle123/cmps101-pt.s19.grading | /pa1/pa1-perf-check.sh | UTF-8 | 1,746 | 3.609375 | 4 | [] | no_license | #!/usr/bin/bash
SRCDIR=https://raw.githubusercontent.com/legendddhgf/cmps101-pt.s18.grading/master/pa1
NUMTESTS=3
PNTSPERTEST=5
let MAXPTS=$NUMTESTS*$PNTSPERTEST
if [ ! -e backup ]; then
echo "WARNING: a backup has been created for you in the \"backup\" folder"
mkdir backup
fi
cp *.java Makefile backup # copy... | true |
3f9fca3f27433366abdf9cc995ff055745e5a683 | Shell | salemove/xmpp-visitor-app | /cobrowse.sh | UTF-8 | 586 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
if [ "$#" -ne 3 ]; then
echo "Usage: $0 UserJID Password OperatorJID"
exit 1
fi
echo "Starting cobrowsing session for you in 2 seconds"
sleep 2
CWD=`pwd`
SOCK_PATH=/tmp/tmate.sock
# Start tmate session
tmate -S $SOCK_PATH new-session -d
tmate -S $SOCK_PATH wait tmate-ready
COBROWSING... | true |
998e8409e9b9e07afdf000717106f37b65cbb583 | Shell | thirdwing/Rtools | /gcc463/scripts/buildcrossfromnative.sh | UTF-8 | 1,185 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
# common settings
echo "Executing preliminary common steps"
export BUILD_CROSS_FROM_NATIVE="true"
. ./scripts/common.sh || exit 1
# Projects to be built, in the right order
PREGCC_STEPS="mingw-w64-headers binutils gmp mpfr mpc"
POSTGCC_STEPS="cleanup zipping"
cd $BUILD_DIR
mkdir -p $PREGCC_... | true |
e0c83ddbe7a65ecd1487d0fc3383f35e1c9cc676 | Shell | cncf/devstats | /devel/drop_psql_db.sh | UTF-8 | 291 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ -z "$1" ]
then
echo "$0: you need to provide db name"
exit 1
fi
echo "Dropping $1"
./devel/db.sh psql postgres -c "select pg_terminate_backend(pid) from pg_stat_activity where datname = '$1'"
./devel/db.sh psql postgres -c "drop database if exists $1"
echo "Dropped $1"
| true |
a592f5c16d2c4e0bfc76943d6600e9f68082700a | Shell | philipz/weave | /build/build.sh | UTF-8 | 1,617 | 4.28125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
GOPATH=/home/go
export GOPATH
WEAVE_SRC=$GOPATH/src/github.com/weaveworks/weave
if [ $# -eq 0 -o "$1" = "tests" ] ; then
# No arguments. Expect that the weave repo will be bind-mounted
# into $GOPATH
if ! [ -e $WEAVE_SRC ] ; then
cat 2>&1 <<EOF
No container arguments supplied, a... | true |
8f3b9c9e503629b122d82f988d935495946604a8 | Shell | larueli/wordpress-nonroot | /deploy.sh | UTF-8 | 151 | 2.828125 | 3 | [] | no_license | #!/bin/bash
if [ ! -f /var/www/html/index.php ]; then
cd /tmp
unzip wordpress-${WORDPRESS_VERSION}.zip
mv -f wordpress/* /var/www/html/
fi
| true |
c47cc1176a9921ba3067d9420fe360d612f3b04b | Shell | DESY-CMS-SUS/cmg-cmssw | /CMGTools/TTHAnalysis/python/plotter/susy-1lep/make_binned_plots.sh | UTF-8 | 10,690 | 2.921875 | 3 | [] | no_license | #!/bin/bash
if [[ "$1" == "SingleLepAFS" ]]; then
shift # shift register
T="/afs/cern.ch/work/k/kirschen/public/PlotExampleSamples/V3";
FT="/afs/cern.ch/work/k/kirschen/public/PlotExampleSamples/PHYS14_V3_FriendsRefinedIds"
J=4;
elif [[ "$HOSTNAME" == *"lxplus"* ]] ; then
T="/afs/cern.ch/work/k/ki... | true |
556766c18daa8f0354f8015e28bde0ab988a158f | Shell | avodvudStudy/Semestr_5 | /Git/zadaniaBash/opisKatalogu | UTF-8 | 247 | 3.34375 | 3 | [] | no_license | #!/bin/bash
if [ -d "$1" ]; then
spis=`ls $1`
count=0
echo "nazwa katalogu $1"
for nazwa in $spis
do
if [ -d $nazwa ]; then
./opisKatalogu $nazwa
else
count=$((count+1))
echo $nazwa
fi
done
echo ""
echo $count
echo ""
fi
| true |
a280fb7360a85a5ae7c0b2b73b3bd1dd4729c3c6 | Shell | itlonewolf/knowledge | /script.sh | UTF-8 | 1,947 | 3.015625 | 3 | [] | no_license | #!/bin/bash
##實現顯示指定包名APP的ERROR以上級別的日誌,建議崩潰之後,重新開啓此腳本
show_error_log(){
#先清空屏幕日誌
adb logcat -c
echo 請輸入包名
read package_name
pid=`adb shell ps | grep $package_name | awk '{print $2}'`
adb logcat -v time *:E | grep -E --color=auto $pid
}
start_drozer(){
adb forward tcp:31415 tcp:31415
drozer console connect... | true |
b4604baa9631cdbffaaa83c830fafbf6d930ecf3 | Shell | jsfr/SteinerExact | /experiments/helpers/convert_defs.sh | UTF-8 | 592 | 3.3125 | 3 | [] | no_license | #!/bin/zsh
from=$1
to=$2
for instance in `ls $from`; do
rm -rf $to/$instance
mkdir $to/$instance
for file in `ls $from/$instance`; do
{
echo -n '{\n "nodes": ';
grep 'Nodes' $from/$instance/$file | sed 's/Nodes //' | tr -d '\n'
echo ',\n "points": [';
... | true |
ac2f10249d0ef958fb0357bdf88b8a45c728bfcc | Shell | davidcawork/Investigacion-Resultados | /ssoo_p2_datos/auto_sim.sh | UTF-8 | 314 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#Repeticiones a realizar tanto bubble sort, como su version opt
NUM_REPETICIONES=$1
for ((RUN = 1; RUN < $NUM_REPETICIONES + 1; RUN++)); do
echo -e "Ejecutandose la prueba $RUN del bubble sort simple\n\n"
make datos
./practica2_std > ./Resultados/data/data_bubble_sort_opt_$RUN.txt
done | true |
11718c9f3abdeb720f9d034953ba134c3ed2606d | Shell | mdp/docker-tor-hidden-services | /start-tor | UTF-8 | 854 | 3.640625 | 4 | [] | no_license | #!/bin/bash
USERNAME="toruser"
USERPATH="/home/toruser"
REGEX='\([0-9]*\)_TCP=tcp://\([0-9]\{1,3\}\.\)\{3\}\([0-9]\)\{1,3\}\:\([0-9]*\)'
MATCH="$(env | grep -o $REGEX | sed -e "s/_TCP=tcp:\/\// /" -e "s/:/ /" | awk '{ printf "HiddenServicePort %s %s:%s\n", $1, $2, $3 }')"
if [ ! -z "$MATCH" ]; then
echo "$MATCH" >... | true |
b8080310b754916d4f22a92f198fb88be8ac819c | Shell | karser/EasyQuickImport | /docker/bin/copy-env.sh | UTF-8 | 2,147 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
APPLICATION=${CI_PROJECT_DIR:-..}
APP_ENV=${APP_ENV:-prod}
ENVIRONMENT=${ENVIRONMENT:-local}
DOCKER_ENV=${DOCKER_ENV:-prod}
COMPOSE_PROJECT_NAME=easyimport
GIT_TAG=${CI_COMMIT_TAG:-$(git describe --tags --exact-match || true)}
GIT_BRANCH=${CI_COMMIT_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}
DATE_... | true |
0c60e227390c65a6746a415d3e0c295b05951fc8 | Shell | nsnycde/docker-arm-mysql | /install-mysql.bash | UTF-8 | 615 | 3.140625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
export DEBIAN_FRONTEND=noninteractive
## Setup the root user password
debconf-set-selections <<< "mysql-server mysql-server/root_password password password"
debconf-set-selections <<< "mysql-server mysql-server/root_password_again password password"
## Update the apt lists
apt-get update
... | true |
4f00fd0392bc628e563daff7e391f024235fa9e1 | Shell | 11uhafnk/quadrube | /autobuild.sh | UTF-8 | 2,084 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
clear
ERROR_STATE=0
MODULE_NAME=test
ROOT_PATH=$GOPATH/src
# MODULE_BIN_NAME='bin/ldc_search.bin'
#PATH_TO_LIB="../lib"
# PATH_TO_WUI="../wui"
LOG_FILE="logs/run.log"
CNTR_FILE="logs/build_counter.bld"
CUT_LINE_BEGIN="--------------------------->8---------------------------------"
CUT_LINE_END="----------... | true |
086fa671db3d7f500622730eda8480820190febb | Shell | thongdong7/autoimport | /bin/publish.sh | UTF-8 | 713 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/..
# TMP_FOLDER=/tmp/autoimport
# rm -rf $TMP_FOLDER || true
# echo "Copy soure code to another folder"
# cp -R $DIR/.. $TMP_FOLDER
# cd $TMP_FOLDER
lerna clean --yes
echo Bootstrap project...
lerna bootstrap
echo Compile t... | true |
43a12415b49e79f448e1bf142cbf314036012735 | Shell | StuPro-TOSCAna/TOSCAna | /utils/jenkins/deploy-to-local-docker.sh | UTF-8 | 1,421 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# IMPORTANT
# This script is meant to be executed after the Build process has finished.
# It builds a minimal docker image to deploy the application on the local docker daemon
# (application will be running on port 9001)
# Make the Working Directory
echo "Creating Working Directory"
mkdir server/target/do... | true |
94880a390ba0e4e5b4d09cef5ac77125cd99d217 | Shell | milliQan-sw/milliqanOffline | /Run3Detector/compile.sh | UTF-8 | 1,056 | 3.546875 | 4 | [] | no_license | #!/bin/bash
if [ $# != 1 ]
then echo "Please provide exactly one argument, the desired macro name."
exit
fi
NAME=$1
SHORT_TAG=`git describe --tag --abbrev=0`
LONG_TAG=`git describe --tags --long`
#echo $SHORT_TAG
echo "milliqanOffline version $LONG_TAG"
sed "s/shorttagplaceholder/$SHORT_TAG/g" src/OfflineFacto... | true |
5101be7f7c206b40d672c1e683338f29196f922d | Shell | bhavani125/Assignment-problems | /class/salary20days.sh | UTF-8 | 346 | 3.140625 | 3 | [] | no_license | #!/bin/bash -x
isfulltime=1
isparttime=2
empWorkperHr=100
for ((day=0;day<20;day++))
do
randomnumber=$((RANDOM%3))
if [ $randomnumber -eq $isfulltime ]
then
workHrs=8
elif [ $randomnumber -eq $isparttime ]
then
workHrs=4
else
workHrs=0
fi
done
totalsalary=$(($empWorkperHr*$workHrs))
echo "employee salar... | true |
1065649aefc711d3ac7af6485f39fec36d96b76c | Shell | tro3373/dotfiles | /bin/url_encode | UTF-8 | 277 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
main() {
if [[ $# -eq 0 && ! -p /dev/stdin ]]; then
echo "Speciry url" 1>&2
exit 1
fi
if [[ -p /dev/stdin ]]; then
cat -
else
echo "$@"
fi | curl -Gso /dev/null -w '%{url_effective}' --data-urlencode @- "" | cut -c 3-
}
main "$@"
| true |
292d704d400495679fc0c37c7e9f622e2aa2596d | Shell | kristianmandrup/ruby-rails-dev-bashing | /generator_helpers.sh | UTF-8 | 639 | 3.15625 | 3 | [] | no_license | function rails3_generator {
generator_name=$1
gem_name=gem_$generator_name
shift 1
script/generate generator $generator_name
cd lib/generators
# create jewel
jewel_build $gem_name
cd lib
# remove default rb file
# create directory structure for generator
rm *.rb
mkdir generators
# go to top dir
c... | true |
897e77a2ceb05ac86af75550e7b69b66bf6f7e23 | Shell | thm-projects/arsnova-router | /src/nuc/pipeline/download_click.sh | UTF-8 | 368 | 2.921875 | 3 | [] | no_license | #!/bin/sh
CLICK_PIPE="https://git.thm.de/arsnova/arsnova.click/-/jobs/artifacts/staging/download?job=build"
. "./download.sh"
get_build_no $CLICK_PIPE
CLICK_BUILD_NO=$?
LAST_CLICK_BUILD=`cat click.build`
if [ "$LAST_CLICK_BUILD" != "$CLICK_BUILD_NO" ]
then
download_build $CLICK_BUILD_NO $CLICK_PIPE "click"
sh up... | true |
cc631d6056d70a8789a38c7b2f2db7cb02b1a62d | Shell | yinghai9989/OpenStackDeploy | /DeployScripts/ceph-cluster-install.sh | UTF-8 | 3,711 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
CMD_PATH=.
DST_PATH=./conf_orig
CONF_DEPLOY_DIR=./conf_deploy
RUN_DATE=$1
MY_LOCALE=$($CMD_PATH/get-conf-data.sh ./locale.txt LOCALE)
if [ $MY_LOCALE = 'CN' ]; then
source ./locale_cn.txt
else
source ./locale_en.txt
fi
#Start ceph cluster installation
mkdir -p $CONF_DEPLOY_DIR
#Modify /etc/hosts ... | true |
dc31e4e7a16161d666a45467cb9abd1be31ac2ee | Shell | openstack/tacker | /tools/gen_vim_config.sh | UTF-8 | 11,670 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright (C) 2021 Nippon Telegraph and Telephone Corporation
# All Rights Reserved.
#
# 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/licens... | true |
f30fd588543a3ba829cc52a9525a43e1fc00ceeb | Shell | simifalaye/dotfiles | /config/shell/.config/shell/zsh/you-should-use/@interactive.zsh | UTF-8 | 314 | 2.890625 | 3 | [
"MIT"
] | permissive | # shellcheck shell=zsh
# Load plugin
plugin_dir=${ZPLUGDIR}/zsh-you-should-use
if [[ ! -e ${plugin_dir} ]]; then
git clone --depth=1 https://github.com/MichaelAquilina/zsh-you-should-use.git ${plugin_dir}
zcompile-many ${plugin_dir}/you-should-use.plugin.zsh
fi
source ${plugin_dir}/you-should-use.plugin.zsh
| true |
a3df8acd3a5fa2b46466fac551244a48670184ff | Shell | anjijava16/GCP_Data_Enginner_Utils | /DataEnginner_GCP/gsutil/gsutil_s5cmd_linux_comparison.sh | UTF-8 | 4,897 | 3.09375 | 3 | [] | no_license | # Using Debian GNU/Linux 10 (buster)
# Create local SSD file system and mount
sudo mkfs.ext4 -F /dev/nvme0n1
sudo mkdir -p /mnt/disks/nvme0n1
sudo mount /dev/nvme0n1 /mnt/disks/nvme0n1
sudo chmod a+w /mnt/disks/nvme0n1
cd /mnt/disks/nvme0n1
# Update
sudo apt-get update
sudo apt-get -y upgrade
##### Testing gsutil wi... | true |
cfdffa87e62e0c2cc63b3f003c04a58e88566c89 | Shell | wychen/dom-distiller | /create-hook-symlinks | UTF-8 | 177 | 3.328125 | 3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Install hook scripts by making symlinks to $GIT_ROOT/hooks.
HOOK_DIR=.git/hooks
for hook in $(ls hooks); do
ln -s -f ../../hooks/$hook $HOOK_DIR/$hook
done
| true |
521a236b4ed2940c342273179b30f96eeb6a8ac1 | Shell | shinobee/dotfiles | /.bashrc.ps | UTF-8 | 618 | 2.984375 | 3 | [] | no_license | #!/bin/bash
#
DIR_ThisScript="$(cd "$(dirname "${BASH_SOURCE:-${(%):-%N}}")"; pwd)"
#
FILE_BASH_PS=${HOME}/.bashrc.ps
if [ ! -e "${FILE_BASH_PS}" ] ; then
cp -p ${DIR_ThisScript}/.bashrc.ps ${FILE_BASH_PS}
fi
#
FILE_DIR_COLORS=${HOME}/.dircolors
if [ ! -e "${FILE_DIR_COLORS}" ] ; then
cp -p ${DIR_ThisScript}... | true |
c5635fb0fe66ea9220dc83d482a0dd3a50a51ee4 | Shell | TheConnMan/PhotoPlaylists | /version-bump.sh | UTF-8 | 807 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# Version Bumper
if [ "$#" -ne 2 ]; then
echo "Two arguments required, version name and tag message respectively"
else
echo -e "\nChecking out dev."
git checkout dev
echo -e "\nEditing application.properties."
mv application.properties application.properties.temp
sed "s/app.versi... | true |
f99c7f6270679a789a5e5a850f59f9611b73d321 | Shell | nirecom/install-kubernetes | /2-server-common.sh | UTF-8 | 985 | 2.84375 | 3 | [] | no_license | #!/bin/bash
#
# Install Kubernetes
# ref. https://qiita.com/nnagashima/items/d7deb00d086b6e276eea
# Letting iptables see bridged traffic
# ref. https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#troubleshooting
cat <<EOF | sudo tee /etc/modules-load.d/k8s.conf
br_netfilter
EOF
cat ... | true |
0bfce887b65015a2f1b48823d1d5715c4eef3ae6 | Shell | adiblol/audiotools | /jamendo-dl | UTF-8 | 1,285 | 3.578125 | 4 | [
"WTFPL"
] | permissive | #!/bin/bash
# Download Jamendo album (single tracks not supported yet) in FLAC format (YA RLY!)
inurl="$1"
albumid="`echo "$inurl" | sed -e 's/.\+\/list\/a\([0-9]\+\)\/.\+$/\1/'`"
foldername="`echo "$inurl" | sed -e 's/.\+\/list\/a\([0-9]\+\)\/\(.\+\)$/\1_\2/'`"
# get metadata
artist_name="`wget -O - -q "http://api... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.