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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
86cf8c880c65155ca9ffdab066188a7d506f311c | Shell | jdiaz5513/capnp-ts | /packages/js-examples/test.sh | UTF-8 | 1,042 | 3.03125 | 3 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | #! /usr/bin/env bash
#
# Quick script that compiles and runs the samples, then cleans up.
# Used for release testing.
set -exuo pipefail
cd `dirname $0`
yarn install
capnpc -o node_modules/.bin/capnpc-js addressbook.capnp
node addressbook.js write | node addressbook.js read
node addressbook.js dwrite | node addressb... | true |
aaf79fdf5b3f74ee2978f0761544ed777e5c5493 | Shell | nohjlau/Unraid-Scripts | /unraid_array_fan.sh | UTF-8 | 4,958 | 3.703125 | 4 | [] | no_license | #!/bin/bash
# Finding your fan controllers: find -L /sys/class/hwmon/ -maxdepth 5 -iname "pwm[0-9]" 2>/dev/null
# /sys/class/hwmon/hwmon3/pwm1 FAN 0 - FAN 5
# /sys/class/hwmon/hwmon3/pwm2 FAN 6 - FAN 7
# Original script: https://forums.unraid.net/topic/5375-temperature-based-fan-speed-control/?tab=comments#comment-51... | true |
dc72f4db17592ebedc129b0a0ae93bd0d49fe0fc | Shell | EmilyQue/CST-221 | /Security/password_strength.sh | UTF-8 | 827 | 3.953125 | 4 | [] | no_license | #!/bin/bash
#variable for password criteria
x=0
#password is entered and read
echo 'Please enter password: '
read password;
#size variable is set to password
size=${#password}
#checks if password size is less than 8 characters
if (("$size" < 8)); then
echo 'Password must be at least 8 characters.'
#increments varia... | true |
075c6fb9b5cbdaa6761711a732110acff9b4a61b | Shell | puiterwijk/irma_configuration | /generate_keys.sh | UTF-8 | 2,212 | 3.96875 | 4 | [] | no_license | #!/bin/bash
# Set this if you want seperate keys per credential
CREDENTIAL_KEYS=
# Set this if you want to archive and encrypt the keys
SECURE=true
CLEANUP=true
ARCHIVE_CMD=tar
ARCHIVE_OPT=-zcvf
ENCRYPT_OPT="--cipher-algo AES --symmetric"
PRIVATE_PATH=irma_private_keys
BASE_URI=http://www.irmacard.org/credential... | true |
4ccd16973845823a2dcc7852c2c0d1f9d7be063f | Shell | roc-wong/myriad-test | /myriad-test-application/src/main/scripts/startup.sh | UTF-8 | 4,933 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -
#===============================================================================
#
# FILE: startup.sh
#
# USAGE: ./startup.sh
#
# DESCRIPTION: springboot jar 启动脚本
#
# OPTIONS: springboot executable jar 依赖系统环境变量:APP_NAME
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: --... | true |
08e2dc661e42d7afdcbf61840b6f592dd8bca2ee | Shell | tejakondury/md_hw_teja | /hw2/prob_3/run.sh | UTF-8 | 3,256 | 2.765625 | 3 | [] | no_license | #!/bin/bash
for num in {30..50..1}
do
i=`echo "scale=2 ; ${num}/10" | bc` # convert into floating point values
############################################input_file###########################################################
cat >in.run$i <<!
# ---------- Initialize Simulation ---------------------
clear
units ... | true |
f3417a2a0d5e0534bda7670a8c4a33b3142556c6 | Shell | hand79/Hadoop | /xsync-xcall-script/xcall | UTF-8 | 252 | 2.921875 | 3 | [] | no_license | #!/bin/bash
pcount=$#
if((pcount==0));then
echo no args;
exit;
fi
echo -------------localhost----------
$@
for((host=101; host<=108; host++)); do
echo ----------hadoop$host---------
ssh hadoop$host $@
done
| true |
984530fc06080fcf5c01adb891e753b1fc796f64 | Shell | igemnace/aurscripts | /aurclean | UTF-8 | 247 | 3.5625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/usr/bin/env bash
echoerr() {
1>&2 echo aurclean: "$@"
}
for package in "$@"; do
echoerr "Cleaning up $package..."
cd "${AUR_DIR:-$HOME/.aur}/$package" || { echoerr Aborting.; break; }
git clean -fxfd || { echoerr Aborting.; break; }
done
| true |
322dfe11c37be06773a2ad9f7e087dddbd21db31 | Shell | erikswanson/virtualbox-service-tool | /create-virtualbox-service.sh | UTF-8 | 1,839 | 4.21875 | 4 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
# Dedicated to the Public Domain as per the CC0 1.0 Universal declaration at
# http://creativecommons.org/publicdomain/zero/1.0/
set -e
this="$(basename $0)"
function print_usage {
cat 1>&2 <<EOF
Usage: ${this} service_path uuid_or_name [ip]
The service is created at the service_path with a 'down' file... | true |
7c6abea75adc9654e2ba7bc6eff147b1d8b2307a | Shell | TeamEOS/vendor_motorola | /edison/proprietary/bin/atrelay-ctrl.sh | UTF-8 | 1,192 | 3.578125 | 4 | [] | no_license | #!/system/bin/sh
export PATH="${PATH}:/system/bin"
# constants
MODE_PROP="mot.ste.modem.mode"
TTYDEVICE_PROP="ro.mot.ste.modem.ttydevice"
GADGET_TTY=/dev/ttyGS0
boot_mode=`getprop ro.bootmode`
if [ "${boot_mode}" = "bp-tools" ]; then
GADGET_TTY=/dev/ttyGS1
fi
# check command line usage
if [ ${#} -eq 1 ]; then
MODE... | true |
ace2d67f444fe59b1a19b875329c19ba06dc5144 | Shell | Serki07/CYB6004 | /scripts/portfolio/week4/IpAddressesOnly.sh | UTF-8 | 184 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#call IpInfo script and assign to varable
IpOutput="$(./IpInfo.sh)"
#read the variable from above and print only matched line
echo "$IpOutput"| sed -n '/IP Address/p'
| true |
107fd9a04dc5a1e97b3c8743289e87cca5f2fa7c | Shell | RHESSys/RHESSys | /util/GRASS/cst/cst.sh | UTF-8 | 1,318 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# This shell script runs the cst (Create Stream Table) program
debug_flag=
verbose_flag=
USAGE="Usage: `basename $0` [-dhv]"
# Parse command line options.
while getopts dhv OPT; do
case "$OPT" in
d)
debug_flag='-d'
;;
h)
echo $USAGE
;;
... | true |
54b8fd7eb85bdd26eb921e177b1e4e2685d64810 | Shell | pablox-cl/dotfiles-b | /config/zsh/themes/prompt_pbr_setup | UTF-8 | 542 | 3.0625 | 3 | [
"MIT"
] | permissive | # vim: ft=zsh
__git_info() {
vcs_info
printf "$vcs_info_msg_0_" # branch name/action
command git rev-parse --is-inside-work-tree &>/dev/null || return
command git diff --quiet --ignore-submodules HEAD &>/dev/null
(( $? == 1 )) && printf '*'
}
prompt_pbr_setup() {
prompt_opts=( cr subst percent )
auto... | true |
0956fe3b6db5de1ec53a39d4a0e3cb6288d17dff | Shell | onuohagodswill1/UserManager | /setup.sh | UTF-8 | 2,178 | 4.1875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
echo "Setup script running ...."
LOGFILE=/var/log/UserManagerAppSetup.log
APP_ENV=webapp/.env
# detect Operating System
lsb_dist=$( echo "$(. /etc/os-release && echo "$ID")" )
lsb_dist="$(echo "$lsb_dist" | tr '[:upper:]' '[:lower:]')"
echo "$lsb_dist platform detected"
#exit 1
#checks if command exist... | true |
548bd6e85e9aef310c474e849c516c1d3632985f | Shell | andrdi/kotel | /opt/sms/sms2mail.sh | UTF-8 | 1,311 | 3.140625 | 3 | [] | no_license | #! /bin/bash
if [ "$SMS_1_NUMBER" = "+79615777191" ] && [ "$SMS_1_TEXT" = "report" ]; then
echo "Subject: Current report:" > report.txt
echo "" >> report.txt
echo "Current report:" >> report.txt
echo "" >> report.txt
echo "Temperature:" >> report.txt
echo $(cat /sys/bus/w1/devices/28-04146da896... | true |
b07b2c60cf786d73244077e4ee1e4f102dd56b9a | Shell | mydevopsandcloud/lab-1 | /userdata.sh | UTF-8 | 805 | 3.171875 | 3 | [] | no_license | #!/bin/bash
#!/bin/bash
# sleep until instance is ready
until [[ -f /var/lib/cloud/instance/boot-finished ]]; do
sleep 1
done
#!/bin/bash
sudo systemctl enable httpd
sudo systemctl start httpd
sudo yum -y install httpd
sudo service httpd start
sudo mkdir /var/www/html/mount-point
mount -t efs fs-12345678:/ /var/... | true |
88b690beef37be4a3120b789d40d1bd297bf0c09 | Shell | Axway/ats-testexplorer | /src/main/db/postgresql/upgrade_postgresql.sh | UTF-8 | 6,866 | 4.09375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
OLD_DB_VERSION=4.0.10
NEW_DB_VERSION=4.0.11
NEEDS_UPGRADE=false
INTERACTIVE_MODE=0
BATCH_MODE=1
MODE=$INTERACTIVE_MODE
function print_help() {
echo "The usage is ${0} [OPTION] [VALUE] ...
The following script upgrades an ATS Logging DB from version $OLD_DB_VERSION to current version $NEW_DB_VER... | true |
40396303bf33d29a888f6e4c41ea1029a52c292f | Shell | rosshosman/patatetoy | /patatetoy.zsh | UTF-8 | 13,750 | 3.25 | 3 | [
"MIT"
] | permissive | # Patatetoy
# by Maxime Loliée
# https://github.com/loliee/patatetoy
#
# Zsh initialy forked from https://github.com/sindresorhus/pure
PATATETOY_INSTALL_DIR=${PATATETOY_INSTALL_DIR:-$HOME}
. "$PATATETOY_INSTALL_DIR/.patatetoy/patatetoy_common.sh"
PATATETOY_VIM_MODE=${PATATETOY_VIM_MODE:-0}
PATATETOY_GIT_PULL=${PATATE... | true |
428e5d5ff8bb0728f11ef52e18505554f58d7a05 | Shell | marcociccone/Azure-GPU-Setup | /gpu-setup-part2.sh | UTF-8 | 1,455 | 3.484375 | 3 | [] | no_license | #!/bin/bash
#if [ "$EUID" -ne 0 ]; then
# echo "Please run as root (use sudo)"
# exit
#fi
SETUP_DIR="$HOME/gpu-setup"
if [ ! -d $SETUP_DIR ]; then
echo "Setup directory not found. Did you run part 1?"
exit
fi
cd $SETUP_DIR
# install cudnn
wget http://developer.download.nvidia.com/compute/redist/cudnn/v5.1/cudnn-... | true |
f92a8c4ea8f0fd30cc05f140169d28d9802e2732 | Shell | autopkg/grahampugh-recipes | /_Scripts/ExtensionAttribute-AdobeFlashPlayer.sh | UTF-8 | 290 | 2.78125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
FlashVersion=""
if [ -f "/Library/Internet Plug-Ins/Flash Player.plugin/Contents/Info.plist" ]; then
FlashVersion=$(defaults read /Library/Internet\ Plug-Ins/Flash\ Player.plugin/Contents/Info.plist CFBundleShortVersionString)
fi
echo "<result>$FlashVersion</result>"
exit 0
| true |
0febf30d822a94790ac7ae42c978330236e85988 | Shell | nettan20/.dotfiles | /.profile | UTF-8 | 1,736 | 2.921875 | 3 | [] | no_license | export BREW_PREFIX=/usr/local/opt
export BROWSER=open
export EC2_HOME=$(find /usr/local/Cellar/ec2-api-tools -type d -name libexec | head -n 1)
export EDITOR=vim
export GOPATH="~/.gopath"
export HISTCONTROL=ignoreboth
export HISTSIZE=10000
export JAVA_HOME="$(/usr/libexec/java_home)"
export PATH=$GOPATH/bin:$PATH # Go... | true |
ac2a8ff543b846f1d30514e37d405ea7b2c5b7ae | Shell | manikiranp/pattern | /user_registration.sh | UTF-8 | 1,242 | 3.40625 | 3 | [] | no_license | #!/bin/bash
echo "Welcome to User Registration"
echo "Patterns: Day 14 assignment"
#1
read -p "Enter your First name: " first
pattern="^([A-Z]){1}[a-zA-Z]{2,}$"
if [[ $first =~ $pattern ]]
then
echo True
else
echo False
fi
#2
read -p "Enter your Last name: " last
pattern="^([A-Z]){1}[a-zA-Z]{2,}$"
if [... | true |
755606c511ab283a6706960d4ac5eff6117324ab | Shell | nonfig/nestjs-config | /tools/package.sh | UTF-8 | 287 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Generate package
# Files to copy to dist folder
files_to_copy=(
package.json
package-lock.json
README.md
LICENSE
)
for file in "${files_to_copy[@]}"; do
cp $file dist
echo 🔹 $file copied ✅
done
echo '📦📦📦 Packaged successfully! 📦📦📦'
| true |
9b688c735944fe19859fdebeb701f658f95b0a2a | Shell | hyeoncheon/hyeoncheon-elastic | /setup/reset.sh | UTF-8 | 409 | 2.703125 | 3 | [] | no_license | #!/bin/bash
sudo systemctl stop logstash.service
if false; then
echo "CLEANING EXISTING INDICES......"
sleep 5
for day in 14; do
for index in logstash syslog netflow snmp; do
curl -XDELETE localhost:9200/$index-2017.06.$day
done
done
fi
#./01-install-singlemode.sh
#./02-install-plugins.sh
#slee... | true |
396876f10f300ea000acb8a53bb4797e5acd3e66 | Shell | micheldebree/reality | /video/burn_subtitles.sh | UTF-8 | 402 | 3.46875 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -ne 1 ]; then
echo "USAGE: $0 <video file>"
exit 1
fi
# Determine video height
HEIGHT=$(ffprobe -v error -of default=noprint_wrappers=1 -show_entries stream=height "$1" | grep -o 'height=[0-9]\+' | sed 's/height=//') || exit 1
# Calculate relative fontsize
((FONTSIZE=HEIGHT/30))
# Burn... | true |
eb1662156c2da2af6cc97be8aa4b276e209e8ea7 | Shell | hoshsadiq/alpine-raspberry-pi | /make-image | UTF-8 | 3,211 | 3.84375 | 4 | [] | no_license | #!/usr/bin/env bash
# these scripts are based on https://github.com/knoopx/alpine-raspberry-pi.
# todo https://raw.githubusercontent.com/Drewsif/PiShrink/master/pishrink.sh
set -eux
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
enter_chroot=false
if [[ "${1:-}" == "shell" ]]; then
shift
enter_chroot=... | true |
b66eebd94bdb7bc2c320bef37f3655fcb82ecc91 | Shell | Carlo13gen/Viri | /graph_analysis/gdt_origin/scripts/MakePublicGapi.sh | UTF-8 | 2,918 | 3.109375 | 3 | [] | no_license | #!/bin/sh
cd ..
#----------------------------------------------
#compile in DEMO mode
#----------------------------------------------
make clean
cp custom.${HOSTTYPE} custom.original
cp public_release/custom.demo custom.${HOSTTYPE}
make gdt
make tools
HOST=$HOSTTYPE
RELNUM=4.0_DEMO
# -------------------------------... | true |
c32ba60199917ea77b360a2e42acd1397948c4c3 | Shell | ucsdlib/github-reports | /commits | UTF-8 | 443 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/bash
set -x
UCSD_ROOT="$HOME/projects/ucsd"
START_DATE="2017-07-01"
END_DATE="2018-07-01"
REPORT_FILE="./commit-report-$START_DATE-$END_DATE"
echo "before loop"
cd "$UCSD_ROOT" || (echo "Project root directory doesn't exist" && exit 1)
for dir in /"$UCSD_ROOT"/*/
do
echo "$dir"
cd "$dir" || exit 1
c... | true |
83a2e978dcfd4cfdb2fbba2a72b9a5473cebbcfc | Shell | sitedata/droplet-1-clicks | /docker-18-04/files/etc/update-motd.d/99-one-click | UTF-8 | 1,017 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# Configured as part of the DigitalOcean 1-Click Image build process
myip=$(hostname -I | awk '{print$1}')
cat <<EOF
********************************************************************************
Welcome to DigitalOcean's 1-Click Docker Droplet.
To keep this Droplet secure, the UFW firewall is enabled.
... | true |
4b0cc0c7ad166dfc541fea37d97d79eb03f781a1 | Shell | rodriguezmDNA/rnaseqScripts | /Old/01b_TrimmingFullScript.sh | UTF-8 | 6,875 | 3.625 | 4 | [] | no_license | #!/bin/bash
# j rodriguez medina
# Brady lab @ ucdavis
# Trim sequencing files in two steps.
# If there is adapter contamination (likely to be determined by the output of FastQC on raw files or using minion)
## If one is certain there is no adapter, leave the tabu and seqAdapt blank
# ie: tabu='';seqAdapt=''
## If ... | true |
c190923cf62592f862c7b6b4cdaf0ab7c1c344e5 | Shell | Kamekure-Maisuke/megavite | /script/make_blog.sh | UTF-8 | 494 | 3.90625 | 4 | [] | no_license | #!/bin/sh
set -e
export LC_ALL=C
NOW=$(date '+%Y-%m-%d_%H:%M:%S')
TODAY="${NOW%_*}"
CONTENTS_DIR="$(dirname "$0")/../contents"
# 存在してたら作成しない
[ -e "${CONTENTS_DIR}/${TODAY}.md" ] && {
echo "今日は作成済み"
exit 1
}
# blogコンテンツの中身
contents(){
cat <<EOF
---
title: タイトル
description: 説明
tags:
- "タグ1"
- "タグ2"
- "タグ3"
c... | true |
32d74d27fef8c5b0425f6153574ac1bb18442eae | Shell | W3SS/wikia-scraper-1 | /create-wordlist.sh | UTF-8 | 343 | 3.28125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
urldecode(){
echo -e "$(sed 's/+/ /g;s/%\(..\)/\\x\1/g;')"
}
# Concatinate all input files,
# Remove all blanks
# Convert everything to lower case
# Remove all colons
# sort
# Remove duplicates
# Decode percent encoding
cat "$@" | sed -E -e 's/[[:blank:]]+//g' | sed 's/.*/\L&/' | sed 's/://g' | s... | true |
77bbe7603a3be265b068711cfc61ff3a9a36f409 | Shell | alnyan/raspi-tests | /qemu.sh | UTF-8 | 362 | 2.75 | 3 | [] | no_license | #!/bin/sh
set -e
QEMU_OPTS="-M raspi3 \
-kernel build/kernel.img \
-serial null \
-serial mon:stdio \
-display none"
if [ "${QEMU_DEBUG}x" != x ]; then
QEMU_OPTS="${QEMU_OPTS} -s -S"
fi
if [ "${QEMU_DINT}x" != x ]; then
QEMU_OPTS="${QEMU_OPTS} -d int"
fi
make ${M... | true |
92226b84c555fb98278e66081e8b3452fc76ac42 | Shell | isabella232/stampede | /bin/try-until | UTF-8 | 1,538 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#------------------------------------------------------------------------------
# Copyright (c) 2011-2013, Think Big Analytics, Inc. All Rights Reserved.
#------------------------------------------------------------------------------
# try-until - Wait for an expression to succeed until a specified ... | true |
fd740c324f34ef1ad018b0bd577ce22840fa8b33 | Shell | aascheneller/ipcsystools | /src/scripts/ipc-getfirmware | UTF-8 | 178 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#set -x
value=unknown
if [ -e /etc/ptxdist_version ]; then
value=`cat /etc/ptxdist_version | cut -d' ' -f2 | sed -n -e 's~kp-mcb2-\(.*\)\..*~\1~p'`
fi
echo $value
| true |
5fc030c47d2bdeaa7f1704a28635023ca74f1f24 | Shell | inm7/vbc_mri_pipeline | /code/examples/extract_BOLD_from_native_EPI.sh | UTF-8 | 4,194 | 3.0625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
grp=${1}
sbj=${2}
threads=${3}
atlname=Schaefer2018_100Parcels_17Networks
num=114
sp=/data/project/SC_pipeline/03_Functional_Connectivity
tp=/data/project/SC_pipeline/03_Structural_Connectivity
tmp=${tp}/${grp}/${sbj}/temp
atl=${tp}/${grp}/${sbj}/${atlname}_to_epi_native+subctx.nii.gz
atlt1w=${tp}/${grp}/... | true |
d7311ff6c288c8ca4046fed66d9d99048e972f9c | Shell | prismocr/ocr | /scripts/valgrind.sh | UTF-8 | 609 | 3.5 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ $# -lt 1 ] ; then
echo "Invalid number of arguments."
exit 1
fi
# Reads arguments into the table `args`
IFS=' ' read -r -a args <<< $@
unset args[0]
CFLAGS="-std=c99 -Wall -Wextra -Werror -Wpedantic"
if [ $1 = "debug" ] ; then
CFLAGS+=" -g -O0 -DDEBUG"
elif [ $1 = "release" ] ; then
... | true |
c0fe414df610957c6769d08142c5d24f94a57fee | Shell | SrinivasaBharath/ceph-1 | /src/test/docker-test-helper.sh | UTF-8 | 9,821 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# Copyright (C) 2014, 2015 Red Hat <contact@redhat.com>
#
# Author: Loic Dachary <loic@dachary.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Library Public License as published by
# the Free Software Foundation; either version 2, or (... | true |
5ab367b32c4c4a73e01a146042bcf928127a9741 | Shell | wh-forker/seeing_and_hearing | /scripts/train_baradel_audio.sh | UTF-8 | 967 | 3.375 | 3 | [] | no_license | #!/bin/bash
export gpu_number="$1"
export classification_type="verb"
export root_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/.. >/dev/null && pwd )"
# Setting Nvidia GPU and Anancoda virtual environment path
conda activate ~/anaconda3/envs/epic_torch
export CUDA_VISIBLE_DEVICES=$gpu_number
export PYTHONPATH="$root... | true |
dc0c987c40b970bf0322344342fd03c4cb00301a | Shell | siyue1226/alt-splice | /Mus_musculus/cq.Lung.sh | UTF-8 | 4,046 | 2.84375 | 3 | [] | no_license | #!/bin/bash
start_time=`date +%s`
### bash hints
### 2>&1 redirect stderr to stdout
### | tee -a log.log screen outputs also append to log file
### ; ( exit ${PIPESTATUS} ) correct program exitting status
### Only run parallel when you're sure that there are no errors.
cd /home/wa... | true |
98f81a3365d33c2a46c2eb54434738565ea53f0f | Shell | briancsparks/imstall | /lib/ubuntu/gh | UTF-8 | 745 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
script_dir="$( cd "$(dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )"
. "${script_dir}/common/utils"
add_keyring 'https://cli.github.com/packages' 'githubcli-archive-keyring' 'https://cli.github.com/packages'
apt_get_install gh
# curl -fsSL https://cli.github.com/packages/githubcli-archiv... | true |
3c3bd2ee884f30624075e401a92f91323112d68b | Shell | heroku/cnb-shim | /bin/detect | UTF-8 | 272 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# fail hard
set -o pipefail
bp_dir="$(
cd "$(dirname "$0")/.."
pwd
)" # absolute path
target_dir="${bp_dir}/target"
"${target_dir}/bin/detect" "$(pwd)" >/dev/null 2>&1
EXITCODE=$?
case $EXITCODE in
1) exit 100 ;;
*) exit $EXITCODE ;;
esac
| true |
fe70120691dc758fc489ba967713fc8fc6347e07 | Shell | revanthreddy/builder-bootcamp-codepipeline-workshop | /upload-code-to-s3.sh | UTF-8 | 269 | 3.421875 | 3 | [] | no_license | #!/usr/bin/env bash
if [ $# -ne 1 ]
then
echo 'upload_to_s3.sh <SOURCE_ARTIFACT_BUCKET_NAME>'
exit 1
fi
source_artifact_bucket_name=$1
zip_name=app.zip
cd app
zip -r $zip_name . -x *.git*
aws s3 cp $zip_name s3://$source_artifact_bucket_name
rm $zip_name
| true |
366f6538b4a5c2bb25c697fb0095338628bbcecd | Shell | ypapax/do-k8s | /master.sh | UTF-8 | 1,391 | 2.78125 | 3 | [] | no_license | #!/bin/bash
set -ex
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): } $HOSTNAME $ '
echo log is here: /var/log/cloud-init-output.log
export DEBIAN_FRONTEND=noninteractive
# Replace this with the token
TOKEN=xxxxxx.yyyyyyyyyyyyyyyy
apt-get update && apt-get upgrade -y
curl -s https://packa... | true |
d30089a0d6474aa8e9bbac04f27d8921a46a70a4 | Shell | IMAGINARY/lalalab-scripts | /bin/exhibit-harmonic-series | UTF-8 | 834 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This script is supposed to run Whitney music box exhibit.
# The wrapper script is supposed to be visible in ps -a resp. ps -u `id -u` to make
# it easy to kill it (by a script or manually)
PIDS=""
function finish {
kill $PIDS >/dev/null 2>&1
}
trap finish SIGINT SIGTERM EXIT
cd /opt/the-harmonic-ser... | true |
72a03bd1de51b71a43ac24ae0a812ab16cc95880 | Shell | garethgeorge/UCSBFaaS-Wrappers | /tools/timings/overheadMR.sh | UTF-8 | 4,035 | 3.28125 | 3 | [
"BSD-3-Clause"
] | permissive | #! /bin/bash
if [ "$#" -ne 11 ]; then
echo "USAGE: ./overhead.sh aws_profile num_runs data_bucket_name prefix jobid C_job_bkt D_job_bkt F_job_bkt S_job_bkt T_job_bkt B_job_bkt"
exit 1
fi
PROF=$1
COUNT=$2
DATABKT=$3
PREFIX=$4
JOBID=$5 #must match reducerCoordinator "job_id" in config in setupApps.py for trigg... | true |
b8e39f02a469fa17112fb66c90e79e69b3c94277 | Shell | alexantone/dme-socd2009 | /make.sh | UTF-8 | 185 | 3.296875 | 3 | [] | no_license | #!/bin/bash
SRC=src/*.c
BUILD_DIR=build
[ -d $BUILD_DIR ] || mkdir BUILD_DIR
for fx in $SRC ; do
bfx=$(basename $fx)
gcc -g -o build/${bfx/.c/} -Isrc $fx -lrt src/common/*.c
done
| true |
bed0723e78acf6668c80ed3c11e8aa66654ee82d | Shell | MaudGautier/detect-recombinants-in-F1 | /src/config/slurm/04c_pass_second_genome.config | UTF-8 | 6,434 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Source project configuration file
config_file=$(pwd)/src/config/example-project.config
source $config_file
## Parameters
# Filters
FILT_DEPTH=100 # Minimum nb of reads supporting a variant
FILT_FREQ=0.64 # Relative variant frequency between 1-FILT_FREQ and FILT_FREQ
FILT_QUAL=20 # Minimum Phr... | true |
f7f6ef0b63c40250de490f80f9dc7c6ba361744b | Shell | wsl222000/test | /findservices.sh | UTF-8 | 18,850 | 3.78125 | 4 | [] | no_license | #!/bin/bash
. /etc/.profile
. $CCRUN/bin/shellfuns.sh
declare -a HOSTS=( $SYSLIST )
declare REQ_UID=$(perl -e "print scalar getpwuid ((stat '$CCSYSDIR/CHKDAEMONS.cf')[4])")
declare BLATHER=false
declare NOT_DEAD_YET=false
declare NCRONTAB
function usage()
{
(( $# > 0 )) && return 1
echo -e "\nusage: $(... | true |
7db6b03736068b0ee43c45d933765723f76ad270 | Shell | renegeizu/UGR-SS | /Practica_02/Script.sh | UTF-8 | 11,088 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# uso: ./Script.sh -eficiencia
# ejemplo: ./Script.sh -O2
# Colores para los mensajes por terminal
nocolor='\033[0m'
red='\033[0;31m'
green='\033[0;32m'
orange='\033[0;33m'
blue='\033[0;34m'
purple='\033[0;35m'
gray='\033[1;30m'
yellow='\033[1;33m'
# Pedimos por parametro la eficiencia de compilacion
if ... | true |
af8fcf5b3e77eb36960830f590b1ceaf3ff24ea0 | Shell | wp-cli/wp-cli-tests | /bin/run-phpcs-tests | UTF-8 | 206 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Run the code style check only if a configuration file exists.
if [ -f ".phpcs.xml" ] || [ -f "phpcs.xml" ] || [ -f ".phpcs.xml.dist" ] || [ -f "phpcs.xml.dist" ]
then
vendor/bin/phpcs "$@"
fi
| true |
2ae71a94546b9396c4f6ae0f746b3f4c440f2209 | Shell | enlighter/linux-customizations | /fedora/bashrc | UTF-8 | 950 | 3.15625 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
# Enable tab completion
source ~/git-completion.bash
# colors!
green="\[\033[0;32m\]"
bl... | true |
f8d4aa29ced032cf1d7d202caa382524669b0779 | Shell | lj-ditrapani/dotfiles | /.zshrc | UTF-8 | 1,463 | 2.671875 | 3 | [] | no_license | # Use vi bindings
bindkey -v
# Only show last part of path >
export PS1="%1~> "
# Show [user@host] short_path > (for remote servers)
# export PS1="[%n@%m] %1~> "
alias l='ls -FXC --color'
alias ll='l -Ahl'
alias grep='grep --color=auto'
#alias gcrl="sudo loadkeys us"
#alias uiop="sudo loadkeys dvorak"
alias gst='git s... | true |
51f04acdcd5c1e69936aad99422013f323d99e93 | Shell | diegochiodini/shell-scripts | /find-empty-folders.sh | UTF-8 | 454 | 3.890625 | 4 | [] | no_license | #!/bin/sh
FOLDER="$1"
Delete()
{
echo "Deleting... '$FOLDER'"
find "$FOLDER" -type d -empty -delete
echo "Done."
}
[ -z "$FOLDER" ] && FOLDER="."
RES=$(find "$FOLDER" -type d -empty -print)
if [[ -z "$RES" ]]; then
echo "No empty folder were found."
exit
else
echo "$RES"
fi
echo "Do you want to delete thos... | true |
7157dbdcbf164b197c252f95c2444696e8f72921 | Shell | geraldstanje/realtime_wordcloud | /start_docker.sh | UTF-8 | 543 | 3.453125 | 3 | [] | no_license | #!/bin/bash
start() {
docker build --no-cache -t outyet .
boot2docker up && $(boot2docker shellinit)
boot2docker ip
# Run a docker
docker run -p 8080:8080 -t outyet
}
info() {
# docker ps
docker ps
# docker inspect hash
}
stopall() {
# docker stop hash
docker stop $(docker ps -a -q)
}
cleanup()... | true |
29a1bba28465f73852f7ba31ce75d0f1569fa4f2 | Shell | sammtcbn/dotfiles | /multipass_scripts/ubt2004_dev.bash | UTF-8 | 2,930 | 4.03125 | 4 | [] | no_license | #!/bin/bash
vmname=ubt2004
loginpw=1234
bridge_interface=eno1
function show_multipass_info()
{
echo multipass networks
multipass networks
echo
echo multipass list
multipass list
echo
}
function show_instance_info()
{
echo multipass info ${vmname}
multipass info ${vmname}
echo
}
function wait_multi... | true |
ed54faa54c63a9882c775fd233d5229400599b0f | Shell | zaptree/cli-tools | /docker/containers/liquibase.sh | UTF-8 | 1,187 | 3.78125 | 4 | [] | no_license | #!/usr/bin/env bash
#postgres://postgres:postgres@192.168.59.103:5432/ua
#postgres://postgres:postgres@boot2docker:5432/ua
#set container name
POSTGRES=postgres
# create postgres database
function createDatabase() {
docker exec $1 yum -y install postgresql-contrib
docker exec $1 psql -U postgres -c "CREATE DATABAS... | true |
8e16c2def32e6de823ccd53bb9d73d0d572af254 | Shell | jrevertvila/app_Nodejs_Express_Angular1.5 | /initdocker.sh | UTF-8 | 473 | 2.703125 | 3 | [] | no_license | #!/bin/bash
sudo docker build -t restimage backend/rest/
sudo docker build -t angularjsimage frontend/
if [ "$(sudo docker ps -a | grep container_rest)" ]; then
sudo docker start container_rest
else
sudo docker run --name container_rest -dit -p 3000:3000 restimage
fi
if [ "$(sudo docker ps -a | grep containe... | true |
f86911be532efb1c48b4fc38911169338b1c1c39 | Shell | ianbstewart/nonstandard_word_dissemination | /scripts/data_processing/average_dataframes.sh | UTF-8 | 274 | 2.671875 | 3 | [] | no_license | # compute average over all cells in dataframes
DATA_DIR=../../data/frequency
DATA_NAME=tag_pcts
DATAFRAMES=$DATA_DIR/*"$DATA_NAME".tsv
TIMEFRAME=2015_2016
OUTPUT=../../output/average_dataframes.txt
(python average_dataframes.py $DATAFRAMES --timeframe $TIMEFRAME > $OUTPUT)& | true |
45cf701ab3afce049da3e442a883d42c1a5723a5 | Shell | ellmo/ghgvc | /ghgvc.sh | UTF-8 | 6,731 | 2.625 | 3 | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# GHGVC install script for rails application
# Written by Carl Crott <carlcrott@gmail.com>
sudo apt-get -y install git-core curl locate
git clone http://github.com/delinquentme/ghgvc.git
curl -L https://get.rvm.io | bash -s stable --ruby
## RVM reqs
sudo apt-get -y install build-essential openssl librea... | true |
f586a87c96d57f25d6086404f542d0368d579c43 | Shell | nonlin-lin-chaos-order-etc-etal/files | /pregenerate.sh | UTF-8 | 978 | 3.421875 | 3 | [
"Unlicense"
] | permissive | #! /usr/bin/env sh
for d in $(find ./releases -type d); do
if [ $d = "download.i2p2.de" ]; then
break
fi
rm $d/index.md $d/index.html $d/README.md -fv
for f in $(ls $d); do
echo $d/$f
if [ -d $d/$f ]; then
echo "IS A DIR"
g="$f/index.html"
f=$g
fi
echo " - [$f]($f)" >... | true |
076a6ce1ba8573af1d2cc45086021a3ccfc22e36 | Shell | prateek0103/json2es | /bulk_insert.sh | UTF-8 | 729 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# 0. Some constants to re-define to match your environment
ES_HOST=localhost:9200
JSON_FILE_IN=data.json
JSON_FILE_OUT=out.json
# 1. Python code to transform your JSON file
PYTHON="import json,sys;
out = open('$JSON_FILE_OUT', 'w');
with open('$JSON_FILE_IN') as json_in:
docs = json.loads(json_in.read()... | true |
a63a2a20d4e9503f4122b84c8e51ac90f85ac315 | Shell | amadden80/installfest_script | /scripts/copy_over_dotfiles.sh | UTF-8 | 372 | 3.203125 | 3 | [] | no_license | SRC_DIR=~/.wdi/installfest
SETTINGS=$SRC_DIR/settings
dotfiles=($SETTINGS/dotfiles/*)
timestamp=$(date +%s)
mkdir -p $HOME/.wdi/backups_$timestamp
for filepath in "${dotfiles[@]}"; do
dotfile=".$(basename $filepath)"
if [[ -a "$HOME/$dotfile" ]]; then
cp "$HOME/$dotfile" "$HOME/.wdi/backups_$timestamp/$d... | true |
3508c5acf3d4a62e80f7e7a1e4e884ad82057fd2 | Shell | apoelstra/rust-miniscript | /contrib/test.sh | UTF-8 | 903 | 3.234375 | 3 | [
"CC0-1.0"
] | permissive | #!/bin/sh -ex
FEATURES="compiler serde"
# Use toolchain if explicitly specified
if [ -n "$TOOLCHAIN" ]
then
alias cargo="cargo +$TOOLCHAIN"
fi
# Lint if told to
if [ "$DO_LINT" = true ]
then
(
rustup component add rustfmt
cargo fmt --all -- --check
)
fi
# Fuzz if told to
if [ "$DO_FUZZ" ... | true |
9b211cc19b41e7fafbfa9d4cc6fae6d561cbc1e8 | Shell | digideskio/PartySuit | /installs/extra-osx-installs | UTF-8 | 1,512 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# extra-osx-installs
####= SuitAndCape Extra OS X Installation File
##============================================================================##
## Personalize OS X installation scripts here
echo "Beginning extra OS X installations"
## Require the administrator password
sudo -v
## Keep updating `sudo... | true |
e721d12b4e7d02f48a62893c27eec0a53cc06612 | Shell | kubiko/toolbox | /glue/bin/unset-aliases | UTF-8 | 375 | 3.375 | 3 | [] | no_license | #!/bin/bash
# loop through snap.yaml and setup aliases
snap_root=$(dirname $0)
snap_name=$(grep 'name: ' ${snap_root}/../meta/snap.yaml | awk '{ print $2}')
echo "This is helper script and it shoud be called by user directly!"
echo "Removing aliases for ${snap_name} snap"
snap aliases | grep toolbox | awk '{print $2... | true |
b7f96ac72c5b89d04c000569c2fee28b78ccee1b | Shell | morika-t/cg-deploy-bosh | /ci/update-cloud-config-tooling.sh | UTF-8 | 671 | 3.140625 | 3 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | #!/bin/bash
set -eu
files=("bosh-config/cloud-config/base.yml" "terraform-yaml/state.yml")
for file in ${MANIFEST_PATH:-}; do
files=(${files[@]} "${file}")
done
for environment in "development" "staging" "production"; do
if [ -s terraform-yaml-${environment}/state.yml ]; then
ENVIRONMENT=${environment} spruc... | true |
9af672c7cc8aba827fe5f407bdd65aa25afc8bf5 | Shell | Spread0x/enhancd | /src/filter.sh | UTF-8 | 3,740 | 3.6875 | 4 | [
"MIT"
] | permissive | __enhancd::filter::exists()
{
local line
while read line
do
if [[ -d ${line} ]]; then
echo "${line}"
fi
done
}
__enhancd::filter::join()
{
if [[ -n $1 ]] && [[ -f $1 ]]; then
command cat "$1"
else
command cat <&0
fi | __enhancd::command::awk 'a[$... | true |
2f88d2fcb12caafc91491bd00c26ef4b62c4bd48 | Shell | skingFD/BFA | /projects/arc/scripts/summarize_counts.sh | UTF-8 | 859 | 3.46875 | 3 | [] | no_license | #!/bin/bash
SCRIPTPATH=`readlink -f $0`
BASEDIR="`dirname $SCRIPTPATH`/.."
LOGSDIR=$BASEDIR/logs
OKLOG="$LOGSDIR/ok.log"
grep OK $LOGSDIR/bulk-basegraphs.log | cut -f1 -d' ' > $OKLOG
RAWLOGFILE="basegraphs-gen.log"
COUNTLOGFILE="counts.log"
SUMMARYCSV="$LOGSDIR/counts.csv"
echo "network,devices,processEtgVertices,p... | true |
893cab661a44b41c33457b3d55c408768eba59da | Shell | JOJ0/audio-utils | /tag_60_funk.sh | UTF-8 | 871 | 3.5625 | 4 | [] | no_license | #!/bin/bash
IFS=$'\n' # split only on newlines
#set -f # disable globbing
ARTIST="Andrew D. Gordon"
ALBUM="60 Of The Funkiest Keyboard Riffs Known To Mankind"
GENRE="Piano Practice"
YEAR="1995"
# adapt ls here:
for i in $(ls *Riff*mp3); do
#TITLE=$(echo "$i" | awk -F " - " '{ print $2 }' | sed -e 's/\.mp3//g')
... | true |
968fd858780c65167831130b501b41704944c816 | Shell | zambezi/ez-build | /test/cli/module-formats.bats | UTF-8 | 1,003 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load test-util
setup() {
load_fixture bare-project
}
teardown() {
unload_fixture bare-project
}
@test "should output umd modules by default" {
ez-build
assert_success
assert_expected "$(cat lib/index.js)"
}
@test "should output umd modules when specified" {
ez-build --flags modules:... | true |
2db1ab6c8cbf5ada37bda0396f81f4c70fec9cbf | Shell | DingtongHan/KungFu-1 | /docker/build-images.sh | UTF-8 | 960 | 3.21875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
cd $(dirname $0)
SOURCES_LIST=sources.list.aliyun
PY_MIRROR='-i https://pypi.tuna.tsinghua.edu.cn/simple'
pack_kungfu() {
cd ..
tar -cvf - srcs cmake CMakeLists.txt setup.py go.mod | gzip -c >docker/kungfu.tar.gz
cd -
}
build_image() {
local tag=$1
local dockerfile=$2
local ... | true |
d16be1d02637db3e8665e501cc6da7526662b8c4 | Shell | marcopeg/docker-images | /mssql-bacpac/scripts/list.sh | UTF-8 | 404 | 2.5625 | 3 | [] | no_license | #!/bin/bash
set -e
# Reset AWS credentials
rm -rf ~/.aws
mkdir -p ~/.aws
echo "[default]" >> ~/.aws/credentials
echo "aws_access_key_id = ${AWS_ACCESS_KEY}" >> ~/.aws/credentials
echo "aws_secret_access_key = ${AWS_ACCESS_SECRET}" >> ~/.aws/credentials
clear
echo "###"
echo "### Reviso State"
echo "###"
echo ""
echo ... | true |
d08a9f756ca0a12a50451856a16a4c67da6fdd60 | Shell | mateuszkojro/uczelnia_s2 | /sys_op/remote7/zadanie4.sh | UTF-8 | 208 | 3.0625 | 3 | [] | no_license | #!/bin/bash
if [ $1 = $2 ];then
echo "argumenty sa takie same"
elif [ -z $2 ] || [ ! -z $3 ];then
echo "zla ilosc arg"
elif [ -e $2 ];then
echo "plik docelowy juz istnieje"
else
cp $1 $2
fi
| true |
263fd46dd912515715aef2de9d858fb84bdf2e18 | Shell | vardancse/traffic | /weather.sh | UTF-8 | 317 | 2.890625 | 3 | [] | no_license | #!/bin/bash
start=2014-01-01
end=2014-02-01
while [ "$start" != $end ]; do
custom_start=`echo $start | sed "s/-//g"`
wget --output-document=New_York_City_$custom_start.json http://api.wunderground.com/api/fe5c0eae76462c31/history_$custom_start/q/NY/New_York_City.json
start=$(date -I -d "$start + 1 day")
done
| true |
b2c8ebae1b784cbae50ed753295b633f1b476bfe | Shell | PaulZhutovsky/rs-fMRI-Preprocessing | /preprocessing/preprocessing_AROMA.sh | UTF-8 | 1,602 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
aroma() {
subjFullFolder="$1"
dataFolder="$2"
AROMAScript="$3"
subjFolder=$(basename "${subjFullFolder}")
echo ${subjFolder}
featFolder="${dataFolder}/${subjFolder}/func/preproc.feat" # what do we want as output folder?
fMRIData="${featFolder}/filtered_func_data.nii.gz"
mcFiles="${featFolder}/mc/... | true |
1754a543a7af6c098b30030d868bfd39e66e1bf6 | Shell | TileDB-Inc/TileDB-xarray | /tools/hooks/pre-commit.sh | UTF-8 | 1,343 | 4.375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# Function to automate running linting/formatting tests.
run_test() {
name=$2
fix_msg=$3
echo "* Running ${name}.. "
echo "..................."
$1
status=$?
echo "..................."
if [ $status -ne 0 ]; then
read -r -p "..failed. Would you like continue with commit? [y/N] ... | true |
39a2c532fa9c391d8efc5940fe29bfa8ddc45188 | Shell | benhurstein/clab | /controle/controle-vent | UTF-8 | 2,748 | 3.0625 | 3 | [] | no_license | #!/bin/bash
MQTT_HOST=localhost
Talvo1=15031
Talvo=$[Talvo1+(`date +%s`-1482740000)/100]
if [ $Talvo -gt 15969 ]; then
Talvo=15969
fi
Tmed=$Talvo
Tvmed=$Talvo
Tinf=$[Talvo-10]
Tsup=$[Talvo+10]
Tmax=$Talvo
Tmin=$Talvo
estado_atual=NAOSEI
estado_quero=0
motor_atual=NAOSEI
motor_quero=100
teve_acima=0
proximo_envio... | true |
5a2c70e8e573156436aadf0bd0517c47c6363503 | Shell | keitaroyam/cheetah | /scripts/run_cheetah_dark | UTF-8 | 1,028 | 3.734375 | 4 | [] | no_license | #!/bin/bash
if [ $# -eq 0 ];
then
echo "USAGE: dark_cheetah rXXXX [rYYYY, rZZZZ, ...]"
echo "The following enviromnmental variables need to be defined: XTCDIR, CONFDIR_DARK and H5DIR_DARK"
else
cd $H5DIR_DARK
for (( i=1; i<=$#; i++ )); do
eval RUN=\${$i}
echo "Preparing to process $RUN"
eval RUNDIR=$... | true |
c345fca29ca1813788e182828cb8abdc5381b6b3 | Shell | ymxl85/MRs-based-test-suite-for-APR | /original/TS-mf/SP-tcas/mutants/MR2.sh | UTF-8 | 131 | 2.828125 | 3 | [] | no_license | MR=$1
number=$2
i=7
while [ $i -le $number ]
do
/bin/sh symbolicExeMR5.sh $MR v$i
/bin/sh MFCCMR2.sh $MR v$i
i=$((i+1))
done
| true |
5c32c564d506528cf0f402bf957190e7f0a79c78 | Shell | Crmiv/sh | /netmanage/autowifi.sh | UTF-8 | 686 | 3.40625 | 3 | [] | no_license | #!/bin/bash
IFACE=wlp3s0
IP_ADDR=192.168.1.10
SUBNET_MASK=255.255.255.0
GW=192.168.1.1
#if use physical cheat, cancel '#'
#HW_ADDR=''
ESSID="home"
WAP_KEY=''
#scan your surrounding,and use command 'iwlist scan'
FREQ=''
if [[ -n $WAP_KEY ]];
then
KEY_PART="key $WAP_KEY"
fi
#test root
if [ $UID -ne 0 ];
then
echo "... | true |
d22a11ff6aa8f68b75f105a7ea0f6f6b9699f814 | Shell | ikaika720/examples | /docker/integration/bin/download-pipework.sh | UTF-8 | 155 | 2.65625 | 3 | [] | no_license | #!/bin/sh
. ./env.sh
cd $baseDir
if [ -d $baseDir/pipework ]
then
cd pipework
git pull
else
git clone https://github.com/jpetazzo/pipework.git
fi
| true |
38ca4e625afe3aae3dacd8194de6ade205bea3da | Shell | sebGuerrero/coding_tournament | /back/test/setup.sh | UTF-8 | 501 | 3.53125 | 4 | [] | no_license | #!/usr/bin/env sh
waitUntilHealthy() {
COMMAND="docker inspect -f \"{{.State.Health.Status}}\" $(docker-compose ps -q $1)"
HEALTH_STATUS=$(eval ${COMMAND})
while [ "${HEALTH_STATUS}" != "healthy" ]; do
echo "Service is not healthy yet"
sleep 1
HEALTH_STATUS=$(eval ${COMMAND})
done
echo "Service i... | true |
01a4b517dcbd60a45306fa777880035446bcee6a | Shell | PHANTOM-DEV1/core-commander | /modules/environment.sh | UTF-8 | 1,807 | 3.84375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
setup_environment_file ()
{
if [[ ! -e "${CORE_DATA}/.env" ]]; then
mkdir "${HOME}/.phantom"
local envFile="${CORE_DATA}/.env"
touch "$envFile"
echo "PHANTOM_LOG_LEVEL=debug" >> "$envFile" 2>&1
echo "PHANTOM_DB_HOST=localhost" >> "$envFile" 2>&1
... | true |
12a18fb575aee9ed9a0fde0581fd5470ee4b7393 | Shell | RobLewisQA/PrisonersDilemma | /scripts/docker-compose-install.sh | UTF-8 | 373 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
sudo apt update
sudo apt install -y curl jq
version=$(curl -s https://api.github.com/repos/docker/compose/releases/latest | jq -r '.tag_name')
sudo curl -L "https://github.com/docker/compose/releases/download/${version}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /... | true |
bdcd85d70cb95de23c1ca31f36138267cdea0fe8 | Shell | mike-prince/dotfiles | /zsh/zshenv | UTF-8 | 343 | 2.515625 | 3 | [] | no_license | #!/usr/bin/env zsh
unsetopt GLOBAL_RCS # Do not read global configs
# Eliminate duplicates in paths
typeset -gU cdpath fpath path
# Base path
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
# Set GOPATH
export GOPATH="$HOME/go"
# Build path
PATH=$PATH:$GOPATH
# Source dotfiles
DOTFILES="$HOME/Code/dotfiles"
sou... | true |
34d9645a80eb4c8363b6772608e823448c9e5b0b | Shell | MarcelRobitaille/dotfiles | /bin/latex_rm | UTF-8 | 403 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
declare -a extensions=(".aux" ".bbl" ".bcf" ".blg" ".fdb_latexmk" ".fls" ".log" ".out" ".run.xml" ".glg" ".glg-abr" ".glo" ".glo-abr" ".gls" ".gls-abr" ".ist" ".lof" ".lot")
for ext in "${extensions[@]}"; do
echo "${1%.*}$ext"
done
read -p "Confirm deleting these files? [y/n] " -n 1 -r
echo
if [[ $REPLY... | true |
9587b84bd661466533ae8c5dbc10bc2df73454d2 | Shell | syreddy001/web_page_counter | /scripts/create_certificate.sh | UTF-8 | 2,328 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
setup_environment () {
set -x
sleep 5
source /usr/local/bootstrap/var.env
IFACE=`route -n | awk '$1 == "192.168.9.0" {print $8;exit}'`
CIDR=`ip addr show ${IFACE} | awk '$2 ~ "192.168.9" {print $2}'`
IP=${CIDR%%/24}
if [ "${TRAVIS}" == "true" ]; then
ROOTCERTPATH=tmp
IP=$... | true |
d3fbf091d76e2a770aecc8c9d31c64fa68ddd9d6 | Shell | possan/sensortag-midi | /BundleAssets/midi/app.sh | UTF-8 | 439 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env bash
cd "$(dirname "$0")"
# Start node midi server
../Resources/app/node ../Resources/app/server.js >/tmp/MIDIServer.log 2>&1 &
# Get PID
sleep 0.1
PID=`ps aux|grep node|grep server.js|grep -v grep|awk '{print $2}'`
if [ "${PID}" ]
then
# launch the cocoa app
./apache-callback-mac -url "file://$(di... | true |
dfff22d27e4ff4975904082abb585e8bdee25fa3 | Shell | maclockard/dotfiles | /zshrc | UTF-8 | 3,586 | 2.859375 | 3 | [] | no_license | # zplug set-up
source ~/.zplug/init.zsh
isOSX="[[ $OSTYPE == *darwin* ]]"
isLinux="[[ $OSTYPE == *linux* ]]"
# zsh vi mode
# bindkey -v
# export KEYTIMOUT=1 # lag of .1 seconds when switching modes
# bindkey -M viins 'jk' vi-cmd-mode
# bindkey "^?" backward-delete-char # actually allow deleting
zplug 'zplug/zplug', ... | true |
e3644fcc173741120c41a918c52e16e88ffd82f3 | Shell | tiedwu/install-shim | /memento_updater/find_omaha.sh | UTF-8 | 749 | 3.375 | 3 | [] | no_license | # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Parent file must include memento_updater_logging.sh
# This file cannot be run by itself, it must be included.
# Return the value for a given key in... | true |
37b90740289a2bbe9a4a796ee2b1521fb856cb0a | Shell | Wiredcraft/debian-packages | /packages/devops-etcd/build/DEBIAN/prerm | UTF-8 | 1,201 | 3.578125 | 4 | [] | no_license | #! /bin/sh
# prerm script for devops-etcd
#
# see: dh_installdeb(1)
set -e
USER=devops
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <pac... | true |
0f6244f307b9d3e2db7b2f1d2e9d4ad2ee97fc66 | Shell | f5devcentral/terraform-gcp-f5-sca | /demo/cis-kic/setup.sh | UTF-8 | 4,919 | 3.078125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
dir=${PWD}
GCP_PROJECT=$(gcloud config get-value project)
# expects sed/gcloud/jq best run in google cloud shell
# bigip
echo -n "Enter your bigip username and press [ENTER]: "
read BIGIP_ADMIN
secrets=$(gcloud secrets versions access latest --secret="bigip-secret")
BIGIP_PASS=$(echo $secrets | jq -r .pass)... | true |
bcdd2265955437fff0509f61a0855877b62eef74 | Shell | beudbeud/dotfiles | /private_dot_config/rofi/scripts/executable_powermenu.sh | UTF-8 | 1,120 | 3.46875 | 3 | [] | no_license | #!/bin/bash
#res=$(rofi -dmenu -p "menu:" -separator-style none -location 0 -width 250 -hide-scrollbar -padding 30 -font "UbuntuMono Nerd Font 18")
#
#if [ $res = "lock" ]; then
# /home/khoaduccao/.config/lock.sh
#fi
#if [ $res = "logout" ]; then
# i3-msg exit
#fi
#if [ $res = "suspend" ]; then
# systemctl su... | true |
a738b6a5752ee56b3799fb4d315045a49b07ce9b | Shell | yoonsung0711/microservices | /subprojects/service-registry/scripts/local/_4_stop-current-server-by-process-id.sh | UTF-8 | 730 | 2.859375 | 3 | [] | no_license | #!/bin/bash
if [ $PID -ne 0 ]; then
if [ -n $ZSH_VERSION ]; then
printf $'\e[31m\n◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎ stopping server ◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎\n\n'
else
echo -e '\n◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎ stopping server ◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎◼︎\n'
fi
echo -e "▶︎ ... | true |
f904daf9b941b2231f2a074b27f84ae18cfa25ea | Shell | jduda27/Unix_Shell-Scripts | /ScriptsW3/script8 | UTF-8 | 340 | 3.375 | 3 | [] | no_license | #!/bin/bash
# reading values from a file
file="items.txt"
# $'\n' = new line character
# you can string multiple delimiters together to set multiple delimiters
# IFS is the variable that chooses the delimiter for reading in for loops
prevIFS=$IFS
IFS=$'\n'':'';'','
for item in $(cat $file)
do
echo "Processing $item... | true |
8b310383a608ffd38569fefff22741ef255bc4f7 | Shell | smittal6/cs251 | /ass2/q2.sh | UTF-8 | 3,431 | 3.71875 | 4 | [] | no_license | #!/bin/bash
#Inputs n,m,d,file f,t and g
#Array for students[indexed at zero], with the value in the array being the day assigned to it
#array for number(by using percentages) of students on days.
#array to store the percentages from the file
#array for keeping track of actually allocated students to days[bascically ... | true |
1e91467229986d2b05c455657a2193bb92391263 | Shell | a-suenami/koshucode-design | /toolkit/koshu-inout/temp/temp.sh | UTF-8 | 80 | 2.546875 | 3 | [] | no_license | #!/bin/sh
for temp in TEMP-KOSHU-*; do
echo "A temporary file exists."
done
| true |
adc3ed8f3f30cfa8d961b3d2707a4af85e211b0b | Shell | qiujianben/csi | /install.sh | UTF-8 | 5,045 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash --login
date -u +%Y-%m-%d_%H.%M.%S
debug=$2
csi_deploy_type=$1
os=$(uname -s)
# TODO: Check that all configs exist
# MAKE .EXAMPLE and actual file the same
# if they're the same size prompt user to
# configure
# TODO: install ansible in this script if not installed
# to take advantage of encrypted configs... | true |
cf5f28797199d873a07a986f99c509085a5c6a3e | Shell | appsembler/openedx-azure-devstack | /configure-openedx.sh | UTF-8 | 2,849 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright (c) Microsoft Corporation. All Rights Reserved.
# Licensed under the MIT license. See LICENSE file on the project webpage for details.
# print commands and arguments as they are executed
set -x
echo "starting open edx devstack provision on pid $$"
date
ps axjf
#############
# Parameters
####... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.