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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a2757fbb29f66de0fa5e2df5729b1bd4000eb211 | Shell | mikecaldwell/Cybersecurity-Project-1 | /Linux/sys_info.sh | UTF-8 | 596 | 3.46875 | 3 | [] | no_license | #!/bin/bash
output = $HOME/research/sys_info.txt
echo "The current date is $(date)" >> $output
echo "The operating system for this machine is $(uname)" >> $output
echo -e "The IP addres is $(ip addr | head -9 | tail -1)" >> $output
echo "The host name of this machine is $(hostname)" >> $output
echo ""
echo "A Quick S... | true |
205b4eaf6a4df9b7f5744a67c6e003e2cfb1f24f | Shell | dingotiles/dingo-postgresql-agent | /images/scripts/show_usage.sh | UTF-8 | 1,205 | 3.609375 | 4 | [] | no_license | #!/bin/bash
function show_usage {
guid=$(slug)
sample_cluster_name=demo-cluster-${guid:0:6}
cat <<'USAGE'
____ _
| _ \(_)_ __ __ _ ___
| | | | | '_ \ / _` |/ _ \
| |_| | | | | | (_| | (_) |
|____/|_|_| |_|\__, |\___/
|___/
Dingo PostgreSQL continuously archived from Day 1.
How to run:
d... | true |
67fc49393057ef66b86920b47b4e8f6c775e8e5f | Shell | cathywu/ray | /src/plasma/setup-env.sh | UTF-8 | 150 | 2.921875 | 3 | [
"MIT",
"Apache-2.0"
] | permissive | echo "Adding Plasma to PYTHONPATH" 1>&2
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
export PYTHONPATH="$ROOT_DIR/lib/python/:$PYTHONPATH"
| true |
d4829ddd2de1d87a674b91412e14f9e590153274 | Shell | TheShellLand/antsable | /shells/kubectl-get-jobs.sh | UTF-8 | 131 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# get kube jobs
if [ -z "$*" ]; then
kubectl get jobs --all-namespaces
else
kubectl get jobs --namespace "$@"
fi
| true |
32a2d7142cfd7eaea13f2e9e7fce4182f5d49579 | Shell | ilventu/aur-mirror | /mruby/PKGBUILD | UTF-8 | 636 | 3.0625 | 3 | [] | no_license | pkgname=mruby
pkgver=20120502
pkgrel=1
pkgdesc="Lightweight Ruby (preliminary release for internal team review)"
arch=(i686 x86_64)
url="https://github.com/mruby/mruby"
license=(MIT)
depends=()
source=()
md5sums=()
_gitroot="https://github.com/mruby/mruby.git"
_gitname="mruby"
build(){
cd "$srcdir"
if [[ -d "$_git... | true |
e70ca45b839e3c9e2222c1d9c02d901e72e44832 | Shell | d-alanis98/computer-graphics | /P5-Animation/generate_animation.sh | UTF-8 | 403 | 3.484375 | 3 | [] | no_license | #!/bin/bash
if [ $# -eq 0 ]
then
echo "Please provide the duration of the animation in seconds"
exit 1
fi
seconds=$((24 * $1))
for i in $(seq 1 $seconds);
do
degrees=$((5 * $i))
./test prueba.obj $degrees > "animation/animation$i.ppm"
done
echo "Generating video"
ffmpeg -framerate 24 -i animation/... | true |
a27a54b30e63760b01e13970a99683e367916c0a | Shell | soulflyer/profile | /profile | UTF-8 | 282 | 2.765625 | 3 | [] | no_license | #!/usr/bin/env sh
# echo $PATH
# echo "hello from .profile"
hostspecific=.`hostname | tr '[:upper:]' '[:lower:]' | sed s/\.local// | sed s/\.site// | sed s/\.lan//`_profile
if [ -f ~/"$hostspecific" ]
then
. ~/"$hostspecific"
fi
export PATH=~/bin:$PATH
export EMAIL="iain@soulflyer.co.uk"
| true |
9ca371a9bbd3ae912387d3b225f99a2b7142c3f4 | Shell | kaby76/java-parser-test | /clone-jdk.sh | UTF-8 | 613 | 3.125 | 3 | [] | no_license | #
curDir=`pwd`
case "$var" in
*\ * )
echo "You cannot use this script on a path that contains spaces."
echo "The build scripts for OpenJDK are fucked up."
exit 1
;;
*)
;;
esac
hg version
retVal=$?
if [ $retVal -ne 0 ]
then
echo "Whoops. Mecurial (hg) not working."
echo 1
fi
# https://github.com/openj... | true |
6ce31d380f06e0469ee5bed3ffa156941c7b2bb6 | Shell | nyancat18/ffmultitrack | /run.sh | UTF-8 | 1,375 | 2.71875 | 3 | [] | no_license | #!/bin/bash
echo "Please add source video file"
read svideo
echo "Please add source audio file, id 1"
read saudio1
echo "Please add source audio file, id 2"
read saudio2
echo "Please add source audio file, id 3"
read saudio3
echo "Please add source audio file, id 4"
read saudio4
echo "Please add source audio fil... | true |
dbe1f28de85fcbe38ffea5fd7d598d7816265a15 | Shell | jlank/dotfiles | /.extra | UTF-8 | 107 | 2.578125 | 3 | [] | no_license | #!/bin/bash
if [ -a ~/.nvm/nvm.sh ]
then
. ~/.nvm/nvm.sh
nvm use default
alias fl="forever list"
fi
| true |
2c6f12ab6ba9c7499a17a8c9004af052456db290 | Shell | belwase/network-admin | /geeknepal/unblock | UTF-8 | 574 | 2.859375 | 3 | [] | no_license | #!/bin/bash
echo "****************************"
echo "* Script by Ashish Belwase *"
echo "* CE - 2011 *"
echo "* www.geeknepal.com *"
echo "****************************"
# This script is used to unblock an ip address .. It takes last two places of ip ad argument 1.
#grep -v -w $1 /home/kubh/ga... | true |
2995fc6e99f51a90685ca433b35adb8b5753c5ef | Shell | wangjianguog/thinkface | /setup.sh | UTF-8 | 1,696 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# need 1 input parameters
if [ $# -ne 1 ]; then
echo "Usage: $0 <IMAGE_TAG>"
exit
fi
DATA_DIR=$PWD/rs-fast-60001
DB_PASSWORD=123456
RS_VERSION=10.120.17.37:5000/rs-server-fast:$1
RS_SERVER_NAME=rs-server-60001
RS_DB_NAME=rs-db-60001
RS_SERVER_PORT=60001
docker stop $RS_SERVER_NAME
docker stop $RS... | true |
b985d7c4de25e92c0797ea247a307c249bd7bb0d | Shell | kitodo/kitodo-contrib | /slub/imageproc/indexer/indexer.sh | UTF-8 | 276 | 3.0625 | 3 | [] | no_license | #!/bin/sh
LOG="/var/log/indexer.log"
LOCK="/var/lock/indexer.lock"
if [ ! -e "$LOCK" ]
then
touch $LOCK
echo -n "START: " >> $LOG
date >> $LOG
php /var/www/process/indexer.php >> $LOG
echo -n "DONE: " >> $LOG
date >> $LOG
echo -e "\n" >> $LOG
rm $LOCK
fi
| true |
75c175db2b14beb9daacdc581573f700a8f8aad4 | Shell | andrebasson44/incremental_backup_system | /files/fileOrDirExists.sh | UTF-8 | 12,790 | 3.96875 | 4 | [] | no_license | #!/bin/bash
#
## @Description: checks whether a directory, either on local or remote host, exists. Remote connection via SSH
# @Requires: supporting script ./files/lsDirSSH.sh
#
# @Parameters: either of the following sets (only) - any other will return an error (non-zero) exit status to the caller
... | true |
6964c42d88a4fa1a26101e4761e1b9c8f5f7ba19 | Shell | qinglangee/nut_code | /bash/bash_setup/link_conf.sh | UTF-8 | 307 | 2.609375 | 3 | [] | no_license | #! /bin/bash
. ./zh_color.sh
. ./init_fun.sh
c_tmux=~/.tmux.conf
c_vim=~/.vimrc
c_oh=~/.oh-my-zsh/myzsh_fix.sh
src_dir=$ZH_NUT/config_linux
ln -s $src_dir/tmux/tmux.conf "$c_tmux"
ln -s $src_dir/vim/vimrc.vim "$c_vim"
ln -s $src_dir/myzsh_fix/myzsh_fix.sh "$c_oh"
ls -l $c_tmux
ls -l $c_vim
ls -l $c_oh
| true |
d8adac900b6e1314985d9086860a2893a895f191 | Shell | izhangzhihao/MachineLearningInAction | /build_my_own_tensorflow.bash | UTF-8 | 957 | 3.125 | 3 | [] | no_license | #!/bin/bash
# check if VirtuelEnv activated
if [ -z "$VIRTUAL_ENV" ]; then
echo "VirtualEnv is not activated"
exit -1
fi
VENV_BIN=$VIRTUAL_ENV/bin
VENV_LIB=$VIRTUAL_ENV/lib
# bazel tf needs these env vars
export PYTHON_BIN_PATH=$VENV_BIN/python
export PYTHON_LIB_PATH=$VENV_LIB/`ls $VENV_LIB | grep python`
raw_cpu_... | true |
fa894230022b5c8ce679f44b5ffb621cebddafbd | Shell | sandeep3045/Redshift_create_cluster | /redshift_main.sh | UTF-8 | 1,881 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#############################################
# Created: Sandeep Sharma
# Date : 20-Jul-2020
#############################################
# ===========================================================================
# Redshift Main script
# Main script call the function and config scripts to perform bel... | true |
93fd658ae68a115c0a618c9b210d4f2f8b5c3125 | Shell | noelforte/localcaddy | /dist/caddyctl | UTF-8 | 2,274 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -euo pipefail
# A bash script for managing caddy in conjunction with launchd
# Adapted from apachectl from the Apache Software Foundation
# Copyright (c) 2020 Noel Forté
# util vars
RESET="\033[0m"
BOLD="\033[1m"
RED="\033[31m"
GREEN="\033[32m"
YELLOW="\033[33m"
BLUE="\033[34m"
ARGV="$@"
# main defi... | true |
c762788e12cea0596a56971b514bb0b0992b4b46 | Shell | luoyuan3316/mhc2flurry | /downloads-generation/data_proteomes/GENERATE.sh | UTF-8 | 3,382 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Download viral, human, and mouse proteomes from Uniprot
#
set -e
set -x
DOWNLOAD_NAME=data_proteomes
SCRATCH_DIR=${TMPDIR-/tmp}/mhc2flurry-downloads-generation
SCRIPT_ABSOLUTE_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")"
SCRIPT_DIR=$(dirname "$SCRIPT_ABSOLUTE_PAT... | true |
ff687c0b9a4636937d0ba21bfb2ebec13c643d67 | Shell | madsnk/deep-masking | /bashscripts/deep.sh | UTF-8 | 3,722 | 2.953125 | 3 | [] | no_license | #First update and install pip, virtualenv etc.
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install pip
export LC_ALL=C
echo 'export LC_ALL=C' >> ~/.bashrc
pip install --upgrade pip
pip install virtualenv
virtualenv -p python3 venv
. venv/bin/activate
pip install jupyter
#Download and install cuda 9.0 ... | true |
8d759e0b5f7cbb96e7d20a2059f90152996334d1 | Shell | delkyd/alfheim_linux-PKGBUILDS | /python2-parsley-git/PKGBUILD | UTF-8 | 707 | 2.578125 | 3 | [] | no_license | # Contributor: Justin Hale <justinhale at ganja.nl>
# Maintainer: Achilleas Pipinellis <axilleas archlinux info>
pkgname=python2-parsley-git
pkgver=r357.d83692a
pkgrel=1
pkgdesc="A parser generator library based on OMeta, and other useful parsing tools."
arch=('any')
url="https://github.com/python-parsley/parsley"
lice... | true |
3bf981bb9c2efc3d90b8ba93b0cf5d990c1afb6a | Shell | jwijenbergh/flamethrower | /ci/install-libuv.sh | UTF-8 | 276 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
VERSION=1.25.0
ARCHIVE="https://github.com/libuv/libuv/archive/v${VERSION}.tar.gz"
set -ex
cd /tmp
wget -O "libuv-${VERSION}.tar.gz" "$ARCHIVE"
tar -xf "libuv-${VERSION}.tar.gz"
cd "libuv-${VERSION}"
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
| true |
471dd9f56b07e5e0552be1f443a0c1fd2f743758 | Shell | dlentz-2460/comp2460proj10 | /timewaster1 | UTF-8 | 158 | 3.390625 | 3 | [] | no_license | #!/bin/bash
# This script counts to 100 and repeats forever.
declare -i i=0
while true
do
echo $i
if [ $i -gt 100 ]
then
i=0
fi
i=i+1
done
| true |
05224d3a11b93b2a42e8a83bda72788994ce1d5d | Shell | AnacondaRecipes/boost-feedstock | /recipe/install-py-boost.sh | UTF-8 | 1,111 | 3.140625 | 3 | [
"BSD-3-Clause",
"BSL-1.0"
] | permissive | #!/bin/bash
set -x -e
# remove any old builds of the python target
./b2 -q -d+2 --with-python --clean
for PY_VER2 in 3.6 3.7 3.8; do
./b2 -q -d+2 \
--with-python \
python=${PY_VER} \
--reconfigure \
-j${CPU_COUNT} \
cxxflags="${CXXFLAGS} -Wno-deprecated-declarations" \
... | true |
ab2010b45ee87f56953d574c741f0446eca2009a | Shell | haracane/shell-tools | /rc/util.sh | UTF-8 | 843 | 4.09375 | 4 | [] | no_license | alias ll="ls -l"
function alias-if-not-found() {
name=$1
cmd=$2
if ! which $name > /dev/null; then
alias $name="$cmd"
fi
}
function alias-if-exists() {
name=$1
cmd=$2
if which $cmd > /dev/null; then
alias $name="$cmd"
fi
}
alias-if-exists sed gsed
alias-if-not-found tac "tail -r"
function find... | true |
9959788edbdffc64aa5bf2d9a48fc81f64ced081 | Shell | jenhantao/denovoMutPipeline | /pipe_grouped.sh | UTF-8 | 1,140 | 3.5 | 4 | [] | no_license | #! bin/bash
# Basic pipeline for alingment and variant calling from a single bam containing paired end reads
# Arg1 = project name
# Arg2 = short name - for naming files if the bamfilename is long (optional)
# Initialize environment variables from config file
source config/ngs.conf
# Get filename and filepath from ... | true |
d2f4534ae44c2cea3324adf08e6ce6ef8c59cd4d | Shell | cmccabe/binaries | /download-all.sh | UTF-8 | 1,127 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
die() {
echo $@
exit 1
}
wget_if_missing() {
url=$1
base="`basename $url`"
if [ -e "./$base" ]; then
:
else
wget "$url" || die "failed to download $url"
fi
}
which wget &> /dev/null || die "you must install wget"
script_dir="`dirname $0`"
cd "$script_d... | true |
891f553efa2b09b69cc7cc8a403700ce3707d608 | Shell | 17480837/translatewiki | /bin/export-by-prefix | UTF-8 | 837 | 3.203125 | 3 | [] | no_license | #!/bin/bash
set -e
# Script requires 4 parameters.
if [ $# -ne 4 ]
then
echo "This script requires 4 parameters: resource dir, project, target folder, group."
exit 1
fi
# Parameters and locations.
WIKI=/srv/mediawiki/targets/production
DIR="$1"
EXPORTER=$WIKI/extensions/Translate/scripts/export.php
GROUP="$4"
HOURS... | true |
c9a636f3b001d880930efcd875b1f3f06e542ee6 | Shell | pashadag/Tools | /monproc | UTF-8 | 123 | 2.515625 | 3 | [] | no_license | #!/bin/bash
proc=$1
delay=$2
while :
do
ps aux | grep pashadag | grep $1 | grep -v grep | grep -v $0
sleep $delay
done
| true |
7784e9528efb6ee15f9adf057a752b752c027286 | Shell | Dhtu/Wisteria | /bin/start_eBPF | UTF-8 | 469 | 2.828125 | 3 | [] | no_license | #!/usr/bin/bash
FILE=/sys/fs/bpf/$1
if [ $(printf '\1' | od -dAn) -eq 1 ]; then
HOST_ENDIAN_CMD=tac
else
HOST_ENDIAN_CMD=cat
fi
NS_ID_HEX="$(printf '%016x' $(stat -Lc '%i' /proc/self/ns/mnt) | sed 's/.\{2\}/&\n/g' | $HOST_ENDIAN_CMD)"
bpftool map update pinned $FILE key hex $NS_ID_HEX value hex 00 00 00 00 any
cd... | true |
3d615bc83a8eca1dac3585482f1181b59f49ea5a | Shell | F1o0T/FirmwareScanner | /extracted/_moxa-v1.11.rom.extracted/squashfs-root-0/local/rc.bootp | UTF-8 | 8,857 | 3.578125 | 4 | [] | no_license | #!/bin/sh
#
# Copyright (c) University of Cambridge, 1993-1996
# See the file NOTICE for conditions of use and distribution.
#
# Written to simply set the IP stuff up from the
# bootpc data.
#
# Last updated : Mon Sep 23 16:18:30 1996
# Jon Peatfield
#
# with modifications as suggested by Austin Donnelly, Chris Hall... | true |
0678074c24b4921c6b27e7398e02797966eeed5a | Shell | esquilo-azul/redmine_installer | /sub/taskeiro/lib/speaker.sh | UTF-8 | 829 | 3.578125 | 4 | [] | no_license | # https://misc.flogisoft.com/bash/tip_colors_and_formatting
export FG_CYAN='\e[36m'
export FG_LGREEN='\e[92m'
export FG_LRED='\e[91m'
export FG_LYELLOW='\e[93m'
export FG_LBLUE='\e[94m'
export BG_RED='\e[41m'
export NC='\033[0m' # No Color
function _outerr() {
local first=1
for value in "$@"; do
if [ -n "$firs... | true |
98139129603b1a03eb27bc1d5747df5b1fd3c0f8 | Shell | davetgerrard/phenoTree | /scripts/createBwOnFiles.sh | UTF-8 | 1,147 | 3.25 | 3 | [] | no_license | #!/bin/bash
###################################################
#
# Dave Gerrard, University of Manchester
# 2011
#
###################################################
F=$1
#START_DIR=`pwd`
TOP_DIR=`pwd`
DATA_DIR="$TOP_DIR/data"
#ANALYSIS="binCounts"
OUTPUT_DIR="$DATA_DIR/bigwig_files"
SCRIPT_DIR="$TOP_DI... | true |
a29d967ae0baed9cce84608a992818e06963adf7 | Shell | mhocouchbase/build | /scripts/jenkins/system_test/build-sanity/run_sanity.sh | UTF-8 | 3,858 | 3.46875 | 3 | [] | no_license | #!/bin/bash
SERVICES="kv,index,n1ql,fts"
CBAS_SERVICES="kv,cbas"
if [[ $VERSION == 4.1* ]] || [[ $VERSION == 4.0* ]]; then
SERVICES="kv,index,n1ql"
fi
install_only="no"
if [ "$1" = "-i" ]; then
install_only="yes"
fi
read -a node_list <<< $NODE_IPS
num_nodes=${#node_list[@]}
USER=root
PASSWORD=couchbase
TR_... | true |
1bb1fe964250bcf47654d6fdd1841b3939624cd5 | Shell | vikas-lamba/doc-ci | /travis/travis.sh | UTF-8 | 2,313 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash -e
#
# From the GitHub repository:
# https://github.com/openSUSE/doc-ci
#
# License: MIT
#
# Written by Thomas Schraitle
VERSION="v0.9.0"
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[33;1m'
NC='\033[0m' # No Color
URI='http://www.oasis-open.org/docbook/xml/4.5/dbcentx.mod'
# -------------------------... | true |
839c33aee80f76c6889382ba0b8f47f2e8ce6e1d | Shell | jomofrodo/ccb-php | /_lib/_todos3.0/_admin/lib_sql/diffProd | UTF-8 | 855 | 3.28125 | 3 | [] | no_license | #!/bin/sh
## To get the diff between the dev server and the production server
echo "Moving the updates file to the archive"
cat sql_update.sql >> sql_archive.sql
echo " Moving sql_DB.sql to backup"
mv sql_DB.sql sql_DB.1.sql
echo "Getting latest version of sql_DB from CVS"
cvs update sql_DB.sql
echo "Dumping the ... | true |
133f85492695924d1027c33313cdf9c5738d63b3 | Shell | ggruszczynski/TCLB_cluster | /exec.configure | UTF-8 | 734 | 3.21875 | 3 | [] | no_license | #!/bin/bash
PP=$(dirname $0)
source $PP/conf.ini
if test "$RUN_SINGULARITY" == "y"
then
srun $SINGULARITY_COMMAND make configure
srun $SINGULARITY_COMMAND ./configure "$@"
else
srun /bin/bash -l << EOF
echo "###### Nodes: #######"
hostname
echo "###### Loading modules #######"
... | true |
bbd378aac35799c90b43d6856c057a5271e5346d | Shell | limweb/webappservice | /public8004/manager.sh | UTF-8 | 373 | 2.921875 | 3 | [] | no_license | #!/bin/sh
# filename: manager.sh
# * * * * * sh /home/ebrueggeman/manager.sh
PROCESSORS=5;
x=0
while [ "$x" -lt "$PROCESSORS" ];
do
PROCESS_COUNT=`pgrep -f process.php | wc -l`
if [ $PROCESS_COUNT -ge $PROCESSORS ]; then
exit 0
fi
x=`expr $x + 1`
... | true |
cba8c2f7b45168cb704041e78325a820c22be6ef | Shell | jupiter126/adventofcodehorror | /2020/03/solution_02.sh | UTF-8 | 1,836 | 3.140625 | 3 | [
"BSD-2-Clause"
] | permissive | #removed first line of input.txt to make it work
x=1
# Right 1, down 1.
trees1=0
while IFS= read -r; do
if [[ "$x" = 31 ]]; then x=1;
else x=$((x+1))
fi
istree=$(echo $REPLY| head -c "$x" | tail -c 1)
if [[ "$istree" = "#" ]]; then
trees1=$((trees1+1))
fi
done <input.txt
echo $trees1
# Right 3, down 1.... | true |
2e1601020d9ec1a360f07011d55145e98d13a74c | Shell | MarcinOrlowski/deb-test | /tests/test-config_file_116-rejection_text_tls_failure/run.sh | UTF-8 | 1,259 | 3.015625 | 3 | [] | no_license | # This test attempts to start an SMTPS session but corrupts the
# TLS data and looks for a spamdyke rejection.
echo "rejection-text-tls-failure=Foo Bar Baz" >> ${TMPDIR}/${TEST_NUM}-config.txt
echo "tls-level=smtp" >> ${TMPDIR}/${TEST_NUM}-config.txt
echo "tls-certificate-file=${CERTDIR}/combined_no_passphrase/server.... | true |
655bdf37ab02800bc3144e4a0d2dc79d508eee12 | Shell | ericmeyers12/Scratch-OS | /debug.sh | UTF-8 | 448 | 2.734375 | 3 | [] | no_license | #!/bin/sh
if [ -d /mnt/tmpdir ]; then
rm -rf /mnt/tmpdir
fi
if [ -d /tmp/dir ]; then
rm -rf /tmp/dir
fi
mkdir /mnt/tmpdir
mkdir /tmp/dir
cp ./bootimg /tmp/dir/
cp ./filesys_img /tmp/dir/
cp ./scratch-os.img /tmp/dir/
mount -o loop,offset=1048576 /tmp/dir/scratch-os.img /mnt/tmpdir
cp -f /tmp/dir/bootimg /mnt/tmpdir/... | true |
44d77ef8bfc11e0f7a173dee6b4b067183e42d39 | Shell | vshelton/acsfiles | /binfiles/newer_than | UTF-8 | 268 | 3.03125 | 3 | [] | no_license | #!/usr/bin/env zsh
# Print the number of files under the current directory
# newer than the specified file
emulate -LR zsh
new_files=( $(find_newer $1) )
print ${#new_files}
# Local Variables:
# mode: shell-script
# sh-indentation: 2
# indent-tabs-mode: nil
# End:
| true |
8fdbf31199137c64e794f4b995bd340e99832356 | Shell | eswarak/icpsl | /addslsshkey.sh | UTF-8 | 771 | 4.03125 | 4 | [] | no_license | #!/bin/bash
#This script creates checks and creates a key and adds to Softlayer
if [ $# -lt 2 ]; then
echo "Usage: $0 sshkeyname {true|false}"
exit 1
fi
SLKEY=$1
LOGFILE=/tmp/addslsshkey.log
exec > $LOGFILE 2>&1
#create a ddc key if not present
if [ ! -f ~/.ssh/$SLKEY.rsa ]; then
cd ~/.ssh
ssh-keygen -t rsa -... | true |
ca371f5c0d6517e5e15b46f060175754dc1f7ae6 | Shell | minlite/cronmod-scripts | /discontinued scripts/a2sd scripts/A2SD+ | UTF-8 | 2,529 | 3.296875 | 3 | [] | no_license | #!/system/bin/sh
#################################
## CronMod A2SD+ - Final ##
## Written by CronicCorey @xda ##
## 40a2sd ##
#################################
## Set SD cache size
if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]
then
busybox echo "2048" > /sys/devices/virtual/bdi/179:... | true |
f3bdde5951a6d9e03806261f16e715aabb15afb5 | Shell | mikeFeldman15/JobTracker | /scripts/lint.sh | UTF-8 | 1,888 | 4.125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
PRETTIER_STATUS=0
ESLINT_STATUS=0
if [[ $1 == "--fix" ]]; then
# Warn user that their files may be modified
echo -e "\u001b[31;1mRunning lint checks in --fix mode. This may modify your files!\n"
# Run Prettier in fix mode and store status
echo -e "\033[1;33mRunning Prettier to fix code formatting... | true |
01dd4b1674c380c9a674fa4bfc658b92f542b989 | Shell | drock/scripts | /sync_bash | UTF-8 | 315 | 2.734375 | 3 | [] | no_license | #!/bin/bash
echo "moving to home directory"
cd ~
pwd
echo "cloning git repo to gitbash"
git clone git://github.com/drock/bash_profile gitbash
echo "moving git repo to home directory"
cp -R gitbash/.git ~
echo "checking out working tree"
git checkout -- .
echo "cleaning up gitbash folder"
rm -rf gitbash
echo "done" | true |
2845cb86932ff8c6fa3e61d5683647fbb4b8ccd7 | Shell | the0neWhoKnocks/shell-scripts | /backup.sh | UTF-8 | 263 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if ! type 7z &> /dev/null; then
echo "Installing 7zip since it's not currently installed"
brew install p7zip
fi
ZIP_FILE_NAME="$HOME/Desktop/$(date +"%Y-%m-%d_%H-%M-%S")_user-data.zip"
(cd $HOME && 7z a "$ZIP_FILE_NAME" -p "$@" -x'!*.DS_Store')
| true |
1ce5e35c473693175ede785dbcc7f3cd0c643fb9 | Shell | aperz/dotfiles | /zshrc | UTF-8 | 9,187 | 2.921875 | 3 | [] | no_license | # If you come from bash you might have to change your $PATH.
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$PATH
# Path to your oh-my-zsh installation.
# export ZSH=$HOME"/Dotfiles/oh-my-zsh"
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme ea... | true |
9fb73ba9c70c2c7eafade0237605d9c070f5ebb7 | Shell | shunsunsun/ftp.kaist.ac.kr | /bin/get.ftp.wget | UTF-8 | 642 | 3.609375 | 4 | [] | no_license | #!/usr/bin/env bash
# get.ftp.wget -- FTP/HTTP driver (implemented with wget)
#
# Created: 2006-04-12
#
# Written by Jaeho Shin <netj@sparcs.org>.
# (C) 2006, Geoul Project. (http://ftp.kaist.ac.kr/geoul)
set -e
# parse arguments
notrailingslash() { echo "$1" | sed -e 's:/*$::'; }
url=`notrailingslash "$1"` dest=`no... | true |
f6d6cc8fed60cc166ffb2bf377c065b7778abd62 | Shell | noahfriedman/bin-share | /apropos-command | UTF-8 | 2,094 | 3.234375 | 3 | [] | no_license | #! /bin/sh
# apropos-command --- display list of commands in path matching pattern
# Author: Noah Friedman <friedman@splode.com>
# Created: 1997-05-27
# Public domain.
# $Id: apropos-command,v 1.4 2000/01/14 11:56:34 friedman Exp $
# Reinvoke with perl if available.
{ ${PERL-perl} -v; } > /dev/null 2>&1 && exec ${PER... | true |
c208681f87954c9219287c43ba20277127ac4b9d | Shell | Jeckerson/phpbench | /.travis/before-deploy-gh-release.sh | UTF-8 | 397 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# set -x
export PATH=.:$PATH
# Travis won't deploy ignored files
sed -ie '/^\/phpbench.phar*/d' .gitignore
# Install PHAR dependencies and remove strip other dev deps.
rm -Rf ./vendor
rm -f composer.lock
composer install --no-dev -o
wget https://github.com/box-project/box/releases/download/3.8.5/box.ph... | true |
39b5e36bb386d94642cf128741a6c4a2bb3044d7 | Shell | akinomyoga/ble.sh | /src/util.sh | UTF-8 | 245,754 | 3.390625 | 3 | [
"BSD-3-Clause"
] | permissive | # -*- mode: sh; mode: sh-bash -*-
# bash script to be sourced from interactive shell
#------------------------------------------------------------------------------
# ble.sh options
function bleopt/.read-arguments/process-option {
local name=$1
case $name in
(help)
flags=H$flags ;;
(color|color=always)
... | true |
d546870c16553672f3cc3724587c591c29fbe7fc | Shell | sanjeevik89/fast-data | /deploy | UTF-8 | 2,084 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
. env.sh
: ${TIMEOUT=2}
: ${IP_ADDRESS=$(hostname -I | awk '{split($0, a, " "); print a[1]}')}
: ${ADVERTISED_LISTENERS="PLAINTEXT://$IP_ADDRESS:9092"}
docker run -d --name zookeeper -p 2181:2181 zookeeper
sleep $TIMEOUT
docker run -d --name kafka --link zookeeper:zookeeper -p 9092:9092 -e ADVERTISED_LIS... | true |
fae4c9ba2a8417789d61ba8e5bcec4486081eaac | Shell | gemforce-team/gemsmith | /recipes/recipe_packer.sh | UTF-8 | 342 | 2.953125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
gem_recipes_repo='../../gem-recipes'
zipfolder='Gemforce recipes'
rm -rf "${zipfolder}"
mkdir "${zipfolder}"
for folder in ${gem_recipes_repo}/{leech,crit,gcfw/bleed}-combine; do
cp -r ${folder} "${zipfolder}"
done
cp Instructions.txt "${zipfolder}"
zip -r Gemforce.recipes.zip "${zipfolder}"
... | true |
79b99de08525561e6f765e09ca36c80a7e56e00b | Shell | wolfogre/st | /func/install-go.sh | UTF-8 | 1,635 | 3.71875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#install various version of golang
set -e
curl -s https://raw.githubusercontent.com/golang/go/master/doc/devel/release.html | grep -o "go[0-9.]* (released [0-9]*/[0-9]*/[0-9]*)" | tr ")" " " | awk '{ print $1,$3 }' | sort -k 2 | awk '{ print NR,$1,$2,"\t" }' | column -t
read -p "Please input version(like'1... | true |
54763b63c5428732d5695cbec53a518cbad27a87 | Shell | g-koutsou/CoS-2 | /Optim/Ex/Lapl-3D/sub-C.job | UTF-8 | 346 | 2.59375 | 3 | [] | no_license | #!/bin/bash
#SBATCH -J lapl-C
#SBATCH -N 1
#SBATCH -o C-%j.out
#SBATCH -e C-%j.err
module load intel-para
L=256
for omp in 1 2 4 8 16; do
export OMP_NUM_THREADS=$omp
srun -n 1 --cpus-per-task=$omp ./lapl-vect $L > vect-nomp${omp}.txt
done
for omp in 1 2 4 8 16; do
echo $omp $(grep 'lapl()' vect-nomp${om... | true |
7d49fa2ef0f88480481ef32d1fda76aa6b7a1a26 | Shell | JCSDA/crtm | /src/Coefficients/TauCoeff/TauCoeff_Generation/Shell_Scripts/cat_airs_stat.sh | UTF-8 | 450 | 2.609375 | 3 | [
"CC0-1.0",
"LicenseRef-scancode-public-domain-disclaimer"
] | permissive | DIR_STAT=/disk5/pub/yhan/TransCoeff_work_test3/statistics/stat
tag_list="M12 M11 M10 M9 M8 M7 M6 M5 M4d M4c M3 M4b M4a M2b M1b M2a M1a"
prof_set=umbc48101
for gas in wet dry ozo;do
outFile=$DIR_STAT/stat.airs_aqua.${gas}.varyingOrder.${prof_set}.txt
rm -f $outFile
for tag in $tag_list;do
fi... | true |
496f41ab838e1e541fdafcdbfb5310cd2217920b | Shell | jessfraz/scripts | /build_library/prod_image_util.sh | UTF-8 | 5,153 | 3.84375 | 4 | [
"BSD-3-Clause"
] | permissive | # Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Copyright (c) 2013 The CoreOS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Lookup the current version of a binary package, downloading it if needed.
# Usage: get... | true |
fa268bb65c402c40542448960a84cb8b9e6f5fef | Shell | espnet/espnet | /egs/vcc20/tts1_en_fi/local/data_prep_css10_fi.sh | UTF-8 | 1,279 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
# Copyright 2020 Nagoya University (Wen-Chin Huang)
# Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
. utils/parse_options.sh || exit 1
db=$1
data_dir=$2
lang=$3
spk=$4
trans_type=char
# check arguments
if [ $# != 4 ]; then
echo "Usage: $0 <db> <data_dir> <lang> <spk>"
... | true |
5df51a4edc294c9d7a8bb11758cfd8341a768880 | Shell | kishansagathiya/ipfs-cluster | /sharness/t0052-service-state-export.sh | UTF-8 | 803 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
test_description="Test service state export"
. lib/test-lib.sh
test_ipfs_init
test_cluster_init
test_expect_success IPFS,CLUSTER "state export fails without snapshots" '
cluster_kill &&
sleep 5 &&
test_expect_code 1 ipfs-cluster-service --debug --config "test-config" state export
'
test_cl... | true |
8db4527909363cf82bc7d75b1c9f248eb4c5edcc | Shell | easonboy/shell_scripts | /install_mysql_2018.sh | UTF-8 | 3,011 | 3.765625 | 4 | [] | no_license | #!/bin/bash
mysql_menu() {
cat <<EOF
Please select mysql verson
----------------------------------
1.[mysql_5.5.60]
2.[mysql_5.6.40]
3.[exit]
-----------------------------------
EOF
}
get_repo() {
ls /etc/yum.repos.d/epel.repo &>/dev/null
if [ $? -ne 0 ];then
s=`rpm -qa wget`
[ -z "$s" ] && yum... | true |
adf1fc33adce57bf3541221cc18e4607b3a0642b | Shell | RTimothyEdwards/qflow | /configure.in | UTF-8 | 11,695 | 2.65625 | 3 | [] | no_license | #!/bin/sh
AC_INIT(VERSION,, eda-dev@opencircuitdesign.com)
AC_PREREQ(2.60)
AC_CONFIG_SRCDIR([Makefile.in])
# Determine the host and build type.
# ===========================================================================
AC_CANONICAL_HOST
PACKAGE=qflow
VERSION=`cat ./VERSION | cut -d. -f1-2`
REVISION=`cat ./VERSION... | true |
334e273c903127534424f95feb857a0e105f3c4d | Shell | kiowa-scott-hurley/ARDC-ML | /ai-benchmark/p100_benchmark.sh | UTF-8 | 844 | 2.609375 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=p100benchmark
#SBATCH --array=1-7
#SBATCH --mem=64G
#SBATCH --gres=gpu:1
#SBATCH --time=00:30:00
#SBATCH --output=./p100_benchmark_results/slurm%j.out
#SBATCH --error=slurm%j.err
#SBATCH --partition=m3h
############################ EDIT YOUR FILE PATH HERE ###############################... | true |
f7fa10221639be1bb1f29f12b118f8f218071291 | Shell | dotelpenguin/wwiv | /install/platform/unix/bin/daily-cleanup.sh | UTF-8 | 232 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Daily cleanup jobs
#
source /etc/wwiv/config
cd ${WWIV_DIR}
# BBS daily maintenance
echo "$(date '+%Y/%m/%d %H:%M:%S'): Running BBS daily Maintenance"
./bbs -e
# Put other daily events here (TW2002, for example)
| true |
db30739165dc0bfe0b1ae75eaebc48d76e0c1a5e | Shell | jrl-umi3218/mc_rtc | /utils/config_build_and_install.trusty.sh | UTF-8 | 2,179 | 2.828125 | 3 | [
"Qhull",
"MIT",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | export ROS_DISTRO=indigo
export APT_DEPENDENCIES="wget cmake build-essential gfortran doxygen software-properties-common cython python-pip python-coverage python-numpy python-pytest libtinyxml2-dev libboost-all-dev libgeos++-dev libgeos-dev libltdl-dev python-enum34 python-git qt4-default python-matplotlib ninja-build ... | true |
ec202cd311c7d71f78ac629c4cb6d486b444a697 | Shell | Muhimbi/PDF-Converter-Services | /Java/Convert and Merge/run.sh | UTF-8 | 389 | 3.203125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
JAVA_VERSION=$(java -version 2>&1)
if [[ $JAVA_VERSION == *'"1.'* ]];
then
# Java version < 9.0
ADD_MODULES=""
else
# Java version >= 9.0
ADD_MODULES="--add-modules java.xml.ws"
fi
sourceName=$1 $2 $3 $4
if [ -z "$1" ]
then
sourceName="File1.docx File2.docx"
fi
java... | true |
da3471d29ef0f6c8d23056976728e1de3bef5346 | Shell | ovrclk/disco | /sanity/sanity.sh | UTF-8 | 3,547 | 4.0625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
PROGRAM="akash-sanity"
cachedir="$(mktemp -d -t ${PROGRAM}-XXXXXX)"
pvcfile=pvc.yml
podfile=pod.yml
namespace="${PROGRAM}-$(date +%s)"
function run() {
set -o nounset
set -o errexit
set -o pipefail
trap finish EXIT
abort_if_missing_command "kubectl" "kubectl missing"
abort_if_missin... | true |
ed07e70cceece478634dc5ae9497ef58d342b0bd | Shell | zchee/zsh-default-completions | /src/Unix/Command/_beep | UTF-8 | 1,639 | 3.640625 | 4 | [] | no_license | #compdef beep
# beep [--verbose | --debug] [-e device | --device device] [-f N] [-l N]
# [-r N] [-d N] [-D N] [-s] [-c]
# beep [ OPTIONS ] [-n] [--new] [ OPTIONS ]
# beep [-h] [--help]
# beep [-v] [-V] [--version]
# We support the -n/--new restart flag, when it is in its own word, by
# stripping all words from... | true |
734847bcb062f806763358dc6d71535257136fe1 | Shell | akesterson/perftests | /sortstrings/testsh.sh | UTF-8 | 214 | 2.984375 | 3 | [] | no_license | #!/bin/bash
source stringlist.sh
start=$(date +%s%N | cut -b1-13)
stringlist=( $(echo ${stringlist[*]}) )
end=$(date +%s%N | cut -b1-13)
echo "Over ${#stringlist[@]} elements : $(expr $end - $start) milliseconds" | true |
99d3713060b79bc3ebcc6b41432b5dd48fe58e8e | Shell | StefanScherer/docker-chocolatey | /update.sh | UTF-8 | 1,160 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ "$1" = "" ]; then
echo "Usage: $0 version"
echo "Update the choco package to a given version"
echo "Example: $0 17.06.0-ce"
exit 1
fi
if [[ "${OSTYPE}" != "darwin"* && "${OSTYPE}" != "linux-gnu"* ]]; then
echo "This version support Mac and Windows Subsystem for Linux"
exit 2
fi
version=$... | true |
105011d3e60d36a5fd2af6f0a5d753fb31f57e01 | Shell | petronny/aur3-mirror | /mingw32-boost/PKGBUILD | UTF-8 | 1,737 | 3.109375 | 3 | [] | no_license | # Maintainer: Adam Nielsen <malvineous@shikadi.net>
# Based on mingw32-boost-static
pkgname=mingw32-boost
pkgver=1.50.0
_boostver=${pkgver//./_}
pkgrel=1
pkgdesc="Free peer-reviewed portable C++ source libraries (mingw32)"
arch=(any)
_arch_target=i486-mingw32
url="http://www.boost.org/"
license=('custom')
provides=('m... | true |
eed4eeafc568d0d52c09f11b593a7bfe4425e44a | Shell | CaioMatias/dotfiles | /lib/tools | UTF-8 | 771 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
run_tools() {
if ! type_exists 'push'; then
e_process "Installing git-friendly"
sudo curl -sS https://raw.githubusercontent.com/jamiew/git-friendly/master/install.sh | bash
fi
if ! type_exists 'pygmentize'; then
e_process "Installing pygments"
sudo easy_install Pygments
fi
e_process ... | true |
2877f586993316813accbdae73d10876fa49cd99 | Shell | logsearch/logsearch-boshrelease | /jobs/queue/templates/bin/redis_ctl | UTF-8 | 744 | 3.421875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -e # exit immediately if a simple command exits with a non-zero status
set -u # report the usage of uninitialized variables
# Setup env vars and folders for the webapp_ctl script
source /var/vcap/jobs/queue/helpers/ctl_setup.sh 'queue'
export LANG=en_US.UTF-8
case $1 in
start)
pid_guard $PIDF... | true |
40370ce049d96bbe3e524542b62db1d32499c988 | Shell | kmcq/dotfiles | /dot_zsh/prompt.zsh | UTF-8 | 1,755 | 3.5 | 4 | [] | no_license | autoload colors && colors
# cheers, @ehrenmurdick
# http://github.com/ehrenmurdick/config/blob/master/zsh/prompt.zsh
# Add a newline after each command
precmd() { print "" }
if (( $+commands[git] )); then
git="$commands[git]"
else
git="/usr/bin/git"
fi
git_branch() {
branch=$(git symbolic-ref --short HEAD 2> /... | true |
d6d99dc34b3859c080555052e0e001c3bbc7f59f | Shell | pieterb/BeeHub | /scripts/check_php.sh | UTF-8 | 536 | 2.625 | 3 | [] | no_license | #!/bin/bash
cd $(dirname "${BASH_SOURCE[0]}")
cd ../src
echo 'url(en/de)code instead of rawurl(en/de)code:'
grep -P '\burl(en|de)code\b' *.php
[ $? -eq 0 ] || echo OK
echo
echo 'DAV::$REGISTRY instead of BeeHub_Registry::inst():'
grep -P 'DAV::\$REGISTRY' *.php
[ $? -eq 0 ] || echo OK
echo
echo 'htmlspecialchars()/... | true |
f79eb979f4d597925d7dffcb668e67e0c4980554 | Shell | jfrog/artifactory-scripts | /docker/localize-repo.sh | UTF-8 | 6,879 | 4.125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
registry=
name=fedora
destination=
tag=
destinationUserName=
noUpdate=false
forceUpdate=false
localRepoName=
prefix=my
flavor=
artifactoryRoot=
ubuntuUrl=
centosUrl=
fedoraUrl=
debianUrl=
suseUrl=
[ -x ~/.jfrog/docker.rc ] && . ~/.jfrog/docker.rc
help(){
cat <<EOF
Localize a docker repository ... | true |
01542746dedeeca3bbfd55f3d6e80ecb803a1303 | Shell | BurntSushi/dotfiles | /bin/video-slice | UTF-8 | 875 | 3.796875 | 4 | [] | no_license | #!/bin/sh
usage() {
echo "Usage: $(basename "$0") [ --accurate ] <start> <end> <input> [<output>]"
}
accurate=
while true; do
case "$1" in
--accurate) accurate=1 && shift ;;
-h|--help)
usage
exit 0
;;
-*)
usage >&2
exit 1
;;
*) break ;;
esac
done
start="$1"
e... | true |
c6e1461516d5daea5c00c0bba1de391a013b4eba | Shell | stamen/maptcha-v2 | /edit_ui/yotb_sean.sh | UTF-8 | 1,655 | 3.484375 | 3 | [
"ISC"
] | permissive | #!/bin/bash
# SEE ALSO: http://gunicorn.org/
# To make sure this runs at startup, do:
# update-rc.d tilestache-gunicorn.sh defaults
# Source the correct virtual environment
source /home/seanc/venvs/yotb/bin/activate
ADDRESS=0.0.0.0:8080
DIRNAME=/var/www/com.stamen.studio/yearofthebay/show/recent/edit_ui
PIDFILE="y... | true |
aa957b57dea48af395624029bc3cf315d17b7984 | Shell | klpdotorg/KLPMisc | /daily_deo_report/one_off_deo_rep.sh | UTF-8 | 416 | 2.640625 | 3 | [] | no_license | #!/bin/sh
#While using this script, make sure you change the date ranges appropriately
cd /home/klp/ems-production
echo 'Start of DEOHistory process'
python manage.py KLP_DEOHistoryquery 21/07/2013 20/08/2013 oneoff_report_2107_to_2008
echo 'End of DEOHistory process'
sleep 600
../daily_deo_report/one_off_deo_rep.py ... | true |
7ebf30a79e9ecc4af5fc5d75ffc1843caae06a45 | Shell | roguerouter/virl-utils | /kali-install.sh | UTF-8 | 3,522 | 3.90625 | 4 | [
"ISC"
] | permissive | #!/bin/bash
# *** updated on Oct 10, 2016
# Questions about this script or if you found a bug
# please notify alegalle@cisco.com or send a note to ciscovirl@cisco.com
# ***
#
# This script will:
# 1.) install and reconfigure cloud-init to work only with ConfigDrive data source
# 2.) ensure rc-local.service will run af... | true |
4a5f315b807456caff178a1d52a1cb5127903957 | Shell | delkyd/alfheim_linux-PKGBUILDS | /webdis/PKGBUILD | UTF-8 | 1,124 | 2.546875 | 3 | [] | no_license | # Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: pandan <predrg@gmail.com>
pkgname=webdis
pkgver=0.1.1
pkgrel=1
pkgdesc='REST server for Redis data'
arch=('x86_64' 'i686')
url='http://webd.is/'
license=('BSD')
depends=('redis' 'libevent' 'jansson')
makedepends=('git')
install='webdis.install'
source=... | true |
b16e94dc7ed589b86b5c667340f3a0218a8ea60e | Shell | tunghoang290780/HetSim-gem5 | /scripts/build-gem5.sh | UTF-8 | 770 | 3.484375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# -*- tab-width: 4; encoding: utf-8; -*-
## @author Subhankar Pal
## @brief Convenience script to build gem5
## @version 1.0
FLAVOR=opt
ROOTDIR=`pwd`/..
CPUTYPE=TimingSimpleCPU
VERBOSE=${VERBOSE:-1}
source $ROOTDIR/scripts/init.sh
cd $ROOTDIR/gem5
info "Starting gem5 build for $CPUTYPE"
scons_cmd="scons... | true |
273b10c8737547f32abe2f436ff52f374e968ec4 | Shell | adturpin/TripAgency | /pipeline/scripts/3_quality/generate_living_documentation.sh | UTF-8 | 3,798 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
################################################################################
# generate_living_documentation.sh #
# #
# This script goal is to generate the living documentation of the... | true |
3b23e89a9961dd340a7512994480ca3d5780bd54 | Shell | davidgarvey/misc_scripts | /auto_ssh.sh | UTF-8 | 404 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# Auto reconnect ssh tunnel with keepalive
# Create a tunnel to remote port 8888 that can be accessed via localhost port 8888
while [ true ]; do
echo Opening SSH session
ssh -o ServerAliveInterval=1 -o ServerAliveCountMax=30 -i ~<home directory>/.ssh/id_rsa -t -L 8888:localhost:8888 <username>@<ssh... | true |
e54ce4670a523b42638b2544121834550bf7a1b0 | Shell | sidcarter/k8s-sylvester | /test_scripts.sh | UTF-8 | 170 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
set -o pipefail
while IFS= read -r -d '' file
do
echo "${file}"
shellcheck "${file}"
done < <(find . -type f -name '*.sh' -print0)
| true |
5a6c6a207b06ada2726e1dd72832a5723c5558c0 | Shell | silasanderson/dotfiles | /.w3m/root-cgi-bin/restore_tab.cgi | UTF-8 | 1,172 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env sh
### __ _ _
### / _| ___| (_)_ __ ___ ___ __ _ __ _
###| |_ / _ \ | | '_ \ / _ \/ __|/ _` |/ _` |
###| _| __/ | | |_) | __/\__ \ (_| | (_| |
###|_| \___|_|_| .__/ \___||___/\__,_|\__,_|
### |_|
### https://github.c... | true |
75ea5c09a7cc1b33a852d907ece492f447cc797f | Shell | Ashraf0502072/Coursera_Project_Guessing_Game | /guessinggame.sh | UTF-8 | 1,582 | 4.1875 | 4 | [] | no_license | <<<<<<< ab99604f3733efa1a706000945b8ea9ff66b5c52
#!/usr/bin/env bash
# File: test9.sh
#Function declaration
#The function finds the number of the files in the directory and returns the answer
#in a variable filenum
function file_num
{
local filenum=$(find . -maxdepth 1 -exec echo \; | wc -l)
echo $filenum
=======
... | true |
7c38477de406f0bbf404c29656cc5cbbc5441d46 | Shell | dawnbreaks/taomee | /hadoop/game-report/eqin/jobscheduler_v2/cpPathToDB | UTF-8 | 738 | 3.21875 | 3 | [] | no_license | #!/bin/sh
. /etc/profile
if [ $# -ne 2 ] ; then
echo "Usage $0 project job"
exit
fi
echo "start loading data to db"
PROJECT=$1;
JOB=$2;
DAY=$(date +%Y%m%d --date='1 days ago')
echo $DAY;
HDFSFILE="result/${PROJECT}/${DAY}/${JOB}/"
DAY=$(date +%Y-%m-%d --date='1 days ago')
REMOTE_EXEC_SQL="mysql -uroot -pta0me... | true |
268a39b0e389a003c0d79f3620f2278559ba2f0a | Shell | intelsdi-x/runv | /hack/test-cmd.sh | UTF-8 | 554 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# This command checks that the built commands can function together for
# simple scenarios. It does not require Docker so it can run in travis.
set -o errexit
set -o nounset
set -o pipefail
# prepare kernel and initrd
HYPERSTARTPATH="$GOPATH/src/github.com/hyperhq/hyperstart"
RUNVPATH="$GOPATH/src/githu... | true |
22801d9ac67fcf0a1c04a10a1c49045058f115a6 | Shell | UrsusSalificus/SAGE_2017 | /scripts/bsub_gene_trees_bees.sh | UTF-8 | 888 | 2.84375 | 3 | [] | no_license | #!/usr/bin/env bash
# To use : bsub < ./bsub_gene_trees_bees.sh
# Will use multithread on same host (-n = number of cores, -R = same host)
#BSUB -L /bin/bash
#BSUB -e error_b_gene.txt
#BSUB -J b_gene
#BSUB -n 12
#BSUB –R "span[hosts=1]"
#BSUB -M 40194304
#BSUB -R "rusage[mem=40000]"
module add Phylogeny/raxml/8.2.9;... | true |
528447d243ac4ae9c697eaed5ea0140b8a2ec8ab | Shell | petronny/aur3-mirror | /cracks_and_crevices/PKGBUILD | UTF-8 | 1,040 | 2.78125 | 3 | [] | no_license | # Contributor: Joao Cordeiro <jlcordeiro at gmail dot com>
pkgname=cracks_and_crevices
pkgver=0.5
pkgrel=2
pkgdesc="Graphical ascii roguelike that takes ideas from UnderDark and SRL."
arch=('i686' 'x86_64')
url="https://redmine.bloodycactus.com/projects/sdlrl"
license=('GPL')
depends=('sdl')
source=('https://redmine.b... | true |
885a4eda0ad5460b414a4e3484317aea3030337f | Shell | horngyih/immersion-resload | /general-report.sh | UTF-8 | 1,522 | 3.875 | 4 | [] | no_license | #! /bin/sh
BASEDIR=`dirname $0`;
TARGET_LOG=$1;
TARGET_DATE=$2;
CURR_DIR=$PWD;
TODAY=$(date +%Y-%m-%d);
TODAY_LOG_DATE=$(date +%m-%d);
if [ -z "$TARGET_LOG" ]
then
echo 'Usage : general-report.sh <log-file>';
exit 0;
fi;
FIRST_LOG=`egrep -m 1 "$TODAY_LOG_DATE.+Entering" $TARGET_LOG`;
LAST_LOG=`egrep "$TODA... | true |
6812797c5291640eac064bce5e1e7dbaca93db5a | Shell | jotaki/blasphemy | /profile.d/spawn-job | UTF-8 | 431 | 3.421875 | 3 | [] | no_license | #! /bin/bash
spawn-job() {
local max="$(cat /proc/cpuinfo | grep ^processor | wc -l)"
local i=
if [ "$1" = "-m" ]; then
max="$2"
shift 2
fi
test -n "$max" || exit 1
while [ $# -gt 0 ]; do
i=$max
while [ $i -gt 0 ]; do
test -n "$1" && $1 &
sh... | true |
84713de9b5a4ddda04f3ad63fad2d316d0066a1c | Shell | saad18475/akumocoding | /task2/file1/john | UTF-8 | 123 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# Basic If statement
if [[ -f john ]]
then
mkdir john 2>/dev/null
echo "This directory already exsits"
fi
| true |
69cec2fb38f92988c702fc81dcdbbec59824e484 | Shell | termux/termux-packages | /packages/opencl-vendor-driver/build.sh | UTF-8 | 1,378 | 3 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://termux.dev
TERMUX_PKG_DESCRIPTION="OpenCL driver from system vendor"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=0.3
TERMUX_PKG_RECOMMENDS="binutils | binutils-is-llvm, ocl-icd, patchelf"
TERMUX_PKG_SKIP_SRC_EXTRACT=true
termux_step_make_install() {
e... | true |
5271e7074350bf0cfcffbb594033d0b5c2602ed4 | Shell | ntrhieu89/tpcc_scripts | /smallbank.sh | UTF-8 | 4,148 | 2.90625 | 3 | [] | no_license | #!/bin/bash
base="/proj/BG/yaz/ycsbcache"
bench="/proj/BG/yaz/ycsbcache/oltpbench-wb"
results="/proj/BG/hieun/smallbank"
cache="false"
#nthreads="100"
dbip="h0"
cacheip="h1"
clis=( "h2" "h3" "h4" "h5")
machines=( $dbip $cacheip ${clis[@]} )
echo ${machines[@]}
#exit -1
for cache in "true" "false"
do
for try in 1 2... | true |
a3e51afb3728679fe4323abff4879bbaa8409399 | Shell | ngerakines/wrs | /wrsd/wrsd | UTF-8 | 518 | 2.53125 | 3 | [] | no_license | #!/bin/sh
WORKING_DIR=/var/erlang/wrsdapp
case $1 in
'start' )
erl -detached -boot start_sasl -setcookie wrsdcookie -name wrsdapp@`hostname` +W w +A 1 +Ktrue -eval '[application:start(X) || X <- [inets, wrsd]].'
;;
'stop' )
erl -setcookie wrsdcookie -name wrsdctl@`hostname` -noshell -s wrsd stop -s init s... | true |
09ad51b08384e18d1b63e63df4fc3bb2ed8f2855 | Shell | yeltawil/Human-Connection | /neo4j/db_manipulation/add_image_aspect_ratio.sh | UTF-8 | 939 | 3.640625 | 4 | [
"MIT",
"CC-BY-3.0"
] | permissive | #!/usr/bin/env bash
if [ -z "$NEO4J_USERNAME" ] || [ -z "$NEO4J_PASSWORD" ]; then
echo "Please set NEO4J_USERNAME and NEO4J_PASSWORD environment variables."
echo "Database manipulation is not possible without connecting to the database."
echo "E.g. you could \`cp .env.template .env\` unless you run the script in... | true |
505921d449e346a911bcde43429a51d4d0a8179d | Shell | adde88/wifipineapple-modules | /ngrep/scripts/dependencies.sh | UTF-8 | 585 | 3.328125 | 3 | [] | no_license | #!/bin/sh
#2015 - Whistle Master
logger "== Ngrep Install Script"
[[ -f /tmp/ngrep.progress ]] && {
exit 0
}
touch /tmp/ngrep.progress
if [ "$1" = "install" ]; then
if [ "$2" = "internal" ]; then
opkg update
opkg install ngrep
elif [ "$2" = "sd" ]; then
opkg update
opkg install ngrep --dest sd
... | true |
109cce84899723b0bf7750a7afd37101a35d5f3d | Shell | jack-small-wang/Luis-PHP-SDK | /phpunit.sh | UTF-8 | 429 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
./vendor/bin/phpunit --version
I=0
FLAG=0
for FILENAME in $(find tests/ -type f -name "*Test.php")
do
printf '-'
I=$(($I + 1))
OUT=$(./vendor/bin/phpunit $FILENAME)
if [ $? -ne 0 ]; then
FLAG=$(($FLAG + 1))
echo -e $OUT
fi
done
printf "\n\n"
if [ $FLAG -eq 0 ]; th... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.