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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6dfa504ee95f836feba5b1e7c5e658c90ff50dda | Shell | cornBuddy/dotfiles | /roles/window-manager/templates/xinitrc.j2 | UTF-8 | 863 | 2.84375 | 3 | [] | no_license | #!/bin/sh
{{ ansible_managed | comment }}
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmod... | true |
5f8f8925d6603a55f9551f170c98d5e743eb7908 | Shell | CristescuLab/Scripts | /postblastaln.sh | UTF-8 | 612 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
# 1. tsv blast file
# 2. query fasta
# 3. subject fasta
# 4. fasta out filename
count=0
while read line; do
#if [[ ${line} != *"qaccver"* ]]; then
((count++))
read -a vars <<< $line
echo "processing ${vars[0]} and ${vars[1]}"
# get query sequence
seqkit grep -p "${vars[0]}" $2 > tmp... | true |
a69e7b60322a889f6e84c04ac665085f0b882418 | Shell | maksverver/MSc | /benchmark/tests4.sh | UTF-8 | 1,044 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
# FIXME: change this to use start-job.sh?
# These are intended to show the effectiveness of various lifting strategies on (clustered) random games.
run_on() {
for seed in {1..30}
do
for lift in -llinear:0 -llinear:1 -Lpredecessor:0 -lpredecessor:0 -lpredecessor:1 -Lpredecessor:1 -Lminmeasure:... | true |
19953e21b5ab383f299be4c34dc86b05fbbcb312 | Shell | sallyom/online-hibernation | /hack/make.sh | UTF-8 | 830 | 4.03125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -euo pipefail
TARGET="$1"
shift
STARTTIME=$(date +%s)
EXITCODE=0
for PROJECT
do
target_exists=1
if [[ "$(make -C "$PROJECT" --question "$TARGET" >& /dev/null; echo $?)" != 2 ]]; then
testexec="make $TARGET -k"
else
target_exists=0
fi
echo
echo "*******************************... | true |
0b41bedb408926ef4509dd8ef6f6c58d1b073e0b | Shell | csantanapr/knative-docker-desktop | /demo.sh | UTF-8 | 914 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
set -u
echo -e "Switching to docker-desktop kubectl context"
kubectl config use-context docker-desktop
echo -e "🍿 Installing Knative Serving and Eventing ... \033[0m"
STARTTIME=$(date +%s)
curl -sL https://raw.githubusercontent.com/csantanapr/knative-minikube/master/install.sh |... | true |
b51918a2ca87e960ca66ce26f23c572a4236850f | Shell | PuzzleIOT/Index | /force-remote-test-all.sh | UTF-8 | 868 | 3.390625 | 3 | [] | no_license | #!/bin/bash
BRANCH=$(git branch | sed -n -e 's/^\* \(.*\)/\1/p')
if [ "$BRANCH" = "dev" ]
then
DIR=$PWD
sh force-remote-test.sh || exit 1
echo ""
echo "Monitor"
cd sketches/monitor/SoilMoistureSensorCalibratedSerial/
sh force-remote-test.sh || exit 1
cd $DIR
echo ""
echo "Monitor ESP"
cd sk... | true |
1d796422834e88913cb2417a21f16cde161c0737 | Shell | liuzl/ulogme | /ulogme.sh | UTF-8 | 178 | 2.65625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$(uname)" == "Darwin" ]; then
# This is a Mac
./osx/run_ulogme_osx.sh
else
# Assume Linux
sudo echo -n ""
sudo ./keyfreq.sh &
./logactivewin.sh
fi
| true |
4b4256b417fc4d39bb13e278028ea658104a2223 | Shell | openSUSE/package-lists | /doitall.sh | UTF-8 | 1,421 | 3.25 | 3 | [] | no_license | #! /bin/sh
git pull --rebase
proj=$1
repo=$2
test -n "$proj" || proj=Factory
test -n "$repo" || repo=standard
case $proj in
Factory)
product=000product
;;
Leap:15.*)
product=000product
;;
Leap:15.*:Ports)
product=000product
;;
Factory:PowerPC)
p... | true |
70a209cf419b498b66fffba44cd3784a454bb5a6 | Shell | godmode2k/pawn_build_custom_apis | /pawn_cc.sh | UTF-8 | 811 | 3.28125 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/bin/sh
# --------------------------------------------------------------
# Project: PAWN
# Purpose: PAWN CC Script
# Author: Ho-Jung Kim (godmode2k@hotmail.com)
# Date: November 5, 2006
# Filename: pawn_cc.sh
#
# Last modified:
# License:
#
# Note:
# --------------------------------------------------------------
# ... | true |
fb87055611f97e2e10c7ec26ef7296a9f9177a23 | Shell | onokatio/bulk-kosen-syllbus | /main.sh | UTF-8 | 1,282 | 3.203125 | 3 | [] | no_license | set -eu
SCHOOL=14
DEPARTMENT=14
function getSubjectIds(){
YEAR="$1"
GRADE="$2"
COL1="$(( 6+(4*(GRADE-1)) ))"
COL2="$(( COL1 + 2 ))"
curl -Ss "https://syllabus.kosen-k.go.jp/Pages/PublicSubjects?school_id=${SCHOOL}&department_id=${DEPARTMENT}&year=${YEAR}&lang=ja" | pup 'table#sytablenc tbody tr json{}' | jq -r "... | true |
61a6d7ea5973f359af07f7e9cb8dc82d5f69c85f | Shell | rperea14/drigoscripts | /drigo_dcm_organizer_from_xnat.sh~ | UTF-8 | 1,219 | 3.734375 | 4 | [] | no_license | #!/bin/bash
#Rodrigo Perea
#rperea@kumc.edu (alternative email grandrigo@gmail.com)
#PLEASE ADD DESCRIPTION HERE:!!!!!!
#
#
#THIS SCRIPT WAS CREATED UNDER bash version 3.2 unders OSX 10.7. To check your bash version,
#enter bash --version
#Any questions please feel free to contact me at the email provided above.
SOU... | true |
dd37d87868ad141bc5937cc93cf4a53973c5e2b1 | Shell | crossbario/crossbar-examples | /authentication/test_tls.sh | UTF-8 | 1,113 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
########################################################################################
##
## WAMP-TLS(-client-authentication) static
##
crossbar start --cbdir=./tls/static/.crossbar &
sleep 10
python ./tls/static/client_tx.py --url wss://localhost:8080/ws --key client0.key --cert client0.crt --channel_bin... | true |
cff306d5946bbb63f93a59d2ae7ba1abcfc4fb02 | Shell | amiel/ec2_runner | /iptables_tunnel.sh | UTF-8 | 1,029 | 3.703125 | 4 | [] | no_license | #!/bin/bash
SELF="./script/ec2_runner/iptables_tunnel.sh"
source "$(dirname $SELF)/functions.sh"
source "$(dirname $SELF)/shared.sh"
get_port() {
case $2 in
backup) echo $[$1 + 5000] ;;
*) echo $[$1 + 5500] ;;
esac
}
add_server() {
local ip=${1:?please supply a server} port=${2:?please supply a port}
ebegin ... | true |
75acc7dfe7155f67f93569c8fd09b5eb2f4e7e9b | Shell | rnd-forests/poi-crawler | /backend/.docker/develop.sh | UTF-8 | 1,254 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Possible workspaces
# declare -a WORKSPACES=(api)
# Validate user-supplied workspace.
# validate_workspace () {
# local e match="$1"
# shift
# for e; do [[ "$e" == "$match" ]] && return 0; done
# echo 1
# }
# if [[ $(validate_workspace "$1" "${WORKSPACES[@]}") == 1 ]]; then
# echo "... | true |
f1099334a9678c1fad6a835de4f02024ba5bc3de | Shell | STAR-RG/shaker-artifacts-icsme | /setup.sh | UTF-8 | 1,281 | 3.0625 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PATH_SDKMAN="./Android/cmdline-tools/tools/bin"
PATH_ADB="./Android/platform-tools"
PATH_EMULATOR="./Android/emulator"
cd ~
# Download packages
sudo apt-get update
sudo apt-get install -y openjdk-8-jdk stress-ng python3-pip unzip r-b... | true |
936852bcc458fe5cf6ed94960dc005114f4b631f | Shell | aws/aws-codedeploy-agent | /init.d/codedeploy-agent | UTF-8 | 3,022 | 3.8125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Init file for codedeploy-agent
#
# chkconfig: 2345 98 02
# description: codedeploy-agent processes the deployments created by AWS CodeDeploy and installs \
# the deployment artifacts on to this instance.
### BEGIN INIT INFO
# Provides: codedeploy-agent
# Required-Start: $all
# Required-Stop:... | true |
ad4eb294b1e03071a50479fa5a20627d0c66a771 | Shell | aalthof1/cs252 | /shell-practice/if_else.sh | UTF-8 | 129 | 3.109375 | 3 | [] | no_license | #!/bin/bash
directory="./Scripting"
if [ -d $directory ]; then
echo "Directory exists"
else
echo "Directory does not exist"
fi
| true |
3e3c13477c371e98954d770100469e5d97097950 | Shell | Insight-Heroes/ih | /staging.sh | UTF-8 | 1,325 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
echo "------------------\nWe are not using heroku, \nTry 'sh ec2-staging.sh' to deploy on EC2 staging \n------------------\n"
exit 1
# ==========================================================
set -e
if [ `git branch --list deploy` ]
then
# Delete current deploy branch
git branch -D deploy
fi
# Swi... | true |
ebfdbbc463b52669806679a0dc34061002f37527 | Shell | alonSadan/kubemacpool | /hack/install-tools.sh | UTF-8 | 154 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -xe
tools_file=$1
tools=$(grep "_" $tools_file | sed 's/.*_ *"//' | sed 's/"//g')
for tool in $tools; do
$GO install ./vendor/$tool
done
| true |
3fb539eddf89b19410f3fc98a2f019b5e1f1cfe6 | Shell | jkwong888/terraform-openshift-installicp | /templates/setup_icpinstall.sh.tpl | UTF-8 | 1,926 | 3.8125 | 4 | [] | no_license | #!/bin/bash
set -x
test -d ${icp_install_path} || sudo mkdir -p ${icp_install_path}
cd ${icp_install_path}
if [[ ${icp_binary} == http* ]]; then
echo "HTTP binary found"
hostname=$(echo ${icp_binary}|awk -F/ '{print $3}')
filename=$(echo ${icp_binary}|awk -F$${hostname} '{print $2}')
basename=$(basena... | true |
f1096300730c77a582faa9a7dfcac8617f32f089 | Shell | l4cr0ss/provisioner | /auto-install.sh | UTF-8 | 2,569 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Script framework for virtual machine provisioning.
# Author: Jefferson Hudson
#---------------------------#
# Function defs and imports #
#---------------------------#
SERVER=""
authorized_keys(){
wget "$SERVER"/scripts/config-authorized_keys.sh \
-O /tmp/config-authorized_keys.sh
source /tmp/confi... | true |
33d02ff771e817a8cdfdaf4e46d3b3a576535523 | Shell | jsjimenez51/holberton-system_engineering-devops | /0x0F-load_balancer/1-install_load_balancer | UTF-8 | 587 | 2.609375 | 3 | [] | no_license | #!/usr/bin/env bash
# Installs HAProxy 1.8 (stable LTS) on server and configures it
# Install 'add-apt-repository' functionality
sudo apt-get install software-properties-common
# Download, update, upgrade, and install HAProxy 1.8
sudo add-apt-repository -y ppa:vbernat/haproxy-1.8
sudo apt-get update
sudo apt-get -y ... | true |
ee0feaa8a001b5e4c4533df1be85de1e92f477a1 | Shell | adzhou/oragle | /WebKit/Tools/iExploder/iexploder-1.7.2/tools/release_src.sh | UTF-8 | 1,051 | 3.234375 | 3 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | #!/bin/sh
# Create a tarball from the subversion repository.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | true |
630d692922a60dc7d8b9ed63859b5967ab396549 | Shell | iamkafai/metal-setup | /mutt/mutt2patch.sh | UTF-8 | 344 | 2.625 | 3 | [] | no_license | #!/usr/bin/env bash
PATCH_FILE=$(mktemp $HOME/tmp/mutt/mutt-patch.XXXXXX)
cat > $PATCH_FILE
MAILBOX=`cat $PATCH_FILE | formail -c -xSubject: | tr "'" "." | sed -e '{ s@^ @@g; s@\[@@g; s@\]@@g; s@[*()" ]@_@g; s@[/:]@-@g; s@^ \+@@; s@\.\.@.@g; s@-_@_@g; s@__@_@g; s@\.$@@; }' | cut -c 1-70`.patch
mv $PATCH_FILE $HOME/k... | true |
115547dc05919be520f0b867bd26f4cf53bd299e | Shell | openshift/thanos | /scripts/rh-manifest.sh | UTF-8 | 356 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Generate rh-manifest.txt file.
# Run from repository root.
set -e
set -u
WORKING_FILE="$(mktemp /tmp/rh-manifest.XXXXXXXX)"
find . -name package.json -execdir yarn list --silent --json \; | \
jq -r '.. | objects | .name? | select(. != null)' \
2>/dev/null >>"${WORKING_FILE}"
sort "${WORK... | true |
37ae2ddf05952070c27b1ef26f9561b58a2811cc | Shell | murailab/Ponroy2020_HMG | /ATAC-seq/align.sh | UTF-8 | 464 | 3.0625 | 3 | [] | no_license | #!/bin/bash
# usage: bash align.sh | parallel -j 12
samples=`ls fastq/*.fastq.gz | cut -d / -f 2 | cut -d . -f 1-5 | cut -d _ -f 1,2 | uniq`
genome="reference_data/Ensembl/Homo_sapiens/GRCh37/Sequence/BWAIndex/genome.fa"
ncores="8"
for s in $samples; do
if [ -f bam/${s}.bam ]; then
continue
fi
echo "bwa mem -... | true |
5d0dc13a86ac96a2a032bfc85501ef1604988043 | Shell | JavierGalvez/Practicas-Grado | /MH/practica3/run_all.sh | UTF-8 | 502 | 2.8125 | 3 | [] | no_license | #!/bin/bash
declare -i k
for alg in es bmb ils-ls ils-es; do
for seed in 11264 16438 75645 79856 96867; do
for dataset in iris rand newthyroid ecoli; do
for r in 10 20; do
if [ "$dataset" == "ecoli" ]
then
k=8
else
... | true |
1f539897265d7b9dd1455d75e5d48d8456608efa | Shell | minterger/menu-vps | /.users/.menuusers.sh | UTF-8 | 15,529 | 3.609375 | 4 | [] | no_license | #!/bin/bash
########################################################
onoff () {
statefecha="$(ps x | grep .fechaexp.sh | grep -v grep)"
if [ "$statefecha" = "" ]; then
stateexp="[off]"
else
stateexp="[on]"
fi
}
fun_bar () {
comando[0]="$1"
comando[1]="$2"
(
[[ -e $HOME/fim ]] && rm $HO... | true |
0190715f5fc45faf5186caec7a3f2a7e3fd6b1a1 | Shell | LABBIZ/aich02 | /setup.sh | UTF-8 | 1,389 | 2.515625 | 3 | [] | no_license | #!/bin/bash
SYNC_DIR="/vagrant"
apt-get update
apt-get -y upgrade
apt-get -y install wget
apt-get -y install --no-install-recommends ccache cmake curl g++ make unzip git
apt-get -y install python3 python3-dev python3-pip python3-setuptools python3-virtualenv python3-numpy python3-scipy python3-yaml python3-h5... | true |
b6646c730d245e3e2c1858613617e118bfad75fe | Shell | juanino/pyuverse | /bin/start_daemon.sh | UTF-8 | 470 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# modify with your install location
INSTALLROOT=/root/appliance/pyuverse/bin/
if [ -x ${INSTALLROOT}/inid_stats.py ] ; then
echo starting up ${INSTALLROOT}/inid_stats.py
else
echo Could not find ${INSTALLROOT}/inid_stats.py
echo please check the value of INSTALLROOT in start_daemon.sh
fi
daem... | true |
caa5ccf00821628678e02d39e7caadece8919263 | Shell | cpuu/afl-fuzzing-training | /workshop/_shared_/run_parallel_fuzz.sh | UTF-8 | 3,776 | 3.234375 | 3 | [] | no_license | #!/bin/bash
### PARAMS
if [ $# -lt 7 ];
then echo "illegal number of parameters : $0 project_name test_dir (or - for continue) findings_dir fuzz_label afl_fuzz_exe fuzzed_exec nr_fuzzers [fuzz_label afl_fuzz_exe fuzzed_exec nr_fuzzers]*"
exit;
fi
PROJECT=$1
EXEC=test_$PROJECT.exe
EXEC_ASAN=test_"$PROJECT"_... | true |
0444b540f4abb4f95cda14b752f99e58285dd116 | Shell | garridoo/rhizobiales | /bai_2015_leaf.sh | UTF-8 | 6,498 | 3.515625 | 4 | [] | no_license | #!/bin/bash
# scripts for 16S data analysis
#
# originally by Ruben Garrido-Oter
# garridoo@mpipz.mpg.de
# exits whenever a function returns 1
set -e
# get path to scripts
scripts_dir=$(dirname $0)
# load config file
source $scripts_dir/config.sh
# load functions
source $scripts_dir/16s.functions.sh
# activate QI... | true |
c4f8eb51d7675911e047d6b738ad2ea5ecdd93b8 | Shell | Msrgit/MyVim | /My Vim Configuration/prereqs.sh | UTF-8 | 516 | 2.796875 | 3 | [] | no_license | #!/bin/bash
function dbum() {
if [[ -e "$1" ]]; then
mv "$1" "$1.$(date +%y%m%d%H%M%S)"
fi
}
sudo apt-get -y install ctags silversearcher-ag
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
dbum ~/.vimrc
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vu... | true |
e04f603323a3e7e8e8a347bb1ec7362f7331eeb3 | Shell | yujianjun1025/scala_exercise | /mem_fun.scala | UTF-8 | 820 | 2.796875 | 3 | [] | no_license | #!/bin/bash
exec scala "$0" "$@"
!#
import scala.io.Source
object LongLines {
def processFile(filename :String, width:Int){
val source = Source.fromFile(filename)
for(line <- source.getLines()){
processLine(filename, width, line)
}
}
def processLine(filename: String, width : Int, line:String)... | true |
ffcabb0f094af7fd36784b1bbe294d0e6ed9c9c0 | Shell | UCLeuvenLimburg/advanced-programming-topics | /exercises/git/03-branches/04-merge/solution.sh | UTF-8 | 499 | 2.5625 | 3 | [] | no_license | #/usr/bin/env bash
pushd sandbox
git merge feature-1
git merge feature-2
# Resolving conflict; should be done using editor
echo This should be line 1 > file.txt
echo This should be line 3 >> file.txt
git add file.txt
git commit --no-edit
git merge feature-3
echo This should be line 1 > file.txt
echo This should ... | true |
707e27dc5d67e4c69a14cf12863475e64b0dc008 | Shell | Team-OctOS/platform_vendor_oct | /config/oct_overlay | UTF-8 | 683 | 2.734375 | 3 | [] | no_license | #!/bin/sh
# Copyright (C) 2014 Team OctOS
#
# OctOS overlay script created by Treken for copying files to specified directories
#
# For recursive directories a permisions flag "-p" must be used
# For overwriting files the force flag "-f" must be used
#
# Disclaimer:
# We are not responsible if you edit this script and ... | true |
c4a6c86cc88ba849025ab5592c7d7b449c1771e5 | Shell | Globidev/linux-dotfiles | /docker/docker.install.custom | UTF-8 | 377 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Here I install docker from the binaries as it gives better control over the daemon
DOCKER_PATH="/usr/local/bin/docker"
DOCKER_VERSION="1.11.0"
DOCKER_URL="https://get.docker.com/builds/$(uname -s)/$(uname -m)/docker-$DOCKER_VERSION.tgz"
if [[ ! -e $DOCKER_PATH ]]; then
curl -L $DOCKER_URL | ... | true |
1a81021188ad345d7947cdd2be9aedb11b6f14c0 | Shell | amitlaldass/assignment | /usermenu | UTF-8 | 1,278 | 3.546875 | 4 | [] | no_license | #!/usr/bin/ksh
#######################################################################
#Author:Amit Kumar
#email ID:amitforjob@gmail.com
#######################################################################
USER=`/usr/bin/logname`
main()
{
while true
do
{
clear
echo "1. Change your passwd"
echo "2. See the Disk space... | true |
34e49ddd77346f389f108710f75fcee3f70b9dc8 | Shell | sbrk-org/slackbuilds | /network/opensmtpd/rc.opensmtpd | UTF-8 | 454 | 4.03125 | 4 | [] | no_license | #!/bin/sh
# Start/stop/restart OpenSMTPD.
# Start OpenSMTPD
opensmtpd_start() {
if [ -x /usr/sbin/smtpd ]
then
echo "Starting OpenSMTPD"
/usr/sbin/smtpd
fi
}
opensmtpd_stop() {
smtpctl stop
}
opensmtpd_restart() {
opensmtpd_stop
sleep 1
opensmtpd_start
}
case "$1" in
'start')
open... | true |
4518d31bf28563ebb13b4a0af6efaf02b2f163dc | Shell | Sebastien-HATTON/docker-firefox | /run.sh | UTF-8 | 868 | 3.40625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
IMAGE=${1:-kurron/docker-firefox:latest}
AUDIO_GROUP_ID=$(cut -d: -f3 < <(getent group audio))
VIDEO_GROUP_ID=$(cut -d: -f3 < <(getent group video))
USER_ID=$(id -u $(whoami))
GROUP_ID=$(id -g $(whoami))
# Need to give the container access to your windowing system
xhost +
CMD="docker run --env HOME=/hom... | true |
46a09938c921d81c5ecdc81b39cf22808093fa79 | Shell | BeckResearchLab/ODIn_dataServer | /run2 | UTF-8 | 233 | 2.796875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
cd /Volumes/Drobo1/fred/OD_data
while [ 1 ]
do
odfile=`date | sed -e "s/ /_/g" -e "s/:/_/g" `.OD.txt
echo "(re)starting service w/ output saved to $odfile"
/Volumes/Drobo1/fred/ODv2/dataServer 8578 $odfile 7252
done
| true |
4339c3bf9f6b33f10d7af428a0de29c9aef48149 | Shell | MusaHami/logo-classification-capstone-project | /move_JPEG_files.sh | UTF-8 | 861 | 3.28125 | 3 | [] | no_license | #!/bin/bash
oldpath="/data/Machine_Learning/Machine_Learning_Engineer/capstone_project/openlogo/JPEGImages"
newpath="/data/Machine_Learning/Machine_Learning_Engineer/capstone_project/LogosInTheWild-v2/data"
OIFS="$IFS"
IFS=$'\n'
for file in $(find "$oldpath" -regextype posix-extended -regex '.*img[0-9]+.jpg');
do
#... | true |
aa2a3925f34fb58346caee1f4b4347f22d148e9a | Shell | bthj/volcano-webcam-to-time-lapse-video | /eldgos/make_DV_video/crop_webcam_images_in_range.sh | UTF-8 | 384 | 2.8125 | 3 | [] | no_license | #!/bin/bash
YEAR="2010"
MONTH="03"
for d in {24..31}
do
DAY="$YEAR-$MONTH-$d"
. crop_webcam_image_left.sh
. crop_webcam_image_right.sh
done
MONTH="04"
for d in {01..30}
do
DAY="$YEAR-$MONTH-$d"
. crop_webcam_image_left.sh
. crop_webcam_image_right.sh
done
MONTH="05"
for d in {01..21}
do
DAY="$YEAR-$MONTH-$d"... | true |
aed28d4cf9b779664dd36746e15556e03204dfc7 | Shell | alfunx/.dotfiles | /.config/ranger/scope.sh | UTF-8 | 5,115 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
# ranger supports enhanced previews. If the option "use_preview_script"
# is set to True and this file exists, this script will be called and its
# output is displayed in ranger. ANSI color codes are supported.
# NOTES: This script is considered a configuration file. If you upgrade
# ranger, it wi... | true |
d8c8e77809c132c67fea1b5608a79e914c256831 | Shell | mortaromarcello/Livedevelop | /wheezy/openbox_i386_iso-hybrid/config/hooks/sakis3g.chroot | UTF-8 | 343 | 2.515625 | 3 | [] | no_license | #!/bin/bash
TMP="/tmp/sakis3g"
[[ ! -d ${TMP} ]] && mkdir -p ${TMP}; cd ${TMP}
rm -R -f -v *
git clone http://github.com/mortaromarcello/sakis3g-source
cd sakis3g-source
mkdir build
./compile
cp -v build/sakis3gz /usr/bin/sakis3g
cp -v files/sakis3g.png /usr/share/icons
cp -v files/sakis3g.desktop /usr/share/applicatio... | true |
4607c5a996eaa182e2bda96588a592e378b0ffe3 | Shell | smiley-yoyo/v2ray-ws-tls-caddy | /entry.sh | UTF-8 | 1,760 | 3.125 | 3 | [] | no_license | #!/bin/bash
domain="$1"
path="$2"
uuid="$3"
psname="v2ray-ws"
if [ ! "$uuid" ] ;then
if [ -f "/root/.v2ray/uuid" ]; then
uuid=`cat /root/.v2ray/uuid`
else
uuid=$(uuidgen)
echo "使用随机生成的UUID: ${uuid}"
fi
fi
mkdir -p /root/.v2ray
echo ${uuid} > /root/.v2ray/uuid
mkdir -p /etc/caddy
mkdir -p /etc/v2ra... | true |
5bd3c4be5cb417218356ddfc80f400954b397a8e | Shell | mcLaTrends/Forecast-POC | /deploy_utils/checkVersion.sh | UTF-8 | 1,623 | 4.0625 | 4 | [] | no_license | #!/bin/bash
if [ -z "$1" ]
then
echo "serviceName (service name) not supplied"
exit 1
fi
if [ -z "$2" ]
then
echo "serviceVersion (desired version number) not supplied"
exit 1
fi
if [ -z "$3" ]
then
echo "teamAccountNumber (desired team account number) not supplied"
exit 1
fi
serviceName=... | true |
a25e8635b263ca30c2f97e4a38e6a56eb6439c0c | Shell | eeayiaia/scmt | /resources/plugins.d/hadoop/master.init.d/10--add-master-hosts.sh | UTF-8 | 323 | 3.296875 | 3 | [] | no_license | #!/bin/bash
#Script runs once to add hadoop-master to /etc/hosts
#Get script directory
DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
. "$DIR/../../../scripts.d/utils.sh" || exit 1
. "$DIR/../resources/config" || exit 1
#Set master ip to /etc/hosts
echo "$MASTER_NODE hadoop_master" >> /etc/hos... | true |
ff07edfa1f60eabab10ad03f1bdec9bbe5d67874 | Shell | hpcc-docker-kubernetes/HPCC-Docker-Ansible | /hpcc-tools/config_hpcc.sh | UTF-8 | 9,338 | 3.6875 | 4 | [] | no_license | #!/bin/bash
SCRIPT_DIR=$(dirname $0)
function usage()
{
cat <<EOF
Usage: $(basename $0) <options>
<options>:
-u: update mode. It will only re-create dali/thor master environment.xml
and environment.xml with real ip. Re-generate ansible host file,
run updtdalienv and restart t... | true |
5ee84544df3e6f98ea772a4b576d092f144556f4 | Shell | tungtran3012/Linux2018 | /GK-De1/bai2.sh | UTF-8 | 403 | 3.125 | 3 | [] | no_license | #!/bin/bash
f2()
{
for i in $*
do
bool=1
if [ $i -eq 0 ]
then
echo "0 khong la so nguyen to"
elif [ $i -eq 1 ]
then
echo "1 la so nguyen to"
else
for((j=2;j<=(i/2);j++))
do
#var=`expr $i % $j`
if [ $(($i%$j)) -eq 0 ]
then
echo "$i khong la so nguyen to"
break
fi
done
if [ $b... | true |
85929ec674a3783e199055f4536656ab6855991e | Shell | ch1huizong/study | /lang/shl/abs/10/match_string_10-27.sh | UTF-8 | 369 | 3.484375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
# 简单的字符串匹配
match_string(){
MATCH=0
NOMATCH=90
PARAMS=2
BAD_PARAMS=91
[ $# -eq $PARAMS ] || return $BAD_PARAMS
case "$1" in
"$2") return $MATCH;;
*) return $NOMATCH;;
esac
}
a=one
b=two
c=three
d=two
match_string $a
echo $?
match_string $a $b
echo $?
ma... | true |
3c7bfbc32abce20e706ade9270863fab9a2bd546 | Shell | saavuio/s_nuxt_2nd | /init.sh | UTF-8 | 1,554 | 3.671875 | 4 | [] | no_license | #!/bin/bash
set -e
S_BASE_ROOT="$(cd "$(dirname "$0")" && cd .. && pwd)"
cd $S_BASE_ROOT
if [ "$(basename $(echo $S_BASE_ROOT))" != "s_base" ]; then
echo "Can't run from this directory."
exit 1
fi
TARGET_SHA=$1
function base_fetch {
NAME=$1
VERSION=$2
rm -rf ./${NAME}
rm -rf ./${NAME}_cache
# UNCOMM... | true |
d155173a0d28919a63b524097381ea240f16247c | Shell | priomsrb/trigger-await | /await | UTF-8 | 577 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
triggerDir=~/.trigger-await
triggerName=$1
startTime=$(date +%s)
echo Waiting for trigger $1. Press ENTER to skip...
while true
do
currentTime=$(date +%s)
timeSinceStart=$(expr $currentTime - $startTime)
# Check if the trigger file was modified after we started awaiting
triggerFileUpdated=$(find $t... | true |
e902b3bdb0418be725926c71f5df6438506a94ba | Shell | Hongyang449/scVDJ_seq | /analysis/muscle.sh | UTF-8 | 596 | 2.9375 | 3 | [] | no_license | #!/bin/bash
# muscle alignment
START=$(date)
# muscle alignment
mkdir -p ./muscle_fastaout
mkdir -p ./muscle_htmlout
mkdir -p ./muscle_fastaout_nowrap
for FILE in ./fa_ROW.COL.DV/ROW*.fa
do
muscle -in $FILE -fastaout ./muscle_fastaout/$(basename $FILE .fa).afa -htmlout ./muscle_htmlout/$(basename $FILE .fa).htm... | true |
848385af0e0fb19654f03c6cdb36950e4311c069 | Shell | Mahoney/circleci-docker-openjdk-node | /bash_libs/docker.sh | UTF-8 | 255 | 3.328125 | 3 | [] | no_license | #!/usr/bin/env bash
function calc_docker_image {
local docker_registry=${DOCKER_REGISTRY:-""}
if [ -z "$docker_registry" ]; then
echo -n "$DOCKER_REPO/$DOCKER_ARTIFACT"
else
echo -n "$docker_registry/$DOCKER_REPO/$DOCKER_ARTIFACT"
fi
}
| true |
ef1779ef86ca7c5511b96087431c54c87f8c661a | Shell | ShalokShalom/plan.sh | /bluez-firmware/plan.sh | UTF-8 | 427 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | pkg_origin=cosmos
pkg_name=bluez-firmware
pkg_version=1.2
pkg_description="Firmware for Broadcom BCM203x and STLC2300 Bluetooth chips"
pkg_upstream_url="http://www.bluez.org/"
pkg_license=('GPL2')
pkg_source=("http://bluez.sf.net/download/${pkg_name}-${pkg_version}.tar.gz")
pkg_shasum=('1cc3cefad872e937e05de5a0a2b390d... | true |
310605b46a38e5eef7b116f0f9821b6664f90163 | Shell | he8us/DAS | /devtools/devbox/commands/show_help.sh | UTF-8 | 920 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
show_help(){
cat <<EOF
Usage: ${0##*/} [-hv] [-e ENVIRONMENT] COMMAND
Options
-h,--help display this help and exit
-e,--environment ENVIRONMENT work with ENVIRONMENT configuration
-v verbose mode
Commands
launch|start|up ... | true |
23c67f1dc43502951757f141324a8a385a69f199 | Shell | ShalokShalom/apps | /kuserfeedback/PKGBUILD | UTF-8 | 934 | 2.8125 | 3 | [] | no_license |
pkgname=kuserfeedback
pkgver=1.0.0
pkgrel=1
pkgdesc="Framework for collecting user feedback for applications via telemetry and surveys"
arch=('x86_64')
url="https://github.com/KDE/kuserfeedback"
license=('MIT')
depends=('qt5-declarative' 'qt5-svg') # 'php' optional, check what needs with plasma 5.15
makedepends=('extr... | true |
f2f10bb7eb324765e9878cb2146046e5ffae0f2b | Shell | hapebe/c-itw | /extra/random-1000.sh | UTF-8 | 80 | 2.578125 | 3 | [] | no_license | #!/bin/bash
for i in `seq 1 1000` ; do
echo $(( ($RANDOM % 2000) - 1000))
done
| true |
c7b3e3775c8bb0060a7542ae8034b6894a610b34 | Shell | mindspore-ai/akg | /third_party/incubator-tvm/3rdparty/dlpack/tests/travis/run_test.sh | UTF-8 | 317 | 2.859375 | 3 | [
"Apache-2.0",
"BSD-3-Clause",
"NCSA",
"X11-distribute-modifications-variant",
"Zlib",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"LLVM-exception",
"BSD-2-Clause"
] | permissive | #!/bin/bash
if [ ${TASK} == "lint" ] || [ ${TASK} == "all_test" ]; then
if [ ! ${TRAVIS_OS_NAME} == "osx" ]; then
./tests/scripts/task_lint.sh || exit -1
fi
fi
if [ ${TASK} == "build" ] || [ ${TASK} == "all_test" ]; then
./tests/scripts/task_build.sh || exit -1
fi
echo "All travis test passed.."
| true |
5a01b8c9fb2d70b3b9f478b5b4ec15b13e49e145 | Shell | jneen/gesundheit | /fulltest.sh | UTF-8 | 271 | 2.609375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
ARGS="$@"
[[ -z "$@" ]] && ARGS='test/*test.coffee'
[[ -d lib-tmp ]] || mkdir lib-tmp
coffee -o lib-tmp/ -c src/ &&
cp src/fluid.js lib-tmp/
rm -fr lib &&
node-jscoverage lib-tmp/ lib/ &&
vows --debug-brk --cover-html $ARGS &&
rm -fr lib && mv lib-tmp/ lib/
| true |
0a4d30eaad9c71080e03b27ca1e8324817f42c52 | Shell | slashbeast/better-initramfs | /bootstrap/lebuilds/mdadm.lebuild | UTF-8 | 409 | 2.6875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | #!/bin/sh
name='mdadm'
version='4.1'
sources=( "https://bitbucket.org/piotrkarbowski/better-initramfs/downloads/${name}-${version}.tar.xz" )
homepage='http://neil.brown.name/blog/mdadm'
license='GPLv2'
build_cmd="
cd /source/${name}-${version} && \
make MAP_DIR='/dev/.mdadm'
make DESTDIR=/binit/prefix install
... | true |
f84074ab1d68f358321a14b0c2f8c81591b6bdce | Shell | flzxsqc200/ubuntu-xfce-vnc | /src/common/install/no_vnc.sh | UTF-8 | 1,325 | 2.875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
### every exit != 0 fails the script
set -e
set -u
update-ca-certificates -f
echo "Install noVNC - HTML5 based VNC viewer"
mkdir -p $NO_VNC_HOME/utils/websockify
wget -qO- https://github.com/novnc/noVNC/archive/refs/tags/v1.0.0.tar.gz | tar xz --strip 1 -C $NO_VNC_HOME
#wget -qO- https://github.co... | true |
2999cc49674edd4dbb6488ba829669666ebdc76d | Shell | NSBum/qsh | /clients/psql/scripts/columns | UTF-8 | 583 | 2.6875 | 3 | [] | no_license | #!/bin/bash
QUERY_CUSTOMIZATION=$2
cat <<EOF > $1
select * from (
select t.table_type, c.table_schema, c.table_name, c.column_name, c.ordinal_position, c.column_default, c.is_nullable,
c.data_type, c.character_maximum_length, numeric_precision, numeric_scale
from information_schema.columns c
inner join inform... | true |
7d8452932968f9e31e95ac75e85ab7d08471b7bd | Shell | oudaykhaled/iot-pipe-root | /extra/temp-help-system/systems/hbase/fully-distributed-with-managed-zk/scripts/hadoop-services.sh | UTF-8 | 1,271 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "HADOOP SERVICES"
$HADOOP_HOME/sbin/start-dfs.sh
$HADOOP_HOME/sbin/start-yarn.sh
echo "RUN jps - Java Virtual Machine Process Status Tool"
jps -lm
echo "Get basic filesystem information and statistics."
hdfs dfsadmin -report
echo "HBASE SERVICES"
$HBASE_HOME/bin/start-hbase.sh
echo "RUN jps - Java... | true |
939376a69efbaa650fe07320d9126f594ee3b99d | Shell | Anomalocaridid/tinycoredotfiles | /.bashrc | UTF-8 | 2,946 | 3.71875 | 4 | [] | no_license | #!/bin/false
# Declares $PATH
#PATH=$PATH
# Sources defaults
source /usr/local/etc/bashrc
# Color Variables
CYAN="\e[1;36m"
PINK="\e[1;35m"
WHITE="\e[0;1m"
RESET="\e[0m"
BASE_COLOR=$WHITE
COLOR1=$CYAN
COLOR2=$PINK
# Variables for prompt customization
PROMPT_COMMAND=__prompt_command
# Dynamic prompt
__prompt_comma... | true |
b9c8d2828ecee317ce435a30f16a0a11e8e88fe8 | Shell | Adaptavist/puppet-sh_profile | /files/system-java.sh | UTF-8 | 582 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | if [ -d /usr/java/default ]; then
export JAVA_HOME=/usr/java/default
elif [ -d /usr/lib/jvm/java-6-sun ]; then
export JAVA_HOME=/usr/lib/jvm/java-6-sun
elif [ -d /usr/lib/jvm/java-7-oracle ]; then
export JAVA_HOME=/usr/lib/jvm/java-7-oracle
else
# Test if an interactive terminal (from: http://tldp.org/L... | true |
a275c825790e6bd4273af7e3e0e84e14afce3fd6 | Shell | anelson/dotfiles | /home/.local/bin/run-rust-rls.sh | UTF-8 | 1,282 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#
# Wrapper script to run the rust language server, ensuring that the correct version is run.
#
# Usually I want the stable toolchain and the stable RLS.
#
# But sometimes I have projects using nightly and in that case I want to use nightly RLS.
#
# But sometimes nightly is broken, so I use some slightly-ol... | true |
64a2117482081c04bd10fd131fb193397a69dabf | Shell | rodolfovalentim/2016-2-comp | /t3/gen_tests.sh | UTF-8 | 411 | 3.078125 | 3 | [] | no_license | #!/bin/bash
DATA=/home/rodolfo/Workspace/2016-2-comp
IN=$DATA/in
OUT=$DATA/t3/my-out
EXE=./trab3
DOT="dot -Tpdf"
rm -rf $OUT
mkdir -p $OUT
for infile in `ls $IN/*.cm`; do
base=$(basename $infile)
outfile=$OUT/${base/.cm/.out}
$EXE < $infile > $outfile
# outfile=$OUT/${base/.cm/.dot}
# $EXE < $in... | true |
536816ae661410b3d9a43b69e013893ec66e1084 | Shell | felipesotero/dotfiles | /terminal/.bash_profile | UTF-8 | 1,416 | 2.953125 | 3 | [] | no_license | # Make sublime work on the command line
export PATH=/bin:/sbin:/usr/local/bin:/usr/bin:/usr/local/sbin:/Users/luizsotero/bin:$PATH
export EDITOR='subl -w'
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### Added for homebrew
export PATH="/usr/local/bin:$PATH"
### For git completion
if [ -... | true |
9072b081b846081e3356360d3c2955af6a90a1e6 | Shell | drandyhaas/Haasoscope | /dockerfiles/quartus.sh | UTF-8 | 1,099 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This is an example script for running the "Quartus" graphical
# interface in a docker container. This is an example - you may need
# to copy this file and modify it so that it works in your
# environment.
#
# Prior to running this script, the docker image should have been
# created with something like:
#... | true |
612ae965dec6eb1835a20be07b25092f3e9d8a5b | Shell | mgijax/pgmgddbschema | /procedure/VOC_processAnnotHeaderAll_create.object | UTF-8 | 7,520 | 2.546875 | 3 | [] | no_license | #!/bin/sh
#
# History
#
# lec 01/24/2008
# - TR8216, fix selection of "toAdd" table
#
cd `dirname $0` && . ./Configuration
${PG_MGD_DBSCHEMADIR}/procedure/VOC_processAnnotHeaderAll_drop.object
cat - <<EOSQL | ${PG_DBUTILS}/bin/doisql.csh $0
CREATE OR REPLACE FUNCTION VOC_processAnnotHeaderAll (
v_annotTypeKey int
... | true |
45ed129c251db7a5c2d4d0973583b15e981ae907 | Shell | AndreyJComm/zadanietestowe | /bootstrap.sh | UTF-8 | 899 | 2.65625 | 3 | [] | no_license | #!/usr/bin/env bash
# Install base part
apt-get -y update
apt-get -y install git cron nano curl htop apt-transport-https
# Install php 5
sudo add-apt-repository ppa:ondrej/php -y
apt-get -y update
apt-get -y upgrade
apt-get -y install php5 php5-gd php5-fpm php5-mysql libapache2-mod-php5 php5-mcrypt
# Install Apac... | true |
c86e6c2fde6eb7d7ce69e1a31990d3bcebf2af2f | Shell | CodingGearsCourses/Mastering-Bash-Shell-Scripting | /Module-13-Debugging/02-more-debugging.sh | UTF-8 | 249 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
set -u
set -o pipefail
echo "Welcome to GlobaleTraining.com"
for x in $(seq 10);do
echo $x
if [[ $x -eq 5 ]]; then
cat /etc/passwd | grp nologin | wc -l
echo " A B C"
echo $MESSAGE
ehco "Found 5!!"
fi
done
| true |
3a512266d8f66df3635cf88a0e278b99d1b89322 | Shell | pragya1990/globule | /setup2_code_new/mod-globule-1.3.2/tools/mkinstaller.sh | UTF-8 | 5,469 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
# This script generates the shell-script-installer "installer.sh".
# The "installer.sh" script can be downloaded by semi-end-users
# which want a fully automated method of compiling Globule and
# its prerequisites and utility software packages, but want to
# have a home-build/compiled Globule and not a bin... | true |
66ab407eabb593e2073377d6ad371b38cdb9a96b | Shell | mbach04/odie | /odie-app.sh | UTF-8 | 12,225 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
SCRIPT_NAME=$(basename "$0")
DIR_NAME=$(dirname "$0")
. ${DIR_NAME}/scripts/lib.sh
#set -x
#set -e
#set -u
export OUTPUT_NAME=${OUTPUT_NAME:-""}
# Command Line Arguments
DEBUG=0
FORCE_IMPORT=0
INCLUDE_BUILDS=0
ONLY_IMAGES=0
declare TARGET_PROJECT
declare TAR
declare TAGS
usage() {
cat <<EO... | true |
ef707a4d2aa3a5e00c840348d00bfe4bc754655d | Shell | nathandesmet/dotfiles | /.zshenv | UTF-8 | 365 | 2.796875 | 3 | [] | no_license | for file in ~/.{aliases,functions}; do
[ -r "$file" ] && source "$file"
done
unset file
set -o vi # use vi as the terminal readline editting tool
# also useful when pressing 'v' to open-up a vim window
# where you can modify the command that you are currently typing
fpath+=$HOME/code/github.c... | true |
de1484a2ac1df626b508529e0608bd5a59716d4e | Shell | kkola/bsve-integration | /grits.sh | UTF-8 | 2,727 | 3.484375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
ethernet="eth0"
if [[ $1 && $2 ]]; then
if [ "$1"=="--ethernet" ]; then
ethernet="$2"
fi
fi
./initial-checks.sh --ethernet $ethernet || exit 1
#Ensure data dump file is in our directory
if [ ! -f geonames.tar ]; then
aws s3 cp s3://bsve-integration/geonames.tar ./geonames.tar
fi
#Build and sp... | true |
e7b5cdc1b967ef31fad7bff5fe76e22b31b12997 | Shell | chapeaute/playbooks | /freeipa-client/templates/usr/local/sbin/ipa-user-migrate.j2 | UTF-8 | 1,725 | 3.953125 | 4 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | #!/bin/bash
REALM="{{ freeipa_realm }}"
if [ $# -ne 1 ]; then
echo "Script must take 1 argument. $0 username" >&2
exit 1
fi
# User name
user=$1
# Get old user uid and gid
old_uid=$(getent -s files passwd $1 | awk -F: '{print $3}')
old_gid=$(getent -s files passwd $1 | awk -F: '{print $4}')
# Get user main ... | true |
4b079501c3cbc54eccc79ced838715f1d07bd9b0 | Shell | streamich/fasttrack | /scripts/jest.sh | UTF-8 | 3,115 | 4.125 | 4 | [
"Unlicense",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
# Install Jest.
DIR_SRC="src" # Source folder.
DIR_DIST="lib" # Distribution folder.
JEST_CONFIG_FILE="jest.config.js"
JEST_TEST_DIR="$DIR_SRC/__tests__"
JEST_SETUP_FILENAME="setup.js"
JEST_TS=false # Whether to add TypeScript support.
HELP=false
# Fetch CLI named params.
POSITIONAL=()
while [[ $... | true |
40265eb3e7de7b6a25522f1109328c3012a5477a | Shell | apple-open-source/macos | /NFS/nfs4mapid/nfs4mapid-tester.sh | UTF-8 | 4,296 | 3.453125 | 3 | [] | no_license | #!/bin/sh
ODNODE=nod.apple.com
DF_USERS=bricker
DF_GROUPS=apple_sw
WKIDS="OWNER@ GROUP@ EVERYONE@ INTERACTIVE@ NETWORK@ DIALUP@ BATCH@ ANONYMOUS@ AUTHENTICATED@ SERVICE@"
NFS4_CURRENT_DOMAIN=$(sysctl -n vfs.generic.nfs.client.default_nfs4domain)
function set_nfs4_domain {
typeset domain=$(sysctl -n vfs.generic.nf... | true |
676ca033c14adff7de07bcc46e9ca58886e90694 | Shell | jvsr/TermStart | /includes/string.bash | UTF-8 | 182 | 3.859375 | 4 | [] | no_license | #!/bin/bash
STRINGERROR=11
strlen () {
if [ $# -ne 1 ]; then
echo -e "\nError: strlen(string s): Incorrect number of parameters"; exit $STRINGERROR
fi
echo -n ${#1} | wc -m
}
| true |
fb68a89c96a6e467b471da71c50502183824b496 | Shell | qinghuise/test | /on_line.sh | UTF-8 | 351 | 2.65625 | 3 | [] | no_license | #!/bin/bash
cd /data/
unzip $1 -d /data/test_mimidai
cd /data/test_mimidai/WEB-INF/classes
rm -f ./*
dir_num=`ls |wc -l`
if [ $dir_num -eq 2 ];then
cp /var/www/mimidai-cms/WEB-INF/classes/* ./
else:
exit 1
fi
mv /var/www/mimidai-cms /var/www/mimidai-cms-$(date +%Y%m%d-%H%M%S)
mv /data/test_mimidai /var/ww... | true |
280e494207e34527ab398f9ad9cad33377feccda | Shell | istioinaction/book-source-code | /bin/query-catalog.sh | UTF-8 | 2,198 | 3.609375 | 4 | [] | no_license | #!/usr/bin/env bash
help () {
cat <<EOF
This script is a collection of request that are used in the book.
Below is a list of arguments and the requests that those make:
- 'get-items' Continuous requests that print the response status code
- 'random-agent' Adds either c... | true |
1f34285e34e00cfa5781f8366a48fe700ead06eb | Shell | CommissarCletus/dotfiles | /shell/aliases | UTF-8 | 313 | 2.671875 | 3 | [] | no_license | # vim: set syntax=sh
# unfuck the ls
alias ls="ls --color=auto"
# Nicer man colors
man() {
LESS_TERMCAP_md=$'\e[01;36m' \
LESS_TERMCAP_me=$'\e[0m' \
LESS_TERMCAP_se=$'\e[0m' \
LESS_TERMCAP_so=$'\e[01;32m' \
LESS_TERMCAP_ue=$'\e[0m' \
LESS_TERMCAP_us=$'\e[01;26m' \
command man "$@"
}
| true |
b6db430d86fcadfe6b2922459c9aa5651f16abb1 | Shell | thunder/docker-thunder-performance | /build.sh | UTF-8 | 1,918 | 4.0625 | 4 | [] | no_license | #!/bin/bash
set -e
#
# Build thunder performance docker image
TAG_NAME=""
PROJECT_PATH=""
PROFILE="thunder"
THUNDER_TEST_GROUP="Thunder_Base_Set"
# Process script options
while [ -n "$1" ]; do
case "$1" in
--tag)
TAG_NAME="$2"
shift
;;
--project-path)
... | true |
a843aba45f208c40f9e3072a03f537add21cbc2f | Shell | WMFO/wmfo-covid-broadcasting-script | /play_at_scheduled_time.sh | UTF-8 | 1,372 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ -z ${1+x} ] || [ -z ${2+x} ] ; then
echo "Usage: $0 [track-to-play] [target-date]"
exit 1
fi
target_date=$2
echo "testing date validity:"
date -d "$target_date"
if [ $? -ne 0 ] ; then
echo error parsing date
exit 1
else
echo date successfully parsed!
fi
target_file=$1
if [ -f "$target_file" ] ; t... | true |
2004b4701c246d8030b4666fc28cb49c3291ec31 | Shell | staalmannen/hawaii-pkgbuilds | /hawaii-terminal-git/PKGBUILD | UTF-8 | 747 | 2.703125 | 3 | [] | no_license | # Maintainer: Pier Luigi Fiorini <pierluigi.fiorini@gmail.com>
pkgname=hawaii-terminal-git
pkgver=0.0.0
pkgrel=1
pkgdesc="The Hawaii Terminal Emulator"
arch=('i686' 'x86_64')
url="http://www.maui-project.org"
license=('GPL2')
depends=('qt5-declarative' 'qt5-quickcontrols' 'yat-git')
makedepends=('git' 'cmake')
options... | true |
a8dee2c4a8ebdfed5f7d5a1e58508cea61d84042 | Shell | kaitai-io/kaitai_struct_tests | /ci-lua | UTF-8 | 517 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
. ./config
LUA_OUT_DIR="${TEST_OUT_DIR}/lua"
rm -rf "${LUA_OUT_DIR}"
mkdir -p "${LUA_OUT_DIR}"
export LUA_PATH="$LUA_PATH;$LUA_RUNTIME_DIR/?.lua;spec/lua/?.lua;spec/lua/extra/?.lua;compiled/lua/?.lua;;"
# Add `lua_install` dir to PATH, as this is where hererocks installs Lua at CI
export PATH=$PATH:$PWD/... | true |
ec9bf69b4f5c2fad6f5bb30218af6c6bce042835 | Shell | g0v/tw-rental-house-data | /crawler/gobg.sh | UTF-8 | 159 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
mkdir -p ../logs
setsid ./go.sh >> ../logs/`date +'%Y.%m.%d.%H%M'`.go.log 2>&1 &
| true |
dcefd11df5b2c514bd29615dfd414219cc789760 | Shell | njharman/dotfiles | /bin/g | UTF-8 | 230 | 2.65625 | 3 | [] | no_license | #!/bin/bash
sack__vim_shortcut=$(sed -n "$1p" < /home/njharman/.sack_shortcuts)
sack__line=`echo $sack__vim_shortcut | cut -d" " -f1`
sack__file=`echo $sack__vim_shortcut | sed 's/'$sack__line' //'`
vim +$sack__line "$sack__file"
| true |
d399f209950e4b5101f4b76fd959c72be0ea82d6 | Shell | gina-alaska/emodis_ndvi_python | /scripts/ver-for-docker/1yr_emodis_250_download_withauthoration_py.bash | UTF-8 | 517 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#downloads emodis data by wget
if [ $# != 2 ]; then
echo "Usage:1yr_emodis_250_download.bash dir_data year"
exit 1
fi
#url=http://dds.cr.usgs.gov/emodis/Alaska/historical/TERRA
url=$raw_data_url
dir_data=$1
year=$2
#check if raw data have already been downloaded"
if [ ! -f ${dir_data}/${year}/*.zi... | true |
7746da4a8faf4f9facd5a9964d09b23c954235d9 | Shell | akalinkin/dotfiles | /.scripts/zenmode.sh | UTF-8 | 2,541 | 4.3125 | 4 | [] | no_license | #!/bin/bash
# This script toggle Zen mode
STATUSFILE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.zenmodestatus"
usage="$(basename "$0") [-h] [-m n] -- toggle or enable/disable terminal ZenMode
where:
-h show this help text
-m set mode (0 - disabled, 1 - enabled)"
# Process args
MODE=-1
while getopts ... | true |
01c79d3ab964e5f538d9dbff5b05983822c6c4a7 | Shell | iangfernandes96/web-app | /scripts/restore | UTF-8 | 1,013 | 3.828125 | 4 | [] | no_license | #!/bin/bash
DB_NAME="outreach"
DB_PASS="root"
VERSION="v0.2.1"
BACKUP_FILE=$1
# Absolute path to the scripts directory
SCRIPTS_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
DOC_FOLDER=$(cd ../src/static && pwd)
usage() {
echo "Usage:"
echo "$0 <path/to/the/backup/file.tar>"
}
if [ -z $BACKUP_FILE ]; the... | true |
eb0922be5c77f9140fdb9ae4f8a338cc6d7a0257 | Shell | supahrods/urs-sftp | /new_edit/1-job/urs_d_LongDurationCalls2.sh | UTF-8 | 31,079 | 3.5625 | 4 | [] | no_license | #!/bin/bash
#----------------------------------------------------------
# Author : John Rodel Villa
# Date : March 7, 2019
# Version : 1.4
#
# Description : Processing of file entries according to cases
# Case1 : File entries with missing last aCR 'true,1,false'
# Case2 : File entries with missing initial aCR 'f... | true |
4a6577eb328c1c73b2e9c3f7c5ad00ade4b6acdd | Shell | water-rev/hk5demandsapi | /docker/development/build.sh | UTF-8 | 501 | 3.5 | 4 | [] | no_license | #!/bin/sh
DOCKER_FILE=./docker/development/Dockerfile
PROJECT_NAME=hk5demandsapi-dev
LAST_COMMIT=$(git rev-parse --short HEAD 2> /dev/null | sed "s/\(.*\)/\1/")
IMAGE_TAG=${PROJECT_NAME}:${LAST_COMMIT}
echo "Docker Build Push Details"
echo "Image Tag: ${IMAGE_TAG}"
echo "Docker File: ${DOCKER_FILE}"
read -p "Are y... | true |
b261e574ebd0b5ca8294ff280b6a4da973558d09 | Shell | arvl130/kiss32-uclibc-repo | /core/uclibc/build | UTF-8 | 149 | 2.640625 | 3 | [] | no_license | #! /bin/sh -e
for patch in *.patch; do
patch -p1 < "$patch"
done
make all
make DESTDIR="$1" install
mv "$1/lib"/* "$1/usr/lib"
rmdir "$1/lib"
| true |
a648cf394889a85867ae19afc60f3b89a830160b | Shell | FQNet/QUTAGDAQ | /RunFQNETDAQ.sh | UTF-8 | 1,121 | 2.78125 | 3 | [] | no_license | export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/QUTAG-LX64-V1.1.6
#####################################################################
#Configuration Parameters
#####################################################################
#Sets the coincidence window in [ps]. If you want the program to
#calculate the appropriate ... | true |
d04f1cf28180955e8ddc67ad07220b9e120285e2 | Shell | reginaldojunior/XU3EM | /Tools/check_temp.sh | UTF-8 | 1,693 | 3.46875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
echo -e "timestamp \tVIRTUAL_SCALING \tCPU0_FREQ \tCPU1_FREQ \tCPU2_FREQ \tCPU3_FREQ \tCPU4_FREQ \tCPU5_FREQ \tCPU6_FREQ \tCPU7_FREQ \tGPU_FREQ \tCPU_GOVERNOR \tCPU0_TEMP \tCPU1_TEMP \tCPU2_TEMP \tCPU3_TEMP \tGPU_TEMP"
# Main infinite loop
while true; do
# CPU Governor
CPU_GOVERNOR=`cat /sys/devices/syst... | true |
ab54ebd8c488eb1573ffb0ad4c7b731e287548ac | Shell | jskeates/coder-addons | /install-scripts/kubeadm | UTF-8 | 399 | 3.203125 | 3 | [] | no_license | #!/bin/bash
if [ ! -f "/usr/local/bin/kubeadm" ]
then
echo "kubeadm is not installed. Installing now... (if prompted, enter password for sudo)"
sudo curl -Lo /usr/local/bin/kubeadm https://storage.googleapis.com/kubernetes-release/release/v1.23.6/bin/linux/amd64/kubeadm
sudo chmod +x /usr/local/bin/kubeadm... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.