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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
399bda6527ee0dab469bc75ce2fa6ee3fb04a2e9 | Shell | cloudfoundry-attic/cf-riak-cs-release | /jobs/riak-cs/templates/restrict_riak_requests_to_cluster_ip_range.sh.erb | UTF-8 | 1,353 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
function add_rule_if_not_there() {
criterion1=$1
criterion2=$2
iptables_command=$3
iptables -L | grep $criterion1 | grep $criterion2 > /dev/null
if [ "$?" != "0" ]; then
`$iptables_command`
fi
}
# external Riak access
<% (Array(p('riak_cs.ips')) + [p('stanchion.ip')]).each do |ip| %>
ad... | true |
559b70ce787de172796891ce2788aad56900f420 | Shell | jontg/dotfiles | /bin/xterm-256-demo | UTF-8 | 576 | 3.625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env zsh
#
# Shows all 256 colors of xterm's 256-color mode.
# Make sure your terminal is at least 108x47.
# This script has been placed into the Public Domain by its author, J. S. Connell.
#
clear
column=1
line=1
xlimit=6
ylimit=6
color=16
while [ $color -lt 256 ]; do
printf "%3d: \x1B[48;5;%dm ... | true |
c997e75e8ab086e95c55ab29f9f72f8f44af4429 | Shell | delkyd/alfheim_linux-PKGBUILDS | /gnome-shell-extension-gnome-hdate-git/PKGBUILD | UTF-8 | 1,027 | 2.90625 | 3 | [] | no_license | # Maintainer: Amiad Bareli <amiad@hatul.info>
pkgname=gnome-shell-extension-gnome-hdate-git
_gitname=gnome-hdate
pkgver=20161106
pkgrel=1
pkgdesc="Show Hebrew date in gnome-shell panel"
arch=('i686' 'x86_64')
url="https://github.com/amiad/gnome-hdate"
license=('GPL')
depends=('libhdate' 'libhdate-glib' 'gnome-shell')... | true |
0f234290db4dc70376547297830d0f452ba3551e | Shell | jmvarberg/DC_Genomics_Jan2021 | /DataDownload.sh | UTF-8 | 1,147 | 2.53125 | 3 | [] | no_license | set -e
# DOWNLOAD reference genome:
# INSTRUCTIONS:
# Check paths at lines 9, 21, and 32 to customize for a new project
cd ~/dc_workshop/data/ref_genome
curl -L -o ecoli_rel606.fasta.gz ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/000/017/985/GCA_000017985.1_ASM1798v1/GCA_000017985.1_ASM1798v1_genomic.fna.gz
# UNZIP... | true |
06ce2a6d1508ee9fcf3738073f8a25a8d78f8e91 | Shell | nelbren/npres | /bin/enable/sudo.bash | UTF-8 | 2,517 | 4.1875 | 4 | [] | no_license | #!/bin/bash
#
# enable_sudo.bash
#
# v0.0.3 - 2021-08-25 - nelbren@nelbren.com
#
inform_task() {
case $2 in
1) echo -e "\e[30;48;5;3m$1!\e[0m\e[K";;
2) echo -e "\e[7;49;93m$1:\e[0m\e[K";;
*) echo -en "\e[30;48;5;7m$1...\e[0m\e[K"
esac
}
inform_and_exit() {
if [ "$1" == "0" ]; then
echo -e "\e[7;... | true |
d6dd1008279b06c56386cebac22bdd44eddbad30 | Shell | ali-nayeem/MSA | /example/run_pasta.sh | UTF-8 | 479 | 3.03125 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "$0")"
fname="BB?????.tfa"
temp="./temp"
for inputFile in `find ./bb3_release/ -name $fname -type f | sort -V`
do
output=`echo $inputFile | cut -d "/" -f 3-`
output=./aligned/"$output"_pasta
echo "################## $output ########################"
run_pasta.py --auto -d Protein -i $inp... | true |
b254c6d9ce8b25e1a0559add15e090e3ea82d673 | Shell | syunkitada/home | /tools/scripts/setup_ubuntu20.sh | UTF-8 | 2,425 | 3.703125 | 4 | [] | no_license | #!/bin/bash
set -e
. confrc
function _install() {
for pkg in "$@"; do
dpkg -s "$pkg" || sudo apt install -y "$pkg"
done
}
function setup_dev_tools() {
# 汎用ツール類のインストール
sudo apt update -y
_install curl git zsh build-essential ncurses-dev snapd
# pythonとその関連パッケージのインストール
_install python3 python3-venv python3-d... | true |
9b168a372066e30f62d94fcdf974baa4f36a9688 | Shell | freckle/pdup | /bin/report | UTF-8 | 304 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -eu
# Find the executable first (vs using stack-exec later), so the warning about
# our new GHC is not printed on each execution, and we don't have to silence
# stderr at every call.
pdup=$(stack exec which pdup 2>/dev/null)
"$pdup" --days 7
"$pdup" --days 30
"$pdup" --days 90
| true |
1d1fe73a154b8dda0629478c965ad76754a54d70 | Shell | charlesportoferreira/mangareader | /mangareader | UTF-8 | 3,745 | 4.34375 | 4 | [] | no_license | #!/bin/bash
FROM=1
TO=4294967296
while getopts "hm:f:t:s" OPT; do
case $OPT in
"h") usage;; # show help
"m") TITLE=$OPTARG;;
"f") FROM=$OPTARG;;
"t") TO=$OPTARG;;
"?") exit -1;;
esac
done
function downloadpages() {
manganame=$1
chapternumber=$2
chapterlink=$3
maxcpus=$4
outputdir=./$... | true |
e8603a8e643d730fc58bb5926973d96ee174d9f6 | Shell | MarcelRobitaille/zshdotfiles | /.zshrc | UTF-8 | 270 | 2.78125 | 3 | [
"MIT"
] | permissive | # Path to your oh-my-zsh installation.
export ZSH=/home/marcel/.config/oh-my-zsh
ZSH_THEME="agnoster_custom"
plugins=(git)
for file in $ZSH/{oh-my-zsh,exports,aliases,functions}.sh; do
[ -r "$file" ] && [ -f "$file" ] && source "$file";
done;
DEFAULT_USER="marcel"
| true |
091ed12b275b269b0754f407e2751c966d6f42f5 | Shell | mjbright/Docker | /MENUS/profile | UTF-8 | 2,929 | 3.9375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#!/bin/sh
DEBUG=0
################################################################################
## General functions:
die() {
echo "$0: die - $*" >&2
exit 1
}
pause() {
[ ! -z "$1" ] && echo $*
echo "Press <return> to continue [or q to quit]"
read _DUMMY
[ "$_DUMMY" = "q" ] ... | true |
cf4896a3b2b004237f1493b09408b85c3b99806b | Shell | unica-open/siacscript | /conf/gen/atti-amministrativi/create.sh | UTF-8 | 403 | 3.078125 | 3 | [] | no_license | #!/bin/bash
mkdir out
echo "reading $1"
FNAME_TPL=${3:-push_atti}
# while and sed are broken down for readability
while IFS=$';' read -r cod_ente istanza_fornitore start_time
do
sed -e "s|{start_time}|$start_time|g"\
-e "s|{cod_ente}|$cod_ente|g"\
-e "s|{istanza_fornitore}|$istanza_fornitore|g"\
$2 > out/${FNAME_T... | true |
3930235c14132b03c0af0edcaa4524a2a21cbceb | Shell | legacy-codedigger/Dynix.3.2.Source | /dynix.3.2.0/i386/tmpos/etc/buildmini | UTF-8 | 3,810 | 3.15625 | 3 | [] | no_license | #! /bin/sh
#
# /etc/buildmini miniroot (e.g. zd1b) distroot
#
# Used to build a distribution tape.
# Ties in with /etc/maketape.
#
if [ "$#" -eq 2 ] ;then
MINIROOT=$1
DISTROOT=$2
else
echo 'usage: buildmini miniroot (e.g. zd1b) distroot'
exit 1
fi
#
date
miniroot=/miniroot$$
/etc/umount /dev/${MINIROOT} 2>/dev/nul... | true |
317f7758d2bc866ba6332a0275f289d8073b4cbc | Shell | christophmluscher/tools | /rn-space.sh | UTF-8 | 138 | 3.046875 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
for f in "$@"
do
b=${f//[^A-Za-z0-9.-_\/]/-}
c=${b//----/-}
d=${c//---/-}
e=${d//--/-}
mv "$f" "$e"
done
| true |
42c841a8d50ffddc248d4397f697d1377077bc93 | Shell | wing-888/MOR_X5_FROM_VM | /test/scripts/various/.svn/text-base/stress.sh.svn-base | UTF-8 | 476 | 3.046875 | 3 | [] | no_license | #! /bin/sh
# Author: Mindaugas Mardosas
# Company: Kolmisoft
# Year: 2012
# About: This script checks if stress time was completed on server
. /usr/src/mor/test/framework/bash_functions.sh
. /usr/src/mor/test/framework/settings.sh
#------VARIABLES-------------
#----- FUNCTIONS ------------
#--------MAIN ... | true |
859166ad0d7d98baa69ef46865d96b7c7ac155f4 | Shell | helidonashabani/crypto-fintech | /exe.sh | UTF-8 | 1,370 | 2.890625 | 3 | [] | no_license | #PATH
BITCOIN_CLI=~/Bitcoin/bitcoin-0.20.1/bin/bitcoin-cli
#Generate the new addresses
Address_A=$($BITCOIN_CLI -regtest getnewaddress)
echo $Address_A
Address_B=$($BITCOIN_CLI -regtest getnewaddress)
echo $Address_B
#First generate 50 blocks to address A
Genereatedblocks_A=$($BITCOIN_CLI -regtest generatetoaddress ... | true |
dbac02151d27ca5182d55c6bcc353f7a33f653d1 | Shell | Azure/iotedge | /scripts/linux/downloadAndInstallCert.sh | UTF-8 | 1,019 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -eo pipefail
usage()
{
echo "Missing arguments. Usage: $0 -v <keyVault name> -c <Cert name>"
exit 1;
}
while getopts ":c:v:s:" o; do
case "${o}" in
c)
CERT_NAME=${OPTARG}
;;
v)
KEYVAULT_NAME=${OPTARG}
;;
s)
... | true |
b9224b519c9a8e21c56570040c7530bb6a334bd9 | Shell | kithanos/seizure_epilepsy_prediction | /chb/07_zero_crossingsv2.sh | UTF-8 | 817 | 3.171875 | 3 | [] | no_license |
#!bin/bin/bash
#Diretorio do qual se encontra o programa que aplica o zero crossings nos vetores de dados
programa="/home/lucas/Documentos/Projetos/seizure_epilepsy_prediction/zero_crossings"
cd Dados
pwd
for pasta in chb**
do
echo entrando na pasta: $pasta
cd $pasta
for pasta1 in chb*_*
do
echo... | true |
d6fc257f8f4132e8fa195bc60169b60346ada851 | Shell | garageborn/server | /config/setup/system/hostname.sh | UTF-8 | 177 | 2.65625 | 3 | [] | no_license | #!/bin/bash
echo "# Hostname"
name=$1
sudo bash -c "cat >>/etc/hosts <<EOL
127.0.0.1 $name
"
sudo hostnamectl --static set-hostname $name
sudo /etc/init.d/hostname.sh restart
| true |
bcb8aca2e686a421c3a62d18e8b86a1255c11a6f | Shell | rodolfoksveiga/courses | /the_unix_workbench/for.sh | UTF-8 | 159 | 2.8125 | 3 | [] | no_license | #!/usr/bin/bash
c1=0
while [[ $c1 -lt $1 ]]; do
let c1=$c1+1
for i in {1..2}; do
echo $i
for j in this is just a train; do
echo $j
done
done
done
| true |
231d21db7d146469ef10fab36d338ca5de5b2b02 | Shell | reyerstudio/devstrap-macos | /devstrap.sh | UTF-8 | 3,169 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
HELP=
BOOTSTRAP=
PLAYBOOK=
PASS=
DEBUG=
SUCCESS=
SUDOERS_DEVSTRAP="/etc/sudoers.d/devstrap"
trap cleanup EXIT
function cleanup() {
set +e
if [ -f "$SUDOERS_DEVSTRAP" ]; then
sudo rm -f $SUDOERS_DEVSTRAP
fi
sudo -k
if [ -z "$SUCCESS" ]; then
echo_error "devstrap failed"... | true |
1a88b4b67fb8b69e602ddcfa95b5e040c4f31d59 | Shell | corekube/cert-renew | /start.sh | UTF-8 | 1,373 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
source /etc/config/cert-renew
# fwd logs to docker log collector
ln -sf /dev/stdout /var/log/cert-renew.log
# soft link /etc/letsencrypt locally from $LETSENCRYPT_DIR volume mount
while [ ! -d "$LETSENCRYPT_DIR" ]
do
sleep 2
done
ls -alh $LETSENCRYPT_DIR
rm -rf /etc/letsencrypt
ln -s "$LETSENCRYPT_DIR"... | true |
8afbb785ecf7e4c9f77c6a544e4cb1847518d3b6 | Shell | sachin-sinha/BangDB | /v2.0/bangdb_2.0_ubuntu16/bangdb-server | UTF-8 | 4,437 | 3.40625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
### BEGIN INIT INFO
# Provides: bangdb-server
# Required-Start: $syslog
# Required-Stop: $syslog
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 1
# Short-Description: bangdb server daemon
# Description: BangDB server
### EN... | true |
97dacc308913f428fcce15567dbc3f86652d7145 | Shell | oguzhankarahan/sourcify | /scripts/deploy.sh | UTF-8 | 763 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
if [ "$CIRCLE_BRANCH" == "staging" ]; then
TAG='latest'
REPO_PATH='/home/sourcify/staging/'
SERVER='sourcify@ec2-52-58-207-182.eu-central-1.compute.amazonaws.com'
elif [ "$CIRCLE_BRANCH" == "master" ]; then
TAG='stable'
REPO_PATH='/opt/source-verify/production/'
SERVER='sou... | true |
f0b24f0953ec00231f0b239ef905abcbc60be8e9 | Shell | liuwenkai1023/box2d-wasm | /box2d-wasm/build_all.sh | UTF-8 | 1,692 | 4 | 4 | [
"Apache-2.0",
"Zlib",
"MIT"
] | permissive | #!/usr/bin/env bash
set -eo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
# This script just does what the README says, except with some extra validation and interactivity.
# If you're more interested in going through step-by-step, and avoiding rebuilds of files you've
# already bui... | true |
80962fc12b3169c30d0b6a6b7553bbecf3f28486 | Shell | cameroncros/OctoPrint-DiscordRemote | /release.sh | UTF-8 | 622 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/sh
which py > /dev/null 2>&1
if [[ $? == 0 ]]; then
echo "Running in Windows"
PYTHON='python'
py -3 -m venv testenv3
source testenv3/Scripts/activate
else
echo "Running in Linux"
PYTHON=python3
python3 -m venv testenv3
source testenv3/bin/activate
fi
git stash
${PYTHON} -m pip i... | true |
c7b6cfd595176445609431d6094d5f3966df28be | Shell | einverne/droolsjbpm-build-bootstrap | /script/release/kie-pushTag.sh | UTF-8 | 784 | 3.15625 | 3 | [
"GPL-1.0-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0",
"AGPL-3.0-or-later"
] | permissive | #!/bin/bash -e
echo "kieVersion:" $kieVersion
echo "target" : $target
# clone the build-bootstrap that contains the other build scripts
if [ "$target" == "community" ]; then
git clone git@github.com:kiegroup/droolsjbpm-build-bootstrap.git --branch $releaseBranch --depth 70
else
git clone ssh://jb-ip-tooling-jen... | true |
6bb16c4622096e335dedc64a3a7d08a5c707e4bc | Shell | encX/vps-script | /app-node.sh | UTF-8 | 713 | 3.625 | 4 | [] | no_license | #!/bin/bash
# for Ubuntu server 16+
export RED='\033[0;31m'
export GREEN='\033[0;33m'
export WHITE='\033[1;37m'
export BLUE='\033[0;34m'
export CYAN='\033[0;36m'
export NC='\033[0m' # No Color
function printMod() {
echo -e "[$GREEN$MODULE$NC] $1"
}
MODULE="NODEJS"
if [[ `command -v nvm` == "" ]]; then
printMod... | true |
e7bdd27a574619302e703dbcf3e00da462ba34ee | Shell | svetomsk/os_2016 | /badlinks/badlinks.sh | UTF-8 | 379 | 3.390625 | 3 | [] | no_license | scan() {
for e in "$1"/*; do
if [ -d "$e" -a ! -h "$e" ]
then
scan "$e"
elif [ -h "$e" -a -e "$e" ]
then
time=$(stat -c %Y $e)
cur=$(date +%s)
diff=$(($cur - $time))
if [ $diff -ge 10080 ]
then
e... | true |
e25a385014bfb3297c782f0b9c5d25650545a879 | Shell | niquola/fhir_cases_for_jsonp | /provision.sh | UTF-8 | 900 | 2.671875 | 3 | [] | no_license | # echo 'Building postgresql'
sudo apt-get update
sudo apt-get install -y git build-essential gettext
sudo apt-get install -y libreadline6 libreadline6-dev
sudo apt-get install -y zlib1g-dev
sudo apt-get install -y flex bison
# run as vagrant user
git clone http://git.postgresql.org/git/postgresql.git ~/postgresql
sud... | true |
d15057c529bbc0ff077d87525ebd0905393a10d5 | Shell | jpmunz/devenv | /install-dotfiles.sh | UTF-8 | 666 | 2.609375 | 3 | [] | no_license | # Load .bash_custom in .bashrc if it isn't already
grep '.bash_custom' ~/.bashrc > /dev/null
if [ $? -ne 0 ]; then
echo 'source ~/.bash_custom' >> ~/.bashrc
fi
# Copy over all config files
cp files/bash_custom.sh ~/.bash_custom
cp files/.tmux.conf ~/.tmux.conf
cp files/.vimrc ~/.vimrc
cp files/.gitconfig ~/.gitcon... | true |
003353a04703d2d2ba2581113641ae01ba1c1518 | Shell | glejeune/clish | /plugins/clish/new/init.sh | UTF-8 | 3,156 | 4.09375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
PLUGIN_DESCRIPTION="Create a new $CLI_MAIN_COMMAND CLI project"
PLUGIN_AUTHORS="Greg"
PLUGIN_VERSION="0.0.1"
PLUGIN_NOT_REMOVABLE=1
check_files_and_dirs() {
for _D in "$@" ; do
if [ ! -d "$_D" ] && [ ! -f "$_D" ] ; then
echo "$_D not found"
exit 1
fi
done
}
ok() {
_MSG="$1"
read... | true |
8555769ef436800b984afc491292c152fc2c4661 | Shell | robotika/osgar | /subt/script/teleop.bash | UTF-8 | 308 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Waiting for robot name"
while [ -z "$ROBOT_NAME" ]; do
ROBOT_NAME=$(rosparam get /robot_names 2>/dev/null)
sleep 0.5
done
echo "Robot name is '$ROBOT_NAME'"
/opt/ros/melodic/lib/teleop_twist_keyboard/teleop_twist_keyboard.py cmd_vel:=/${ROBOT_NAME}/cmd_vel_osgar __name:=keyboard
| true |
1979ddac3fb11aa32c52c7f48e3077bc5d7e3662 | Shell | mrimann/flow-development-collection | /Build/create-changelog.sh | UTF-8 | 865 | 3.703125 | 4 | [] | permissive | #!/bin/bash
set -e
#
# Generates a changelog in reStructuredText from the commit history of
# the packages in Packages/Framework.
#
# Needs the following environment variables
#
# VERSION the version that is "to be released", e.g "4.1.0"
# PREVIOUS_VERSION the last released version, e.g. "4.0.0"
# BUILD_URL ... | true |
5216972247a4ea1cc265b9a9bb9c4a92e1be739d | Shell | ioionu/syncship | /syncship.sh | UTF-8 | 335 | 3.09375 | 3 | [] | no_license | #!/usr/bin/env bash
CPFROM=/tmp/from/
CPTO=/tmp/to/
FILTER="*.avi"
RSYNC=/usr/bin/rsync
ZENITH=/usr/bin/zenith
HELLO_STR="Copying "$FILTER" files from "$CPFROM" to "$CPTO
RSYNC_CMD="${RSYNC} -v ${CPFROM}${FILTER} ${CPTO}"
RETURN_STR=$($RSYNC_CMD)
INFO_STR="${HELLO_STR}\n${RSYNC_CMD}\n${RETURN_STR}"
zenity --info --te... | true |
0f74915c1d4c0cb1b7af3552ae8d9355535b9478 | Shell | yurutaso/dotfiles | /.zsh/.zshrc | UTF-8 | 2,443 | 2.90625 | 3 | [] | no_license | #.zshrc
# Common settings
autoload -U compinit
compinit
# これまで移動したディレクトリが<tab>でリストされる
setopt auto_pushd
# Correct a wrong command
setopt correct
# Turn off beep
setopt nobeep
# PROMPT変数内で変数を展開する
setopt prompt_subst
setopt ignoreeof
setopt no_tify
setopt no_flow_control
#---------------------
# History
#---------------... | true |
d5819bbeb37d78d4586cd317b90b08b1b68c0a32 | Shell | mschmitt/Dotfiles | /Bash/bashrc.d/0600_functions.bash | UTF-8 | 3,875 | 3.65625 | 4 | [] | no_license | # Skip if running non-interactively
if [[ ! -t 0 ]]
then
return
fi
function archive_mount {
grep -q backupserver /etc/hostname || return
cryptdisks_start ARCHIVE_USB
mount -v /usb
ls -l /usb
}
function archive_umount {
grep -q backupserver /etc/hostname || return
umount -v /usb
cryptdisks_stop ARCHIVE_... | true |
fb91225f782bf8ef0efca09ac9e993498e07058f | Shell | mms-fcul/Covid19-MD_Tutorials | /Molecular_Dynamics/6_Analyses/6_sasa/14_extract_sasa.sh | UTF-8 | 2,760 | 3.4375 | 3 | [] | no_license | #!/bin/bash -e
#grom=/gromacs/gromacs-2020.2/bin/gmx
grom=/usr/bin/gmx
#
# Variables to use the system information (.tpr), index and full
# trajectory of the simulation
tpr=../../3_Minimization/min1.tpr
index=../../2_Setup/index.ndx
xtc=../1_traj/traj_all.xtc
# The sasa module provides the surface area acessible to ... | true |
9b380b9609b1d0d72a2e283bfa1a30b164347a92 | Shell | oondeo/phabricator | /baseline/setup.sh | UTF-8 | 703 | 2.75 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
set -e
set -x
# Set up the Phabricator code base
mkdir /srv/phabricator
cd /srv/phabricator
git clone --depth=1 https://github.com/phacility/libphutil.git /srv/phabricator/libphutil
git clone --depth=1 https://github.com/phacility/arcanist.git /srv/phabricator/arcanist
git clone --depth=1 https://github.c... | true |
8733523f687aa97951f8abaf55f7779d3f8f8648 | Shell | boxdot/elm-console | /test/run-tests.sh | UTF-8 | 1,156 | 3.1875 | 3 | [] | no_license | #!/bin/sh
set -ev
cd "$(dirname "$0")"
mkdir -p build/
elm-make --yes --output build/test1.js Test.elm
echo "Elm.worker(Elm.Main);" >> build/test1.js
echo "exit" | node build/test1.js
elm-make --yes --output build/test2.js FileTest.elm
echo "Elm.worker(Elm.Main);" >> build/test2.js
node build/test2.js
elm-make --... | true |
10f74a86f08348a1d71dfe93b48116659d32e8d9 | Shell | petronny/aur3-mirror | /flirc-rc/PKGBUILD | UTF-8 | 916 | 2.890625 | 3 | [] | no_license | # Maintainer: Chris Simons <chris@simonsmail.net>
pkgname=flirc-rc
pkgver=v1.0.0_rc.4
pkgrel=1
pkgdesc="Software for using Flirc USB Device"
arch=('i686' 'x86_64')
url="http://flirc.tv"
license=('Unknown')
depends=('')
conflicts=('flirc')
source=(http://downloads.flirc.tv/beta/packages/Flirc-${pkgver//_/-}.zip)
md5sum... | true |
002dbd26a261f56a96b52a3b0099ba8b8e8b11da | Shell | jaricsng/ibm-cloud-private | /samples/centosClient/bootstrap.sh | UTF-8 | 2,670 | 2.53125 | 3 | [] | no_license | #!/usr/bin/env bash
sudo yum -y update
curl -fsSL https://get.docker.com/ | sh
sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -aG docker vagrant
sudo yum groupinstall -y development
sudo yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel
wget http://www.python.org/ftp/python/2.7.13/P... | true |
4e37bdfa4995fbf061afd9b4b4c2f1ff1e925a32 | Shell | guenther-brunthaler/usr-local-etc-features-hml46rntp4etzxla7pxzc6rj0 | /initramfs-tools/hooks/fstab-gc8ifeeuh6ilk0w8re14sfth0 | UTF-8 | 1,133 | 3.65625 | 4 | [] | no_license | #! /bin/sh
# Version 2023.79
FSTAB_IN=/etc/fstab
# Copy '!'-prefixed entries as "noauto", otherwise as non-"noauto".
COPY_ENTRIES='!/ !/boot !/dev !/proc /run /run/lock /run/shm !/sys !/tmp /usr'
OPT_SEP=','
set -e
case $1 in
prereqs) echo; exit
esac
. /usr/share/initramfs-tools/hook-functions
FSTAB_OUT=$DESTDIR/$... | true |
c0bc425ebee1458557a613e39bd6cf8e80b3b8bf | Shell | wecacuee/orcvio-frontend | /install-deps/install-gsl.sh | UTF-8 | 640 | 3.15625 | 3 | [] | no_license | #mkdir -p $CATKIN_WORKSPACE/devel/include/gsl/
#wget https://github.com/gsl-lite/gsl-lite/blob/master/include/gsl/gsl-lite.hpp -O $CATKIN_WORKSPACE/devel/include/gsl/gsl-lite.hpp
{
SOURCE_PREFIX=$HOME/.local/src
STOW_PREFIX=$SOURCE_PREFIX/stow
{ [ -f $SOURCE_PREFIX/gsl-lite/CMakeLists.txt ] || \
git... | true |
3c3410c3f59ed2b333efc9b4e25755c5193df211 | Shell | xidian-hgj/FunPower | /1-函数级功耗采集与传输软件/工程文件/powercat.sh | UTF-8 | 818 | 3.4375 | 3 | [] | no_license | #! /system/bin/sh
echo "=======[ PowerCat ]======"
name=$1
activity=$2
ipAddr="192.168.2.67"
port=8010
pid=
buffer_size=1048576
echo "Start the ${name} Benchmark"
if [ -n "$activity" ]; then
echo "Android program is starting"
am start -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -n ${name}/.$... | true |
1ce17568e1e115bf3f13fa61b8070eb0fab31498 | Shell | kapliy/hepcode | /ana/branches/dg/CommonAnalysis/RootCore/scripts/preamble.sh | UTF-8 | 542 | 3.1875 | 3 | [] | no_license | test "x$ROOTCOREDIR" = "x" && echo "ROOTCOREDIR not set, please source setup.[c]sh" && exit 1
test "x$ROOTCOREBIN" = "x" && echo "ROOTCOREBIN not set, please source setup.[c]sh" && exit 1
pkgfile=$ROOTCOREBIN/packages
script=`basename $1`
if test \! -f "$pkgfile"
then
if test "$script" != "find_packages.sh" -a "$... | true |
0954926788e7e9f56886736776e2a2e1ab130723 | Shell | ShuangMen/kubecf | /bosh/releases/pre_render_scripts/diego-cell/garden/jobs/patch_pre-start.sh | UTF-8 | 724 | 2.859375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -o errexit -o nounset
target="/var/vcap/all-releases/jobs-src/garden-runc/garden/templates/bin/pre-start"
sentinel="${target}.patch_sentinel"
if [[ -f "${sentinel}" ]]; then
if sha256sum --check "${sentinel}" ; then
echo "Patch already applied. Skipping"
exit 0
fi
echo "Sentinel ... | true |
15f4fbe9505d8526b1b44f3fef58a93892043b30 | Shell | dusty/database_scripts | /import/COMMON.sh | UTF-8 | 1,007 | 3.59375 | 4 | [] | no_license | # define path to data
BASE_DIR=/mnt/database_exports/data
# local database authentication
LOCAL_DB_USER=
LOCAL_DB_PASS=
# remote database authentication
REMOTE_DB_USER=
REMOTE_DB_PASS=
REMOTE_DB_HOST=
# number of bytes to trigger split
SPLIT_FILE_SIZE=1073741824
# arguments to split
SPLIT_SIZE_PARAM=1024m
# max s... | true |
989d59609b7b0edba52a32650eeafa5d30aca59c | Shell | EBIvariation/amp-t2d-submissions | /azkaban-workflows/mccarthy_pipeline_2017_06_15/scripts/chr_pos.sh | UTF-8 | 772 | 3.125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#Subscript for renaming markers for merging with external data (1KG, etc)
WORKSPACE=$1
SCRIPT_DIR=$2
POP_GEN_CLEAN_DIR=$3
mkdir -p $WORKSPACE
pushd $WORKSPACE
#Turn all marker names into CHR_POS format, for merging
cat $POP_GEN_CLEAN_DIR/04.pruned.bim | sh $SCRIPT_DIR/clean_plink_report.sh | awk 'BEGIN{FS... | true |
59e89e900c48a6756a4631af183c020e0ee2861a | Shell | pgte/level-writestream | /tests/benchmarks/bin/run | UTF-8 | 797 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
chunkSizes=( 500 1000 2000 )
highWaterMarks=( 500 1000 2000 )
timeoutBetweenChunks=( 0 10 20 30 )
valueSizes=( 10 100 1000 )
maxConcurrentBatcheValues=( 1 2 3 4 )
for chunkSize in "${chunkSizes[@]}"
do
for hwm in "${highWaterMarks[@]}"
do
if [ $chunkSize -le $hwm ]
then
for t... | true |
770a1917ebd030d2318189b66680f6b29a23f15f | Shell | MadLluks/Dar_Project | /server/src/main/webapp/install.sh | UTF-8 | 544 | 2.796875 | 3 | [] | no_license | #!/usr/bin/env bash
#
# Installs dependencies
#
sudo apt-get install ruby1.9.3 git coffeescript
# Try to source nvm
source ~/.nvm/nvm.sh &> /dev/null
# Check if nvm exists
nvm &> /dev/null
# If not, download it
if [ `echo $?` -ne "0" ]
then
echo "Downloading nvm..."
git clone https://github.com/creationix/nvm.git... | true |
d4f64052e7297e811b8e1e99d14f400467a1418a | Shell | NicolasBrondin/book-pie | /install.sh | UTF-8 | 1,264 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# Need to find full cli alternative
# sudo raspi-config -> Boot options
# https://raspberrypi.stackexchange.com/questions/11958/running-npm-install-throws-permission-error
# https://www.raspberrypi.org/forums/viewtopic.php?t=25777
# Prepare startup script
cp ./startup.sh /etc/init.d/startup.sh && \
chmod ... | true |
b84b15eb89605e3b2fa43be75908c4e3e80b3df0 | Shell | macdougt/articles | /docker/aliases/.profile | UTF-8 | 137 | 2.96875 | 3 | [
"Apache-2.0"
] | permissive | for file in ${HOME}/.{docker_content,dm_content,dc_content,dr_content}; do
[[ -r "$file" ]] && [[ -f "$file" ]] && source "$file"
done
| true |
27eddb9f52a16c356f73d309990b42f7e88c41c3 | Shell | Martikain/Scripts | /setGrubDelay.sh | UTF-8 | 604 | 4 | 4 | [] | no_license | #!/bin/bash
# Sets the Grub startup delay.
# Delay can be set with first parameter.
# Default delay is 15 seconds.
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
if [ -z "$1" ]
then
echo "No argument provided. Setting default delay of 15 seconds."
delay=15
else
integers='^[0-9]+$'
if !... | true |
1bc614b32e45acfe3b5d6e5fc52f3c8c89fce591 | Shell | ischaaf/bash-cli | /example.bash | UTF-8 | 1,264 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
set -eEu -o pipefail
# shellcheck disable=SC1091
source ./bash_cli.bash
function mycommand () {
local doc
bcli_doc "
This is a subcommand
OPTIONS:
--help print this message
--custom <value> set a custom value to use
ARGS:
field Some custom field
"
... | true |
26b1496419389a9b191c570ad8ee7b8700b535bf | Shell | topiaruss/enclav.es | /provision.sh | UTF-8 | 1,041 | 2.578125 | 3 | [] | no_license | #!/bin/bash
# install java
apt-get install python-software-properties make python-dev protobuf-compiler -y -q;
add-apt-repository ppa:webupd8team/java;
apt-get update -y -q;
apt-get install oracle-java6-installer -y;
# symlink the project directory somewhere more convenient
ln -s /vagrant/ /home/vagrant/enclav.es;
... | true |
49be2effbc16ad9d9a3bea53fe8abdad71645a29 | Shell | Marv21/LemonBooster-v2 | /Config-LemonBooster-v2/Install-LemonBooster-Ubuntu18.04.sh | UTF-8 | 6,606 | 2.828125 | 3 | [] | no_license | #!/bin/bash
echo "Updating..."
sudo apt-get -y update
sudo apt-get -y upgrade
echo "Installing necessary libraries..."
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libssl-dev
sudo apt-get install -y jq
sudo apt-get install -y ruby-full
sudo apt-get install -y libcurl4-openssl-dev libxml2 lib... | true |
8e6025dea31247008805c654a2101702b8a67148 | Shell | faust64/puppet | /modules/packages/templates/update_repository.erb | UTF-8 | 1,172 | 3.421875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
ROOT=<%=@web_root%>
while test "$1"
do
case "$1" in
OpenBSD|openbsd|OPENBSD)
ARCH=amd64
VERS=6.1
if test "$2"; then
if test "$2" = amd64 -o "$2" = i386; then
ARCH=$2
shift
fi
if echo $2 | grep -E '[0-9]\.[0-9]' >/dev/null; then
VERS=$2
shift
fi
if test "... | true |
075670f47cba6e31f852ea23bacd8ab70305e6ed | Shell | winksaville/fuchsia | /build/images/manifest_content_expand.sh | UTF-8 | 855 | 3.546875 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Copyright 2019 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# manifest_content_expand.sh input-file output-file
#
# Split manifest lines, replacing the source path with the contents of the file
# at source pa... | true |
91999503f8248142b61a972d39bacec76da69969 | Shell | jesimar/desafio-senai | /data/script-file-split.sh | UTF-8 | 356 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#Author: Jesimar da Silva Arantes
#Email: jesimar.arantes@gmail.com
#Date: 07/04/2021
echo "========== Script quebra arquivo em instancias menores =========="
#existem 167 instances na base de dados
for i in $(seq 167); do
s=$((3*$i+1))
head -n $s database.csv | tail -n 3 > instance-$i.csv
done
ech... | true |
31eaf22c115d45b136bd99caf95e70d7078be7d7 | Shell | FSMaxB/lfs-me-repos | /blfs-7.5/libmikmod-3.3.6 | UTF-8 | 447 | 3.125 | 3 | [] | no_license | #!/bin/bash
pkgname=libmikmod
pkgver=3.3.6
pkgver_postfix=
sources=( "http://downloads.sourceforge.net/mikmod/${pkgname}-${pkgver}.tar.gz" )
sha1sums=( 'c0d5c7df1f26b4244ba95ed261f580be2e52f789' )
lfs_me_prepare() {
tar -xf "${sources_dir}/${pkgname}-${pkgver}.tar.gz" -C "$build_dir"
cd "${build_dir}/${pkgna... | true |
97d1cd0c5cb5ece3f6641ccca66937ef720f4dce | Shell | luyong6/snap | /actions/hls_sponge/tests/test_0x10141001.sh | UTF-8 | 2,408 | 3.84375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright 2017 International Business Machines
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | true |
cd2ed25fe46452000ca886e33e76dcaa615cc35c | Shell | chrleyer/installmc-nano | /Install-MC-NANO.sh | UTF-8 | 1,422 | 3.015625 | 3 | [] | no_license | #!/bin/sh
#
# This list of commands will install MC and NANO on systems
# based on Scientific Linux 7.x, CentOS 7 or RedHat 7
#
# This is targeting the installation as a generic user
# if you don't have root access to the host
#
mkdir ~/bin
echo 'if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH"; fi' >> ~... | true |
cc7eeeb2110b8bf5e8c2c774d2c0ab0448e97752 | Shell | delkyd/alfheim_linux-PKGBUILDS | /super-flat-remix-icon-theme/PKGBUILD | UTF-8 | 938 | 2.609375 | 3 | [] | no_license | # Maintainer: Frederic Bezies <fredbezies at gmail dot com>
# Contributor: Thiago Perrotta <perrotta dot thiago at poli dot ufrj dot br>
# Contributor: Ivan Petruk <localizator@ukr.net>
pkgname=super-flat-remix-icon-theme
_pkgname=Flat-Remix
pkgver=20161024
pkgrel=1
pkgdesc='a pretty simple icon theme, derived from Ult... | true |
382dbfede3cbdaa9c8a68cfa69a07a7fc251bf21 | Shell | erick-rivas/django-reference | /bin/dump.sh | UTF-8 | 528 | 3.25 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Seed builder
# AUTO_GENERATED (Read only)
RUNNING=$(sudo docker compose -f bin/docker/docker-compose.yml ps --services --filter "status=running")
if [ $RUNNING -z ]; then
echo "ERROR: Before executing bin/dump.sh, start server with bin/start.sh"
exit 1
fi
MODEL_NAME="None"
FILE_PATH="./dump.yaml"
i... | true |
835ab93d43edbcb7fb031e26b0d880256c806855 | Shell | PiraMew/Maya | /2_phylo_dating/1.2_concatenate.sh | UTF-8 | 3,638 | 3.8125 | 4 | [] | no_license | #!/bin/bash
###########################################################################
# Project: Orania Phylogeny MT
# Script: hashrf.sh
# --- Action: Concatenate the selected gene alignments for dating
# --- Input: selected genes
# --- Output: concatenated alignments
# Author: Maya Schroedl
########################... | true |
140df6b41a122d03e18993860992edd4a93986f6 | Shell | JasonMorgan/istio-getting-started | /02_setup-bookinfo.sh | UTF-8 | 1,656 | 2.609375 | 3 | [] | no_license | #!/bin/bash
REL=$(curl -L -s https://api.github.com/repos/istio/istio/releases | \
grep tag_name | sed "s/ *\"tag_name\": *\"\\(.*\\)\",*/\\1/" | \
grep -v -E "(alpha|beta|rc)\.[0-9]$" | sort -t"." -k 1,1 -k 2,2 -k 3,3 -k 4,4 | tail -n 1)
kubectl apply -f istio-$R... | true |
728340b938fbfa4324be16440f6a624804f190f8 | Shell | attilagk/BSM-research | /notebook/2018-03-20-benchmark-testdata/do-aln-subregion | UTF-8 | 407 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
#Calling this script (without any argument) excises 1, 10 long
#subregions from Mix1A.bam and Mix3A.bam
chromA=1
startA="50,000,000"
maindir="/projects/bsm/alignments/ceph-benchmark/"
#for L in 100; do
for L in 1 10 100; do
for BN in Mix{1,3}A
do
inbam="$maindir/${BN}.bam"
... | true |
763b58e019670119d640d0a7d988b9a86a8e6667 | Shell | andymasteroffish/IntimateCodex | /intimate_codex_linux_project/setup.sh | UTF-8 | 834 | 3.75 | 4 | [] | no_license | #!/bin/bash
# Paths
SCRIPT=$(realpath $0)
SCRIPT_ROOT_PATH=$(dirname $SCRIPT)
LIBRARY_PATH="${SCRIPT_ROOT_PATH}/../libs"
# URLs
OPENFRAMEWORKS_SOURCE_URL="http://openframeworks.cc/versions/v0.9.3/of_v0.9.3_linux64_release.tar.gz"
function main()
{
# Create library directory
mkdir ${LIBRARY_PATH}
# Download OpenF... | true |
e0bb662f3acd1b2c59c63bcbe051afa54aa21a01 | Shell | build2/build2 | /bootstrap.sh | UTF-8 | 3,128 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# file : bootstrap.sh
# license : MIT; see accompanying LICENSE file
usage="Usage: $0 [-h] [--libbutl <dir>] [--host <triplet>] <cxx> [<cxx-option>...]"
diag ()
{
echo "$*" 1>&2
}
cxx=
libbutl=
host=
while test $# -ne 0; do
case "$1" in
-h|--help)
diag
diag "$usage"
diag
... | true |
821c26f7070c51cbd9ec065f3e9586512e698fd5 | Shell | tunnckoCore/dotfiles | /home/.config/i3/scripts/trash | UTF-8 | 780 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# https://github.com/Anachron/i3blocks/blob/master/blocks/trash
TRASH_DIRECTORY="${BLOCK_INSTANCE}"
if [[ "${TRASH_DIRECTORY}" = "" ]]; then
TRASH_DIRECTORY="${XDG_DATA_HOME:-${HOME}/.local/share}/Trash"
fi
# Left click
if [[ "${BLOCK_BUTTON}" -eq 1 ]]; then
xdg-open "${TRASH_DIRECTORY}/files"
# Righ... | true |
18c0498c8eba9d8b71307c1d844374ec701c62ab | Shell | sangohan/benchmark-runner | /scripts/hxcpp/setup-haxeNightly.sh | UTF-8 | 174 | 2.671875 | 3 | [] | no_license | #!/bin/bash
readonly HXCPP_BASE="$TOOLING_BASE/hxcpp/hxcppHaxeNightly"
if [ -d "$HXCPP_BASE" ]; then
lix dev hxcpp "$HXCPP_BASE"
haxelib dev hxcpp "$HXCPP_BASE"
fi
| true |
a41364b1e278beb441c3f62fcd09ba5bf6236857 | Shell | IbpTeam/build | /deb/init/init_custard.sh | UTF-8 | 4,317 | 3.171875 | 3 | [] | no_license | #!/bin/bash
echo create resources directory...
basePath=~/.custard
configPath=$basePath/config
resourcePath=$basePath/resource
name=`whoami`
userConifg="var uniqueID=\"rio"$RANDOM"rio\";\nexports.uniqueID=uniqueID;\nvar Account=\""$name"\";\nexports.Account=Account;"
#If directory exists, remove it.
if [ -e $basePath ... | true |
81a8c9b80b3de8e35942cfcfa0bb4e716bafbb82 | Shell | berchev/bash_scripting_academy | /task13.sh | UTF-8 | 147 | 3.453125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "list all scripts"
SCRIPTS=`ls *.sh`
for i in $SCRIPTS; do
$DISPLAY="`cat $i`"
echo "Check the content: $i - $DISPLAY"
done
| true |
b8ab65791f1dafc4e6eeb925e30267894eb2e4dc | Shell | zeltak/dotfiles | /LAPTOP/scripts/sorter/filesort_downloads.sh | UTF-8 | 2,463 | 3.1875 | 3 | [] | no_license | #!/bin/bash
#
#
#
################################################
#
# Functions
#
################################################
DIR=$(pwd)
Music()
{
if [ -e "$DIR/Music" ];then
echo -n ""
else
mkdir Music
fi
mv *.mp3 "$DIR/Music" 2>/dev/null
mv *.wav "$DIR/Music" 2>/dev/null
mv *.midi "$DIR/Music... | true |
24f1e384da5b975fbc602f3a18a5e4c89b58ee9d | Shell | shuji-koike/dotfiles | /zsh/docker.zsh | UTF-8 | 1,341 | 2.546875 | 3 | [] | no_license | alias images='docker images'
alias images-names='docker images --format "{{.Repository}}:{{.Tag}}"'
alias images-pull='docker images --format "{{.Repository}}:{{.Tag}}" | grep -v ":<none>" | grep -v "/" | xargs -n1 docker pull'
alias images-clean='docker system prune -f'
alias upgrade-docker='images-pull && images-cl... | true |
7eda4c1d990364497cfcb5a4cf5bb6bb842fd25b | Shell | XifeiNi/COMP2041 | /ass01/shrug-rm | UTF-8 | 2,437 | 3.859375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/dash
# @throw Error: not a shrug repo
if [ ! -d .shrug ]
then
echo "$0: error: no .shrug directory containing shrug repository exists" 1>&2
exit 1
fi
force=0
cache=0
if echo "$@" | grep -Eq '\s?--force\s?'
then
force=1
fi
if echo "$@" | grep -Eq '\s?--cached\s?'
then
cache=1
fi
filesToRemove=$(ec... | true |
03f5edcbf2fd8e5de484f0804ea14ea170f50cdd | Shell | swastiksuman/IntoShell | /conditionals.sh | UTF-8 | 72 | 2.515625 | 3 | [] | no_license | #!/bin/bash
if [ 3 = 3 ]
then
echo "equals"
else
echo "not equals"
fi
| true |
06ee4b71992e999802941122ffe7d3782b3a14ca | Shell | nervosnetwork/ckb-development-update | /bin/publish | UTF-8 | 687 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -u
[ -n "${DEBUG:-}" ] && set -x || true
YYYY="$(date '+%Y')"
SEQ_SEARCH_IN="$YYYY"
if ! [ -d "$YYYY" ]; then
SEQ_SEARCH_IN=$(( SEQ_SEARCH_IN - 1 ))
fi
POST_FILE="$(ls "$SEQ_SEARCH_IN" | tail -n 1)"
TITLE="$(head -n 1 "$SEQ_SEARCH_IN/$POST_FILE" | sed 's/^# //')"
# httpie
http --igno... | true |
fa907cab531d5d0559287ab6b8eb12514da86a4b | Shell | ktan2020/legacy-automation | /tools/soaprunner | UTF-8 | 2,844 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo " *** soaprunner called with params: [$*] ***"
export SOAPUI_HOME="$TOOLCHAIN/libs/soapui"
pushd $SOAPUI_HOME >/dev/null
SOAPUI_CLASSPATH=
for JAR in $(ls bin/soapui.jar lib/* bin/ext/jsch.jar); do
SOAPUI_CLASSPATH=$SOAPUI_CLASSPATH:$SOAPUI_HOME/$JAR
done
popd >/dev/null
echo " @@@ SOAPUI_CLASSP... | true |
af1e3efe613a9d6a3057a1f71755f391691c8c14 | Shell | dernestnelson/revature-p0 | /git-node-project.sh | UTF-8 | 1,504 | 3.921875 | 4 | [] | no_license | ### setting up a new git repository structure for node application ###
#!/bin/bash
## verify git/node
if ! [ -n $(which git) ] && ! [ -n $(which node) ]; then
echo "Either git or node (or both) is not installed"
exit 1
fi
## checks if directory is empty
dir=$1
if ! [ -d $dir ]; then ##makes the directory if not t... | true |
3b7a68676e7d08469dd7647b7a5bfc58a65843b7 | Shell | willsheppard/linux-scripts | /readlog | UTF-8 | 656 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# Pretty-prints a JSON-format log file
#export COMMAND='json_pp' # From Perl JSON module. Does not sort keys
export COMMAND='python -mjson.tool' # Sorts keys
perl -lne'$q = "\047"; s/$q/$q\\$q$q/g; $tr = ("=") x 120; print $tr; $s = "echo $q$_$q | $ENV{COMMAND}"; print `$s`' $@
# Explanation:
# * define... | true |
cbef9df6394d1942f9ccae7abd8fbdfee3e3a41d | Shell | nillyse/SEM5_PRIW | /lab07/script.sh | UTF-8 | 264 | 2.546875 | 3 | [] | no_license | #!/bin/bash
#ka44367
gcc -g lab07.c -o lab07 -fopenmp -fpermissive -O3 -lm
n=( 1 2 3 4 5 6 7)
image_sizes=( 420 1200 2520 )
for image_size in "${image_sizes[@]}"
do
for thread in "${n[@]}"
do
./lab07 ${thread} ${image_size}
done
done
| true |
8d2d38dff5a0a8334088582c67410c9b57ce57a0 | Shell | sumsted/roboteye | /scripts/check_roboteye.sh | UTF-8 | 339 | 2.546875 | 3 | [] | no_license | if ps -ef | grep "roboteye.py" | grep -v grep >/dev/null 2>&1; then
echo "roboteye is already running"
exit 0
else
echo "**** starting roboteye ****"
nohup /home/pi/webapps/roboteye/roboteye/scripts/start_roboteye.sh > /home/pi/projects/logs/nohup_roboteye.out 2> /home/pi/projects/logs/nohup_roboteye.e... | true |
ee72ba0d28cddf3358c975334f05c1c5e4e0a9e4 | Shell | meteor/minisat-emscripten | /hugs/build.sh | UTF-8 | 1,367 | 3.53125 | 4 | [] | no_license | #!/bin/bash
DOWNLOAD_DIR=http://cvs.haskell.org/Hugs/downloads/2006-09/
HUGS_FILENAME=hugs98-Sep2006
HUGS_TAR_FILE=${HUGS_FILENAME}.tar.gz
EMCONFIGURE=emconfigure
EMMAKE=emmake
EMCC=emcc
NODE=node
echo "Setting up directories"
mkdir -p build
cd build
if [ ! -e "$HUGS_TAR_FILE" ]; then
wget ${DOWNLOAD_DIR}${HUGS_... | true |
bc084ba6402612a84da0698ceffbb2920b19e2cc | Shell | ggirou/spark_rc_car | /controllers/application.sh | UTF-8 | 869 | 3.046875 | 3 | [] | no_license | function rc_while() {
while read -n 1 _c; do
rc "$_c"
done
}
function rc() {
_base_command='curl https://api.spark.io/v1/devices/'"$SPARK_CORE_DEVICE_ID"'/rccar -d access_token='"$SPARK_CORE_ACCESS_TOKEN"' -d "params=rc,__CMD__"'
case "$1" in
i) echo "FORWARD march!"
_command=$(echo "${_base_command}... | true |
710858ecbaea0bfae9688a6028b615e045e02a09 | Shell | navikt/bidrag-actions | /maven-verify-dependencies/verify.sh | UTF-8 | 739 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
if [ ! -z "$INPUT_SRC_FOLDER" ]
then
cd "$INPUT_SRC_FOLDER"
fi
echo "Working directory"
pwd
if [ -z "$INPUT_MAVEN_IMAGE" ]; then
mvn -B dependency:tree | tee .dependency-tree
else
docker run --rm -v "$PWD":/usr/src/mymaven -v "$HOME"/.m2:/root/.m2 -w /usr/src/mymaven \
"$INPUT_MAVEN_IMAG... | true |
31fb10c77a1b6c438cc9a545b416a61118f38807 | Shell | lisuke/repo | /archlinuxcn/libquotient-encryption/PKGBUILD | UTF-8 | 1,088 | 2.578125 | 3 | [] | no_license | pkgname=libquotient-encryption
pkgver=0.7.1
pkgrel=2
pkgdesc="A Qt5 library to write cross-platform clients for Matrix, with experimental encryption support enabled"
arch=(x86_64 aarch64)
url="https://github.com/quotient-im/libQuotient"
license=("LGPL2")
depends=("qt5-base" "qt5-multimedia" "qtkeychain-qt5" "libolm")
m... | true |
c10365db8d757799c3140ee62bf3c4cd476876b0 | Shell | petritlame/laravel-docker | /start | UTF-8 | 1,367 | 3.75 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
upOption=""
login=false
optspec=":ld"
while getopts "$optspec" optchar; do
case "${optchar}" in
l)
echo "->Login after start up" >&2
login=true
upOption="-d"
;;
esac
case "${optchar}" in
d)
echo "->Start up ... | true |
f00dcac32a823944ebac0156d9b798380940b9d7 | Shell | mariusor/dotfiles | /.local/bin/free.sh | UTF-8 | 973 | 3.09375 | 3 | [] | no_license | #!/bin/bash
LOW_WATERMARK=$(awk '$1 == "low" {LOW_WATERMARK += $2} END {print LOW_WATERMARK * 4096}' /proc/zoneinfo)
MEMINFO=$(</proc/meminfo)
MEMINFO_MEMTOTAL=$(echo "${MEMINFO}" | awk '$1 == "MemTotal:" {print $2 * 1024}')
MEMINFO_MEMFREE=$(echo "${MEMINFO}" | awk '$1 == "MemFree:" {print $2 * 1024}')
MEMINFO_FILE... | true |
d992ee4848c062312da15d58f0ebd2c05a19455b | Shell | huangyingw/loadrc | /enpass_install.sh | UTF-8 | 337 | 2.890625 | 3 | [] | no_license | #!/bin/zsh
SCRIPT=$(realpath "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
cd "$SCRIPTPATH"
echo "deb https://apt.enpass.io/ stable main" > \
/etc/apt/sources.list.d/enpass.list
#And import key that is used to sign the release:
wget -O - https://apt.enpass.io/keys/enpass-linux.key | apt-key add -
apt-get update
apt-get i... | true |
dcd0827ce35216a065f869e79be76852ae5e8748 | Shell | sumanthvasista107/Demo | /AddRandom.sh | UTF-8 | 90 | 2.6875 | 3 | [] | no_license | #!/bin/bash -x
number1=$((RANDOM%10))
number2=$((RANDOM%10))
echo $(($number1+$number2))
| true |
d9903d41d0441a058b3be7b3321e74300a5621c0 | Shell | omeroner/sysadmin | /scripts/bash/userlist.sh | UTF-8 | 312 | 3 | 3 | [] | no_license | #!/bin/bash
server='
10.10.11.10
10.10.11.11
10.10.11.12
10.10.11.13
'
for host in $server
do
echo $host users list:
#ssh root@$host cat /etc/passwd | awk -F':' '$3>=500 &&$3<=60000{ print $1}'
ssh root@$host cat /etc/passwd | awk -F: '/\/home/ {printf "%s:%s\n",$1,$3}'
echo -------------------------
done
| true |
72729fa48169a5e699918aeacbde5fa92fcddb3d | Shell | jonsk/xgstage0 | /scripts_tools/P075coreutils | UTF-8 | 875 | 3.28125 | 3 | [] | no_license | #!/bin/bash
. functions_pub
PackageName=coreutils-7.6
PackageURL=http://ftp.gnu.org/gnu/coreutils/coreutils-7.6.tar.gz
case "${1}" in
download)
check_and_download $PackageURL
;;
build)
#step0: unpack.
unpack_and_enter $PackageName $PackageURL
#configure
touch man/uname.1 man/hostname.1
cat > config.c... | true |
90fb1cbdda663bfc7c34df21b838e068edd6499a | Shell | ldw-sh-cn/autostack | /autostack-cli/start | UTF-8 | 1,283 | 3.484375 | 3 | [] | no_license | #!/bin/sh
if [ -z $BASE_DIR ];
then
source ./env
fi
echo "启动$*"
START_PG=false
START_REDIS=false
START_TOMCAT=false
CP_REDIS="redis"
CP_PG="pg"
CP_TOMCAT="tomcat"
CP_ALL="all"
for i in "$@"; do
if [[ "$i" = "$CP_REDIS" || "$i" = "$CP_ALL" ]];
then
START_REDIS=true
fi
if [[ "$i" = "$CP_PG" || "$... | true |
653aea1adfa8884443a7bb32aafdd3db573f73e3 | Shell | alvarosg/deepmind-research | /learning_to_simulate/run.sh | UTF-8 | 2,008 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2020 Deepmind Technologies Limited.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | true |
eb0bcc875255b2d39dedad9cd9340f603322b386 | Shell | Python3pkg/ComponentDB | /sbin/cdb_deploy_web_portal.sh | UTF-8 | 4,678 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Copyright (c) UChicago Argonne, LLC. All rights reserved.
# See LICENSE file.
#
# Script used for deploying CDB web portal
# Deployment configuration can be set in etc/$CDB_DB_NAME.deploy.conf file
#
# Usage:
#
# $0 [CDB_DB_NAME] [MODE]
#
# Options for mode include: Dev
MY_DIR=`dirname $0` && cd $MY_D... | true |
f0e4f5e7e7af737ac8cb1ed74d30cb971071be47 | Shell | cyberthal/spacemacs-layer-pianobar | /install-nixlike.sh | UTF-8 | 205 | 2.890625 | 3 | [] | no_license | #!/bin/bash
# find path to repo
SCRIPT_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )"
# symlink personal directory
rm -f ~/.emacs.d/private/pianobar
ln -s $SCRIPT_DIR/ ~/.emacs.d/private/pianobar
| true |
21d442de4784c5b3ad1fb16c21199f8a3568e5c2 | Shell | zerotacg/rsync-backup | /backup-rsync | UTF-8 | 769 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
TYPE=${1,,}
DESTINATION="$2"
ORIGINAL="$3"
BASE_PATH="$(dirname "${DESTINATION}")"
EXCLUDE_FROM="${ORIGINAL}/.rsyncignore"
OPTIONS="\
--archive \
--partial \
--progress \
--one-file-system \
--delete \
--delete-excluded \
--exclude-from=${EXCLUDE_FROM} \
"
case "${TYP... | true |
197c571f0b69f82c2525e97d59c8d2a22305a70e | Shell | EDAAC/OpenDB | /tests/regression-py.sh | UTF-8 | 1,742 | 2.75 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | set -e
BASE_DIR=$(dirname $0)
export PYTHONPATH=$BASE_DIR/../build/src/swig/python:$PYTHONPATH
echo "Running tests .."
echo "================"
echo "[1] Importing opendbpy package"
python3 $BASE_DIR/python/01-import_package_test.py
echo "SUCCESS!"
echo ""
echo "[2] Reading lef files"
python3 $BASE_DIR/python/02-re... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.