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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
be6ddfae46db7fd796e52240f5cd0b3198f944c0 | Shell | huaminglin/docker-demo | /tomcat-demo/keytool/update.sh | UTF-8 | 993 | 2.515625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
cd $(dirname $0)
docker stop demotomcat
docker rm demotomcat
docker create --name demotomcat tomcat:8.5
docker start demotomcat
docker exec -it demotomcat keytool -genkey -alias tomcata -keyalg RSA -keystore /root/tomcat.jks -storetype pkcs12 -storepass changeit -dname "CN=127.0.0.1, OU=myunit, O... | true |
0f71c30d55f229d7c2f968f24a20f422aa298917 | Shell | akivajp/wmt2017 | /scripts/tune.sh | UTF-8 | 3,927 | 3.390625 | 3 | [] | no_license | #!/bin/bash
dir="$(cd "$(dirname "${BASH_SOURCE:-${(%):-%N}}")"; pwd)"
source "${dir}/common.sh"
TUNE_NBEST=200
EVAL=bleu
MAX_ITERS=20
usage()
{
echo "usage: $0 mt_method corpus1 corpus2 inifile task_dir [tune_name [alter_lm]]"
echo ""
echo "options:"
echo " --threads={integer}"
echo " --eval={string}"
... | true |
add43d23624532cd9e91d93fdc19868f229730e3 | Shell | mimaun/rc | /bash/bashrc | UTF-8 | 978 | 2.609375 | 3 | [] | no_license | export PATH=$PATH:/usr/local/bin
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export JAVA_HOME=/usr/local/java/j2sdk
export PATH=$PATH:$JAVA_HOME/bin
export PATH=/usr/bin:$PATH
# export PYTHONPATH=$HOME/lib/python2.7/site-packages/:$PATH
#連続したコマンドは記憶しない(ignoredups)
#スペースで始まるコマンドは記憶しない(ignorespace)
export HISTCONTRO... | true |
73813f5ddee6b6e0bef3e8789b32003eb9463e07 | Shell | 0x7An/dockerized | /build.sh | UTF-8 | 528 | 3.90625 | 4 | [] | no_license | #!/usr/bin/env bash
# Purpose: Build image with specified Dockerfile name under `Dockerfiles/`.
# Usage:
#
# ./build.sh # Build with `Dockerfiles/Dockerfile`
# ./build.sh <name> # name of file under `Dockerfiles/`.
f="$1"
shift
if [[ X"${f}" == X"" ]]; then
df="Dockerfiles/Dockerfile"
label="ir... | true |
705aaa6fc402dbb4c7f8c4ca2aba16f45eea57d5 | Shell | andrewharvey/dotfiles | /etc/rc.local | UTF-8 | 487 | 2.9375 | 3 | [] | no_license | #!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
HIDDEVICE=$(dmesg | g... | true |
cd5da2367e5507c94385a04035d0d76e312dfe32 | Shell | ThomasTJdev/flask_system_information | /bash/ping.sh | UTF-8 | 787 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# http://askubuntu.com/questions/413367/ping-multiple-ips-using-bash
# get absolute path to config file
SCRIPTPATH=`dirname $(readlink -f $0)`
CONFIG_PATH=$SCRIPTPATH"/../config/ping_hosts"
catCmd=`which cat`
pingCmd=`which ping`
awkCmd=`which awk`
sedCmd=`which sed`
numOfLinesInConfig=`$sedCmd -n '$=' $C... | true |
b7df47ba85b59f4ab8c9731df982ad1607898ac6 | Shell | vzctl/duck | /files/lib/installer.d/10-autodb | UTF-8 | 164 | 2.65625 | 3 | [] | no_license | #!/bin/bash
set -e
. /lib/libinstaller.sh
info "Setting autodb variables"
if ! a_cmdline; then
error "Failed to set kernel arguments"
exit 1
fi
exit 0
| true |
05a6a8ebbe3ace00728522f6a457c53fd500e20e | Shell | ntrel/scripts | /git-pick-fetch.sh | UTF-8 | 193 | 2.75 | 3 | [] | no_license | #untested
OB=FETCH_HEAD
NB=HEAD
echo Picking from $OB onto $NB; press a key to start
read -n1
#~ NB=origin/master
#~ git fetch
#~ git checkout $NB
git cherry-pick `git merge-base $NB $OB`..$OB
| true |
dbcf27171b6c00c8e176eefb3c43f5627fc260de | Shell | Kinoko-Huang/project | /PATH-SCRIPT-201608/wrf/wrf_run | UTF-8 | 6,682 | 3.65625 | 4 | [] | no_license | #!/bin/sh
MYDIR=`/usr/bin/dirname $0`
cd $MYDIR || exit 1
MYDIR=`/bin/pwd`
MYNAME=`/bin/basename $0`
ECHO="echo LOG:${MYNAME}:"
if [ ! -f $MYDIR/wrf_run.config ]; then
$ECHO "$MYDIR/wrf_run.config does not exist"
exit 1
fi
source $MYDIR/wrf_run.config
if [ $# -eq 1 ]; then
INIT_TIME=$1
else
$ECHO "Usage: $... | true |
13bb9d85809d13fec58bc95edabdefa686bfbc69 | Shell | andrewchambers/p2pkgs | /bin/build-packages-ifchange | UTF-8 | 687 | 3.953125 | 4 | [] | no_license | #!/bin/sh
# Create a temporary do script so we can use the redo -j option
# in conjunction with redo-ifchange (which takes no options).
set -eu
usage() {
echo "Usage: $0 [-j parallelism] pkgs..." 1>&2
exit 1
}
parallelism="1"
while getopts "j:" o
do
case $o in
j)
parallelism="${OPTARG}"
;;
... | true |
9c74a34028c0d277d7d9d4bd2086a33fa799094f | Shell | scy/qb | /contrib/tsbackup/tsrestore.sh | UTF-8 | 264 | 3.21875 | 3 | [
"WTFPL",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
# Run this script in your qb base directory. Supply the output of tsbackup.sh on
# stdin. The script will then touch the files contained in the list and set
# their modification time accordingly.
while read -r ts file; do
touch -d "@$ts" "$file"
done
| true |
0d8bfbde38e354688b9f360e304283835311f0a8 | Shell | mlminion/sweet | /benchmarks_sphere/h=g=r=1_f=0/compute_max_norm_all.sh | UTF-8 | 249 | 2.703125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
FILE="prog_h_t00000000000.00111111.csv"
for i in linear_gaussian_*; do
if [ -e "$i/$FILE" ]; then
./compute_max_norm.py "linear_gaussian_dam_rk4_robert_t0.0001_stable/$FILE" "$i/$FILE"
else
echo "$i/$FILE [not found]"
fi
done
| true |
14aaadb7846c5a1237421739b812426a57f6070a | Shell | vangorra/python_withings_api | /scripts/common.sh | UTF-8 | 923 | 3.65625 | 4 | [
"MIT"
] | permissive | VENV_DIR=".venv"
PYTHON_BIN="python3"
LINT_PATHS="./withings_api ./tests/ ./scripts/"
function assertPython() {
if ! [[ $(which "$PYTHON_BIN") ]]; then
echo "Error: '$PYTHON_BIN' is not in your path."
exit 1
fi
}
function enterVenv() {
# Not sure why I couldn't use "if ! [[ `"$PYTHON_BIN" -c 'import ven... | true |
405902453e68c7c6117b6fc85b03d3d57c082a5a | Shell | DaniilD/BeatsPro | /scripts/migrate.sh | UTF-8 | 383 | 3.171875 | 3 | [] | no_license | #!/bin/sh
SCRIPT_DIR=$(cd -- "$(dirname -- "$0")" && pwd -P)
WORK_DIR="${SCRIPT_DIR}/.."
# check if .env exists
if [ ! -f "${WORK_DIR}"/.env ];then
printf "\033[31m.env file not found\033[0m\n"
exit 3
fi
# load .env
. "${WORK_DIR}"/.env
migrate -path migrations-dev -database "${DB_DRIVER}://${DB_USER}:${... | true |
d5cfaa8a5c7abcded576f42e45c72c63f79171c3 | Shell | rshwet14/Real-Life-Script | /DiskSpaceCheck1 | UTF-8 | 286 | 2.9375 | 3 | [] | no_license | #!/bin/bash
# Author: Shwet Raj
# Date: 25/10/20
# Description: This script will check the disk space greater than 60%.
# Modified: 25/10/20
echo
echo Following is the disk space status
echo
# awk only those rows with the values
df -h | awk '0+$5 >= 10 {print}' | awk '{print $5, $6}'
| true |
e24c8b3331fb3b012e3dc3bc2a6fbc8f4ac16b45 | Shell | jraebrown/icloud-dotfiles | /.profile | UTF-8 | 1,470 | 3.09375 | 3 | [] | no_license | # Initialize homebrew
eval $(/opt/homebrew/bin/brew shellenv)
# Initialize my "xenv" language runtime managers if installed
if command -v rbenv &>/dev/null; then
eval "$(rbenv init -)"
fi
if command -v nodenv &>/dev/null; then
eval "$(nodenv init -)"
fi
if command -v pyenv &>/dev/null; then
eval "$(pyenv init --... | true |
52ebddce025c4d6686c6e4c8efb0b09d984a8659 | Shell | DemonBloody/twc | /cave.sh | UTF-8 | 2,004 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | # /cave
function _cave () {
_clanid
# if [[ -n $CLD ]]; then
# w3m -debug $ENC "$URL/clan/$CLD/quest/take/5" -o user_agent="$(shuf -n1 .ua)" | head -n15
# w3m -debug $ENC "$URL/clan/$CLD/quest/help/5" -o user_agent="$(shuf -n1 .ua)" | head -n15
# fi
_condition () {
SRC=$(w3m -debug -dump_source $ENC "$URL/cave/" ... | true |
6cac1036f9c4bb026fd0baa5c6cc37d6eaabe9d3 | Shell | estis75/CompetitivePrograming | /Exec.sh | UTF-8 | 1,253 | 3.796875 | 4 | [] | no_license | #!/bin/bash
if [ $# -ne 1 ]; then
echo "designate a file name"
exit 1;
fi
if [ "$1" == "init" ]; then
rm testCase/* 2> /dev/null
for i in {1..10}; do
touch testCase/`printf %02d $i`.txt
done
exit 0;
fi
if [ "$1" == "clear" ]; then
if [ ! `find -name "*_out.cpp"` ]; then
exit 0
fi
rm *_out... | true |
8a6cb9b4b0bb672297d8c05ab775e606421cddd3 | Shell | koushikkirugulige/cricket-commentry | /cricket.sh | UTF-8 | 1,067 | 3.015625 | 3 | [] | no_license | #!/bin/bash
echo "which team"
read team
echo "Enter the over"
read x
y=1
while :
do
wget -o dum.txt -O file.html http://www.cricbuzz.com/live-cricket-scores/18461/sl-vs-ind-3rd-test-india-tour-of-sri-lanka-2017
sed -i -e 's/<[^>]*>//g' file.html
grep -o $team\ [0-9][0-9]/[0-9]\ \([0-9]\.[0-9]\ Ovs\) file.html #score... | true |
58ddbe6a1414f00fd9a8b8520250e33df031ca30 | Shell | flaf/miscellaneous | /puppet/modules/pxeserver/files/jessie-elea-moosql/partman_early_command | UTF-8 | 5,167 | 3.84375 | 4 | [] | no_license | #!/bin/sh
### This file is managed by Puppet, don't edit it ###
exec >/tmp/partition.log 2>&1
set -x
parted='parted --script --align=opt'
c_ssd=1
c_sata=1
for i in a b c d
do
size=$(parted -m /dev/sd$i unit GB print | grep "^/dev/sd$i" | cut -d':' -f2)
if [ "$size" = '200GB' ]
then
eval l_ssd$c_... | true |
0737b3d7caebdfad9a0b0edb209f6ce33ea97043 | Shell | fledge-iot/fledge | /scripts/extras/fledge_update | UTF-8 | 9,480 | 3.96875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
##
# This script is copied into Fledge 'bin' directory by the Fledge install process
#
# This script let the user to update Fledge either manually or in auto mode via a schedule
# enable/disable/remove and also to set the time interval of the schedule for apt package update.
#
##
#
# Note:
# current imple... | true |
30ec1990ffed2abcfdc5999217faafbb0e0f71da | Shell | silverlovesl/xorm-entity-gen | /gen-electricity.sh | UTF-8 | 488 | 3.171875 | 3 | [] | no_license | #! /bin/bash
echo -e "Input table name"
read TABLE_NAME
OUTPUT=$GOPATH/src/bitbucket.org/beecomb-grid/renewable-energy-institute-api/entities
# Output file name
OUTPUT_FILE_PATH=${OUTPUT}/$(tr '[A-Z]' '[a-z]' <<< ${TABLE_NAME})
# Generate go entity
python generate.py \
--user=rei_user \
--host=127.0.0.1 \
--p... | true |
219aa7ed3921549a5d45112b3bcf5ffd7fbe5f55 | Shell | jgwest/turtl-docker | /postgres/artifacts/pg-dump-to-temp-file.sh | UTF-8 | 649 | 3.390625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
export SCRIPT_LOCT=$( cd $( dirname $0 ); pwd )
cd $SCRIPT_LOCT
. ./pg-container-includes.sh
# -------------------------
create_scoped_temp_dir "pg-dump-dir"
# GENERATED_TMP_DIR
TEMP_DIR=$GENERATED_TMP_DIR
pg_dump --format=directory --file=$TEMP_DIR --compress=0 -d postgres -U postgres -p 5432
if ... | true |
8ac204ad88ddb06f28f6dea93400051ba1994aa1 | Shell | carlosmccosta/ros_development_tools | /eclipse/eclipse_cmake.sh | UTF-8 | 410 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
build_dir=${1:-"$HOME/catkin_ws/build"}
source_dir=${2:-"$HOME/catkin_ws/src"}
build_type=${3:-'Release'} # Debug | Release | MinSizeRel | RelWithDebInfo
eclipse_version=${4:-'4.6'}
make_args=${5:-'-j8'}
cd "${build_dir}"
cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=${build_type} -DCMAKE_ECLIP... | true |
01b2446e02a8a7ce0c0d1a2416fb385316420d09 | Shell | ministryofjustice/hmpps-mis-terraform-repo | /ec2-ndl-dfi/scripts/create_data-sync-task.sh | UTF-8 | 1,479 | 3.09375 | 3 | [] | no_license | #!/bin/bash
REGION=$1
SOURCE_LOCATION_ARN=$2
CLOUDWATCH_LOG_ARN=$3
NAME=$4
FSX_SG_ARN=$5
USER_PARAM=$6
PASS_PARAM=$7
FSX_DOMAIN=$8
OPTIONS=VerifyMode="NONE",OverwriteMode="ALWAYS",Atime="BEST_EFFORT",Mtime="PRESERVE",Uid="NONE",Gid="NONE",PreserveDeletedFiles="REMOVE",PreserveDevices="NONE",PosixPermissions="NONE",Task... | true |
030e5d1595c0de513752a4de649b2816cdbe3ee2 | Shell | bruceSz/learnToexcellent | /shell/emulate_dir.sh | UTF-8 | 516 | 3.75 | 4 | [] | no_license | #!/bin/sh
# DIR pretends we 're the DIR
function usage
{
cat < EOF >&2
Usage: $0 [DOS flags] directory or directories
where:
/D sort by columns
/H show help for this shell script
/N show long listing format with filenames on right
EOF
exit 1
}
postcmd=""
flags=""
while [ $# -gt 0 ]
do
cas... | true |
7a4cefd4cc34c2ea59c731e4d74085585030c5e6 | Shell | tungtran3012/Linux2018 | /GKD1-L2/bai3.sh | UTF-8 | 646 | 2.9375 | 3 | [] | no_license | #!/bin/bash
bai3()
{
if [ $1 -eq 0 ]
then
if [ $2 -eq 0 ]
then
if [ $3 -eq 0 ]
then
echo "PT vo so nghiem"
else
echo "PT vo nghiem"
fi
else
result1=$(echo "scale=2;(-$3)/$2"|bc)
echo "PT co so nghiem la: $result1"
fi
else
delta=$(($2*$2-4*$1*$3))
if [ $delta -lt 0 ]
then
echo "PT vo nghiem"
... | true |
c7a786a5abc73c457c2ca297a9a5f821c62802c3 | Shell | qpfiffer/DotFiles | /.vim/deploy/scripts/provision_ci.sh | UTF-8 | 191 | 2.515625 | 3 | [] | no_license | #!/bin/bash
. base.sh
CI_DETAILS=$1
host=$(cleaned_cluster_detail $CI_DETAILS "ci_ip")
cat {base,self_provision_ci}.sh | \
ssh -o StrictHostKeyChecking=no \
-At ubuntu@"$host"
| true |
31b57a7c37cd9c527295d8b02a65e10f40ac334e | Shell | diku-kmc/kleenexlang | /bench/re2j/getant.sh | UTF-8 | 737 | 4 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "Checking if 'ant' is installed on system..."
if hash ant 2>/dev/null; then
echo "'ant' is already installed."
echo "Making ./ant point to system ant"
rm -f ant
echo "#!/bin/sh" >> ant
echo "ant \$@" >> ant
chmod +x ant
exit 0
fi
echo "'ant' is not installed; instal... | true |
bded5cfd9d32f5b4fd552f5c988a0ff147fc3e4f | Shell | tnakaicode/jburkardt | /doomsday/doomsday_prb.sh | UTF-8 | 500 | 3.046875 | 3 | [] | no_license | #!/bin/bash
#
g++ -c -I/$HOME/include doomsday_prb.cpp
if [ $? -ne 0 ]; then
echo "Errors compiling doomsday_prb.cpp"
exit
fi
#
g++ doomsday_prb.o /$HOME/libcpp/$ARCH/doomsday.o -lm
if [ $? -ne 0 ]; then
echo "Errors linking and loading doomsday_prb.o."
exit
fi
#
rm doomsday_prb.o
#
mv a.out doomsday_prb
./doom... | true |
a4f2bb55b0f4b330d30f9b45815aa23225719805 | Shell | prboyer/linux-stuff | /zshsetup.sh | UTF-8 | 2,521 | 3.765625 | 4 | [] | no_license | #!/bin/bash
# Initialize variables that control script behavior
local wsl_mode=false;
# Handle command line switches
while [[ "$1" =~ ^- && ! "$1" == "--" ]];
do case $1 in
-w | --WSL )
wsl_mode=true;
;;
-t | --theme )
shift; theme=$1;
;;
-u | --username )
shif... | true |
d9247949700fb01cacad9232f740d574d63b62cc | Shell | pmarcell10/OpRendszerek | /createFiles.sh | UTF-8 | 1,169 | 4.25 | 4 | [] | no_license | #!/bin/bash
#Signal
trap exit_handler EXIT
exit_handler() { # Config törlése kilépéskor
if [ -f config.txt ] ; then
rm config.txt
echo "Config törölve."
fi
}
echo "$(basename $0) started running with process ID: $$"
# Paraméter ellenőrzés
if [ $# -ne 1 ] ; then
echo "No parameter directory given. Usage: $(bas... | true |
a5f6980012a055a0e10d7a55c510ae3e8c8a9b2a | Shell | jethrosun/NetBricks | /test/app-xcdr_t/profile.sh | UTF-8 | 546 | 2.6875 | 3 | [
"ISC"
] | permissive | #!/bin/bash
# This script generates perf results that we can use to get a flamegraph.
#set -x
set -euo pipefail
# clean the states of transmission
sudo rm -rf downloads/*
sudo rm -rf config/*
mkdir -p config downloads
sudo rm -rf /data/downloads/*
sudo rm -rf /data/config/*
sudo mkdir -p /data/config /data/download... | true |
7b9b3215fa7a8c8ef0a0b7a2d0f3a85513f3743f | Shell | UWrc/UWrc.github.io | /static/files/hyak101/python/start-jupyter-forwarding.sh | UTF-8 | 904 | 4.0625 | 4 | [] | no_license | #!/bin/bash
# First, get the connection information off of the klone login node:
JUPYTER_INFO=$(ssh klone-node 'cat ~/.jupyter-port-and-token' 2>/dev/null)
# If we didn't receive anything, print an error message and exit:
if [[ -z $JUPYTER_INFO ]]; then
echo "Error: Couldn't retreive Jupyter server port/token"
... | true |
2389bd4fe704cb24c8019e06d8b89d0429d3b932 | Shell | andergcp/holberton-system_engineering-devops | /0x04-loops_conditions_and_parsing/7-clock | UTF-8 | 236 | 3.515625 | 4 | [] | no_license | #!/usr/bin/env bash
# displays the time for 12 hours and 59 minutes
hours=0
while [ $hours -lt 13 ]
do
echo "Hour: $hours"
mins=1
while [ $mins -le 59 ]
do
echo $mins
((mins++))
done
((hours++))
done
| true |
3493d80f0a07dd442eb454d5099d37006b164bc1 | Shell | heubi95/pyscaffold | /tests/system_test.sh | UTF-8 | 906 | 3.484375 | 3 | [] | no_license | #!/bin/bash
set -e -x
PROJECT="my_project"
# Delete old project if necessary
if [ -d $PROJECT ]; then
rm -rf $PROJECT
fi
# Setup a test project
putup $PROJECT
# Run some common tasks
cd $PROJECT
python setup.py test
python setup.py doctest
python setup.py docs
python setup.py version
python setup.py sdist
python ... | true |
f88ac35d6b4a4af8db3eb2119595ef29f8b7dc3a | Shell | Samironius/Python-Scripts | /script | UTF-8 | 187 | 2.640625 | 3 | [] | no_license | #!/bin/bash
testVariable=$1
# for testssxs
if [[ $testVariable == "hw2.py" ]]; then
python3 $testVariable data_json.json result.json
ls
else
echo "enter please patch to hw2.py"
fi
| true |
ffba4b9dedbe5367c6a4351206785e744d8f1b84 | Shell | mhoh3963/dk4cub-script | /util.sh | UTF-8 | 1,165 | 3.90625 | 4 | [] | no_license | #! /bin/bash
#set -x
function trim()
{
local __STR=$1
if [ -n "$STR" ]
then
__STR=`echo $__STR | sed -e 's/^ *//g' -e 's/ *$//g'`
fi
echo $__STR
}
function cut_trim()
{
local __STR=$1
local __SEL=$2
local __DEL=$3
if [ -n "$__STR" -a -n "$__SEL" ]
then
if [ -z "$__DEL" ]
then
__STR=`echo $__STR | c... | true |
8df29501eceb7974a8cd812900b689845e4fc7a7 | Shell | arthurdehgan/cocobrainchannel | /python_files/cocostart.sh | UTF-8 | 1,328 | 3.171875 | 3 | [] | no_license | #! /bin/bash
# On recupere les arguments du script
subject=$1
length=$3
#path=$2
sport=$2
source "$(pwd)"/muse/bin/activate
clear
printf "Calibration utility\n"
#read -p "Press Any key to start calibration." -n1 -s
printf "\n"
read -p "Press Any key to start the first recording." -n1 -s
# le dernier argument est la d... | true |
759837181d29c4bd67454b8560e553de4787c23f | Shell | ken3/LFS | /8.2/scripts/503_backup-lfs.sh | EUC-JP | 547 | 2.875 | 3 | [] | no_license | #!/bin/bash
# LFSե륷ƥΥХååפμ褹
BASEDIR=`pwd`
. buildenv
[ `whoami` == root ] || exit 2
[ $LFS != "" ] || exit 2
cd $LFS && tar zcvf ${BASEDIR}/../lfs-stage4.tar.gz \
bin \
boot \
dev \
etc \
home \
lib \
lib64 \
media \
mnt \
opt ... | true |
0c695776203cc4f093c8573fecd2da88c40880e2 | Shell | DeadDork/manuals | /BASH/bourne_shell/www.grymoire.com/Unix/Scripts/ShCmdArgs.sh | UTF-8 | 394 | 3.546875 | 4 | [] | no_license | #!/bin/sh
usage() {
echo `basename $0`: ERROR: $* 1>&2
echo usage: `basename $0` '[-[abc]] [-o file]' '[file ...]' 1>&2
exit 1
}
set -- `getopt "abco:" "$@"` || usage
a= b= c= o=
while :
do
case "$1" in
-a) a=1;;
-b) b=1;;
-c) c=1;;
-o) shift; o="$1";;
--) break;;
... | true |
9a8e89d8f699f34a9c7e93c55a80fa70c075404b | Shell | rklubenspies/easypost-ui | /run | UTF-8 | 817 | 3.8125 | 4 | [] | no_license | #!/bin/bash
# Shortcut to start up container in production or development using docker-compose
# Usage:
# Start as development: ./run dev
# Start as production: ./run prod
# Build or rebuild images: ./run build
case "$1" in
d | dev | development)
docker-compose -f docker-compose.yml -f docker-compose.... | true |
6841e80dc15d1e7ca1ee3b334240cd88d54fd150 | Shell | unDeadHerbs/init | /home/.zshrc.d/05-reconnect.base | UTF-8 | 271 | 2.890625 | 3 | [] | no_license | #! /usr/bin/env zsh
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] || [ -n "$SSH_CONNECTION" ]; then
if [[ "$TERM" != "dumb" ]]; then
screen -dr >/dev/null && exit
if [[ "$(tmux ls|grep -v attached|wc -l)" == "1" ]]; then
tmux attach && exit
fi
fi
fi
| true |
ac7f2b42c3dffc480d88af5d66e1489de7c8c9d8 | Shell | gderber/smgl-cauldron | /cauldron/lib/libcauldron | UTF-8 | 11,095 | 4 | 4 | [] | no_license | #!/bin/bash
#-------------------------------------------------------------------------------
##
##=head1 SYNOPSIS
##
## libcauldron is a set of functions used internally by the cauldron script
##
##=head1 COPYRIGHT
##
## Copyright 2009 by the Cauldron Team
##
##=head1 FUNCTIONS
##
##=over 4
##
#----------------------... | true |
544984dbed0c9dbf9d1c1ebc0bc9082896417913 | Shell | dolthub/dolt | /integration-tests/bats/query-catalog.bats | UTF-8 | 5,398 | 3 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats
load $BATS_TEST_DIRNAME/helper/common.bash
setup() {
setup_common
dolt sql <<SQL
CREATE TABLE one_pk (
pk BIGINT NOT NULL,
c1 BIGINT,
c2 BIGINT,
c3 BIGINT,
c4 BIGINT,
c5 BIGINT,
PRIMARY KEY (pk)
);
SQL
dolt sql <<SQL
CREATE TABLE two_pk (
pk1 BIGINT NOT NULL,
pk2 BIGI... | true |
fb9eeaf9febfe9e03263ebf93fdb7d143fd6eda3 | Shell | pcjoshi9/habitat-plans | /nagios-core/plan.sh | UTF-8 | 904 | 2.953125 | 3 | [] | no_license | pkg_origin=myorigin
pkg_name=nagios
pkg_version=4.2.0
pkg_maintainer="Some User <someuser@example.com>"
pkg_license=('Nagios Open Software License')
pkg_source=http://prdownloads.sourceforge.net/sourceforge/${pkg_name}/${pkg_name}-${pkg_version}.tar.gz
pkg_shasum=93be769854d7e64c526da29b79c92fb500a9795a82547a85ca0a9180... | true |
72fd10a9ddec6e9357311ce7984999c06f6dcb5b | Shell | nnur/recipes | /scripts/before_install.sh | UTF-8 | 167 | 2.53125 | 3 | [] | no_license | #!/bin/bash
if [ ! -d "/usr/apps/recipes" ]
then
echo "nothing to see here..."
else
sudo rm -rf /usr/apps/recipes
fi
sudo mkdir -p /usr/apps/recipes/recipes
| true |
f8a2c42777ea41c13d6f1d781f9789e8906ef668 | Shell | sgnn7/dotfiles | /bin/mem_watch | UTF-8 | 231 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
if [ -z "${1}" ]
then
echo "Need a command to run!"
exit 1
fi
${@} 2&>1 /tmp/mem_watch_output.log &
pid=$!
watch --differences -n 2 "cat /proc/${pid}/status | grep VmSize | awk '{print \$2 \$3}'"
kill $pid
| true |
f1cdbec471d8618aaaadaf97408731f4ce8040f4 | Shell | dargmuesli/jonas-thelemann_stack | /src/development/certificates/mkcert.sh | UTF-8 | 1,177 | 2.984375 | 3 | [] | no_license | #!/bin/sh
THIS=$(dirname "$(readlink -f "$0")")
create() {
NAME="$1"
shift
CONTENT=$*
path="$THIS/$NAME"
certfile="$path.crt"
keyfile="$path.key"
if [ "$CONTENT" != "" ]; then
# shellcheck disable=SC2086
mkcert \
-cert-file "$certfile" \
-ecdsa \
... | true |
09745a394a0584fc458eaac34db91bf4ad2b9cec | Shell | omkargundlur/shell | /miscellaneous.sh | UTF-8 | 1,014 | 3.484375 | 3 | [] | no_license | #!/bin/expect
#add password in run time execution
useradd demo2
echo 'unjG123@' | sudo passwd --stdin demo2
<<'output'
[root@centos shell]# echo 'unjG123@' | sudo passwd --stdin demo1
Changing password for user demo1.
passwd: all authentication tokens updated successfully.
[root@centos shell]#
output
#Taking Input fr... | true |
92c0d3364fd2d1f986ae36e0e1cb416dc27582a4 | Shell | LoganBarnett/dotfiles | /darwin-keyboard-install.sh | UTF-8 | 1,283 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
# Keyboard settings script found in: https://stackoverflow.com/a/58907582
# Quit System Preferences so it doesn't muck with your settings.
osascript -e 'tell application "System Preferences" to quit'
# Key codes, sans the 7000000xx prefix, can be found here:
# https://gist.github.com/MightyPork/6... | true |
97c350a5edacdb89779a7072ba533dda08ba0136 | Shell | octocraft/terraform-external-command | /tests/test_02_touch/verify.sh | UTF-8 | 112 | 2.703125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ ! -f "test.dat" ] && [ ! "hello" = "$(< test.dat)" ] ; then
exit 1;$
fi
rm -rf "test.dat"
| true |
f9d0a851c9da729c868cba8f5c5beb4cb2764a0f | Shell | uvdl/debian-var | /postinstall.sh | UTF-8 | 775 | 3.109375 | 3 | [] | no_license | #!/bin/bash
SERVICES="ModemManager lightdm hostapd variscite-bluetooth apt-daily.timer apt-daily apt-daily-upgrade.timer apt-daily-upgrade NetworkManager-wait-online"
TWOG=${1:-1} # number of 2.4 GHz antennas (default: 1)
FIVG=${2:-0} # number of 5.8 GHz antennas (default: 0)
# setup hostname to match serial numb... | true |
4beebb15df055af0161bde9852079669b013d84b | Shell | Matheswaaran/bash | /Dropbox/scripts/file.png.ch/if.and.or/if_and_or_chk.sh | UTF-8 | 203 | 2.921875 | 3 | [] | no_license | #!/bin/sh
sp="a.txt"
for i in *
do
#echo $i OK!
if [[ $i = $sp ]] || [[ $i = b.txt ]] || [[ $i = "1 sp" ]] || [[ $i = 2 ]] || [[ $i = *.m ]] || [[ $i = net* ]]
then
echo $i
else
echo rm -rf $i
fi
done
| true |
0f151469f584e71f51bfe354f68f49a0edfe898f | Shell | XervoIO/docker-run-php | /install_php.sh | UTF-8 | 1,440 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
set -x
# Variables
HOME=/home/mop
PHP_BREW_DIR=$HOME/.phpbrew
PHP_INSTALL_DIR=/opt/modulus/php
TEMP_DIR=$HOME/tmp
TMP_DIR=$TEMP_DIR
TMPDIR=$TEMP_DIR
PHP_BREW_FLAGS="+default +mysql +pgsql +fpm +soap +gmp +gd +opcache -- \
--with-libdir=lib/x86_64-linux-gnu --with-gd=shared --enable-gd-natf \
--w... | true |
5a465c37850eb174a1d13a40b93ea7d6bdb57869 | Shell | eventhorizonpl/sic | /modules/basic_tools.sh | UTF-8 | 2,579 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
source ./lib
function install_package()
{
if [ $OS == "rhel" ]
then
if [ $VERSION == "7" ]
then
show_message "Installing EPEL release package..."
rpm -ihv https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-11.noarch.rpm >> /tmp/install.lo... | true |
f57a78c9aa9f9df796cf213ef8c66f5c74d60724 | Shell | nikolasbasler/BEARCAVE | /scripts/trim_merge_SS_PE_CL72_var_min_length.sh | UTF-8 | 2,999 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# November 2018
softdir=../software/miniconda3/envs/py35/bin
# script for trimming adapter sequences from SS library PE data, removing short reads of user defined length, and merging overlapping PE reads.
# this script should be run from /BEARCAVE/scripts
# example command line: ./trim_merge_SS_PE_CL72_va... | true |
8fb570906fb93994963425e8af04ed21c9412f76 | Shell | uesugitatsuya/iFeral | /bdupload/bdupload | UTF-8 | 8,929 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# --------------------------------------------------------------------------------
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
bdinfocli_path="$DIR/tools/bdinfocli.exe"
export PATH=$DIR:$DIR/tools:$PATH
export MONO_PATH=$DIR/mono.net-4.0
# --------------------------------------------------------... | true |
947f52413998618bfc1c72befe0c35897e764333 | Shell | vaslabs/CameraPi | /usr/local/bin/taketimelapse | UTF-8 | 10,340 | 3.671875 | 4 | [] | no_license | #!/bin/bash
#===============================================================================
#
# FILE: taketimelapse
#
# USAGE: ./taketimelapse --aperture <value> --startshutterspeed <value>
# --endshutterspeed <value> --videoduration <seconds>
# --... | true |
664849a181cf28c38e8471e8095d629c7f01fa35 | Shell | maandr/infra | /host-machine/renew-ssl-certificates.sh | UTF-8 | 1,443 | 3.1875 | 3 | [] | no_license | #!/usr/bin/env bash
script_dir=$(dirname $(readlink -f "$0"))
project_dir="$(dirname ${script_dir})"
blue=$(tput setaf 4)
yellow=$(tput setaf 3)
green=$(tput setaf 2)
red=$(tput setaf 1)
normal=$(tput sgr0)
printf "\n\n"
printf "${yellow}disable nginx ssl.conf..${normal}\n"
mv ${script_dir}/config/nginx/ssl/weidelan... | true |
eb287958e9b9cdc248da456ecb014fe3d5604789 | Shell | kanaWEB/core | /graphics/askUser | UTF-8 | 143 | 3.34375 | 3 | [] | no_license | #!/bin/bash
read -r -p "$1:" answer
if [ -z $answer ]
then
{
colecho "No answer provided" $ERR
exit 1
}
fi
export USERANSWER=$answer
| true |
b18a4d19f8430b531e4bb0315ff051a7eec1bb18 | Shell | ykhemani/vault-local | /bin/vault.sh | UTF-8 | 5,100 | 3.21875 | 3 | [] | no_license | #!/bin/bash
export VAULT_TLS_DISABLE=${VAULT_TLS_DISABLE:-true}
export TLS_PRIVATE_KEY=${TLS_PRIVATE_KEY:-/etc/ssl/private/privkey.pem}
export TLS_CERTIFICATE=${TLS_CERTIFICATE:-/etc/ssl/certs/fullchain.pem}
export VAULT_FQDN=${VAULT_FQDN:-localhost}
if [ "${VAULT_TLS_DISABLE}" == "true" ]
then
export VAULT_ADDR="h... | true |
6fdbab868467a525f02a5d1ebb245dde2368304a | Shell | dbhaig/4642HD_ir_tx | /scripts/change_channel.sh | UTF-8 | 716 | 3.375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
# File Name: change_channel.sh
#
# Copyright 2015-2016 Don Haig (time4tux at gmail dot com)
# MIT Licence (See LICENSE.txt for details)
#
# Creation Date: 21-11-2015
LAST_MODIFIED="Tue 20 Dec 2016 04:42:44 PM EST -0500 "
VERSION=0.1
#
# Purpose: A script for MythTV to call to change the channel on
# 4... | true |
9d75558e7727b01244337b12362dfdcd9f32724d | Shell | codeprof/rpi-access-point-gen | /export-image/04-finalise/01-run.sh | UTF-8 | 6,594 | 2.796875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
IMG_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.img"
INFO_FILE="${STAGE_WORK_DIR}/${IMG_DATE}-${IMG_NAME}${IMG_SUFFIX}.info"
on_chroot << EOF
/etc/init.d/fake-hwclock stop
hardlink -t /usr/share/doc
EOF
if [ -d "${ROOTFS_DIR}/home/master/.config" ]; then
chmod 700 "${ROOTFS_DIR}/home... | true |
d5974f2cc7294ccf949d00985ac511b2d94a0c9f | Shell | mdeora/druid_config | /update.sh | UTF-8 | 2,281 | 2.921875 | 3 | [] | no_license | #!/bin/bash
function abort()
{
echo $'\e[1;31merror:' $1 $'\e[0m' >&2
exit 1
}
[[ -n "$druid_coordinator" && -n "$druid_broker" && -n "$druid_historical_1" && -n "$druid_overlord" && -n "$druid_middleManager" ]] || abort "exports not set up"
scp -i $WHIRR_PEM -o "UserKnownHostsFile /dev/null" -o StrictHostKe... | true |
eb875c425d7af34efdac829fe3236a90c2fb5b32 | Shell | tedmiston/qcbrunch | /.github/actions/healthchecks/entrypoint.sh | UTF-8 | 665 | 3.640625 | 4 | [] | no_license | #!/bin/sh
set -euo pipefail
# if [ $# -eq 0 ]; then
# echo 'Usage: <job status> <healthchecks url>'
# exit 1
# fi
job_status=$(echo "${INPUT_STATUS}" | tr '[:upper:]' '[:lower:]')
success_url="${INPUT_URL}${INPUT_SUCCESS_ROUTE}"
failure_url="${INPUT_URL}${INPUT_FAILURE_ROUTE}"
if [ "${job_status}" == 'success' ... | true |
505d2bdeb36619475d9ce3cc1f0f55150a40dd73 | Shell | bridgecrew-perf7/mini-deployer | /install.sh | UTF-8 | 2,052 | 3.890625 | 4 | [] | no_license | #!/bin/bash
function getArch() {
case $(uname -i) in
x86_64 | amd64)
echo amd64
;;
i?86)
echo "386"
;;
arm*)
echo arm
;;
powerpc | ppc64)
echo PowerPC
;;
aarch64)
echo arm64
;;
unknown)
if [ $(uname -a | grep -c armv) = 1 ]; then
echo arm
fi
if [ ... | true |
2599614593483168e423dc74def8f337aae7d031 | Shell | virtualspyder/MyRestaurant | /Makefile.sh | UTF-8 | 445 | 3.125 | 3 | [] | no_license | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
GENERAL="'$DIR/General.cpp'"
RESTAURANT="'$DIR/Restaurant.cpp'"
MAIN="'$DIR/main.cpp'"
EXECUTABLE="restaurant.out"
OUTPUT_FILE="'$DIR/$EXECUTABLE'"
COMMAND="g++ $GENERAL $RESTAURANT $MAIN -lncurses -o $OUTPUT_FILE"
echo $COMMAND
echo Note : Copy the generated com... | true |
3a44a9cb550152e169895b4f718975d8b5933887 | Shell | yunshengb/lucida | /lucida/questionanswering/lucida/compile-qa.sh | UTF-8 | 894 | 2.765625 | 3 | [
"BSD-3-Clause"
] | permissive | # NOTE ABOUT CLASSPATHS:
# Classpaths contain jar files and paths to the TOP of package hierarchies.
# For example, say a program imports the class info.ephyra.OpenEphyra
# Now javac knows to look for the class info.ephyra.OpenEphyra in the directory info/ephyra/
# However, javac still needs the classpath to the packag... | true |
99a000e9046145c84d1cb3325a3bbc074828367f | Shell | freesideatlanta/WaiverServ | /Install/install.sh | UTF-8 | 1,422 | 2.734375 | 3 | [] | no_license | # updates and stuff
sudo apt-get update
sudo apt-get -y upgrade
#keep screen on and remove cursor if no movment
sudo apt-get install -y unclutter
#enable ssh
sudo touch /boot/ssh
#move our stuff to a better spot
sudo mkdir -p /usr/local/bin/FSWaiver
sudo cp ./run_waiver.sh /usr/local/bin/FSWaiver/run_waiver.sh
sudo ... | true |
ef00acfb73630eb346594da16ea93ae539a9ad28 | Shell | yujinqiu/user-guide | /build.sh | UTF-8 | 3,622 | 3.75 | 4 | [] | no_license | #!/bin/sh
# Dependencies are DocBook DSSSL stylesheets and Jade (provided
# by the Debian packages docbook-dsssl and jade, respectively).
set -e
DSL="/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl"
ROOT="$(dirname "$0")"
cd "$ROOT"
ROOT=$(pwd)
directives_for_context()
{
local context=$1
shift
... | true |
173c9261119834a6903a8d7fa65d4085c3a1cfe8 | Shell | szovaty/scripts | /yrsync_xos | UTF-8 | 3,230 | 3.875 | 4 | [] | no_license | #!/bin/bash
# Based on template.src version 1.1 last modified 2006.08.07 by y
# sync a filesystem with another one
trap y_exit TERM HUP INT
# Uncomment this to allow colors on the console
USE_COLOR="yes"
# This will enable positioning of a text to the end (-8 char)
# of a line independent of window size
USE_POS="ye... | true |
d75233e7ea0b0bbb7f3ff252c50aaa4c2d175eb9 | Shell | debjitpaul/Pre-processing-and-NLP-Tagger | /exec_brill.sh | UTF-8 | 404 | 2.828125 | 3 | [] | no_license | #!/bin/bash
#
# Brill Tagger:
# input:
# word1
# word2
# word3
# :
# :
# wordn
# output:
# word1/tag1
# word2/tag2
# word3/tag3
# word4/tag4
# :
# :
# wordn/tagn
for file in ./word/*;
do
BASENAME= basename $file
echo $BASENAME
/BRILL_TAGGER_NEWLISP_V1.14/Bin_and_Data/tagger... | true |
a2346f532f6e70b2d129ce7d97fd4f28ab0d135f | Shell | huobazi/init | /install_golang.sh | UTF-8 | 210 | 2.53125 | 3 | [] | no_license | GOREL=go1.7.3.linux-amd64.tar.gz
wget https://storage.googleapis.com/golang/$GOREL
tar xfz $GOREL
mv go /usr/local/go
rm -f $GOREL
PATH=$PATH:/usr/local/go/bin
echo 'PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc
| true |
f92c2418247486e38018fcdbe78b3e7b275702e9 | Shell | jimmo/dotfiles | /common/home/bin/sp | UTF-8 | 622 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#set -x
set -e
if [ -z $1 ]; then
# Fallback to just using the parent directory name only (to match old behaviour)
NAME=${PWD##*/}
if [ ! -e "${HOME}/src/sublime-projects/${NAME}.sublime-project" ]; then
# But if that doesn't exist, use grantparent/parent for new ones.
NAME=`pw... | true |
77180ffdf18cc77e7f723835a0f3d90df6d087d6 | Shell | shoryec/terraform-jenkins-slaves | /scripts/join-cluster.sh.tpl | UTF-8 | 1,192 | 2.828125 | 3 | [] | no_license | #!/bin/bash
echo "Install Java JDK 8"
sudo yum update -y
sudo yum remove -y java
sudo yum install -y java-1.8.0-openjdk
echo "Install Docker engine"
sudo yum update -y
sudo yum install docker -y
sudo usermod -aG docker ec2-user
sudo service docker start
echo "Install git"
sudo yum install -y git
echo "Connecting t... | true |
193981d47ab81eadbfede1c80f5b60e6cc4ad8f8 | Shell | PennLINC/xcpEngine | /utils/tfilter | UTF-8 | 17,854 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
###################################################################
# ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ ⊗ #
###################################################################
###################################################################
# Generalised function for... | true |
e802574f4029f17cde08de09719209c30cbe75ab | Shell | rluan/xapi-autobuilder | /fromcache.sh | UTF-8 | 341 | 3.703125 | 4 | [] | no_license | #!/bin/bash
set -x
set -e
echo "From cache: attempting to retrieve $1"
if [ ! "x${HTTPCACHE}" = "x" ]; then
wget ${HTTPCACHE}/latest/${DIST}/${ARCH}/$1 || true
exit 0
fi
if [ "x${cache}" = "x" ]; then
cache=`cat cachelocation`
fi
latest=${cache}/latest
if [ -e ${latest}/$1 ]; then
rsync -a ${latest}/$1 .
md5s... | true |
3f263933d30ee2630805e7ebe2840d6d84448c45 | Shell | senolerd/openstack-docker | /cloud.sh | UTF-8 | 3,260 | 3.859375 | 4 | [] | no_license | #!/bin/bash
export base=$(pwd)
set_env(){
for line_no in $(seq 1 $(grep '^[A-Z]' openstack.env|wc -l))
do
line_content=$(grep '^[A-Z]' openstack.env|head -$line_no|tail -1)
variable=$(echo $line_content|awk -F= {'print $1'})
value=$(echo $line_content|awk -F= {'print $2'})
export $variable="$... | true |
f3f8332e2ea76f4ac810722b6e80f5bd9f7bada5 | Shell | lacti/dotutil | /git-branch-clean | UTF-8 | 475 | 3.03125 | 3 | [] | no_license | #!/bin/bash
git fetch --all
for REMOTE in $(git remote -v | awk '{print $1}' | sort -u); do
git remote prune "${REMOTE}"
done
for BRANCH in $(git branch --merged | awk '{print $1}' | egrep '(bugfix|feature|hotfix)'); do
echo "-------------------------"
echo "- Delete: ${BRANCH}"
git checkout "${BRANCH}" && \
... | true |
2c1def37e4b676c81e3b214074efa754805063fe | Shell | shtoneyan/tfprofile | /bw_to_tfr.sh | UTF-8 | 2,442 | 3.171875 | 3 | [] | no_license | #!/bin/bash
# ARGUMENTS
basenji_samplefile=$1
basset_samplefile=$2 #/home/shush/profile/basenji/data/w32_l1024/sample_files/basset_sample_beds_top25.txt
profile_subdir=$3
output_dir=$4 #/home/shush/profile/tfprofile/datasets/top25
prefix=$5
o_prefix=$output_dir/$prefix
mkdir -p $output_dir
d=1 #take all without dow... | true |
45e32560f6cb049054f535f8e71d99f3d528aa91 | Shell | jwslab/ML100days | /tag.sh | UTF-8 | 489 | 3.75 | 4 | [] | no_license | TAG_VER="$(git describe --abbrev=0 --tags)"
echo 'The Latest Tag :'"$TAG_VER" $'\n'
echo '##### Generating New Tag #####'
IFS=. VER=(${TAG_VER##*-})
FIRST=${VER[0]}
SECOND=${VER[1]}
THIRD=${VER[2]}
TAG_AUTO=$FIRST.$SECOND.$(($THIRD + 1))
echo 'The New Tag :'"$TAG_AUTO" $'\n'
echo '##### Adding tag commit #####'
git... | true |
9717ad155f70240fae482e0a8465029967cd5078 | Shell | mkock/BiTE | /Vagrantbootstrap.sh | UTF-8 | 1,655 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
# Update Debian packages
sudo apt-get -y update
sudo apt-get -y install curl
cd /bite
# Ensure that .bash_profile contains correct locale setting for MongoDB
if [ ! -f /home/vagrant/.bash_profile ]; then
touch /home/vagrant/.bash_profile
fi
sudo chown vagrant:vagrant /home/vagrant/.bash_profil... | true |
9a3bbaca4e997ce91a4eccfbba6031b5ffeb784d | Shell | dinnozap/McServerMaker | /ServerMaker.sh | UTF-8 | 1,165 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#_______________________________________________________________________
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#||||||||||||||||||||McServerMaker||||||||||||||||||||||||||||||||||||||
#|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
#_______________... | true |
9403ce5c1317db9da76cec540166bee519adc68e | Shell | xf20110925/uranus-parent | /uranus-manager/bin/start.sh | UTF-8 | 357 | 2.859375 | 3 | [] | no_license | #!/usr/bin/env bash
source /etc/profile
HOME=$(cd "$(dirname "$0")/../"; pwd)
cd $HOME
jars=$(ls $HOME/|grep .jar)
libjar=`ls libs | grep .jar | awk '{jar=jar"'"libs/"'"$1":"} END {print jar}'`
echo $jars
echo $HOME/config:$jars:$libjar
nohup java -cp $HOME/config:$libjar:$jars com.ptb.uranus.manager.UranusManagerAp... | true |
cac6283001be524f909fee45eb35a99611b67688 | Shell | Undomyr/aryalinux | /applications/sddm.sh | UTF-8 | 4,804 | 3.09375 | 3 | [] | no_license | #!/bin/bash
set -e
set +h
. /etc/alps/alps.conf
. /var/lib/alps/functions
SOURCE_ONLY=n
DESCRIPTION="br3ak The SDDM package contains abr3ak lightweight display manager based upon Qt and QML.br3ak"
SECTION="x"
VERSION=0.14.0
NAME="sddm"
#REQ:cmake
#REQ:extra-cmake-modules
#REQ:qt5
#REC:linux-pam
#REC:upower
cd $SO... | true |
7236895140b1f61d83f536d211968487d562789d | Shell | open-estuary/appbenchmark | /toolset/setup/basic_cmd.sh | UTF-8 | 3,804 | 4.5 | 4 | [] | no_license | #!/bin/bash
#
# Define some basic functions to download and install packages
#
#
#############################################################
# Purpose:
# To download the file from the specified url address
#
# Usage:
# tool_download <url_address>
#
###########################################################... | true |
dc28a1bcfc0e9ae56726e7f56386e6eb04891e85 | Shell | albertfiati/perflabs | /BashScripts/task4.1.3-a/task4.1.3-a.sh | UTF-8 | 1,463 | 2.84375 | 3 | [] | no_license | #!/bin/bash
rm *.log
for n in 2 4 8 12 16;
do
echo "Value of N is " $n | tee -a stress.log sar.log
echo "**************** N START ******************" | tee -a stress.log sar.log
echo " " | tee -a stress.log sar.log
for m in 128 256 512 1024 2048
do
echo "Value of M is " $m | tee -a stress.log s... | true |
6081f16251b4532d70e415d7da67f5602f50258f | Shell | HarrisonJM/CodeExamples | /sonarTest/removeOldTars.sh | UTF-8 | 1,774 | 4.09375 | 4 | [
"Unlicense"
] | permissive | #!/bin/bash
# removeOldTars
# Author: Harrison James Marcks
source /home/marcks/scripts/commonCoverageFunctions.sh
# Just deletes old tars in the /home/tester.nds/coverage directory
TARORIGINDIR="/mnt/fs01.brs/home/tester.nds/coverage/"
STARTTIME=$(date +%s)
########################################################... | true |
217bcf354fab8e3f4563ae81f43d4ca959a82e9a | Shell | leusic38/dotfiles | /bin/.local/bin/randomImg | UTF-8 | 327 | 3.015625 | 3 | [] | no_license | #!/bin/sh
#
#replace path with your local paths
i=1
path=/hdd/Images/wallpapers
find $path/horizontal -name "*.jpg" -o -name "*.jpeg" -type f | shuf -n 2 | while read file; do
cp "$file" "$path/horizontal_$((i++)).jpg";
done
cp "$(find $path/vertical -name "*.jpg" -o -name "*.jpeg" -type f | shuf -n 1)" "$path/vertica... | true |
0a227a1b8b4315af8d0bbfd3a6d7195ee852329e | Shell | Cour-de-cassation/label | /scripts/version.sh | UTF-8 | 960 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/sh
export OS_TYPE=$(cat /etc/os-release | grep -E '^NAME=' | sed 's/^.*debian.*$/DEB/I;s/^.*ubuntu.*$/DEB/I;s/^.*fedora.*$/RPM/I;s/.*centos.*$/RPM/I;')
if ! (which jq > /dev/null 2>&1); then
if [ "${OS_TYPE}" = "DEB" ]; then
sudo apt-get install -yqq jq;
fi;
if [ "${OS_T... | true |
01b3ca59366df1597607b4bb3ea01c186193d4d4 | Shell | sosnus/scripts | /misc-legacy/ttn-old/ttn/install-ttnctl-linux-amd64.sh | UTF-8 | 247 | 2.53125 | 3 | [] | no_license | #!/bin/bash
echo "download, unpack and install ttnctl on platform linux-amd64"
wget -qO- "https://ttnreleases.blob.core.windows.net/release/master/ttnctl-linux-amd64.tar.gz" | tar xvz -C ./
mv ./ttnctl-linux-amd64 /bin/ttnctl
chmod +x /bin/ttnctl
| true |
154b941be30a527112f04a402bdd92699bc19443 | Shell | ronakpatel70/wedding-plan | /bin/build | UTF-8 | 510 | 2.609375 | 3 | [] | no_license | #!/bin/bash
set -e -x
env
gem env
BUNDLE_IGNORE_MESSAGES=true bin/bundle install --deployment --jobs 2 --retry 3 --without development
bin/bundle package
service postgresql start
su postgres -c "createuser -s root"
createdb -T template0 wedding_expo_test
bin/rails test
RAILS_ENV=production bin/rails assets:precom... | true |
77a401dc4002b18c4cfc8df7b59da169bdf4d62d | Shell | RDCEP/galaxyTools-quadui | /1.3.1/quadui_classic.sh | UTF-8 | 1,854 | 3.234375 | 3 | [] | no_license | #! /bin/bash
inputType=$1
domeType=$2
surveyData=$3
fieldDome=$4
if [ "$domeType" == "seasonal" ]
then
if [ "$inputType" == "zip" ]
then
seasonalDome=$5
linkage=$6
outputDssat=$7
outputApsim=$8
else
seasonalDome=$4
linkage=$5
outputDssat=$6
outputApsim=$7
fi
else
seasonalDome=""
linkage=$5
out... | true |
9d44125695202d971533dc896d8e1899ce1b2899 | Shell | deltacodinguk/server-tools | /removesite.sh | UTF-8 | 1,095 | 4.15625 | 4 | [] | no_license | #!/bin/bash
if [ $# == 0 ]; then
echo "Usage: ./removesite <domain> [-f]"
exit 1;
fi
if [ "$(whoami)" != 'root' ]; then
echo "Sorry, you must be root to remove a virtual host."
exit 1;
fi
# Remove the site from apache
a2dissite $1
service apache2 reload
# Remove the site config
rm -rf /etc/apache2... | true |
1ccac9b11116d3613513bfb1ac7e8d3a7cc47033 | Shell | DF104/EasyUbuntu | /jdkenv1.8.sh | UTF-8 | 932 | 2.921875 | 3 | [] | no_license | #!/bin/bash
apt-get update && apt-get install curl -y && apt-get clean
TIME=$(date +%s)
TIME="$TIME"123
FILENAME="jdk8.tgz"
URL="http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jdk-8u171-linux-x64.tar.gz"
curl -o ${FILENAME} -H "Cookie: s_cc=true; oraclelicense=accept-securebacku... | true |
2573376cc1d617b74fb74f1cf2e1e98525c50c3e | Shell | kjseefried/cbsd-scenes | /xrescuebsdkms/bin/xconfig | UTF-8 | 3,118 | 2.875 | 3 | [] | no_license | #!/bin/sh
#v9.0.0
globalconf="${workdir}/cbsd.conf";
MYOPTARG="verbose"
MYDESC="X Configuration tools"
[ -f ${globalconf} ] || err 1 "no such conf file";
. ${globalconf}
. ${subr}
. ${inventory}
init $*
# cut "Files" section for inserting own list of dirs
# $1 - source xorg.conf
# $2 - dst xorg.conf
patch_fonts()
{
[... | true |
7380335c84054d6efba0401fccad0665c2845e8c | Shell | shinemacro/origin-tools | /oc_project_search.sh | UTF-8 | 548 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Searches for an object by name in all the OpenShift cluster projects
OC="${HOME}/Go/src/github.com/openshift/origin/_output/local/bin/linux/amd64/oc"
if [[ $1 != "" ]]; then
SEARCH_STRING=$1
else
echo "Usage: $0 <search string>"
exit
fi
#readarray -t projects < <($OC projects | grep -v 'Y... | true |
1e8a499eb255ab94b730476eab6751d89de8dd58 | Shell | Gerrad1011/guessing_game | /guessinggame.sh | UTF-8 | 482 | 3.859375 | 4 | [] | no_license | #! /bin/bash
function run(){
num_files=$(ls -A -1 | wc -l)
re='[^0-9]+'
while [[ 1 ]]
do
echo "Enter the number of files in the directory"
read number
if [[ $number =~ $re ]]
then
echo "Only numbers allowed!! Try Again"
continue
fi
if [[ $number -eq $num_files ]]
then
echo "Congratulations you guessed it right it... | true |
36f5a8c679edf8462236f95bc422b7d9072df753 | Shell | fasterthanlime/coke-output-example | /utils/apt-status.sh | UTF-8 | 425 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
## apt is a front-end to dpkg, which installs .deb packages
## on Debian-based distributions (Debian, Ubuntu, ...)
##
## apt-get is standard (as opposed to aptitude), and packages
## can be installed via `sudo apt-get install PKG`.
dpkg -s $1 &> /dev/null; INSTALLED=$?
if [[ $INSTALLED -eq 0 ]]; ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.