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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d3a06e5e522ad777d672d8505986a07017d8e79e | Shell | franklong741269853/mdvrp-coevolutionary-approach | /scripts/coisa.sh | UTF-8 | 1,357 | 2.640625 | 3 | [] | no_license | #! /bin/bash
####instances0="cluster.in p01.in p02.in p03.in"
####instances1="p04.in p05.in p06.in p07.in"
####instances2="p08.in p09.in p10.in p11.in p12.in"
####instances3="p13.in p14.in p15.in p16.in"
####instances4="p17.in p18.in p19.in"
####instances5="p20.in p21.in p22.in p23.in"
####instances6="pr01.in pr02.in ... | true |
cf14175132ef69dcbf12084b0c976f83e04322f6 | Shell | omniti-labs/omniti-ms | /build/python26/build.sh | UTF-8 | 2,248 | 2.828125 | 3 | [] | no_license | #!/usr/bin/bash
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICEN... | true |
f28605e39af70c11f0a6a49534033955e992e34e | Shell | vparihar01/m-script | /getdash.ssh | UTF-8 | 6,503 | 3.140625 | 3 | [] | no_license | #!/usr/bin/env bash
# Copyright (C) 2008-2011 Igor Simonov (me@igorsimonov.com)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later... | true |
211e535640c05463385791941f0adda846b2101a | Shell | glasseyes/pkgbuilding | /buildfor-nosourceupload | UTF-8 | 668 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Building for $1"
DG_PWD=`pwd`
DG_BASE=`basename $PWD`
echo "in directory $DG_BASE"
DG_POSTEXPORT="dch -l$1 -D $1 'rebuild for $1' --force-distribution"
#echo "postexport: $DG_POSTEXPORT"
if [[ "$DG_BASE" =~ ^fonts- ]]; then
echo "Is a font package"
if [[ "$1" == "precise" ]]; then
echo "mo... | true |
ea2459239505448383390bc66a5b1f63f8b15cdb | Shell | chrisdobler/os-imaging-designer | /spigotMC/files/restoreWorld.sh | UTF-8 | 866 | 3.515625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
killall -9 java
# PARAMS=""
# while (( "$#" )); do
# case "$1" in
# -a|--my-boolean-flag)
# MY_FLAG=0
# shift
# ;;
# -b|--my-flag-with-argument)
# if [ -n "$2" ] && [ ${2:0:1} != "-" ]; then
# MY_FLAG_ARG=$2
# shift 2
# else
# echo "Error: Ar... | true |
e402735ddf6189c93af4cd9c9bf219286be2aba8 | Shell | jockyw2001/sdk | /verify/feature/venc/case14.sh | UTF-8 | 3,534 | 3.140625 | 3 | [] | no_license | #!/bin/sh
. _test.sh
ret_test=$?
if [ "${ret_test}" == "0" ]; then
log "\n\n${script}: Dynamic Channel Attribute: Super Frame & RC Priority\n"
expected_ret=0
#needed predefined variable in this script: $of, $codec, $unset_script, $expected_ret, $exe
#input $1: prefix of output file, output:$md5
run_case() {
rm ${... | true |
44abfc3653c2c836d2993c78c4ddc3775d681ce4 | Shell | faust64/keengreeper | /utils/snykDbAddCache | UTF-8 | 1,895 | 3.78125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
if test -z "$DBDIR"; then
echo "CRITICAL: DBDIR not set, can not proceed" >&2
exit 1
elif ! test -d $DBDIR; then
echo "CRITICAL: database directory does not exist" >&2
exit 1
elif ! test -e "$DBDIR/snyk-cache"; then
echo "WARNING: snyk-cache is absent" >&2
fi
if test -z "$TMPDIR"; then
... | true |
3bbef1d657ee5c1b4519eaac8fdf09112e93e490 | Shell | enforcer-pro/proxy-socks | /extra/random_tcp_port | UTF-8 | 1,352 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
PIDFILE="/home/tunnel/$(basename "${0}").pid"
function with_backoff {
local max_attempts=${ATTEMPTS-5}
local timeout=${TIMEOUT-1}
local attempt=0
local exitCode=0
while [[ $attempt < $max_attempts ]]
do
"$@"
exitCode=$?
if [[ $exitCode == 0 ]]
then
break
fi
... | true |
38382fb77bf6cf90b6fa9b64b1d903f0011259c0 | Shell | Bobo1239/LilyDevOS | /fedora/mkosi.extra/etc/skel/setup.sh | UTF-8 | 1,672 | 4.09375 | 4 | [] | no_license | #!/bin/bash
printf "This wizard will help you to setup your Git configuration.\n\n"
if [ -f ~/.gitconfig ]; then
printf "A file configuration already exists. If you proceed, it will be overwritten.\nPress Ctrl+C to cancel/Press enter to proceed: "
read _
fi
echo -n "Please enter your name and surname: "
read NAME... | true |
86b0b620be70413944515747c296407e03a41905 | Shell | evandromr/bash_xmmscripts | /mos2/events/mos2eventscript.sh | UTF-8 | 925 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cp `ls -1 $xmm_rpcdata/*MOS2*ImagingEvts.ds` ./mos2evts_barycen.ds
cp $PWD/../src_evt.reg ./
# Make barycentric correction on the clean event file
barycen table=mos2evts_barycen.ds:EVENTS
# Get the coordinates from the .reg file
while read LINE
do
srcregion=$LINE
done < src_evt.reg
export srcregion
... | true |
7da1a5f22acebb7b1b623bda175376ad5e22b5d5 | Shell | randomeizer/cloudflare-dynamic-dns | /cloudflare-ddns.sh | UTF-8 | 1,421 | 3.578125 | 4 | [] | no_license | #/usr/bin/env sh
# Main script to edit the record, should be used with cron
# Variables:
# CLOUDFLARE_API_TOKEN - Cloudflare API token from Cloudflare dashboard (Authentication tab)
# CLOUDFLARE_ZONE_ID - Zone ID from cloudflare-get-zones.sh script
# CLOUDFLARE_RECORD_NAME - Subdomain without the root dom... | true |
a6577572239a3190f1f779d3c9d24b02d52d609b | Shell | flexibleir/compliance | /scripts/cis/mini/ensure_xinetd_is_not_enabled.sh | UTF-8 | 328 | 3.375 | 3 | [] | no_license | # !/bin/bash
# echo -e "\e[92m== 2.1.10 Ensure xinetd is not enabled ==\n"
ensure_xinetd_is_not_enabled () {
if [[ "$(systemctl is-enabled xinetd 2>/dev/null)" = "disabled" || "$(systemctl is-enabled xinetd 2>/dev/null)" = "" ]]
then echo -e "Passed"
else
echo -e "Failed"
fi
}
ensure_xinetd_is_not... | true |
34b52503c52a0bba803cb0b03bf4509ce34499c6 | Shell | durgasudharshanam/puppet-puppet | /templates/server/node.sh.erb | UTF-8 | 305 | 2.890625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
BACKUPDIR=/var/lib/puppet/yaml/encbackup
[ -d $BACKUPDIR ] || /bin/mkdir -p $BACKUPDIR
<%= scope.lookupvar('puppet::external_nodes_script') %> ${1} > $BACKUPDIR/${1}.yaml.temp
if [ "$?" -eq 0 ]; then
/bin/mv $BACKUPDIR/${1}.yaml.temp $BACKUPDIR/${1}.yaml
fi
/bin/cat $BACKUPDIR/${1}.yaml
| true |
06f9f4fc6f3c44a6cfed335ab5c77b8ce8a5de6f | Shell | ferrarimarco/dotfiles | /.shells/.all/logout.sh | UTF-8 | 294 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
# Leaving the console clear the screen to increase privacy
# Ignoring this so this script can be shell-agnostic
# shellcheck disable=SC3028
if [ "${SHLVL}" = 1 ]; then
[ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q
[ -x /usr/bin/clear ] && /usr/bin/clear
fi
| true |
50bf7e906619ff4e5ad96ef031dc2b1c2acff836 | Shell | jrmysvr/pi_zero_rover | /rover/scp_to_pizero | UTF-8 | 166 | 2.515625 | 3 | [] | no_license | #!/usr/bin/env bash
BUILD="debug"
if [[ "$1" == *"release"* ]] ; then
BUILD="release"
fi
scp target/arm-unknown-linux-gnueabihf/$BUILD/rover pi@pizero:/home/pi
| true |
3eba5ae9fdd1d5bb20f1fc04238f71836d996ce4 | Shell | ichaf1997/Autoshell | /Os_Init/init.sh | UTF-8 | 6,559 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# Apply to Centos - 7
# Control this script by Input parameters
# Usage : $0
# Input [ boolean ]
# value 1 means open , value 0 means close
SELINUX_ENABLE=0
FIREWALLD_ENABLE=0
POSTFIX_ENABLE=0
NetworkManager_ENABLE=0
TIMESYNC_ENABLE=0
# Input [ string ]
HOST_NAME="" # custom hostname , add... | true |
7e2e7ba456527806d495798c2c02c319474347ff | Shell | orangeguo2/Distributed-Computer-System | /Shell Command & Bash Scripting/alu | UTF-8 | 11,533 | 3.5 | 4 | [] | no_license | #!/bin/sh
##
# This script implements the arithmetic logic unit (ALU)
# for word-oriented arithmetic and logic operations
if [ -z "$dir" ]; then
dir="$(dirname $0)"
app="$(basename $0)"
fi
##
# calls 'word' command on same path as this script
word() { echo $($dir/word $*); }
# include word definitions
sourc... | true |
a1cfc7655fb24ae34d5e9496a78c36aea2978ad4 | Shell | Tahmid1/Solving-LCS-in-Parallel | /DataCollectingScripts/timing_randomized_subproblems3.sh | UTF-8 | 546 | 2.8125 | 3 | [] | no_license | # CS87 Project; Bash script for timing Randomized Subproblems
# Brandon Chow and Tahmid Rahman
# 2016-05-04
maximum_number_threads=16
num_runs=5;
displaystats=1
thread_assigment_method=1
echo "Num_threads, size, secs, AVG_already_solved, SD_already_solved, AVG_iterations, SD_iterations, thread_assigment_method"
for ... | true |
b32b12247d3e849a9f832fd428c2a9b6c3101a77 | Shell | danielfoehrKn/bashscripts | /git-hooks/pre-commit-importsort | UTF-8 | 295 | 3.234375 | 3 | [] | no_license | #!/bin/sh
# git pre commit hook to sort imports according to the Gardener import style
for f in $(git status -s | awk '{if ($1 == "M") print $2}'); do
echo "$f"
importsort -exclude zz_generated -w "$f"
# add again in case there were changes
git add "$f"
done
echo "Sorted all imports"
| true |
4017620d62893b96c66fd899040a3d66274679f6 | Shell | spujadas/rshutdown | /packaging/debian/postinst | UTF-8 | 1,178 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/bash
NAME=rshutdown
USER=${NAME}
GROUP=nogroup
SERVICE=${NAME}
EXECUTABLE=/usr/bin/${NAME}
DEFAULT=/etc/default/${NAME}
INIT=/etc/init.d/${NAME}
SUDOERS=/etc/sudoers.d/${NAME}
LOGROTATE=/etc/logrotate.d/${NAME}
LOG_DIR=/var/log/${NAME}
LOG=${LOG_DIR}/${NAME}.log
### configure service
# create random shutdow... | true |
9de4d990d38b9f287e820023fdea4d4202aafabb | Shell | kenbabu/PrivateSnps | /private.sh | UTF-8 | 1,826 | 3.71875 | 4 | [] | no_license | #!/bin/bash
echo "-----------------";
echo "Find private SNPS";
echo "=================";
# Location of vcf files
BCF_DIR=$1
# /home/user/2020/BashScripts/PopGen/AlleleFreqs
OUT_DIR=$2
# /home/user/2020/BashScripts/PopGen/PrivateSNPs
# Define populations
POP1="ACB"
POP2="ASW"
POP3="ESN"
POP4="GWD"
POP5="LWK"
POP6=... | true |
ddd132dcc687838de036f6740a81115fb19f0cf7 | Shell | awslabs/amazon-eks-ami | /hack/lint-docs.sh | UTF-8 | 305 | 2.8125 | 3 | [
"MIT-0",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/usr/bin/env bash
set -o errexit
cd $(dirname $0)
./generate-template-variable-doc.py
if ! git diff --exit-code ../doc/USER_GUIDE.md; then
echo "ERROR: doc/USER_GUIDE.md is out of date. Please run hack/generate-template-variable-doc.py and commit the changes."
exit 1
fi
./mkdocs.sh build --strict
| true |
5061a895ad7489d4910407149e2a28ce3ff7c993 | Shell | vbossica/glassfish3-debian-package | /src/debian/config/postrm | UTF-8 | 521 | 3.484375 | 3 | [] | no_license | #!/bin/sh
GF3_HOME=/usr/share/glassfish3
USER=glassfish
DOMAINS_HOME=/var/glassfish3
LOGS_DIR=/var/log/glassfish3
if [ -d "$DOMAINS_HOME" ]; then
echo "removing domains directory"
sudo rm -rf $DOMAINS_HOME
fi
if [ -d "$LOGS_DIR" ]; then
echo "removing logs directory"
sudo rm -rf $LOGS_DIR
fi
if [ -d "$GF3_... | true |
9b19cd5ad0f51cac2cb13f5509549d81126338e6 | Shell | mooz/currentia | /src/currentia/server/experiment/show_average_result.sh | UTF-8 | 445 | 3.46875 | 3 | [] | no_license | #!/bin/sh
# if [ $# -lt 2 ]; then
# echo "Usage: $0 DIRECTORY1 DIRECTORY2 ..."
# fi
for name in show_query_vs_update show_update_vs_consistency show_update_vs_window show_query_vs_window show_window_vs_consistency; do
for i in $(seq 1 5); do
DIR="result_${i}"
./${name}.sh ${DIR} > /tmp/${i}.tx... | true |
bc8983f675648ebb65a67e04efd0f3de5af50592 | Shell | ad-m/e24files-assistant | /report.py | UTF-8 | 1,610 | 2.734375 | 3 | [] | no_license | #!/bin/bash
import argparse
import ConfigParser
import csv
import sys
import boto
from api import e24filesClient, e24cloudClient
from config import get_access_pair
def build_args():
parser = argparse.ArgumentParser()
parser.add_argument("--config", nargs='?', type=argparse.FileType('r'),
... | true |
c7fe2170630d7b7862e4be45f2fd3e1208bd2458 | Shell | jsh/docker-cookbook | /Chapter-1/pulling-an-image | UTF-8 | 357 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -eux
: first docker pull is slow
time docker pull fedora
: and here it is
docker images | grep fedora
: second one is fast, though
time docker pull fedora
sleep 10
: now we bring up a container
docker run -id --name fedora docker.io/fedora bash
docker ps -l
sleep 10
: cleanliness is next to godliness... | true |
d05d1f63d0e6da70187ac1a5b45224a28f852efc | Shell | pavanreddy2693/linux_scripts | /shellscripts/copy_remote_to_remote.sh | UTF-8 | 474 | 2.984375 | 3 | [] | no_license | #! /bin/bash
echo "copy file from one machine to another machine"
echo "Provide source IP"
read source_ip
echo "provide source User"
read source_user
echo "provide source path"
read source_path
echo "provide destination IP"
read destination_ip
echo "provide the user of destination"
read destination_user
echo ... | true |
ae377a8a73079da430f08c58fb95db4d528cdc50 | Shell | h-w-chen/kubemark-tool | /kubemark-setup.sh | UTF-8 | 10,180 | 3.59375 | 4 | [
"CC0-1.0"
] | permissive | #!/bin/bash
# Credit: this script is based on https://github.com/sonyafenge/arktos-tool/blob/master/perftools/Howtorunperf-tests-scaleout.md
# purpose: to perf test scale-out mTP/nRP system / scale-up (single cluster) system
# this script is supposed to be sourced.
# usage:
# export TEST_SINGLE_STEP=N # by defa... | true |
566d277f4d4fc0098f6b2dcc2e7c2e96f664bbe3 | Shell | josemar7/linux_shell | /shellclass/localusers/add-local-user-new.sh | UTF-8 | 1,126 | 4.40625 | 4 | [] | no_license | #!/bin/bash
# make sure the script is being executed with superuser privileges
if [[ "${UID}" -ne 0 ]]
then
echo "Error. You aren't superuser."
exit 1
fi
if [[ "${#}" -lt 1 ]]
then
echo "Usage: ${0} USER_NAME [COMMENT]..."
exit 1
fi
# Ask for the user name
# read -p 'Enter the username to create: ' USER_NAME... | true |
9cfe312da308993411ebfd0689f0e7064d42dede | Shell | miroshnikalex/vagrant-centos | /files/terraform_install.sh | UTF-8 | 1,247 | 3.1875 | 3 | [] | no_license | #!/bin/bash
# Slightly modified version of https://raw.githubusercontent.com/ryanmaclean/awful-bash-scripts/master/install_recent_terraform_packer.sh
# Get URLs for most recent versions
terraform_url=$(curl --silent https://releases.hashicorp.com/index.json | jq '{terraform}' | egrep "linux.*64" | sort -rh | head -1 ... | true |
07e233fd6acde5a5520ed3d95daa1718becb5462 | Shell | open-pwa/open-pwa | /packages/node-mobile/tools/android_build.sh | UTF-8 | 1,123 | 3.828125 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Zlib",
"CC0-1.0",
"ISC",
"LicenseRef-scancode-public-domain",
"ICU",
"MIT",
"LicenseRef-scancode-public-domain-disclaimer",
"Artistic-2.0",
"BSD-3-Clause",
"NTP",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"LicenseR... | permissive | #!/bin/bash
set -e
ROOT=${PWD}
if [ $# -eq 0 ]
then
echo "Requires a path to the Android NDK"
echo "Usage: android_build.sh <ndk_path> [target_arch]"
exit
fi
SCRIPT_DIR="$(dirname "$BASH_SOURCE")"
cd "$SCRIPT_DIR"
SCRIPT_DIR=${PWD}
cd "$ROOT"
cd "$1"
ANDROID_NDK_PATH=${PWD}
cd "$SCRIPT_DIR"
cd ../
BUILD_ARC... | true |
3c2e8f6dddfd83352b4acace30d9006617e7bba3 | Shell | cha63506/dotfiles-47 | /bin/pass-show-qr | UTF-8 | 199 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
if [[ -z "$1" ]]; then
pass show
exit 0
fi
secret=$(pass show "$1")
file="$(mktemp -d)/${1//\//-}.png"
qrencode -o "$file" "$secret"
qlmanage -p "$file" &> /dev/null
| true |
97191ed4d5d3968ef2f5b125059b691e3638c46f | Shell | vseryakov/backendjs | /tools/bkjs-install | UTF-8 | 22,139 | 3.46875 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Author: Vlad Seryakov vseryakov@gmail.com
# Sep 2013
#
case "$BKJS_CMD" in
restart)
[ ! -f /etc/monit.d/$BKJS.conf ] && $0 start
;;
init-server)
[ "$(whoami)" != "root" ] && echo "Run as root please" && exit 1
args=$(get_all_args)
find_user
find_nodebin
echo "Setupin... | true |
7e154b24d210fe82f51a5ffdd7f4935073d9bbaf | Shell | chaixxxx/-password | /随机password | UTF-8 | 119 | 2.890625 | 3 | [] | no_license | #!/bin/bash
str="abcdefghijklnmopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
pass=""
for i in {1..8}
do
num=$[RANDOM%${#Str}]
tmp=${Str:tmp}
done
echo $pass
| true |
b9d2730ab57df890cc69b3fee422295f108c5560 | Shell | dani3/dotfiles | /update-farm.sh | UTF-8 | 560 | 2.984375 | 3 | [] | no_license | #!/bin/bash
PACKAGES=(
bash
zsh
xorg
feh
i3
picom
polybar
polybar-forecast
neofetch
alacritty
xbindkeys
dunst
xinitrc
xprofile
conky
nvim
)
for PKG in ${PACKAGES[@]}; do
CONFLICTS=$(stow -t ~ --no --verbose $PKG 2>&1 | awk '/\* existing target is/ {p... | true |
fa65518f30dff402fc93d9f1017e17332ea61d24 | Shell | bartpolot/dotfiles | /install.sh | UTF-8 | 432 | 3.0625 | 3 | [] | no_license | #!/bin/sh
pwd=`pwd`
for f in .??*; do
if [ "$f" == ".git" ]; then
continue;
fi
if [ -e "$HOME/$f" ]; then
echo $f exists in $HOME, skipping!
continue;
fi
ln -s "$pwd/$f" "$HOME/$f"
done
# git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
# ln -s /home... | true |
6afb7fa5581705382ca1919edf6c2dbbbf5c49e4 | Shell | modeconnectivity/modeconnectivity | /main_mnist_fcn.sh | UTF-8 | 1,285 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
DATAROOT="data/"
OUTROOT="results/mnist/fcn"
DEPTH=10
WIDTH=245
LR=0.001
VAR=10 # variation, number of models to train
F=2 # the dropout ratio denominator
# the main script for learning the different dropout models
for V in `seq 1 $VAR`; do # can be performed in parallel
#1. first learn the original... | true |
2b1c0b4abd4ee1abca383e7534d2198caeb11001 | Shell | TinasheMTapera/Reward | /Scripts/fw-heudiconv-tabulate.sh | UTF-8 | 396 | 2.859375 | 3 | [] | no_license | #!/bin/bash
#prep
source activate reward
SESSION=$1 # the sub study eg fndm1
DEST=$HOME/curation/code/fw-heudiconv-tabulate_outputs/$SESSION
if [ ! -d $DEST ]
then
echo Creating Directory...
mkdir -p $DEST
fi
echo running tabulate...
fw-heudiconv-tabulate --project Reward2018 --session $SESSION --no-uni... | true |
d8abec6c57b4dc2e9fdc1acbec61fe9f41c275b2 | Shell | andersisaksen/BIOS-IN9410 | /info.sh | UTF-8 | 136 | 2.578125 | 3 | [] | no_license | ##Calculates the length of all sequences in each fasta file
for f in *.fasta
do
echo $f
python ../scripts/seq_length.py $f
done
| true |
5f772b0b19f0eeba077fa20c37c4318d2c36ca5b | Shell | EBI-Metagenomics/ebi-metagenomics-cwl | /workflows/run-toil-v3-paired.sh | UTF-8 | 856 | 2.984375 | 3 | [] | no_license | #!/bin/bash
source ebi-setup.sh
set -o pipefail
#CWLTOIL="ipdb ../../toil-hack/venv/bin/cwltoil"
CWLTOIL=cwltoil
#RESTART=--restart # uncomment to restart a previous run; if the CWL descriptions have changed you will need to start over
#DEBUG=--logDebug # uncomment to make output & logs more verbose
workdir=/tmp
#m... | true |
1cd14ca1d581f3619a588227607c8d38af0fcd77 | Shell | mhcerri/configs | /home/bin/cronwrap | UTF-8 | 1,668 | 4.09375 | 4 | [] | no_license | #!/bin/bash -eu
log="$HOME/tmp/cronwrap.log"
log_on_success=0;
no_notification=0
help=$(
cat <<EOF
Usage: $(basename "$0") [-h|--help] [--log=LOG] [--] COMMAND
Cron job wrapper.
Arguments:
-h, --help Show this message and exit.
--log LOG Log file (default: $log).
--log-on-success Also log on success (by def... | true |
183c629d3e09ee2d39b3fd1dce4b9812daab043b | Shell | roycollings/saltstack | /states/handy_scripts/mouse_fix | UTF-8 | 609 | 2.84375 | 3 | [] | no_license | #!/bin/sh
#xinput list-props 12
#xinput set-value
#xinput set-prop 12 336 1
#xinput set-prop 12 336 0.5
#xinput set-prop 12 328 1
#xinput list-props 12
#xinput set-prop 12 336 0.3
#xinput set-prop 12 336 0.33
#xinput set-prop 12 336 0.35
DEVICE_ID=$(xinput list | grep Touchpad | sed -e "s/^.*id=\([0-9]*\).*$/\1/")
se... | true |
75d6841ab43a28740301d790f5d912835d8c1e64 | Shell | whyrusleeping/go-buildall | /buildall | UTF-8 | 1,157 | 3.96875 | 4 | [] | no_license | #!/bin/bash
function printMatrix() {
# prints out the matrix of all platforms go can target
echo "darwin 386
darwin amd64
darwin arm
darwin arm64
dragonfly amd64
freebsd 386
freebsd amd64
freebsd arm
linux 386
linux amd64
linux arm
linux arm64
linux ppc64
linux ppc64le
netbsd 386
netbsd amd64
netbsd ... | true |
f18eafb9b4e5020c0e5cbbf3e364e37e08067aa1 | Shell | aniketdakhare/Arithmetic_Computation_Sorting | /Sorting_Arithmetic_Computation.sh | UTF-8 | 1,121 | 3.65625 | 4 | [] | no_license | #!/bin/bash -x
echo Welcome to Arithmetic Computation and Sorting
read -p "Enter value of 'a' " a
read -p "Enter value of 'b' " b
read -p "Entar value if 'c' " c
echo "a=$a b=$b c=$c"
declare -A compute
compute[exp"0"]=$(($a+$b*$c))
compute[exp"1"]=$(($a*$b+$c))
compute[exp"2"]=$(($c+$a/$b))
compute[exp"3"]=$(($a... | true |
b97d8c6d7a28c98237a5aef2a96518dd1ea1a08b | Shell | jonkeane/vatic | /load-videos.sh | UTF-8 | 2,573 | 4.21875 | 4 | [
"LicenseRef-scancode-other-permissive"
] | permissive | #! /usr/bin/bash
# Usage: load-videos.sh -o [directory to place frame images] -t [training clip name] -a [video file(s) to load in to vatic]
# Eg: load-videos.sh -o /var/videos/frames/test/ /var/videos/1minClips/*
#
# This script will replace all spaces and parens with underscores in filenames (so that ffmpeg has an e... | true |
2432834e2ad6d7845a985af6c8cbde3da0be794f | Shell | cucumberlinux/ports | /cucumber/base/linux/linux.buildinfo | UTF-8 | 5,465 | 3.53125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright 2016, 2018, 2019 Scott Court
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, me... | true |
c754ce593b5cc237383b9d2b516b5c91fec761b9 | Shell | maxsu/antergos-packages | /antergos/chrome-gnome-shell/PKGBUILD | UTF-8 | 982 | 2.53125 | 3 | [] | no_license | # Maintainer: Antergos Developers <dev@antergos.com>
# Contributor: Andrew Querol <andrew@querol.me>
# Contributor: Rafael Fontenelle <rafaelff@gnome.org>
pkgname=chrome-gnome-shell
pkgver=9
pkgrel=1
pkgdesc="Native integration of extensions.gnome.org with GNOME Shell for Chromium-based browsers."
arch=('any')
url='ht... | true |
87a896282e121769546d45b62a5e8003511a621b | Shell | zhangbeibei/aws-rds-batch-alarm | /create_event.sh | UTF-8 | 1,031 | 3.0625 | 3 | [] | no_license | #创建 cloudwatch event,并将target设置为lambda
lambdaname="lambda-rds-alarm"$1
echo $lambdaname
eventname="lambda-rds-alarm"$1
#aws events put-rule --name $eventname --event-pattern "{\"source\":[\"aws.config\"],\"detail-type\":[\"Config Rules Compliance Change\"]}"
aws events put-rule --name $eventname --event-pattern "{\"s... | true |
ebd274043bcfa2a9f83a7a084801e75a8ab2c78b | Shell | okhuandou/airf | /server/user.sh | UTF-8 | 847 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#fname=billStat.game-2018-09-27_0.log
if [[ $# != 1 ]]; then
echo "usage yyyy-mm-dd"
exit 1
fi
cp /data/bill/aircraft/billStat.game-${1}*log.gz ./aircraft/
cp /data/bill/aircraft2/billStat.game-${1}*log.gz ./aircraft2/
gunzip ./aircraft/billStat.game-${1}*log.gz
gunzip ./aircraft2/billStat.game-${1}... | true |
a608716685bab3a3145cb74976c6c371797f41fc | Shell | caterpillarproject/modules | /alexlib/croton06/sd93cool/download.sh | UTF-8 | 532 | 2.59375 | 3 | [] | no_license | #!/bin/bash
#for FILE in mzero.cie m-00.cie m-05.cie m-10.cie m-15.cie m-20.cie m-30.cie m+05.cie
#do
# wget "http://www.mso.anu.edu.au/~ralph/data/cool/"$FILE
#done
#
#for FILE in ff55 ff65 ff75 ff85 zf55 zf65 zf75 zf85
#do
# wget "http://www.mso.anu.edu.au/~ralph/data/cool/pk6"$FILE".neq"
#done
#
#for FILE in ... | true |
8e108d3819cb8e6da9de6ed3c707ae67354df838 | Shell | ToniRV/dotfiles | /bash.d/exports | UTF-8 | 1,420 | 2.796875 | 3 | [] | no_license | #!/bin/bash
# Make vim the default editor
export EDITOR="vim"
# Larger bash history (allow 32³ entries; default is 500)
export HISTSIZE=32768
export HISTFILESIZE=$HISTSIZE
export HISTCONTROL=ignoredups
# Make some commands not show up in history
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"
# Prefer US Engl... | true |
0d530bb09aa9ec978257ef256a82dc15cf75f5e0 | Shell | akhedrane/hydra | /bin/vagrant-update | UTF-8 | 702 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
sudo chown vagrant:vagrant -Rf /home/vagrant
source /etc/environment
echo "Killing previously running hydra-host instances"
killall hydra-host
# Hydra
echo "Updating go dependencies..."
## Update dependencies and recompile
go get -d -u -v github.com/ory-am/hydra/...
go install github.com/ory-am/hydra/c... | true |
3ee7a5ae95255963c5ad34e154dd359c7aaa24da | Shell | hecong129/test-demo | /backup/upimg.sh | UTF-8 | 2,038 | 3.109375 | 3 | [] | no_license | #!/bin/sh
# **************************************************
UPPATH=/mnt/sdcard
UPFILE=$UPPATH/update.zip
UPPATH_TAR=$UPPATH/tmp_up
UPIMGFILE=$UPPATH_TAR/upimg.sh
UPLOGO=$UPPATH_TAR/page_1.bmp
UPKERNEL=$UPPATH_TAR/zImage
UPFASTBOOT=$UPPATH_TAR/Spinandboot_37xxc.bin
UPMAINAPP=$UPPATH_TAR/mainapp
UPRESOURCE=$UPPATH_TA... | true |
60c8a0773c17f27ed15ff0d4aebdc41ded585a79 | Shell | ktutnik/benchmark | /run | UTF-8 | 366 | 2.984375 | 3 | [] | no_license | #!/usr/bin/env bash
server="$1"
NODE_ENV=production node ./$server &
pid=$!
sleep 5
echo "$1" >> complete-result.txt
wrk "http://127.0.0.1:5000/$2" \
-d 30s \
-c 400 \
-t 12 \
| tee -a complete-result.txt \
| grep 'Requests/sec' \
| awk -v server="$server" '{ print $2 " Req/sec - " server }' >> results.... | true |
3b3b87b46733bd083fc481aaf542b313495abeb4 | Shell | felipefacundes/dotfiles | /config/rofimenu/rofimenu.config | UTF-8 | 6,411 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# Configuration file for rofimenu script
#
# Top level menu consists of modi names from modilist.
# Modilist is a comma separated list of default modi (drun,run...) and/or custom modi.
# Names of default modi can be set as rofi options (e.g. -display-drun Applications).
# Custom modi format: "modi_name:modi... | true |
859a24d4f4d3d542b664a1224d0bfd82e1ba86e2 | Shell | AsmNoob/FilesTree | /filestree.sh | UTF-8 | 1,132 | 3.421875 | 3 | [] | no_license | # Gérard Tio Nogueras - INFO2 - 000333083
# Info-f-201
# Projet n°1: Shell Scripting
#! bin/bash
parcours(){
if [[ "$1" == "." ]]; then
echo "$PWD"
fi
for element in "$1"/*; do #[ -r "$1" -a -x "$1" ] &&
# checking if it isn't a symbolical link
if [ ! -L "$element" ]; then #$(ls -l "$element" | grep ^l | ... | true |
883043e22e51eb33c7c0182b8dbea326af23ab20 | Shell | lozzo/config | /.conky/scripts/cp.sh | UTF-8 | 866 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# Created by f3bruary
# You need underscore-cli (https://github.com/ddopson/underscore-cli)
apikey='' # The API key
ip='192.168.1.X' # The IP Address of the Sonarr instance
port='5050' # The port (duh)
# The api request
json="$(curl -k -s 'http:/... | true |
8a6f59742b9c7c62b9a0ed8c6298112c187140a9 | Shell | neu-spiral/GraphMatching | /run_syntExperiments | UTF-8 | 1,083 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#SBATCH --nodes=1
#SBATCH --time=20:00:00
#SBATCH --job-name=GM
#SBATCH --tasks=1
#SBATCH --cpus-per-task=20
#SBATCH --mem=100Gb
#SBATCH --exclusive
#SBATCH --output=slurm-logs/GM%j.out
#SBATCH --error=slurm-logs/GM%j.err
iter=100
N=$2
PSolver=ParallelSolver
LSolver=LocalL1Solver
p=1
resume=false
while ... | true |
97bffa0fba9010aca75cfa96f7dfb7f0e6b61ab6 | Shell | gitops-org/info_deploy | /Deployment.sh | UTF-8 | 7,350 | 3.96875 | 4 | [] | no_license | #!/bin/bash
#Sourcing the env variable for the user executing the script
source ./environmental_variables.env
#Defining VARIABLES to be used in the script
InfaMigPath=$(pwd)
echo "$InfaMigPath"
#Setting the parameters passed in the script as env variables for the session
export USERNAME=$1
export PASSWORD=$2
export... | true |
306071fed2eea671d4b860458925ac4f4d2194a6 | Shell | dalepartridge/ACCORD_SEAsia_BGCsetup | /TOOLS/interp-files/interp_OBC_additional.sh | UTF-8 | 1,289 | 3.125 | 3 | [] | no_license | #!usr/bin/bash
###############################################
# interp_OBC_additional.sh
# This script will perform interpolation for a variable
# with a multiple time records, for variables where the source
# grid has already had one variable interpolated
###############################################
var=$1 ... | true |
3c5aba4c3ed9c0884c7cd5583d9b2b00a86aa6d5 | Shell | c02y/dotfiles | /bin/.local/bin/bit | UTF-8 | 1,324 | 4.0625 | 4 | [] | no_license | #!/bin/bash
usage()
{
echo "bit operations of two numbers"
echo
echo "Usage: $(basename $0) NUM1 OPS NUM2 [d]"
echo "OPS: a(&, and), o(|, or), x(^, xor), l(<<, left), r(>>, right)"
echo "d means result will be dec, default is hex"
exit
}
if [ "$#" -lt 3 ] || [ "$#" -gt ... | true |
6187ee1fb6269ce3c574d0d7209442a26954638c | Shell | Gillington/Operating-Systems | /function2.sh | UTF-8 | 115 | 2.578125 | 3 | [] | no_license | #!/bin/bash
praise() {
echo "Jared Bernard is great.";
}
echo "Why do we go to Operating Systems class?"
echo " "
praise
| true |
741c08358e09b8a9f362eefb0f81fc0212c871a0 | Shell | nanobox-io/nanobox-hooks-hoarder | /test/sandbox.sh | UTF-8 | 493 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Launch a container and console into it
test_dir="$(dirname $(readlink -f $BASH_SOURCE))"
payload_dir="$(readlink -f ${test_dir}/payloads)"
hookit_dir="$(readlink -f ${test_dir}/../src)"
docker run \
--name=test-console \
-d \
--privileged \
--net=nanobox \
--ip=192.168.0.55 \
--volume=${ho... | true |
9442ace55ecf88738928e94ab0398a103885fc67 | Shell | jeremy-cayrasso/dtc | /bin/sources/tarball/install.sh | UTF-8 | 974 | 3.234375 | 3 | [] | no_license | #!/bin/sh
# This is the DTC's BSD interactive install configuration script
# called by the make install
# made by Thomas Goirand <thomas@goirand.fr> and Frederic Cambus
PREFIX=/usr
LOCALBASE=/usr/local
QMAIL_DIR=/var/qmail
# DATABASE CONFIGURATION
echo "### MYSQL CONFIGURATION ###"
echo ""
echo "WARNING: Your MySQL... | true |
35044afd8c8b4cf53ae2e074065a0f3fe0612483 | Shell | coreycb/pkg-scripts | /pkg-new-ubuntu-release | UTF-8 | 1,036 | 3.625 | 4 | [] | no_license | #!/bin/bash
#
# Update an Ubuntu package to a new upstream release.
#
# Clones the git package from launchpad.
# Downloads and imports the orig upstream tarball.
# Leaves you in d/changelog to edit.
#
# Example: pkg-new-ubuntu-release cinder 8.0.0~b2 master
#
set -ex
if [ $# -ne 3 ]
then
echo "Usage: $0 package-n... | true |
10e0ff3791e0dabc770f9cd7ccfb080bd62dfe83 | Shell | ifpb/php-guide | /lamp/vagrant/install/lamp.sh | UTF-8 | 1,057 | 2.765625 | 3 | [] | no_license | echo "update & upgrade"
sudo apt update -y > /dev/null
sudo apt upgrade -y > /dev/null
echo "install apache2"
sudo apt install apache2 -y > /dev/null
sudo rm /var/www/html/index.html > /dev/null
echo "install php7.2"
sudo apt install php7.2 php7.2-mysql php7.2-mbstring libssh2-1 php-ssh2 -y > /dev/null
sudo sed -i -r... | true |
179567e648d2b4171e11547eb3d3966da6c825dd | Shell | dcaro/spinnakerhackfest | /scripts/set_azure_spinnaker.sh | UTF-8 | 4,670 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# Get azure data
# clientId : -c
# AppKey: -a
# Default values
JENKINS_USERNAME=""
JENKINS_PASSWORD=""
while getopts ":t:s:p:c:h:r:l:k:u:q:f:a:i:" opt; do
case $opt in
t) TENANTID="$OPTARG"
;;
p) PASSWORD="$OPTARG"
;;
c) CLIENTID="$OPTARG"
;;
s) SUBSCRIPTIO... | true |
7b770619bac5cf779af7f8c8a64aa154b349a70c | Shell | SOCaaS/openstack-script | /glance/start.sh | UTF-8 | 3,665 | 2.796875 | 3 | [] | no_license | set -e
apt update
echo -e "\nCreate a glance sql user"
sed -i -e "s|{{ GLANCE_DB_NAME }}|$GLANCE_DB_NAME|g" ./glance.sql
sed -i -e "s|{{ GLANCE_DB_USER }}|$GLANCE_DB_USER|g" ./glance.sql
sed -i -e "s|{{ GLANCE_DB_PASSWORD }}|$GLANCE_DB_PASSWORD|g" ./glance.sql
mysql -e "source glance.sql";
# Export environment var... | true |
ef71e0914d3883bebbd228d6d8df241689dcbd06 | Shell | SoumyadeepThakur/Misc-Codes | /SEM-5/Shell-Prog/prime.sh | UTF-8 | 283 | 3.765625 | 4 | [] | no_license | #!/bin/sh
#function
is_prime()
{
NUMBER=$NUM
i=2
while [ $i -lt $NUMBER ]
do
if [ `expr $NUMBER % $i` -eq 0 ]
then
echo "$NUMBER is not prime"
exit
fi
i=`expr $i + 1`
done
echo "$NUMBER is prime"
}
#main program
echo "Enter number: "
read NUM
is_prime $NUM
| true |
9258f7f79b7152fcf4db0c322ed76b313fe6866b | Shell | xiaohuixingjia/countLimitAuth | /start.sh | UTF-8 | 829 | 3.109375 | 3 | [] | no_license | . ~/.bash_profile
export LANG=zh_CN.UTF-8
FILE_PATH=/home/webfocus/huaxiaoqiang/applications/Dps-da-http-new
cd ${FILE_PATH}
MainClass=com.umpay.dpsda.server.DaletServer
SERVICE_ID=new_http_da_dps
APPCLASSPATH=
APPCLASSPATH=$APPCLASSPATH:.
APPCLASSPATH=$APPCLASSPATH:bin
APPCLASSPATH=$APPCLASSPATH:resource
for jarfil... | true |
7d84e373da344a03c88a3f0879f22ee9e5535b07 | Shell | granthbr/kong-lab | /scripts/1-kong-standalone-postgres.sh | UTF-8 | 1,791 | 3 | 3 | [
"Apache-2.0",
"JSON"
] | permissive | #!/bin/sh
set -e
set -x
# cleanup
docker rm -f kong-lab-ee kong-lab-database
docker network rm kong-lab-net || true
## setup
docker pull kong/kong-gateway:2.5.0.0-alpine
docker tag kong/kong-gateway:2.5.0.0-alpine kong-ee
## create network
docker network create kong-lab-net
## start db
docker run -d --name kong-la... | true |
3eac205ba44f05750f2e62de6600537fc78eb15b | Shell | dechavezv/isleroyalewolfgenomes2019 | /genotyping_pipeline/09_TrimAlternates_VariantAnnotator/09_TrimAlternates_VariantAnnotator.sh | UTF-8 | 1,093 | 3.21875 | 3 | [] | no_license | #! /bin/bash
# Step 9: Trim unused alternate alleles and add VariantType and AlleleBalance annotations
# to INFO column
# Usage: ./09_TrimAlternates_VariantAnnotator.sh [chromosome]
GATK=/utils/programs/GenomeAnalysisTK-3.6-0-g89b7209/GenomeAnalysisTK.jar
REFERENCE=/utils/canfam31/canfam31.fa
TEMPDIR=/temp
WORKDIR=/... | true |
10cfa180e70e48299e14ef86106cf30cdd034b90 | Shell | vcaropr1/Archive_Compressor_2016 | /compressor_for_rnd.sh | UTF-8 | 4,796 | 3.40625 | 3 | [] | no_license | #! /bin/bash
module load sge
DIR_TO_PARSE=$1 #Directory of the Project to compress
REF_GENOME=$2
SCRIPT_REPO=/isilon/sequencing/VITO/NEW_GIT_REPO/Archive_Compressor_2016/COMPRESSION_SCRIPTS
DEFAULT_REF_GENOME=/isilon/sequencing/GATK_resource_bundle/1.5/b37/human_g1k_v37_decoy.fasta
if [[ ! $REF_GENOME ]]
then
REF... | true |
d9f5310109da8b4c1a089b24139ffda8fb6d6720 | Shell | migaljabon/parseConfig | /findstring.sh | UTF-8 | 19,682 | 3.671875 | 4 | [] | no_license | #!/bin/bash
version=3.0
#Record time for performance measurement.
#starttime=$(date +%s%3N)
#Initialize variables.
max_threads=20 #The number threads used by xargs for the workers.
batchsize=40 #The number of files processed by the workers per batch.
#A larger batch size makes the main routine mo... | true |
a294cadafa7bd43466c17cc4d1fa747835545e77 | Shell | alphier/light100 | /server_control.sh | UTF-8 | 2,525 | 4 | 4 | [] | no_license | #! /bin/sh
export DRAGON_HOME=/mnt/light100
USER_ID=`id -u`
DB_DIR=/mnt/mongodb
DB_BAK=$DB_DIR/bak
LOG_DIR=$DB_DIR
PROCESS_NAME="bootstrap.js $DRAGON_HOME"
if [ ! "$USER_ID" = "0" ]; then
echo "Please re-run this program as the super user."
exit 0
fi
#go to home
cd $DRAGON_HOME
#start server
start_server(){... | true |
b4ab9567a54577d0a523e6344af87921bb207ef4 | Shell | MMerzinger/kubeadm-cka-node-factory | /setup-vm.sh | UTF-8 | 1,798 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Collection of snippets found on https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/install-kubeadm/
# Prepare host for docker installation
cat <<EOF | tee /etc/modules-load.d/k8s.conf
br_netfilter
EOF
cat <<EOF | tee /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.... | true |
679d51d97b30a2712989719390d0e904916edb6a | Shell | frankthetank7254/feral | /auto-reroute-v2.sh | UTF-8 | 1,670 | 3.453125 | 3 | [] | no_license | #!/bin/bash
routes=(0.0.0.0 77.67.64.81 78.152.33.250 78.152.57.84 81.20.64.101 81.20.69.197 87.255.32.229 87.255.32.249)
route_names=(Default GTT Atrato#1 Atrato#2 NTT#1 NTT#2 Fiber-Ring/Leaseweb#2 Fiber-Ring/Leaseweb#1)
#
test_files=(https://feral.io/test.bin https://gtt-1.feral.io/test.bin https://atrato-1.feral.io... | true |
cc569aee91ccc1d37b93f1b4e5c3730cd00c40b4 | Shell | jjchromik/hilti-104-total | /scripts/install-llvm-darwin | UTF-8 | 4,082 | 3.828125 | 4 | [
"BSD-2-Clause"
] | permissive | #! /usr/bin/env bash
#
# git version to checkout.
VERSION_LLVM=release_32
VERSION_CLANG=release_32
VERSION_LIBCXX=release_32
VERSION_COMPILERRT=release_32
VERSION_LIBCXXABI=release_32
if [ "$1" = "--install" ]; then
mode=install
install=1
fi
if [ "$1" = "--update" ]; then
mode=update
update=1
fi
if ... | true |
e6ac24d25b01dbcdbc3701c7bc5491556fdd5e63 | Shell | fopina/vagrant-iosjailbreak | /scripts/install_theos.sh | UTF-8 | 813 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
THEOS=/opt/theos
if [ -d $THEOS/.git ]; then
echo "Updating THEOS" >&2
cd $THEOS
git pull
else
echo "Installing THEOS" >&2
git clone --recursive https://github.com/theos/theos $THEOS
fi
cat <<EOF > /etc/profile.d/theos.sh
export THEOS=$THEOS
export PATH="\$THEOS/bin:\$PATH"
fu... | true |
479c9a880085e60e8e6b4a66027f4495fb1c4855 | Shell | calinburloiu/CaB-Scripts | /util/file-size-statistics.sh | UTF-8 | 428 | 3.921875 | 4 | [] | no_license | #!/usr/bin/env bash
#
# Author: Calin-Andrei Burloiu
#
if [ $# -lt 1 ]; then
echo "Usage: $0 DIRECTORY [SEARCH_PATTERN]" >&2
echo -e "Print file size statistics for files from DIRECTORY filtering results\n"\
"by the optional SEARCH_PATTERN." >&2
exit 1
fi
DIR="$1"
if [ $# -eq 2 ]; then
PATT="$2"
else
PATT="*"
fi... | true |
c131f6aae86abb8802fc22d1b04db19428d86c0a | Shell | chrischivlog/install-linux-essentials | /install-essential.sh | UTF-8 | 4,679 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#update
apt update
echo ""
echo ""
echo "updating all packages"
echo ""
echo ""
sleep 2
#upgrade
apt upgrade -y
echo ""
echo ""
echo "upgrade all packages"
echo ""
echo ""
sleep 2
#install unzip
echo ""
echo "install unzip"
echo ""
apt install unzip
#install unzip
echo ""
echo "install sudo"
echo ""
apt... | true |
554bb6d4bdb60094333530683d4455e59532b46c | Shell | 3rdentity/stella | /stella.sh | UTF-8 | 8,885 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
_STELLA_CURRENT_FILE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $_STELLA_CURRENT_FILE_DIR/conf.sh
function usage() {
echo "USAGE :"
echo "----------------"
echo "List of commands"
echo " o-- application management :"
echo " L app init <application name> [--approot=<path>] [--w... | true |
8a6d0af8b23e9de65b46fcecb4fc9c260eef71b5 | Shell | forensictool/coex | /gen_change_log.sh | UTF-8 | 779 | 3.1875 | 3 | [] | no_license | #!/bin/bash
papackage_name="coex"
version=$(git describe --long)
maintainer_name="$(git config user.name)"
maintainer_email="$(git config user.email)"
echo "|----------------------------------------------------------------------------------------|"
echo "$ papackage_name ($version) ; urgency=low"
git tag -l | sort -u... | true |
c6effd49d9b1189335c535cbe1e83e8919c8f20e | Shell | davidandreoletti/dotfiles | /.oh-my-shell/shellrc/plugins/python/functions.sh | UTF-8 | 254 | 2.625 | 3 | [] | no_license | function f_python_clean_artefacts() {
local dirPath="$1"
find "$dirPath" -type f -name "*.log" -exec rm -vf {} \;
find "$dirPath" -type f -name "*.pyc" -exec rm -vf {} \;
find "$dirPath" -type f -name "*.egg-info" -exec rm -rvf {} \;
}
| true |
864df95726f39549457aaa59a6e2293870cb0e2c | Shell | Emceelamb/nime | /Centralize/master/monitor | UTF-8 | 1,419 | 2.71875 | 3 | [] | no_license | #!/bin/bash
camera=$1
feed0="192.168.8.119/axis-cgi/com/ptz.cgi?pan=-10&tilt=8&zoom=0"
feed1="192.168.8.119/axis-cgi/com/ptz.cgi?pan=1&tilt=0&zoom=700"
feed2="192.168.8.119/axis-cgi/com/ptz.cgi?pan=0&tilt=11&zoom=1200"
feed3="192.168.8.119/axis-cgi/com/ptz.cgi?pan=-15&tilt=13&zoom=1000"
feed4="192.168.8.119/axis-cgi/... | true |
edce4573245d7c8428fd19c134d879d0bd207829 | Shell | kumargan/build-containers-for-git-branches-and-deploy | /scripts/start-build.sh | UTF-8 | 1,266 | 3.515625 | 4 | [
"Apache-2.0"
] | permissive | #!bin bash
# this scripts uses build-docker.sh file present in project to build a praticular branch and push.
# The ECS container needs to have roles for ECR.
build_logs=`pwd`build.logs
echo "log path " $build_logs
echo "starting build"
repoName=git-repo-name
dockerLocalRepo=local-repo-name:latest
dockerRemoteRepo=ac... | true |
4b8f83b2b93c4ede12bc46bdafe418bb15ee9566 | Shell | sogis/gis-sv | /development_dbs/pgconf_editdb/post-start-hook.sh | UTF-8 | 2,190 | 3.828125 | 4 | [] | no_license | #!/bin/bash
# This file is sourced by the start.sh script. Changes made to environment
# variables or adding environment variables will take effect in the shell
# postgres is running in. Anything added to this file will be executed
# after the database has been started.
echo_info "Executing post-start-hook.." # add b... | true |
78db49024c6fc82cc69fc8526ae0bf65955f0203 | Shell | cwpearson/cuda_mem_info | /ci/build.sh | UTF-8 | 426 | 3.65625 | 4 | [] | no_license | #!/bin/bash
function or_die () {
"$@"
local status=$?
if [[ $status != 0 ]] ; then
echo ERROR $status command: $@
exit $status
fi
}
set -x
source ~/.bashrc
cd ${TRAVIS_BUILD_DIR}
or_die mkdir travis-build
cd travis-build
if [[ "$DO_BUILD" == "yes" ]] ; then
or_die cmake ../ -DCM... | true |
b2d1ed3dd42211c638da030cf68cbbd0219916b2 | Shell | ClinicalSoftwareSolutions/TiTools | /makeTiIcons.bash | UTF-8 | 1,838 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# Convert a source image file to the various icon size by resizing
# For alloy apps
PREFIX="app/assets"
# For non-alloy apps
#PREFIX="Resources"
usage ()
{
echo $0 [source icon 512x512]
}
if [ ! -f "$1" ]; then
echo "A source image has not been specified"
usage
exit 2
fi
if [ ! -d "$PREFIX" ]; the... | true |
7e118c33176617772095711ee7eff6eedfd620d8 | Shell | paulburton/Arch-Linux-Repository | /ubuntu-testing/glewmx/PKGBUILD | UTF-8 | 1,232 | 2.65625 | 3 | [] | no_license | # Maintainer: György Balló <ballogy@freestart.hu>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: SleepyDog
pkgname=glewmx
_pkgname=glew
pkgver=1.5.8
pkgrel=1
pkgdesc="The OpenGL Extension Wrangler Library"
arch=('i686' 'x86_64')
url="http://glew.sourceforge.net"
license=('BSD' 'MIT' 'GPL')
... | true |
ca2fe4a23e89ad6e5c6f9b189c3a17ce48d9bcd4 | Shell | 353388947/seed | /script/get_python_translations | UTF-8 | 622 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env bash
tmp=tmp/python_locales
dest=locale
mkdir -p $tmp
lokalise \
--config lokalise.cfg \
export \
--langs fr_CA,en_US \
--type po \
--include_comments 1 \
--export_sort a_z \
--export_empty base \
--dest $tmp
unzip $tmp/SEED_Platform-... | true |
0a78b92c1d7c24aeaea08e7b3b258b1a7c422965 | Shell | Tmacshamgod/DevOps-script | /start.sh | UTF-8 | 314 | 2.515625 | 3 | [] | no_license | #!/bin/bash
APP_HOME=/home/admin/whale
CLASSPATH=$APP_HOME
for i in "$APP_HOME"/lib/*.jar; do
CLASSPATH="$CLASSPATH":"$i"
done
nohup java -classpath $CLASSPATH com.cloutropy.platform.scheduler_export.Main &
# more concise way
# nohup java -classpath .:./lib/* com.cloutropy.platform.scheduler_export.Main &
| true |
4d44d720ac19b2bf10c8ab59079df49fd282f074 | Shell | palakpsheth/Trovagene | /bin/IGV_2.3.79/igv.sh | UTF-8 | 586 | 2.828125 | 3 | [] | no_license | #!/bin/sh
#This script is intended for launch on *nix machines
#Xvfb :1 -screen 0 1920x1200x32 &
#export DISPLAY=":1"
export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
#-Xmx4000m indicates 4000 mb of memory, adjust number up or down as needed
#Script must be in the same directory as igv.jar
#Add the flag -Ddevelopmen... | true |
7ce548e31ff4de29d6815bd38939f71bc4818184 | Shell | Akio333/BridgeLabz-15Days-bootcamp-solutions | /Day6/case/problem2.sh | UTF-8 | 455 | 3.921875 | 4 | [] | no_license | # 2. Write a function to check if the two numbers are Palindromes
function palindrome() {
s=0
num=$1
rev=""
temp=$2
while [ $num -gt 0 ]
do
s=$(( $num % 10 ))
num=$(( $num / 10 ))
rev=$(( echo ${rev}${s} ))
done
if [ $temp -eq $rev ]
then
echo "Numbers are palindrome"
else
ech... | true |
b31f4f50d3e8e761029121df869c4417c35fae75 | Shell | ucsb-igert/nsc | /processing/Synthetic/reduce | UTF-8 | 541 | 3.53125 | 4 | [] | no_license | #!/bin/sh
# Reduces the DBLP datasets to 1000 nodes each.
cd $(dirname $0)
DATA=../../data/Synthetic/synthetic.data
GRAPH=../../data/Synthetic/synthetic.graph
mkdir -p ../../data/Synthetic/reduced
COUNT=1000
DATA_REDUCED=../../data/Synthetic/reduced/$COUNT.synthetic.data
GRAPH_REDUCED=../../data/Synthetic/reduced... | true |
6304bd4b41826f9af877b4951f2bfbed4ce15d2d | Shell | sweptr/zy-fvwm | /cam/www.cl.cam.ac.uk/~pz215/fvwm-scripts/scripts/build-remote-menu | UTF-8 | 518 | 3.171875 | 3 | [] | no_license | #!/bin/bash
sshhosts=~/.ssh/known_hosts
if ! test -f $sshhosts ; then
echo "+ \"No $sshhosts%stock_dialog-error%\" Beep"
exit
fi
# discover remote hosts based on
for host in $(grep -o -e '^[a-z][a-zA-Z0-9.]*' $sshhosts | sort -u)
do
echo "+ \"$host%$1%\" Recent RemoteShell $host"
done
# make fusermount... | true |
cae1eb674d69aab42fcb9cd6f7c880c14ca27c32 | Shell | phcerdan/configuration_files | /load_scripts/binUbuntuMassey/cuda.sh | UTF-8 | 415 | 3.03125 | 3 | [] | no_license | #!/bin/bash
export cuda_folder=/usr/local/cuda
if echo $cuda_loaded |grep -q 'loaded'
then
echo "cuda already loaded"
else
export cuda_loaded='loaded'
#Modify path for dependancies of OPENFOAM: CGAL
export PATH=$cuda_folder/bin:$PATH
export LD_LIBRARY_PATH=$cuda_folder/lib:$LD_LIBRARY_PATH
echo 'Module cuda lo... | true |
3eaedf5c23a64f63e19e74547f4a1aa6c4e7ba2b | Shell | svetlyak40wt/replwm | /.envrc | UTF-8 | 728 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Convenient environment variables for hacking on the project.
# Feel free to change whatever you like in here while you're
# developing; its only purpose is to make playing with the
# window manager more convenient.
export PATH="$PWD"/bin:"$PATH"
ORIGINAL_DISPLAY="$DISPLAY"
if [ -z "$ORIGINAL_DISPLAY" ]; the... | true |
5473f1ddb8b81daf5c3c7e32021fb87d05ad8f93 | Shell | shimokirichi/scripts-ratelimit | /DEVICE-ASSIGN-DOWN | UTF-8 | 263 | 3.15625 | 3 | [] | no_license | #!/bin/sh
#corresponds to assign_device as used in C code
if [ $# -eq 3 ]
then
IP=$3
MAC=$2
MARK=$1
echo $1 , $2 , $3
#DOWNLINK
iptables -A FORWARD -t mangle -d ${IP} -j MARK --set-mark $MARK
else
echo "Wrong number of arguments. Order is mark mac IP"
fi
| true |
6287d5d896882ced9631e6582b2eb7be2ee928ba | Shell | czxxjtu/wxPython-1 | /tags/wxPy-2.8.0.2/wxPython/distrib/makedemo | UTF-8 | 1,157 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#----------------------------------------------------------------------
if [ ! -d wxPython ]; then
echo "Please run this script from the root wxPython directory."
exit 1
fi
VERSION=`python -c "import setup;print setup.VERSION"`
mkdir _distrib_tgz
mkdir _distrib_tgz/wxPython-$VERSION
cp -R demo _... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.