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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
16264f2c72db54cca1ba467d476944798376e4f5 | Shell | subver/scripts | /bash/rman/arch_del.sh | UTF-8 | 535 | 3.046875 | 3 | [] | no_license | #!/usr/bin/bash
#30 2 * * * del_archlog.sh > /dev/null 2>&1
##
. ~/.profile
export LANG=zh_CN.gb2312
##
CURDATE=`date +%Y%m%d`
CURTIME=`date +%H%M%S`
CURHOST=`hostname`
LOGDIR=${HOME}/log
LOGFILENAME=${CURHOST}_${CURDATE}_${CURTIME}.txt
LOGFILE=${LOGDIR}/${LOGFILENAME}
#############################... | true |
c017eadaf4c70b18c53bdf8964ce5ac8c59a4fed | Shell | jcchavezs/verum | /scripts/provision/lamp.sh | UTF-8 | 2,452 | 2.921875 | 3 | [] | no_license | #!/bin/bash
apt-get install -y apache2
a2enmod rewrite > /dev/null 2>&1
sed -i "s/IncludeOptional sites-enabled\/*.conf/IncludeOptional \/var\/www\/vhosts\/*.conf/" /etc/apache2/apache2.conf
echo "ServerName 192.168.33.11" >> /etc/apache2/apache2.conf
echo "IncludeOptional /var/www/vhosts/*.conf" >> /etc/apache2/apac... | true |
5daaab37904e20cdaf48332192f44ea05e923ff5 | Shell | postgres-x2/dbt1 | /wrapper/init_env_dr.sh | UTF-8 | 207 | 2.859375 | 3 | [
"Artistic-1.0"
] | permissive | #!/bin/sh
# PostgreSQL root user name
PGUSER=pgsql; export PGUSER
PGUSERHOME=`eval echo ~${PGUSER}`
# DBT-1 expand directory path
DBT1ROOT=${PGUSERHOME}/dbt1; export DBT1ROOT
# Locale
LANG=C; export LANG
| true |
5cfea8b4e45acba2844264c586f03e33fea8807c | Shell | Ratler/multiverse | /global/post-tasks.d/015cosmos-trust | UTF-8 | 628 | 3.375 | 3 | [] | no_license | #!/bin/sh
if [ -z "$COSMOS_KEYS" ]; then
COSMOS_KEYS=/etc/cosmos/keys
fi
for k in $COSMOS_KEYS/*.pub; do
fp=`cosmos gpg --with-colons --with-fingerprint < $k| awk -F: '$1 == "pub" {print $5}'`
cosmos gpg --with-colons --fingerprint | grep -q ":$fp:" || cosmos gpg --import < $k
done
for fp in `cosmos gpg --w... | true |
5b31c8a5b7cd5c8ed9bd3d6fddacd49970031e10 | Shell | nick-dai/Linux-Env-Setup | /zsh.sh | UTF-8 | 6,662 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# The following codes are based on these articles:
# http://www.jianshu.com/p/9a5c4cb0452d
# http://icarus4.logdown.com/posts/177661-from-bash-to-zsh-setup-tips
# https://gist.github.com/renshuki/3cf3de6e7f00fa7e744a
# Detect if a command exists
hasCommand() { # Declare a function
# type: find if a co... | true |
9ea42117e385255fe3b3dfe9bd4cad8d210c35b2 | Shell | nickkolok/myshellscripts | /mv-lone.sh | UTF-8 | 92 | 3.140625 | 3 | [] | no_license | #!/bin/bash
quan=`ls $1 | wc -l`
echo $quan
if [ $quan = 1 ]
then
mv "$1" .
else
ls $1
fi
| true |
9cc860388e78adda9279325c42c09c6ec32c7342 | Shell | bioconda/bioconda-recipes | /recipes/r-shinyngs/build.sh | UTF-8 | 1,356 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# The reason for the additions to DESCRIPTION is that we need packrat and
# rsconnect to find the package for shinyapps.io deployment. This normally
# doesn't work for github packages except those installed via
# devtools::install_github(), but the DESCRIPTON edits here should mimic that.
# I'm doing the s... | true |
edeb490aa602b348e46d2592d4f3b00011ab7102 | Shell | SynoCommunity/spksrc | /spk/dnscrypt-proxy/src/service-setup.sh | UTF-8 | 8,444 | 3.265625 | 3 | [
"BSD-3-Clause"
] | permissive | # shellcheck disable=SC2148
SVC_CWD="${SYNOPKG_PKGDEST}"
DNSCRYPT_PROXY="${SYNOPKG_PKGDEST}/bin/dnscrypt-proxy"
PID_FILE="${SYNOPKG_PKGDEST}/var/dnscrypt-proxy.pid"
CFG_FILE="${SYNOPKG_PKGDEST}/var/dnscrypt-proxy.toml"
EXAMPLE_FILES="${SYNOPKG_PKGDEST}/example-*"
BACKUP_PORT="10053"
## I need root to bind to port 53 se... | true |
9f439eb812f5660900c8086578738274914222d7 | Shell | tkjoo6138/giip | /giipscripts/cron/giipAgentAdd.sh | UTF-8 | 569 | 2.53125 | 3 | [] | no_license | # You can see secret key in service page of giip
sk="<SecretKey>"
# if you registered logical server name same as hostname then below, or put your label name
lb=`hostname`
# Append to crontab
crontab -l
(crontab -l ; echo "# 160701 Lowy, for giip")| crontab -
(crontab -l ; echo "* * * * * bash --login -c 'sh /usr/loca... | true |
668775062a237b6da6a1dc358e62ad670ec649fe | Shell | hituji-inc/hituji-code-standard | /src/phpcs.sh | UTF-8 | 415 | 3.546875 | 4 | [] | no_license | # phpcs を実行するスクリプト
# 第 1 引数は phpcs 規則定義
phpcs_standard_param="${1:+--standard=$1}"
shift
# 第 2 引数はファイルのパス
file_path=${1:+--stdin-path="$1"}
shift
# 実行バイナリ
phpcs_bin="${PHPCS_BIN:-phpcs}"
"$phpcs_bin" \
--report=emacs --no-colors --encoding=utf-8 \
$phpcs_standard_param $file_path $@
# phpcs が実行できたので正常終了
exit 0... | true |
47ee2ee97825abbf7ec9ec20c3f76d41a77e1f1b | Shell | uzzi1234/TestProject | /Scripts/build.sh | UTF-8 | 666 | 3.40625 | 3 | [] | no_license | #! /bin/bash
build_dir=$(pwd)/build
build_name=$build_dir/ci-build
project_path=$(pwd)/Project
log_file=$build_dir/unity.log
mkdir -p $build_dir
echo "Project Directory:"
ls $project_path/Assets
error_code=0
echo "Building project."
./Unity3D/Editor/Unity \
-batchmode \
-nographics \
-silent-crashes \
-for... | true |
a4803540986b861e42bbedd300a48b1c38e9bfdb | Shell | at-robert/LinuxScript | /mtk8507/cpy_vizio_4451_SignCode_IntExtDSP.sh | UTF-8 | 5,828 | 2.9375 | 3 | [] | no_license | #color str
RED='\e[0;31m'
LIGHT_RED='\e[1;31m'
BLACK='\e[0;30m'
BLUE='\e[0;34m'
LIGHT_BLUE='\e[1;34m'
GREEN='\e[0;32m'
LIGHT_GREEN='\e[1;32m'
PURPLE='\e[0;35m'
LIGHT_PURPLE='\e[1;35m'
CYAN='\e[0;36m'
LIGHT_CYAN='\e[1;36m'
BROWN='\e[0;33m'
YELLOW='\e[1;33m'
DARK_GRAY='\e[1;30m'
END='\e[0m'
#color str - end
VER=$1
SDK=$... | true |
7608e1c6cef84f6c31d3385f2badec9d902f0a5e | Shell | labsutet/webradio | /www/cgi-bin/previous.cgi | UTF-8 | 673 | 2.84375 | 3 | [] | no_license | #!/bin/sh
count=`cat /www/radio | wc -l`
index=`cat /www/index`
if [ $index -eq 1 ]; then
let x=$count; echo $x > /www/index;
else
let z=$index-1;
echo $z > /www/index;
fi
killall gst-launch-0.10
index=`cat /www/index`
url=`awk "NR == $index" /www/radio | cut -f2 -d"|"`
gst-launch -t playbin uri=$url | awk /title:/ | ... | true |
eee3e07b5b452e1d6a1d0f8b5b0ebe5942b0183e | Shell | gongheguoyingpai/sigir18-fusion-tutorial | /experiments/unexp/exp.sh | UTF-8 | 111 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
while read c1 c2 c3 c4 c5 c6
do
t=`echo "e ($c5)" | bc -l`
echo "$c1 $c2 $c3 $c4 $t $c6"
done
| true |
fdc21ddc912941b60e55df8982b585ca5b01f6ce | Shell | isgasho/regexp2go | /test.sh | UTF-8 | 2,279 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
GOCMD=${GOCMD:-go}
function build() {
(
pkg=$1
regex=$2
echo "$pkg"
dir="gen/$pkg"
mkdir -p "$dir"
$GOCMD run main.go "$regex" > "$dir/main.go"
$GOCMD build -o "$dir/main" "$dir/main.go"
$GOCMD tool objdump -S -s "main.Match" "$dir/main... | true |
8e28fff23e3bd39ed6731321906183660c38dbd0 | Shell | wabeeler/docker-alias | /zshrc | UTF-8 | 1,714 | 3.4375 | 3 | [] | no_license | # ------------------------------------
# Docker alias and function
# ------------------------------------
# Get latest container ID
alias dl="docker ps -l -q"
# Get container process
alias dps="docker ps"
# Get process included stop container
alias dpa="docker ps -a"
# Get images
alias di="docker images"
# Get con... | true |
e811c3ea0cb7c98d91e2a057ee43e6af746ef406 | Shell | k33g/hi | /hi | UTF-8 | 147 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# === hi (Generator) ===
BASEDIR=$(dirname $0)
GENERATOR=$1
echo $BASEDIR
CWD=$(pwd)
java -jar $BASEDIR/hi.jar $BASEDIR $CWD $GENERATOR
| true |
49edd1d652426c99a79130771200f107c26d04d7 | Shell | rui-madisse/thinklytics | /.travis/push.sh | UTF-8 | 793 | 2.609375 | 3 | [
"CC-BY-4.0",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | set -o errexit
# Inspired by https://gist.github.com/willprice/e07efd73fb7f13f917ea
git config --global push.default simple
git config --global user.email "travis@travis-ci.com"
git config --global user.name "Travis CI"
git checkout $TRAVIS_BRANCH
git add export process
git commit --message "Auto-export all projects o... | true |
5a8d0780e1c9722335d874e9c089faaebe036630 | Shell | scizeron/swarm-info | /swarm.info.sh | UTF-8 | 4,415 | 3.75 | 4 | [] | no_license | #!/bin/bash
declare -r prog=`basename "$0"`
declare -r dockerRemoteApiPort=2375
declare -A hostsMap
if [ $# -eq 0 ]
then
echo "The resource group is mandatory : $prog <resource_group_name>"
exit 1
else
resourceGroupName=$1
fi
hosts=$(azure vm list --json -g $resourceGroupName | jq .[].name | sed ':a;N;$!ba;s/\n/... | true |
f27efa8942514e85527f1c1cd7f0db80b2c22729 | Shell | mhejselbak/thinkpad-scripts | /14.04/trackpoint-fast.sh | UTF-8 | 777 | 2.921875 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
set -o pipefail
# Source: https://mako.cc/copyrighteous/installing-gnulinux-on-an-2014-lenovo-thinkpad-x1-carbon
# obtain TrackPoint ID from xinput list
TP_ID=$(xinput list | grep TrackPoint | cut -f 2 | grep -Eo '[0-9]{1,}')
if [ -n "$TP_ID" ]; then
# obtain properties from xinput... | true |
f5d3cd7d320631b7b692291b4f11427bc4cc8cc7 | Shell | delkyd/alfheim_linux-PKGBUILDS | /mod_spnego-git/PKGBUILD | UTF-8 | 1,131 | 3.015625 | 3 | [] | no_license | # Maintainer: timttmy <marshall\\dot//cleave\\at//tiscali\\dot//co\\dot//uk>
pkgname='mod_spnego-git'
_pkgname=mod_spnego
pkgver=20120124
pkgrel=5
pkgdesc="HTTP Negotiate\Kerberos support for apache2."
arch=('i386' 'x86_64')
url="https://github.com/lha/mod_spnego"
license=('Open source')
depends=('apache>=2.0' 'heimdal... | true |
a5803908def30d5e742b753004cfcafe58bab83c | Shell | SCORE42/apacheds_docker | /templates/new_openHAB.sh | UTF-8 | 1,275 | 3.40625 | 3 | [] | no_license | #!/bin/bash
#HTPWD=`which htpasswd | wc -l`
#if [ $HTPWD -lt 1 ];
# then
# echo htpasswd not found. try: 'sudo apt-get install apache2-utils';
# exit 1;
#fi
if [[ $# -ne 2 ]];
then
echo Usage: $0 '<new-OpenHab-ID> <new-password>';
exit 1;
fi
PWD_LENGTH=${#2}
if [ $PWD_LENGTH -lt 5 ];
... | true |
a5949d0ae3f2db3521fe11c17b1ea2f326e50cfe | Shell | junchih/cfront | /cfront_3/ax/buildprod | UTF-8 | 12,483 | 3.578125 | 4 | [] | no_license | #!/bin/sh
#ident "@(#)local:bin/buildprod 3.2"
###############################################################################
#
# C++ Standard Components, Release 3.0.
#
# Copyright (c) 1991, 1992 AT&T and Unix System Laboratories, Inc.
# Copyright (c) 1988, 1989, 1990 AT&T. All Rights Reserved.
#
# THIS IS UNPUBLIS... | true |
af5ae9be88285a0e220c8f13ebc344871ac22f71 | Shell | jonsk197/dotfiles | /install.sh | UTF-8 | 463 | 3.265625 | 3 | [] | no_license | #! /bin/sh
for f in ~/.dotfiles/link/.*; do
if test -f "$f"
then
ln -fs "$f" "$(basename $f)"
fi
done
# .bashrc to .bash_profile on OSX.
if [[ $OSTYPE == darwin* ]]; then
ln -fs ~/.bashrc ~/.bash_profile
source ~/.bash_profile
else
source ~/.bashrc
fi
git config --global user.name "Anton Niklasson"
git confi... | true |
5bfe12c9b471b2cb2225920973305b409939c33d | Shell | kyle95wm/scripts | /if-cmd.sh | UTF-8 | 472 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# This if statement will check the status of a command.
# To keep it simple, we'll use True/False.
# We will also test if we have internet connectivity.
# First, let's test if true.
if "True" ; then
echo "We returned true!"
fi
# Check if False
if "False" ; then
echo "We're false!"
fi
# Now let's chec... | true |
412b28802f22091940afbda32ec51826e5410dff | Shell | dellis1972/xdelta | /xdelta3/build_android | UTF-8 | 1,719 | 3.421875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash -e
set -x
ANDROID_NDK_API_32BIT=14
ANDROID_NDK_API_64BIT=21
ANDROID_SDK_DIRECTORY=$ANDROID_HOME
if [ -z "$ANDROID_SDK_DIRECTORY" ]; then
ANDROID_SDK_DIRECTORY="$HOME/android-toolchain-xa/sdk"
fi
find $ANDROID_SDK_DIRECTORY | grep android.toolchain.cmake
find $ANDROID_SDK_DIRECTORY | grep sdkmanager
$AND... | true |
b81d320375dbc9a50abec5b1fe6b12e48ef7525a | Shell | jduimovich/devops-tekton-demo | /scripts/run-p0-pipeline | UTF-8 | 956 | 3.25 | 3 | [] | no_license | #!/bin/bash
script="$0"
script_dir="$(dirname $script)"
script_name="$(basename $script)"
GIT_URL=$1
GIT_REPO_BASE=$(basename $GIT_URL .git )
DOCKER_IMAGE=$GIT_REPO_BASE
GIT_SRC_RES=run0-git-source-$GIT_REPO_BASE
TAG=$(date +"%y%m%d%H%M%S")
P_REF=pipeline0
if [ -z $2 ]
then
PIPE_DIR=pipelines
else
PIPE_DIR=$2
fi
... | true |
83f04682a6b9a5c9b7640a00e2878d38dd90ea8a | Shell | LabLemos/PGI_Repo | /1_UKB_GWAS/1.1_prep_UKB_phenos.sh | UTF-8 | 1,790 | 3.375 | 3 | [] | no_license |
#!/bin/bash
source $PGI_Repo/code/paths
cd $PGI_Repo/derived_data/1_UKB_GWAS
###### GET LIST OF BRAIN MRI SAMPLE AND RELATED INDIVIDUALS FOR PARTITIONING ########
echo "Getting list of brain-imaged and up to 3rd degree related individuals.."
### UKB brain imaging sample (file "k11425.f12188.R.tab" based on data f... | true |
20392ba3429cf68c6aa31a41fc474ec95a381aea | Shell | msys2/MINGW-packages | /mingw-w64-meld3/PKGBUILD | UTF-8 | 2,033 | 2.890625 | 3 | [
"BSD-3-Clause"
] | permissive | # Maintainer: Alexey Pavlov <alexpux@gmail.com>
# Contributor: Ray Donnelly <mingw.android@gmail.com>
_realname=meld
pkgbase=mingw-w64-${_realname}3
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}3"
pkgver=3.22.0
pkgrel=2
pkgdesc="Visual diff and merge tool (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt... | true |
0950ebe3e37fa5aaf5ab4cff2611009c5f3fe15d | Shell | loomnetwork/transfer-gateway-example | /truffle-ethereum/scripts/ganache-cli.sh | UTF-8 | 394 | 3 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
ganache_port=8545
start_ganache() {
./node_modules/.bin/ganache-cli -p $ganache_port -m gravity top burden flip student usage spell purchase hundred improve check genre > /dev/null 2>&1 &
ganache_pid=$!
echo "ganache-cli started with pid $ganache_pid"
echo $ganache_pid > ganache.pid
}
ech... | true |
4e6aa5529beba6db4f12c8e0b61eedb681ef5bd5 | Shell | dstrctrng/samson | /bin/samson-run-deploy | UTF-8 | 501 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -efu
shome="$(unset CDPATH; cd -P -- "$(dirname -- "$BASH_SOURCE")/.." && pwd -P)"
source "$shome/.env"
function main {
local dir="$1"; shift
local user_email="$1"; shift
local user_name="$1"; shift
local reference="$1"; shift
local cache_dir="$1"; shift
export DEPLOYER="$user_e... | true |
2f997535a2be84ccd33c86fe087fce65ccad1b31 | Shell | mrshannon/makedeb-PKGBUILDs | /pycharm/PKGBUILD | UTF-8 | 2,643 | 2.765625 | 3 | [] | no_license | # Maintainer: Michael R. Shannon <mrshannon.aerospace@gmail.com>
# Contributor: XavierCLL <xavier.corredor.llano (a) gmail.com>
nolint=1
pkgname=pycharm
pkgver=2020.1
pkgrel=1
section='devel'
pkgdesc="Python IDE for Professional Developers"
read -r -d '' pkglong <<"EOF"
PyCharm Professional Edition is an IDE for profe... | true |
f480e330cab12385a3b3107dd484260fd19f6730 | Shell | upm-packages/upm-cli | /scripts/upm-add-registry.sh | UTF-8 | 1,235 | 3.28125 | 3 | [
"MIT",
"JSON",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -ue
source "${DIRECTORY}/scripts/lib/function/exists.sh"
source "${DIRECTORY}/scripts/lib/validation/npmrc.sh"
source "${DIRECTORY}/scripts/lib/validation/upm-config.sh"
config_file="${HOME}/.upm-config.json"
manifest_file="Packages/manifest.json"
source "${DIRECTORY}/scripts/lib/variable/registrie... | true |
53778c98b5ad3a80fb92bec2f87c388c9ac8e742 | Shell | EncoreMultimedia/Encore-Dev-Scripts | /bash.d/import-from-gh.sh | UTF-8 | 1,963 | 3.890625 | 4 | [] | no_license | #!/usr/bin/env bash
source "$(dirname "$0")/functions/_depcheck.sh"
source "$(dirname "$0")/functions/_rfind.sh"
! _depcheck "ssh sshpass rsync scp sed git" && exit 1
### Let's go
config_name=".enc"
[ -n "$1" ] && config_name+="-$1"
enc_path=$(_rfind "$config_name")
enc_path_parent=$(cd "$(dirname "$enc_path")" || ... | true |
d867c6b187cd7a6b64dd2ff3769b29f75205b495 | Shell | Harley-xk/Template_Vapor_3 | /hooks/post_gen_project.sh | UTF-8 | 360 | 3.015625 | 3 | [] | no_license | #!/bin/bash
DEFAULT='\033[0;39m'
WHITE='\033[0;97m'
GREEN='\033[0;32m'
LIGHTGREEN='\033[0;92m'
CYAN='\033[0;36m'
LIGHTCYAN='\033[0;96m'
echo -e "${GREEN}All files successfuly generated!"
echo -e "${CYAN}Fetching Dependencies:${DEFAULT}"
vapor update --verbose
echo -e "${LIGHTGREEN}Project {{cookiecutter.product_na... | true |
e0f3225e3a572f07165d0872dfb74365066461df | Shell | brancz/prometheus-operator | /helm/hack/wait-pods-running-state.sh | UTF-8 | 1,546 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -xe
###
### Borrowed from https://github.com/kubernetes/charts/blob/master/test/verify-release.sh
###
set -o errexit
set -o nounset
set -o pipefail
set -o xtrace
NAMESPACE=$1
# Ensure all pods in the namespace entered a Running state
SUCCESS=0
PODS_FOUND=0
POD_RETRY_COUNT=0
RETRY=60
RETRY_DELAY=10
while... | true |
e1daf12b43b6982643c2dff7fd24205b8b4cd337 | Shell | irwanmohi/Full-OCS | /Rasta-OCS.sh | UTF-8 | 4,957 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "--------------------------------- OCS Panels Installer for Debian -------------------------------"
echo " DEVELOPED BY ABE PANG / (+60169872312) "
echo ""
echo ""
echo "Saya perlu mengajukan beberapa pertanyaan sebelum memulai setup"
echo "Anda dapat membiarkan p... | true |
8fa125c68862775c1eb37693a09da9416a00000c | Shell | stratust/arch_packages | /bwa/PKGBUILD | UTF-8 | 878 | 2.734375 | 3 | [] | no_license | # Maintainer: Thiago Yukio Kikuchi Oliveira <stratust@gmail.com>
# Contributer: Eric Biggers <ebiggers3@gmail.com>
pkgname=bwa
pkgver=0.7.10
pkgrel=1
pkgdesc="Burrows-Wheeler Aligner (BWA) is an efficient program that aligns relatively short nucleotide sequences against a long reference sequence such as the human gen... | true |
c32564cb19c1d3669f2d2d1659938cc907dfd5b9 | Shell | rdpate/one-off | /read-from | UTF-8 | 530 | 3.96875 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/sh -Cue
#.help
# % read-from FILE COMMAND..
#
# Run command with standard input redirected from FILE.
fatal() { rc="$1"; shift; printf %s\\n "${0##*/} error: $*" >&2 || true; exit "$rc"; }
while [ $# -gt 0 ]; do case "$1" in --) shift; break ;; -) break ;; -*) fatal 64 'unexpected option' ;; *) break ;; esac; d... | true |
796f2f3a27f72c7ed0d4368088696de10f4be1a8 | Shell | Airr/Public-Scripts | /transferPercent.sh | UTF-8 | 996 | 3.3125 | 3 | [] | no_license | #!/bin/sh
# set -x
sourceSize=6683840
targetPath='/Volumes/TimeMachine3TB/Library'
while [ "$(pgrep "rsync")" != '' ]; do
downloadProgress=$(du -d 0 -k $targetPath | awk '{print$1}')
precent=$(echo "$downloadProgress" "$sourceSize" | awk '{print$1/$2*100}' | cut -d "." -f1)
clear
echo "Transfer is at $p... | true |
904f8a92a08a37d1efa15cb2492a282313b7eb55 | Shell | roycollings/saltstack | /states/handy_scripts/wacom | UTF-8 | 327 | 3.359375 | 3 | [] | no_license | #!/usr/bin/env zsh
comm=$1
if [ "$comm" = "" ]
then
echo """
$0 <command>
<command> options are;
devices
resolution
"""
exit
fi
devices() {
xsetwacom --list devices
}
resolution() {
stylus=$(devices | grep STYLUS | sed -e "s/^.*id: \([0-9]*\).*$/\1/")
xsetwacom --get $stylus area
}
ev... | true |
0fc03ac59d719436c46f139c051d1c7a295feab6 | Shell | cha63506/core-3 | /torsocks/PKGBUILD | UTF-8 | 625 | 2.71875 | 3 | [] | no_license | # Arch contributor: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/torsocks
pkgname=torsocks
pkgver=2.1.0
pkgrel=1
pkgdesc='Wrapper to safely torify applications'
arch=('i686' 'x86_64')
url='http://code.google.com/p/torsocks'
license=('GPL2')
makedepends=('git')
backup=("etc/tor/${pkgname}.... | true |
34322ee7fc5e6dabdb3ea1b50f98db42f1c35b13 | Shell | CELAR/app-orchestrator | /orchestrator-rpm/scripts/postInstall.sh | UTF-8 | 1,402 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
RANDOM_PASSWORD=$(/bin/cat /dev/urandom | tr -dc 0-9a-zA-Z | head -c 16)
CELAR_ORCHESTRATOR_HOME=/opt/celar/celar-orchestrator
KEYSTORE_PATH=$CELAR_ORCHESTRATOR_HOME/keystore.jks
CONF_FILE=$CELAR_ORCHESTRATOR_HOME/conf/orchestrator.properties
SLIPSTREAM_CONTEXT="/opt/slipstream/client/bin/slipstream.cont... | true |
c0b6eb72840012b31a92bfaf1bb8fc1f1103e086 | Shell | gatesyp/settings | /flavor/.bashrc | UTF-8 | 434 | 3.1875 | 3 | [] | no_license | # command to copy and change directory with just one command
cpcd (){ cp "$1" "$2"
cd "$2"
}
# command to move a file and change directory with just one command
mvcd (){ mv "$1" "$2"
cd "$2"
}
# command to make directory and change directory with just one command
mkcd (){ mkdir "$1"
cd "$1"
}... | true |
2e5a520c79aabc0cfbd53e65ead01d6f283f5d14 | Shell | magick-source/openops-email-server | /setup/create-users.sh | UTF-8 | 423 | 3.53125 | 4 | [] | no_license | #!/bin/sh
set -e
echo -e "$BLUE>> Creating groups and users$NOCOLOR"
# add a group and user for virtual directories
if [ ! $(getent group vmail) ]; then
groupadd -g 5000 -r vmail
useradd -g vmail -M -r -u 5000 vmail
fi
# add a group and user for spamd
if [ ! $(getent group spamd) ]; then
groupadd -g 5001 -r s... | true |
d1132a299d53c7550bfadd5693f9ff430021f7ed | Shell | calvert1991/etc | /tmux/lib/cputemp | UTF-8 | 416 | 3.234375 | 3 | [] | no_license | __cputemp() {
local i t
if [[ -z $TEMP_DEVICES ]]; then
printf "#[fg=yellow,bg=black,bold]X#[default] "
return
fi
for i in ${~TEMP_DEVICES}; do
[[ -f "$i" ]] || continue
read t < "$i" && t=$(($t/1000))
[[ -n "$t" ]] || continue
printf "#[fg=yellow,bg=bla... | true |
06aee76e7813922ad10623be0a9087920ecd90ab | Shell | ClickAndMortar/Gock | /build.sh | UTF-8 | 143 | 2.796875 | 3 | [] | no_license | #!/bin/bash
set -e
test -f .env && {
export $(egrep -v '^#' .env | xargs)
}
docker build -t ${IMAGE}:${TAG} .
docker push ${IMAGE}:${TAG}
| true |
23e7393d83694c81e39025e44683a8523a081ed5 | Shell | growlzor/macos_setup_cheatsheet | /jamf_extension_attributes/whodeferred.sh | UTF-8 | 230 | 2.890625 | 3 | [] | no_license | #!/bin/sh
FILE="/Library/Application Support/JAMF/.userdelay.plist"
if [ -f "$FILE" ]; then
if grep -q date "$FILE"; then
echo "<result>Deferrals Exist</result>"
fi
else
echo "<result>Nothing Deferred</result>"
fi
| true |
d48311e0b28a0c19cd77489fb02e374b39bf9c0f | Shell | yvoinov/ora_autostart | /remove.sh | UTF-8 | 6,114 | 3.59375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Oracle services autostart remove for Solaris 8,9,10,>10, Linux
# Yuri Voinov (C) 2006-2020
#
# ident "@(#)remove.sh 2.5 28/01/20 YV"
#
#############
# Variables #
#############
RMV_CONFIG_FILE="remove.conf"
SERVICE_NAME="oracle"
SCRIPT_NAME="init.$SERVICE_NAME"
BOOT_DIR="/etc/init.d"
CONFIG_DIR="/etc... | true |
7e0574d96c05cfe8759ca31b8c125f003cb63716 | Shell | Spawn1318/git-magisk-module | /system/bin/git | UTF-8 | 372 | 3.125 | 3 | [] | no_license | #!/system/bin/sh
# git: wrapper to set up and run git from terminal
# nelshh @ xda-developers
dir="$(cd "$(dirname "$0")"; pwd)";
if [ "$1" == "--term" ]; then
term=$2;
shift 2;
else
term=screen;
fi;
GIT_TEMPLATE_DIR=$dir/../usr/share/git-core/templates GIT_EXEC_PATH=$dir/../usr/libexec/git-core TERMINFO=$dir/... | true |
f9ee4907eae056f1e08b2265bd627f3ab83cd63e | Shell | ANB2/django-bone | /django-bone | UTF-8 | 63,742 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# Generates Django Project Skeletons Simply and Properly
# Justine Tunney <jtunney@lobstertech.com>
# Licensed MIT
#
hash git 2>/dev/null || { echo "sudo apt-get install git" 2>&1; BAD=1; }
hash python 2>/dev/null || { echo "sudo apt-get install python" 2>&1; BAD=1; }
hash easy_install 2>/dev/null || { e... | true |
c37453ab40d68f73c176d8bf75ed83ea8025031a | Shell | essayyzed/Operatinng-Sysytems | /Assignments/Assignment-1/runner.sh | UTF-8 | 741 | 3.734375 | 4 | [] | no_license | #!/bin/bash
x=1
while [ $x -le 50 ]
do
(time ./hello2 > /dev/null) &>> hello2.txt
(time ./hello > /dev/null) &>> hello.txt
x=$(( $x + 1 ))
done
avg_time() {
#
# usage: avg_time n command ...
#
n=$1; shift
(($# > 0)) || return # bail if no command given
f... | true |
4e1ba3cbe32d47faa4d1b2ee02140b1b0967db02 | Shell | TimothyStephens/Dinoflagellate_Annotation_Workflow | /src/TrinityGG.sh | UTF-8 | 1,135 | 3.0625 | 3 | [] | no_license | export MEMORY=__TRINITY_MEM__
source ../env.sh
export PATH=${TRINITY}:$PATH
export PATH=${BOWTIE2}:$PATH
export PATH=${JELLYFISH}:$PATH
export PATH=${SALMON}:$PATH
export PATH=${SAMTOOLS}:$PATH
## Align reads using Bowtie2
run_cmd "bowtie2-build ${GENOME_NAME} ${GENOME_NAME}"
run_cmd "bowtie2 --very-sensitive-local -... | true |
f4b06e32076b30a8b916a5a123d98aa7216f3ee0 | Shell | Chinmay-Gurjar/TWLight | /bin/virtualenv_send_coordinator_reminders.sh | UTF-8 | 416 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Sends coordinator reminder emails via the send_coordinator_reminders management command.
# Environment variables may not be loaded under all conditions.
if [ -z "${TWLIGHT_HOME}" ]
then
source /etc/environment
fi
# Load virtual environment
if source ${TWLIGHT_HOME}/bin/virtualenv_activate.... | true |
03424fa23d94ed8a68a4054d6c25f265de4e8ca3 | Shell | pipitone/datman | /assets/epitome/151012-spins/epitome/modules/pre/init_epi | UTF-8 | 13,462 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
cat <<EOF
export DATA_QUALITY=${1}
export DELTR=${2}
export DESPIKE=${3}
export TPATTERN=${4}
export NORMALIZE=${5}
export MASKING=${6}
export MASK_METHOD=${7}
EOF
cat <<"EOF"
echo '*** MODULE: init_epi. Standard pre-processing for standard fMRI data. ***'
# loop through sessions
DIR_SESS=`ls -d -- ${DI... | true |
02b3891be0f78a09ec3ea46daef08bbda988b6ac | Shell | Dhole/my_scripts | /clean-filenames | UTF-8 | 131 | 3.046875 | 3 | [] | no_license | #! /bin/sh
for f in *Trash*
do
filename=`/bin/echo -E $f | grep -o "[^\\]*$"`
mv "$f" "$filename"
echo $filename
done
| true |
2a27b57fc89a59c9f09c6b81fbed65515a8bbe72 | Shell | lorak127/University-Courses | /OS/Scripts/examen.sh | UTF-8 | 1,436 | 3.390625 | 3 | [] | no_license | #Sa se scrie un script shell care primeste ca prim parametru in linia de comanda
#un cuvant urmat de oricate nume de directoare (minim 1). Sa se determine cate
#dintre aceste directoare contin cel putin doua fisiere in care apare cuvantul dat.
#Se va valida nr de argumente ale liniei de comanda.
#!/bin/sh
if [ $... | true |
30ed7e5518d571c85f984938b88137386682567a | Shell | bpelunit/bpelunit | /eclipse-deps/upload-updatesite.sh | UTF-8 | 506 | 2.96875 | 3 | [] | no_license | #!/bin/bash
# Simple Bash script for uploading the update site for lftp
# Copyright (C) 2014 Antonio García-Domínguez
# Licensed under the EPL
# Note: username and password should be written in ~/.netrc,
# to avoid storing anything here and getting any prompts. The
# file should have 600 for its permissions mask.
# ... | true |
14cfe0843d4a78703880b96aee6514ae4ce59cae | Shell | AmateurECE/Tools | /latex-template.sh | UTF-8 | 792 | 3.09375 | 3 | [] | no_license | ###############################################################################
# NAME: latex-template.sh
#
# AUTHOR: Ethan D. Twardy <edtwardy@mtu.edu>
#
# DESCRIPTION: This shell script sets up a basic latex environment in the
# current directory.
#
# CREATED: 05/... | true |
741a48c6b0d8ef2fad8e372e00eb667236a3c48f | Shell | ALASKA-KOLASKA/bash | /lab3/v.sh | UTF-8 | 195 | 2.765625 | 3 | [] | no_license | #!/bin/bash
./resolver.sh&
while true
do
read line
if [[ $line == "QUIT" ]]
then
kill -SIGTERM $(cat mypid)
exit 0
fi
if [[ $line == '*' ]]
then echo "*" > input
else echo $line > input
fi
done
| true |
5d33330cf2251245a54cd32b1645b99d11145d1e | Shell | gpernelle/cortex | /scripts/data-221_WII-1900_N-500_s-50.sh | UTF-8 | 758 | 2.515625 | 3 | [] | no_license | #!/bin/bash
N=8
trap 'exit' INT
num=$(awk 'BEGIN{for(i=0;i<4;i+=0.5)print i}')
num2=$(awk 'BEGIN{for(i=0;i<100;i+=10)print i}')
for n in $num
do
# ===============================================
# Beginning of inner loop.
(
for j in... | true |
f4430b6abea1fd7b215c742e99e195d1aec07daa | Shell | nrj1024/Miscellaneous | /basic_script.sh | UTF-8 | 207 | 3.296875 | 3 | [] | no_license | #!/bin/bash
echo "Enter the first num : "
read n1
echo "Enter the second num : "
read n2
((sum=n1+n2))
echo "The sum is : $sum"
if [ $n1 -gt $n2 ]
then
echo "$n1 is greater"
else
echo "$n2 is greater"
fi
| true |
d839f4b25b2cca2b34a6d816d11dcca7d7a5c471 | Shell | ktrzcionka/dotfil3s | /setup/nvim.sh | UTF-8 | 790 | 2.765625 | 3 | [] | no_license | #!/bin/bash
. ./utils.sh
if ! command_exists nvim ; then
# for you complete me
sudo apt-get install -y silversearcher-ag
sudo apt-get install -y cmake
sudo apt-get install -y python-dev python-pip python3-dev python3-pip \
&& python2 -m pip install neovim \
&& python3 -m pip install neovim
curl -LO... | true |
5c187cd634db55d8cb734ea5b0d772eb0b24af4a | Shell | jbtrouve/pdsc-redis-exploration | /dbcli | UTF-8 | 511 | 3.15625 | 3 | [] | no_license | #!/bin/bash
LOCS="1 2 3"
[[ $1 = "" ]] || LOCS=$1
for LOC in $LOCS; do
. ./set-site-parameters $LOC >/dev/null 2>&1
ENDPOINT=$(kubectl get redb/redis-enterprise-database -o yaml | grep host: | awk '{print $NF}')
PORT=$(kubectl get redb/redis-enterprise-database -o yaml | grep port: | awk '{print $NF}')
PASS=$(ku... | true |
b90ff82db389a7a3983dd8aa2e78cbf0d0c46eb6 | Shell | homedepot/bbs | /scripts/make_migration.sh | UTF-8 | 370 | 3.625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
usage() {
>&2 cat <<EOF
SYNOPSIS:
Add a migration to db/migrations
USAGE:
$0 MIGRATION_NAME
EXAMPLE:
$0 add_column_to_table
EOF
exit 1
}
name=$1
id=`date +%s`
if [ -z ${name} ]; then
>&2 echo "ERROR: Name is missing."
usage
fi
touch db/migrations/${id}_${nam... | true |
d4ad959412b2619c0d869bdcd49af7e5e6338a4e | Shell | MrVirusSpm-07/tampilan | /tampilan.sh | UTF-8 | 731 | 3.078125 | 3 | [] | no_license | #!/bin/sh
# code by panglima jateng
# script perubah tampilan termux
# tampilan
tam1="===================================="
tam2="{ Welcome We Are User Termux }"
# login termux
toilet -f big -F gay LOGIN
echo "Masukan Pasword" | lolcat
read pass
# data tampilan
if [ $pass = panglima ]
then
echo "masukan ti... | true |
60aceb412aa7dafbadcdcf8907990de8d36260ff | Shell | SynoCommunity/spksrc | /spk/plexpy-custom/src/service-setup.sh | UTF-8 | 1,245 | 3.15625 | 3 | [
"BSD-3-Clause"
] | permissive | # Define python311 binary path
PYTHON_DIR="/var/packages/python311/target/bin"
# Define git binary path
GIT_DIR="/var/packages/git/target/bin"
# Add local bin, virtualenv along with python311 and git to the default PATH
PATH="${SYNOPKG_PKGDEST}/env/bin:${SYNOPKG_PKGDEST}/bin:${PYTHON_DIR}:${GIT_DIR}:${PATH}"
PYTHON="${... | true |
3dfdcf2ecd43aa6ce6db60968d62a1e62740d372 | Shell | starker-github/Box | /utils/script/myssh | UTF-8 | 363 | 2.8125 | 3 | [] | no_license | #!/bin/sh
if [ "$1" = "2" ]; then
ssh tjiang@192.168.2.2 -X
elif [ "$1" = "24" ]; then
ssh tao@192.168.2.24 -X
elif [ "$1" = "ic" ]; then
ssh tjiang@192.168.8.10 -X
elif [ "$1" = "4.6" ]; then
ssh lqchen@192.168.4.6
elif [ "$1" = "aws-ec2-s" ]; then
ssh -i ~/.ssh/aws-ubuntu.pem ubuntu@13.124.165.42 -X
else
echo "... | true |
b62fef27540c5307d9170605ed74474c0b63293c | Shell | Cryptizens/ethereum-mom | /deploy.sh | UTF-8 | 2,666 | 3.140625 | 3 | [] | no_license | # To use this rudimentary deployment script, you need to:
# - have aws-cli installed
# - have created the target bucket on S3
# - have created the IAM policy and user for full bucket access
# - have this profile referenced in your ~/.aws/credentials file
# - have retrieved your Cloudflare API key and email and stored t... | true |
768817247b5ce6e94e371842a2b17da6b128222a | Shell | dotnet/installer | /eng/_prettyprint.sh | UTF-8 | 2,216 | 3.5 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Copyright (c) .NET Foundation and contributors. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
#
# Detect build servers
if [[ ! -z "$JENKINS_URL" || ! -z "$BUILD_BUILDID" || ! -z "$DOTNET_CORESDK_NOPRETTYPRINT" ]]; then
... | true |
30d4ae634263a4d6c44dad6acc63d7b33ab08b4f | Shell | BjornMulder/dotfiles | /zshrc | UTF-8 | 2,985 | 2.625 | 3 | [] | no_license | # Path to your oh-my-zsh installation.
export ZSH="/Users/bjornmulder/.oh-my-zsh"
export PATH="$HOME/.composer/vendor/bin:$PATH"
export PATH="$HOME/usr/local/bin:$PATH"
export PATH="/Users/bjornmulder/scripts/bin:$PATH"
export PATH="/Applications/MAMP/Library/bin:$PATH"
export YSCI_SSH_PRIVATE_KEY_PATH=~/.ssh/id_rsa
ex... | true |
fbcbc39d26bcf62eec2588f6f1ec7a3892ef9955 | Shell | yuntao90/bashrc | /idea/speedup_cpu/install.sh | UTF-8 | 837 | 3.71875 | 4 | [] | no_license | #!/bin/bash
function has_command()
{
local validate_command="$1"
local validate_result=`type -t $validate_command`
if [ -n "$validate_result" ] ; then
return 0
fi
return 1
}
SUDO="sudo"
if [ $UID -eq 0 ] ; then
SUDO=""
fi
INSTALL_PKGS="linux-tools-generic cpufrequtils acpi lm-sensors"
... | true |
f560d0a679d08bfee8669bff0c81f1f0482e5f3a | Shell | jessefriedland/dotfiles | /shell/functions/killmatch | UTF-8 | 181 | 3.375 | 3 | [] | no_license | #!/bin/bash
killmatch() {
if [ -z $1 ]; then
echo "Usage: killmatch $(tput sgr 0 1)search_term"
return 1;
fi
local pid=$1; shift
findpid $pid | xargs kill "$@"
}
| true |
300b0c4d874d1d06315f1a12f0538ad2a12e4b5c | Shell | ZhouyihaiDing/grpc | /third_party/upb/kokoro/ubuntu/build.sh | UTF-8 | 1,571 | 3.171875 | 3 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | #!/bin/bash
set -ex
# Install the latest version of Bazel.
if [ -x "$(command -v use_bazel.sh)" ]; then
use_bazel.sh latest
fi
# Verify/query CMake
echo PATH=$PATH
ls -l `which cmake`
cmake --version
# Log the bazel path and version.
which bazel
bazel version
cd $(dirname $0)/../..
if which gcc; then
gcc --ve... | true |
34d489bb2232dd492b8f369a3a54b464b77054f6 | Shell | youngwookim/bigtop-docker | /bigtop-deploy/build | UTF-8 | 453 | 3.4375 | 3 | [] | no_license | #!/bin/bash
set -e
platform=$HOSTTYPE
os_version="ubuntu-15.04"
if [[ $platform == "powerpc64le" ]]; then
platform="ppc64le"
fi
tag=$os_version-$platform
base_dir="base"/$tag
build_dir="build_img"/$tag
if [[ ! -d $base_dir ]]; then
echo "ERROR : not supported platform"
exit 1
fi
cd $base_dir
docker build... | true |
e9ed34bc27367c6c0184b758519e5c80e74e10e2 | Shell | spatialos/UnrealGDK | /ci/common-release.sh | UTF-8 | 943 | 3.296875 | 3 | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | function cleanUp() {
rm -rf ${SECRETS_DIR}
}
function setupReleaseTool() {
echo "--- Setting up release tool :gear:"
# Create temporary directory for secrets and set a trap to cleanup on exit.
export SECRETS_DIR=$(mktemp -d)
trap cleanUp EXIT
imp-ci secrets read \
--environment=product... | true |
498541f509e4a9023c14fdd57dea51408bc1587b | Shell | shadrackjabes/Quantifying-water-density-fluctuations | /linear/sandbox/gen_table.sh | UTF-8 | 1,086 | 2.984375 | 3 | [] | no_license | rm r.U.*.txt smoothstep*txt neg_dU_dr.*.txt
num=$(awk 'BEGIN{for(i=0;i<=0.1;i+=0.005)print i}');
for n in $num;do
# generate potential, GNUPLOT
module unload matlab
module load gnuplot
boxl=5.5
sampleno=$(echo $boxl/0.0005 | bc)
cp -v gen_table.gnu a.gnu;
sed -i s/xxxx/$n/ a.gnu;
sed -i s/yyyy/$sampleno/ a.gnu
sed -i ... | true |
f336a0c212680300a82846176bb8f809890fc250 | Shell | rachana1009/Shell-scripting | /comparisons.sh | UTF-8 | 1,461 | 3.984375 | 4 | [] | no_license | #!/usr/bin/bash
#Conditions used are:
######## Arithmetic Conditions ##########
#1. -eq : equal to
#2. -ne : not equal to
#3. -gt : greater than
#4. -ge : greater than or equal
#5. -lt : less than
#6. -le : less than or equal
#Note: Above are used when condition is in square brackets.
#example : [ 10 -ge 6 ]
# In o... | true |
2f76684abbefb71d31d8dab2ec372e6029d8269e | Shell | openshift/kuryr-kubernetes | /devstack/lib/kubernetes | UTF-8 | 6,885 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
KURYR_KUBEADMIN_IMAGE_REPOSITORY="registry.k8s.io"
function get_k8s_log_level {
if [[ ${ENABLE_DEBUG_LOG_LEVEL} == "True" ]]; then
echo "4"
else
echo "2"
fi
}
function kubeadm_install {
if ! is_ubuntu; then
(>&2 echo "WARNING: kubeadm installation is not supported ... | true |
4d5d2f308dcca0e7e7e0fc9ba9e574be7192631b | Shell | hiskid123/nmapSL | /nmapSL.sh | UTF-8 | 3,020 | 4.59375 | 5 | [] | no_license | #!/bin/bash
# nmapSL
# Created By Hi_skid
#
# This script will detect all open ports on the target and then
# run service detection on those specific ports, cutting down on
# The total time it takes to enumerate services on open ports.
#Setting variables
#Help text
usage="$... | true |
1cd4febb80779157d1b351655294d5be08bb6211 | Shell | toolness/passage-emscripten | /Passage_v4_UnixSource/gamma256/build/makeDistributionMacOSX | UTF-8 | 1,037 | 3.28125 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/sh
#
# Modification History
#
# 2007-November-12 Jason Rohrer
# Copied from Cultivation build.
#
if [ $# -lt 3 ] ; then
echo "Usage: $0 release_name unix_platform_name path_to_SDL.framework"
exit 1
fi
rm -rf mac
mkdir mac
mkdir mac/Passage
mkdir mac/Passage/graphics
mkdir mac/Passage/music
mkdir m... | true |
91a8d21aee98e4915abc00a722fe1218df8f51e3 | Shell | CSCI-4830-002-2014/challenge-week-12 | /examples/dataprep/masidon_precipitation.sh | UTF-8 | 258 | 3.25 | 3 | [] | no_license | #!/bin/bash
DATA_PATH=$1
if [[ -z "${DATA_PATH}" ]]; then
DATA_PATH=./
fi;
echo -n "Total Percipitation on 2010/04/25 in Madison (hundredths of an inch): "
grep "20100425" ${DATA_PATH}/425248.csv | grep "MADISON" | cut -d',' -f 7 | paste -d+ -s - | bc
| true |
586b1ff8d1935c3296a76bb34fac24523d5a713d | Shell | wangjie07070910/sH_hybridization | /scripts/02-filter_and_map_reads_to_haem.sh | UTF-8 | 8,224 | 3.0625 | 3 | [] | no_license | #!/bin/bash
#
# SNP calling in S. haemotobium hybridzone(s).
# NPlatt
# Neal.platt@gmail.com
# 02-filter_and_map_reads_to_haem - take reads and filter them wtih trimmomatic
# and then map to the schHae v1 assembly in anticipation of SNP calling
# Uses a combination of conda environments and singularity
# SET ... | true |
26ecdb59afd31dae084cbfdc36c62448a88d49a5 | Shell | jonasblixt/bpak | /test/test_delete.sh | UTF-8 | 2,829 | 3.765625 | 4 | [
"ISC",
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Test: test_delete
#
# Description: This test creates an archive with data and meta data and
# then tests the 'delete' command
#
# Purpose: To ensure that the delete command can delete part data and meta
# data from an archive
#
BPAK=../src/bpak
TEST_NAME=test_delete
TEST_SRC_DIR=$1/test
source $TEST_SR... | true |
03bf4339b808fd72fb2695794d69d7c2c86310f5 | Shell | nebo56/PhD-Thesis | /Chapter4/CLIPo/CLIPo.02-cDNA-end_structure_constraints.sh | UTF-8 | 2,336 | 2.84375 | 3 | [] | no_license | #!/bin/bash -l
#$ -l h_vmem=16G
#$ -l tmem=16G
#$ -l h_rt=32:0:0
#$ -j y
#$ -S /bin/bash
export PATH=~/Programs/bedtools2.22.1/bin:$PATH
export PATH=~/Programs/scripts:$PATH
export PATH=~/Programs/RNAfold/usr/bin:$PATH
cDNAs=$1
path=`pwd -P`
path=${path}/
genome=hg19.fasta
# separate cDNAs that are shorter than 40 ... | true |
89ead652ca64415b8d4b6616b3a6a9716d616b37 | Shell | jax79sg/nutanix_dlusecase | /setupVM.sh | UTF-8 | 3,701 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#On Nutanix VM
#Auto. Install Docker
sudo apt-get remove -y docker docker-engine docker.io containerd runc
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common \
axel \
wget \
zip
curl -fsSL ht... | true |
3e31bc8265ea30a5a09a80c969df4a7219e14066 | Shell | Mattlk13/gitlab-ci | /dockerfiles/build/gitlab-runner-cache | UTF-8 | 61 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -x
for path in $@; do
chmod 777 "$path"
done
| true |
bc5893d99c87f27da448aed6af566982021517c7 | Shell | cknowledge/ck | /cm-mlops/script/get-generic-python-lib/install.sh | UTF-8 | 1,154 | 3.234375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
if [[ ${CM_GENERIC_PYTHON_PACKAGE_VARIANT} == "nvidia-apex" ]]; then
git clone https://github.com/NVIDIA/apex
cd apex
${CM_PYTHON_BIN_WITH_PATH} -m pip install -v --disable-pip-version-check --global-option="--cpp_ext" --global-option="--cuda_ext" ./
test $? -eq 0 || exit $?
exit 0
fi
if [[ ${CM... | true |
f01edd96e59b9b08201c15aad50556e7540ba228 | Shell | mozilla/addons-server | /scripts/extract-l10n.sh | UTF-8 | 5,417 | 4.1875 | 4 | [] | permissive | #! /bin/bash
#
# This script will do the following:
# - checkout and update git master branch
# - create a new branch (name should look like l10n-extract-<date>-<rev>)
# - Extract new strings and update the .po/.pot files
# - Commit that extraction to the branch
#
# If you provide a GITHUB_TOKEN variable to the... | true |
9205423fbe18b7428c2112f4ef59e06c7cd4063c | Shell | austinmayo/osx | /scripts/applications.sh | UTF-8 | 1,105 | 2.75 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
# DESCRIPTION
# Installs OSX applications.
# EXECUTION
# Dropbox
install_dmg_app "$DROPBOX_APP_URL" "Dropbox Installer" "$DROPBOX_APP_NAME"
# iTerm
install_zip_app "$ITERM_APP_URL" "$ITERM_APP_NAME"
# Sublime Text
install_dmg_app "$SUBLIME_TEXT_APP_URL" "Sublime Text" "$SUBLIME_TEXT_APP_NAME"
# Sublime... | true |
652568b80ad2c9b08c0a1994f9ee1c94774d878e | Shell | opdenkamp/OpenELEC.tv | /packages/x11/lib/libX11/install | UTF-8 | 2,874 | 2.609375 | 3 | [] | no_license | #!/bin/sh
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2011 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of t... | true |
3f8e7128c0ad3b436baac7c3a1f61f2b4052b6e8 | Shell | jiapei100/Stereo | /micropython/tools/build-stm-latest.sh | UTF-8 | 908 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# function for building firmware
function do_build() {
descr=$1
board=$2
shift
shift
echo "building $descr $board"
build_dir=/tmp/stm-build-$board
make -B $@ BOARD=$board BUILD=$build_dir || exit 1
mv $build_dir/firmware.dfu $dest_dir/$descr-$date-$git_tag.dfu
... | true |
2d680ea29d51e4bcfbaa6dd4610afdd1ae1f7ddb | Shell | smronju/bash-scripting | /2. Variables/variables.sh | UTF-8 | 1,602 | 4.0625 | 4 | [
"MIT"
] | permissive | clear
echo 'Declaring variable?'
sleep 2
echo '
myVariable= # Declaring, but not initializing it. Uninitialized variable has null value.
myVariable=`Hello World!` # Here myVariable is a variable name and `Hello World!` is its value.
Lets display the variable value simply echoing `echo $myVariable`
'
sleep 2
... | true |
82435d48c53823789705c6f328626da325394f67 | Shell | ejn181/rock-linux-persona-giftnuss | /package/teha/rockinitramfs/libexec/build-list.sh | UTF-8 | 770 | 3.90625 | 4 | [] | no_license | #!/bin/sh
# create the list for cpio-entries to be used by gen_cpio_init
# shall be called by mkinitramfs.sh only.
# sources each file in ./build.d/
if [ -z "$irfs_libexec_functions" ]
then
echo "sorry - some required functions are not declared."
echo "you need to source the 'functions' script first."
echo "try: so... | true |
2decab6f5575e886cd435166bf49309443ab537e | Shell | rahullodha85/toggle-service | /gocd/scripts/wait-for-toggle-service-build.sh | UTF-8 | 630 | 2.90625 | 3 | [] | no_license | printf "Waiting for hbc-toggle-service build"
pipeline=hbc-toggle-service
schedulable=
curl -s "http://go.digital.hbc.com/go/api/pipelines/${pipeline}/status" -XGET -u "${GO_AUTH}" | [[ ! -z `grep "\"schedulable\":true"` ]] && schedulable="true"
TIMEOUT=480
time=0
while [[ ! -n $schedulable ]] && [[ time -lt $TIMEOU... | true |
d7fb010e83dbcb8f3e2b67fd705d53c6898f02d3 | Shell | Jemurai/hotc | /script/s3/s3_enable_versioning_and_lifecycle.sh | UTF-8 | 2,938 | 4.1875 | 4 | [] | no_license | #!/usr/bin/env bash
BUCKET=$1
NON_CURRENT_EXPIRE=$2
CURRENT_EXPIRE=$3
if [[ -z "${BUCKET}" ]]
then
echo "ERROR: Bucket name not provided."
echo
echo "USAGE: $0 <non_current_expire_days> [current_expire_days]"
exit 2
fi
if [[ -z "${NON_CURRENT_EXPIRE}" ]]
then
echo "WARN: No non-current expiration ... | true |
dbfe2a19d73c286a22de1707261320645a0b1b87 | Shell | Lhhuan/drug_repurposing | /Huan_link_all_script/workspace/drugrepo/dataset/gene-disease/Cancer/somatic_mutation/COSMIC/cosmic/STOPGAP/STOPGAP/processFANTOM5data.sh | UTF-8 | 268 | 2.515625 | 3 | [] | no_license | #!/usr/bin/env bash
rm ~/Resources/FunctionalGenomics/data/FANTOM5/processed/CRM/*
perl ~/Resources/FunctionalGenomics/src/FANTOM5dataParser.pl
cd ~/Resources/FunctionalGenomics/data/FANTOM5/processed/CRM/
for i in *.bed
do
sort-bed $i | uniq > tmp
mv tmp $i
done
| true |
29003a7530bdd8ca67c8aa781d39368f9dd2747e | Shell | johejo/dotfiles | /bash/.bashrc | UTF-8 | 919 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | export PS1="\\W$ "
export XDG_CACHE_HOME=$HOME/.cache
export XDG_CONFIG_HOME=$HOME/.config
export LANG="ja_JP.UTF-8"
export BASH_CONFIG_DIR=$XDG_CONFIG_HOME/bash
export PATH=$HOME/bin$PATH
export PATH=$HOME/.local/bin:$PATH
export PATH=$XDG_CONFIG_HOME/scrips:$PATH
if type go >/dev/null 2>&1; then
export GOPATH=$HOM... | true |
2ff63e6386481756173f30df5b4ec050ef858d04 | Shell | jormenjanssen/meta-mender | /tests/acceptance/files/install-new-image.sh | UTF-8 | 2,071 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script will install the sdimg onto the sdcard
# and prepare it for testing (adding keys, rssh servce)
# It should be placed in the home directory of the BBBs internal OS
IMAGE="/opt/core-image-base-beaglebone-modified-testing.sdimg"
SDCARD=""
function modify_sdimg {
PART_OFFSET=$(fdisk -l $IMAG... | true |
23df37ed813520cbfadf7b29b8ce94fe427b6582 | Shell | wubx/mytools | /bench/run_linkbench/run2.sh | UTF-8 | 7,724 | 3.0625 | 3 | [] | no_license | fn=$1
client=$2
ddir=$3
maxid=$4
dname=$5
dop=$6
secs=$7
dbms=$8
dbhost=$9
wf=${10}
if [[ $dbms = "mysql" ]]; then
echo Skip mstat
# ps aux | grep python | grep mstat\.py | awk '{ print $2 }' | xargs kill -9 2> /dev/null
# python mstat.py --loops 1000000 --interval 15 --db_user=root --db_password=pw --db_host=${... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.