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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
590a0c8bc878b67ad3f30aa43befcc3dfe4ef647 | Shell | binanhphuoc/IPS-Docs | /scripts/remove-file-format.sh | UTF-8 | 659 | 3.90625 | 4 | [] | no_license | #!/bin/bash
FILE_FORMAT="ipynb"
while getopts ":f:" opt; do
case ${opt} in
f )
FILE_FORMAT=$OPTARG
;;
\? )
echo "Usage:"
echo " Opt Default Argument Description"
echo " [-f] ipynb file format"
echo " [-h] NONE ... | true |
ad079fdd4ea2d9d82aa76619e211dfa974d16b7e | Shell | Tailszefox/bin | /apply_replaygain | UTF-8 | 1,363 | 4 | 4 | [] | no_license | #!/bin/bash
# Applies replaygain info to all compatible files in the specified directory
if [[ $# -lt 1 ]]; then
echo "Usage: $0 [directory]"
exit
fi
cd "$1"
find . -type f | sort | while read f; do
# Convert filename to lowercase to match extension
filenameLower="${f,,}"
case "$filenameLower" ... | true |
05fc862849975cbd9aec8c9dd4113e3d8f20780b | Shell | mikemccracken/bundle-wordpress | /conjure/steps/00_pre-deploy | UTF-8 | 902 | 3.265625 | 3 | [] | no_license | #!/bin/bash
. /usr/share/conjure-up/hooklib/common.sh
JUJU_PROVIDERTYPE="lxd"
if [ $JUJU_PROVIDERTYPE = "lxd" ] || [ $JUJU_PROVIDERTYPE = "localhost" ]; then
profilename=$(juju switch | cut -d: -f2)
juju_profilename="juju-$profilename"
retries=0
until [ $retries -ge 5 ]
do
lxc profile li... | true |
c95800d0df5e59206eee19beef52f4713f611e3e | Shell | ImaginaryStargazer/acid.nvim | /githooks/pre-commit/no-taps | UTF-8 | 152 | 2.671875 | 3 | [] | no_license | #!/bin/bash
ROOT_DIR="$(git rev-parse --show-toplevel)"
grep -q tap "${ROOT_DIR}"/lua/**/*.lua && {
echo "Don't commit a 'tap'."
exit 1
}
exit 0
| true |
310bc7ef34f9d50f59faee179adaabfeb3d4794b | Shell | k0gen/matrix-conduit-wrapper | /docker_entrypoint.sh | UTF-8 | 1,572 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
export HOST_IP=$(ip -4 route list match 0/0 | awk '{print $3}')
echo "[global]" > /root/conduit.toml
echo "server_name = \"${TOR_ADDRESS}\"" >> /root/conduit.toml
echo "database_path = \"/root/conduit_db\"" >> /root/conduit.toml
echo "port = 6167" >> /root/conduit.toml
echo "max_request_size = 20_000_000" >>... | true |
389882fb7957dc78e041bf80a2c7fdb5e3c79b1e | Shell | jadeprevot/apache-log-analysis | /test/mktest.sh | UTF-8 | 523 | 3.359375 | 3 | [] | no_license | echo "Test ID;Return code validation;Out result;StdErr result;File creation result;Global result" > test/results.csv
nOk=0
nKo=0
nTotal=0
nMis=0
for i in test/Test*
do
./test/test.sh $i test/results.csv
result=$?
if [ $result -eq 0 ]
then
let "nKo=$nKo+1"
elif [ $result -eq 1 ]
then
let "nOk=$nOk+1"
el... | true |
5b98ab9561fc7bbd8278f4f03ebb0d1a07157ab0 | Shell | DataMgr/Linux | /shell/os_info.sh | GB18030 | 438 | 2.78125 | 3 | [] | no_license | #!/usr/bin/env bash
#ChangeLog:
#created by liuchangsheng 2010-12-30 9:27:02
#2018/04/03 ռһЩõshell
#only for debug
export PS4='+{$LINENO:${FUNCNAME[0]}}'
SCRIPT_PATH=$( cd "$( dirname "$0" )" && pwd )
source $SCRIPT_PATH/common.sh
set -xv
getAllOracleSID
status=$?
echo $status
for ((i=0;i<${#G_ARR_ORACLE_SID... | true |
a32e1e5d21c2b36e8d53c6fc00858c8baab77960 | Shell | mdwheele/vm | /puppet/modules/dotfiles/files/.bash_profile | UTF-8 | 1,702 | 3.28125 | 3 | [] | no_license | if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
fi
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add
fi
# General environment command-line helpers
alias ll="ls -lah" # List all, with human readable filesizes
alias lf="ls -FC"
ali... | true |
021c67e9b281bd400d2172ac65a1db44eb88d240 | Shell | projn/popigai | /install/nexus-install/nexusd | UTF-8 | 617 | 2.96875 | 3 | [
"MIT"
] | permissive | #! /bin/sh
#chkconfig: 2345 81 96
#description: start nexus
# path: /etc/init.d/nexusd
# description: process nexus node service
# processname: nexusd
SERVICE_USER_NAME=SOFTWARE_USER_NAME
SERVICE_INSTALL_PATH=SOFTWARE_INSTALL_PATH
case "$1" in
start)
su - ${SERVICE_USER_NAME} -c "${SERVICE_INSTALL_PATH}/bin/... | true |
dcd1e9cfe65f7d34b98b35ba323cb624adb8167c | Shell | McAuM/TESTSCRIPT | /tpiv1.sh | UTF-8 | 20,887 | 3.25 | 3 | [] | no_license | #!/bin/bash
hadoophome="/home/hadoop/hadoop-1.0.4/bin/hadoop"
javahome="/usr/java/jdk1.7.0_09/bin/java"
#refreshtoken box and gdrive
#sh /home/hadoop/TESAPI/TESTSCRIPT/managetoken
echo "| ---------------------------- START SCRIPT --------------------------- |"
echo " ____ ____ ____ "
echo " (_ _)( _ \... | true |
ee3c96fcd7958072a8a35078d458eb7e1c7ca62b | Shell | posborne/rust-systems-programming | /tests/test_filecopy.sh | UTF-8 | 302 | 3.265625 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -ex
FC=target/debug/filecopy
tmpdir=$(mktemp -d)
src="${tmpdir}/src"
dst="${tmpdir}/dst"
dd if=/dev/urandom of="${tmpdir}/src" bs=1024 count=10
${FC} ${src} ${dst}
cmp --silent ${src} ${dst} || {
echo "Source and destination files are different!"
exit 1
}
rm -rf ${tmpdir}
| true |
eebac4ad36a031d5146f88de7654c927d30b4378 | Shell | sts-ryan-holton/nuxt-jwt-auth-template | /prepare-demo.sh | UTF-8 | 887 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
# abort on errors
set -e
# API
#
# Setup our API
# get to API directory!
cd api
# prepare .env
mv .env.example .env && git checkout .env.example
# install dependencies
composer install
# API
#
# Setup our API
# get to Client directory!
cd ../client
# prepare .env
mv .env.example .env && git ... | true |
e7224a18ed9453e3563ed420058512830cb75a1f | Shell | 10allday-kai/api-daemon | /tests/download_b2g.sh | UTF-8 | 635 | 3.53125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
if [ -z ${CI_PROJECT_DIR+x} ];
then
echo "Please set CI_PROJECT_DIR to the path of your SIDL repository.";
exit 1;
fi
if [ -z ${CI_ACCESS_TOKEN+x} ];
then
echo "Please set CI_ACCESS_TOKEN to a valid token value.";
exit 1;
fi
# Download and unpack the latest b2g desktop.
pushd ${CI... | true |
c38226f3b88033567fecd4ea5011519f6c41cc2a | Shell | tcler/linux-network-filesystems | /testcases/nfs/labelled-nfs/labelled-nfs-ns.sh | UTF-8 | 4,857 | 3.125 | 3 | [] | no_license | #!/bin/bash
. /usr/lib/bash/libtest || { echo "{ERROR} 'kiss-vm-ns' is required, please install it first" >&2; exit 2; }
faillog() { echo -e "\033[41m{TEST:FAIL} $*\033[0m"; }
sleeptime=${1:-1}
ServerIP=192.168.254.1
Client1IP=192.168.254.11
Client2IP=192.168.254.12
ExportDir=/nfsshare
MountPoint=/mnt/nfs
trun 'ns ... | true |
3c177c35029f1493568ab52bf0cf3c353253e722 | Shell | schecko/Akriveia | /server/env/setup | UTF-8 | 593 | 3.09375 | 3 | [] | no_license | #!/bin/bash
# This script is designed to be executed per user.
# install rust per user, kind of annoying but the only supported method of obtaining rust 1.31+ for actix support. rocket is even worse and requires the unstable rust branch...
curl https://sh.rustup.rs -sSf | sh -s -- -y
mkdir -p ~/.cargo
if [[ -f ./rust... | true |
ff877cb8887c4afee0562b6320cf1a7ef4eafad0 | Shell | JinmingZhuang/CHARM | /example/Single_GEMM/run_mm.sh | UTF-8 | 701 | 3.234375 | 3 | [
"MIT"
] | permissive | export LD_LIBRARY_PATH=/mnt:/tmp:$LD_LIBRARY_PATH
export PATH=$PATH:/sbin
export XILINX_XRT=/usr
#Running on-board experiment with different MM sizes
let k=0;
for i in 64 128 256 512 1024 1536 2048 3072 4096 6144
do
./hostexe mm_hw.xclbin ${i} ${i} ${i} 100 0 >> ${k}_result_${i};
let k=${k}+1;
sleep 5... | true |
568b0772bebd78f99af4c9afd6f34153624b8e13 | Shell | marslandALICE/TIdentity | /macros/mergeFilteredTreesAtGSI.sh | UTF-8 | 20,259 | 2.703125 | 3 | [] | no_license | #!/bin/bash
###############################################################################
############################## Modification region ############################
localRunning=0 # 1 for testing locally, 0 for running on batch farm
batchCommand="/usr/bin/sbatch --get-user-env --time=8:00:00 --mem-per-cpu=600... | true |
8d16660b713a897129d503c936d825a31a798ab4 | Shell | crackdile/dotfiles | /bash/aliases | UTF-8 | 7,541 | 3.3125 | 3 | [] | no_license | #!/usr/bin/env bash
# Setup -------------------------------------------------------------------- {{{
# Detect which `ls` flavor is in use
if ls --color > /dev/null 2>&1; then # GNU `ls`
_colorflag="--color"
else # OS X `ls`
_colorflag="-G"
fi
# Allow aliases to be with sudo
alias sudo="sudo "
### Get os name via... | true |
660da55a4a067c3210622dc5e125edf9d14aa253 | Shell | OEM-GPL-Releases/belkin_f5l049_v1000 | /F5L049v1000_1.00.04_GPL/F5L049v1000_1.00.04_OSS/preinstall/usr/sbin/ushare_console | UTF-8 | 775 | 3.453125 | 3 | [] | no_license | #!/bin/sh
PATH=/bin:/sbin:/usr/bin:/usr/sbin
# DLNA
DLNAD=/usr/bin/ushare
dlna_stop() {
killall -15 ushare
sleep 3
killall -9 ushare
}
dlna_restart() {
if [ -x ${DLNAD} ]; then
dlna_stop
count=`sxstorageinfo -m`
mname=`sxromconf -c GET_MACHINE`
dir=`sxsysconf DLNA_STORAGE`
port=`sxs... | true |
6ff7d47faba07fedf647abadf6cceb75d0640980 | Shell | kelsonengineering/micropython-samples | /fastbuild/buildesp | UTF-8 | 525 | 2.84375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
cd /mnt/qnap2/data/Projects/MicroPython/micropython/ports/esp8266
if [ $# -eq 1 ] && [ $1 = "--clean" ]
then
make clean
fi
if [ $# -eq 1 ] && [ $1 = "--erase" ]
then
make clean
esptool.py --port /dev/ttyUSB0 erase_flash
fi
if make -j 8
then
sleep 1
esptool.py --port /dev/ttyUSB0 --b... | true |
d4ab1d34cabab0616ba9919517243f2917216201 | Shell | Andrwe/ASC | /makerepochroot.sh | UTF-8 | 1,389 | 4.03125 | 4 | [] | no_license | #!/bin/bash
confdir="$(dirname $(readlink -f $0))/repo-conf/"
mirrorurl="http://www.archlinux.org/mirrorlist/?country=DE&protocol=http&ip_version=4&use_mirror_status=on"
if [ ${#@} -ne 2 ]
then
echo "Usage: $0 <arch[,arch]> <repo-dir>
Config directory: ${confdir}" >&2
fi
function mkchroot()
{
opt=""
grep -E "^\s*... | true |
35d4aa8430eaf473976eb9864d745409083d2c41 | Shell | JoelCardoso/rshCustomScripts | /catshell/alias_cat | UTF-8 | 3,065 | 3.546875 | 4 | [] | no_license | #! /bin/bash
#Setting up some useful aliases
## purr : list aliases
# Comment format: Start with double-hash, space, command name, space, explanation
# ## example : this is what it should look like
#
purr() { echo -e "\n \033[4;32mThis is a list of Aliases added by CatShell\033[0m"
grep '^##' $BASH_SOURCE | s... | true |
f4711031c7ea1046fa30d18df0e0403f0284f7aa | Shell | cloudnull/random_scripts | /turbolift/EXAMPLE_MYSQL_BACKUP_SCRIPT.sh | UTF-8 | 2,962 | 3.9375 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# =============================================================================
# Copyright [2014] [Kevin Carter]
# License Information :
# This software has no warranty, it is provided 'as is'. It is your
# responsibility to validate the behavior of the routines and its accuracy
# using the code pr... | true |
abbff41b9adb912ac0a4b91266dc8b853e25e65b | Shell | rancher/system-upgrade-controller | /scripts/e2e-sonobuoy | UTF-8 | 1,606 | 3.265625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/bash
set -e -o pipefail
source $(dirname $0)/version
DIST=$(realpath "$(dirname $0)/../dist/artifacts")
if [ ! -d "${DIST}" ]; then
echo "Missing artifacts directory '${DIST}', have you run 'make build' (and then 'make package') ?" >&2
exit 1
fi
export ARCH COMMIT DIST REPO TAG VERSION E2E_CLUSTER=${E2E_CL... | true |
a140a74a4a26b26c59f09385a204aa6c504a6ce7 | Shell | gnd/smogdance | /run-spider.sh | UTF-8 | 519 | 3.609375 | 4 | [] | no_license | #!/bin/bash
#########
source settings_bash
LOG="--nolog"
function usage() {
echo "Usage:"
echo "$0 <country_code/city_name/spider_name> [--tor] [--debug]"
echo "eg.: $0 cz/praha/0"
exit
}
# Check if spidername provided
if [[ -z "$1" ]]; then
usage
fi
# Check for other command-line options
for i in "$@"
do
c... | true |
8d1567cc013d01e4a64450796799fd9235735be2 | Shell | ryttuo/nclocalenv | /bootstrap.sh | UTF-8 | 1,285 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
#
#--------------------------------------------------------
#Inittial script for provision box.scotch.io vagrant setup
#
#author Andres Solano (andres.solano@gmail.com) @ryttuo
#
#--------------------------------------------------------
echo "making symlink for yii framework"
cd /var/www/tmi/NC4.0... | true |
c2e571b4b3ecb035d8f2c476f8967b90ac95e458 | Shell | vanroekel/dot-files | /setup_aliases.sh | UTF-8 | 3,683 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bash
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
alias ls='ls --color=auto'
alias dir='dir --color=auto'
alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'... | true |
1957eccada86f58b803120ad9231a02bf45b123d | Shell | ehomecore/menu | /premium-script.sh | UTF-8 | 6,791 | 3.25 | 3 | [] | no_license |
#!/bin/bash
# Created by Kang wahid
if [[ -e /etc/debian_version ]]; then
OS=debian
RCLOCAL='/etc/rc.local'
elif [[ -e /etc/centos-release || -e /etc/redhat-release ]]; then
OS=centos
RCLOCAL='/etc/rc.d/rc.local'
chmod +x /etc/rc.d/rc.local
else
echo "Sepertinya Anda tidak menjalankan installer ini pada sistem D... | true |
32b76bbb63cfc9897127ef904672aa8e27edffb3 | Shell | zeroem/clojure-sh | /conj | UTF-8 | 216 | 3.1875 | 3 | [] | no_license | #!/bin/sh
. "$(cd $(dirname "$0") && pwd)/.clojure.sh"
if [ ! -t 0 ]
then
declare -r IN=-
declare -a A="$@"
else
declare -r IN="$1"
declare -a A="${@:2}"
fi
to_cat $IN
for var in $A
do
echo "$var"
done
| true |
aa2e0b37cbb47af6fc16eed45fb2aeb27157096d | Shell | jshs/dmenu_desktop | /dmenu_desktop | UTF-8 | 2,746 | 4.25 | 4 | [
"MIT"
] | permissive | #!/bin/sh
if [ "$1" = -h ] ; then
echo "usage: $0 [-e|-u]"
exit 1
fi
# Locate the cache file.
cache_home=${XDG_CACHE_HOME:-"$HOME/.cache"}
if [ -d "$cache_home" ] ; then
cache=$cache_home/dmenu_desktop
else
cache=$HOME/.dmenu_desktop
fi
if [ "$1" = -e ] ; then
# Run the application named on stdin... | true |
8d64c0716c7c0a9eb005293a9f13ba7651960f31 | Shell | mohsalsaleem/custom-nginx-docker | /nginx-build/install.sh | UTF-8 | 2,747 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
install_packages() {
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends "$@"
}
download_and_extract() {
src=${1}
dest=${2}
tarball=$(basename ${src})
if [[ ! -f ${NGINX_BUILD_ASSETS_DIR}/${tarball} ]]; then
echo "Downloading ${1}..."
wget ${src} -O ${NGINX_... | true |
3b0babc56bc3f96464e34107f2768d527cf23843 | Shell | msifland/scripts | /detach-install | UTF-8 | 875 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# http://inglorion.net/software/detach/
# Put your code below this line.
echo 'spike' | sudo -S -v
echo
echo "Checking dependancies. . ."
sleep 1
if dpkg --get-selections | awk '{print $1}' | grep -x "make"; then
MAKEY="y"
else
if sudo apt -y install make; then
MAKEY="y"
fi
fi
if dpkg --get-selections ... | true |
993ad1b2b2ca2b30955b7a65e6ec07be68485d3d | Shell | ajdnik/playerbio-bluelabs | /minikube/provision.sh | UTF-8 | 2,930 | 3.71875 | 4 | [] | no_license | #! /usr/bin/env sh
# only exit with zero if all commands of the pipeline exit successfully
set -o pipefail
# error on unset variables
set -u
# script directory
CURR_DIR="$(dirname $0)";
# load helper functions
source "${CURR_DIR}/utils.sh"
# print help when --help flag is supplied
if [ ${#@} -ne 0 ] && [ "${@#"--he... | true |
4f7c01f42964179e2e4cb7d555058ed8b92f0001 | Shell | SergeyPodgornyy/find-keywords-in-files | /script.sh~ | UTF-8 | 1,281 | 3.328125 | 3 | [] | no_license | #!/bin/bash
i=0
while read line
do
array[ $i ]="$line"
(( i++ ))
done < <(ls)
KEYWORDS=( NoSQL C++ "base de donnees" Anglais Rigueur ITIL Django jQuery Python PHP HTML CodeIgniter ERP C# XML Ajax JavaScript UML SQL C Doxygen "Pack Office" VBA SharePoint MySQL MVC iOS Android WinRT )
# grep -H
# Print the file n... | true |
a8dfd4746c9f339c5fa63bfb031085a8b7b173d6 | Shell | alois-git/memoire | /scripts/start_congestion_algo_test.sh | UTF-8 | 810 | 3.109375 | 3 | [] | no_license | #!/bin/bash
#title :request_response_test.sh
#description :Run the request and response test for different delay/bandwidth/openvpn protocol
#author :Alois paulus
#date :10/07/2015
#usage :bash request_response_test.sh
#========================================================================... | true |
d20d6588cd0fb8f676591b2cfe30c0cda420ebf6 | Shell | SmartPhoneJava/2019_1_Escapade | /cmd/deploy/swarm/init.sh | UTF-8 | 1,088 | 3.515625 | 4 | [] | no_license | #!/bin/bash
echo ""
echo " -------------------"
echo " -------Start-------"
echo " -------------------"
echo ""
loadAddrs() {
local addrs=""
input=`cat $1 | grep "^[^#]"| grep "addr"`
set -- $input
while [ $1 ]
do
addrs=$addrs' '$3
shift 3
done
echo $addrs
}
loadName... | true |
425ae149bb14c5e92516eabce4c1ff295672db23 | Shell | JordanP/terraform-playground | /apply-all.sh | UTF-8 | 226 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
set -ueo pipefail
while IFS= read -r -d '' d
do
cd "$d" || exit
terraform apply -auto-approve && sleep 60
cd .. || exit
done < <(find . -maxdepth 1 -mindepth 1 -type d -iname "0*" -print0 | sort -z)
| true |
1d1e6553ec03eb8e258cecc8e6da3f9f3c2ce770 | Shell | Perpherior/dotfiles | /.bash_profile | UTF-8 | 1,743 | 3.015625 | 3 | [] | no_license |
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# Functions
function git_commit_fancy() {
git commit -m "$*"
}
# Showing current branch
function parse_git_dirty {... | true |
08991f9a9bc094271f5a2b69ae83410b91aa183e | Shell | paulojeronimo/gerador-jboss-bpmsuite-keycloak | /homologacao/jboss-bpmsuite/entrypoint.sh | UTF-8 | 313 | 2.890625 | 3 | [] | no_license | #!/bin/sh
# Configura a string de conexão com o Oracle
conf=$JBOSS_HOME/domain/configuration/domain.xml
if grep -q ORACLE_CONNECTION_URL $conf
then
sed -i "s/ORACLE_CONNECTION_URL/jdbc:oracle:thin:@$ORACLE_PORT_1521_TCP_ADDR:1521:xe/g" $conf
fi
# Executa em modo domain
exec $JBOSS_HOME/bin/domain.sh "$@"
| true |
08d711f66efc9f95232faad2c37eabf61f779b9f | Shell | bvis/docker-varnish | /rootfs/wait-for-varnish.sh | UTF-8 | 216 | 3.484375 | 3 | [] | no_license | #!/bin/bash
set -e
host="$1"
shift
cmd="$@"
until curl -sf -o /dev/null http://$host; do
>&2 echo "Varnish is unavailable - sleeping"
sleep 1
done
>&2 echo "Varnish is up - executing command: $cmd"
exec $cmd
| true |
97ab1f0071144234a94ca4fed33564d926fe7c4c | Shell | customme/etl | /etl-ad/shell/diff_data.sh | UTF-8 | 1,689 | 3.25 | 3 | [] | no_license | #!/bin/bash
#
# spark统计和shell统计两种数据对比
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=root
MYSQL_PASSWD=mysql
MYSQL_NAME=ad_dw
MYSQL_CHARSET=utf8
TABLES="agg_active_adv_n_l_1 active_date,create_date,date_diff,fact_count
agg_active_adv_n_l_2 active_date,create_date,date_diff,channel_code,fact_count
agg_active_adv_n_l... | true |
535bace789af32ddd10ad4f980a943ffd98c24a1 | Shell | wurp/Friendly-Backup | /scripts/gpg-clean.sh | UTF-8 | 353 | 3.671875 | 4 | [] | no_license | #!/bin/bash
set -e
if [ $# -ne 1 -o ! -d "$1/gnupg" ]
then
cat <<EOF 1>&2
Usage: $0 "<path containing gnupg dir>"
E.g.
$0 test/integ/happy1/client1/
will clean up the gpg files/directories in client1, if test/integ/happy1/client1/gnupg exists.
EOF
exit -1
fi
BASEDIR="$1"
rm -rf "$BASEDIR/gnupg"
rm "$BASEDIR/gpg.na... | true |
1cf070b2d9baf2069a8a6788476e9fe89f52e63f | Shell | rajeshv23/docker-jenkins-scripted | /vagrant/ansible_install_from_source.sh | UTF-8 | 804 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# get filename
readonly FILENAME=$(basename "$0")
# for info if cache dir mounted before script running
echo "${BASH_SOURCE[${#BASH_SOURCE[@]} - 1]}" >"/tmp/mount_$FILENAME.txt"
# blank line
echo "mounts before run this script" >>"/tmp/mount_$FILENAME.txt"
mount >>/tmp/mount_"$FILENAME".txt
# for test s... | true |
441a9299dfc39b64a246f9e1b9170d51b1b51d46 | Shell | Vascom/scripts | /films_download.sh | UTF-8 | 298 | 3.765625 | 4 | [] | no_license | #!/bin/bash
if [ -z "$1" ]
then
echo "Please enter file list for download."
exit 1
else
if [ -e "$1" ]
then
links=`cat "$1"`
for url in $links
do
wget "$url"
done
else
echo "File list $1 not exist."
exit 1
fi
fi
| true |
020b4a7e7102b2d9adb6ebe7b59d86123be2c07f | Shell | GoogleChromeLabs/chromeos_smart_card_connector | /third_party/webports/src/src/ports/nacl-spawn/build.sh | UTF-8 | 1,452 | 2.9375 | 3 | [
"GPL-2.0-or-later",
"LicenseRef-scancode-mit-old-style",
"MPL-1.1",
"ImageMagick",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GFDL-1.2-only",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"Libpng",
"LicenseRef-scan... | permissive | # Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
NACLPORTS_CPPFLAGS+=" -I${START_DIR}"
EXECUTABLES="test/unittests"
if [ "${NACL_LIBC}" = "glibc" ]; then
EXECUTABLES+=" test/elf_reader test/libr... | true |
e26511fe090e715599a2f00a172a02b734dc52eb | Shell | jayd2446/distributed-wiki-search | /index.sh | UTF-8 | 818 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "> Unpack/prepare"
mkdir -p work
#zcat articles.gz | head -20 > work/articles
cat articles > work/articles
cat work/articles | sed s/.html$//g | tr -s '_()-,' ' ' | tr '[:upper:]' '[:lower:]' > work/articles.clean
echo "> Anazyle titles"
env JAVA_OPTS="-Xms256m -Xmx8G" ./util/wordAnalyze.sca... | true |
fcfed096ef47a67cb23d885a2a0a72289ee46a51 | Shell | byewokko/accentless-parsing | /prepare-data.sh | UTF-8 | 5,033 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
srcpath=$1
path=$2
echo "[$(date +'%T')] Making ACC dataset... "
mkdir $path/UD_Czech-ACC
echo "[$(date +'%T')] copying conlls... "
cat $srcpath/UD_Czech-PDT/cs_pdt-ud-train-c.conllu \
$srcpath/UD_Czech-PDT/cs_pdt-ud-train-l.conllu \
$srcpath/UD_Czech-PDT/cs_pdt-ud-train-m.conllu \
$srcpath/... | true |
4ed125773f238bf2c40e3b7a7867240ef7df4fd2 | Shell | peacewolfus007/pdb4amber | /tests/files/amberlite/Run.pdb4amber | UTF-8 | 1,701 | 2.828125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
function runtest {
"$@" 2>> error_output.txt
local status=$?
if [ $status -ne 0 ]; then
echo $@
echo " ${0}: Program error"
exit 1
fi
return $status
}
if [ -f $AMBERHOME/AmberTools/test/dacdif ]; then
dacdif=$AMBERHOME/AmberTools/test/dacdif
else
... | true |
5afbdf7348897326425485a2323d9c00d848f1fc | Shell | ajayjadhav2208/shell-program | /sequence-program/selection-statement/compareNum.sh | UTF-8 | 159 | 3.078125 | 3 | [] | no_license | #!/bib/bash -x
num1=20
num2=10
if [ $num1 -gt $num2 ]
then
echo $num1 is greate than $num2
else
echo $num1 is less than $num2
fi
| true |
ddc3cb64ad0ed91a90e971c84678abb3d82954fe | Shell | idealenergy/pi | /startup.sh | UTF-8 | 634 | 2.96875 | 3 | [] | no_license | echo "" > /etc/modprobe.d/raspi-blacklist.conf
BASEDIR=$(dirname $0)
nohup bash $BASEDIR/util/deps.sh &> $BASEDIR/util/deps.log &
sleep 5
sudo modprobe i2c-dev
sudo modprobe i2c-bcm2708
sleep 5
sudo modprobe i2c-dev
sudo modprobe i2c-bcm2708
sleep 5
ls /dev/i2c*
cat /etc/modules
lsmod
sudo i2cdetect -y 1
cd /home/pi/pi... | true |
cef9cca347c6a6d5854843dc47e686fcff28e25f | Shell | apache/unomi | /generate-site.sh | UTF-8 | 2,900 | 3.703125 | 4 | [
"Apache-2.0",
"MIT",
"EPL-1.0"
] | permissive | #!/usr/bin/env 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 ownershi... | true |
18b7562260436620eb770ec2992b4eb2ae61badf | Shell | hkhcc/covid19seq | /04.Correct_and_assembly/01.Correct_and_assembly.sh | UTF-8 | 707 | 3.15625 | 3 | [] | no_license | #!/bin/bash
# Define the list of SRA data to process
nanopore_sra_list=(SRR11178050 SRR11178051 SRR11178052 SRR11178053 SRR11178054 SRR11178055 SRR11178056 SRR11178057)
for sra in ${nanopore_sra_list[@]}
do
echo "# Processing $sra..."
# 1. correction and assembly of the non-human reads
../bin/canu-2.0/Linux-amd64/... | true |
092c680993824b6101a42989bf223008f761cd5f | Shell | forumone/docker-wordpress-cli | /.buildkite/pipeline.sh | UTF-8 | 1,856 | 3.9375 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -euo pipefail
shopt -s extglob
# This is the PHP version matrix we support. The keys of this array are the full (patch-level)
# version of PHP currently supported, and the values are additional tags to use: these are
# used for practices seen on the Docker Hub: we will always tag an image as "X.Y.Z" a... | true |
448cb2c7606e4c48e8d6f9897a1043c001b8e974 | Shell | Smart-Campus-Polimi/cowible | /tools/tshark.sh | UTF-8 | 515 | 3.203125 | 3 | [] | no_license | #! /bin/bash
trap ctrl_c INT
function ctrl_c() {
echo "** Trapped CTRL-C"
}
################### END VAR DECL ##############
path=$1
time=$(date +"%H%M")
text_file="/WiFi-$time.txt"
path_full="$path$text_file"
timeout=$2
###### WIFI DUMP ######
tshark -S -l -i mon0 -Y 'wlan.fc.type_subtype eq 4' \
-T field... | true |
3a232f92c635cd16df5d02983b5df09eadbed122 | Shell | Angstrom-distribution/meta-ti | /recipes-ti/dmai/ti-dmai/arago-tdox | UTF-8 | 6,565 | 3.78125 | 4 | [
"MIT",
"LGPL-2.1-or-later"
] | permissive | #!/bin/bash
#
#
# This script sets a series of environment variable that are referenced
# in a doxygen configuration file. The values passed in here are simply
# plugged into the file locations and doxygen proceeds normaly.
#
# template location is ${VENDORS}/opensource/doxygen/templates/<version>
#
#
# Revision hist... | true |
a5d4167a38cbe883a4a7c61cb92c8722b5e4f0af | Shell | VictorDutca/ProgettoTecWeb | /TUNNEL_SSH_TECWEB1819_SERVER.sh | UTF-8 | 801 | 2.765625 | 3 | [] | no_license | #!/bin/bash
echo '************************************'
echo '** TUNNEL SSH SERVER TECWEB 18-19 **'
echo '************************************'
read -p 'Username lab: ' user
echo '************************************'
echo Insert password lab and get your tools:
echo phpMyAdmin: http://localhost:20080/phpmyadmin/
echo ... | true |
b5e94971331d136be9a0fa5b2e71f092883329e9 | Shell | xudong7930/centos6 | /shell/w3cshell/5_参数传递.sh | UTF-8 | 789 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Shell 传递参数实例!";
echo "执行的文件名:$0";
echo "第一个参数为:$1";
echo "第二个参数为:$2";
echo "第三个参数为:$3";
echo "参数个数:$#";
echo "脚本参数:$*" #以字符串显示所有向脚本传递的参数
echo "进程ID:$$" #当前进程ID号
echo "最后一个后台进程ID:$!" #后台运行的最后一个进程的ID号
echo "选项:$-" #显示Shell使用的当前选项
echo "最后一个命令退出状态:$?" #最后命令的退出状态。0表示没有错误,其他任何值表明有错误。
:<<EOF
➜ w3cshell ... | true |
1bf6705753ba6bc4cbf79fb2cc39a6349534b7d0 | Shell | uk-gov-mirror/hmrc.interest-restriction-return-frontend | /migrations/applied_migrations/ParentCRN.sh | UTF-8 | 3,975 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo ""
echo "Applying migration ParentCRN"
echo "Adding routes to conf/app.routes"
echo "" >> ../conf/app.routes
echo "GET /parentCRN controllers.ultimateParentCompany.ParentCRNController.onPageLoad(mode: Mode = NormalMode)" >> ../conf/app.routes
echo "POST /parentCRN... | true |
c3414efe2908fd38efd31ee83d768176b2c4f993 | Shell | datajaguar/jaguarqa | /work-performance/hadoop_MR/2-run_wc_plain.sh | UTF-8 | 1,662 | 3.53125 | 4 | [] | no_license | #!/bin/bash -e
# Scrip Name: b-run_wc_plain.sh
# Command Line: nohup b-run_wc_plain.sh 2>&1 | tee -a b-run_wc_plain.sh.out &
###
##- This file runs the plain Hadoop job for wordcount.
## It does not include any special configuration but allows the use of combiner.
###
export CLASSPATH=/usr/lib/hadoop/client-0.20/\*... | true |
8dc8c5fa66d914365fd0609e6bed770ea4afa320 | Shell | hackers-terabit/ansible-qemuprov | /roles/cerulean/templates/lynis.sh | UTF-8 | 980 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
LYNIS_DOWNLOAD="https://cisofy.com/files/lynis-2.3.4.tar.gz"
LYNIS_DOWNLOAD_SIG="https://cisofy.com/files/lynis-2.3.4.tar.gz.asc"
LYNIS_PGP="https://pgp.mit.edu/pks/lookup?op=get&search=0x429A566FD5B79251"
function die {
if [ "$1" -ge 1 ]
then
echo "$2"
exit "$1"
fi
}
function download_and_verify {
gpg... | true |
87a6a07af9a7ec4a41b5982c8feaefefa946d335 | Shell | sarum9in/diploma_thesis | /rs/sourcecode.sh | UTF-8 | 1,569 | 3.453125 | 3 | [] | no_license | #!/bin/sh -e
str()
{
awk '{
gsub("^\\.\\./", "");
x = $0; gsub("^\\.\\./", "", x);
gsub("bunsan/bacs", "bacs", x);
gsub("bacs/repository/bacs/system/", "", x);
gsub("bacs/problem_plugins", "bacs/problem", x);
gsub(".*/include/", "", x);
... | true |
f8d29a86dd2fc4d172382331241e355b4786c333 | Shell | dlepera/framework-3.0 | /gerar-pacote.sh | UTF-8 | 1,070 | 3.609375 | 4 | [] | no_license | !#/bin/bash
#
# Gerar pacote de nova instalação
# ----------------------------------------------------------------------------------------------------
# No pacote de instalção são inclusos apenas os arquivos necessários para um projeto.
# Alguns diretórios são ignorados, como .git e o bkp.
#
#
# Mapeamento de argum... | true |
22d17039d5bb8858f3e79d571b45bd465e887567 | Shell | buckley-w-david/dotfiles | /config/bashrc.d/102.functions.sh | UTF-8 | 1,555 | 3.9375 | 4 | [] | no_license | mkenv-base ()
{
touch README.md
cp ~/dotfiles/res/LICENSE .
}
mkenv-python ()
{
VENV_DIR=.venv
PACKAGE=${1:-example_package}
# Directory setup
mkdir $PACKAGE "test"
touch "test/__init__.py"
touch "$PACKAGE/__init__.py"
cp ~/dotfiles/res/setup.py .
python -m venv $VENV_DIR
... | true |
43ea2f71e9732fcc07fc84d0a86a9c9a417bc3d8 | Shell | ulisseslima/bash-utils | /play-ogg-opus.sh | UTF-8 | 212 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# https://stackoverflow.com/questions/22322372/sox-doesnt-work-with-opus-audio-files
tmp_mp3="/tmp/$(basename $1).mp3"
opusdec --force-wav "$1" - | sox - "$tmp_mp3"
play "$tmp_mp3" && rm "$tmp_mp3"
| true |
b7189b44e4e5ad3c30d3885023885ef2b93b90a8 | Shell | lupinix/astrometry-tycho2 | /scripts/download-tycho2-from-vizier.sh | UTF-8 | 968 | 2.625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
#
# Copyright 2016 Christian Dersch <lupinix@mailbox.org>
# All rights reserved.
#
# License: BSD (2 clause, see LICENSE.txt)
#
FTPURL="ftp://cdsarc.u-strasbg.fr/pub/cats/I/259"
# Get index files and docs
wget ${FTPURL}/guide.pdf
wget ${FTPURL}/ReadMe
wget ${FTPURL}/index.dat.gz
wget ${FTPURL}/suppl_1.dat... | true |
22de0021edd8932e7ac9d6dcf0d836cff9dbfbfd | Shell | sjmurdoch/scripts | /golang | UTF-8 | 10,410 | 3.34375 | 3 | [] | no_license | #!/bin/bash
##############################################################################
#
# golang
# -------------------
# Install or update Go language.
#
# Download Go source tarball and SHA1 hash from https://code.google.com. If
# hashcheck is okay, install and setup Go in $PREFIX/go (/usr/local/go if
# $PREFIX u... | true |
714534569012e67d91ad0365ff38758d8d6025ed | Shell | shubhamdumree/Creating-a-Calendar-using-Bash | /part2final 2020-02-01 13_38_54.sh | UTF-8 | 1,560 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# It defines the dialogue box exit status codes
DIALOG_CANCEL=1
DIALOG_ESC=255
HEIGHT=0
WIDTH=0
# function to display information according to selection
show_info() {
dialog --title "$1" \
--no-collapse \
--msgbox "$info" 0 0
}
# Display the menu item with a while loop
while true; do
exec 3>&... | true |
3be8720093a471a4a48e208ef4b2e3f10fc8115c | Shell | IxDay/shell-snippets | /03-template.sh | UTF-8 | 1,305 | 4.4375 | 4 | [] | no_license | #!/bin/sh
# Create a bash template, which can be injected in a file or in a variable
# BEWARE: the indentation here is really important, difference between tabs
# and spaces is really important in schell scripts
FOO="foo"
BAR="bar"
tmpfile=$(mktemp)
cat > "$tmpfile" << EOF
testing templating $FOO, ${BAR}s
EOF
# C... | true |
ed8c57e057bdee1d4569ef86bcf813c0b7dba397 | Shell | rwalker-apple/connectedhomeip | /src/test_driver/linux-cirque/shell-helpers.sh | UTF-8 | 487 | 3.734375 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# This function is a workaround for the fact that ninja sends all
# output, including compiler errors, to stdout, not stderr. We want
# to suppress the various output from ninja itself, but not compiler
# errors. Do that by prefixing the ninja output with a string that is
# unlikely to appear in ... | true |
44024a7c324a53af776e88c1bbfabedf344c222c | Shell | kgeier/OlsenLab_Bash_tcsh-Code | /unzipping.sh | UTF-8 | 107 | 2.671875 | 3 | [] | no_license |
#!/bin/bash
for i in {1026..1028}; do
cd ${i}
mkdir raw
mv *.zip raw
unzip raw/*MRI*.zip
cd ..
done
| true |
6a83f6453a0e449899ad1629f221f088acd9ba65 | Shell | floquation/optoFluids | /Codes/PostProcessing/undo2Dsort.sh | UTF-8 | 968 | 4.0625 | 4 | [] | no_license | #! /usr/bin/env bash
#
# Undo the sorting of the optics directory into "1D", "2D" and "log" by
# removing "2D",
# putting the contents of "1D" back into the main directory,
# leave "log" as-is.
#
# Kevin van As
# 12 10 2019: Original
#
# TODO: If 1D does not exist, but 2D does exist, then execute convertDataTo1D.py ... | true |
93b83df5db09ca4388e20127c4014e8900a2d53e | Shell | Viviose/Risk | /build.sh | UTF-8 | 617 | 3.234375 | 3 | [] | no_license | #!/usr/bin/env bash
base=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd $base
if [ -d "$base/dist/linux" ]; then
rm -rf "$base/dist/linux"
fi
if [ -e "$base/release/Argo.tar.gz" ]; then
rm -rf "$base/release/Risk.tar.gz"
fi
echo "Installing rsound (If not already installed)"
raco pkg install rsound
echo "Compil... | true |
df0cecd111b3b3eae093099d285a202f4cdad8dc | Shell | noob9527/dotfiles | /config/proxy/shadowsocks/setup.sh | UTF-8 | 3,244 | 3.75 | 4 | [] | no_license | #!/usr/bin/env bash
install_ss_qt5_legacy() {
local target='shadowsocks-qt5'
if has_installed ${target}; then
colorful::default "$target has already been installed"
return 0
fi
colorful::primary "I am trying to install $target..."
if ! has_cmd apt-get; then
err "I have no... | true |
fb15e722d683a3bad84f2463cb4b405297d35821 | Shell | mickeyshaughnessy/MDDFT | /Database/Force-distance_correlation/run.sh | UTF-8 | 1,553 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#tail -n216 ../../DFT/AIMD/Silicon/300K/Si-4_216x200.db > 300K-Si-4.db
#tail -n216 ../../DFT/AIMD/Silicon/2500K/Si-4_216x200.db > 2500K-Si-4.db
#tail -n216 ../../DFT/AIMD/Silicon/300K/Si-16_216x200.db > 300K-Si-16.db
#tail -n216 ../../DFT/AIMD/Silicon/2500K/Si-16_216x200.db > 2500K-Si-16.db
#ln -sf ... | true |
6d21021f348aad9b12954a150e1a067f6485bc60 | Shell | RanolP/UnderelectrifiedSky | /sync | UTF-8 | 1,614 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
clear
working_directory=`pwd`
function exec_windows {
echo $* | cmd.exe>/dev/null
}
pathw=`wslpath -m "$*" | sed 's/\\//\\\\/g'`
echo -e "\033[42m\033[30m >>> \033[0m Target directory is \033[32m$pathw\033[0m."
echo
symlink=config/ftbquests
skip=mods/
for files_to_link in `find ./src -mindepth 2 -... | true |
e0d89fbf9494a201948d071586dfea48fd0c838a | Shell | a5anka/pamla | /sequential/run.sh | UTF-8 | 3,906 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
###################################################################
#
# To measure time of multiple commands using /usr/bin/time, try:
# /usr/bin/time sh -c 'cmd1 > /dev/null ; cmd2 > /dev/null'
# can replace ' and && can replace ;
#
###############################################################... | true |
1c94b324436ad88f040085bb3216912b679b0192 | Shell | habitat-sh/builder | /support/builder/init-datastore.sh | UTF-8 | 762 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
hab start habitat/builder-datastore &
running=0;
mkdir -p /hab/svc/builder-datastore/config/conf.d
chown hab:hab -R /hab/svc/builder-datastore/config/
echo "Waiting for builder-datastore to start"
pwfile=/hab/svc/builder-datastore/config/pwfile
while [ $running -eq 0 ]; do
if [ -f $p... | true |
10a1c97a69b091538759adf08aaf1277834efb8a | Shell | ci2c/code | /scripts/matthieu/FMRI_FirstLevel_SPM12.sh | UTF-8 | 3,344 | 3.359375 | 3 | [] | no_license | #! /bin/bash
if [ $# -lt 10 ]
then
echo ""
echo "Usage: FMRI_FirstLevel_SPM12.sh -sp <sot_path> -sub <subject> -id <inputdir> -TR <value> -rmframe <value>"
echo ""
echo " -sp : Path to the data file sots_${subjects}.mat "
echo " -sub : Name of the subject "
echo " -id ... | true |
b12e40b0feeb8ef73c321aec1b8387f5e62c1435 | Shell | rkruze/store-demo | /docker/start.sh | UTF-8 | 1,515 | 3.109375 | 3 | [] | no_license | #!/bin/bash
CRDB_ORG=$1
CRDB_LICENSE_KEY=$2
if [[ -z "$CRDB_ORG" ]]; then
echo "Must provide CRDB_ORG as the first parameter. Example './start.sh MY_ORG MY_KEY'." 1>&2
exit 1
fi
if [[ -z "$CRDB_LICENSE_KEY" ]]; then
echo "Must provide CRDB_LICENSE_KEY as the second parameter. Example './start.sh MY_ORG M... | true |
a396ac4c4cf9f2e09359f05d3fdacca492da8d0d | Shell | ZacharyBacon/KVM-virtualization | /shell-script/fastvm.sh | UTF-8 | 936 | 3.703125 | 4 | [] | no_license | #!/bin/bash
XMLFile=/etc/libvirt/qemu
IMGFile=/var/lib/libvirt/images
#######################################################
read -p "Input host name sequence:" Number
if [ -z $Number ];then
echo "Please input parameters..."
exit 2
elif [[ ! $Number =~ ^[0-9]+$ ]];then
echo "It can only be numeric."
exit 3
eli... | true |
9ca1bb1a97435037f58267975e7025274c144310 | Shell | elasti-jeans/qa-scripts | /ad-hoc-tools/pssh-efaas/scan-all-vheads.sh | UTF-8 | 664 | 3.421875 | 3 | [] | no_license | #!/bin/bash
OUTPUT_DIR_ROOT=/tmp/output
CLUSTERS_DIR=./clusters
SSH_CONF=/tmp/ssh-conf
mkdir -p $OUTPUT_DIR_ROOT
if [ ! -f "$SSH_CONF" ]; then
echo "SSH config file ($SSH_CONF) is missing - creating..."
cat > $SSH_CONF <<EOF
Host *
IdentityFile ~/.ssh/elastifile.pem
EOF
fi
for f in $(ls -1 $CLUSTERS_DIR/*... | true |
408b849c2da3516225a23029cece72d13c145af9 | Shell | wbaopaul/scATAC-pro | /scripts/qc_per_barcode.sh | UTF-8 | 683 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
inputs=$1
inputs=(${inputs//,/ })
input_frags=${inputs[0]} ## fragment.txt file
peaks=${inputs[1]} ## peak file
# reading configure file
curr_dir=`dirname $0`
source ${curr_dir}/read_conf.sh
read_conf "$2"
read_conf "$3"
qc_dir="${OUTPUT_DIR}/summary"
mkdir -p $qc_dir
## use perl script to ge... | true |
df1fa35bfd99589d726207bdfc4097a435b6146d | Shell | neerajsarna/DG_moments_deal | /Tests/build/Test_Production_MM/Test_SystemG56.sh | UTF-8 | 279 | 2.546875 | 3 | [] | no_license | #!/bin/bash
clear
echo "Testing G56"
BaseDir=$1
#first we do single core checking
echo "Test Single Core Kn0p1 Odd Boundary Conditions"
export GTEST_OUTPUT="$BaseDir/G56_Production_MM_SingleCore.xml"
./test.out 1 -p ../test_production_MM/G56/input_G56_Kn0p1.in
| true |
976b87ee5814db92abbc492777fed7aa1b003e52 | Shell | PerceptumNL/KhanLatest | /kenv/libexec/kenv-runlocal | UTF-8 | 340 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Usage: kenv runlocal
# Summary: Starts a local server accessible via http://localhost:8080
APPDEV=$_GAE_ROOT/dev_appserver.py
DB=testutil/test_db.sqlite
DBCOPY=$DB-copy
if [ ! -e "$DBCOPY" ];then
cp $DB $DBCOPY
fi
python $APPDEV --high_replication --use_sqlite --allow_skipped_files --datasto... | true |
32f92ab0cc76a701f61d44756e453901865291cf | Shell | hCaptcha/hmt-basemodels | /bin/lint | UTF-8 | 229 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -exu
FILES="*.py basemodels/*.py"
if [ -z ${CI+x} ]; then
yapf -i --style yapf.cfg $FILES
mypy $FILES --ignore-missing-imports
else
yapf --diff --style yapf.cfg $FILES
mypy $FILES --ignore-missing-imports
fi
| true |
caa4ede89923769951658a6bfed8c52537c49996 | Shell | manjeet5079/haystack | /deployment/terraform/packer/build-images.sh | UTF-8 | 787 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
case "$(uname -s)" in
Darwin)
THIRD_PARTY_SOFTWARE_PATH=$DIR/third_party_softwares/mac/x64
;;
Linux)
THIRD_PARTY_SOFTWARE_PATH=$DIR/third_party_softwares/linux/x64
;;
esac
# variable for accessing third party softwares
PACKER=$TH... | true |
f1922ca52515670ff7add04af0e8e588a83eedf8 | Shell | JakeTheGingScheuer/Bash | /buildCpp.sh | UTF-8 | 163 | 3.359375 | 3 | [] | no_license | #!/bin/bash -u
function build()
{
read -p 'Exercise Name: ' exercise
touch $exercise.{h,cpp}
mkdir build
cd build
cmake -G "Unix Makefiles" ..
}
build
| true |
501941818afede2b70c288fc4b5daa99f77e6072 | Shell | nicholas-lorenzi/projects | /mooqita.bash | UTF-8 | 4,655 | 3.71875 | 4 | [] | no_license | #!/bin/bash
# NOTE: Be careful with this exercise! If you do this wrong you might fill up your disk. Read the
# instructions to the end before you do anything.
#
#
# Before starting this exercise let's define the terms: * Whenever there is room for interpretation,
# make a decision and write a comment about what you ... | true |
e27aed3982ee457106aa3f929018963a7fba0528 | Shell | sawyermade/detectron2_pkgs | /dataset_download/coco-2017_download.sh | UTF-8 | 1,188 | 3.34375 | 3 | [] | no_license | #!/bin/bash
# Download directory
outdir="$1"
if [ ! -d $outdir ]
then
makedir -p $outdir
fi
# Download Images
wget http://images.cocodataset.org/zips/train2017.zip -P $outdir -N
wget http://images.cocodataset.org/zips/val2017.zip -P $outdir -N
wget http://images.cocodataset.org/zips/test2017.zip -P $outdir -N
wget ... | true |
dd15c9bb24ffc4da047d4060e58662d8c5d796a1 | Shell | prabhu43/dotfiles | /bashrc | UTF-8 | 521 | 2.609375 | 3 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | alias aws='aws --endpoint-url http://localhost:4566'
# >>> talisman >>>
# Below environment variables should not be modified unless you know what you are doing
export TALISMAN_HOME=/Users/prabhujayakumar/.talisman/bin
alias talisman=$TALISMAN_HOME/talisman_darwin_amd64
export TALISMAN_INTERACTIVE=true
# <<< talisman ... | true |
8867eb57a901a96de5787cab1f62230be448b935 | Shell | PeerJ/check-mk-agent-plugins | /uptime | UTF-8 | 1,246 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
DEFAULT_WARNING=`expr 60 \* 24` # 24 hours
DEFAULT_CRITICAL=`expr 30` # 30 min
while getopts "h" opt; do
case $opt in
h)
echo "Usage: $0 will alert if uptime is below warning $DEFAULT_WARNING or critical $DEFAULT_CRITICAL minutes"
echo "Optionally, you can symlink to $0_WARNING_CRITICAL w... | true |
22f4c8d0153d454afccf1f041bb2fa65e99fa1a3 | Shell | gonditeniz/cracking-coding-interview | /cpp/run_tests.sh | UTF-8 | 359 | 3.859375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
function run_chapter
{
cd $1
./build_run.sh
cd - > /dev/null
}
if [ -d "$1" ]
then
echo "Running test in $1"
run_chapter $1
else
echo "Running all tests"
for chapter_folder in $(find . -maxdepth 1 -name "chapter*")
do
echo "Running test in $chapter_folder"
r... | true |
04808e86de4a2cab72cf0d1f666f3af92d4d233d | Shell | C-Radius/.dotfiles | /InstallScript.sh | UTF-8 | 4,514 | 4.03125 | 4 | [] | no_license | #!/bin/bash
CUR_DIR=$(pwd)
function show_help() {
echo 'Usage: '
echo ' --yay - Install yay helper'
echo ' --links - Create symbolic links for configuration files in this repo to home directory'
echo ' --packages - Install packages in MyPackageList file to system.'
echo ' --foreign - I... | true |
0376afe296770f000e987142834ff3ec119a9ba6 | Shell | uranix/findent | /combine.py | UTF-8 | 874 | 2.8125 | 3 | [] | no_license | #!/bin/bash python
import sys
def graph(v):
return v in '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
def iscont(line):
return line[:5] == ' '*5 and graph(line[5])
def main():
prev = ''
for line in sys.stdin:
while line and line[-1] in '\... | true |
607185db9bfa1b579e79b39f7ea33812a7ddaf90 | Shell | khos2ow/cloudstack-rpm-builder | /centos7/environment-info.sh | UTF-8 | 1,506 | 3.109375 | 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"); y... | true |
bc20a02175ddf540ef3b23f7e9e408268ad0f297 | Shell | tougher/azure-pipelines-tasks | /Tasks/AzureRmWebAppDeploymentV3/postDeploymentScript/deleteLogFile.sh | UTF-8 | 502 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
rm "mainCmdFile_$1.sh"
rm "kuduPostDeploymentScript_$1.sh"
# Do not delete file if the execution is not completed within time range
# This can help in retrieving the logs and script result
if [ -f "script_result_$1.txt" ]
then
echo "Removing log files."
rm "stdout_$1.txt"
rm "stderr_$1.txt"
... | true |
8e9d27b25033aac5c933379fadbc598558a79eb9 | Shell | ethulhu/dotfiles | /.local/bin/git-remove-branch | UTF-8 | 1,013 | 3.90625 | 4 | [] | no_license | #!/bin/sh
set -eu
if [ "$#" -ne 1 ]; then
echo "Usage: "$(basename "${0}")" <branch>"
echo
echo 'Synopsis: Remove a branch, the origin version of that branch, and the'
echo ' corresponding worktree.'
exit 1
fi
readonly git_dir="$(git rev-parse --show-toplevel)"
if [ ! "${git_dir}" ]; then
exit 1
f... | true |
9ee59f4a3fbd725ed426d64807c20043dbc2df1b | Shell | viljaste/push2gitlab | /push2gitlab.sh | UTF-8 | 2,287 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
WORKING_DIR="$(pwd)"
hash git 2> /dev/null
if [ "${?}" -ne 0 ]; then
echo "push2gitlab: git command not found."
exit 1
fi
hash jq 2> /dev/null
if [ "${?}" -ne 0 ]; then
echo "push2gitlab: jq command not found."
exit 1
fi
help() {
cat << EOF
push2gitlab: Usage: push2gitlab [SOURCE] ... | true |
5d7e5d8dcfa94d1cb0a29428b1341794645c8be3 | Shell | dallaybatta/gaas-docker | /worker/utils.sh | UTF-8 | 1,892 | 4 | 4 | [] | no_license | # PATH TO YOUR HOSTS FILE
ETC_HOSTS=/etc/hosts
hello() {
echo "Hello"
}
dockerimageinfo() {
DOCKER_IMAGE=$1
docker inspect $DOCKER_IMAGE > config.json
docker_hostname=`python -c 'import json; c=json.load(open("config.json")); print(c[0]["Config"]["Hostname"])'`
docker_ip=`python -c 'import json;... | true |
e156c343ee6088bc282f9c31c1b736a167bdfc9c | Shell | RamiroSanchez-dev/Organizacion-de-Computadoras | /TP1/Tests/test02 | UTF-8 | 340 | 2.921875 | 3 | [] | no_license | #!/bin/bash
tst="test02"
val="256"
val2="192"
spc="768"
res=$(./tp1 -m -o - $val $val2)
res2=$(./tp1 -m -o - $val2 $val)
[ $spc = $res ]&& [ $spc = $res2 ]&& echo "\e[32;1m ✓ $tst\e[0m: El MCM de $val y $val2 fue $res"
[ $spc != $res ]|| [ $spc != $res2 ]&& echo "\e[31;1m ✗ $tst\e[0m: El MCM de $val y $val2 fue $res ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.