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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a5f9af631e678cb55b4147f43c63ff9de5362052 | Shell | CaydenFranklin/AltiusWorkingScripts | /run_fqpy_script.sh | UTF-8 | 764 | 2.515625 | 3 | [] | no_license | #!/bin/bash
memSize="40G" # this varies widely with job needs; use ls -lah on your fastq files to estimate what you'll need
OUTDIR="/net/seq/data/projects/SuperIndex/cfranklin/slurm_output" # fine to use your favorite current directory in this case
jobName="cfranklinFastQDownload" # customize as desired
jobID=$(sbatch ... | true |
22cfe2044e523f105debb11e419f2db98ec35b00 | Shell | tchajed/cloud-arch | /build.sh | UTF-8 | 4,715 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
set -e
. ./common.sh
sudo date > /dev/null
sec "Configuring disk image for the cloud"
msg "Checking that we have Arch's install scripts"
pacman -Qi arch-install-scripts >/dev/null || sudo pacman -S arch-install-scripts # for genfstab and arch-chroot
cp bootstrapped.raw archlinux.raw.tmp
tmp=$(mktemp -d -... | true |
5eda44e9dd20a011c54084afe3b9cb2933feb007 | Shell | ibmmkeppeler/cont_mq | /mq_tester.sh | UTF-8 | 1,354 | 3.21875 | 3 | [] | no_license | #/bin/bash
HOSTIP="158.176.129.211"
NODEPORT="30183"
read -p 'NodePort:i ' NODEPORT
read -p 'Iterations: ' y
echo "--------------------------------------------------------------------"
echo "| Starting MQ Test |"
echo "-------------------------------------------------... | true |
c92d47ba9f4b1cae4c183ba5b05949830bea2e38 | Shell | chenzihao2/learning | /linux/shell_exercise/statistics.sh | UTF-8 | 568 | 3.703125 | 4 | [] | no_license | #########################################################################
# File Name: statistics.sh
# Author: chenzihao
# Created Time: 2020年06月30日 星期二 18时59分08秒
#########################################################################
#!/bin/bash
if [ -z $1 ] || [ ! -e $1 ]
then
echo 'no file'
exit
fi
statist... | true |
a0a166a4ebbcb0ba38b04efdd64fb117bd775e53 | Shell | zwqjsj0404/hadoop_automation | /sshCopyId.sh | UTF-8 | 434 | 2.703125 | 3 | [] | no_license | #!/bin/bash
/usr/bin/expect <<EOD
spawn ssh-copy-id -i /home/hduser/.ssh/id_rsa.pub hduser@$1
expect "hduser@$1's password:"
send "abcd\r\n"
interact
EOD
automatic ssh and exit
>> cat sshAndExit.sh
#!/bin/bash
filecontent=( `cat "ListOfSlaves" `)
for t in "${filecontent[@]}"
do
ip_addr=$t
#echo $ip_addr
/usr/bin/ex... | true |
61c40520c84624dc495fb294094af7278a333663 | Shell | vlakas/Honey-Net | /iktomi/scripts/extractor.sh | UTF-8 | 1,240 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
cd ../logs
cat log25.log | grep -a "connection from" | cut -d " " -f 3 | cut -d ":" -f 1 | sort | uniq > port25.log
cat log80.log | grep -a "connection from" | cut -d " " -f 3 | cut -d ":" -f 1 | sort | uniq > port80.log
cat log21.log | grep -a "connection from" | cut -d " " -f 3 | cut -d ":" -f 1 | sort ... | true |
0323080da7254fc64c676999bb31e3e793a5f0d4 | Shell | sturbi/environment | /linux/bashrc | UTF-8 | 534 | 2.859375 | 3 | [] | no_license | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
#User specific aliases and functions
alias wget="curl -O"
source ~/.govc.conf
export GOPATH=$HOME/go
export DISPLAY=:0
ssh() {
if [ "$(ps -p $(ps -p $$ -o ppid=) -o comm=)" = "tmux: server" ]; then
tmux rename-win... | true |
5eab9a8f176c097e5124bff76b04f927dab2a815 | Shell | uc-cdis/gen3-qa | /check-pod-health.sh | UTF-8 | 1,299 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# curl service endpoints; exit failure if any service returns status code != 200
# Service Health Endpoints
commons_name=$KUBECTL_NAMESPACE
if [[ "$KUBECTL_NAMESPACE" == "default" ]]; then
commons_name="qa"
fi
commons_url="https://${commons_name}.planx-pla.net"
indexd="${commons_url}/index/_stat... | true |
e60a0c3a872df4bd74a23f7244433990de10384a | Shell | vicgong/GitRepository | /scripttool/stat_aliveHost.sh | UTF-8 | 189 | 3.234375 | 3 | [] | no_license | #!/bin/bash
# Filename: stat_aliveHost.sh
for ip in 192.168.0.{0..255}; do
ping -w 10 -c 10 $ip &> /dev/nul;
if [ $? -eq 0 ] ;then
echo $ip is alive
else
echo $ip is unreachable
fi
done
| true |
66689aa7b29f832789d4b5e76345faeaa9478b94 | Shell | pcm2718/collateral-bishop | /collateral-bishop.sh | UTF-8 | 396 | 2.6875 | 3 | [] | no_license | #!/bin/bash
THREADS=8
mpirun -np $THREADS bin/collateral-bishop
#if [ $? -eq 0 ]
#then
# cp tmp/img_0.ppm tmp/feh_tmp.ppm
# feh -. --force-aliasing tmp/feh_tmp.ppm &
# ppmtojpeg tmp/feh_tmp.ppm > tmp/feh_tmp.jpeg
# textme
# echo "Success."
#else
# echo "Image generation fail... | true |
647adc3075238da191ece86d490bcb7cd9245e70 | Shell | flavio-silva/microservices | /run.sh | UTF-8 | 821 | 2.953125 | 3 | [] | no_license | #!/bin/bash
function down_app_container() {
echo "Deleting latest docker image"
docker-compose down
}
function delete_latest_docker_image() {
echo "Deleting latest docker image..."
docker rmi -f fiap-microservices:latest
docker rmi -f frontend:latest
}
function build_application() {
echo "Bui... | true |
3dce43964b1fb9fc31ba6aa091ba8b3eb70aa68f | Shell | dsw88/desktop-provisioning | /linux/bootstrap/install-packages | UTF-8 | 1,482 | 3.875 | 4 | [] | no_license | #!/bin/bash
# This script installs all the packages I use for development on a Debian box at FamilySearch
#Function that installs a package, given its name
function install-package {
apt-get -y install $1
if [ $? -ne 0 ]; then
echo "Error installing $1"
exit 1
fi
}
#Function that pretty-prints an insta... | true |
0dc0bcb84e567bd7ee476ac2f6bbdeb4c3929e73 | Shell | microsoft/accessibility-insights-service | /packages/resource-deployment/scripts/app-insights-create.sh | UTF-8 | 1,473 | 4 | 4 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | #!/bin/bash
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# shellcheck disable=SC1090
set -eo pipefail
export resourceGroupName
export subscription
export appInsightsKey
exitWithUsageInfo() {
echo "
Usage: $0 -r <resource group> -s <subscription name or id>
"
... | true |
f81fae4a172f2907a57862285175fb778ec00269 | Shell | jtimberman/oc-redis | /test/integration/default/bats/verify.bats | UTF-8 | 785 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | @test "configured for port 6379 (default redis port)" {
grep -qx 'port 6379' /etc/redis/redis.conf
}
@test "redis-server is running on 127.0.0.1:6379" {
# by default, redis-cli will use -h 127.0.0.1 and -p 6379
redis-cli ping
}
@test "sets up the redis-fig runit service" {
sv status redis-fig
redis-cli -p 8... | true |
65ce55176a9cf81d2bf4bc7d65dd41f7ad0b96f0 | Shell | mihirjpatel/kt | /terraform-modules/gcp/modules/gke-k8s/configure_k8s.sh | UTF-8 | 2,863 | 3.578125 | 4 | [] | no_license | #!/bin/bash
set -eu
# Save certificates
echo "$ISTIO_INGRESS_GATEWAY_CERT_PRIVATE_KEY" > artnet.key
echo "$ISTIO_INGRESS_GATEWAY_CERT" > artnet.pem
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
gcloud --quiet config set project "$GOOGLE_PROJECT_ID"
gcloud --quiet config set compute/zone "$GOOGLE_COMPUT... | true |
c9c8184b99484571803b484da7981f705bcbbbf9 | Shell | cchu70/perfect_mapper | /get_polished_kmer_list.sh | UTF-8 | 348 | 2.59375 | 3 | [] | no_license | #!/bin/bash
# script to make the uniqe kmer and true kmer list from the POLISHED version of the chrX assembly
module load canu
# make the db
# meryl count k=21 memory=40 threads=12 chrX.fasta output chrX.meryl
# Dump
meryl-lookup -dump -sequence chrX.fasta -mers chrX.meryl -threads 12 -min 1 | awk '$5 >0 {print $4"... | true |
f36c665048fdacad174fa98ebae4fe5544fc3fae | Shell | SujalAhrodia/ECE-792 | /HW3/Q2/rule.sh | UTF-8 | 113 | 2.53125 | 3 | [] | no_license | #!/bin/bash
a=$(echo "$1" | cut -c-6)
ip=$a.0/24
iptables -t nat -A POSTROUTING -s $ip ! -d $ip -j MASQUERADE
| true |
e4a952569f7b76d05e1cdeff078e11f7a6165955 | Shell | uesp/uesp-lucenesearch-old | /build | UTF-8 | 791 | 3.3125 | 3 | [] | no_license | #!/bin/bash
source ./config.inc
if [ -n "$1" ]; then
dumpfile="$1"
else
dumps="$base/dumps"
[ -e $dumps ] || mkdir $dumps
dumpfile="$dumps/dump-$dbname.xml"
timestamp=`date -u +%Y-%m-%d`
slave=`php $mediawiki/maintenance/getSlaveServer.php \
$dbname \
--conf $mediawiki/LocalSettings.php \
--a... | true |
eb3ff4c35a4442f3d6a578214c2c7358cba3c27c | Shell | XGWang0/Suse_testsuite | /tests/qa_test_coreutils/qa_test_coreutils/orig_test_suite/fmt/long-line | UTF-8 | 2,784 | 2.859375 | 3 | [] | no_license | #!/bin/sh
# make sure fmt -s works even on long lines
if test "$VERBOSE" = yes; then
set -x
fmt --version
fi
pwd=`pwd`
t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
trap '(exit $?); exit $?' 1 2 13 15
framework_failure=0
mkdir -p $tmp ||... | true |
ee8e6c06bdac307427736a49b494dd33fe17ae0a | Shell | iforwms/dotfiles | /scripts/shutdown | UTF-8 | 1,287 | 3.96875 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
echo " Checking repos..."
modifiedArray=()
unpushed=()
dirty=false
while read line; do
repoPath=`echo $line | sed "s/\/.git//"`
modified=`git -C $repoPath status -s`
if [[ ! -z "$modified" ]]; then
modifiedArray+=( "$repoPath" )
fi
unpushed=`git -C $repoPath cherry -... | true |
5b7241a5332d746c844f0bbd2ab5fb0247b13998 | Shell | jeffersonscientific/aquaplanet | /exp/compile_aquaplanet_mazama.sh | UTF-8 | 4,574 | 3.171875 | 3 | [] | no_license | #!/bin/bash
#SBATCH -n 8
#SBATCH -o compile_AqP.out
#SBATCH -e compile_AqP.err
# unalias *
#set echo
#set -x
#
ROOT_DIR=`pwd`
#--------------------------------------------------------------------------------------------------------
#export platform=gaea.intel # A unique identifier for your pl... | true |
6120ab02733af4c02dca50820b3224a4595ad064 | Shell | walterkwon/settings | /scripts/script-project | UTF-8 | 3,990 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
# USAGE
# script-project package hello-world "A CLI to say Hello World"
# script-project {project_type} {name} {description}
# {project_type} can be package, web-app, or native-mobile-app
# {name} should be a slug like hello-world
# {description} should be a short sentence like "A CLI ... | true |
b6e1c4c04e09aa8be0e61632b4758e38dbc2e401 | Shell | perfsonar/toolkit | /toolkit/perfsonar-toolkit/scripts/system_environment/disable_zeroconf | UTF-8 | 297 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#######################
# Disable zeroconf route. Does not matter if this is running in an
# 'upgrade' or 'new install' context.
#######################
grep NOZEROCONF /etc/sysconfig/network &> /dev/null
if [ $? != 0 ]; then
cat >> /etc/sysconfig/network <<EOF
NOZEROCONF=yes
EOF
fi
| true |
f109fac47c209c5031609553fcaba81fe49df4ce | Shell | scottt/scottt-bin | /prefix | UTF-8 | 107 | 3.171875 | 3 | [] | no_license | #!/bin/sh
case $# in
1) N=$1 ;;
*) printf 'usage: prefix N_CHARACTERS\n'>&2; exit 2;;
esac
cut -c 1-"$N"
| true |
8c33aa09243580f2308476413e5a201879475a82 | Shell | vinriviere/cross-mint-ubuntu | /.github/guess_debemail.sh | UTF-8 | 440 | 2.96875 | 3 | [] | no_license | # This script fragment must be sourced by the main script file
# in order to define the DEBEMAIL variable
# . .github/guess_debemail.sh
# Unset variables which might interfere
# https://manpages.debian.org/jessie/devscripts/debchange.1.fr.html#DESCRIPTION
unset DEBFULLNAME EMAIL
# Guess maintainer name and e-mail fro... | true |
23a65f4b415aafc3deca67bf2292fd155883b482 | Shell | humnaawan/3D-galaxies-kavli | /runscripts/get_features/bash_get_illustris_features.sh | UTF-8 | 757 | 2.625 | 3 | [] | no_license | #!/bin/bash
base_dir='/Users/humnaawan/repos/3D-galaxies-kavli/'
for proj in xy yz xz
do
summary_datapath=${base_dir}'data/sum_illustris/'${proj}'/'
for rdecider in 50 #100
do
echo 'Running for '${proj}' for Rdecider = '${rdecider}
shape_datapath=${base_dir}'outputs/illustris_z0.4_shape'${... | true |
336957723ff07471e0e9d1cca21d292ac38260bc | Shell | qingw/dotfiles-3 | /bin/bootstrap-macos.sh | UTF-8 | 1,863 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# check if ssh key exist
if ! [ -f "$HOME/.ssh/id_rsa" ]; then
echo "please copy your ssh key first"
exit 1
fi
# install xcode commandline tools
# if ! [ -d "/Library/Developer/CommandLineTools" ]; then
if ! /usr/sbin/pkgutil --pkg-info com.apple.pkg.CLTools_Executables; then
echo "install Xco... | true |
e4f2c6095b8721135467d2dde907af3b9dab8723 | Shell | zhangyancoder/original | /run_multi.sh | UTF-8 | 2,779 | 3.328125 | 3 | [] | no_license | #!/bin/bash
starttime=`date "+%Y_%m_%d_%H_%M_%S"`
single_sleeptime=1
cycle_sleeptime=10
cycle=3
LOGDIR=./log
FIODIR=/home/simth/fio-2.14
iostateip=`cat ./monitor_ip.conf`
collect_basic()
{
rm -rf basicinfo
echo starttime: $starttime >> basicinfo
for node in `cat monitor_ip.conf`;do
echo =====================... | true |
eb9f8cdc4af53e99bf47d8a27b711f8a8df3b731 | Shell | izderadicka/mybookshelf2 | /deploy/cleanup.sh | UTF-8 | 864 | 3.8125 | 4 | [] | no_license | #!/bin/bash
set -e -x
if [[ ! -f .env ]]; then
echo "init.sh script was not run (no .env file), exiting"
exit 1
fi
cat <<EOF
This script will clean all docker artifacts (images, volumes, containers ...) from deployment.
ALL DATA WILL BE LOST!
Do you want to continue?
EOF
read -p "Enter y to continue: " ans
... | true |
c859d565e335d45eea888f54e7947ef5bc937640 | Shell | petronny/aur3-mirror | /tagurit/PKGBUILD | UTF-8 | 582 | 3.09375 | 3 | [] | no_license | # Maintainer: Thomas Dziedzic < gostrc at gmail >
pkgname=tagurit
pkgver=0.1
pkgrel=1
pkgdesc='Watches git repos for new tags.'
arch=('any')
url='https://github.com/gostrc/tagurit'
license=('unknown')
depends=('ruby' 'git')
build() {
local _gitroot='git://github.com/gostrc/tagurit.git'
local _gitname='tagurit'
... | true |
f95aaa7063c84ac5ba24a1dc2ef408663833cebc | Shell | callerc1/dotfiles-old | /rbenv/install.sh | UTF-8 | 361 | 3.5625 | 4 | [] | no_license | #!/bin/sh
#
# Installs -
# rbenv
#
###############################################################################
# Include the general functions
. ./functions/general
# Check for Homebrew
if ! command_exists brew; then
print_error "Nooooooo! Homebrew isn't installed! Can't install rbenv"
else
print_block "In... | true |
2f7619febeeffce30ca3866dedd900d9682c32bf | Shell | koraynilay/linux-custom-scripts | /push.sh | UTF-8 | 325 | 3.296875 | 3 | [] | no_license | #!/bin/sh
git status
git add . -v
git status
#sleep 1
git commit -m "$(date +%Y-%m-%d_%H:%M:%S)"
#sleep 1
notify-send -a GitHub "pushing changes in $PWD..."
git push
if [ $? -eq 0 ];then
notify-send -a GitHub "changes in $PWD pushed"
else
notify-send -u critical -a GitHub "error in push of changes in $PWD... | true |
782f01373a5a3cb3c6712d9c43fdac0a3535a7a1 | Shell | aesadde/dotfiles | /ARCHIVE/bashrc | UTF-8 | 1,246 | 3.171875 | 3 | [] | no_license | # ===[ Variables ]=== {{{1
OSTYPE="$(uname -s)"
ARCH="$(uname -m)"
DOTF="$HOME/dotfiles"
#1}}}
# ===[ Global options ]=== {{{1
#Append to history file
shopt -s histappend
#Autocorrect typos in path names when using cd
shopt -s cdspell
#expand aliases
shopt -s expand_aliases
#vi editing mode
set -o vi
#Case insensit... | true |
14ee5aea550de243c292e7ea4017ce6a2bb2461d | Shell | luballe/raspi-forest | /sw/Papa/scripts/wait_4_host.sh | UTF-8 | 543 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
hostname=$1
path="/home/pi/scripts/"
pipe_sufix="_pipe_status"
pipe=$path$hostname$pipe_sufix
var1=0
if [ ! -p "$pipe" ]
then
msg="No named pipe: "
echo $msg$pipe
exit 1
fi
read var1 < $pipe
#command=$commmand$pipe
#eval $command
#read var1 < /home/pi/scripts/forest2_status
while [ $var1 -eq 0 ]
do
... | true |
b13ad48c4b22e3a7f3b9475ab5e99012c6088031 | Shell | MarcSteven/ScriptForXcode | /check_image.sh | UTF-8 | 1,397 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# check_image.sh
#
#
# Created by Marc Zhao on 2017/4/28.
#
function display_code {
ERROR_LOCATION=$(grep -Ron "\[UIImage imageNamed:\s*@\"$1\"\s*\]" $PROJECT_NAME)
if [[ -z $ERROR_LOCATION ]]; then
ERROR_LOCATION=$(grep -Ron "UIImage(named\:\s*\"$1\"\s*)" $PROJECT_NAME)
fi
ERROR_LOCATION=$(echo $ERROR_... | true |
7d1e4a77ee6df7938b9251f44ba41bae7a349c15 | Shell | UndergroundLabs/ZeroMQ-PHP-Ubuntu-Install | /zeromq-php.sh | UTF-8 | 514 | 3.25 | 3 | [] | no_license | #!/bin/bash
# This script will install ZeroMQ and the PHP language bindings
# on Ubuntu 14. This script will only install php5-cli.
#
# Author: James Jeffery <jameslovescode@gmail.com>
# Always run this on a fresh machine
apt-get update
# Install ZMQ and other required tools
apt-get install -f git libzmq3 libzmq3-de... | true |
dde5825ee779487fc3e441fb3edf70d281f1fa83 | Shell | heqianying/biosys-analytics | /assignments/02-bash-scripting-grad/hello.sh | UTF-8 | 315 | 3.234375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
GREETINGS=$1
NAME=${2:-Human}
if [[ $# -eq 0 ]]; then
printf "Usage: %s hello.sh GREETING [NAME]\n"
exit 1
elif [[ $# -gt 2 ]]; then
echo "Usage: %s hello.sh GREETING [NAME]\n"
exit 1
elif [[ $2 -eq 0 ]]; then
echo ""$GREETINGS","$NAME"!"
exit 0
else
echo ""$GREETINGS","$NAME"!"
fi
| true |
3fdcb3fc17168f4e08d0c87b4d8876d15cecb628 | Shell | vcodery/Utils | /src/main/sbin/delay.sh | UTF-8 | 789 | 3.71875 | 4 | [] | no_license | #!/bin/bash
###########################################################
### FUNC : Statistical command execution delay
### USAGE : delay.sh your_command
### Example: delay.sh sleep 1s
### BY : vcodery
### DATE : 2019/06/01
###########################################################
# mark start time
starttim... | true |
b853c4c63ccdbd995a32bd8e500e65f4939aca09 | Shell | salevajo/benchmark | /fetch.sh | UTF-8 | 183 | 2.515625 | 3 | [] | no_license | #!/bin/bash
cd data
for i in {0..9}
do
echo "Downloading thread$i.zip"
curl http://downloads.digitalcorpora.org/corpora/files/govdocs1/threads/thread$i.zip -o thread$i.zip
done
| true |
891aa65ef1ceb8ed66bca4a14d233a2d406da02e | Shell | LayerDE/Einfuehrung-ins-Betriebssystem-Linux | /exam/2 KonsoleBashscripting/2a.sh | UTF-8 | 72 | 2.546875 | 3 | [] | no_license | #!/bin/bash
if test $b -le 42
then
echo "<=42"
else
echo ">=42"
fi
| true |
d54606164473565db8d442bfae976911de8c215a | Shell | renesas-rcar/meta-renesas | /meta-rcar-adas/recipes-bsp/bsp-config/files/bsp-config_v3m.sh | UTF-8 | 2,325 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
SYSFS_UIO_DRIVER="/sys/bus/platform/drivers/uio_pdrv_genirq/"
SYSFS_VSPD_DRIVER="/sys/bus/platform/drivers/vsp1/"
SYSFS_DU_DRIVER="/sys/bus/platform/drivers/rcar-du/"
SYSFS_CSI_DRIVER="/sys/bus/platform/drivers/rcar-csi2/"
SYSFS_VIN_DRIVER="/sys/bus/platform/drivers/rcar-vin/"
SYSFS_LVDS_DRIVER="/sys/bus/pla... | true |
35cc3fc2266b34731c9836740cc8bb8d7b33755d | Shell | jhcook/miscellaneous | /srechallenge/bootstrap.sh | UTF-8 | 1,277 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
# A simple utility to install cpx-server in Kubernetes.
#
# Requires: Python3 kubectl Docker Minikube
#
# Tested on: macOS Big Sur 11
#
# Author: Justin Cook <jhcook@secnix.com>
set -o nounset
set -o errexit
# Check dependencies in PATH
for cmd in docker kubectl python3 minikube
do which ${cmd}... | true |
824396c9cd3c9db55deb5e56483a547cdcf9af88 | Shell | shizonic/packages | /net/open-iscsi/files/open-iscsi | UTF-8 | 1,756 | 3.625 | 4 | [
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh /etc/rc.common
START=50
STOP=50
#USE_PROCD=1
DAEMON=/sbin/iscsid
ADM=/sbin/iscsiadm
PIDFILE=/var/run/iscsid.pid
log()
{
logger -t iscsid -s -p daemon.info "$@"
}
#start_service() {
# procd_open_instance
# procd_set_param command $DAEMON -f -d 8 -p $PIDFILE
# procd_set_param resp... | true |
51277deaf5eacfa89daaed937cfb3afa4f80c01b | Shell | rushyang/GTU-OS-Bash-Scripts | /Working/System Scripts/hist_back.sh | UTF-8 | 477 | 3.609375 | 4 | [] | no_license | #! /bin/bash
temp=$(mktemp history.XXXX)
cp "$HOME/.bash_history" "$temp"
# Fetchng today's date.
now=`date +%d%b%Y_%H`
# My History back up directory location
histdir="$HOME/Experiments/AutoHistBackup"
if [[ ! -d $histdir ]]; then
mkdir -p "$histdir"
fi
month=`date +%Y_%b`
path="$histdir/$month"
if [[ -d "$path" ... | true |
dcac968e8a44c77398f8aa651b3c541e7043e515 | Shell | corps/dotfiles | /profile/path.bash | UTF-8 | 130 | 2.53125 | 3 | [] | no_license | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
export PATH=$HOME/bin:$PATH
export PATH=$DIR/../bin:$PATH
| true |
52fffea8ba9684dcf3c5a3b2c9eed8671b346f74 | Shell | linuxsquad/IPA_bulk_password_expiration_change | /modifyExpDate.sh | UTF-8 | 2,476 | 3.90625 | 4 | [] | no_license | #!/bin/bash
#
# AUTHOR: linuxsquad
#
# DATE: 2017-03-07
#
# DESCRIPTION: changing user password expiration day in bulk
#
# PRE-REQUISIT: Gain admin privileges prior to running the script (kinit <admin>)
#
# INPUT: -E|e [YYYYMMDD] A new [E]xpiration date, this must be provided if -M option used.
# -M [M]o... | true |
27189db58b340095c9c52c7a4293f5ad5f63fd34 | Shell | jirikadlec2/rushvalley | /python/runUpload.sh | UTF-8 | 440 | 3.125 | 3 | [
"MIT"
] | permissive | #! /bin/bash
cd /home/WWO_Admin/decagonUpload/
#get the current date/time for the logfile
now=$(date)
#parse out whitespace
now_mod=${now// /_}
now_mod=${now_mod//__/_}
log=logfiles/$now_mod"_log.log"
#run the transfer and write output to log
./data_transfer.py $now >> $log
#clean up the .dxd files generated
cd d... | true |
081c4654de29a63fad5e0bf20e331daf34c14b1e | Shell | nworbnhoj/gargoyle | /package/plugin-gargoyle-openvpn/files/www/utility/openvpn_upload_client.sh | UTF-8 | 9,973 | 2.96875 | 3 | [] | no_license | #!/usr/bin/haserl --upload-limit=1048576 --upload-dir=/tmp/
<%
# This program is copyright © 2012-2013 Eric Bishop and is distributed under the terms of the GNU GPL
# version 2.0 with a special clarification/exception that permits adapting the program to
# configure proprietary "back end" software provided that all ... | true |
422ef2c157b3b540fa205c1425c5ee6565d9a287 | Shell | to4iki/LensKit | /Scripts/generate-auto-lens.sh | UTF-8 | 444 | 3.9375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
CMD=`basename $0`
DIR=`dirname $0`
SOURCE_DIR=$1
OUTPUT_DIR=$2
if [[ $# -ne 2 ]]; then
echo "Usage: $CMD <source-dir> <code-generated-dir>" 1>&2
exit 1
fi
if which sourcery >/dev/null; then
# Run sourcery
sourcery --sources "$SOURCE_DIR" --templates "$DIR"/../Templates --output "$... | true |
789edde132cf42bef56882b6674e4fc5e77ff7ad | Shell | DuyNguyen1879/mariaDB-master-to-master | /replication_status.sh | UTF-8 | 519 | 3.171875 | 3 | [] | no_license | #! /bin/bash
PW=P4SSWORD
DBUSER=DB-USER
remoteSlave=$(ssh -p22 node-db2 /home/user/mysql_slave_status.sh | grep -E -i "Master_Log_File|Exec_Master_Log_Pos" | awk '{print $2}'| uniq )
localMaster=$(mysql -u $DBUSER -p$PW -e "show master status\G" | grep -E "mariadb|Position" | awk '{print $2}')
echo -n "REPLICA... | true |
c089008e72a3e9447c9d662af296a1967dcbd5f8 | Shell | amin-o/picoctf-2018 | /cryptography/crypto_warmup_1.sh | UTF-8 | 649 | 3.4375 | 3 | [] | no_license | #!/usr/bin/bash
message="llkjmlmpadkkc"
key="thisisalilkey"
i=0
decrypt_message=""
while [ $i -lt ${#message} ] ; do
#get ascii chars
message_char=${message:$i:1}
key_char=${key:$i:1}
#convert ascii chars into
message_char_int=$(printf "%d " "'$message_char")
key_char_int=$(printf... | true |
f5127d7b761b694855edc5ea4cc0ad94d1fa3a46 | Shell | shamazmazum/DPorts | /net/DarwinStreamingServer/files/darwin_streaming_server.in | UTF-8 | 609 | 2.921875 | 3 | [] | no_license | #!/bin/sh
#
# $FreeBSD: head/net/DarwinStreamingServer/files/darwin_streaming_server.in 340872 2014-01-24 00:14:07Z mat $
#
# PROVIDE: darwin_streaming_server
# REQUIRE: streamingadminserver
#
darwin_streaming_server_enable=${darwin_streaming_server_enable-"NO"}
. /etc/rc.subr
name=darwin_streaming_server
rcvar=darwi... | true |
c4701d758bf60337afea3ef07db85bce04d24695 | Shell | wolfgangbrandl/DB2_restore_test | /util.bash | UTF-8 | 9,821 | 3.59375 | 4 | [] | no_license | #!/usr/bin/bash
#-------------------------------------------------------------------
# stoppt alle Applikationen fuer die mitgegebene DB
#-------------------------------------------------------------------
function create_db ()
{
DBT=$1
CONT=$2
LOG=$3
printf "Anlegen der Source Datenbank %s with Automatic Stora... | true |
a827bbf49ab5acc6278ef99e6b90b866a06394c4 | Shell | jshelton/newVerify | /oldVerify/vci | UTF-8 | 2,656 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
########################
# Name: [vci]
# Created: Tuesday, January 22, 2019
# Source: Joshua Shelton
# Description:
# This will look at the rsync running process to verify images in
# that path and keep running until the rsync process has finished.
#
# Improvements:
# - This currently uses verifyPa... | true |
ed009a85dd1520e9a45fee2b5d52102452a114ff | Shell | Ponce/slackbuilds | /network/AdGuardHome/rc.AdGuardHome | UTF-8 | 1,037 | 4.03125 | 4 | [] | no_license | #!/bin/bash
# Start/stop/restart the AdGuard Home
bin=/usr/sbin/AdGuardHome
config=/etc/AdGuardHome.yaml
workdir=/var/lib/AdGuardHome
pidfile=/run/AdGuardHome.pid
start_AdGuardHome() {
echo "Starting AdGuard Home... "
if [ -f $pidfile ]; then
echo "AdGuard Home is already running with PID $(cat ${pidfile}).... | true |
0df011b3b6741f8ea5809d5fcc650a96e770305a | Shell | grahamgilbert/macscripts | /Munki/BinJAMF/installcheck.sh | UTF-8 | 80 | 2.703125 | 3 | [] | no_license | #!/bin/bash
file="/usr/sbin/jamf"
if [ -f "$file" ]
then
exit 0
else
exit 1
fi | true |
eda78b5be8512d386e0b3674370308d8664fc6da | Shell | brecht-d-m/amma-bda | /datalab/sources/lint.sh | UTF-8 | 1,143 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2015 Google Inc. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | true |
c7e5c214a31d5a9b18486d800fd2366403b1a647 | Shell | wangweiX/myDevOps | /linux-script/raspberrypi/ubuntu/20.04/firewall.sh | UTF-8 | 5,938 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
################################################
#
# Script Firewall for INPUT and OUTPUT rules
#
# https://help.ubuntu.com/community/UFW
# https://www.digitalocean.com/community/tutorials/iptables-essentials-common-firewall-rules-and-commands
# https://www.cyberciti.biz/tips/linux-unix-bsd-nginx-webserver... | true |
2c7f91744a3892a45836d527451239106094d20a | Shell | YadominJinta/dotfiles | /zsh/install.sh | UTF-8 | 1,060 | 2.5625 | 3 | [] | no_license | #! /usr/bin/env bash
cd $HOME
mkdir -p .zsh/themes
mkdir -p .zsh/plugins
echo "Setting up themes"
cd ~/.zsh/themes
git clone --depth=1 https://github.com/romkatv/powerlevel10k
cd ~/.zsh/plugins
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting
git clone --depth=1 https://github.com/zsh-users/... | true |
308f458cb87f0b1d30423648c5eda41774cc4721 | Shell | Nicholas1126/frida-fuzzer-aio | /frida-android/build.sh | UTF-8 | 943 | 3 | 3 | [
"Apache-2.0"
] | permissive | #/bin/bash
# 1.进入python3-android目录,交叉编译构建android python3.9环境
# cd ../python3-android
# ARCH=arm64 ANDROID_API=21 ./build.sh --enable-shared
# mv build python3.9
# tar -czf ../frida-android/python3.9-arm64.tar.gz python3.9
# 2.编译完成后拷贝到手机的/data/local/tmp目录
cd ../frida-android/
unzip frida-14.2.13-py3.8-android-aarch64.... | true |
38d52a0403115a7a921eccc6b6a12b9f41753509 | Shell | xendk/dais | /entrypoint.sh | UTF-8 | 230 | 2.71875 | 3 | [] | no_license | #!/bin/sh
# We need this script as we can't pass a list of files through Github
# Action argumements, but passes files as a single string. So we need
# this script to split the arguments before passing them to dais.
/src/dais $*
| true |
77c94e3a0145f0bc817f9903930eeb3c8ea3127c | Shell | bool3max/dots | /scripts/blocks/spp_statusbar | UTF-8 | 1,065 | 3.625 | 4 | [] | no_license | #!/bin/sh
# simple shell script that outputs the current spotify status in the form of $ARTIST - $SONGNAME, along with a FontAwesome's play/pause icons
#depends on 'sp' (a shell utility for interacting with Spotify's DBUS MPRIS protocol) and gnu grep
#meant to be used in a status script such as i3blocks or i3status
... | true |
4e4d076eb2e95863ca4aa8a08dcd520664e3e1cf | Shell | cypayne/palumbi_scripts | /batch-bt2-whitesharks.sh | UTF-8 | 1,241 | 2.921875 | 3 | [] | no_license | #!/bin/bash
# usage: sbatch batch-bt2-whitesharks.sh bt2index path_to_read_files
'''
#FQ="${@:3}"
# for i in $FQ; do
#XXX for val in OC-116_S12 OC-1_S7 OC-2_S8 OC-3_S9 OC-66_S11 OC-72_S10 WS10-16_S1 WS10-17_S2 WS10-22_S3 WS11-06_S4 WS12-03_S5 WS12-10_S6
#XXX for val in OC-116_S12 OC-1_S7 OC-3_S9 OC-66_S11 OC-72_S10 WS... | true |
a24c61efed1a874fcbcee29b3e6447d8b7fad704 | Shell | jiwon-choe/Brown-SMCSim | /SMC/UTILS/models/system/gem5_fullsystem_arm7.sh | UTF-8 | 943 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# print_msg "Loading Host Model: ARMv7 (Cortex-A15)"
export GEM5_NUMCPU=8
export HOST_CLOCK_FREQUENCY_GHz=2
export ARCH_ALIAS="arm7"
export GEM5_PLATFORM=ARM
export GEM5_MACHINETYPE="VExpress_EMM"
export GEM5_DTBFILE="$M5_PATH/binaries/vexpress.aarch32.ll_20131205.0-gem5.${GEM5_NUMCPU}cpu.dtb"
export GEM5... | true |
ccf8af586ee1b1d655af3fd90ad90f300c5f06b0 | Shell | lielongxingkong/openstack_logs | /swift/for_puppet/ring.sh | UTF-8 | 1,609 | 3 | 3 | [] | no_license | #!/bin/bash
sed -i s/[[:space:]]//g ./zCloudRing.conf
sudo cp ./zCloudRing.conf /etc/swift/
cd /etc/swift
RING_CONF="./zCloudRing.conf"
sudo swift-ring-builder account.builder create 18 3 1
sudo swift-ring-builder container.builder create 18 3 1
sudo swift-ring-builder object.builder create 18 3 1
while read line; do... | true |
20c83bdc3d7715ff78c60f962f457971b6e893ba | Shell | kragebein/plexbot | /bot/plugins/pb_extras.sh | UTF-8 | 4,294 | 3.109375 | 3 | [] | no_license | #!/bin/bash -
#===============================================================================
#
# FILE: pb_extras.sh
#
# USAGE: ./pb_extras.sh
#
# DESCRIPTION: This is a collection of many smaller functions that are useful
# but not critical to the operation of plexbot.
# C... | true |
308530c465b2991977de4c2c17cb0a811b5e8f9c | Shell | faun/dotfiles | /shrc/aliases.sh | UTF-8 | 4,421 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# directory listing & navigation
alias l="ls -lAh"
alias ll='ls -hl'
alias la='ls -a'
alias lla='ls -lah'
alias ..='cd ..'
alias ...='cd .. ; cd ..'
alias q='exit'
# tmux
alias tat='tmux_attach'
alias t='tmux_attach'
alias tmux='tmux_attach'
# ruby
alias bi='bundle install'
alias bu='bundle updat... | true |
accf47e2352186a1cc4683bf12e5cc88833b28fb | Shell | RonieGSS/cakephp | /bin/bin/mkdocs | UTF-8 | 1,279 | 3.40625 | 3 | [] | no_license | #! /bin/bash
echo '
= = = = = = = = = = = = = = = = = = = = = = = = = =
MkDocs Commands
- - - - - - - - - - - - - - - - - - - - - - - - - -
Select from the following set of commands:
- - - - - - - - - - - - - - - - - - - - - - - - - -
DESCRIPTIONS
- - - - - - - - - - - - - - - - -... | true |
6a1e853f96a55d4d1c8c6e675139f56f27c7a2c4 | Shell | Jxrgxn/dotfiles | /.dotfiles/shell/z_login.zsh | UTF-8 | 1,133 | 3.078125 | 3 | [
"MIT"
] | permissive | #-------------------------------------------------------------------------------
#
# shell/z_login.zsh
# Commands to be run for each terminal "login"
#
#-------------------------------------------------------------------------------
# Window title - for Timing.app <https://itunes.apple.com/us/app/timing/id431511738?mt... | true |
104a781254c44f462d699f574b60e1f0853946dc | Shell | StackArch/pkg-iniparse | /PKGBUILD | UTF-8 | 1,520 | 2.953125 | 3 | [] | no_license | # Maintainer: BigfootACA <bigfoot@classfun.cn>
_pyname=iniparse
pkgbase=python-$_pyname
pkgname=(python{,2}-$_pyname)
pkgver=0.5
pkgrel=1
pkgdesc="Accessing and Modifying INI files"
arch=(any)
url="https://github.com/candlepin/python-iniparse"
license=(MIT)
depends=(
python
python-six
python2
python2-six
)
makedep... | true |
7ea266fa6b3237e7e98171029092e170e2457013 | Shell | Lemon080910/xiaomi_3c | /squashfs-root/etc/hotplug.d/iface/20-firewall | UTF-8 | 317 | 3.125 | 3 | [] | no_license | #!/bin/sh
logger -t "${0}-firewall[$$]" "HotPlugEvent: $ACTION of $INTERFACE ($DEVICE)"
[ "$ACTION" = "ifup" ] || exit 0
/etc/init.d/firewall enabled || exit 0
fw3 -q network "$INTERFACE" >/dev/null || exit 0
logger -t firewall "HotPlugEvent: Reloading firewall due to ifup of $INTERFACE ($DEVICE)"
fw3 -q reload
| true |
3a17cc5e8490d41e02bf5e36ebfbeb7b4dfca86f | Shell | shorif2000/aws-ec2-install-scripts | /aws-ec2-rhel8-php73-fpm-server.sh | UTF-8 | 2,241 | 2.609375 | 3 | [] | no_license | #/bin/bash
yum update -y
yum install gcc gcc-c++ make python3-docutils -y
cd ~
wget https://github.com/skvadrik/re2c/releases/download/1.1.1/re2c-1.1.1.tar.gz
tar zxvf re2c-1.1.1.tar.gz
cd re2c-1.1.1
./configure --prefix=/opt/SP/re2c --enable-docs
make clean && make && make install
echo 'export PATH=$PATH:/opt/SP/re2... | true |
532bef0e2f66eeee380a06ae91caf4b6c528ff72 | Shell | jafingerhut/p4-guide | /action-profile-and-selector/run-tests.sh | UTF-8 | 373 | 2.515625 | 3 | [] | no_license | #! /bin/bash
# VPP_P4_INSTAL_DIR should be the directory where you have cloned a
# copy of this repository:
# https://github.com/jafingerhut/VPP_P4
# It contains some Python code import'd by action-profile-tests.py
VPP_P4_INSTALL_DIR=${HOME}/p4-docs/VPP_P4
export PYTHONPATH=${VPP_P4_INSTALL_DIR}:${PYTHONPATH}
... | true |
b5ee099377f5e7e787916b31d7b140f5f77844f7 | Shell | tovrleaf/sh-scripts | /mysqldumps.sh | UTF-8 | 585 | 3.453125 | 3 | [] | no_license | #!/bin/sh
# @author Niko Kivelä <niko@tovrleaf.com>
# @since Sun Dec 13 23:49:23 EEST 2009
# Backup mysql per dump in $HOME/backups/<daynumber>/<dump>
# Run via cron, or manually when feel like it.
DAY=`/bin/date +%u`
function dumpsql()
{
/usr/bin/mysqldump -hlocalhost -u$1 -e -p$2 $1 > $HOME/backups/mysqldump-... | true |
6c92f2120078bdcbe3ba0a0abff19eb20be6f584 | Shell | ahelal/terraform-azure-demo | /bin/deploy-users.sh | UTF-8 | 527 | 3.28125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
ROOT_DIR="${DIR}/../"
VARS_DIR="${ROOT_DIR}/vars"
if [ -f "${VARS_DIR}/generated_vars.sh" ]; then
echo "sourcing ${VARS_DIR}/generated_vars.sh"
source "${VARS_DIR}/generated_vars.sh"
fi
if [ -f "${VARS_DIR}/terraform_v... | true |
a1a7bb522fa96d16f6b70910398f81e6c8375ee4 | Shell | NILGroup/TFG-1819-Biblioteca | /janet-full-install.sh | UTF-8 | 6,405 | 3.390625 | 3 | [] | no_license | #!/bin/bash
DIRECTORY=$(cd `dirname $0` && pwd)
set -e
echo "Programa de instalación de Janet."
echo "-----------------------------------"
if ! [ $(id -u) = 0 ]; then
echo "Este script solo puede ser ejecutado por un superusuario." >&2
exit 1
fi
if [ $SUDO_USER ]; then
real_user=$SUDO_USER
else
real_... | true |
0f4e3311218d932f546f6b745d48e640f566e9bf | Shell | zmjohnson42/dotfiles | /zsh/env.sh | UTF-8 | 1,310 | 2.953125 | 3 | [] | no_license | #!/bin/zsh
# PATHS
export PATH="/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbina"
export PYENV_ROOT="$HOME/.pyenv";
export PATH="$PYENV_ROOT/bin:$PATH";
eval "$(pyenv init -)";
eval $(direnv hook zsh);
# ALIASES
# dev
alias devdep="bundle exec cap development deploy"
alias pushdep="gp ibp-ghd se... | true |
05ebff8cd098781d024b49dad326837c525b8a74 | Shell | alvatar/snippets | /command-line/rename_mp3.sh | UTF-8 | 1,077 | 3.78125 | 4 | [] | no_license | #!/bin/bash
DIR=/mnt/usb/TODO/complete
TARGET_NON_STANDARD_DIR=/mnt/usb/TODO
TARGET_RENAMED_DIR=/mnt/usb/music/albums
# The tricky way to get find's output into an array
unset files i
while IFS= read -r -d $'\0' file; do
files[i++]="$file"
ALL=$(basename "$file")
YEAR=$(echo $ALL | grep -o '[1-2][0-9][0-9][0-9... | true |
2c245aa29455e42dcac836f284f51fe1af3ed75b | Shell | bcbrockway/minikube-sandbox | /error-spike.sh | UTF-8 | 146 | 2.765625 | 3 | [] | no_license | #!/bin/bash
MAX=2400
SLEEP=1
for ((i=0; i<=MAX; i++)); do
echo -ne $i / $MAX\\r
echo error | nc minikube 80 > /dev/null
sleep $SLEEP
done
| true |
67e2da177c20b6878c08b49625e621bc615ad6f6 | Shell | eerimoq/monolinux-example-project | /3pp/linux/tools/virtio/ringtest/run-on-all.sh | UTF-8 | 670 | 3.515625 | 4 | [
"Linux-syscall-note",
"GPL-2.0-only",
"MIT"
] | permissive | #!/bin/sh
# SPDX-License-Identifier: GPL-2.0
CPUS_ONLINE=$(lscpu --online -p=cpu|grep -v -e '#')
#use last CPU for host. Why not the first?
#many devices tend to use cpu0 by default so
#it tends to be busier
HOST_AFFINITY=$(echo "${CPUS_ONLINE}"|tail -n 1)
#run command on all cpus
for cpu in $CPUS_ONLINE
do
#Don't r... | true |
e9036c91bb44a6983093c163d76b07a72fdd4ca0 | Shell | milanbojovic/bash_scripts | /Install_script_final.sh | UTF-8 | 3,749 | 3.40625 | 3 | [] | no_license | #!/bin/bash
printGreen(){
printf "\n%s\n\n" "`tput smso``tput setf 2` $1 `tput sgr0`" | tee -a $log_file;
sleep 2;
};
printRed(){
printf "\n%s\n\n" "`tput smso``tput setf 4` $1 `tput sgr0`" | tee -a $log_file;
sleep 2;
};
install(){
printGreen "Installing $1:" | tee -a $log_file;
sleep 2;
apt-get ... | true |
38289ea2aab239b503c378ac6928e2070a75e457 | Shell | darkoppressor/cheese-engine | /tools/build-system/scripts/data/build-sounds | UTF-8 | 2,171 | 3.890625 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
PROJECT_DIRECTORY=$1
SOURCE_PROJECT=""
SOUND_DIRECTORY=""
build_project_sounds () {
local directory=$1
for file in $directory/* ; do
if [ -f "$file" ]; then
if [[ $file =~ \.mmpz$ ]]; then
prefix=$SOURCE_PROJECT/
suffix=.mmpz... | true |
0414c999035c2f4e9923c74864a7e712f2e2ffbe | Shell | closescreen/clhousesample | /history_uid_SQL-run-3.sh | UTF-8 | 981 | 3.328125 | 3 | [] | no_license | set +x
set -o pipefail
set -u
# Для каждого файла из sqldir не имеющего рядом "$f.ok.result" выполняет SQL из файла и создает "$f.ok.result"
# SQL- файлы общие для всех серверов.
# Файлы результатов, логов - для каждого сервера - свои.
# Однопоточный.
myserv=`hostname`
day=${1:?DAY!} #"2017-03-20"
sqldir="../../reg_... | true |
0ef09b23ecebd21e4211db725b8de1d2fc8d11b4 | Shell | GoogleChromeLabs/chromeos_smart_card_connector | /third_party/webports/src/src/ports/libsodium/build.sh | UTF-8 | 1,982 | 3.234375 | 3 | [
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"Apache-2.0",
"GPL-2.0-or-later",
"LicenseRef-scancode-mit-old-style",
"MPL-1.1",
"ImageMagick",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"GFDL-1.2-only",
"BSD-3-Clause",
"LicenseRef-scancode-other-permissive",
"GPL-1.0-or-later",
"Libpng",
... | permissive | # Copyright (c) 2011 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EXTRA_CONFIGURE_ARGS="--disable-pie --disable-shared"
RunTest() {
naclport_test/crypto_box_test
}
TestStep() {
MakeDir naclport_test/lib
# ... | true |
170c4b4863e8445705d3aab420fb734dd8c3c71a | Shell | sumpygump/vimrc | /autoinstall.sh | UTF-8 | 1,295 | 3.921875 | 4 | [] | no_license | #!/bin/sh
INSTALL_TO=~
warn() {
echo "$1" >&2
}
die() {
warn "$1"
exit 1
}
[ -e "$INSTALL_TO/vimrc" ] && die "$INSTALL_TO/vimrc already exists."
[ -e "~/.vim" ] && die "~/.vim already exists."
[ -e "~/.vimrc" ] && die "~/.vimrc already exists."
cd "$INSTALL_TO"
git clone git://github.com/sumpygump/vimrc... | true |
9fab76afc107faa04e9f22c6b9b7c245d5d5edb2 | Shell | 0xch4z/dotfiles | /zsh/zsh/plugins.zsh | UTF-8 | 152 | 2.734375 | 3 | [
"CC0-1.0"
] | permissive | mkdir -p "$ZSH_PLUGINS"
ensure_plugin() {
repo="$1"
git clone "$1" ~/$ZSH_PLUGINS/
}
ensure_plugin "https://github.com/kutsan/zsh-system-clipboard"
| true |
c76da4c6f42e63e1118b81cf647067814fc87ecb | Shell | bullno1/hakomari | /src/providers/eth/create1 | UTF-8 | 300 | 2.9375 | 3 | [] | no_license | #!/bin/sh -e
PASSPHRASE=$(cat $HAKOMARI_PASSPHRASE_FILE)
rm -rf /tmp/*
hakomari-show "Creating wallet..."
ethkey --secrets-path /tmp --lock ${PASSPHRASE} newbare
KEYID=$(ethkey --secrets-path /tmp)
mv /tmp/${KEYID}.json $1
ADDRESS="0x$(jq -r '.address' "$1")"
hakomari-show "Address: ${ADDRESS}"
| true |
c90c768e546070bfb8e1eaa65e9063ae4c6643fd | Shell | ConnerWallace/dotfiles | /bin/sshScanSubnet | UTF-8 | 2,708 | 3.25 | 3 | [] | no_license | #!/bin/bash
set -euo pipefail
IFS=$'\n\t'
#requires: yq and avahi-resolve
# yq comes with xq which is jq for xml
# https://github.com/kislyuk/yq
# pip install yq
command -v jq >/dev/null 2>&1 || { echo >&2 "I require jq but it's not installed. Aborting."; exit 1; }
command -v xq >/dev/null 2>&1 || { echo >&2 "I requ... | true |
d100af311f536fbd50038b194992416ef266cd18 | Shell | chuangxiaomoo/bin | /ma | UTF-8 | 1,204 | 3.78125 | 4 | [] | no_license | #! /bin/bash
function fn_main()
{
if [ "$#" -lt 1 ] ; then
echo "Usage: $0 keyword" && exit 1
fi
# call from vimrc map
if [ "$MANWIDTH" == 88 ] ; then
f_redirct=/tmp/.ma
else
f_redirct=/dev/stdout
fi
keyword=$1
TMP=/tmp/.man
man -f ${keyword} 2>&1 | t... | true |
02ee6dccbde3bba6c579d318ce7c90f4ce0ea3cd | Shell | BurnsCommaLucas/Resume | /build.bash | UTF-8 | 883 | 2.953125 | 3 | [] | no_license | #!/bin/bash
DIR=$(dirname $(realpath $0))
echo "$DIR"
# build gfm markdown readme
echo '##########################################################'
echo building gfm readme
echo '##########################################################'
pandoc "$DIR/resume.tex" -o "$DIR/README.md" -t gfm
# build pdf
echo '#######... | true |
90844b7b79b024dd09c221531d732e92d352783d | Shell | Chiasung/ether_ros | /scripts/optimizations/full_dynamic_ticks.sh | UTF-8 | 1,725 | 3.5 | 4 | [] | no_license | #!/bin/sh
# Linux has a number of boot parameters that enhances CPU isolation:
# isolcpus=<cpu set> This parameter specifies a set of CPUs that will be excluded from the Linux scheduler load balancing algorithm. The set is specified as a comma separated list of cpu numbers or ranges. E.g. "0", "1-2" or "0,3-4". The s... | true |
52db1b29a36997543d83dd3b50b8c8725746befb | Shell | saalfeldlab/template-building | /scripts/dataWrangling/runTimeMemStat | UTF-8 | 2,089 | 2.953125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
BASEDIR="/nrs/saalfeld/john/projects/flyChemStainAtlas/all_evals"
#dir_list="\
# JFRCtemplate2010/antsRegDog JFRCtemplate2010/antsRegOwl JFRCtemplate2010/antsRegYang JFRCtemplate2010/cmtkCOG JFRCtemplate2010/cmtkCow JFRCtemplate2010/cmtkHideo \
# JFRC2013_lo/antsRegDog JFRC2013_lo/antsRegOwl JFRC201... | true |
00edb78cff5ce8534fede935dc152d7a25d6f450 | Shell | yangtaossr/datasets | /pkgs/ncbi-datasets-cli/conda/build.sh | UTF-8 | 250 | 2.515625 | 3 | [
"LicenseRef-scancode-public-domain"
] | permissive | for name in datasets dataformat; do
bazel build --build_event_text_file=$name.bep //src:$name
bin_name=$(sed -n '/^completed {/,/^}/{s,.*uri: "file://\(.*\)",\1,p}' $name.bep)
cp "$bin_name" "$PREFIX/bin/"
done
bazel clean
bazel shutdown
| true |
724b4064b3d84859dd9e9fe7233f834b5ba5ba3b | Shell | mouraja/estudos | /python/teste_argumentos.py | UTF-8 | 788 | 3.703125 | 4 | [] | no_license | #!/bin/bash
function usage() {
cat <<HELP
sitaxe: $0 [-a <opcao>] [-b <opcao>] [-c <opcao>] [-d] [-e] [-f] [-h];
HELP
exit 1
}
while getopts "a:b:c:defh" opt;
do
case $opt in
a)
echo "-$opt was triggered, Parameter: $OPTARG" >&2;
;;
b)
echo "-$opt was triggered, Parameter: $OPTARG" >&2;
;;
c... | true |
f787ee533bef6f501072db9c2f10a2d62ce47aeb | Shell | PeiwenWu/Adaptation-Interspeech18 | /adaptation/run_si_train.sh | UTF-8 | 4,647 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Copyright 2017 Ke Wang
# Begin config
stage=5
train_nj=100
decode_nj=50
# End config
. ./cmd.sh
. ./path.sh
. utils/parse_options.sh
train_dir=data/train
test_dir=data/test_50speaker
if [ $stage -le 0 ]; then
echo ========================================================================
echo ... | true |
96f0febcbe67258667c10e9910d224a553c9952f | Shell | anderson-uchoa/predicting-refactoring-ml | /data-collection/run-cloud.sh | UTF-8 | 1,465 | 3.4375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
export IFS=","
if [ "$#" -ne 8 ]; then
echo "wrong usage" >&2
exit 1
fi
CLASS="refactoringml.App"
JAR_PATH=predicting-refactoring-ml/data-collection/target/refactoring-analyzer-0.0.1-SNAPSHOT-jar-with-dependencies.jar
REFACTORINGMINER_JAR_PATH=predicting-refactoring-ml/data-collection/lib/Refactorin... | true |
4fa6d0e71185fcc6e1e809f82d02d36f75ccd8a5 | Shell | mmlindeboom/always-connected-daemon | /checkconnection.sh | UTF-8 | 984 | 3.578125 | 4 | [] | no_license | #!/bin/bash
AIRPORT="en1"; #may be en0, use networksetup -listallhardwareports to check
WIFI_NETWORK_NAME="YOUR_WIRELESS_NETWORK_NAME"
WIFI_PASSWORD="YOUR_PASSWORD"
THE_DATE=$(date)
# Check to see if connected to WIFI_NETWORK_NAME every 20 seconds
function connect {
networksetup -setairportpower $AIRPORT off
netwo... | true |
43d30d852d0f5ffb94c8898c8bb4d9691b7d3b84 | Shell | juancarloscavero/aws-practica | /autoUpDown.sh | UTF-8 | 2,035 | 3.234375 | 3 | [] | no_license | #!/bin/bash
now=$(date +%H:%M)
apagar=$(aws ec2 describe-instances --region eu-west-1 --filters 'Name=tag:hora_apagado,Values=*' | jq -r '.Reservations[].Instances[].Tags[] | select(.Key=="hora_apagado")'| jq -r .Value)
echo $now
echo $apagar
if [ "$apagar" == "$now" ]; then
id=$(aws ec2 describe-instances --... | true |
76993a07c7f818657a7d79e908f86ff3a1affa1e | Shell | dwhswenson/repo-tools | /install_miniconda.sh | UTF-8 | 1,249 | 3.875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Usage:
# source install_miniconda.sh
#
# Note that this must be sourced, not executed. This is because it changes
# environment variables.
#
# There are two environment variables that you can set to change behavior:
# * $CONDA_PY will affect which Python version is default in miniconda, and
# wil... | true |
82b6329222765ce02c3d0a2a9669f25cec5850e2 | Shell | cultcode/mon | /LogTruncate.sh | UTF-8 | 1,364 | 3.9375 | 4 | [] | no_license | #!/bin/bash
#set -x
usage () {
echo "Usage: $0 SERVICE_NAME LOG_FILE"
}
if [ "$#" -ne 2 ];then
usage;
exit 1;
fi;
#if [ ! -f "$1" ];then
# echo "SERVICE_NAME $1 is not existent"
# usage;
# exit 1;
#fi;
if [ ! -f "$2" ];then
echo "LOG_FILE $2 is not existent"
usage;
exit 1;
fi;
SERVICE_DIR=$(dirname ... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.