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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a2ab2f000b89abd8bbe59f621e8d81a6bdb8f27f | Shell | jasonnerothin/robotrobot.io | /docker/nginx/run-nginx.sh | UTF-8 | 682 | 3.125 | 3 | [] | no_license | #!/bin/bash -x
# execute this script from the directory containing this script, please
source ./01-localhost.sh
#readonly conf_file=nginx.conf
#source 02-pcoroduction.sh
readonly nginx_port=80
readonly host_nginx_dir=/tmp/nginx/
readonly host_nginx_conf=${host_nginx_dir}${conf_file}
readonly host_nginx_log_files=${... | true |
72018c390284de20e6cf5c3c4eeb5f5793d01229 | Shell | pjam/docker-symfony4-mysql | /docker/application/enable-xdebug.sh | UTF-8 | 583 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
XDEBUG_INI_FILE="/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini"
DISABLED_EXT="disabled"
if [ -f "${XDEBUG_INI_FILE}.${DISABLED_EXT}" ]; then
mv "${XDEBUG_INI_FILE}.${DISABLED_EXT}" "${XDEBUG_INI_FILE}"
fi
if [ ! -f "${XDEBUG_INI_FILE}" ]; then
docker-php-ext-enable xdebug
sed -i '... | true |
b15348fde967d30ab483a937c9b98b61668b8659 | Shell | benaux/env-pub | /moreutils_51j/decutils/decreg | UTF-8 | 1,480 | 3.828125 | 4 | [] | no_license | #!/bin/sh
# Copyright (c) 2020 ben
# Licensed under the MIT license. See License-MIT.txt in project root.
HELP='reg - register a decimal in redir'
USAGE="<input decimal dir"
input="$1"
file_input=
## Disable for dash
set -o errexit -o errtrace # abort on nonzero exitstatus
set -o nounset # abort on unbound variab... | true |
e63669b5ca76fa831e825a3f362bc89624469669 | Shell | igouss/dotfiles | /.bash_profile | UTF-8 | 1,367 | 2.5625 | 3 | [] | no_license | source ~/.bash_completion.d/git-completion.sh
source ~/.bash_completion.d/todo_completer.sh
source ~/.gitfunctions
source ~/.alias
# append to the history file, don't overwrite it
shopt -s histappend
#export PS1=">"
export PS1='[\W$(__git_ps1 " (%s)")]\$ '
export PATH=~/opt/git/bin/:$HOME/bin:/opt/local/bin:/opt/local... | true |
db53472e6063bcc35e16c1de36dd8549b65a84f3 | Shell | Skeen/tardigrade_s3fs | /entrypoint.sh | UTF-8 | 971 | 3.3125 | 3 | [] | no_license | #!/bin/sh
SATELLITE_REGION=${SATELLITE_REGION:-EUROPE}
if [[ "${SATELLITE_REGION}" == "EUROPE" ]]; then
SATELLITE_ADDRESS=${SATELLITE_ADDRESS:-europe-west-1.tardigrade.io}
elif [[ "${SATELLITE_REGION}" == "ASIA" ]]; then
SATELLITE_ADDRESS=${SATELLITE_ADDRESS:-asia-east-1.tardigrade.io}
elif [[ "${SATELLITE_REG... | true |
c3f57dd29d25c7156e5c8c5b5eb36894d4553a24 | Shell | NanNaDa/_GIT_TUTORIAL_ | /_SHELL_SCRIPT_/Lec_01/Lec_01_03.sh | UTF-8 | 252 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
dirname="Lec_01_03"
filename="File_01_03.txt"
touch_new_file() {
cd $dirname
touch $filename
echo "Hello World" > $filename
}
error_message() {
echo "The directory already exists."
}
mkdir $dirname && touch_new_file || error_message | true |
3455966388bbe8dcbdabf953b91a3fc08f700da9 | Shell | kevinfra/orga2-tp2 | /codigo/scripteandoConDosImplementaciones.sh | UTF-8 | 4,397 | 3.265625 | 3 | [] | no_license | imp_sepia="asm c"
imp_ldr="asm c"
imp_cropflip="asm c"
filtros="all"
while getopts 'chf:' opt; do
case $opt in
c) filtros="none" ;;
h) echo ""
echo " Script para generar info de test cases. Se calcula la cantidad de ciclos de"
echo " reloj cada 100 ejecuciones por imagen, con hasta 13 imagenes."
e... | true |
fd41ab513f2abcce97ed00ef629d5fa8975500a3 | Shell | jrialland/python-brain | /release.sh | UTF-8 | 1,333 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
#run unit tests
PYTHONPATH=$PYTHONPATH:`pwd` python tests/all_tests.py
if [ $? -ne 0 ]; then
echo 'unit tests failed !' >&2
exit 1
fi
if [ ! -d '3to2-1.0' ]; then
wget "https://bitbucket.org/amentajo/lib3to2/downloads/3to2-1.0.tar.gz"
tar -zxvf 3to2-1.0.tar.gz
fi
#apply 3to2
for py in `find ... | true |
dd24f634e90177803cf5482ba9aed9e97b300675 | Shell | jwarykowski/dotfiles | /.zshrc | UTF-8 | 909 | 2.5625 | 3 | [] | no_license | export ZSH_CONFIG="$HOME/.config/zsh"
export ZSH="$HOME/.oh-my-zsh"
TERM=xterm-256color
ZSH_THEME=""
# profile
[[ -f "$HOME/.profile" ]] \
&& source "$HOME/.profile"
plugins=(
bgnotify
command-not-found
git
git-extras
yarn
zsh-autosuggestions
zsh-completions
zsh-syntax-highlighting
z
)
# oh-my... | true |
75c9c5b837f5231d094fe15568c034d7c9043333 | Shell | SuperITMan/android_prebuilts_prebuiltapks | /scripts/functions.sh | UTF-8 | 1,663 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
set -u -e -o pipefail
#######################################
# Echo the current package version of an available application.
# Arguments:
# param1 - application name
# param2 - application package name
# param3 - location path of the applications
#######################################
getC... | true |
55cf92b44fd576728d763af80bcadc687ecd5b0b | Shell | lowet84/k8s-config | /tools/updateByNamespace | UTF-8 | 704 | 3.625 | 4 | [] | no_license | #!/bin/bash
NAMESPACES=$(kubectl get namespace | cut -d' ' -f1 | awk 'NR>1')
NAMESPACE=$(echo $NAMESPACES | grep $1)
if [ -z $1 ]; then
echo "Available namespaces:"
for NAMESPACE in $NAMESPACES
do
echo $NAMESPACE
done
elif [ ! -n "$NAMESPACE" ]; then
echo "Namespace does not exist"
else
DEPLOYMENTS=... | true |
c0f39163986b306f9da382d579a521be3178fefb | Shell | cHolzberger/kvm-osx | /bin/machine-list-running | UTF-8 | 500 | 3.421875 | 3 | [] | no_license | #!/bin/bash
VERBOSE=0
if [[ "$1" == "-v" ]]; then
VERBOSE=1
fi
_sum=0
for MACHINE_PATH in /srv/kvm/vms/*; do
if [ -e $MACHINE_PATH/var/pid ]; then
p=$(cat $MACHINE_PATH/var/pid)
if [ -e "/proc/$p" ]; then
vm=$(basename $MACHINE_PATH)
source $MACHINE_PATH/config
[[ $VERBOSE == "0" ]] && echo $vm
[[ $VERB... | true |
084621c16f81376cc860d689e90a7b9bf04973d9 | Shell | akash99-code/Shell_Programming | /Scripts/p20greatestn.sh | UTF-8 | 299 | 3.328125 | 3 | [] | no_license | #
# Write a shell script to find out greatest among n input integers where n is to be input by the user.
#
read -p "Enter number of inputs - " n
read -p "number 1 - " a
i=2
while test $i -le $n
do
read -p "number $i - " b
if [ $a -lt $b ]
then
a=$b
fi
i=$((i+1))
done
echo Greatest Number - $a | true |
4dce5b5c7e7274cda7a93938e9190d121984397f | Shell | wkl1990/phasemets | /run_AgIn.sh | UTF-8 | 638 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
MODDIR=/hpgwork/hacone/P6_7515/Mods
AGINDIR=/work/hacone/AgIn_mercurial/Agin/target
BETA=/work/hacone/AgIn_mercurial/Agin/resources/P6C4.dat
REF=/work/hacone/Reference/hg38_7515_SVs/sequence/hg38_7515_SVs.fasta
RESULTDIR=/hpgwork/hacone/P6_7515/AgInResult
mkdir -p ${AgInResult}
# -b = P5C3 or LDAVector (... | true |
c904c60adc5b818ae9b07603041965f433d5f4a7 | Shell | joeygravlin/eos.dotfiles | /.profile | UTF-8 | 273 | 3.03125 | 3 | [] | no_license | EDITOR="/usr/bin/vim"
export EDITOR
# export username?!?!?! seriously!?
USERNAME="`whoami`"
export USERNAME
# Attempt to make zsh run by default
# (stupid chsh says `whoami` don't exist :/)
if [ -x /bin/zsh ]; then
SHELL="/bin/zsh"
export SHELL
exec SHELL
fi
| true |
3f0d4b1b078e89b553a3ab91b3cba287b2820071 | Shell | cncf/devstatscode | /devel/api_com_contrib_repo_grp.sh | UTF-8 | 831 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ -z "$1" ]
then
echo "$0: please specify project name as a 1st arg"
exit 1
fi
if [ -z "$2" ]
then
echo "$0: please specify timestamp from as a 2nd arg"
exit 2
fi
if [ -z "$3" ]
then
echo "$0: please specify timestamp to as a 3rd arg"
exit 3
fi
if [ -z "$4" ]
then
echo "$0: please specify r... | true |
8d9505e7108659c80a20574780c62732727bef8f | Shell | angcrush/tmp | /cron-deploy | UTF-8 | 360 | 2.75 | 3 | [] | no_license | #!/bin/bash
#echo "======start======"
#echo ">>>>> cron deploy"
repos=( dogilike ddfw glitter )
for i in ${repos[@]}; do
flag="/git/dirty/dirty-$i"
# echo ">>> check flag for $i"
if [ -f $flag ]; then
# echo ">> found flag "
rm $flag
/home/gituser/export $i
fi
#ec... | true |
43604cf0c73e082ba7b46543995145c8e61bb7ba | Shell | cha63506/RimRoot_Fedora_15_armv5 | /usr/share/dracut/modules.d/98syslog/parse-syslog-opts.sh | UTF-8 | 748 | 3.34375 | 3 | [] | no_license | #!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
# Parses the syslog commandline options
#
#Bootparameters:
#syslogserver=ip Where to syslog to
#sysloglevel=level What level has to be logged
#syslogtype=rsyslog|syslog|syslogng
# ... | true |
9ce631f89b5c353ac1c95e845978486bbd6b72f0 | Shell | cathyatseneca/CourseRepoScripts | /clonelog | UTF-8 | 771 | 3.390625 | 3 | [] | no_license | #!/bin/bash
#your github id goes here
yourusername="YourGithbuID"
#generate a personal token from your github settings
#menu-->personal access token. Make sure you have
#repo,delete_repo and admin:org checked for your token
token="YourPersonalAccessToken"
#name of the organization you want repo to go in
organizatio... | true |
638dc18752633fdebee936f79e7afc201e277e21 | Shell | RosenZhu/fuzzing-binaries | /use_different_containers/compiling.sh | UTF-8 | 120 | 2.53125 | 3 | [] | no_license | #!/bin/bash
path=$(pwd)
for i in $(seq 1 10)
do
cd "$path"/node"$i"/scripts
python auto_compiling.py
sleep 5
done
| true |
1fc1b2ab46f468acac15c01cea08a6bdf589b7d1 | Shell | tcallier/Comp485 | /create_version.sh | UTF-8 | 13,257 | 3.546875 | 4 | [] | no_license | #!/bin/bash
###################################################################################################
# Script name : create_version.sh #
# Description : this script is designed to create a version history of config file #
# backups created by ... | true |
c6319acd7124c2a0d04ad85c483844186afcc9c2 | Shell | pivotal-bank/quotes-service | /ci/tasks/build-quotes-service/task.sh | UTF-8 | 264 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
pushd quotes-service
./gradlew clean assemble
VERSION=`cat version-number`
popd
mkdir build-output/libs && cp quotes-service/build/libs/$ARTIFACT_ID-$VERSION.jar build-output/libs/.
cp quotes-service/build/manifest.yml build-output/.
| true |
fd33730212f4777586101e6e2a4baa5a96a24e16 | Shell | BJGSR47/https---github.com-paulcolby43-scripts | /dly_reset.sh | UTF-8 | 561 | 2.9375 | 3 | [] | no_license | #!/bin/ksh
# dly_reset.sh
cd /home/prod/4gl
LOG="../logs/dly_reset.log"
#NOTIFY=" barry@tranact.com \
# colby@tranact.com "
NOTIFY=" barry@tranact.com \
scott@tranact.com \
bj@tranact.com "
###############################################################################
date > $LOG
fglgo dly... | true |
b176737c6b64ffc8591f891e9f309466ac96e1c7 | Shell | icedevil2001/personal-genomics-course-2017 | /problem_sets/pset4_ngs/code/run_ps4_bwamem.sh | UTF-8 | 628 | 2.625 | 3 | [] | no_license | #!/bin/bash
#SBATCH -A csd524
#SBATCH -p compute
#SBATCH -t 1000
#SBATCH --get-user-env
#DATADIR=/oasis/projects/nsf/csd524/mgymrek/data/ps4/
#INDEX=${DATADIR}/hs37d5.fa
DATADIR=/storage/mgymrek/cse291/ps4data/
INDEX=/storage/resources/dbase/human/hs37d5/hs37d5.fa
FQ1=${DATADIR}/SRR622457_1.fastq.gz
FQ2=${DATADIR}/S... | true |
25e7f19df807373e8956f74b513d3beecd049b83 | Shell | eqmvii/eqmvii-sys-mon | /scriptpractice | UTF-8 | 439 | 4.09375 | 4 | [] | no_license | #!/bin/bash -x
echo -e "Current Value of Count: $count\n"
(test -z $count) && count=-5 # if count has length 0, set it to 0
while [[ "$count" -le 5 ]]; do
echo "$count"
count=$((count + 1))
done
read -p "enter a word > "
case "$REPLY" in
[[:alpha:]]) echo "It was a single alpha character";;
???) echo "It w... | true |
172d3228a1d3ec0b9ec553ad858f81fda1fcd1d0 | Shell | mzachariasz/sap-deployment-automation | /terraform/modules/terraform-google-lb-internal/examples/simple/nginx_upstream.sh.tpl | UTF-8 | 365 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -xe
apt-get update
apt-get install -y nginx
cat - > /etc/nginx/sites-available/upstream <<EOF
server {
listen 80;
location / {
proxy_pass http://${UPSTREAM};
}
}
EOF
unlink /etc/nginx/sites-enabled/default
ln -sf /etc/nginx/sites-available/upstream /etc/nginx/sites-enabled/upstream
s... | true |
eb6f104d9cdaf8a2e4cbed3d1de6023c51ef8a64 | Shell | notlcry/docker-elk | /setup.sh | UTF-8 | 1,180 | 2.6875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
echo "create elasticsearch data path"
mkdir -p /opt/es/data/
chown -R 1000:1000 /opt/es/data/
echo "starting elk stack docker containers"
docker-compose up -d
echo "elk stack docker containers finish"
echo "sleep 120s for kibana init"
sleep 120
## add index-pattern for logstash
echo "create index patter... | true |
6b6630038ee10a04563a26d871ead81ed5e955e5 | Shell | juanmanavella/sa | /qcow2_backup.sh | UTF-8 | 779 | 3.296875 | 3 | [] | no_license | #!/bin/bash
## Simple script to backup live mounted qcow2 virtual hard disks
## using qemu-nbd. Just edit the paths below to fit your needs.
LOG=/var/log/105_backup.log
LOCAL_BACKUP=/mnt/12t/backup/rdiff-backup/105
CLOUD_BACKUP=/mnt/12t/cloud/rsync/105-pdc
VDEVICE=/dev/nbd5
VPARTITION=/dev/nbd5p1
VHDD=/mnt/12t/ima... | true |
b869eded807ba36420a8779603df8292c5dc73e5 | Shell | Xercoy/my-k8s-stuff | /pki/generate-csrs.sh | UTF-8 | 2,885 | 3.671875 | 4 | [] | no_license | #!/bin/bash
# note: use sh instead - https://stackoverflow.com/questions/3411048/unexpected-operator-in-shell-programming
# script to generate certs needed for k8s
DESIRED_CERT_TYPE=$1
NODE_NAME=$2
TYPES="admin, kubelet, kube-controller-manager, kube-proxy, kube-scheduler, kube-api-server, service-account (requires n... | true |
83edfc6367cc1123ea1e6e556de94df2b6bd6864 | Shell | hpe-container-platform-community/kubedirector-lab | /packer/install-git-client.sh | UTF-8 | 408 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
yum groupinstall -y 'Development Tools'
yum install -y gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel
# Theia requires a recent version of git
yum -y remove git*
yum -y install wget
export VER="2.27.0"
wget https://github.com/git/git/archive/v${VER}.tar.gz
tar -xvf v${VER}.tar.gz
r... | true |
1f741ad6f0175d5ffef354be9cb6d3b9b027d111 | Shell | tking53/pixie_scan-loaders | /094rb-loaders/segment-archiver.bash | UTF-8 | 142 | 2.6875 | 3 | [] | no_license | #!/bin/bash
for i in {1..10}
do
file="094rb_14-seg-"$i"."
echo $file
filename=$file"tar"
tar -acvf $filename $file* #--remove-files
done
| true |
da01df633cf9fe8da1ef097ce5af50f07095bf88 | Shell | stdob/json_to_relation | /scripts/backupEdx.sh | UTF-8 | 5,673 | 3.40625 | 3 | [
"BSD-3-Clause"
] | permissive | # Copyright (c) 2014, Stanford University
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the ... | true |
b29740c7a809f28eb373b9a6f065136d1ae9b602 | Shell | fargusplumdoodle/ICS199-MLIK | /moveToDeepblue.sh | UTF-8 | 408 | 2.71875 | 3 | [] | no_license | #!/bin/bash
git pull
tar cvf public_html.tar.gz public_html/
ping -c 1 mlik.ra
if [ 1 -eq 0 ]
then
scp public_html.tar.gz root@mlik.ra:public_html.tar.gz
ssh root@mlik.ra '~/unpack.sh'
else
echo 'local mlik not pingable'
fi
ping -c 1 deepblue.cs.camosun.bc.ca
if [ $? -eq 0 ]
then
scp public_html.tar.gz cst166... | true |
2bcdb0484de365fbc7a29c79feec90d451c65af8 | Shell | MainShayne233/myspace | /bin/deploy | UTF-8 | 318 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
set -CEeuo pipefail
IFS=$'\n\t'
shopt -s extdebug
main() {
git switch -c deploy
git reset --hard master
bin/build
git add --force build
git commit -m "Add production build files"
git push heroku +deploy:master
git checkout master
git branch -D deploy
}
main "$@"
| true |
61e5b798023dad20322fc198a244c3a3dcf50fd8 | Shell | debdeepbh/archyhome | /.myscr/vim | UTF-8 | 478 | 3.40625 | 3 | [] | no_license | #!/bin/sh
# Launching each vim instance in servermode
# Make sure the path /usr/bin/vim is replaced by the current vim installion
choice='vim'
case $choice in
'vim' )
path='/usr/bin/vim'
## Launch vim in server mode
exec $path --servername vim "$@"
;;
'nvim' )
path='/usr/bin/nvim'
## Launch neovim in se... | true |
27e07daa760aefb3f7cb4b162d596e79469571ef | Shell | publiux/aviationCharts | /unzip_and_normalize.sh | UTF-8 | 3,958 | 4.15625 | 4 | [] | no_license | #!/bin/bash
set -o errexit
set -o pipefail
set -o nounset
# set -o xtrace
IFS=$(printf '\n\t') # IFS is newline or tab
main() {
# Get the number of function parameters
local -r NUMARGS=$#
# Get the base directory of where source charts are
local -r chartsRoot=$(readlink -f "$1")
# Set o... | true |
911b7c96ab6d87dc8160647d5f2588081513c64d | Shell | rsmeurer0/scripts | /gdb/continue_after_break.sh | UTF-8 | 205 | 2.75 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#insert the continue command afet the break point in order to get a full list of hitten breakpoints
FILE="$1"
sed -i -e 's/break \(\*0x[0-9a-f]*\).*/\0\n commands\ncontinue\n end/' $FILE
| true |
04371fa9ca4505c6319bc9bc7e83cdf9c5137e9d | Shell | Michael137/os | /cs246/hw2/quantum/sweep.bash | UTF-8 | 1,074 | 2.65625 | 3 | [] | no_license | #!/bin/bash -e
# Adaptive file names: <name>.PTSIZE_HHRTSIZE
for i in `seq 7 13`
do
sed "s|PLACEHOLDER|${i}|g" sweep.condor.template > "sweep.submit.1bit.${i}"
sed -i "s|SCRIPT|run-1bit|g" "sweep.submit.1bit.${i}"
sed -i "s|ARGUMENTS|${i} out/tool_1bit_${i}.out /usr/local/benchmarks/libquantum_O3 400 25|g" "sweep.... | true |
344eabafd196026a08c6dc954a843878e5851a0f | Shell | sedovandrew/microservices | /create-docker-machine4swarm.sh.example | UTF-8 | 805 | 3.125 | 3 | [] | no_license | #!/bin/bash
MASTER=master-1
WORKERS="worker-1 worker-2 worker-3"
machines="$MASTER $WORKERS"
ENV=DEV
for machine in $machines; do
docker-machine create --driver google \
--google-project <ENTER-YOUR-PROJECT-NAME> \ # FIX: Enter your project name and remove this comment!
--google-zone europe-west1-b \
... | true |
38a225ddc85afa64ea6c93ea5214b38f97a5abf6 | Shell | ccsf-dt-service-desk/ccsf-jss | /forcePWchange.sh | UTF-8 | 1,032 | 3.25 | 3 | [] | no_license | #!/bin/bash
#########################################################################################################################################################
#
# ABOUT THIS SCRIPT
#
# NAME
# forcePWchange.sh
#
# TRIGGER
# Run by Jamf as sudo
#
################################################################... | true |
327d0879a03178caafc34bee5449c6dbdde77312 | Shell | oguzy/crowbar-build | /git.sh | UTF-8 | 1,228 | 2.546875 | 3 | [] | no_license | mkdir -p ~/.crowbar-build-cache/iso
cd ~/.crowbar-build-cache/iso
cd ~
if [ -f ubuntu-12.04.3-server-amd64.iso ]
then
mv ubuntu-12.04.3-server-amd64.iso ~/.crowbar-build-cache/iso
mkdir -p ~/.crowbar-build-cache/barclamps/dell_raid/files/dell_raid/tools/
cd ~/.crowbar-build-cache/barclamps/dell_raid/files/dell_raid/... | true |
510f39dead98e59c9f64f190652e9f03dd75e83b | Shell | brando91/STAN | /scripts/deploy/release.sh | UTF-8 | 555 | 3.265625 | 3 | [] | no_license | #!/bin/bash
set -e
relative_path=`dirname $0`
root=`cd $relative_path/../..;pwd`
project=$root/stan
release=$1
todeploy=$root/todeploy/$release
$root/scripts/build.sh
echo "******* Preparing Deploy Package $release *******"
rm -rf $todeploy
mkdir -p $todeploy
cp $project/stan $todeploy
cp $project/stan.jar $todeploy
... | true |
1aa8f768eabf489aa10438eeb5013570a7ca5de6 | Shell | MusicScience37/cpp-cmake-doxygen | /test/run_test.sh | UTF-8 | 3,210 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh -eu
# Copyright 2019 MusicScience37 (Kenta Kabashima)
#
# 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 appl... | true |
cada3810f95b9df005dc1093c9352ecf25241602 | Shell | dustinrhollar/portfolio | /LowPolyTerrainGen/run.sh | UTF-8 | 349 | 2.984375 | 3 | [] | no_license | #!/bin/bash
# Get the target machine
MACHINE=$(./scripts/machine.sh)
if [[ "$MACHINE" == "Linux" ]]; then
# Get the directory
ME="$(readlink -f "$0")"
LOCATION="$(dirname "$ME")"
elif [[ "$MACHINE" == "Mac" ]]; then
# Get the directory
ME="$(greadlink -f "$0")"
LOCATION="$(dirname "$ME")"
fi
pushd $LOCATION/b... | true |
fd26db909d2046213a2ab4304e2a1df65bd9384b | Shell | open-power/HTX | /packaging/ubuntu/DEBIAN/preinst | UTF-8 | 439 | 3.140625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -e
case "$1" in
install)
if ! id -g htx > /dev/null 2>&1 ; then groupadd htx -o -g 0 ; fi
sync
sleep 1
if ! id htx > /dev/null 2>&1 ; then mkdir -p /usr/lpp/htx; useradd -g htx -d /usr/lpp/htx -s /bin/bash -u 0 -o htx ; rm -rf /usr/lpp/htx 2>/dev/null; fi
;;
abort-upgrade|abort-remove|abor... | true |
45e912852a3b57077d0f1988eedb9732ae24b777 | Shell | delkyd/alfheim_linux-PKGBUILDS | /dcled/PKGBUILD | UTF-8 | 799 | 2.875 | 3 | [] | no_license | # Maintainer: Gunther Schulz <forum (at) guntherschulz.de>
pkgname=dcled
pkgver=stable.1.9.kost.r4.gc819fec
_pkgver=1.9
pkgrel=2
pkgdesc='dcled - userland driver for Dream Cheeky (Dream Link?) USB LED Message Board'
url='https://github.com/kost/dcled'
license=('GPL')
arch=('i686' 'x86_64')
depends=('libhid'
)... | true |
3c059f4f09783af591d62c7cc03bd4573757cc6f | Shell | aalzubidy/ubuntuInstall | /install.sh | UTF-8 | 2,029 | 2.671875 | 3 | [] | no_license | #!/bin/bash
echo "Starting install script"
#Flashback to Classic Ubuntu
echo "Flashback to Classic Ubuntu"
sudo apt-get update
sudo apt-get install gnome-session-flashback
#Disable Recenet Documents
echo "Disable Recenet Documents"
sudo chattr +i ~/.local/share/recently-used.xbel
#Enable using sudo chattr -i ~/.loca... | true |
a52cb409690f06daebec3dd92fb31de679af799c | Shell | bmichalo/performance | /hostScripts/virt-install-vm.sh~ | UTF-8 | 2,019 | 3.125 | 3 | [] | no_license | #!/bin/bash
dist=rhel72
vm=master
bridge=virbr0
master_image=master.qcow2
ks=$dist-vm.ks
image_path=/var/lib/libvirt/images/
nr_vms=0
case $dist in
rhel71)
#location="http://download.devel.redhat.com/released/RHEL-7/7.1/Server/x86_64/"
location="http://download.devel.redhat.com/released/RHEL-7/7.1-RC-2/Server/x... | true |
d0e7311c46ee04b0801656eac4d10ac4e3f83dad | Shell | MGalego/docker_wordpress | /_bash_webserver.sh | UTF-8 | 148 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
MY_VAR=$(grep CONTAINER_NAME= .env | xargs)
MY_VAR=${MY_VAR#*=}_php
echo "Bash to $MY_VAR"
docker exec -u root -ti $MY_VAR bash
| true |
4df6d9a1b6db16eb941bb2244bcb389f0ab907be | Shell | dacapobench/dacapobench | /tools/analysis/perf/scrapegc.sh | UTF-8 | 388 | 3.421875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/usr/bin/bash
#
# gather all the GC stats for all benchmarks into yml files
DIR=log/mole-2023-06-08-Thu-033509
for bm in `(cd $DIR; ls | grep 1000 | cut -d '.' -f1 | sort | uniq)`; do
echo $bm
out=../../../benchmarks/bms/$bm/stats-gc.yml
cp gc-stats-hdr.txt $out
for i in 1 2; do
echo -n "$i.0: " >>... | true |
4c4bbe6ae554c38c9b49ab7ffdd144512fc1f6d5 | Shell | tensorflow/tfjs-models | /model-playground/scripts/deploy-dev.sh | UTF-8 | 662 | 3.703125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Build and deploy the app to the `model-playground-demo` Google Storage bucket.
set -e
# Use date+time as an unique identifier for the current demo.
datetime=$(date '+%Y-%m-%d-%H-%M-%S')
# Build and copy angular app to the corresponding Google Storage location.
base_url="/model-playground-demo/${dateti... | true |
da5dfaa8d5cdc9011e3ccdd44c09dbcb089b273e | Shell | shaan1337/EventStore | /src/Scripts/v8/build-v8_x64_release.sh | UTF-8 | 343 | 3.296875 | 3 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0"
] | permissive | #!/bin/bash
function err() {
exit
}
function build-v8() {
make x64.release library=shared || err
}
function copy-files() {
cp out/x64.release/lib.target/* -t ../libs || err
mkdir ../libs/include
cp include/* -t ../libs/include || err
}
pushd $(dirname $0)/../../v8 || err
build-v8 || err
copy-fi... | true |
c42b5a05ec6dcd29b4acbe32e95d71020a3a0b72 | Shell | MasonIT/git-log-action | /entrypoint.sh | UTF-8 | 531 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [[$3 != '']]
then
path=$3
else
path=update.log
if
if [[ $1 == 'tag' ]]
then
echo "type is $1"
git log $2.. --pretty=format:'- %cd %an \n %s\n \n' --date=format:'%Y-%m-%d %H:%M:%S' > path
elif [[ $1 == 'time' ]]
then
echo "type is $1"
git log --since "$2" --pretty=format:'- %cd %an \n %s\n \n' --da... | true |
457026a75278f13ecc3a62b98b979778763e1622 | Shell | crazyrex/sysadmin | /scripts/verify-chameleon.sh | UTF-8 | 1,428 | 3.203125 | 3 | [] | no_license | # Two snippets to compare private/reports-raw at chameleon against private/canned at datacollector
# at datacollector.infra.ooni.io
cd /data/ooni/private/canned && for date in 2017-09-{01..30}; do
echo -n "$date -- "
{
zcat $date/index.json.gz | jq 'select(.canned != null) | .canned[] | .textname + " " + (... | true |
1765cdea6b13ee54fe2ba23aa7163876e9a020d8 | Shell | barbatoast/chat-server | /run.sh | UTF-8 | 813 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
run_unit_tests() {
ret=0
found_tests=0
for test_bin_path in $(find bin | grep test); do
found_tests=1
echo 'Running '${test_bin_path}
./${test_bin_path}
if [ $? = 1 ]
then
ret = 1
fi
echo '=======================================... | true |
29b5dd50e7e5d62470a8429efdf011708599c257 | Shell | nuxlli/Bash-Scripts | /lib/functions.bash | UTF-8 | 266 | 3.46875 | 3 | [] | no_license | #!/bin/sh
function search_array() {
index=0
array=( `echo "$1"` )
while [ "$index" -lt "${#array[@]}" ]; do
if [ "${array[$index]}" = "$2" ]; then
echo $index
return
fi
let "index++"
done
echo ""
} | true |
ff4a9033ecef369b915aca8264a0353973b1f186 | Shell | DimitriTchapmi/overview | /sites/scripts/init_arbre_pc.sh | UTF-8 | 932 | 2.921875 | 3 | [] | no_license | #!/bin/bash
nom_epse=$1
ip_pc=$2
id_epse_bdd=$3
chemin_epse="/var/www/overview/projets"
###création du dossier inventaire###
sudo mkdir $chemin_epse/$nom_epse/inventaire/default/$ip_pc
###création du dossier supervision###
sudo mkdir -p $chemin_epse/$nom_epse/supervision/$ip_pc/graphes/jours
sudo mkdir $chemin_epse/... | true |
805bd25b4c785d16a2bdc32aba7a5b3467e46935 | Shell | roeybiran/dotfiles | /links/_LINK_.zshrc | UTF-8 | 10,205 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/zsh
#### FIG ENV VARIABLES ####
# Please make sure this block is at the start of this file.
[ -s ~/.fig/shell/pre.sh ] && source ~/.fig/shell/pre.sh
#### END FIG ENV VARIABLES ####
# enable vim mode
# bindkey -v
# ENVIRONMENT VARS
export LANG=en_US.UTF-8
# https://stackoverflow.com/questions/444951/zsh-stop-b... | true |
244796388a307a5b20e79e3e9d59256699f0b21a | Shell | faroncoder/falcon-fly | /htmls/htmllinksToFiles.sh | UTF-8 | 614 | 2.5625 | 3 | [] | no_license | #!/bin/bash
if [[ ! "$( echo $PATH | grep 'source /usr/local/bin' )" ]]; then export PATH=$PATH:/usr/local/bin; fi
source /usr/local/lib/faron_falcon/colors; source /usr/local/lib/faron_falcon/functions; startTime
####################START
ls > links.txt
> links.html
while read line
do
echo "<iframe src=\"./jsc/m... | true |
17cd46f6ff0ddeac4e3cab2d083a842e6735af5d | Shell | evzharko/zabbix-templates | /php-fpm/php-fpm_value.sh | UTF-8 | 4,629 | 2.609375 | 3 | [] | no_license | #!/bin/bash
LOG_trn="/etc/zabbix/scripts/php-fpm/log_trn"
LOG_osvita="/etc/zabbix/scripts/php-fpm/log_osvita"
LOG_vse10="/etc/zabbix/scripts/php-fpm/log_vse10"
case $1 in
'pool_trn' )
grep pool $LOG_trn | cut -d":" -f 2 | sed -e 's/ //g';;
'process_manager_trn' )
grep 'process manager' $LOG_trn | cut -d":" -... | true |
11b84dec86eaa39581963ed2506f2d5654efa737 | Shell | obu-team/obu-manager | /.openshift/action_hooks/start | UTF-8 | 430 | 2.5625 | 3 | [] | no_license | #!/bin/bash
# The logic to start up your application should be put in this
# script. The application will work only if it binds to
# $OPENSHIFT_DIY_IP:8080
JDK_LINK=jdk1.8
export JAVA_HOME="$OPENSHIFT_DATA_DIR/$JDK_LINK"
export PATH=$JAVA_HOME/bin:$PATH
cd $OPENSHIFT_REPO_DIR
nohup java -jar target/obu-app-0.0.1-SNAPSH... | true |
b57ab993e28b506c133af0bdecc3cbb2456ebda9 | Shell | satarii/microk8s | /microk8s-resources/actions/disable.cilium.sh | UTF-8 | 1,706 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
source $SNAP/actions/common/utils.sh
echo "Disabling Cilium"
if [ -L "${SNAP_DATA}/bin/cilium" ]
then
"$SNAP/kubectl" "--kubeconfig=$SNAP_DATA/credentials/client.config" delete -f "$SNAP_DATA/actions/cilium.yaml"
# Give K8s some time to process the deletion request
sleep 15
ciliu... | true |
fa871e0e6e09581c96be9b7b110a97a741b36b4f | Shell | mxq1688/Shell | /sbuild/build.sh | UTF-8 | 3,637 | 3.671875 | 4 | [] | no_license | #!/bin/bash
# 定义日志输出
:<<EOF
Log(){
msgs=''
for msg in $*;do
msgs+=' '$msg
done
echo $msgs $(date "+%Y-%m-%d %H:%M:%S")
# 或者
# printf %s $*
}
EOF
# 定义颜色变量,\033、\e、\E是等价的,都是转义起始符
# echo -e "\033[字背景颜色;文字颜色m字符串\033[0m"
# 字体颜色: 黑30m 红31m 绿32m 黄33m 蓝34m... | true |
369dcd4954c356ad0bd38e5a39ec72936c525339 | Shell | stkevintan/Cube | /src/shell/install.sh | UTF-8 | 387 | 3.15625 | 3 | [] | no_license | #!/bin/bash -e
echo "start installation,Please do NOT run in root!"
baseDir=$(cd "$(dirname "$0")"; pwd)
fileName="nwMusicBox.desktop"
filePath="$HOME/.local/share/applications/"
[[ -d "$filePath" ]] || mkdir -p "$filePath"
cp -f "$baseDir/$fileName" "$filePath"
sed -i "s@__Exec@$baseDir/nwMusicBox@g; s@__Icon@$baseD... | true |
ff6e5d5de8b9951ad8df037bc58e11eb21a1bf1a | Shell | hogus2037/laravel-server-script | /centos-http.sh | UTF-8 | 5,225 | 2.765625 | 3 | [] | no_license | #!/bin/sh
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl... | true |
9f4218e79906bb13de7152bf37bfa178f4f2d597 | Shell | ngkim/vagrant | /one-box/test_scenario/03_2_create_provider_net.sh | UTF-8 | 1,428 | 2.734375 | 3 | [] | no_license | #!/bin/bash
source "./00_check_config.sh"
if [ -z ${OS_AUTH_URL+x} ]; then
source ~/admin-openrc.sh
fi
source "$WORK_HOME/include/provider_net_util.sh"
red() {
#==================================================================
print_title "PROVIDER_NET: RED"
#=============================================... | true |
090faaa5d7ab90df448456ea8d079468ad9f099c | Shell | ef37/operations-puppet | /modules/role/files/toollabs/deploy-proxy.bash | UTF-8 | 510 | 3.734375 | 4 | [] | no_license | #!/bin/bash
# This script does the following:
#
# 1. Stop the K8S Proxy
# 2. Download new versions of Proxy from a central location
# 3. Start the K8S Proxy
set -e
# TODO: Add error checking (baaaaassshhhhh)
URL_PREFIX="$1"
VERSION="$2"
# Stop all the running services!
service kube-proxy stop
# Download the new thi... | true |
02e6fa34ad98033a2d0e2069043553050e05c6c1 | Shell | naivekun/os6360_trtest | /cpss-ac3/lsp/wnc_tools/diag/diag_code/project/release/wnc-diag/usr/bin/wnc_diag/funcs/sh_funcs/yesno | UTF-8 | 269 | 3.84375 | 4 | [] | no_license | #!/bin/bash
#ask user for yes/no for flow status
function yesno() {
local result=''
while [ -z "$result" ]; do
read result
case "$result" in
[Yy])
result=0;;
[Nn])
result=1;;
*)
echo "Please enter y or n.";;
esac
done
return $result
}
| true |
f7da4c3b9053829687484b5c690bbacc688f5afa | Shell | mbkusharki/cornelius | /framework/scripts/init.sh | UTF-8 | 376 | 2.734375 | 3 | [] | no_license | #!/usr/bin/env bash
################################################################################
# Initialize components of Cornelius
source util.sh
if [ ! -e "$FRAMEWORK" ]
then
mkdir -p "$FRAMEWORK"
fi
if [ ! -e "$LIB" ]
then
mkdir -p "$LIB"
fi
if [ ! -e "$REPOS" ]
then
mkdir -p "$REPOS"
fi
./in... | true |
c192a32b99b7e57dbec3a4c1405e0e89a4307023 | Shell | clburlison/scripts | /clburlison_scripts/munki/exit_on_wireless.sh | UTF-8 | 510 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This will retrieve the primary interface of a Mac and
# exit the munki check flight script if on wireless.
PORT=$(route get 0.0.0.0 2>/dev/null | awk '/interface: / {print $2}')
IS_WIRELESS=$(networksetup -getairportnetwork $PORT | awk 'NR==1')
if [[ "$IS_WIRELESS" == *"is not a Wi-Fi interface"* ]]
t... | true |
8659c09359816af9db1623bc93950b917f63e4d2 | Shell | fakemelvynkim/dotfiles | /init/INSTALL.sh | UTF-8 | 2,034 | 3.828125 | 4 | [] | no_license | #!/bin/sh
export DOTFILES_HOME=""
check_requirements() {
# Die if dotfiles directory exists
if [ -d "${DOTFILES_HOME}" ]; then
echo "dotfiles exist in ${DOTFILES_HOME}"
read -p "Do you wish to re-install dotfiles? [Y]es/[N]o: " prompt_yes_or_no
case $prompt_yes_or_no in
[Y... | true |
1a595992cbea4294d3e96c9eb59fe8e8aef57859 | Shell | openmole/mgo-benchmark | /lib/coco/generateInterface.sh | UTF-8 | 1,194 | 3.40625 | 3 | [] | no_license | BUILD_DIR=$1
# generate coco c interface file from original CocoJNI
ls ../../src/main/scala
PREFIX=`ls ../../src/main/scala | grep "CocoJNI" | awk -F"_" '{$NF=""; print $0}' | sed-gnu -r 's/[" "]+/_/g'`
echo "Prefix of the header: "$PREFIX
# create the source
rm $BUILD_DIR/"$PREFIX"CocoJNI.c
#cp src/CocoJNI.c src/"$P... | true |
669db00e0c5d8df4483cb1504bc490875bb2f7b6 | Shell | jammycakes/dotfiles | /setup/github-clone-all.sh | UTF-8 | 274 | 3.109375 | 3 | [
"MIT"
] | permissive | #! /usr/bin/env bash
mkdir -p ~/abc/github
for I in $(curl -s https://api.github.com/users/jammycakes/repos | jq -r .[].name)
do
if [ -e ~/abc/github/$I ]; then
echo Already cloned $I
else
git clone git@github.com:jammycakes/$I ~/abc/github/$I
fi
done | true |
62bcae9d6e7d85244bbb980fde9d1c36c31c548c | Shell | ews-ffarella/optiMesh | /applications/moveLastToConstant/moveLastToConstant | UTF-8 | 210 | 2.890625 | 3 | [] | no_license | #!/bin/bash
TIME=`foamListTimes -noFunctionObjects 2> /dev/null | tail -1`
cp -r -t constant/polyMesh/ $TIME/polyMesh/*
echo "Warning: fields are not moved! Everything in $TIME will be deleted"
rm -fr $TIME
| true |
ffa6f03198cd3089205bfe968e0d710bae52bb1f | Shell | mas178/terraform-dl | /provision.sh | UTF-8 | 2,368 | 2.921875 | 3 | [] | no_license | #!/bin/bash
echo '--------------------'
echo 'Set tensorflow as Keras backend'
echo '--------------------'
/bin/mkdir ~/.keras
echo '{"image_dim_ordering": "tf", "floatx": "float32", "backend": "tensorflow", "epsilon": 1e-07}' > ~/.keras/keras.json
echo '--------------------'
echo 'Import source code'
echo '----------... | true |
4d01f612ce3ef2d565b360d6c47f22a30a101d46 | Shell | atomduan/atm-cache | /auto/os/linux/conf | UTF-8 | 5,137 | 3.03125 | 3 | [] | no_license | #!/bin/sh
have=ATM_LINUX . auto/have_headers
atm_spacer='
'
cc_aux_flags="$CC_AUX_FLAGS"
CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
# Linux kernel version
version=$((`uname -r \
| sed -n -e 's/^\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\).*/ \
... | true |
0f13bb5cc6db0f11a2c9afcfb44a22713dd3678b | Shell | rodolfo-picoreti/openstack | /base-image/install.sh | UTF-8 | 945 | 3.125 | 3 | [] | no_license | #!/bin/bash
__USER=$USER
# Get super user privileges
if [[ $EUID != 0 ]]; then
sudo -E "$0" "$@"
exit $?
fi
REGISTRY=10.51.0.39:5000
NTP_IP=10.50.0.3
logfile=/install.log
exec > $logfile 2>&1
apt update
apt install -y docker.io chrony
linenum=`grep iburst -nr /etc/chrony/chrony.conf | cut -d : -f 1`
sed -i "${... | true |
71eb8ee2917a2a7a2dc766e0c8dea58f5baff50e | Shell | leehonan/meterman-server | /meterman_setup.sh | UTF-8 | 5,130 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# download with 'sudo wget https://github.com/leehonan/meterman-server/raw/master/meterman_setup.sh'
# then 'sudo chmod +x ./meterman_setup.sh'
# then 'sudo ./meterman_setup.sh -n <network_id> -d (data purge) -c (config purge)''
if [ $(/usr/bin/id -u) -ne 0 ]
then
echo "Not running as sudo!"
exit
... | true |
0114f05e47540c20af4ed4848b43753fe5abb2f3 | Shell | Componentality/FlexRoad-BuildSys | /build.sh | UTF-8 | 3,391 | 3.984375 | 4 | [] | no_license | #!/bin/bash
CDIR="$(pwd)"
FR_BS_PATH="$CDIR"
FR_PK_PATH="$CDIR/../FlexRoad-Packages/"
FR_PATH="$CDIR/../FlexRoad/"
DEFAULTS=$(pwd)/.defaults
REMOTE=origin
BRANCH=flexroad-dev-1
BUILD_ID=0
TARGET=router
git_get_remote() {
local path="$1"
cd $path &> /dev/null
git branch -r | sed "s/^\s\+\([^\/]\+\).*/\1/" | uniq... | true |
c23978043832de198b1a46066f06de744f993767 | Shell | Techfolio/benbalter.github.com | /script/bootstrap | UTF-8 | 271 | 2.578125 | 3 | [
"CC-BY-3.0",
"MIT"
] | permissive | #!/bin/sh
#bootstrap the development environment
set -e
echo "cloning into submodules"
git submodule init
git submodule update
if [ "$TRAVIS" == "TRUE" ]; then
export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
fi
echo "Bundle Installin'"
gem install bundler
bundle install
| true |
26eb15c4a10d5ff348622b2bbb866f130891ef02 | Shell | dashohoxha/DocBookWiki | /install/install-scripts/00-config.sh | UTF-8 | 324 | 2.625 | 3 | [] | no_license | #!/bin/bash -x
export DEBIAN_FRONTEND=noninteractive
cwd=$(dirname $0)
$cwd/10-install-additional-packages.sh
$cwd/20-make-and-install-docbookwiki.sh
$cwd/30-git-clone-docbookwiki.sh
$cwd/40-configure-docbookwiki.sh
### copy overlay files over to the system
cp -TdR $(dirname $cwd)/overlay/ /
$cwd/50-misc-config... | true |
2ff6b301223db4c9ccad8f7d76688a249a80603d | Shell | pedrosanmi23/script2 | /processfeed.sh | UTF-8 | 641 | 3.453125 | 3 | [] | no_license | #!/bin/bash
echo "URL del feed rss"
read url
html=""
wget -nv -cO - $url > feedrss
linea=$(grep "<item>" feedrss -m 1 -n | cut -f1 -d:)
sed "1,$linea""d" feedrss | grep -E "<title>|<pubDate>" | sed -e 's/<title>//g' -e 's/<pubDate>//g' |sed -e 's/<\/title>//g' -e 's/<\/pubDate>//g' | sed 's/<!\[CDATA\[//g' | sed 's/\... | true |
7d0a65fe6a80ef24d1294ebcfdbc6d6d599d7abe | Shell | etsurin/cmu-script | /bin/run_pipeline.sh | UTF-8 | 443 | 3.25 | 3 | [] | no_license | #!/usr/bin/env bash
args=${@:3}
export MAVEN_OPTS=${MAVEN_OPTS:-"-Xmx15g"}
if (( $# > 0 )); then
if [[ -z "${logfile}" ]]; then
echo "logfile not set, will use the default log file"
mvn exec:java -pl $1 -Dexec.mainClass="$2" -Dexec.args="$args"
else
echo "logfile provided at: "${logfil... | true |
e0e1691d7c4f4b2fe23a22716b4d538722d948b4 | Shell | Roja-B/EvolvingComs | /code_v1_recovered/paths.sh | UTF-8 | 343 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# this is for creating the paths
python communityEvolution.py
Num=40
i=5
while [ $i -lt $Num ]; do
python communityEvolutionPaths.py $i
# python CommunityTopicBalatarin.py $i
i=$((i + 5))
echo $i
done
# python communityEvolutionPathsTopics.py to get a list of topics for each community on the path of ... | true |
517a7937437f68d3a4c205b4ea0c97d0cfc5d2fc | Shell | FHomps/RichText | /build.sh | UTF-8 | 3,293 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
CMD=$1
BUILD=$2
VSCODE=$3
cwd=${PWD##*/}
if [[ $CMD == '' ]]; then
CMD=buildprod
fi
if [[ $BUILD == '' ]]; then
BUILD=Release
fi
if [[ $OSTYPE == 'linux-gnu'* || $OSTYPE == 'cygwin'* ]]; then
if [[ $OSTYPE == 'linux-gnueabihf' ]]; then
export PLATFORM=rpi
else
export PLATFORM=linux
fi
if [[ $N... | true |
554153af85355ba1a582b4069d95ee03b86d1267 | Shell | dushaofan/data-analysis | /mongo/express/mongo_storeentity_idld.sh | UTF-8 | 1,768 | 2.765625 | 3 | [] | no_license | #!bin/sh
#date
source /www/data-analysis/conf/config.sh
two_start_date=`date -d -2day "+%Y-%m-%d"`
two_start_time=`date -d -2day "+%Y-%m-%d 00:00:00"`
start_date=`date -d yesterday "+%Y-%m-%d"`
start_time=`date -d yesterday "+%Y-%m-%d 00:00:00"`
today_date=`date "+%Y-%m-%d"`
today_time=`date "+%Y-%m-%d 00:00:00"`
s... | true |
5cd01f2442538be44910830a4f1bc53b52752fba | Shell | lixhq/docker-grafana | /.buildkite/build.sh | UTF-8 | 215 | 2.890625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
eval "$($(dirname $0)/env.sh)"
echo "--- Build image"
$(dirname $0)/../build.sh $GRAFANA_VERSION $DOCKER_IMAGE $VERSION
if [ "$PUSH_IMAGE" == "true" ]; then
$(dirname $0)/push.sh
fi;
| true |
81a33a5535a4bb78af87879d11ce8408c6202ca7 | Shell | chrismattmann/imagecat | /distribution/src/main/resources/bin/ingest | UTF-8 | 1,337 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you ... | true |
e2c70cec6c94e0c51540efba43c767e320bb9456 | Shell | kieranajp/colossal | /bin/consul-leave.sh | UTF-8 | 185 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if pgrep cosnul > /dev/null; then
echo "* Issuing Consul leave command"
consul leave
else
echo "* [warning] Consul is not running can't issue a leave command"
fi
| true |
adec8566c92e70c1afefc74ae41944223550b2bb | Shell | nacase/scripts | /cpio2tar.sh | UTF-8 | 1,151 | 4.46875 | 4 | [] | no_license | #!/bin/bash
# Convert a CPIO[.gz|.bz2|.xz] archive to TAR format using fakeroot
#
# Author: Nate Case <nacase@gmail.com>
if [ "$2" = "" ] ; then
echo "usage: $0 <file.cpio[{.gz|.bz2|.xz}]> <file.tar>"
exit 1
fi
CPIOFN="$1"
TARFN="$2"
CAT="cat"
file "${CPIOFN}" | grep -qE "gzip compressed"
if [ $? = 0 ] ; the... | true |
9499cdc4898d018f8c00f7d361e459675f19b9a7 | Shell | aakashhemadri/shell | /examples/cut/cut.sh | UTF-8 | 2,452 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# @author: Aakash Hemadri
# @email: aakashhemadri123@gmail.com
#
# Example cut commands
## --------------------------------------------------------
# Function definitions
## --------------------------------------------------------
function run_command {
echo "Executing command: $1"
## ---------------... | true |
b5bbc0151003f8091494feec31c8939f506aaf5d | Shell | LyzV/bash-learn | /find-file | UTF-8 | 138 | 3.234375 | 3 | [] | no_license | #! /bin/bash
for file in $(ls -a) ; do
if [ $file = $1 ]; then
echo "Find file: $file"
exit 0
fi
done
echo "Nothing found"
exit 1
| true |
93efa074d110ea93ae9e162ec880ba9420029ea9 | Shell | pildog/ssl-scripts | /bin/create | UTF-8 | 980 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
source $(dirname "$0")/../lib.sh
if [ ! -f $(dirname "$0")/../$CONFIG_FILE ]; then
echo -e "${RED}Config file not found.${NC}"
exit 0
fi
source $(dirname "$0")/../$CONFIG_FILE
SCRIPT_NAME=$(basename "$0")
if [ $# -ne 2 ]; then
echo "$SCRIPT_NAME [E-mail] [Domain]"
echo "Example:... | true |
e78d9880b5bafb16264ef382668c3cb2c16bb6cc | Shell | aerosol/dotfiles | /silos/scripts/bin/switch | UTF-8 | 265 | 2.703125 | 3 | [] | no_license | #!/usr/bin/env bash
layout=$(setxkbmap -query |grep -e layout: |cut -c 13-14)
if [[ $layout == "us" ]]; then
setxkbmap -layout "pl(intl)"
notify-send "Language" "Polish"
elif [[ $layout == "pl" ]]; then
notify-send "Language" "English"
setxkbmap -layout us
fi
| true |
0c25e7dbf8d0fa671d4519323a0db5dc39936b34 | Shell | simonoff/dotfiles | /.bashrc | UTF-8 | 3,281 | 3.859375 | 4 | [] | no_license | ########################################################################
# Evil bash settings file for Ciaran McCreesh <ciaranm at gentoo.org>
#
# Not many comments here, you'll have to guess how it works. Note that
# I use the same .bashrc on Linux, IRIX and Slowaris, so there's some
# strange uname stuff in there.
#
... | true |
b5048fbaaaee3dcd7a6cd9c4ad920451e32f2103 | Shell | lnbayinen/platform-deployment-master | /orchestration/saltstack/prototype/orchestration-bootstrap/scripts/bootstrap-nodeX.sh | UTF-8 | 2,767 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Script that installs platform infrastructure components for NetWitness node-0
# Notes and TODO
# 1) Missing checking for existing deployment (will be priority post POC)
# 2) Allow script argument passing
# 3) Better error handling
# 4) Debug feature, and better message control on stdout
# 5) Clean up node... | true |
7daf68b0ef70c85146807719c7e9d77ecdabab66 | Shell | larsoncaldwell/larsonGit | /racer.sh | UTF-8 | 212 | 2.671875 | 3 | [] | no_license | #!/bin/sh
# clean up on ^C to terminate script
trap 'pkill java; rm -f file.*; exit' 0 1 2 3 15
java -cp . Racer &
while true
do
sleep 1
find . -name "file.*" | sort
echo "----------------------"
done | true |
64655f08b2d4af9e37866b5e6fb0febc0a9f1e23 | Shell | DittoPardo/hootsuite-challenge | /test.sh | UTF-8 | 163 | 2.625 | 3 | [] | no_license | container="$1"
if [ -z $container ]; then
container=hsc_web
fi
docker-compose -f docker-compose.yml -f debug.yml -f test.yml up -d && docker attach $container
| true |
9876896b0403b8a7f113ea37e49f5e6a8d50857e | Shell | H1d3r/quiver | /modules/qq-notes.zsh | UTF-8 | 1,644 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
#############################################################
# qq-notes
#############################################################
qq-notes-help() {
cat << "DOC"
qq-notes
-------
The notes namespace provides searching and reading of markdown notes that are
stored in a directory specified ... | true |
cf77daf06a9d177a7b4a7d5d62bd7ba77d791223 | Shell | nick-smith8/Unix-Admin | /lab1/dashboard.sh | UTF-8 | 1,279 | 3.375 | 3 | [] | no_license | #!/bin/bash
CPULoad=$(uptime | awk '{print $8 $9 $10}')
FreeRAM=$(free -m | awk '{print $4}' | tail -n 2 | head -n 1 )
ActiveUsers=$(uptime | awk '{print $4}')
TotalUsers=$(more /etc/passwd | wc -l)
MostUsedShell=$(cat /etc/passwd | cut -d ":" -f7 | sort | uniq -c | sort -n | tail -n 1 | awk '{print $2}')
IoBytesR... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.