code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#!/usr/bin/env bash
echo 'Installing erlang from Canonical Repositories installation...'
apt-get -qy install erlang rabbitmq-server
| jdantonio/vagrant | scripts/erlang.sh | Shell | mit | 134 |
#! /bin/bash
BASEDIR="`pwd`"
SWEETROOT="../../"
cd "$BASEDIR"
# h0=g=f=1
TS=$((120))
OTS=$((TS*20))
RES=128
BENCH="galewsky"
#VISCOSITY=100000
VISCOSITY=0
SIMTIME=720000
PARAMS=""
#PARAMS+=" --output-file-mode bin"
PARAMS+=" -M $RES"
PARAMS+=" --dt $TS"
PARAMS+=" -o $OTS -u $VISCOSITY -t $SIMTIME --benchmark... | schreiberx/sweet | benchmarks_sphere/galewsky_bin_output/run_2_benchmark.sh | Shell | mit | 669 |
#!/bin/bash
set -eu
totp_code="$(
pass show misc/totp-codes |
jq -r -c '.[] | select( .name == "Point: Amazon Web Services" ) | .secret' |
oathtool --base32 --totp -
)"
echo "Logging in... (TOTP code $totp_code)"
"$HOME/git/point-tools/scripts/aws-get-session-token.sh" point "$totp_code"
| ammongit/scripts | work/login-aws.sh | Shell | mit | 294 |
#! /usr/local/bin/bash
strategies=(identity reverse)
usage() {
echo "Usage: $0 [strategies] output_dir file"
echo "available strategies:"
for strat in ${strategies[@]}
do
echo -e " $strat"
done
}
argc=$#
if [ $argc -lt 3 ]
then
usage
exit 1
fi
nstrats=$(expr $argc - 2)
declare -a strats
for i i... | Baltoli/skeletons | scripts/reorder.sh | Shell | mit | 791 |
#!/bin/bash
# install dotfiles
DOT_FILES=( ansible.cfg .ctags .gemrc .gitconfig .gitignore .gitmessage.txt .pryrc .rubocop.yml .tigrc .tmux.conf .vimrc .vimrc.neobundle .zshenv .zshrc .zprofile)
for file in ${DOT_FILES[@]}
do
ln -s $HOME/dotfiles/$file $HOME/
done
# install bin for tmux
BIN_FILES=( battery )
for ... | shifumin/setupfiles | setup_dotfiles.sh | Shell | mit | 868 |
#!/bin/bash
# Copyright 2010-2013 Matus Chochlik. Distributed under the Boost
# Software License, Version 1.0. (See accompanying file
# LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#
exe_path=${1}
lib_name=${2:-libGL.so}
lib_hdr=${3:-$(dirname ${0})/../third_party/include/GL/glcorearb.h}
if [ ${#ex... | vif/3D-STG | ThirdParty/oglplus-develop/tools/_get_exe_gl_reqs.sh | Shell | mit | 1,282 |
#!/usr/bin/env bash
CODE_PATH=${CODE_PATH:-/home/onur/projects/research/focus/ner-tagger-tensorflow}
EXP_NAME=${1:-default_exp_name}
GPU=${2:-0}
echo 'cd '${CODE_PATH}' && source /usr/local/bin/virtualenvwrapper.sh && workon dynet && source environment-variables && python control_experiments.py -m joint_ner_and_md w... | onurgu/ner-tagger-tensorflow | scripts/run-configurations-for-three-integration_modes.sh | Shell | mit | 987 |
#!/bin/bash
sed -i 's/"psr-4": {/"psr-4": { "Padosoft\\\\Composer\\\\Test\\\\": ".\/vendor\/padosoft\/composer\/tests\/",/g' ./composer.json | alevento/composer | tests/config/sedCommand.sh | Shell | mit | 140 |
#!/bin/bash
xinput set-prop "ETPS/2 Elantech Touchpad" "libinput Tapping Enabled" 1
xinput set-prop "ETPS/2 Elantech Touchpad" 294 0
| krystianbajno/scripts | battery/tap.sh | Shell | mit | 133 |
#!/bin/bash
rm src/*
tar -zxf src.tgz
for n in 1 2 3 4 5 6 7 8 9 A B C; do
rm "Disk${n}"/* "Disk${n}.img"
mv "src/DISK${n}" "Disk${n}"
dd if=/dev/zero of="Disk${n}.img" bs=512 count=2880
mformat -i "Disk${n}.img" -f 1440
done
echo -n>filelist.txt
echo -n>failed.txt
cd ./src
ls|sed 's/\._$//g'|sed 's/_$//g'|while ... | frank-deng/retro-works | misc/processWin31Setup.sh | Shell | mit | 745 |
#!/bin/bash
my_dir="$(dirname "$0")"
source $my_dir/config.sh
if [[ $wd == "" ]]; then
echo "Please specify working dir in config.sh"
exit 1
fi
# Make new dir
outputDirName="output $(date "+%Y-%m-%d %H-%M-%S")"
mkdir "$outputDirName"
function async_collect {
echo "-- $1 - Collecting..."
output=`rsync -q "$... | kabieror/planetlab-scripts | collect-output.sh | Shell | mit | 661 |
echo
echo "Installing Android tools"
brew install --cask android-studio
brew install --cask openmtp # official "Android File Transfer" app for macOS from Google comes with bugs
brew install --cask jd-gui
brew install apktool
brew install dex2jar
brew install jadx
brew install scrcpy
brew install --cask android-platform... | filipmaelbrancke/mac-install | scripts/android.sh | Shell | mit | 327 |
#!/bin/bash -e
echo "Doing merge"
echo "I'm running as user $USER in dir $PWD"
CLI="node ${PWD}/cli.js"
jobData=( $($CLI -q '$.job.name' -q '$.job.id' -q '$.job.baseline.content[?(@.name === "commits")].id[-1:]' --format values load_file ./data.json) )
echo Job name: ${jobData[0]}
jobId=${jobData[1]}
echo Job id: $jo... | Combitech/codefarm | src/scripts/jobs/merge_revision.sh | Shell | mit | 865 |
# src/bash/pgsql-runner/funcs/print-help.help.sh
# v1.0.9
# ---------------------------------------------------------
# todo: add doHelpPrintHelp comments ...
# ---------------------------------------------------------
doHelpPrintHelp(){
doLog "DEBUG START doHelpPrintHelp"
cat doc/txt/pgsql-runner/helps/print-hel... | YordanGeorgiev/pgsql-runner | src/bash/pgsql-runner/helps/print-help.help.sh | Shell | mit | 517 |
echo "This guide will install redis v2.8.19 to your system"
# Update system
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install tcl8.5
# Install redis
# Download source google code
wget http://download.redis.io/releases/redis-2.8.19.tar.gz
tar xzf redis-2.8.19.tar.gz
cd redis-2.8.19
make
mak... | indrasantosa/common-shell-ubuntu | datastore/redis.sh | Shell | mit | 379 |
#!/bin/sh
PATH=/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin
export PATH
cd /home/vixie/work/yeti-dm || exit 1
yeticonf_dm="/home/vixie/work/yeticonf/dm"
(cd $yeticonf_dm; git pull) 2>&1 | grep -v 'Already up-to-date.'
# this is F-root
iana_server="2001:500:2f::f"
#
# first, fetch the iana zone, and... | BII-Lab/Yeti-Project | script/TISF/cronrun-often.sh | Shell | mit | 2,223 |
# os.bash
#
# Platform detection and OS functions.
os.platform() {
case "$(uname -rs)" in
CYGWIN*)
echo cygwin
;;
*WSL2|*microsoft-standard)
echo wsl2
;;
*Microsoft)
echo wsl1
;;
Darwin*)
echo osx
... | ellipsis/ellipsis | src/os.bash | Shell | mit | 456 |
#!/bin/bash
if [ "$NODE_ENV" = "circleci" ]; then
echo "> Starting api server"
cd ~/cache/opencollective-api
PG_DATABASE=opencollective_dvl npm start &
API_PID=$!
cd -
echo "> Starting frontend server"
npm start &
FRONTEND_PID=$!
# Record video and upload them if test fail on CI
CYPRESS_CONFIG="vid... | OpenCollective/frontend | scripts/run_e2e_tests.sh | Shell | mit | 1,111 |
echo "postrm"
# not sure what this does...
%systemd_postun_with_restart hello.service
| mh-cbon/go-bin-rpm | demo/rpm/postrm.sh | Shell | mit | 87 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2014:1148
#
# Security announcement date: 2014-09-04 00:18:56 UTC
# Script generation date: 2017-01-01 21:11:11 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - squid.x86_64:2.6.STABLE21-7.el5_10
#
# L... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2014/CESA-2014:1148.sh | Shell | mit | 638 |
make clean 2>&1 >/dev/null
rm -f matcher
echo "compiling..."
if ! make CFLAGS="-ftest-coverage -fprofile-arcs -DDEBUG_OPT -DFLOATEVAL" 2>/dev/null >/dev/null;
then
echo "compile failed"
exit 1
fi
IFS='
'
for line in `cat sanitychecks.txt | grep -v '^#'`
do
echo CHECK $line
if ! echo $line | (./matcher 2>&1);
then... | bl0ckeduser/symdiff | sanitycheck.sh | Shell | mit | 454 |
../loadClassificationResults -dropAll bioInt /data2/topmodels/CCLEdrugPredictions/results.ra
../loadClassificationResults bioInt /data2/topmodels/CCLEdrugPredictions2/results.ra
../loadClassificationResults bioInt /data2/topmodels/CCLEdrugPredictions3/results.ra
../loadClassificationResults bioInt /data2/topmodels/LGG_... | christopherszeto/hgClassifications | hgClassificationsViewer/hgClassificationsData/cancer2/defaults.sh | Shell | mit | 5,806 |
#!/bin/sh
# If a command fails then the deploy stops
set -e
printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"
# Clear public directory
rm -rf public
# Build the project.
hugo -t cactus
# Add changes to git.
git add .
# Commit changes.
msg="Rebuilding site $(date)"
if [ -n "$*" ]; then
msg="$*"
fi
git co... | imryan/imryan.github.io | deploy.sh | Shell | mit | 390 |
#!/usr/bin/env bash
#Run the Script from the folder you are in...
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
pdflatex "$CURRENT_DIR/thesis_main.tex"
RETVAL="$?"
if [[ "${RETVAL}" -ne 0 ]] ; then
echo "First pdflatex run failed"
exit ${RETVAL}
fi
makeindex thesis_main.nlo -s nomencl.ist -o t... | koep/FOM-LaTeX-Template | compile.sh | Shell | mit | 1,154 |
#!/usr/bin/env bash
problems=0
total=0
for file in `find ./src -name "*.js" -or -name "*.jsx"`
do
total=$((total+1))
if [[ `head -1 $file` != "// @flow" ]];
then
echo "missing '// @flow' in $file"
problems=$((problems+1))
fi
done
if [[ "$problems" == 1 ]]; then
echo "$problems of $total files is... | coreyflynn/jubilation | scripts/flow-check.sh | Shell | mit | 518 |
#!/usr/bin/env bash
NUMBER_OF_APP="$(jq ". | length" backing/config-backing.json)"
for i in `seq 1 $NUMBER_OF_APP`
do
REGX_NAME=".["$i-1"] | .name"
REGX_PORT=".["$i-1"] | .port"
MS_PORT="$(jq "$REGX_PORT" backing/config-backing.json | tr -d '/"')"
PORT_MS_NAME="$(jq "$REGX_NAME" backing/config-backin... | OElabed/ice-microservices | profiles/dev/backing/export-backing.sh | Shell | mit | 1,330 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-44-1
#
# Security announcement date: 2014-09-03 00:00:00 UTC
# Script generation date: 2017-01-01 21:08:48 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - libwpd:0.8.14-1+deb6u1
#
# Last versio... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/i386/2014/DLA-44-1.sh | Shell | mit | 591 |
#!/bin/bash
###################################################################
## This is a template file for new examples. It explains how to ##
## check for various things. ##
## ##
## An example script should exit wit... | JasonGross/coq-tools | examples/run-example-40.sh | Shell | mit | 4,446 |
#!/bin/bash
gyp nkf.gyp --depth=. -f make --generator-output=./out
V=1 make -C out
cp out/out/Default/nkf.so ./
| hnakamur/lua-nkf-native | build.sh | Shell | mit | 112 |
#!/usr/bin/bash
#SBATCH --nodes 1 --ntasks 24 --mem 24G -p intel --time 3-0:00:00
#SBATCH --job-name=AntiSMASH
#SBATCH --output=AntiSMASH.%A_%a.log
CPUS=2
if [ $SLURM_CPUS_ON_NODE ]; then
CPUS=$SLURM_CPUS_ON_NODE
fi
GENBANK=gbk
EXT=gbk
N=1
if [ $1 ]; then
N=$1
elif [ ${SLURM_ARRAY_TASK_ID} ]; then
N=${SLURM_ARR... | stajichlab/Comparative_pipeline | pipeline/run_antismash.sh | Shell | mit | 1,227 |
#!/usr/bin/env bash
set -e
version=${1?No version supplied}
echo "Stop application"
ssh ubuntu@52.62.29.150 "sudo docker rm -f atm"
echo "Start application"
ssh ubuntu@52.62.29.150 "sudo docker run -d -e REDIS_HOST=atm-redis.c156rq.0001.apse2.cache.amazonaws.com --name=atm -p 8080:8080 \"nicholasren/atm-service:$1\""... | aconex-atm/atm-service | scripts/deploy.sh | Shell | mit | 322 |
#!/usr/bin/env bash
#
# AJAlabs.com
#
# macOS Default - macOS Sierra 10.12 = 11.1
# v0.6 beta
#
# This is a customized version of ~/.macos — http://mths.be/macos
# Checkout http://secrets.blacktree.com for a extensive list of defaults
# Only defaults that have been tested to work with macOS 10.12 are enabled
# Exit u... | AJ-Acevedo/dotfiles | init/macos-defaults.sh | Shell | mit | 8,205 |
#!/usr/bin/env bash
# chrome-extension-search.sh
# Stefan Wuensch 2017-08-31
#
# In order to locate Chrome Extensions from only their ID,
# this generates a Google search URL from each Extension ID
# found in your Chrome Extensions folder.
#
# Why is this useful? One day all my Chrome Extensions disappeared.
# Poof! G... | stefan-wuensch/UNIX-tools | chrome-extension-search.sh | Shell | mit | 1,796 |
#!/bin/bash
######################################################
### Script for (semi)automatic Drupal Updates ###
### Author: https://github.com/fdellwing ###
### Date: 03.06.2019 ###
### Contact: f.dellwing@netfutura.de ###
#################################... | fdellwing/drupal_up | drupal-up.sh | Shell | mit | 6,953 |
#!/bin/sh
#
# Vivado(TM)
# runme.sh: a Vivado-generated Runs Script for UNIX
# Copyright 1986-2015 Xilinx, Inc. All Rights Reserved.
#
if [ -z "$PATH" ]; then
PATH=/opt/Xilinx/Vivado/2015.4/ids_lite/ISE/bin/lin64:/opt/Xilinx/Vivado/2015.4/bin
else
PATH=/opt/Xilinx/Vivado/2015.4/ids_lite/ISE/bin/lin64:/opt/Xilin... | dries007/Basys3 | FPGA-Z/FPGA-Z.runs/impl_1/runme.sh | Shell | mit | 977 |
#! /bin/bash/
# Install terraform
mkdir /tmp/terraform_installation
pushd /tmp/terraform_installation
# Remove any existing .zip files
find . -name "terraform_*linux_amd64*zip*" -delete
# Webscrape the dev's page for the URL of the latest version, and download it
curl --silent https://www.terraform.io/downloads.html... | brendan-R/dotfiles | os/install_terraform.sh | Shell | mit | 1,028 |
#!/bin/tcsh
#
#$ -cwd
#$ -q ib1.q
#$ -N all_dekode_jobs
#$ -pe ib-hydra 8
date
module add mpich2-intel
module add software-2014
nohup python run_dekode_for.py
date
exit 0
| albalu/dekode | submit_run_dekode.sh | Shell | mit | 177 |
#!/bin/bash
TAG=$1
docker tag lammps/lammps:centos7 lammps/lammps:${TAG}_centos7_openmpi_py3
docker tag lammps/lammps:rockylinux8 lammps/lammps:${TAG}_rockylinux8_openmpi_py3
docker tag lammps/lammps:ubuntu18.04 lammps/lammps:${TAG}_ubuntu18.04_openmpi_py3
docker tag lammps/lammps:ubuntu20.04 lammps/lammps:${TAG}_ubunt... | lammps/lammps-packages | docker/apply_tag.sh | Shell | mit | 339 |
#!/bin/bash
yum install -y python-devel
pip install virtualenv
pip install virtualenvwrapper
echo "Configure virtualenvwrapper..."
cat >> /home/vagrant/.bashrc << EOF
export WORKON_HOME='/home/vagrant/venvs'
source /usr/bin/virtualenvwrapper.sh
EOF
| LandRegistry/mint | provision.sh | Shell | mit | 255 |
#!/bin/bash
echo 'Chapter number: '
read n
echo 'Chapter name: '
read m
mkdir CH$n-$m
cd CH$n-$m
mkdir images
sed -e "s/{NUMBER}/$n/" ../Template/Slides.tex > CH$n-Slides.tex
sed -e "s/{NUMBER}/$n/" ../Template/Handout.tex > CH$n-Handout.tex
sed -e "s/{NUMBER}/$n/" ../Template/CMakeLists.txt > CMakeLists.txt
cp ../Te... | mvy/TC-INFO-ASR4-UPVM-YS | initiate.sh | Shell | mit | 358 |
#!/bin/bash
while getopts "n:s:t:b:m:d:" opt; do
case "$opt" in
n)
name="${OPTARG}" ;;
s)
src="${OPTARG}" ;;
t)
target="${OPTARG}" ;;
b)
build="${OPTARG}" ;;
m)
mysrc="${OPTARG}" ;;
d)
ver="${OPTARG}" ;;
*)
usage ;;
esac
done
src="${src:-./$n... | xiezhenye/my-plugin-builder | plugin_builder.sh | Shell | mit | 1,366 |
set -e
readonly NUMARGS=$#
readonly INFOLDER=$1
readonly OUTFOLDER=$2
usage() {
echo "USAGE: ./clone.sh base_image_folder out_folder"
}
makeandcopy() {
mkdir "$OUTFOLDER"
cp "$INFOLDER"/*-"$VMFILE"* "$OUTFOLDER"/
cp "$INFOLDER"/*.vmx "$OUTFOLDER"/
}
main() {
if [ $NUMARGS -le 1 ]
then
usage
exit 1... | pddenhar/esxi-linked-clone | clone.sh | Shell | mit | 2,832 |
#!/bin/bash
vagrant provision master
vagrant ssh master -c "sudo salt \\* --state-output=mixed state.highstate" | JustinCarmony/fun-with-redis-2 | bin/highstate.sh | Shell | mit | 111 |
#!/bin/sh
wget -q -O - https://deb.nodesource.com/setup_6.x | bash -
| leodutra/shell-scripts | environment/ubuntu-14-04/repository-setup/node-js.sh | Shell | mit | 69 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2910-1
#
# Security announcement date: 2014-04-18 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:54 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - qemu-kvm:0.12.5+dfsg-5+squeeze11
#... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2014/DSA-2910-1.sh | Shell | mit | 645 |
#!/bin/sh
_COMPOSER=$DIRECTORY"composer.phar"
_AUTOLOAD=$DIRECTORY"vendor/autoload.php"
if [ ! -z $DIRECTORY ]
then
if [ ! -f $_COMPOSER ]; then
curl -sS https://getcomposer.org/installer | php -- --install-dir=$DIRECTORY
fi
php $_COMPOSER install --dev --working-dir=$DIRECTORY
else
if [ ! -f $_COMPOSER ]... | giovanniramos/PDO4You | install.sh | Shell | mit | 550 |
julia -e "Base.compilecache(\"BinDeps\")" && \
julia -e "Base.compilecache(\"Cairo\")" && \
julia -e "Base.compilecache(\"Calculus\")" && \
julia -e "Base.compilecache(\"Clustering\")" && \
julia -e "Base.compilecache(\"Compose\")" && \
julia -e "Base.compilecache(\"DataArrays\")" && \
julia -e "Base.compilecache(\"Dat... | QinetiQ-datascience/Docker-Data-Science | Scripts/Julia/install_julia_pkgs_from_src.sh | Shell | mit | 1,582 |
#!/bin/bash -eux
# codename of distro
LSB_RELEASE=$(lsb_release -sc)
# Prepare puppetlabs repo
wget http://apt.puppetlabs.com/puppetlabs-release-${LSB_RELEASE}.deb
dpkg -i puppetlabs-release-${LSB_RELEASE}.deb
apt-get -y update
# Install puppet/facter
apt-get -y install puppet facter
rm -f puppetlabs-release-${LSB_R... | uport/loopin | boxing/alphabox/packer/scripts/puppet.sh | Shell | mit | 399 |
auto-format()
{
vim $@ +"argdo exec ':norm gg=G' | exec 'call maxmellon#remove_whitespace()'" +q!
}
| MaxMEllon/.dotfiles | zsh/functions/auto-format.zsh | Shell | mit | 102 |
#!/bin/bash
echo /opt/vc/lib > /etc/ld.so.conf
ldconfig
cp RPi_Cam_Web_Interface/bin/raspimjpeg /opt/vc/bin/
chmod 755 /opt/vc/bin/raspimjpeg
if [ ! -e /usr/bin/raspimjpeg ]; then
sudo ln -s /opt/vc/bin/raspimjpeg /usr/bin/raspimjpeg
fi
| droogmic/rpi-cam-web-docker | setup/docker-setup.sh | Shell | mit | 241 |
#!/bin/bash
db_name=$1
db_user=$2
osm_data_file=$3
echo "============ Multimodal graph builder ============"
echo "======== Step 1 of 10: Cleanup environment... ========"
mkdir -p tmp
mkdir -p bak
#rm csv/vertices.csv
#rm csv/edges.csv
#rm csv/car_parkings.csv
echo "======== done! ========"
# backup old database if i... | tumluliu/mmgraphdb-builder | build_mmrp_db.sh | Shell | mit | 5,181 |
#!/bin/bash
date > /etc/box_build_time
SSH_USER=${SSH_USERNAME:-vagrant}
SSH_PASS=${SSH_PASSWORD:-vagrant}
SSH_USER_HOME=${SSH_USER_HOME:-/home/${SSH_USER}}
VAGRANT_INSECURE_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA6NF8iallvQVp22WDkTkyrtvp9eWW6A8YVr+kz4TjGYe7gHzIw+niNltGEFHzD8+v1I2YJ6oXevct1YeS0o9HZyN1Q9qgCgzUFtdOKLv... | KEAOSolutions/development_environment | packer/vagrant.sh | Shell | mit | 1,602 |
#!/bin/bash
prmd combine -m meta.json ./schemata > schema.json
| richlab-corp/schema-to-db-json | test/fixtures/create.sh | Shell | mit | 63 |
#!/bin/bash
# SAVED SSH AGENT
[[ -s "$HOME/.ssh/agent.out" ]] && source ~/.ssh/agent.out
# make sure ssh agent is always running
if ssh-add -l 2>&1 | grep -q -i -E 'could not open|No such file' || [[ ! -s "$HOME/.ssh/agent.out" ]] ; then
eval `ssh-agent` &>/dev/null
fi
# save ssh agent info
echo "export $(env | gr... | rafecolton/bash-starter-kit | .bash_profile.d/ssh_agent.sh | Shell | mit | 376 |
#!/usr/bin/expect -f
spawn twine upload -r pypi dist/*.tar.gz
expect "Enter your username:"
send "$env(PYPI_USER)\n"
expect "Enter your password:"
send "$env(PYPI_PASSWORD)\n"
interact | srgrr/RoundCreator | upload_pypi.sh | Shell | mit | 196 |
#!/bin/sh
################################################################################
# Title : generateDocumentationAndDeploy.sh
# Date created : 2016/02/22
# Notes : Edited by Stefan Moebius for TurboWavelets.Net project
__AUTHOR__="Jeroen de Bruijn"
# Preconditions:
# - Packages doxygen doxygen... | codeprof/TurboWavelets.Net | generateDocumentationAndDeploy.sh | Shell | mit | 5,154 |
#!/bin/ash
scriptpath="$( cd "$(dirname "$0")" ; pwd -P )"
#!/bin/sh
if [ "$#" -ne 1 ] || ! [ -f "$1" ]; then
echo "Usage: $0 logfile" >&2
exit 1
fi
logfile=$1
# Load config
source $scriptpath/config.sh
mailsend -f $mailsender -t $recipientshourly -smtp $mailsmtp -startssl -user $mailuser -auth -pass $mailpassw... | hb128/gargoyle-flexible-quotas | send-mail-hourly.sh | Shell | mit | 408 |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-DAE_MLP_5_lin_bin_DAE_relu
#SBATCH -e Deep-DAE_MLP_5_lin_bin_DAE_relu.err.txt
#SBATCH -o Deep-DAE_MLP_5_lin_bin_DAE_relu.out.txt
source /etc/profile.modules
module load gcc
module load matlab
cd ~... | aciditeam/matlab-ts | jobs/deepJobs_DAE_MLP_5_lin_bin_DAE_relu.sh | Shell | mit | 611 |
#combine, sort and index a bam file
samtools merge -f combined.bam */accepted_hits.bam
samtools sort -f combined.bam combined.sorted
samtools index combined.sorted.bam
#filter a bam file for a particular chromosome set (see http://seqanswers.com/forums/showthread.php?t=6892)
samtools view -h *sorted.bam | awk '$3=="ch... | davebridges/biomolecule-scripts | RNAseq/Shell/samtools.sh | Shell | cc0-1.0 | 589 |
#!/bin/csh
echo "-------------------"
echo "- SH.DESIGN.Bash -"
echo "- KO -"
echo "-------------------"
echo C-Shell script
| dupuisa/i-CodeCNES | shell-rules/src/test/resources/SH/DESIGN/Bash/error.sh | Shell | epl-1.0 | 139 |
#!/bin/bash
source $(dirname $0)/vars.sh
test -f "$TWISTED_PID" && kill $(< "$TWISTED_PID") && rm -f "$TWISTED_PID"
| lanjelot/twisted-honeypots | stop.sh | Shell | gpl-2.0 | 118 |
# function.inc.bash - funkybackup global functions
#
# For more details about the script and to me goto
# http://www.funkytwig.com/blog/funkybackup
#
# (c) 2015 Ben Edwards (funkytwig.com)
# You are alowed to use the script if you keep this head0er
# and do not redistibute it, just send people to the URL
#
# Ver C... | funkytwig/funkybackup | function.inc.bash | Shell | gpl-2.0 | 1,713 |
#
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | zyrill/android_device_lenovo_b8080h | vendorsetup.sh | Shell | gpl-2.0 | 870 |
#!/bin/bash
### USAGE:
## installs printer ${PRINTER_NAME}
## with driver ${PRINTER_DRIVER}
## and ${PRINTER_LOCATION}
## and ${PRINTER_CONNECTION}
##
## AND should be named after printer modell
## example: installPrinter_Brother_HL-7050.sh
##
## BECAUSE, enables installation of new printer with new name
## without p... | edvapp/autoinstall | laus/scriptsForClasses/APP/R216/010-installPrinter-HP_LaserJet_p2055dn.sh | Shell | gpl-2.0 | 1,575 |
#!/bin/bash
export PATH=/data/apps/bin:$PATH
cd /data/Lacuna-Server-Open/bin
perl generate_docs.pl > /dev/null
killall -HUP start_server
| plainblack/Lacuna-Server-Open | bin/restart_starman.sh | Shell | gpl-2.0 | 137 |
#!/bin/bash
PROJECTS=~/projects
GITHUB_HOME="https://raw.githubusercontent.com/lorenzocipriani/RaspberryPI"
echo -e "\n\nInstall PicoBorg Reverse"
if [ ! -d "${PROJECTS}/picoborgrev" ]
then
mkdir -p $PROJECTS/picoborgrev
fi
cd $PROJECTS/picoborgrev
wget http://www.piborg.org/downloads/picoborgrev/examples.zip
unzip... | lorenzocipriani/RaspberryPI | config/ibm-coderdojo-projects.sh | Shell | gpl-2.0 | 924 |
# Openstack icehouse installation script on ubuntu 14.04
# by kasidit chanchio
# vasabilab, dept of computer science,
# Thammasat University, Thailand
#
# Copyright 2014 Kasidit Chanchio
#
# run with sudo or as root.
#
#!/bin/bash -x
cd $HOME/OPSInstaller/controller
pwd
#
echo "manual" > /etc/init/keystone.override
... | kasidit/openstack-mitaka-installer | documents/OPSInstaller.example/controller/exe-stage09-SUDO-keystone.sh | Shell | gpl-2.0 | 978 |
convert images/OCS-514-A.png -crop 1560x1411+0+0 +repage images/OCS-514-A-0.png
convert images/OCS-514-A.png -crop 1560x557+0+1414 +repage images/OCS-514-A-1.png
convert images/OCS-514-A.png -crop 1560x693+0+1976 +repage images/OCS-514-A-2.png
convert images/OCS-514-A.png -crop 1560x453+0+2690 +repage images/OCS-514-A-... | jonnymwalker/Staroslavjanskij-Slovar | scripts/findindents.OCS-514.sh | Shell | gpl-2.0 | 1,367 |
python3 runmeka.py Arts1500 -f 5 -c 26 -mc meka.classifiers.multilabel.BR -o ./exp/meka/nbbr/ > ./exp/meka/nbbr/arts.log
python3 runmeka.py birds -c 19 -f 5 -mc meka.classifiers.multilabel.BR -o ./exp/meka/nbbr/ > ./exp/meka/nbbr/birds.log
python3 runmeka.py Business1500 -c 30 -f 5 -mc meka.classifiers.multilabel.BR -o... | nicoladimauro/dcsn | scripts/PGM16/runmekaNB.sh | Shell | gpl-2.0 | 2,676 |
# ----------------------------------------------------------------------------
# Calcula porcentagens.
# Se informado um número, mostra sua tabela de porcentagens.
# Se informados dois números, mostra a porcentagem relativa entre eles.
# Se informados um número e uma porcentagem, mostra o valor da porcentagem.
# Se inf... | faustovaz/funcoeszz | zz/zzporcento.sh | Shell | gpl-2.0 | 5,134 |
#!/bin/bash
#
# Test the capture engine of the Wireshark tools
#
# $Id: suite-capture.sh 43536 2012-06-28 22:56:06Z darkjames $
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 2005 Ulf Lamping
#
# This program is free software; you can redistribute it and/or
# modify it und... | MavEtJu/wireshark-lean | test/suite-capture.sh | Shell | gpl-2.0 | 13,568 |
csp(){
local file=$1
sed -i 's/\s\+$//' $file
}
git-prompt(){
[[ $- == *i* ]] && . ~/myscripts/git-prompt
which hub && ~/myscripts/hub.bash_completion.sh
}
alias gs='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff'
alias ga='git add'
alias gau='git add --update'
alias gc='git commit -v'
... | agustim/myscripts | git.sh | Shell | gpl-2.0 | 721 |
#!/bin/bash
KERNEL_DIR=$PWD
INITRAMFS_SRC_DIR=../sc02c_initramfs
INITRAMFS_TMP_DIR=/tmp/sc02c_initramfs
cpoy_initramfs()
{
if [ -d $INITRAMFS_TMP_DIR ]; then
rm -rf $INITRAMFS_TMP_DIR
fi
cp -a $INITRAMFS_SRC_DIR $(dirname $INITRAMFS_TMP_DIR)
rm -rf $INITRAMFS_TMP_DIR/.git
find $INITRAMFS_TMP_DIR -nam... | sakuramilk/sc02c_kernel_gb | _build.sh | Shell | gpl-2.0 | 4,429 |
#!/bin/bash
# Check permission
if [ "$UID" != 0 ]; then
echo "Must be root to run this script."
fi
# Part 1
function run_part_1 {
useradd student; passwd student; echo $SHELL; who; who -q; who -b; date; cal -m 1 2003; cal -y 2003; su student;
exit; # Return to root
}
# Part 2
function run_part_2 {
pwd; echo $PW... | dstsmallbird/OSExpriment | exp1/exp1.sh | Shell | gpl-2.0 | 1,221 |
#!/bin/bash
for RANGE in 0x00A0:0xD7FF 0xE000:0xFDCF 0xFDF0:0xFFFD \
0x10000:0x1FFFD 0x20000:0x2FFFD \
0x30000:0x3FFFD 0x40000:0x4FFFD \
0x50000:0x5FFFD 0x60000:0x6FFFD \
0x70000:0x7FFFD 0x80000:0x8FFFD \
0x90000:0x9FFFD 0xA0000:0xAFFFD \
... | sauliusg/cod-tools | src/components/codcif/tests/cifparse_135.sh | Shell | gpl-2.0 | 900 |
#!/bin/bash
# **********************************************************
# maj_ff_iceweasel.sh
# Script de rétrogradage de iceweasel-backports en version esr
# 20160316
# **********************************************************
#Couleurs
ROUGE="\\033[1;31m"
VERT="\\033[1;32m"
BLEU="\\033[1;34m"
JAUNE="\\033[1;33m"
... | jcmousse/clinux | se3/alancer/maj_ff_iceweasel.sh | Shell | gpl-2.0 | 2,506 |
#!/bin/sh
ip=$4
sed -i '' -e "/${ip}/d" /tmp/ip_activity_pppoe
sed -i '' -e "/${ip}/d" /tmp/ip_activity
exit 0
| mysticall/imslu | conf/freebsd/usr/local/etc/imslu/scripts/pppoe_link_down.sh | Shell | gpl-2.0 | 112 |
#!/bin/sh
# Cause I'm very, very lazy ; )
./clean.sh
echo "> Adding EVERYTHING in folder to"
echo " SVN version control!"
svn add * >> /dev/null 2>&1
svn add */* >> /dev/null 2>&1
svn add */*/* >> /dev/null 2>&1
svn add */*/*/* >> /dev/null 2>&1
svn add */*/*/*/* >> /dev/null 2>&1
svn add */*/*/*/*/* >> /dev/null 2>&1... | ProjectZeroSlackr/ProjectZeroSlackr-SVN | svn-add-all.sh | Shell | gpl-2.0 | 753 |
#!/bin/bash
# Module spécifique à Archlinux
# ------------------------------------------------------------------------------
Titre="Installation ${bold}arch${offbold}${blue}linux${Reset}"
TypeFile='bash' # Ne seront concerné que ce type de fichier
Appli='Archlinux'
#
# --------------------------... | RC69/RCsite1 | outilsRC/app/archlinux.bash | Shell | gpl-2.0 | 1,879 |
#!/bin/sh
# Copyright (C) 1999-2005 ImageMagick Studio LLC
#
# This program is covered by multiple licenses, which are described in
# LICENSE. You should have received a copy of LICENSE with this
# package; otherwise see http://www.imagemagick.org/script/license.php.
. ${srcdir}/tests/common.shi
${RUNENV} ${MEMCHECK} ... | atmark-techno/atmark-dist | user/imagemagick/tests/rwfile_EPSI_truecolor10.sh | Shell | gpl-2.0 | 366 |
make ARCH=arm CROSS_COMPILE= 'HOSTCC=ccache /usr/bin/gcc -B/usr/bin/' uImage
| wangxingchao/oriole | buImage.sh | Shell | gpl-2.0 | 77 |
#!/bin/bash
#
# Copyright (C) 2010-2012 Eugen Feller, INRIA <eugen.feller@inria.fr>
#
# This file is part of Snooze, a scalable, autonomic, and
# energy-aware virtual machine (VM) management framework.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Publi... | efeller/snoozedeploy | grid5000/experiments/scripts/mapreduce_test_case.sh | Shell | gpl-2.0 | 3,927 |
#!/bin/bash
# Renew the certificate
certbot renew --preferred-challenges http
for cert in /etc/letsencrypt/live/*
do
if [ -d "$cert" ]
then
cat $cert/fullchain.pem $cert/privkey.pem > /opt/ssl/$(echo $cert | cut -d '/' -f 5).pem
fi
done
| acc61287/ScriptTools | update-certs.sh | Shell | gpl-2.0 | 271 |
#!/bin/bash
cd /tmp
iozone -a > /unacloud/cluster/results`hostname`.txt | UnaCloud/unacloudIaaS1.0 | escritorio/runIozone.sh | Shell | gpl-2.0 | 71 |
#
# FILE DISCONTINUED HERE
# UPDATED VERSION AT
# https://gitlab.com/yeupou/stalag13/raw/master/usr/local/bin/gpg-grabsub.sh
#
# | |
# \_V_//
# \/=|=\/
# [=v=]
# ... | yeupou/stalag13 | usr/local/bin/gpg-grabsub.sh | Shell | gpl-2.0 | 2,933 |
#!/bin/sh
#
# Copyright (c) International Business Machines Corp., 2003
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later versio... | Havner/ltp | testcases/kernel/fs/iso9660/isofs.sh | Shell | gpl-2.0 | 3,517 |
#!/bin/bash
# Install isutf8 program (from package "moreutils" at least in linux mint)
# in order to use this script
#
# This script assumes that the current working directory is the root of the
# wesnoth repository.
set -e
find src/ -type f -print0 | xargs -0 isutf8 --
find data/ -not -name "*.png" -not -name "*.ogg" ... | dailin/wesnoth | utils/travis/check_utf8.sh | Shell | gpl-2.0 | 480 |
#!/bin/bash
### BEGIN INIT INFO
# Provides: gvd
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start GaVer daemon (gvd)
### END INIT INFO
#
# Load the module to parse the config file
#
if [ ! -f /opt/gaver/bin/config-... | emilianobilli/gaver | script/gaverd.sh | Shell | gpl-2.0 | 2,219 |
#!/bin/bash
#echo "Change start-ap-managed-wifi.sh."
#echo "Example for wlan1 as AP: bash set-router.sh wlan1"
router=$1
oldline=$(grep -F 'router=' ~/.openplotter/Network/.openplotter/start-ap-managed-wifi.sh)
newline="router=${router}"
sudo sed -i "s/${oldline}/${newline}/g" ~/.openplotter/Network/.openplotter/start... | e-sailing/openplotter | Network/set-router.sh | Shell | gpl-2.0 | 341 |
#!/bin/bash
# Script for manual Date Input and Graph & HTML export
#Show Year for Typeerrors Debug
year="2016"
#Ask for the Day to Generate the Graph and Data
read -p "Please give in YYYY-MM-DD:" date
echo "You use: "$date" for Export! In the Year "$year" !"
#Import from YOUR File ! You have to edit them manual!
cat s... | Wlanfr3ak/auto-speedtest | generator.sh | Shell | gpl-2.0 | 1,586 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEDOP_BIN="$( cd "${DIR}/../../.." && pwd )"
open "${DEDOP_BIN}/dedop-shell.command"
| DeDop/dedop-conda | recipe/dedop-shell.app/Contents/MacOS/launch-dedop-shell-in-terminal.sh | Shell | gpl-3.0 | 156 |
#!/bin/bash
# action=test #train # plot
# for trv in v0 v1 v2 v3; do
# trlabel=dtr-train-$trv
# common=" --training-label $trlabel --n-max-queries 150000 --n-max-procs 7" # --cgroup among-families --tvar affinity"# ; trseed=0 --training-seed $trseed
# ./test/dtr-scan.py $action --label dtr-train-v3 $commo... | psathyrella/partis | bin/run-dtr-scan.sh | Shell | gpl-3.0 | 992 |
#!/bin/bash
set -eux
. $TESTSLIB/apt.sh
update_core_snap_for_classic_reexec() {
# it is possible to disable this to test that snapd (the deb) works
# fine with whatever is in the core snap
if [ "$MODIFY_CORE_SNAP_FOR_REEXEC" != "1" ]; then
echo "Not modifying the core snap as requested via MODIFY... | michihenning/snapd | tests/lib/prepare.sh | Shell | gpl-3.0 | 12,685 |
cp lib/JCuda-All-0.6.0-bin-linux-x86_64/* lib/
cp lib/JCuda-All-0.6.0-bin-apple-x86_64/* lib/
java -Dfile.encoding=UTF8 -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256m -jar sbt-launch-*.jar "start-script"
| tberg12/ocular | make_run_script.sh | Shell | gpl-3.0 | 227 |
#!/bin/sh
# Script called when pressing the ON/OFF button once
echo "Triggered shutdown" | ulogger -t "ShortPress" -p I
BLDC_Test_Bench -M 2 &
/bin/ardrone3_shutdown.sh
| stiliajohny/Bebop-On-Off-Button | shortpress_1.sh | Shell | gpl-3.0 | 172 |
#!/bin/bash
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=$PREFIX -DOPENSSL_ROOT_DIR=$PREFIX -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_PREFIX_PATH=$PREFIX
make -j2
make install
| fallen/artiq | conda/libssh2/build.sh | Shell | gpl-3.0 | 215 |
#!/bin/bash
PIDFILE="/home/radja/rsyncd.pid"
RSYNC_CONFIG="/home/radja/.snap-rsyncd.conf"
RSYNC_LOG="/home/radja/rsync.log"
LOG="/home/radja/create-snapshot.log"
USER="radja"
RUSER="${USER}"
LOCALPORT=9999
REMOTEPORT=8888
REMOTEHOST="external"
PID=""
CMD="hourly"
{
for i in monthly weekly daily hourly; do
... | mutanabbi/rrb | create-snapshot.sh | Shell | gpl-3.0 | 1,672 |
#!/bin/bash
#
# GenesisPHP - Crear Común
#
# Copyright (C) 2016 Guillermo Valdes Lozano guillermo@movimientolibre.com
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the L... | guivaloz/GenesisPHP | Eva/adan/bin/CrearComun.sh | Shell | gpl-3.0 | 4,459 |
# Git utility functions
GIT_TRACKED=""
GIT_TRACKED_FILLED=0
git_is_tracked()
{
local file="$1"
# Fill list of tracked files only once
if [ $GIT_TRACKED_FILLED -eq 0 ]; then
GIT_TRACKED="$(git ls-files)"
GIT_TRACKED_FILLED=1
#echo "--------"
#echo "$GIT_TRACKED"
#echo "--------"
fi
# Remove... | elboulangero/Overcooked | scripts/code/lib-git.sh | Shell | gpl-3.0 | 622 |
#!/bin/sh
docker build -t nginx_dynamic .
| alexellis/docker-arm | images/nginx_dynamic/build.sh | Shell | gpl-3.0 | 44 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.