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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b08bb59e3d9fc685e151bd8e31670fea9e5e9df1 | Shell | openbsd/src | /regress/sys/ffs/tests/unlink/11.t | UTF-8 | 2,681 | 3.0625 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
# $FreeBSD: src/tools/regression/fstest/tests/unlink/11.t,v 1.1 2007/01/17 01:42:12 pjd Exp $
desc="unlink returns EACCES or EPERM if the directory containing the file is marked sticky, and neither the containing directory nor the file to be removed are owned by the effective user ID"
n0=`namegen`
n1=`nameg... | true |
23d0b415e0f5f82517fb3f65ca1fccc2e4679c0a | Shell | LArbys/SSNetServer | /container/setup_caffelarbys_container_nevislee.sh | UTF-8 | 1,411 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# SETUP ROOT
source /usr/local/bin/thisroot.sh
# SETUP CAFFE
export CAFFE_ROOT=/usr/local/larbys/ssnet_example/sw/caffe
export CAFFE_LIBDIR=${CAFFE_ROOT}/build/lib
export CAFFE_INCDIR=${CAFFE_ROOT}/build/include
export CAFFE_BINDIR=${CAFFE_ROOT}/build/tools
export CAFFE_PYTHONDIR=${CAFFE_ROOT}/python
# O... | true |
15e38da9237973dc27ac21531b9b64a001b7f2b5 | Shell | Deagel1337/PrivateOriginMCServer | /CreateMCServer.sh | UTF-8 | 1,410 | 3.453125 | 3 | [] | no_license | #!/bin/bash
# Check for required files
echo "Checking for required files"
if [[ ! -f ./fabric_api.jar || ! -f ./mcdata/mods/fabric_api.jar ]]; then
curl -o fabric_api.jar https://media.forgecdn.net/files/3486/63/fabric-api-0.40.8%2B1.17.jar
echo "Downloaded fabric_api"
fi
if [[ ! -f ./origin.jar || ! -f ./mcda... | true |
63e73a5cc5329162e6159b6c8aaa895a5de17aa7 | Shell | ch3pjw/bash_prompt | /prompt_command | UTF-8 | 5,627 | 3.984375 | 4 | [] | no_license | #!/bin/bash
# -----------------------------------------------------------------------------
# Author: Paul Weaver (weaverp@ruthorn.co.uk)
#
# Assign the prompt_command function defined below to the PROMPT_COMMAND
# environment variable in your .bashrc/.bash_profile to get a pretty prompt
# containing a bunch of inform... | true |
0fbf17ef23f24bc6e00c61ac4487ea560b843393 | Shell | meego47/user_referral_test | /docker/entrypoint.sh | UTF-8 | 634 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -eo pipefail
if [[ ! -f ".env" ]]
then
echo "Error: .env not found."
cp .env.example .env
fi
#if [[ ! -f storage/.initialized ]]; then
# touch storage/.initialized;
# # laravel storage folder structure (v5.4+)
# mkdir -p storage/{app/public,framework/{cache,sessions,testing,views},log... | true |
ab083ca479419b99babf7b5f5d56be04f083eeb8 | Shell | slateci/container-example | /entrypoint.sh | UTF-8 | 1,312 | 3.65625 | 4 | [] | no_license | #!/bin/sh
echo This is an example to show to pass configuration parameters and storage to an image
echo
if [ "$CONFIGURATION_PARAMETER_1" = "defaultValue1" ]; then
echo You left the first parameter to the default
else
echo You changed the first parameter to $CONFIGURATION_PARAMETER_1
fi;
if [ "$CONFIGURATIO... | true |
1a16ca9d8e3d493c49065abaa53f1d2a547809e5 | Shell | jmptrader/MCM-Oracle | /MCM-Oracle/common/bin/perlwrap.sh | UTF-8 | 200 | 2.75 | 3 | [] | no_license | #!/bin/bash
. /lch/fxclear/common/default/.profile
cd $PROJECT_DIR/common/bin
if [ -z "$1" ]; then
echo "Usage: `basename $0` <perlscript>"
exit 1
else
perl $1 $2 $3 $4 $5 $6 $7 $8 $9
fi
| true |
2576120f2f6c4e61d67c3cf3d70c7bddc7fd9b07 | Shell | tbennett6421/skeletons | /Bash/loop-over-file-slowly.sh | UTF-8 | 245 | 2.65625 | 3 | [] | no_license | declare -i i=0
while IFS="" read -r p || [ -n "$p" ]
do
if [ "$i" -eq "20" ] ; then
for job in `jobs -p`; do wait ${job}; done
i=0
else
nikto -host $p -output $p.xml &
((i++))
fi
done < webservers.lst
| true |
95ccaf5703c6750a1ca3627f1ec8d0865d4d4c6c | Shell | bmxai/blurb | /preprocess_BLURB_data.sh | UTF-8 | 1,068 | 2.578125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# For Chemprot corpus, please register and download from https://biocreative.bioinformatics.udel.edu/resources/corpora/chemprot-corpus-biocreative-vi/
if [ -s raw_data/ChemProt_Corpus.zip ]
then
unzip raw_data/ChemProt_Corpus.zip -d raw_data/
unzip raw_data/ChemProt_Corpus/chemprot_training.zip -d r... | true |
bee81ad1d3a40ad136295a40ab3a107b4641c4b4 | Shell | Nutanix-CS-Education/dear-liza | /functions.sh | UTF-8 | 264 | 3.359375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
convertsecs2hms() {
((h=${1}/3600))
((m=(${1}%3600)/60))
((s=${1}%60))
# printf "%02d:%02d:%02d\n" $h $m $s
# PRETTY OUTPUT: uncomment below printf and comment out above printf if you want prettier output
printf "%02dh %02dm %02ds\n" $h $m $s
}
| true |
c7031a31e95c90385efcfd08c55233494825d234 | Shell | alextruesdale/personal-utility-scripts | /bash-utility-scripts/count_files.sh | UTF-8 | 648 | 4.15625 | 4 | [] | no_license | #!/usr/bin/env bash
if [[ $# -eq 0 ]]; then
echo "No arguments provided. To use this function, type 'bash count_files 'enter_string here'' (i.e. '*194*'). This will show all file counts in directories from the years 1940-1949."
exit 1
fi
directory_find_string=$1
function make_dir_list() {
dir_list=()
while IF... | true |
30ddbe9692bc937c72c20126f73ba0c81edadaf9 | Shell | ids1024/Utilities | /bin/lsaur | UTF-8 | 349 | 3.625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
UPDATE_FREQ=30 # Update frequency in minutes
function lsaur_update {
curl https://aur.archlinux.org/packages.gz | zcat | awk 'NR>1' | sponge ~/.lsaur
}
if [[ -e ~/.lsaur ]]
then
file_age=$(( (`date +%s` - `stat -c %Y ~/.lsaur`) / 60 ))
if [[ $file_age > $UPDATE_FREQ ]]
then
lsaur_update
fi
else
l... | true |
dc6d3b5eb9638cc55073595edd9304d67a9adf04 | Shell | niloufar/xmingw32 | /local/src/packaging/append/fftw-3.3.3.sh | UTF-8 | 3,308 | 3.6875 | 4 | [] | no_license | #!/bin/bash
# vim: tabstop=4 fileformat=unix fileencoding=utf-8 filetype=sh
# license: Apache v2.0
if [ "" = "${IN_PACKAGE_SCRIPT}" ]
then
echo FAIL: \${XMINGW}/package から実行してください。
exit 1
fi
# ARCH は package が設定している。
# XLIBRARY_SOURCES は xmingw のための環境変数。 env.sh で設定している。
init_var() {
local typ=
#XLIBRARY_SET=${XL... | true |
4d363f018991c074e0d7e13d50fb75a5e937da2f | Shell | okaminer/devstack-tools | /bin/test-shelve-server | UTF-8 | 1,152 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#
# This script simply runs tempest
# set the directory where the code is
DIRECTORY="/opt/stack/tempest"
ME=`basename "${0}"`
LOGFILE="/tmp/${ME}.log"
TEST='^tempest.api.compute.volumes.test_attach_volume.AttachVolumeShelveTestJSON.test_attach_volume_shelved_or_offload_server'
# ensure the directory exist... | true |
3c4d3620194fc650e8ab83358585c589ca217fc8 | Shell | AfSIS-at-CIESIN/SentinelBS | /dsen/main/setup.sh | UTF-8 | 214 | 3.125 | 3 | [] | no_license | # !/bin/bash
for folder in ./dependencies/*
do
pushd $folder
python setup.py install --user
if [[ $? -eq 0 ]]; then
echo 'pkg '$folder' succeeded'
else
echo 'pkg '$folder' failed'
fi
popd
done
| true |
63da8a7677280e645114b53b5e7c9e440ebf2359 | Shell | Afnan-Sultan/RNA-seq-Analysis | /scripts/cuffmerge.sh | UTF-8 | 673 | 3.328125 | 3 | [] | no_license | #!/bin/bash
paper_dir="$1"
aligner_dir="$2"
merged_gtf_dir="$4"
plateform="$3"
paper_name=$(echo "$(basename $paper_dir)")
if [ "$plateform" == "HPC" ];then
module load Python/2.7.2; module swap GNU GNU/4.4.5; module load cufflinks/2.2.1;echo "module loading done";fi
while read tissue;do
tissue_dir=$aligner_di... | true |
8619807422d96843d12430e2aa9d21f96e9472f1 | Shell | wittybones/shell-assignments | /even.sh | UTF-8 | 89 | 3.0625 | 3 | [] | no_license | #! /bin/bash
number=$1
if (( number%2==0 ))
then
echo "even"
else
echo "odd"
fi
| true |
70b1a87b28f066230c5c52c2e4fc7a8e82a19454 | Shell | Kappaware/kappatools | /king/scripts/local/push2repo.sh | UTF-8 | 358 | 3.265625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# To push our jar in some remote repositories, defined as a list
# Example:
# repositories="server1.broadsoftware.com:/var/www/repos/misc server2.broadsoftware.com:/var/www/repos/misc"
rpm="build/distributions/king-*.noarch.rpm"
rpmb=$(basename $rpm)
for r in ${repositories}; do
echo "Will push $rpmb ... | true |
8726638b7a3d24a14053d8a339ed9c25910227b1 | Shell | andrewfang/dotfiles | /.bash_profile | UTF-8 | 1,256 | 3.1875 | 3 | [] | no_license | alias clipboard='pbpaste'
export EDITOR='vi'
# Colored ls with marked directories and multi-columnar output
alias ls='ls -pGC'
#Best grep
alias grep='grep --colour=always -Gq'
# Make rm interactive, confirm every remove for safety
alias rm='rm -i'
set -o noclobber
# type ".." to go up one directory
alias ..="cd .."... | true |
5b5e5ecd6dfe21d0d8305e9d613ca9376f16a893 | Shell | tmensink/rvc_devkit | /objdet/remap_obj_det.sh | UTF-8 | 5,229 | 2.9375 | 3 | [] | no_license | #!/bin/sh
# Remaps individual boxable ground truth of RVC datasets into a joint dataset
# requires git, python and pycocotools which can be installed via:
# pip install pycocotools
# (use gitbash for MS Windows)
RVC_OBJ_DET_SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
# All data is downloaded to subfolders of RVC_DAT... | true |
70878713a6f4be1b732e16c8c0e3568eefc41c8f | Shell | ldedier/ft_ls | /script_diff.sh | UTF-8 | 1,186 | 3.234375 | 3 | [] | no_license | # note: ls and ft_ls update all of your printed entries access date !
# this may give confusing diffs with -u option !
make > /dev/null
./ft_ls $* > /tmp/my_ls_stdout 2> /dev/null
./ft_ls $* > /dev/null 2> /tmp/my_ls_stderr
ls $* > /tmp/true_ls_stdout 2> /dev/null
ls $* > /dev/null 2> /tmp/true_ls_stderr
diff /tmp/tr... | true |
e4843c9e6feb83518d6fbfa05cd03f1908eb67d4 | Shell | Kiti-Nomad/catcake | /project/android/android-app/build.sh | UTF-8 | 1,804 | 2.828125 | 3 | [] | no_license | #!/bin/sh
# sh build.sh (berry.)kikyu Kikyu(.java) kikyu.cpp assets
package=$1
name=$2
source=$3
assets=$4
path=$5
[ -z "${path}" ] && path=/root/prog/catcake
rm -rf /tmp/android-app
cp -a ${path}/project/android/android-app /tmp/
[ -r AndroidManifest.xml ] && cp -a AndroidManifest.xml /tmp/android-app/
[ -r icon.png... | true |
50a62fadcc6c847a83623d6ffd790ef46e5088ea | Shell | yayeoCddy/DLPerf | /HugeCTR/scripts/vocab_x2_1_node_run.sh | UTF-8 | 1,153 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
suffix=$1
log_root=./log
bsz=16384
plan_generator=/hugectr/tools/plan_generation_no_mpi/plan_generator_no_mpi.py
for vocab_size in 3200000 6400000 12800000 25600000 51200000
do
echo "1 node 8 device test, vocab size is:${vocab_size}"
test_case=${log_root}/n1g8-vocab_x2-${vocab_size}-${suffix}
... | true |
12a1ee5d218ade467cad226d8338af85c550b76f | Shell | pdp-archive/pdp-archive.github.io | /_includes/source_code/utils/fetch_testdata.sh | UTF-8 | 627 | 3.34375 | 3 | [] | no_license | function fetch_testdata() {
# Fetch testdata if directory is not present.
# Arg 1 : PDP contest (e.g. 22)
# Arg 2 : codename (e.g. 'fire')
# sed -i 's/\r//' fetch_testdata.sh
if [ ! -d testdata/$1-PDP/$2 ]; then
echo 'Fetching testdata for : ' $2
mkdir tmp
wget https://gitlab.com/pdp-a... | true |
56e53fc31c8dda465720cffea87ebc6e9c73ab9f | Shell | NgoHuy/My-Project- | /network | UTF-8 | 1,619 | 3.375 | 3 | [] | no_license | #!/bin/sh
editor=nano
eth_dhcp=/etc/network.d/ethernet-dhcp
eth_static=/etc/network.d/ethernet-static
eth_iproute=/etc/network.d/ethernet-iproute
wifi_open=/etc/network.d/wireless-open
wifi_wep=/etc/network.d/wireless-wep
wifi_wep_string=/etc/network.d/wireless-wep-string-key
wifi_wpa=/etc/network.d/wireless-wpa
wifi_w... | true |
552b2bdc6241cf4b72b55c8b7c0bf69b7de652d0 | Shell | premek/loading-game | /build.sh | UTF-8 | 510 | 3.203125 | 3 | [
"Unlicense"
] | permissive | #!/usr/bin/env bash
set -x
P="The_Game"
LD="love-0.9.2-win32"
if [ "$1" == "clean" ]; then
rm "${P}.love" "${P}.zip"
exit;
fi
find . -iname "*.lua" | xargs luac -p || { echo 'luac parse test failed' ; exit 1; }
cd src
zip -9 -r - . > "../${P}.love"
cd ..
tmp=`mktemp -d 2>/dev/null || mktemp -d -t 'mytmpdir'... | true |
038eeeb0398a5f4c08e059273789edd3dcc6ec1d | Shell | Xotl/maestro | /bootstrap/maestro/05-certificates.sh | UTF-8 | 2,795 | 3.796875 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | # (c) Copyright 2014 Hewlett-Packard Development Company, L.P.
#
# 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 req... | true |
5eace1f7042fe47c575934bef408a18c921fca02 | Shell | yoonpro/develconfig | /fzf.devel | UTF-8 | 4,522 | 3.796875 | 4 | [] | no_license | #!/bin/zsh
local -a precmd_functions
precmd_functions+=( fzf_default_directory )
fzf_default_directory() {
export FZF_DEFAULT_COMMAND="command find -L $(get_default_directory) \\( -path '*/\\.*' -o -fstype 'dev' -o -fstype 'proc' \\) -prune \
-o -type f -print \
-o -type d -print \
-o -typ... | true |
3cacd1fd53be18577698263b116a8ea8bff99182 | Shell | aspnet/BuildTools | /files/KoreBuild/scripts/common.sh | UTF-8 | 3,795 | 3.90625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# colors
export GREEN="\033[1;32m"
export MAGENTA="\033[0;95m"
export YELLOW="\033[0;33m"
export CYAN="\033[0;36m"
export RESET="\033[0m"
export RED="\033[0;31m"
export GRAY="\033[0;90m"
__is_verbose=false
__verbose() {
if [ "$__is_verbose" = true ]; then
echo -e "${GRAY}debug : $*${... | true |
9d9268e311e09ce2774cc6e93096ea33f8e4a182 | Shell | johanvanhelden/dockerhero | /scripts/xdebug/stop.sh | UTF-8 | 1,151 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo '---------------------------------------------'
echo 'Stopping Xdebug';
echo '---------------------------------------------'
VER_COMMAND="php -r 'echo PHP_MAJOR_VERSION . \".\" . PHP_MINOR_VERSION . \"\n\";'"
PHP_VERSION_WORKSPACE=`docker exec -it dockerhero_php bash -c "${VER_COMMAND}" | tr -d '\r'`... | true |
26e9ae48b146c284704d0670cc12ef730bd4a879 | Shell | albaprate/shells2 | /shell25.sh | UTF-8 | 531 | 3.4375 | 3 | [] | no_license | maxlineas=`cat listado.txt | wc -l`
linea=1
linux=0
windows=0
prowin=0
prolin=0
while [ $linea -le $maxlineas ]; do
sistemas=$(cat listado.txt | head -${linea} | tail -1 | awk '{print$2}')
procesos=$(cat listado.txt | head -${linea} | tail -1 | awk '{print$3}')
if [ $sistemas = "Windows" ]; then
windows=$(($window... | true |
1a821d8b426e24ad525004a1ccd2773dc36e2598 | Shell | BigbandHQ/repertoire | /src/laravel/install/script.sh | UTF-8 | 661 | 2.625 | 3 | [] | no_license | apt-get update
# install dependencies
apt-get install -y php5-fpm php5-cli php5-mcrypt
sed -i "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/" /etc/php5/fpm/php.ini
php5enmod mcrypt
service php5-fpm restart
mkdir -p {{ params.path }}
# copy nginx conf
echo "{{ files.nginx_conf }}" > /etc/nginx/sites-available/defaul... | true |
ccb97568657098ed695c26c1f4a42e7e29d6f769 | Shell | DO-AgilePlus/DO-BootStrapping | /install-config-aws.sh | UTF-8 | 594 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
if ! command pip --version >/dev/null; then
echo "Installing AWS dependencies"
fi
#
if ! command curl >/dev/null; then
apt-get install -y -qq curl
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
fi
# Export PATH
export PATH=~/.local/bin:$PATH
source ~/.profile
# Install AWS CLI
s... | true |
96cb2f6c76094d3e2f6a194e6aabf35780ec7dc1 | Shell | antongiacomo/mac-api | /bin/dnd | UTF-8 | 605 | 3.21875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
click_button () {
osascript <<EOD
tell application "System Events" to tell process "SystemUIServer"
key down option
click menu bar item 1 of menu bar 1
key up option
end tell
EOD
}
dnd_on () {
if [[ $(plutil -convert xml1 -o - ~/Library/Preferences/ByHost/com.apple.notificatio... | true |
63ae6f943fd2bf8254194a3ce6231fbc1df21834 | Shell | blreay/home | /common/sh/mycvs.sh | UTF-8 | 3,644 | 3.90625 | 4 | [] | no_license | #!/bin/ksh
typeset g_appname
function show_usage {
showerr "Usage: ${g_appname##*/} command [-l] [-t] [-m msg]"
showerr " command : diff [-l] | add [-t] | rm [-t]|commit [-t] [-m msg]"
showerr " -l : show result in one line"
showerr " -t : just list the target files without real action"... | true |
314355ed715ae9668f77ddc58856ef1637303df8 | Shell | sumeetchhetri/ffead-cpp | /meson_grabber.sh | UTF-8 | 155 | 3.140625 | 3 | [] | no_license | #!/bin/sh
ext="*.cpp"
if [ "$3" = "*.h" ]; then
ext="*.h"
fi
if [ "$2" = "all" ]; then
find $1 -name "$ext"
else
find $1 -maxdepth 1 -name "$ext"
fi
| true |
f7a2191fd8bdf52d866c9b26729a332a225ce20b | Shell | chenyk1990/useful-utilities | /projects/gmt/examples/animate.in | UTF-8 | 2,214 | 3.78125 | 4 | [] | no_license | #!/bin/bash
#
# $Id: animate.in 13990 2015-01-26 18:00:58Z pwessel $
#
# Bash script for creating videos of the animation examples.
# The videos will optionally be included in the RST gallery.
test -z "$1" && exit 1
# Where the current script resides (need absolute path)
script_name="$1"
script_dir=$(dirname "${scrip... | true |
97717a29a3c60882735a6f11fdf3408bc6caea45 | Shell | frsbarbier/oressource_ynh | /scripts/install | UTF-8 | 6,233 | 3.515625 | 4 | [] | no_license | #!/bin/bash
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# MANAG... | true |
f122587621d0b611ecd465b5548d694a61f372c7 | Shell | ElecardSTB/sdk830 | /src/rootfs/overlay/etc/init.d/S75STmodules | UTF-8 | 842 | 3.28125 | 3 | [] | no_license | #!/bin/sh
#
# insert stapisdk drivers
#
insmodSafe() {
if [ -e "$1" ]; then
insmod $1
fi
}
STAPISDK_ROOT=/root
#STAPISDK_ROOT=/root_33.1
case "$1" in
start)
if [ -f $STAPISDK_ROOT/modules/load_modules.sh ]; then
killall fb_logo 2>/dev/null
rmmod stmfb 2>/dev/null
rmmod stmcore-display-sti7105 2>/dev/nul... | true |
f46cdcc9a5bf3ae3d05f27f2850b4f84f0f7550c | Shell | HankRoughknuckles/dotfiles | /install.sh | UTF-8 | 2,070 | 3.859375 | 4 | [] | no_license | #!/bin/bash
###########################
# install.sh
#
# This script creates symlinks from the home directory to any desired
# dotfiles in ~/dotfiles
############################
######################### Variables #########################
dir=$(pwd) # dotfiles directory
olddir=~/dotfiles_old ... | true |
f7ff4360cbc962a236fa02a8316463c20386dcfa | Shell | raphtlw/dotfiles | /bin/encrypt | UTF-8 | 743 | 4.40625 | 4 | [] | no_license | #!/usr/bin/env sh
HELP_TEXT=`cat << EOM
$(basename $0) - Encrypt files symmetrically with GPG
Usage: $(basename $0) [args] [filename]
Arguments:
-e | --encrypt Encrypt file
-d | --decrypt Decrypt file
EOM
`
encrypt () {
gpg -c --no-symkey-cache --cipher-algo AES256 $FILE
}
decrypt () {
... | true |
b27e9a0d3c24e35329b2f079b41b27fccc096ac3 | Shell | Eeyle/sha-1 | /testing/file-zoo-test/file-zoo-sha1sum-test.sh | UTF-8 | 182 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# Runs sha1sum on all byte*.bin files in the bytes folder and records the output to a file.
for file in ./bytes/byte*.bin;
do sha1sum $file;
done > sha1sum-test.sha
| true |
f29b9e7b096e2180faaf2df76db7ad5e4378b3ab | Shell | Kenthliu/phosphor-debug-collector | /tools/dreport.d/plugins.d/journalpid | UTF-8 | 286 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# config: 13 1
# @brief: Collect user initialized PID specific journal log information.
#
. $DREPORT_INCLUDE/functions
desc="Journal pid:$pid log"
file_name="journal-pid-$pid.log"
command="journalctl -o verbose _PID=$pid"
add_cmd_output "$command" "$file_name" "$desc"
| true |
c5c08eb11d61298b51db521ca78ae41eb821f4fc | Shell | jerem2401/scripts | /gwdg_scripts/gmx_required_modules.sh | UTF-8 | 1,034 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#arch=$(/home/uni05/cmb/shared/bin/gwdg-arch.sh) || exit 1
arch=$( /usr/users/jlapier/bin/gwdg-arch.sh) || exit 1
case $arch in
nehalem|gtx480|gpu|gtx770)
# echo "intel/mkl/64/11.2/2015.3.187 intel-mpi/64/5.0.3/048 intel/compiler/64/15.0/2015.3.187 cuda75/toolkit/7.5.18"
# echo "intel/mkl/64/11.2/201... | true |
87b446aa847a1a957a465a25f8b3c287a2eeda2e | Shell | joranbeasley/python_altimeter_pkg | /install_scripts/configure_sys.sh | UTF-8 | 2,614 | 3.09375 | 3 | [] | no_license | function info() {
system="$1"
group="${system}"
shift
FG="1;34m"
BG="40m"
echo -e "[\033[${FG}\033[${BG}${system}\033[0m] $*"
}
info CONFIG "SETTING RESOLUTION 320x240"
#force resolution
sudo cp /boot/config.txt /boot/config_txt.bak
sudo sed -i "s/#* *framebuffer_width=.*/framebuffer_width=320/g... | true |
e1bc197f4adc01f1270ecd40854acf6f9c663c69 | Shell | StephenOTT/camunda-prometheus-exporter | /scripts/build-image.sh | UTF-8 | 781 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Inspired by https://blog.alexellis.io/mutli-stage-docker-builds/
SCRIPT_FOLDER="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $SCRIPT_FOLDER/config.sh
rm -rf $OUTPUT
mkdir $OUTPUT
docker rm -f extract-$REPO_NAME 2>/dev/null
docker build -t $REPO_ORG/$REPO_NAME:build . -f ./Dockerfile.build
if... | true |
7ca96f9475d82b79c5f426e3a76b7b8f1318976a | Shell | A-j-K/vlf-tools | /test/test10 | UTF-8 | 1,990 | 2.546875 | 3 | [] | no_license | #!/bin/sh
# Test vtsl
. ./testlib
cleanup(){
[ "$TMP" != "" ] && rm -f $TMP.test10*
}
vtgen -a0 -n a=0.1 -r48000 -T2010-01-01,+5 $TMP.test10a,f8
vtsl -r -n 56789 $TMP.test10b,f8 2> /dev/null &
sleep 1
vtsl -s -n localhost,56789 $TMP.test10a 2> /dev/null
sleep 1
cor=`vtjoin $TMP.test10a $TMP.test10b - | vtcmp -mc... | true |
4debadbb2a7810ecfffbf4d4210e854966f74790 | Shell | axdotl/laptop-setup | /scripts/terminal1.sh | UTF-8 | 275 | 2.640625 | 3 | [] | no_license | #!/bin/bash
sudo apt-get update
echo "Setup Terminator - http://terminator-gtk3.rtfd.io/"
sudo apt-get install terminator
echo "Setup Zsh"
sudo apt-get install zsh
echo "Set Zsh as default"
chsh -s $(which zsh)
echo "Restart terminal and continue with terminal2.sh"
echo
| true |
3b71b32b933c5367ccf616d4e10b965f1ad963b1 | Shell | DannyBen/rush-cli | /src/lib/warn.sh | UTF-8 | 71 | 2.578125 | 3 | [
"MIT"
] | permissive | warn() {
printf "%-20s | %s\n" "$(red "$1")" "$(red_bold "${*:2}")"
} | true |
d9c2591d66b060665aa374eab8f5bccd75feff35 | Shell | datastax-training/casopt | /src/bin/get0.sh | UTF-8 | 496 | 3.359375 | 3 | [] | no_license | #!/bin/bash
function usage() {
echo
echo "Usage: get0.sh <any node in cluster>"
echo "Return the public ip for opscenter"
echo
}
if [[ -z $1 ]]; then
usage
exit
fi
FIRSTNODE=$1
nodelist=`ssh $FIRSTNODE nodetool status | sed '/[UD][NLJM]/!d ; s/.. \([0-9\.]*\) .*/\1/'`
for ip in $nodelist; do
... | true |
3ad9758e7b4d178d0979800bfe501f1560f043d6 | Shell | stevenstetzler/parallel-computing | /hw01/perf_power.sh | UTF-8 | 12,593 | 2.5625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# This is a template for a simple SLURM sbatch job script file
#
# First, SBATCH options - these could be passed via the command line, but this
# is more convenient
#
#SBATCH --job-name="CS 4444 HW 01" #Name of the job which appears in squeue
#
#SBATCH --mail-type=ALL #What notifications are sent by email
#... | true |
47a448a23bdb10b3ff69f235c8f0ba53edd501d0 | Shell | OpenUpSA/khetha-deploy | /target.staging.exec.sh | UTF-8 | 386 | 3.328125 | 3 | [] | no_license | #!/bin/sh -e
#
# Execute a command (such as django-admin) in the staging WSGI container.
#
# To increase the interactivity of this, you can run a background tunnel: ssh -MN root@178.128.143.69
export DOCKER_HOST='ssh://root@178.128.143.69'
CONTAINER_ID="$(docker ps --filter label=com.docker.swarm.service.name=khetha-... | true |
3a48ab509d37214ef48c8e17aa0e8b910831a6b8 | Shell | hotbaud/misc_scripts | /mstrip.sh | UTF-8 | 1,010 | 4 | 4 | [] | no_license | #!/bin/bash
# Program: mstrip
# Author: Anne Marie Merritt anne.marie.merritt@gmail.com
#
#
# This program removes the ^M character from files.
# If necessary it makes the file writable, strips
# out the ^M's from the file, then returns it to
# read-only permissions. ^M is ascii 0xA, which is
# represented as '\r' ... | true |
0f082ee1fdbfcec4d0d23abdda233b4929f182a1 | Shell | dgleba/482dkrcollection | /mysqlsimple/all-individual-mysqldump.sh | UTF-8 | 2,013 | 3.4375 | 3 | [] | no_license | #!/usr/bin/env bash
date ; set +vx ; set -vx ; # echo off, then echo on
set +vx
echo ~----------~----------Startinga [dirname $0 basename $0] `dirname "$0"`/`basename "$0"`
#echo ~----------~----------Startingb $HOSTNAME, pwd: `pwd`, dlr0: "$0", bashsource0: "${BASH_SOURCE[0]}", $(date +"%Y-%m-%d_%H.%M.%S")
echo bas... | true |
14447de04a7cfe01bf855f5a39b6eb693d3a420f | Shell | rlaneyjr/VIRL_Projects | /virl-utils/create-arista-veos-image/create-arista-veos-image.sh | UTF-8 | 10,500 | 3.828125 | 4 | [
"ISC"
] | permissive | #!/bin/bash
# create-arista-veos-image.sh
# HS-Fulda - sebastian.rieger@informatik.hs-fulda.de
#
# changelog:
# V1.1 added injection of config defined in VM Maestro using config-drivex
# V1.11 fixed device mapping of extracted partitions, fixed problems with stale swi directory
# V1.12 rc.eos now supports e1000 and... | true |
b76884c9a15b7396f4711236ebcd64aa580d7305 | Shell | mgbarsky/hg_1k_experiment | /sh_scripts/count_snip_kmers_30.sh | UTF-8 | 555 | 3.109375 | 3 | [] | no_license | #!/bin/bash
snipKmersFile="/FOLDER_NAME/snippairs31_ref.txt"
fileNamesFile="/FOLDER_NAME/FILE_NAMES_30.txt"
#2. Count snip pairs k-mers in input files
while read line;
do
if [ "$line" = "" ] ; then
echo "empty line.";
else
INPUTDIR="/FOLDER_NAME/reads/ftp.1000genomes.ebi.ac.uk/vol1/ftp/data/${line}/sequen... | true |
0a9f32c5ae3a34aaccb8195253bcd3741b1c191c | Shell | sreegowthamj/multiple_bebops | /shortpress_3.sh | UTF-8 | 2,670 | 2.890625 | 3 | [] | no_license | #!/bin/sh
#Set the SSID, Password and IP
SSID='AndroidAP-sgj' # Change this to your SSID
PW='yaot2326' # Change this to the password of your wifi network
IP=192.168.73.1 # Change this to the desired Bebop IP
#/data/ftp/internal_000/bin/wpa_passphrase $SSID $PW > /etc/wpa_supplicant.conf &&
#Connect to defined Net... | true |
04d98cdbdf937731d14494d2bde68746a0daeaf5 | Shell | WA6HXG/NextionDriver | /NextionDriver_ConvertConfig | UTF-8 | 2,800 | 4.21875 | 4 | [] | no_license | #!/bin/bash
#########################################################
# #
# MMDVMHost configuration patcher #
# #
# (c)2018 by ON7LDS #
# ... | true |
9dc108d479887262f6b269c6b542d320cd40c491 | Shell | tschutte/cluster-validation | /pre-install/lsi-config.sh | UTF-8 | 1,289 | 3.046875 | 3 | [] | no_license | #!/bin/bash
# jbenninghoff@maprtech.com 2013-Mar-10 vi: set ai et sw=3 tabstop=3:
#Strip Size: 256K (1MB when firmware and OS driver allow, TBD)
#Cache Policy: cached
#Read Policy: read ahead
#Write Policy: write thru
#Disk Cache Policy: enabled
echo These are the key LSI controller settings affecting disk IO perfor... | true |
2f3c9982f2996a501ec1c8af6e6e96534f040049 | Shell | benjisympa/dvd_extraction | /launch_rip_split.sh | UTF-8 | 330 | 2.765625 | 3 | [] | no_license | #!/bin/bash
source /people/maurice/anaconda3-4.3.1/bin/activate /people/maurice/anaconda3-4.3.1/envs/pyannote-video-dev-new
cd dvd_extraction_git/dvd_extraction
while IFS=, read -r name season first last ix
do
echo "I got:$name|$season|$first|$last|$ix"
echo "" | python launch_rip.py $name $season $first $last $ix... | true |
3e21dcad9543d5050ebe707dfe5334c38b270fa3 | Shell | indraoli429/Shell-Scripting | /ChooseFromList | UTF-8 | 331 | 3.203125 | 3 | [] | no_license | #!/bin/bash
restart(){
bash ChooseFromList
}
PS3="Choose your favourite flower from these possibilities: "
select FLOWER in daisy bluebeel comflower commomile
do
if [[ -z "$FLOWER" ]]
then
echo "You typed a wrong figure. Please Try Again!"
restart
else
echo "You choose '$FLOWER' as your favourite."
fi
... | true |
f792dd28285383c73c0c03c9cada192e50125db3 | Shell | koengit/allo | /cplex-ssh | UTF-8 | 880 | 3.4375 | 3 | [] | no_license | #!/bin/sh
# To use this file successfully, do the following:
#
# 1. Make sure you have a .ssh directoy in your home:
# > mkdir -p ~/.ssh
#
# 2. Make sure it is only readable/writable by you:
# > chmod a-rwx,u=rwx ~/.ssh
#
# 3. Make sure you have a ssh config file:
# > touch ~/.ssh/config
#
# 4. Add the following lines... | true |
577ff27e5de3931b8ee5ce5e55467e3b9d9bc6e3 | Shell | johnbradley/s3t | /minimal.sh | UTF-8 | 2,243 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
export ENDPOINT_URL=TODO
export DELIVERY_AGENT_ID=TODO
export DELIVERY_AGENT=TODO
export FROM_USER_ID=TODO
export FROM_USER=TODO
export TO_USER_ID=TODO
export TO_USER=TODO
export SOURCE_BUCKET=mouse
export SOURCE_PATH=/tmp/mydata
export DEST_BUCKET=mouse2
echo "$FROM_USER creates bucket $SOUR... | true |
c01e56a27ba313dba5b7d14a25e4e1ef7395b091 | Shell | Pallavi-Srivastava/Employee-Wage | /uc6.sh | UTF-8 | 568 | 3.125 | 3 | [] | no_license | #! /bin/bash -x
isFullTime=1
isPartTime=2
wagePerHour=20
numWorkingDays=20
TotalHrs=120
day=0
hrs=0
while (( day<=numWorkingDays && hrs<=TotalHrs ))
do
randomCheck=$(( RANDOM%3 ))
(( day++ ))
echo $day
case $randomCheck in
$isFullTime)
echo "Employee is present $isFullTime"
workHrs=8
... | true |
dee0cb582aa0109b51612fc437d02b481c826ba5 | Shell | AndersDJohnson/docked-node | /docked-node.sh | UTF-8 | 1,022 | 3.734375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
DOCKED_NODE_IMAGE="${DOCKED_NODE_IMAGE:-node}"
DOCKED_NODE_PRE_RUN=""
if [ -n "$DOCKED_NODE_PRE" ]; then
DOCKED_NODE_PRE_RUN="RUN $DOCKED_NODE_PRE"
fi
clean() {
rm -f .docker-node-Dockerfile
}
if [ ! -f package.json ]; then
>&2 echo "No package.json file found."
exit 1
fi
NO_DOCKERIGNOR... | true |
cdcf1f9d283d2227c36c9095ae062678430ab1f9 | Shell | alces-software/forge-packages | /clusterware/clusterware-config/libexec/configure/actions/help | UTF-8 | 5,223 | 3.4375 | 3 | [] | no_license | #!/bin/bash
#==============================================================================
# Copyright (C) 2016 Stephen F. Norledge and Alces Software Ltd.
#
# This file/package is part of Alces Clusterware.
#
# Alces Clusterware is free software: you can redistribute it and/or
# modify it under the terms of the GNU A... | true |
85d544270b1fb0a74aeae92b9b09e0e413904cfc | Shell | adegwerth/docker-agportal | /src/docker_entry_point.sh | UTF-8 | 1,685 | 4.4375 | 4 | [] | no_license | #!/bin/bash -e
AGS_HOME=/arcgis/portal
LICENSE_MARK=/arcgis/keycode
if [ ! -e $LICENSE_MARK ]; then
echo "First start, need to authorize arcgis for portal"
$AGS_HOME/tools/authorizeSoftware -f $LICENSE_FILE
echo "Licensed" > $LICENSE_MARK
echo "software authorized, wait for 3 seconds to start portal"
/bin/s... | true |
d54e97e371af90d61155f2d0bec656e3f5a2d5ab | Shell | karan-app/angularjs-nodejs-ldaps | /codedeploy/AfterInstall.sh | UTF-8 | 505 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# get all the variables
source /webapps/scripts/common_variables.sh
# create /server/uploads if it doesn't exist
if [ ! -d "$DESTINATION_PATH/server/uploads" ]; then
mkdir $DESTINATION_PATH/server/uploads
fi
# create /webapps/logs if it doesn't exist
if [ ! -d "/webapps/logs" ]; then
mkdir /webapps/l... | true |
6faf823e59ea6ad2bdc882a680ee8e0b5b83b447 | Shell | RandelSouza/TCC | /Experimento/filtrando_consumo_processador.sh | UTF-8 | 853 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
path="resultados_experimento";
controllerSDN=( Ryu Floodlight POX );
nodesQuantity=( 104 );
#nodesQuantity=( 26 52 104 );
for controller in "${controllerSDN[@]}"
do
for quantity in "${nodesQuantity[@]}"
do
arquivo=$path/$controller"_Nos_"$quantity/"processor_consumption_"$controller$quantity".txt... | true |
e10472ce083aad07e8f24fd7712e02eb59eda22d | Shell | lcabrini/alumni | /install_crontab.zsh | UTF-8 | 210 | 3.09375 | 3 | [
"MIT"
] | permissive | #! /bin/zsh
if [[ -n $(crontab -l | grep alumni) ]]; then
print "Crontab for alumni already installed. Aborting."
exit
fi
script=$0:A:h/cronjob.zsh
(crontab -l; print "7 * * * * $script") | crontab -
| true |
a954fc1c5882fd0d15395d294a6537a110874986 | Shell | sriharikapu/qme | /run.sh | UTF-8 | 4,757 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env sh
# exit when any command fails
set -e
###############################################################################
# Execution environment
###############################################################################
export TMPDIR=/tmp$TMPDIR
export DEBUG=0
######################################... | true |
e12a98e838af7abf2562640061c28aa723529404 | Shell | ZackBoyd123/de-novo_pipeline | /valden.sh | UTF-8 | 18,076 | 4.25 | 4 | [] | no_license | #!/bin/bash
while getopts :a:1:2:t:U:r: TEST; do
case $TEST in
#Aligner
a) OPT_A=$OPTARG
;;
#Paired Reads one
1) OPT_1=$OPTARG
;;
#Paired Reads two
2) OPT_2=$OPTARG
;;
#Trimming program
t) OPT_T=$OPTARG
;;
#Unpaired Reads
U) OPT_U=$OPTARG
;;
#Reference... | true |
949aae7274e6a5aa755a408ef18253b5d86386f9 | Shell | davehowell/flakenews | /mssql_docker/import-data.sh | UTF-8 | 772 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "FAKE FAKE NEWS"
#run the setup script to create the DB and the schema in the DB
#do this in a loop because the timing for when the SQL instance is ready is indeterminate
for i in {1..50};
do
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P "${SA_PASSWORD}" -d master -i setup.sql
if ... | true |
fa9052675e7684c96eccab6a6d810cdec08e2a13 | Shell | alexalarie/bash | /debian.sh | UTF-8 | 632 | 2.890625 | 3 | [] | no_license | # Give read/write permissions to a disk
chown -R alex:alex /media/alex/sandiska
# Delete all soft-link recursively from a root folder
find -type l -delete
# Delete all given file recursively from a root folder
find . -name "pymap_pc_up0001.nfn" -print0 | xargs -0 rm -rf
# Auto-startup xfce configuration files
~/.con... | true |
f981fe981c9aa8197f3ff6f0b959f5058208d6df | Shell | xcballer/lab1 | /test-exec.sh | UTF-8 | 1,146 | 3 | 3 | [] | no_license | mkdir testZone
cd testZone
echo '1' > one
echo '2' > two
(
cat >test-e-ok.sh <<'EOF'
cat one # 1
cat two # 2
cat one && cat two # 1
# 2
cat one || cat two # 1
cat one | cat two # 2
cat one > two && cat one ... | true |
62efe348448a3079afb9d9bf15a17bdc12091a6a | Shell | dmci99/osgeo_rsworkshop | /osgeo_sentinel2_workshop.sh | UTF-8 | 5,604 | 3.453125 | 3 | [] | no_license | #!/bin/bash
###################################################################
# name: osgeo_sentinel2_workshop.sh
# about: Sentinel-2 processing using OSGeo command line tools
# this script should be run from a bash terminal
# notes: make sure to copy Sentinel-2 zip file from the USB drive to your Lu... | true |
c27e779a4b72653df79134bf166b80992cec5090 | Shell | JustinAGriffiths/MyLoginScripts | /setup.sh | UTF-8 | 907 | 3.546875 | 4 | [] | no_license | #!/bin/bash
SCRIPT_DIR=`echo $PWD/$BASH_ARGV | sed 's,\(.*/\)[-a-zA-Z0-9_\. ]*,\1,g'`
verify(){
if [[ -f $HOME/$1 || -L $HOME/$1 ]]; then
if [ -L $HOME/$1 ] ; then
echo 'removing sym link '$HOME/$1
rm $HOME/$1
else
echo "mv "$HOME"/$1 to "$HOME/$1_back
mv $HOME/$1 $HOME/$1_bak
fi
fi
}
ve... | true |
2aa2dc8a4a25d298a5db247a82b08dc8bd9f011b | Shell | daviwil/dotfiles | /.emacs.d/exwm/start-exwm.sh | UTF-8 | 851 | 2.921875 | 3 | [
"MIT",
"Noweb"
] | permissive | #!/bin/sh
# Source .profile for common environment vars
. ~/.profile
# Disable access control for the current user
xhost +SI:localuser:$USER
# Make Java applications aware this is a non-reparenting window manager
export _JAVA_AWT_WM_NONREPARENTING=1
# Start Shepherd to manage user daemons
if [ -z "$(pgrep -u daviwi... | true |
8e23bb20ded07d6d0f957d033e0955c8b623ace2 | Shell | allskystar/ECUI | /local.sh | UTF-8 | 795 | 3.734375 | 4 | [] | no_license | #! /bin/bash
function scandir() {
for file in `ls`
do
if [ -d $file ]
then
cd $file
scandir $1
cd ..
else
if [ "${file##*.}" = "css" ]
then
if [ $1 = 'clean' ]
then
if [ -f $fi... | true |
6113355e7c8e71f3b59f9931b1d6dbc7da864ec0 | Shell | Marcosddf/programacaojava | /docker-entrypoint.sh | UTF-8 | 396 | 2.734375 | 3 | [
"Unlicense"
] | permissive | #!/bin/bash
# Comando de inicializacao do container
NB_USER="bccparadigmas"
jupyter notebook --ip 0.0.0.0
# Cria a configuração padrão do notebook
jupyter notebook --generate-config
# Cria o password padrão do notebook como "bccparadigmas"
echo "c.NotebookApp.password = u'sha1:8f475cf4b9e1:91a2e52435340899edfc8107a8... | true |
6528c5597e8c9b91c2ffa60635fb84bcd8cc356b | Shell | richardbeare/NectarFreeSurfer | /update_cm.sh | UTF-8 | 1,690 | 4.21875 | 4 | [] | no_license | #!/bin/bash
# This script is a convenience script for updating Galaxy CloudMan (CM)
# on S3. It deletes the old tarball with CM's source and creates a new one.
# Then, by calling a python script, the newly created file is uploaded
# to S3 in the respective bucket.
#
# Usage: sh update_cm.sh [cloud]
# The single optinal... | true |
0880b2eb3c04d8b6173958dcfb507a79fbe398d3 | Shell | coelebs/dotfiles | /bin/local/bin/tmux-sessionizer | UTF-8 | 900 | 3.65625 | 4 | [] | no_license | #!/usr/bin/env bash
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find ~/ -maxdepth 4 -not -path '*/.trash*' -not -path "*/ncs*" -not -path "*/.cache*" -name .git | sed 's/.git//' | sort -r | fzf)
fi
if [[ -z $selected ]]; then
exit 0
fi
worktreename=$(basename "$(dirname "$selected")")
selected_... | true |
cd3c85f9edb1a78867181114c688809a50d7cf4a | Shell | svenikea/dotfiles | /.bash_profile | UTF-8 | 363 | 3.125 | 3 | [
"MIT"
] | permissive | #
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]];then
exec startx
fi
# Powline-shell for bash
function _update_ps1() {
PS1=$(powerline-shell $?)
}
# Load aliases
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Start... | true |
814bd7b2e5733862a40f5d24ce72882517ae2c22 | Shell | leecalcote/nginmesh | /istio/release/tools/elastic-portfoward.sh | UTF-8 | 290 | 2.765625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# port-forward elastic search
NAMESPACE=${1:-elastic}
export ELASTIC_POD=$(kubectl get pods --namespace $NAMESPACE -l "app=elasticsearch,component=client,release=elastic" -o jsonpath="{.items[0].metadata.name}")
kubectl port-forward --namespace $NAMESPACE $ELASTIC_POD 9200:9200 | true |
c1baa4adfef52e3cb13a139df909650efc903f89 | Shell | cybertron/mdns-ci | /coredns-mdns-build | UTF-8 | 4,395 | 3 | 3 | [] | no_license | #!/bin/bash
set -ex
set -o pipefail
master0=$1
master1=$2
timeout=15
if ! rpm -qa | grep -q golang
then
sudo yum install -y git epel-release bind-utils
# From epel, so has to be installed after
sudo yum install -y golang
fi
# Make it re-runnable for dev purposes
sudo rm -rf /home/centos/go/src
# Clone... | true |
1056fb6487b3ad5cefe8796e895a924a1d7b8197 | Shell | WeKia/CS409 | /detectors/dsfd/setup.sh | UTF-8 | 431 | 2.734375 | 3 | [] | no_license | o "Downloading pretrained model"
gfileid="1ZVzJqbjoymnKl11jDc-VGkVgzBqR3rZZ"
destination_dir="./weights/"
file_name="dsfd_vgg_0.880.pth"
destination_path="${destination_dir}${file_name}"
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=${gfileid}" > /dev/null
curl -Lb ./cookie "https://drive.googl... | true |
d52a13148f558718831f97102b8fd020f79d8a8e | Shell | FabioLolix/PKGBUILD | /gnome-video-arcade/PKGBUILD | UTF-8 | 772 | 2.578125 | 3 | [
"WTFPL"
] | permissive | # Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: ianux <ianux@free.fr>
pkgname=gnome-video-arcade
pkgver=0.8.8
pkgrel=1
pkgdesc="Simple GTK3 front-end wich supports MAME"
arch=(i686 x86_64)
url="https://wiki.gnome.org/action/show/Apps/GnomeVideoArcade"
license=(... | true |
be7ae863db000b1d46601bbf395bbe2515f5662f | Shell | KostasKoyias/mirror | /scripts/create_infiles.sh | UTF-8 | 4,564 | 4.25 | 4 | [] | no_license | #!/bin/bash
#------------------------------------------a simple function returning the minimum of two values------------------------------------------#
function min(){
if [ $# -ne 2 ]
then
return -1
else
if [ $1 -lt $2 ]
then
return $1
else
return $2
... | true |
5fef621913730073e89e6f676535c4e025b627b2 | Shell | ESUCC/Maximd | /vagrantConfig/post.up.configure.zendserver.sh | UTF-8 | 3,364 | 3.1875 | 3 | [] | no_license | #!/bin/sh
# check that required private_network arg has been passed to the script
if [ -z $1 ]; then
echo "private_network arg must be passed to this shell script as the first argument"
echo "Example: \"192.168.15.100\""
echo "Example: \"my.app.local\""
exit 1
fi
private_network=$1
echo "private_networ... | true |
b8601d4070f4dc84a5c2a1b05a9b1ac45e9e2aeb | Shell | Vish-Khadilkar/Bird_KNN_SVM_RF_CNN_EN | /docker-run.sh | UTF-8 | 779 | 3.640625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
if [ -f /.dockerenv ]; then
# only run inside docker container
if [ ! -d "/datasets/train" ]; then
echo "--- 1/3 sort data ---"
python ./sort_data.py
fi
if [ ! -d "/datasets/spec" ]; then
echo "--- 2/3 create specs ---"
python ./spec.py
fi
echo "--- 3/3 evaluation ---"
python e... | true |
dbfd4218055a58f5fccbe52eff3a581e0c114e40 | Shell | juliogarciag/dotfiles-zsh | /functions.zsh | UTF-8 | 1,164 | 3.25 | 3 | [] | no_license | function reload() {
source ~/.zshrc
}
function e() {
eval $VISUAL_EDITOR $argv
}
function ez() {
z $argv
e .
cd -
}
function cdp() {
cd "$PROJECTS_DIR/$argv"
}
function rm() {
command rm -i $argv
}
function rm!() {
command rm $argv
}
function show-code() {
local filename=$argv[1]
local syntax=... | true |
933347097333569f14349daabb2e95062a2127d4 | Shell | godiard/many-tests | /statistics/report-bugs.sh | UTF-8 | 638 | 3.328125 | 3 | [] | no_license | for LINE in `cat ./activities-data.txt`
do
ACTIVITY=`echo $LINE | awk -F '|' '{printf("%s",$1)}'`
CANT_BUGS_BSO="-"
CANT=0
cd $ACTIVITY
if [ -f $ACTIVITY-bugs-bso.csv ]; then
CANT_BUGS_BSO=`tail -n +1 $ACTIVITY-bugs-bso.csv | wc -l | awk '{printf("%s", $1)}'`
CANT=$CANT_BUGS_BSO
fi
... | true |
7f87bdba6479fdd9b52166749e2a2865605002f0 | Shell | codex-team/uptime-monitor.workers | /deploy.sh | UTF-8 | 533 | 2.734375 | 3 | [] | no_license | #!/bin/bash
echo "Starting deploy..."
echo "======================================================"
echo "** WARNING!!! **"
echo "Dont forget to update config.prod.js if it is necessary"
echo "======================================================"
echo "Stop all workers"
npm run... | true |
939b8170f9ee3be2e591a2309c651088cfd92cf3 | Shell | pro-gen/progen | /dist/liberateProGen.sh | UTF-8 | 738 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ $# != 1 ]; then
echo "Error: $0 svn-user"
exit
else
USER=$1
fi
EXCLUDE_DIRS="test app/regressionMultiple app/Gphash app/ProGen_*"
RELEASE=`date +%d-%b-%Y`
PROGEN_NAME="ProGen"
echo -n "Conectando con svn… [1/4]"
svn --username $USER export -q svn+ssh://evannai.uc3m.es/var/svn/ProGen/bra... | true |
61e305ecdf6e280713435333c238aa72103e89d8 | Shell | mpgarate/Open-Source-Tools-Assignments | /assignment2/3-8-information.sh | UTF-8 | 1,321 | 3.3125 | 3 | [
"MIT"
] | permissive | ##################
### Question 3 ###
##################
cut -d ',' -f 10 output_2.csv | grep "Fox News" -c
##################
### Question 4 ###
##################
cut -d ',' -f 10 output_2.csv | grep "SurveyUSA\|Rasmussen" -c
##################
### Question 5 ###
##################
cut -d ',' -f 10 output_2.csv |... | true |
2d2e736bc51fd4d0951b0c8a00d7111b1827b9a0 | Shell | emersion/confiture.utils | /filescollector.sh | UTF-8 | 1,727 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# Dependencies : find
APP_VERSION='0.1'
APP_AUTHOR='$imon'
while test $# -gt 0
do
if [ "$1" = '--help' ] || [ "$1" = '-h' ] ; then
echo "=== Lighp package files collector ==="
echo " version $APP_VERSION "
echo " written by $APP_AUTHOR "
echo ""
echo "Usage : ./fil... | true |
73da040a5ed112c5e84c2c743656bcd30cc1e482 | Shell | erikssoon/mephi | /scripts/iib.sh | UTF-8 | 446 | 3.453125 | 3 | [] | no_license | #!/bin/bash
#PS3='Выберите действие:'
echo "Введите название группы, которую Вы хотите удалить (q - прекратить выполнение действия):"
read groupname
case $groupname in
q) echo "Выполнение действия отменено."
exit 0;;
*) groupdel $groupname
echo "Группа $groupname успешно удалена.";;
esac | true |
c66f20d1b96eb044181fa8f454cf37fbe27d32b5 | Shell | matszczygiel/photo_one | /deploy/run_xgtopw.sh | UTF-8 | 769 | 3.21875 | 3 | [] | no_license | #!/bin/bash
XGTOPW_PATH="/home/mateusz/workspace/gtopw/build/Release/"
PHOTO_MISC_PATH="/home/mateusz/workspace/photo_misc/build/Release/"
PHOTO_FIT_PATH="/home/mateusz/workspace/photo_fit/"
HERE=$(dirname $(readlink -f $0))
mkdir ints
INTS="$HERE/ints"
INPS="$HERE/inputs"
cd res
touch kfile.txt
./run.sh -dump
cat l... | true |
60881920380c85f5a22cc6ac12286c6e10a7055a | Shell | mboogerd/scripts | /scala-new-project.sh | UTF-8 | 1,448 | 4.25 | 4 | [] | no_license | #!/bin/bash
# Preconditions
if [ "$#" -lt 1 ]; then
echo "Illegal number of parameters."
usage
fi
# Constants
REMOTE="git@github.com:mboogerd/sbt-template.git"
# Functions
function usage() {
echo "usage: $0 -p [projectName] [-b branchName] | -h | -l"
}
function listBranches() {
echo "Retrieving branche... | true |
0e317857c724e6fb3cc9bac06d5cdf52d7dca57b | Shell | rogrwhitakr/northern-lights | /coreutils/printf.bash | UTF-8 | 452 | 2.6875 | 3 | [] | no_license | #!/bin/bash
source /home/admin/MyScripts/script/helpers/init.bash
# strftime -> %F -> y-m-d %R 24 hour notation of hours and minutes
debug=0
flags_init
printf "This is week %(%U/%Y)T.\n" -1
printf "log flag %(%F %T)T.\n" -1
# the loggor should print the fingy
printf '%(%F %T)T :: %s\n' -1 "thest inpot"
# okay, wra... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.