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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
01a4405d451f4c829b722b12cc0be56138e18ff1 | Shell | terraref/workflow-pilot | /workflow_terra/wrappers/bin2tif.sh | UTF-8 | 527 | 2.609375 | 3 | [] | no_license | #!/bin/bash
set -e
set -x
IN_LEFT="$1"
IN_RIGHT="$2"
IN_META="$3"
OUT_LEFT="$4"
OUT_RIGHT="$5"
OUT_META="$6"
TIMESTAMP="$7"
FIXED_META="$8"
# TODO: Deal with this...
# TODO: cp: cannot stat 'ua-mac/Level_1/rgb_geotiff/2018-07-01/2018-07-01__08-35-45-218/rgb_geotiff_L1_ua-mac_2018-07-01__08-35-45-218_left.tif': No su... | true |
d57cc6056e39288fef838f3ac52484dd5fc97507 | Shell | MChartier/DevConfig | /setup-linux.sh | UTF-8 | 1,909 | 3.75 | 4 | [] | no_license | #!/bin/bash
#
# setup-linux.sh
# Set up new Linux environment.
#
readonly DOTNET_SDK_VERSIONS=(3.1 5.0)
if (( EUID != 0 )); then
echo "This script must be run as root." 1>&2
exit 1
fi
# Upgrade system packages
apt update && apt upgrade
# Install common tools
apt install make
#
# Install 'Oh my Posh'
# htt... | true |
36cb65ef6b4f7f12b1f3550b3a9cf81079420110 | Shell | MindFaktur/bridgelabz-shell | /shell_scripts/nov01/practice/first_pdf/harmonic.sh | UTF-8 | 148 | 3.1875 | 3 | [] | no_license | #!/bin/bash
read -p "enter a number: " num
harNum=0
for ((i=1;i<=$num;i++))
do
harNum=`awk "BEGIN {print $harNum + (1/$i)}"`
done
echo $harNum
| true |
34d5c0fb293b06d3fd1a906b60e3c76f97f7081b | Shell | eros902002/prebid-mobile-android | /testprebid.sh | UTF-8 | 1,442 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
function echoX {
echo -e "PREBID TESTLOG: $@"
}
echoX "start unit tests"
cd PrebidMobile
./gradlew clean test
echoX "assemble debug apk"
./gradlew clean assembleDebug
if [ ! -e DemoApp/build/outputs/apk/debug/DemoApp-debug.apk ];then
echoX "apk creation unsuccessful"
fi
echoX "copy debug apk to destin... | true |
fa9b741a3cd7fefa44b45e01a2bbdc0f329c4f19 | Shell | dia38/walt-python-packages | /dev/tools/functions.sh | UTF-8 | 134 | 2.859375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
do_subpackages()
{
for subpackage in $SUBPACKAGES
do
cd $subpackage
$*
cd ..
done
}
| true |
95f8d85021a149a352419ced323ea8cf264b917a | Shell | opencitymodel/data-pipeline | /grid-and-attrs/grid-state.sh | UTF-8 | 324 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
SOURCE_DIR=$1
DESTINATION_DIR=$2
GEOCODE_DIR=$3
STATE=$4
# reorg the shapefiles into grids and attach some useful attributes
# --max-old-space-size=8192
node app.js -s ${STATE} -i ${SOURCE_DIR}/${STATE}.txt -o ${DESTINATION_DIR} -c ${GEOCODE_DIR}/county.geo.txt -m ${GEOCODE_DIR}/${STATE}-grid-to-counties.... | true |
0d5da7c6f7a7205aca8e67be73c28a7962941d65 | Shell | HMinng/script | /Spamd.sh | UTF-8 | 218 | 2.640625 | 3 | [] | no_license | #!/bin/bash
# @describe:
# @author: Ming He(jackhm18@gmail.com)
process='cli.php'
num=$(ps -elf | grep $process | grep -v grep | wc -l);
if [ "$num" -eq 0 ]; then
php public/cli.php request_uri="/anticheat/index" &;
fi
| true |
6be8b336e59c7cbea5ee6a32ff6db231a3b28d5b | Shell | hermeseagel/shellscript | /Python_script/shell_ha.sh | UTF-8 | 2,356 | 3.015625 | 3 | [] | no_license | #!/usr/bin/ksh
hbping_primary=8.8.8.8
hbping_gateway=10.1.1.1
check_process='pmon'
hbping_standby=''
vgname=''
mirgation_dirs=[/oracle,/data,]
loggerdirs=''
logfile=''
function testping_p {
#check Primary network status
#if primary can not access also gateway can not access mean standby Network have problem .
... | true |
97bc94663b9cf1ebe822e1a2bff9bf7a0a8abe3c | Shell | fakeNetflix/uber-repo-peloton | /tools/packaging/docker-push.sh | UTF-8 | 1,027 | 4.4375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Takes an list of images (built locally) like uber/peloton:foo123, and tags and
# pushes to some registries.
#
# Usage:
# ./docker-push [registry] [image1] [image2]
if [[ $# -lt 2 ]] ; then
echo "No registry and image passed" >&2
exit 1
fi
# first argument is registry
REGISTRY=${1}
[[ $(un... | true |
04ece76fc7c8569396d890ea48d996f2ec3e748c | Shell | mp3splt/mp3splt-web | /mp3splt-project/branches/mp3splt-project_0.7.3__2.4.3/tests/mp3_freedb_mode_tests.sh | UTF-8 | 3,011 | 3.5625 | 4 | [] | no_license | #!/bin/bash
. ./utils.sh || exit 1
function _test_freedb_search_get_cgi_tracktype
{
get_type=$1
get_url=$2
get_port=$3
rm -f query.cddb
remove_output_dir
M_FILE="La_Verue__Today"
expected=" Processing file 'songs/La_Verue__Today.mp3' ...
Freedb search type: cddb_cgi , Site: tracktype.org/~cddb/cddb.... | true |
a222ee63c383540353724279398d3d27c3c8bca2 | Shell | stringlytyped/dotfiles | /bashrc | UTF-8 | 3,037 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #
# \`.|\..----...-'` `-._.-'_.-'`
# / ' ` , __.--'
# )/' _/ \ `-_, /
# `-'" `"\_ ,_.-;_.-\_ ', fsc/as
# _.-'_./ {_.' ; /
# {_.-``-' {_/
#
# https://github.com/stringlytyped/dotfiles
#
# BASHRC
# Configures non-login interactive shells
#
# Paths
# -----... | true |
a7232b70fdf932ac18c5e0f747f8c9e30aac0729 | Shell | NTgitdude23/resource_files | /mosquito.sh | UTF-8 | 44,856 | 3.484375 | 3 | [] | no_license | #!/bin/sh
# Author: r00t-3xp10it
# mosquito framework v:3.10.3 [STABLE]
# Automate remote brute force tasks over WAN/LAN networks
# GitHub: https://github.com/r00t-3xp10it/resource_files
# Suspicious Shell Activity - redteam @2019
##
resize -s 38 120 > /dev/nul
# variable declarations _______________________________... | true |
1686fee9b4a847688c8135bae1a25726a66ea7fd | Shell | ua-eas/ksi | /components/jdk/jdk-1.6.0_37/_install.sh | UTF-8 | 1,955 | 3.578125 | 4 | [] | no_license | #
# component install script for jdk-1.6.0_37
#
# n.b. This install includes the third-party jtool.jar library,
# which is distributed separately from the main JDK.
#
#
# Globals.
distfile="jdk-6u37-linux-x64.bin"
unpacksto="jdk1.6.0_37"
jtooljar="jtool-0.1-SNAPSHOT.jar"
#
# Make the component build and log director... | true |
77fc09870e9196b04762ff80024438c96ddd9017 | Shell | adalisan/vsi_common | /tests/test-relpath.bsh | UTF-8 | 5,228 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
. "$(dirname "${BASH_SOURCE[0]}")/testlib.bsh"
VSI_COMMON_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.."; pwd)"
relpath_check()
{
# echo "python -c 'import os.path as o;print(o.relpath(\"$1\", \"$2\"))'"
# python -c "import os.path as o;print(o.relpath('$1', '$2'))"
# perl -e "use File::Spec... | true |
f3591c8b9a83f79cc6721ae49b28256fb1f8589d | Shell | hedonproject/Masternode-Installer | /script.sh | UTF-8 | 4,033 | 3.40625 | 3 | [] | no_license | #!/bin/bash
INFO='\033[0;36m'
ERROR='\033[0;31m'
SUCCESS='\033[0;32m'
DEFAULT='\033[0m'
printf "${INFO}==================================================================\n"
printf " Hedon Masternode Installer\n"
printf "==================================================================${DEFAULT}\n"
... | true |
94b18d9799bfa8bd7c138f65da5b61d19bcfbb62 | Shell | amire80/cxscripts | /count_deletion_range.sh | UTF-8 | 122 | 3.0625 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/bash
firstDay=$1
lastDay=$2
for date in $(eval echo "{$firstDay..$lastDay}")
do
./count_deletion.sh $date
done
| true |
27948c163e983a0e6e5102b6d25776e6d1090896 | Shell | seckindinc/ShellScripting | /Projects_Back_up | UTF-8 | 188 | 2.625 | 3 | [] | no_license | #!/bin/bash
TIME=`date +%b-%d-%y`
FILENAME=backup-$TIME.tar.gz
SRCDIR=/home/seckindinc/Desktop/Projects
DESDIR=/home/seckindinc/Backup/Projects-Backup
tar -cpzf $DESDIR/$FILENAME $SRCDIR
| true |
07072e0472ba8155061c56ba5fd767014710bd1c | Shell | RitikaTanwani/College_Documents | /Documents/1st yr/05-shell_scripting-examples/scripts/ls.sh | UTF-8 | 72 | 2.515625 | 3 | [] | no_license | #! /bin/bash
lsout=`ls -l`
for i in $lsout
do
echo $i" foobar"
done
| true |
922ddb6e5bf9b43b4e0786bc77d3a35c7dd72f5a | Shell | bluemarvin/ascripts | /maven.sh | UTF-8 | 174 | 2.59375 | 3 | [] | no_license | #!/bin/bash
TARGET=$1
if [ -z $TARGET ] ; then
TARGET="/Volumes/firefox/vr/obj-arm-linux-androideabi/gradle/build/mobile/android/geckoview"
fi
cd $TARGET && simple-server.sh
| true |
a75d2dbb4e8b88085a44ae1e66e166ad82c0d4b8 | Shell | jorgeborges/dotfiles | /oh-my-zsh/themes/jborges.zsh-theme | UTF-8 | 1,806 | 3 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
#local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
# Altera by Jorge Borges
# Use with a dark background and 256-color terminal!
# You can set your computer name in the ~/.box-name file if you want.
# Borrowing shamelessly from these oh-my-zsh themes:
# fino
# bira
# robbyrussell
#... | true |
2026facec402d0c876afe5bd83a9bfd34e86f1d4 | Shell | Ahebert76/Jamf-Extension-Attributes | /Printer Installer Version | UTF-8 | 223 | 2.953125 | 3 | [] | no_license | #!/bin/bash
PrinterInstallerInfo=$(cat /opt/PrinterInstallerClient/VERSION)
if [ ! -z "$PrinterInstallerInfo" ] ; then
echo "<result>$PrinterInstallerInfo</result>"
else
echo "<result>not found</result>"
fi
exit 0
| true |
00586e51b2c7e3941843e8fba32d6826595aa873 | Shell | JoepSchyns/visual_scientific_search | /server/data/script.sh | UTF-8 | 1,285 | 3.046875 | 3 | [] | no_license | #!/bin/sh
#find . -name "s2-corpus-*" -print -exec gunzip -k -S ".json" {} /; -exec
#&& gunzip *.gz &&
#find . -name "s2-corpus-*" -print -exec mongoimport --numInsertionWorkers 2 --db search --collection semanticscholar --file {} \; -exec rm {} \;
#find . -name "s2-corpus-*" -print -exec curl -XPOST 'localhost:920... | true |
8663705b5046d095aa418b99abf067df466b31d1 | Shell | alde/setup | /scripts/rvm.sh | UTF-8 | 423 | 3.46875 | 3 | [] | no_license | #!/usr/bin/env bash
rvmDir="${HOME}/.rvm"
rubyver="2.5"
info "[ruby] Setting up ruby ${rubyver}"
if [ -d ${rvmDir} ] ; then
notice "[rvm] already installed - skipping"
else
gpg2 --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
curl -sSL https://get.rvm.io | ba... | true |
0af7284aefd6d9d9311a6d4ae91fc5066104e11f | Shell | ant104247/Mastering-Linux-Shell-Scripting-Second-Edition | /Chapter06/hello9.sh | UTF-8 | 95 | 2.796875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "You are using $(basename $0)"
for n in $*
do
echo "Hello $n"
done
exit 0
| true |
4465571cb13edc17c3ef06191d4f167f0c6860ea | Shell | cloutainer/k8s-jenkins-slave-base | /docker-entrypoint.sh | UTF-8 | 1,848 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
#
# UMASK
#
umask u+rxw,g+rwx,o-rwx
#
# USER
#
RUNAS=$(whoami)
echo "DOCKER-ENTRYPOINT >> running as user: ${RUNAS}"
#
# IMPORT KUBERNETES ca.crt (OPTIONAL)
#
if [ -n "$KUBERNETES_CA_BASE64" ]
then
echo $KUBERNETES_CA_BASE64 | base64 --decode > /tmp/kube-ca.crt
echo "DOCKER-ENTRYPOINT >> KUBE... | true |
6a3eb32a266ed6a23a2de71f9ae5f2688d769a42 | Shell | m4r35n357/ODE-Playground | /cns-scan | UTF-8 | 1,512 | 3.609375 | 4 | [] | no_license | #!/bin/sh
#
# (c) 2018-2023 m4r35n357@gmail.com (Ian Smith), for licencing see the LICENCE file
args="$0 $*"
echo "args: \033[1;37m$(($# + 1))\033[0;37m, [ \033[0;35m$args\033[0;37m ]" >&2
user_dir="/tmp/$USER"
[ ! -d $user_dir ] && mkdir $user_dir
user_data="$user_dir/data"
max=$1
threshold=$2
shift 2
case $4 in
... | true |
bbc20069ecad7881902d70c3e8d322a03e7c3e7e | Shell | feidianbo/origin-server | /node/misc/bin/setup_pam_fs_limits.sh | UTF-8 | 3,522 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Sets up the PAM filesystem and quota limits for an OpenShift gear
#
#
# Add a PAM limit set to the user
#
# IN: username
# IN: limits_order
# IN: limits_nproc
#
LIMITSVARS="core data fsize memlock nofile rss stack cpu nproc as maxlogins priority locks sigpending msgqueue nice rprio"
function set_pam... | true |
0de6a54aff5ff8c45c8082cd03784f6badf1e9cd | Shell | mitchpaulus/dotfiles | /scripts/recent | UTF-8 | 165 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ $# = 0 ]; then
find . -type f -printf '%TY-%Tm-%Td %p\n' | sort -r
else
find . -type f -printf '%TY-%Tm-%Td %p\n' | sort -r | head -n "$1"
fi
| true |
3bf7c3a1fa9a5ef3cb49b9c1d1f2a2fbb9b6de91 | Shell | Joll59/bashprofile | /Bash/environment.sh | UTF-8 | 3,517 | 3.359375 | 3 | [] | no_license | # Environment Variables
# =====================
# Editors
# Tells your shell that when a program requires various editors,
export VISUAL="code-insiders"
export SVN_EDITOR="code-insiders"
export GIT_EDITOR="code-insiders"
export EDITOR="code-insiders"
# Library Paths
# These variables tell your shell where they can fi... | true |
3b075746cdf896efccd1428e1c082462f3b73068 | Shell | dgunruh/Si-HJ-MD-DFT | /PelotonClusterScripts/OldScripts/lammpsSubmission.sh | UTF-8 | 1,239 | 2.640625 | 3 | [] | no_license | #!/bin/bash -l
# Name of the job
#SBATCH --job-name=cSiaSiMD
# SBATCH --nodes=2
# SBATCH --ntasks=2
#SBATCH --array=0-3
#SBATCH --cpus-per-task=32
#SBATCH --partition=med2
#SBATCH --time=24:00:00
#SBATCH --output='outputs/cSiaSiMD-%j.output'
#SBATCH --mail-user="dgunruh@ucdavis.edu"
#SBATCH --mail-type=END... | true |
8a135ee29e764268aaea5ecf04ff9fb9d477e154 | Shell | pxpeterxu/react-express-scaffolding | /sysadmin/components/app-start.sh | UTF-8 | 382 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Even though we don't need to be in the right directory in theory,
# in practice, being in the wrong directly could lead to permissions
# issues
cd "$DIR/../.."
su -c 'pm2 update' web
su -c 'NODE_ENV=production DATABASE=production pm2 start -i 0 /home... | true |
7a1da2b660cc5ceee5edb7f1bbe2394aa3678d15 | Shell | JustinD85/sandbox | /languages/shell/file_status.sh | UTF-8 | 382 | 3.90625 | 4 | [] | no_license | #echo "Type the location of a FILE to check: "
#read FILE
#Takes filename as argument
FILE=$0
for FILE in $@
do
[ -f $FILE ] && echo "This is a file"
[ -d $FILE ] && echo "This is a directory"
if [ -d $FILE ]
then
echo ""
echo "Contents of Directory: "
echo ""
ls $FILE... | true |
deb7561ff11683728d2c49cffbc93757f742e599 | Shell | beenotung/zeronet-profile-chooser | /bump-android | UTF-8 | 224 | 3.21875 | 3 | [] | no_license | #!/bin/bash
## bump version
o=$(./version android)
if [ $# = 1 ]; then
v="$1"
else
v=$(($o + 1))
fi
echo "set android version code $o -> $v"
sed -i "s/android-versionCode=\"$o\" /android-versionCode=\"$v\" /" config.xml
| true |
6ffd3b7cfbe508a78c5d4d573401949bc7a668fb | Shell | chnaveen1523/Shell-programs | /while-loop/MagicNumber.sh | UTF-8 | 187 | 3.1875 | 3 | [] | no_license | #!/bin/bash -x
echo "Guess the number between 1 to 100"
low=1
high=100
mid=0
mid=$(((low+high)/2))
isNotMagicNumber=1
while (($isNotMagicNumber==1))
do
echo $notMagicNumber
done
| true |
204086142a87fa880ea8ecfd176756e006e6c721 | Shell | omrprks/git-repo | /git-repo.sh | UTF-8 | 1,508 | 4.125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
function log {
local message="${@}"
echo "git-repo: ${message}"
}
function error {
local message="${@}"
echo "\033[1;31m$(log ${message})\033[0m"
}
function fatal {
local message="${@}"
error ${message}
exit 1
}
function start {
local url="${@}"
[[ "${OSTYPE}" == "darwin"* ]] &&... | true |
5342bb1db70e516e6fcb22a35caad25d1def9833 | Shell | ubiquiti/ubnt-usrsctp | /run.sh | UTF-8 | 1,164 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | OS_VERSION=16
OS_ARCH=armeabi-v7a
NDK_ARCH_COMPILER=armv7a-linux-androideabi
NDK_ROOT_PATH=$(dirname $(which ndk-build))
NDK_HOST_NAME=$(basename $(dirname $(dirname $(realpath $(ndk-which --abi ${OS_ARCH} ar)))))
NDK_COMPILER_BASE=${NDK_ROOT_PATH}/toolchains/llvm/prebuilt/${NDK_HOST_NAME}/bin/${NDK_ARCH_COMPILER}${OS_... | true |
7a1141e6195c33c8f6e0e0931669b8852f2b0078 | Shell | renancunha33/ShellScripts | /topForUnixAix.sh | UTF-8 | 174 | 2.5625 | 3 | [] | no_license | #!/bin/ksh
while true
do
clear
ps -ef
sleep 2
done
#Unix AIX does not have "top" command to see processes on real time, so I did the little script to make a similar thing.
| true |
63519c172a24e1293180318c5b752b4791a455ea | Shell | airbnb/istio | /tools/go-compile-verbose | UTF-8 | 2,713 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright Istio Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | true |
bc91de3517eccaf6aa316a3ed191fa0338543f51 | Shell | tomitribe/bash-tricks | /string-truncate.sh | UTF-8 | 1,913 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Bash has effectively two methods very similar to Java's String.substring() method.
# In Java their signatures would be similar to:
#
# /** start at beginIndex and return the remaining characters **/
# public String substring(int beginIndex)
#
# /** start at beginIndex and return the next N characters ... | true |
315d54e987925efe1344303dc28e181a2db5877f | Shell | Net-Mist/atari_uct_cluster | /install/install_gflags.sh | UTF-8 | 487 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Change these variables to adapt your system
install_path=$HOME/gfinstall
# Install
cd
git clone https://github.com/gflags/gflags.git
cd gflags
vim CMakeLists.txt # change minimum version to 2.8.11
mkdir build
cd build
cmake -D BUILD_SHARED_LIBS=ON -D CMAKE_INSTALL_PREFIX=$install_path ..
make
make inst... | true |
1d13c8cb701d52e0bdfa19188e1150734947ca03 | Shell | fredericoalvares/elastica | /apicloud/strategies/horInfra_vertSoft.sh | UTF-8 | 1,001 | 3.3125 | 3 | [] | no_license | #!/bin/bash
if ! [ -d /share ] || ! [ -f /root/openrc ]
then
echo "doit etre execute sur le cloud controler"
exit 1
fi
if [ "`env|grep PROJECT_PATH`" = "" ]
then
echo "PROJECT_PATH is not defined"
exit 2
fi
cd $PROJECT_PATH
source $PROJECT_PATH/common/util.sh
if [ "$#" -ne 2 ]; then
echo "Usage: $0... | true |
188ea6d6ca6eadd800935815f18d03f3b77a2c69 | Shell | cloudfoundry-incubator/bits-service-release | /standalone-dev-setup/scripts/generate-test-bosh-lite-manifest-s3 | UTF-8 | 1,038 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
cd $(dirname $0)/..
# grab-AWS-env
lpass show "Shared-Flintstone"/ci-config --notes > config.yml
export AWS_ACCESS_KEY_ID=$(grep -e '^s3-blobstore-access-key-id' config.yml | sed -e 's/s3-blobstore-access-key-id: //')
export AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:?AWS_ACCESS_KEY_ID is missing}
exp... | true |
b0912b36b3370964e3d1bc3cd458038509d12f39 | Shell | Rp70/docker-nginx | /files/docker-entrypoint-init.d/mapuid.sh | UTF-8 | 448 | 3.78125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
set -e
TARGET_USER='nginx'
# Change uid and gid of user $TARGET_USER to match current dir's owner
if [ "$MAP_WWW_UID" != "no" ]; then
if [ ! -d "$MAP_WWW_UID" ]; then
MAP_WWW_UID=$PWD
fi
uid=$(stat -c '%u' "$MAP_WWW_UID")
gid=$(stat -c '%g' "$MAP_WWW_UID")
usermod -u $... | true |
062a41fe9f53446d7c0eb5305cb259c0887134a7 | Shell | peterdnight/my-examples | /my-shell/bash/samples.sh | UTF-8 | 543 | 3.578125 | 4 | [] | no_license | #!/bin/bash
source shell-utilities.sh
#
# find and remove spaces
#
photosFolder="$HOME/google-drive/family-photos/" ;
#ls
if test -d $photosFolder ; then
cd $photosFolder
find . -depth -name '* *' \
| while IFS= read -r fullPathToFile ; do \
cp -p -v "$fullPathToFile" "$(dirname "$fullPathToFile")/$(b... | true |
eabd53f50bdc676b40b0e58738103464feb0e56d | Shell | lordmallam/aether | /scripts/kubernetes/start_minikube.sh | UTF-8 | 643 | 3.28125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | #!/usr/bin/env bash
set -Eeuo pipefail
export CHANGE_MINIKUBE_NONE_USER=true
# Start Minikube
sudo minikube start --vm-driver=none --kubernetes-version=v1.9.0
# Fix the kubectl context, as it's often stale.
minikube update-context
# Enable ingress in minikube
sudo minikube addons enable ingress
printf "Waiting fo... | true |
1de1688cf90e7ba2c29336606d24bd4a0aa781a9 | Shell | eerimoq/monolinux-example-project | /3pp/linux/tools/perf/tests/shell/record+script_probe_vfs_getname.sh | UTF-8 | 1,204 | 3.59375 | 4 | [
"MIT",
"Linux-syscall-note",
"GPL-2.0-only"
] | permissive | #!/bin/sh
# Use vfs_getname probe to get syscall args filenames
# Uses the 'perf test shell' library to add probe:vfs_getname to the system
# then use it with 'perf record' using 'touch' to write to a temp file, then
# checks that that was captured by the vfs_getname probe in the generated
# perf.data file, with the t... | true |
a2f02739ae33b847a7520cf0fda7da4353be242e | Shell | vdmitriyev/vagrant-templates | /NiFi/scripts/setup-centos.sh | UTF-8 | 199 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
source "/vagrant/scripts/common.sh"
function disableFirewall {
echo "disabling firewall"
systemctl stop firewalld
systemctl disable firewalld
}
echo "setup centos"
disableFirewall
| true |
d0903cdb5889ef1e8d575cddbe8651e93443bcf0 | Shell | zhuzhenxxx/mtool | /extraResources/mac/common/hpdriver.pkg/Contents/Resources/preflight | UTF-8 | 2,921 | 2.6875 | 3 | [] | no_license | #!/bin/sh
#postinstall.sh
BASEDIR=$(dirname "$0")
echo "$BASEDIR"
. "$BASEDIR"/setup.ini
SPRPath=${PRPath["OSX$shortver"]}
INSTALL_PNAME="${PrinterName}"
cp -Rf "$BASEDIR"/setup.ini /usr/libexec/cups/backend/setup.ini
chmod -R 777 /usr/libexec/cups/backend/setup.ini
#进程自启动
chmod -R 777 /private/var/isectoolsdir... | true |
e24df843e64c4d89a42a2b16ce776940fa64e084 | Shell | magnific0/dotfiles | /envprof/.bashrc | UTF-8 | 1,222 | 2.890625 | 3 | [] | no_license | #
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
#PS1
RET='$(Ret=$? ; [ ${Ret} -eq 0 ] && echo -n "\[\e[32;1m\]▪" || echo -n "\[\e[31;1m\]▪")'
#RET='$(Ret=$? ; [ ${Ret} -eq 0 ] && echo -n "\[\e[32;1m\]▪" || echo -n "\[\e[31;1m\]${Ret}")'
# PS1
red="\[\e[0;32m\]"
yellow="\[\... | true |
21550e507449f390ab3b398ebc4cbdd1d573df80 | Shell | Contactis/translations-manager | /tmux.sh | UTF-8 | 875 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#if your tmux counts from 1 instead of 0, change this
START_INDEX_NUMBER=0
SESSION="transman" # translation-manager
FOLDER_FRONTEND=$PWD # to assign to a variable
#create detached session named $SESSION
tmux new-session -d -s $SESSION
#split the pane horizontally in half
tmux splitw -h -p 50 -t $... | true |
8cb2080cc3325dbed03a87148523d6c237536bf1 | Shell | andrzejglobisz/rtl-test-task | /up-services.sh | UTF-8 | 4,741 | 4.03125 | 4 | [] | no_license | # Script runs services in 'PROD' mode by default
# Available parameters are:
# --mode <mode-name> - starts all services in 'DEV', 'QA' or 'PROD' mode
# --service-name <service-name> - starts specific service with its dependencies
# --down-only - stops and removes containers of running services
# --logs-only - displays ... | true |
e4b3d34b844cf1161bb424550bd8baabcd6b119e | Shell | CallumWalley/NeSI_Interactive_Introduction | /00-Bash_Basics/source_me | UTF-8 | 2,275 | 3.59375 | 4 | [] | no_license | #!/bin/bash
source "/home/cwal219/training/.common"
intro () {
STEP="0"
cd "~/"
printf "${F_HEADR} ___ ___ ____ _ ____ _ \n / _ \ / _ \ _ | _ \ | | | _ \ (_) \n| | | | | | | (_) | |_) | __ _ ___| |__ | |_) | __ _ ___ _ ___ ___ \n| | |... | true |
4289db3372bca07d6df39b3c664517ef073c1d7b | Shell | adrianwebb/cm-bootstrap | /bootstrap.sh | UTF-8 | 2,967 | 4.0625 | 4 | [] | no_license | #!/bin/bash
#-------------------------------------------------------------------------------
#
# bootstrap.sh
#
#-------------------------------------------------------------------------------
# Help
if [ -z "$HELP" ]
then
export HELP="
This script bootstraps a machine with all of the components (packages and
configu... | true |
e0da149936a26b619970d53184394cf427a5318f | Shell | nxt-lab/obnpy | /test/runtest.sh | UTF-8 | 349 | 2.640625 | 3 | [] | no_license | #!/bin/bash
# need to set obnchai and smnchai aliases before using them
shopt -s expand_aliases
source ~/.bash_profile
echo "Starting python OBN interface test"
echo "running chaiscript node..."
obnchai othernode.ons &
echo "run python node..."
python extnode.py &
echo "running simulation manager node..."
smnchai tes... | true |
b5b5232d22454108a92700daafc42cbfb90002c5 | Shell | atn34/blog | /deploy.sh | UTF-8 | 602 | 3.3125 | 3 | [] | no_license | #! /bin/sh
REV=HEAD
SHA=$(git rev-list $REV | head -1)
DEPLOYDIR=/tmp/blog-deploy-$SHA
SOURCEDIR=/tmp/blog-source-$SHA
DEPLOYREMOTE=git@github.com:atn34/atn34.github.io.git
GITHUBSRC=atn34/blog
trap "rm -rf $DEPLOYDIR $SOURCEDIR" EXIT
mkdir $DEPLOYDIR
mkdir $SOURCEDIR
git clone $DEPLOYREMOTE $DEPLOYDIR
(cd $DEPL... | true |
6adaa8b40d2d47cada8b50232fc897f985d128af | Shell | misostack/nodejs-cs1-chatapp-api | /setup.sh | UTF-8 | 1,185 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
echo ".................................."
echo "...............START..............."
echo ".................................."
from=.env.sample
declare -a List=(
"env"
)
for env in "${List[@]}"
do
to=".$env"
if test -f $to; then
echo "$to file exist. You need t... | true |
0220a7282d807688b840a05ade1b5ee0dba5d902 | Shell | invisibleboy/mycompiler | /scripts/gen_profile_merge_lcode | UTF-8 | 6,579 | 2.703125 | 3 | [
"NCSA"
] | permissive | #!/bin/sh
perl -x $0 "$@"
exit $?
#!/usr/bin/perl
###############################################################################
##
## Illinois Open Source License
## University of Illinois/NCSA
## Open Source License
##
## Copyright (c) 2004, The University of Illin... | true |
4153f38123eab43f4a281a8eab82dc3174a10e4e | Shell | moai/moai-community | /scripts/build-linux.sh | UTF-8 | 1,299 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# Build script for GNU/Linux
# Usage: Run from Moai SDK's root directory:
#
# build-linux.sh
#
# You can change the CMake options using -DOPTION=VALUE
# Check moai-dev/cmake/CMakeLists.txt for all the available options.
#
set -e
if [ -z $1 ]; then
libprefix=`dirname $0`/../lib/linux
else
libprefix=... | true |
69b237eadae6ad6395ac6d9e5a2f2588d5ba14a9 | Shell | Chingliu/WTL-DUI | /base/allocator/prep_libc.sh | UTF-8 | 1,378 | 3.5625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
# This script takes libcmt.lib for VS2005 and removes the allocation related
# functions from it.
#
# Usage: prep_libcmt.bat <VCInstallDir> <O... | true |
3403551a2d0a09af86f3a5c5944d9287046f59e5 | Shell | cbm-fles/flesnet | /contrib/bw_test | UTF-8 | 2,372 | 3.375 | 3 | [] | no_license | #!/bin/bash
#set -e
set -m
#debug
#set -x
ROOT_DIR="$(git rev-parse --show-toplevel)"
BINDIR=$ROOT_DIR/build
OUTFILE=result.log
FLIB_ADDR=01:00.0
PGEN_RATE=1
# size in steps of 1024ns
PGEN_MC_SIZE=100
FLIB_MC_LIMIT=1048576
BASE_EQID=0xF00
BUF_SIZE_EXP=28
LINK=(disable disable disable disable disable disable disabl... | true |
e9bc7439faa803ef635f12190f6201bd9a0fa22a | Shell | tommasop/dotfiles | /.config/yadm/bootstrap | UTF-8 | 260 | 2.8125 | 3 | [] | no_license | #!/bin/bash
# Update Ubuntu and get standard repository programs
./scripts/aptinstall.sh
# Run all programs/ install scripts
for f in scripts/programs/*.sh; do bash "$f" -H; done
# Get all upgrades
sudo apt upgrade -y
# See our zsh changes
source ~/.zshrc
| true |
550ed5507d91b03ce12d43b958ab83528544b6b1 | Shell | chopark/CodeDeploy_NiFi | /autoscale_script/stop_autoscale.sh | UTF-8 | 605 | 3.984375 | 4 | [] | no_license | #!/bin/sh
## USAGE
## ./stop_autoscale.sh (target group)
#### e.g. (target group): 60s, 10m, 1h
SHELL=$0
if [ $# != 1 ]; then
echo "$SHELL: USAGE: $SHELL (target group)"
echo "$SHELL: e.g. (target group): 1, 2, 3, ..."
exit 1
fi
#Variables
target_group=$1
instance_limit=0
group_num=0
# Start each grou... | true |
c9451fb14fadb134fc18a2ef9961d661051cc6fc | Shell | JoshHilliker/Telemetry-Infra | /uc_scripts/dmesg_edac.sh | UTF-8 | 274 | 2.59375 | 3 | [] | no_license | #! /bin/bash
# purpose to do daily pull of DMESG in order to grab EDAC data (Error Detection and Correction driver) to utilize with a machine learning model for memory failure prediction.
while /bin/true ; do
dmesg | grep EDAC >> $(hostname)_test.txt
sleep 8640
done
| true |
e2c8b07a337d1f79c594ca5288ffbeffe92e0214 | Shell | WabashOS/pfa-exp | /fed-overlay/root/util/pfa_exec | UTF-8 | 543 | 2.6875 | 3 | [] | no_license | #!/bin/sh
# This command executes the command in the PFA without interacting with cgroups.
# This command is not intended to be called directly (it's called by pfa_launch)
echo $$ > /sys/kernel/mm/pfa_stat
# Experiments run on core 1. This works best if the kernel cmdline includes
# isolcpus=1
# XXX This is causing a ... | true |
0b58d3ffb0bcf23a00f36aab11dbe63503bf9185 | Shell | gruntwork-io/terraform-aws-couchbase | /examples/local-mocks/aws.sh | UTF-8 | 5,990 | 3.671875 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-free-unknown",
"Apache-2.0"
] | permissive | #!/bin/bash
# This is a mock version of a script with the same name that replaces all the real methods, which rely on external
# dependencies, such EC2 Metadata and AWS API calls, with mock versions that can run entirely locally. This allows us
# to test all the scripts completely locally using Docker.
set -e
source ... | true |
4f6ef16a504b8ea4be886b6a5b4bc72d56948072 | Shell | changqian9/cloudcdn-signed-cookie-nginx | /run.sh | UTF-8 | 1,184 | 2.984375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | true |
51a9cb348a655afce591c4ece7fee773fb684fc3 | Shell | lspano-wellnet/pacobehatrunner | /paco_start.sh | UTF-8 | 1,879 | 3.0625 | 3 | [] | no_license | if [ -z "$1" ] || [ -z "$2" ] || [ -z "$3" ]; then
echo 'ERROR: one or more MANDATORY variables are undefined'
echo 'expected input like [country] [brand] [environment]'
echo "input Examples:"
echo ' '
echo '+----------------------------------------------+'
echo "| it dt uat ... | true |
2d113b8942c400a98dc5129fb4c8eceffe699358 | Shell | lionelyoung/iosevka-custom | /iosevka_custom.sh | UTF-8 | 1,062 | 3.25 | 3 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
# Installs requirements and builds my preferences for Iosevka
#
# Homepage: https://github.com/be5invis/Iosevka
#
# Requirements:
# - nodejs (≥ 6.0)
# - ttfautohint
# - otfcc (≥ 0.7.0)
set -e
WDIR="$HOME/Projects/Iosevka"
# OS Check
if [ ! "$(uname)" == "Darwin" ]; then
echo "Error: Not on Mac"
... | true |
0a205e79e0ba5e897a378ebcea73797fd904d496 | Shell | rjrivero/Cubietruck | /init.sh | UTF-8 | 2,090 | 3.578125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# -------------------------------------------
# inicializa el entorno para ejecutar ansible
# Este script debe invocarse en el directorio
# del virtualenv, con
#
# . ./init.sh
#
# o
#
# source ./init.sh
# -------------------------------------------
export CWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )... | true |
df71a4c65ecaff967a2df70ef200ec183277dd79 | Shell | rimmington/qemu-rpi | /mkswap.sh | UTF-8 | 193 | 3.125 | 3 | [] | no_license | #!/bin/bash -eu
if [ -z "${1:-}" ]; then
echo "Usage: $0 NAME"
exit 1
fi
mkdir -p /dev/shm/qemu-rpi
ln -sf /dev/shm/qemu-rpi/swap-${1} ./swap
qemu-img create -f raw $(readlink ./swap) 1G
| true |
981ae3d279b0254859e6f3809a7bc7d5cf5d7f39 | Shell | bitemyapp/bloodhound | /upload-docs.sh | UTF-8 | 967 | 3.5625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
set -e
user=$1
cabal_file=$(find . -maxdepth 1 -name "*.cabal" -print -quit)
if [ ! -f "$cabal_file" ]; then
echo "Run this script in the top-level package directory"
exit 1
fi
pkg=bloodhound
ver=0.19.0.0
if [ -z "$pkg" ]; then
echo "Unable to determine package name"
exit 1
fi
if [ -z "... | true |
0b0efbeb0f775d6007c42b330aa72e17423c7f7c | Shell | scholarsmate/svcplatform | /setup.sh | UTF-8 | 4,596 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
# Make sure password less sudo is enabled
sudo -v || ( echo "Please setup password-less sudo first" >&2 && exit 1 )
# Change the PWD to the directory where this script resides
cd $(dirname $(readlink -e $0))
if [[ -f ./setup.cfg ]]; then
echo "Reading configuration from setup.cfg"
source ./se... | true |
0c01abbd9c61089036c9ccb8936fd9e6c4d702f7 | Shell | TChatzigiannakis/LLVMSharp | /tools/GenerateBindings.sh | UTF-8 | 1,252 | 2.671875 | 3 | [
"NCSA"
] | permissive | cd ClangSharpPInvokeGenerator
if [ -z "$1" ]; then
echo **ERROR**: LLVM Shared Library Location is required. A good value for this parameter is 'libLLVM' which will translate to 'libLLVM.dll'/'libLLVM.so'/'libLLVM.dylib' on their respective platforms.
exit 1
fi
if [ -z "$2" ]; then
echo **ERROR**: LLVM Include D... | true |
dffb29c9b2f5e32a22ba758817b059e9bb1de5d6 | Shell | eckon/dotfiles | /scripts/connect-nested-container.sh | UTF-8 | 1,210 | 4 | 4 | [] | no_license | #!/usr/bin/env bash
###############################################################################
# script to quickly connect to a nested docker container
#
# example would be to get into an instance of a container on a remote server
# which might have changed the id and needs to be newly identified
################... | true |
af3a6a5b13e80be6755c74fde9bb3e6b5e35837b | Shell | mailanetworks/sx-packages | /docker-sxdrive/centos7/build.sh | UTF-8 | 724 | 2.9375 | 3 | [] | no_license | #!/bin/bash
dist=el7
BASEDIR=/home/makerpm
sudo cp -a /root/sxdrive.git $BASEDIR/sxdrive.git
sudo chown -R makerpm $BASEDIR/sxdrive.git
sudo ln -s /usr/lib64/qt5/bin/lrelease /usr/bin/lrelease
sed -i "s/SRCVERSION/$SRCVERSION/g" $BASEDIR/sxdrive.spec
# FIXME
cd $BASEDIR/sxdrive.git && \
git archive --format=tar H... | true |
a36ee1e686c3f9aa71be964fdb57082b2e05fdb9 | Shell | SultanSGillani/dotfiles | /bin/ssid | UTF-8 | 583 | 3.859375 | 4 | [
"ISC"
] | permissive | #!/usr/bin/env bash
if [[ "$1" == "-h" || "$1" == "--help" ]]; then cat <<HELP
Get WiFi SSID
http://benalman.com/
Usage: $(basename "$0")
If an SSID is specified and it is the current WiFi network's SSID, echo it,
otherwise echo nothing.
Copyright (c) 2012 "Cowboy" Ben Alman
Licensed under the MIT license.
http://b... | true |
9a28b678f59c3be6fa3a1079e54b98485d9a33f8 | Shell | ZYJCMD/ts-axios | /releash.sh | UTF-8 | 356 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env sh
set -e
echo "Enter release version: "
read version
read -p "Releasing $VERSION -are you sure? (y/n)" -n 1 -r
echo
if [[$REPLY=~^[Yy]$]]
then
echo "Releasing $VERSION ..."
gid add -A
git commit -m "[build] $VERSION"
npm version $VERSION --message "[release] $VERSION"
git push orig... | true |
054f73e11191974a37e05cf5272bc165943e222e | Shell | metalneox/dotfiles | /.config/polybar/scripts/cmus.sh | UTF-8 | 295 | 3.1875 | 3 | [] | no_license | #!/bin/sh
#Simple script print current audio/video mpv
musicIcon=""
cmus_current=$(cmus-remote -C status | grep "tag title" |awk '{print $3 $4 $5}')
if [ -z "$cmus_current" ]
then
echo -n "%{F#FF0000}$musicIcon off%{F-}"
else
echo -n "%{F#00FF00}$musicIcon $cmus_current%{F-}"
fi
| true |
34fe231f6bf6e4a66a737e55e32cdf6a44464439 | Shell | zanul-siddiqui-au3/realiize | /scripts/tslint.sh | UTF-8 | 882 | 4.03125 | 4 | [] | no_license | #!/bin/bash
STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM | grep ".ts\{0,1\}$")
if [[ "$STAGED_FILES" = "" ]]; then
exit 0
fi
PASS=true
printf "\n\rValidating Typescript:\n\r"
# Check for tslint
which ./node_modules/.bin/tslint &> /dev/null
if [[ "$?" == 1 ]]; then
printf "\t\033[41mPlease ins... | true |
581aa6a7b7d7e24db721da5aa8de659c566ddbb0 | Shell | stephanarts/guardian | /tests/libguardian/file-verify.test | UTF-8 | 1,543 | 3.796875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
test_valid_hash() {
TEMP_FILENAME=`mktemp`
# Test a file bigger then the buffer-size
dd if=/dev/urandom bs=$1 count=1 2>/dev/null >> $TEMP_FILENAME
SUM=`shasum $TEMP_FILENAME | awk '{ print $1 }'`
if test $# -eq 2
then
dd if=/dev/urandom bs=$2 count=1 2>/dev/null >> $TEMP_FI... | true |
d7024b5c7f500f8f52a8167a643d729aad1b7080 | Shell | jakezeal/lightning-ios-wallet | /grpc-swift-master/.travis-install.sh | UTF-8 | 1,369 | 3.046875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
#
# Copyright 2017, gRPC Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | true |
0a327b43402e6e3d37408a1b9da96be5139fabc3 | Shell | opetfoundation/eco_blockchain | /main-network-setup/scripts/start-root-ca.sh | UTF-8 | 943 | 3.515625 | 4 | [] | no_license | #!/bin/bash
#
# Configure and start Fabric CA server.
#
# This is a bootstrap script for the Fabric CA docker container,
# see the ../docker-compose-fabric-ca.yaml config.
set -e
SCRIPT_PATH=`dirname $0`
echo $FABRIC_CA_SERVER_HOME
echo $FABRIC_CA_SERVER_CSR_HOSTS
echo $FABRIC_CA_SERVER_CA_NAME
mkdir -p $FABRIC_CA_... | true |
2e85a30ef3a182a5d048f8692578968ef4ef48fb | Shell | atsgen/tf-infra-tools | /docker-hub/repo-list.sh | UTF-8 | 1,569 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# script to list all the repos, or repos for a given tag in given domain
# Maintainer: prabhjot@atsgen.com
#
# new tag with which image needs to be tagged
TAG=''
DOMAIN='atsgen'
# A POSIX variable
OPTIND=1 # Reset in case getopts has been used previously in the shell.
usage() {
echo "$0 ... | true |
86dac3b31f7a4f1849b24fcfb24f2c1ec98bae61 | Shell | subhankarc/rdpg-boshrelease | /jobs/rdpgd-service/templates/shell/env.erb | UTF-8 | 1,929 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/var/vcap/packages/bash-4.3/bin/bash
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables
jobName="rdpgd-service"
vmName="<%= name %>" # BOSH VM name
vmIndex="<%= index %>" # Index within cluster
deploymentName="<%= spec.deployment %>"
domai... | true |
827cd5aea9dfb45e470b5735dc2e7df3b8182134 | Shell | todokku/cloudland | /scripts/frontend/create_ex.sh | UTF-8 | 295 | 2.90625 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
ethcfg=/etc/network/interfaces.d/eth0.cfg
brcfg=/etc/network/interfaces.d/br4090.cfg
cp $ethcfg $brcfg
sed -i "s/eth0/br4090/g" $brcfg
sed -i "/iface br4090 inet/a bridge_ports eth0" $brcfg
ifdown eth0
sed -i "s/static/manual/" $ethcfg
sed -i "3,$ d" $ethcfg
ifup eth0
ifup br4090
| true |
b49dbc7122c4e79601087a6b88bd00b7a205f4b3 | Shell | RK4/HD-CPS_HPCA-22 | /mst.sh | UTF-8 | 1,612 | 2.6875 | 3 | [] | no_license | #!/bin/bash
export MAIN_DIR=`pwd`
export GALOIS_DIR=$MAIN_DIR/Galois/build/lonestar
export PMOD_DIR=$MAIN_DIR/PMOD/Galois-2.2.1/build/apps
mkdir -p output
echo "" > output/MST.out
echo "${green}Running MST with RELD${reset}"
echo "Running MST with RELD" >> output/MST.out
$GALOIS_DIR/boruvka/boruvka $MAIN_DIR/datase... | true |
f34a2acc26cc5b78ad0b8f20c32ac4b13aea557f | Shell | harper-yang/shell-sample | /scripts/第一章之小试牛刀/c.sh | UTF-8 | 190 | 3.078125 | 3 | [] | no_license | #!/bin/bash
declare -A fruit
# 定义数组
fruit=([apple]='111' [orange]='222')
# 获取数组中的值
echo "apple price = ${fruit[apple]}"
# 获取数组中的key
echo "${!fruit[*]}"
| true |
4e08ce8ae60b9ba782ba71df6a66d661597d8061 | Shell | Infinity-James/.dots | /.zprofile | UTF-8 | 1,324 | 2.75 | 3 | [] | no_license | # my werid aliases
alias cat="ccat --bg=dark"
alias reddy="redis-server /usr/local/etc/redis.conf"
alias vim="nvim"
alias watchtest="clear && fswatch -o test build | xargs -n1 -I{} npm test"
alias mong="mongod --config /usr/local/etc/mongod.conf"
alias rimraf="rm -rf"
alias ag="ag --color-path \"1;34\" --color-line-num... | true |
bd26998e270e0e10d31430a2228b849e616952f8 | Shell | cha63506/bosh-softlayer-tools | /ci/scripts/bosh-stemcell | UTF-8 | 1,224 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
(
set -e
echo -e "\n Get stemcell version..."
STEMCELL_VERSION=`cat vsphere-stemcell/version`
STEMCELL_VERSION=0000
echo $STEMCELL_VERSION > stemcell-version
s3cmd put stemcell-version s3://bosh-softlayer-cpi-stemcells --access_key=$S3_ACCESS_KEY --secret_key=$S3_SECRET_KEY
echo -e "\n Inst... | true |
95dbf7ec65913d17b597a6cce1a0cd4b80cb3791 | Shell | UniversitatBarcelonaMathInfo/SOI | /2p/je/1ej.sh | UTF-8 | 443 | 3.453125 | 3 | [] | no_license | #!/bin/bash
rm -fr practica2
mkdir practica2
# entrem a la practica 2
cd practica2
# creem els 5 directoris demanats
for i in {1..5}
do
mkdir dir_$i
done
# crear 10 directoris dins de dir_1
for i in {1..10}
do
mkdir dir_1/carpeta_$i
done
echo "f" > foo1.txt
echo "f" > foo2.txt
echo "f" > foo.c
echo "f" > README
... | true |
7893b851c859fff443f295820330389fc864b9e7 | Shell | pv2k/DWDM_Project | /Code/cde.sh | UTF-8 | 324 | 3.296875 | 3 | [] | no_license | #!/usr/bin/env bash
c="_text"
i="PAKDD-3year"
j="./Text/"
echo "Opening pdf folder: " $i
echo "pdf_text folder:Text"
mkdir -p Text
for k in ./$i/*.pdf
do
pdfname="$(echo $k | rev | cut -d "/" -f 1 | rev)"
echo $j$pdfname$c
python pdf2txt.py -o "$j$pdfname$c" -t text "$k"
echo "Converting :" $pdfname
d... | true |
4d3da8fee948c18fcfe53fb408663b9065888dfb | Shell | mvtthxw/Bash_cwiczenia | /Tablice.sh | UTF-8 | 1,441 | 3.71875 | 4 | [] | no_license | #!/bin/bash
#Zadanie 1
#sortowanie przez podstawianie
function zad1(){
tablica=("$@")
n=${#tablica[*]}
for (( i=1;i<$n;i++)); do
j=$i-1
tymczasowe=${tablica[$i]}
while (( $j>=0 && $(echo "${tablica[j]} > ${tymczasowe}" |bc -l) )); do
tablica[$j+1]=${tablica[$j]}
j=$j-1
done
tablica[j+1]=${tymczaso... | true |
02610f2d14e612fa94746b6d6d710e9547e31cb1 | Shell | lavabit/robox | /res/scripts/delete.sh | UTF-8 | 2,429 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# Handle self referencing, sourcing etc.
if [[ $0 != $BASH_SOURCE ]]; then
export CMD=$BASH_SOURCE
else
export CMD=$0
fi
# Ensure a consistent working directory so relative paths work.
pushd `dirname $CMD` > /dev/null
BASE=`pwd -P`
popd > /dev/null
ORG="$1"
NAME="$2"
PROVIDER="$3"
VERSION="$4"
if [ ... | true |
710eabdb3dd28d3d658ab781c003920e27c6b617 | Shell | 993639542/shell | /ip.sh | UTF-8 | 422 | 2.796875 | 3 | [] | no_license | #!/bin/bash
#随机生成网卡配置文件
for i in `seq 10`
do
num=$[RANDOM%127+128]
cat > /home/ens$i <<EOF
TYPE=Ethernet
PROXY_METHOD=none
ROWSER_ONLY=no
OOTPROTO=static
EFROUTE=yes
PV4_FAILURE_FATAL=no
PV6INIT=yes
PV6_AUTOCONF=yes
PV6_DEFROUTE=yes
PV6_FAILURE_FATAL=no
PV6_ADDR_GEN_MODE=stable-privacy
NAME=ens$i
EVICE=ens$i
NBOOT=... | true |
b8a5682c8fb71f5dbc531954495727d463e8d2e7 | Shell | Quantum-Platinum-Cloud/YCSB | /vitess/scripts/benchmark-all-clusters.sh | UTF-8 | 3,738 | 4 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script loops through the cluster configurations specified in
# clusters.json, bringing up the cluster as defined and then running
# all the YCSB benchmarks against it, and then pulls the results.
# ensure google cloud project is set
project_id=`gcloud config list project | sed -n 2p | cut -d " " -f... | true |
96fbaa75f31c317c6ab587334b56b144a7170015 | Shell | kdave/xfstests | /tests/btrfs/246 | UTF-8 | 1,361 | 3.21875 | 3 | [] | no_license | #! /bin/bash
# SPDX-License-Identifier: GPL-2.0
# Copyright (c) 2021 SUSE Linux Products GmbH. All Rights Reserved.
#
# FS QA Test 246
#
# Make sure btrfs can create compressed inline extents
#
. ./common/preamble
_begin_fstest auto quick compress
# Override the default cleanup function.
_cleanup()
{
cd /
rm -r -f ... | true |
2e44941e5238ac239a219698e2dfbe8fd9fcdbaf | Shell | warlockza/IBM-Data-Merge-Utility | /build/build.sh | UTF-8 | 1,381 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# only run when executed from inside /build dir
if [ -f sample-context.xml ]; then
set -evx
PROJECT_BASE_DIR=$(cd ..; pwd)
# clean generated static sources
rm -rf "$PROJECT_BASE_DIR"/idmu-editor/src/main/resources/META-INF/resources/editor/*
# enter static sources project root
cd ... | true |
adec1571811aabc78b758db3556038fcafb45ff8 | Shell | zfruc/smr-simulator | /src/private_test.sh | UTF-8 | 1,967 | 2.859375 | 3 | [] | no_license | #!/bin/bash
set -xue
nine=(5582 11164 16746 22328 27910 33492 39074 44656 50238)
one=(5582)
total_ssd=56863
total_fifo=10718
echo "8:16 2048000" > /sys/fs/cgroup/blkio/fo1/blkio.throttle.read_bps_device
echo "8:16 2048000" > /sys/fs/cgroup/blkio/fo1/blkio.throttle.write_bps_device
echo "8:16 10240000" > /sys/fs/c... | true |
5f936db08667837b9bf120230f91e3be2240decd | Shell | thoughtpalette/Tetra | /run-build.sh | UTF-8 | 419 | 3 | 3 | [] | no_license | #!/bin/bash
export DISPLAY=:10
Xvfb :10 -screen 0 1366x768x24 -ac &
PIDS[0]=$!
#google-chrome --remote-debugging-port=9222 &
#PIDS[1]=$!
node server &
PIDS[2]=$!
sleep 2
npm test
RESULT=$?
cat ./coverage/net/lcov.info | ./node_modules/codecov.io/bin/codecov.io.js
for i in "${PIDS[@]}"
do
if ! kill $i > /dev... | true |
7013367071a3f5283419857ad31f6fd1f1e7f2a3 | Shell | CEnnis91/edgeos-scripts | /lib/vyatta.sh | UTF-8 | 1,152 | 3.859375 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
# vyatta.sh
__SELF_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
# shellcheck disable=SC1090
. "${__SELF_DIR}/globals.sh"
if [[ "$DEBUG" == "1" ]]; then
CMD_WRAPPER="echo"
else
CMD_WRAPPER="/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper"
if [[ ! -e "$CMD_WRAPPER" ]]; then
echo "ERROR... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.