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 |
|---|---|---|---|---|---|
#!/bin/sh
. ~/shell_enhancements/helpers/git.sh
. ~/shell_enhancements/helpers/redirects.sh
# These commands help with repositories managed with gitflow semantics.
#
# If the user has `git-flow` installed (`brew install git-flow`) and is in a
# repo that has been set up with `git flow init`, the commands will attempt... | stilist/shell_enhancements | helpers/gitflow.sh | Shell | mit | 4,433 |
#!/bin/bash
set -e
cd `dirname $0`
[ $# -lt 1 ] && echo 'usage ./start.sh $MYID' && exit 1
chmod +x idgen_mon run.sh
mkdir -p log
export MYID=$1
./idgen_mon -l log/mon.log -d -m log/idgen_mon.pid ./run.sh
| eLong-INF/idgen | support-files/start.sh | Shell | mit | 211 |
#!/bin/bash
'''
# wrapper script to launch mrMeshPy from MatLab TODO implement this later
Mark Hymers, Andre Gouws 2017
'''
unset LD_LIBRARY_PATH
exec /usr/bin/python "$@"
| andregouws/mrMeshPy | matlabRoutines/launchMeshPy.sh | Shell | mit | 175 |
#!/bin/bash
# bash script custom here | huytbt/mydevtool-docker-node | script/custom.sh | Shell | mit | 38 |
# Copyright (c) 2017-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
PACKAGES="ruby"
| hhvm/packaging | aws/ondemand/hhvm/user-documentation/packages.inc.sh | Shell | mit | 211 |
#!/bin/bash
cd "$(dirname "$0")"
java -cp ./bin:./PacManVsGhosts6.2.jar:./gson-2.2.2.jar pacman.experimentclient.ExperimentClient $1 $2
| stewartml/4thYearProject | agent/run.sh | Shell | mit | 136 |
#!/bin/bash
sudo mkdir -p /tmp/mnt/fat32
sudo mkdir -p /tmp/mnt/ext4
sudo mount /dev/mmcblk0p1 /tmp/mnt/fat32/
sudo mount /dev/mmcblk0p2 /tmp/mnt/ext4/
sudo make ARCH=arm CROSS_COMPILE=$CCPREFIX INSTALL_MOD_PATH=/tmp/mnt/ext4 modules_install
sudo cp /tmp/mnt/fat32/$KERNEL.img /tmp/mnt/fat32/$KERNEL-backup.img
sudo scr... | rvu95/rpi | wheezy/tools/kernel-compilation/install-new-kernel.sh | Shell | mit | 617 |
sudo apt-get install xfsprogs
| UedaTakeyuki/gc_setups | xfs.setup.sh | Shell | mit | 30 |
#!/bin/bash
# Specifying the icon(s) in the script
# This allows us to change its appearance conditionally
icon=""
player_status=$(playerctl status 2> /dev/null)
if [[ $? -eq 0 ]]; then
metadata="$(playerctl metadata artist) - $(playerctl metadata title)"
fi
# Foreground color formatting tags are optional
if [[... | TJuberg/dotfiles | polybar/.config/polybar/mpris.sh | Shell | mit | 625 |
#!/bin/bash
max_t_cost="$1"
max_m_cost="$2"
max_lanes="$3"
if [ -z "$max_t_cost" ]; then
echo "ERROR: Maximum time cost must be specified!" 1>&2
exit 1
fi
if [ -z "$max_m_cost" ]; then
echo "ERROR: Maximum memory cost must be specified!" 1>&2
exit 1
fi
if [ -z "$max_lanes" ]; then
echo "ERROR: M... | WOnder93/argon2 | scripts/run-benchmark.sh | Shell | mit | 788 |
#!/usr/bin/env bash
echo "Running core provision script..."
sudo apt-get update
# Install build tools
sudo apt-get install -y make g++ libcairo2-dev libav-tools nfs-common ssh build-essential libssl-dev htop python-software-properties python
| weberamaral/ng4-developer | vagrant/provision/core.sh | Shell | mit | 244 |
# If example.rc.lua is missing, make a default one.
rc_lua=$PWD/example.rc.lua
test -f $rc_lua || /bin/cp /etc/xdg/awesome/rc.lua $rc_lua
# Just in case we're not running from /usr/bin
awesome=`which awesome`
xephyr=`which Xephyr`
pidof=`which pidof`
test -x $awesome || { echo "Awesome executable not found. Please in... | dr-slump/bajawa | conf/desktop-manager/awesome/tyrannical/utils/xephyr.sh | Shell | mit | 1,522 |
#!/bin/bash
# run parsec on a target host, results are generated under log/$BENCH-$TAG-$TIMESTAMP.runtime
# pthreads: whole benchmark suite; <name>: single benchmark (e.g. dedup)
BENCH="fluidanimate"
#BENCH="pthread"
# output file name tag, change it for each experiment
TAG="x1-3k-ple-test"
# default parameters
ESX=... | jnouyang/esx-parsec-bench | run-parsec.sh | Shell | mit | 1,302 |
#!/bin/bash
# This script displays the message "This script will exit with
# with a 0 exit status" and then does in fact exit with a 0 exit
# status. Confirm the same by using the "$?" command in the CLI
# after running this script. "0: command not found" should be
# the result.
echo "This script will exit with a 0 e... | iPar/ShellScripting | Exercises/02-ExitStatuses-ReturnCodes/01-exitStatus0.sh | Shell | mit | 341 |
#!/bin/sh
set -e
export VSINSTALLDIR="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community"
export VisualStudioVersion="16.0"
docfx ./docs/docfx.json
SOURCE_DIR=$PWD
TEMP_REPO_DIR=$PWD/../my-project-gh-pages
echo "Removing temporary doc directory $TEMP_REPO_DIR"
rm -rf $TEMP_REPO_DIR
mkdir $TEMP_REPO_DIR
... | markvincze/Stubbery | releaseDocs.sh | Shell | mit | 849 |
docker build -t neuralensemble/simulationx --no-cache .
| NeuralEnsemble/neuralensemble-docker | simulationx/regenerate.sh | Shell | mit | 56 |
#!/bin/bash
USER=hungpham2511
IMAGE=toppra-dep
VERSION=0.0.3
echo "Building docker image: $USER/$IMAGE:$VERSION"
docker build -t ${IMAGE} .
docker tag ${IMAGE} ${USER}/${IMAGE}:${VERSION}
docker tag ${IMAGE} ${USER}/${IMAGE}:latest
| hungpham2511/toppra | dockerfiles/build.sh | Shell | mit | 234 |
#!/bin/bash
# inspired by https://github.com/benjie/dotfiles
git pull
function setLink {
src="$1"
target="$2"
if [ -h "$target" ]
then
return;
fi
ln -s "$src" "$target"
}
function gitClone {
giturl="$1"
target="$2"
if [ -d "$target" ]
then
#TODO: test that it is a git copy?
return
... | antonpiatek/dotfiles | install.sh | Shell | mit | 1,972 |
#!/bin/bash
# This is used to clear up all the junk which gets left behind after slurm has run a job
rm worker_*
rm std*
| dcf21/4most-4gp-scripts | src/lunarc/delete_junk.sh | Shell | mit | 124 |
#!/usr/bin/env bash
##
# Deploy stack update to remote instance.
#
# @example
# # Deploy target defaults to the 'prod' remote instance.
# make stack-deploy
# # Or :
# cwt/extensions/remote/stack/deploy.sh
#
# # Deploy to the 'dev' remote instance.
# make stack-deploy 'dev'
# # Or :
# cwt/extensions/rem... | Paulmicha/common-web-tools | cwt/extensions/remote/stack/deploy.sh | Shell | mit | 649 |
#!/bin/sh -eux
# Add repo
cat <<EOT >> /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.3 CentOS repository list - created 2018-09-18 11:39 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.3/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
... | robbaier/vagrant-boxes | centos/scripts/7/mariadb.sh | Shell | mit | 451 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-146-1
#
# Security announcement date: 2015-02-06 00:00:00 UTC
# Script generation date: 2017-01-01 21:08:52 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - krb5:1.8.3+dfsg-4squeeze9
#
# Last ... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2015/DLA-146-1.sh | Shell | mit | 685 |
#!/bin/bash
## Stop and restart frontend from Git sources
docker stop web-dev
docker rm web-dev
cd /home/gossart/camomile-web-frontend
git pull
docker rmi klm8/camomile-web-frontend-dev
docker build -t klm8/camomile-web-frontend-dev .
docker run -d --restart=always -p 8080:8070 -e CAMOMILE_API=http://vmjoker.limsi.fr... | kLm8/scripts | ex.sh | Shell | mit | 428 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2013:0120
#
# Security announcement date: 2013-01-08 06:42:24 UTC
# Script generation date: 2017-01-01 21:14:20 UTC
#
# Operating System: Red Hat 5
# Architecture: i386
#
# Vulnerable packages fix on version:
# - quota.i386:3.13-8.el5
# - quota-debugin... | Cyberwatch/cbw-security-fixes | Red_Hat_5/i386/2013/RHSA-2013:0120.sh | Shell | mit | 704 |
#!/usr/bin/env bash
# Use python's argparse module in shell scripts
#
# The function `argparse` parses its arguments using
# argparse.ArgumentParser; the parser is defined in the function's
# stdin.
#
# Executing ``argparse.bash`` (as opposed to sourcing it) prints a
# script template.
#
# https://github.com/nhoffman/... | nhoffman/argparse-bash | argparse.bash | Shell | mit | 2,158 |
#! /bin/sh
export KSROOT=/koolshare
source $KSROOT/scripts/base.sh
eval `dbus export webrecord_`
cp -rf /tmp/webrecord/init.d/* $KSROOT/init.d/
cp -rf /tmp/webrecord/scripts/* $KSROOT/scripts/
cp -rf /tmp/webrecord/webs/* $KSROOT/webs/
cp /tmp/webrecord/uninstall.sh $KSROOT/scripts/uninstall_webrecord.sh
chmod +x $K... | koolshare/ledesoft | webrecord/webrecord/install.sh | Shell | mit | 677 |
#!/usr/bin/env bash
# Launches all components of the OpenOCR service
#
# How to run this script for generic docker
#
# https://github.com/tleyden/open-ocr/blob/master/README.md
#
# How to run this script for Orchard docker PAAS
#
# https://github.com/tleyden/open-ocr/wiki/Installation-on-Orchard
#
RABBITMQ_HOST=r... | rori-dev/lunchbox | backend-play-akka-scala/scripts/docker-run-openocr.sh | Shell | mit | 1,153 |
type direnv &>/dev/null \
&& eval "$(direnv hook bash)"
| sax/dotfiles | bash_it/direnv.bash | Shell | mit | 58 |
#!/bin/bash
export PATH=/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin
MOD=$(awk '/DJANGO_SETTINGS_MODULE/{ gsub("\"|[.].*", "", $2); print $2}' manage.py)
export NEW_RELIC_CONFIG_FILE=/www/config/production/newrelic.ini
export NEW_RELIC_ENVIRONMENT=production
exec 2>&1
exec newrelic-admin run-program celery -A $MOD... | ArabellaTech/aa-docker-tools | production/pycommon/celery-newrelic.sh | Shell | mit | 331 |
#!/bin/bash
DATE_STAMP=` date +%d-%m-%Y-%T`
echo ${DATE_STAMP}
/home/pi/filebot/opt/share/filebot/bin/filebot.sh -rename /media/usbstick/Torrent_complete/* –format “/media/usbstick/Film_rename/{n}/Season {s}/{n} – {sxe} – {t}” –db thetvdb -non-strict
| collegboi/Raspi-Media | tvrenamer.sh | Shell | mit | 265 |
#!/bin/bash
#
# The Unix toolset used in the script is installed along with
# MSysGit/Git for Windows.
#
CURDIR=$(dirname "$0")
cd $CURDIR/..
cd lib
SYSNAME=$(uname -s)
if [[ "${SYSNAME:0:5}" == "MINGW" ]]; then
MSBUILD_PATH=$(reg.exe query \
"HKLM\\SOFTWARE\\Microsoft\\MSBuild\\ToolsVersions\\12.0" \
//v MSBui... | mrts/ioc-cpp | scripts/build.sh | Shell | mit | 514 |
#!/bin/bash
for conf in $@; do
sudo systemd-tmpfiles --create $conf 2>&1 | sed 's/^/ /'
test ${PIPESTATUS[1]} -ne 0 && exit 1
echo " VALID: $conf"
done
| Undeterminant/config-etc | test/tmpfiles.sh | Shell | cc0-1.0 | 157 |
#!/bin/bash
# mvn clean install
# mkdir -p target/results
# mkdir -p target/result-logs
export VALUE_FACTORY_FACTORY="VF_PDB_PERSISTENT_CURRENT,VF_SCALA,VF_CLOJURE,VF_PDB_PERSISTENT_MEMOIZED_LAZY"
######
export AGGREGATED_SETTINGS="-jvmArgsPrepend -Xms4g -jvmArgsPrepend -Xmx4g -wi 10 -i 20 -f 1 -r 1 -gc true -rf csv... | msteindorfer/oopsla15-artifact | oopsla15-benchmarks/runMicrobenchmarks.sh | Shell | epl-1.0 | 6,725 |
# export AWS_ACCESS_KEY="Your-Access-Key"
# export AWS_SECRET_KEY="Your-Secret-Key"
today=`date +"%d-%m-%Y","%T"`
logfile="/awslog/ec2-access.log"
# Grab all Security Groups IDs for ALLOW action and export the IDs to a text file
sudo aws ec2 describe-security-groups --filters Name=tag:open-allports-time,Values=21-00 ... | STARTSPACE/aws-access-to-ec2-by-timetable | all/allow-wd/all-allow-wd-21.sh | Shell | gpl-2.0 | 807 |
# Test the vector and matrix addition methods
cleanup ()
{
rm -rf $TEMPDIR
rm -f a.out
true
}
fail ()
{
cleanup
exit 1
}
pass ()
{
cleanup
exit 0
}
include_path='-I '`echo $search_path | sed -e 's/:/ -I /g'`
if [ $? -ne 0 ] ; then fail ; fi
here=`pwd`
if [ $? -ne 0 ] ; then fail ; fi
... | chrisoei/Libann | test/00/t0013a.sh | Shell | gpl-2.0 | 1,988 |
#!/bin/bash
# programs with acyclic state spaces
nidhuggc -- -sc stf.c &> log/stf.log
nidhuggc -- -sc stf_bug.c &> log/stf_bug.log
nidhuggc -- -sc spin08.c &> log/spin08.log
nidhuggc -- -sc fib.c &> log/fib.log
nidhuggc -- -sc fib_bug.c &> log/fib_bug.log
nidhuggc -- -sc ccnf9.c &> log/ccnf9.log
nidhuggc -- -sc ccnf17... | marcelosousa/poet | benchmarks/concur15/nidhugg/run.sh | Shell | gpl-2.0 | 1,113 |
#!/bin/bash
# initialize
#cwd=$(pwd)
#cuda_deb=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
# download & install cuda
#wget -O cuda.deb $cuda_deb
ln -s /media/ogawak/ssd21/cuda_related/cuda-repo-ubuntu1404-7-0-local_7.0-28_amd64.deb cuda.deb
sudo dp... | topazS50/setup_linux | install/cuda_install.sh | Shell | gpl-2.0 | 674 |
#!/bin/bash
if [ ! -e odoors ]
then
git clone https://github.com/apamment/odoors
fi
cd odoors
make
cd ..
gcc -c main.c -o main.o -I./odoors/ -I/usr/include/lua5.3
gcc -c interbbs2.c -o interbbs2.o
gcc -c inih/ini.c -o inih/ini.o
gcc -o GalacticDynasty main.o interbbs2.o inih/ini.o odoors/libs-`uname -s`/libOD... | apamment/galactic-dynasty | build.sh | Shell | gpl-2.0 | 345 |
#! /bin/bash
set -x
originalDirectory=$(pwd)
cd ..
wget https://github.com/wikimedia/mediawiki/archive/$MW.tar.gz
tar -zxf $MW.tar.gz
mv mediawiki-$MW phase3
cd phase3
git checkout $MW
composer install --prefer-source
mysql -e 'create database its_a_mw;'
php maintenance/install.php --dbtype $DBTYPE --dbuser roo... | BrotherPhil/GitHub | build/travis/before_script.sh | Shell | gpl-2.0 | 915 |
#!/bin/sh
# sdr101-java
# Simple software-defined radio for Java.
#
# (c) Karl-Martin Skontorp <kms@skontorp.net> ~ http://22pf.org/
# Licensed under the GNU GPL 2.0 or later.
java -Xprof=help -cp /home/kms/.m2/repository/junit/junit/4.4/junit-4.4.jar:target/classes:target/test-classes org.junit.runner.JUnitCore org.... | kms/sdr101-java | profile-single-test.sh | Shell | gpl-2.0 | 340 |
#!/bin/sh
if [[ "$TERM" != *xterm* ]]; then
if [ ! -z "`which konsole`" ]; then
konsole -e "$0" "keep"
else
xterm -e "$0" "keep"
fi
exit
fi
mkdir -p .build5
cd .build5
if ! cmake -DWITH_QT5=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..; then
echo "CONFIGURATION FAILE... | luebking/virtuality | buildQt5.sh | Shell | gpl-2.0 | 629 |
#!/bin/bash
# Copyright 2012 Johns Hopkins University (Author: Daniel Povey).
# 2013 Xiaohui Zhang
# 2013 Guoguo Chen
# 2014 Vimal Manohar
# Apache 2.0.
# This script trains neural network with pnorm nonlinearities.
# The difference with train_tanh.sh is that, instead of setting
# h... | michellemorales/OpenMM | kaldi/egs/wsj/s5/steps/nnet2/train_pnorm.sh | Shell | gpl-2.0 | 22,627 |
#! /bin/sh
export PYTHONPATH=./$PYTHONPATH
cd nessi/
python simcon.py
| jehrensb/Nessi | nessi.sh | Shell | gpl-2.0 | 72 |
#!/bin/sh
# Copyright (C) 2004-2017 Free Software Foundation, Inc.
#
# 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, or (at your option)
# any later version.
#
# This program i... | pylam/automake | t/cond34.sh | Shell | gpl-2.0 | 1,713 |
#!/bin/bash
# Source this file to get DebugEcho and more
# $Revision$ $Author$ $Date$
##############################################################################
# Copyright (C) 2004 Kurt Schwehr
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GN... | schwehr/density | debug.bash | Shell | gpl-2.0 | 2,356 |
#!/bin/bash
nodemon -e js,html,json,less,swig app.js
| oliverdain/CodeTeacher | start.sh | Shell | gpl-2.0 | 55 |
#!/bin/bash
# http://www.support.code-red-tech.com/CodeRedWiki/HardwareDebugConnections
# Pin # CN2 # Designation
# 1 VDD_TARGET # VDD from application # ( = VDD, DNC when powered from Pi)
# 2 SWCLK # SWD clock # ( = JTCK / PA14)
# 3 GND # Ground # ( = GND)
# 4 SWDIO # SWD data input/output # ( = TMS / PA13)
# 5 NRST... | ARMinARM/arminarm | src/update_stlink.sh | Shell | gpl-2.0 | 976 |
#!/bin/sh
#
# Copyright (c) 2009, 2010, 2012, 2013 David Aguilar
#
test_description='git-difftool
Testing basic diff tool invocation
'
. ./test-lib.sh
difftool_test_setup ()
{
test_config diff.tool test-tool &&
test_config difftool.test-tool.cmd 'cat "$LOCAL"' &&
test_config difftool.bogus-tool.cmd false
}
prom... | pzhaoyang/git | t/t7800-difftool.sh | Shell | gpl-2.0 | 17,132 |
#!/bin/bash
mic=ihm
ngram_order=4 # this option when used, the rescoring binary makes an approximation
# to merge the states of the FST generated from RNNLM. e.g. if ngram-order = 4
# then any history that shares last 3 words would be merged into one state
stage=1
weight=0.5 # when we do lattice-rescoring, in... | michellemorales/OpenMM | kaldi/egs/ami/s5/local/tfrnnlm/run_lstm.sh | Shell | gpl-2.0 | 1,578 |
#! /bin/sh
# Copyright (C) 2011-2013 Free Software Foundation, Inc.
#
# 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, or (at your option)
# any later version.
#
# This program ... | GavinSmith0123/automake-amplain | t/tap-with-and-without-number.sh | Shell | gpl-2.0 | 1,457 |
#!/bin/sh
sudo cp runlights /etc/init.d/
sudo update-rc.d runlights defaults
# uninstall
#sudo update-rc.d -f runlights remove
| dmtaub/APA102_Pi | sysadmin/install.sh | Shell | gpl-2.0 | 129 |
#! /bin/bash
MYNAME=$(basename $0)
MYBASENAME=$(basename $0 .sh)
MYDIR=$(dirname $0)
STDOUT_FILE=ft_errors_stdout
VERBOSE=""
VERSION="1.0.0"
LOG_OPTION="--wait"
DEBUG_OPTION=""
CLUSTER_NAME="${MYBASENAME}_$$"
CLUSTER_ID=""
OPTION_INSTALL=""
PIP_CONTAINER_CREATE=$(which "pip-container-create")
CONTAINER_SERVER=""
PRO... | severalnines/s9s-tools | tests/ft_galera_new.sh | Shell | gpl-2.0 | 10,218 |
touch /data/logger/kernel.log
chmod 666 /data/logger/kernel.log
cat /proc/kmsg >> /data/logger/kernel.log
| laufersteppenwolf/android_kernel_lge_d680 | mediatek/config/mt6577/save_kernel_log.sh | Shell | gpl-2.0 | 106 |
#!/bin/sh
test_description='apply same filename'
. ./test-lib.sh
test_expect_success 'setup' '
mkdir -p some/sub/dir &&
echo Hello > some/sub/dir/file &&
git add some/sub/dir/file &&
git commit -m initial &&
git tag initial
'
cat > patch << EOF
diff a/bla/blub/dir/file b/bla/blub/dir/file
--- a/bla/blub/dir/... | vmiklos/gsoc2008 | t/t4128-apply-root.sh | Shell | gpl-2.0 | 813 |
#!/bin/bash
uname=$(uname)
if [[ $uname == "Darwin" ]]; then
date_seconds="-r"
else
date_seconds="-d@"
fi
function wowTokenCurrentPrice() {
jq . <(curl -s "https://kr.api.battle.net/data/wow/token/?namespace=dynamic-kr&locale=ko_KR&access_token=cr5na62qkm64vgk5c5w28nyg")
}
function telegramMsg() {
lo... | mcm811/bin.osx | bash/watch_wow_token_price.sh | Shell | gpl-2.0 | 1,664 |
#!/bin/sh
# This script executes some teragens. It is convenient for putting
# data into your file system for some tests.
source ${HAMSTER_SCRIPTS_HOME}/lib/hamster-lib-hadoop-helper
cd ${HADOOP_HOME}
if Hamster_hadoop_is 1
then
terasortexamples="hadoop-examples-$HADOOP_VERSION.jar"
elif Hamster_hadoop_is 2
the... | DwyaneShi/Hamster | scripts/job/examples/hadoop-create-files-script.sh | Shell | gpl-2.0 | 833 |
#!/bin/bash
# NetHunter kernel for Asus Google Nexus 7 (2013) build script by jcadduono
################### BEFORE STARTING ################
#
# download a working toolchain and extract it somewhere and configure this
# file to point to the toolchain's root directory.
#
# once you've set up the config section how you ... | jcadduono/nethunter_kernel_mako_flo | build.sh | Shell | gpl-2.0 | 1,826 |
#!/bin/sh
[[ "z${USER_ID}" == "z" ]] && USER_ID=$(id -u)
[[ "z${GROUP_ID}" == "z" ]] && GROUP_ID=$(id -g)
if [[ ${USER_ID} -eq 0 ]];then
exec "$@"
else
RUN_USER=runuser
RUN_GROUP=$(getent group|awk -F: '$3=='${GROUP_ID}'{print $1}')
if [ "z${RUN_GROUP}" == "z" ];then
RUN_GROUP=rungroup
... | ughjobs/ughjobs | docker_entrypoint.sh | Shell | gpl-3.0 | 565 |
echo "INFO, test als_als"
i2c_add=44
thresh_low=20
thresh_bright=100
echo "INFO, Scanning for ALS"
found=`i2cdetect -y 9 | grep " $i2c_add "`
if [ -z "$found" ]; then
echo "FAIL, Device 0x$i2c_add NOT found"
exit 1
else
echo "PASS, Device 0x$i2c_add found"
fi
#set mode to ALS continuous
i2cset -y 9 0x$i2c_add ... | auspbro/CodeSnippets | Shell/Prj_QF7/als_als.sh | Shell | gpl-3.0 | 1,036 |
cp my.vimrc ~/.vimrc -f
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
git clone https://github.com/Valloric/YouCompleteMe ~/.vim/bundle/YouCompleteMe
cd ~/.vim/bundle/YouCompleteMe
git submodule update --init --recursive
python install.py --clang-completer
cd ~
| Rjerk/snippets | vim/install.sh | Shell | gpl-3.0 | 301 |
#!/bin/bash
######################################
# Cache polulate tool for HLS stream #
# using curl #
# #
# ztodorov@neterra.net #
# #
# v.0.03 #
##################################... | jivco/wowza-nginx-cdn | hls-stress-tools/hls_populate_cache.sh | Shell | gpl-3.0 | 1,368 |
#!/bin/bash -e
. ../test-lib.sh 2>/dev/null || { echo "Must run in script directory!" ; exit 1 ; }
# Smoke test to see if all output formats are not crashing
run_bob show something-invalid
run_bob show root --format=yaml --indent=2
run_bob show root --format=json --no-indent
run_bob show root --format=flat
run_bob sho... | BobBuildTool/bob | test/show/run.sh | Shell | gpl-3.0 | 1,497 |
#!/bin/bash
################################################################################
# Author: Kais FRIKHA #
# Script: This script is dedicated for making snapshot of database : MySQL #
# Script: This script is dedicated for making snapshot of datab... | kaissfr/Tools | dbbackup.sh | Shell | gpl-3.0 | 3,533 |
#!/bin/bash
## Ref:
## https://stackoverflow.com/questions/14894605/shell-script-to-create-folder-daily-with-time-stamp-and-push-time-stamp-generate
## https://crunchify.com/shell-script-append-timestamp-to-file-name/
foldername=$(date +%Y%m%d)
echo $foldername
filename=$(date +%Y%m%d%H%M%S)
echo $filename
current... | mangalbhaskar/linuxscripts | util-cmd.sh | Shell | gpl-3.0 | 1,748 |
#!/usr/bin/env bash
mkdir -p ./results/boscastle50m_72_u/
mkdir -p ./results/boscastle50m_72_u_flipped_lr/
# Boscastle test 1
# 50m resolution, 72 hours rainfall
../bin/HAIL-CAESAR.exe ./input_data/boscastle/boscastle_input_data/ boscastle_test_72hr_50m_u.params
../bin/HAIL-CAESAR.exe ./input_data/boscastle/boscastle_i... | dvalters/HAIL-CAESAR | test/run_tests.sh | Shell | gpl-3.0 | 375 |
#!/bin/bash
## Copyright (C) 2016 D S Pavan Kumar
## dspavankumar [at] gmail [dot] 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 License, or
## (at you... | dspavankumar/keras-kaldi | run_kt_LSTM.sh | Shell | gpl-3.0 | 1,863 |
#!/bin/sh
aclocal
autoconf
autoheader
automake --add-missing
if test x$NOCONFIGURE = x; then
./configure $*
fi
| cykerway/ncmpcr | autogen.sh | Shell | gpl-3.0 | 117 |
# 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 version.
#
# This program is distributed in the hope that it will be useful,
# b... | winkey/grib_contour | share/nam_conus.config.sh | Shell | gpl-3.0 | 3,297 |
#!/bin/bash
#
# AppOS(R) Build Script (ABS)
# Copyright (c) 2002-2008 Spliced Networks LLC
#
# initialize some basic values
SNVER_ABS="7.0.2"
SNVER_IBE="4.0.0.0"
SNVER_APPOS="4.0.0.0"
SNVER_COPYSTART="2002"
SNVER_COPYEND="2008"
export SNVER_ABS SNVER_IBE SNVER_APPOS SNVER_COPYSTART SNVER_COPYEND
# set the current d... | buswellj/code | AppOS-Linux/abs-7.0.2/bldsys/build.sh | Shell | gpl-3.0 | 1,068 |
#!/bin/bash
clear
echo -e "Traktor v1.8\nTor will be automatically installed and configured…\n\n"
function acceptance_agreement()
{
echo "This script is going to install these applications:"
echo "-------------------------------------------"
# Applications list
echo -e " * Tor\n * Obfs4proxy\n * dnscr... | ubuntu-ir/traktor | traktor_fedora.sh | Shell | gpl-3.0 | 3,416 |
#! /bin/sh
set -e
# Impurity scattering with various doping profiles
#
# This script is part of the QWWAD software suite. Any use of this code
# or its derivatives in published work must be accompanied by a citation
# of:
# P. Harrison and A. Valavanis, Quantum Wells, Wires and Dots, 4th ed.
# Chichester, U.K.: ... | QWWAD/qwwad | examples/carrier-scattering/imp-profiles.sh | Shell | gpl-3.0 | 3,650 |
#!/bin/bash
# create multiresolution windows icon
ICON_SRC=../../src/qt/res/icons/Paris.png
ICON_DST=../../src/qt/res/icons/Paris.ico
convert ${ICON_SRC} -resize 16x16 Paris-16.png
convert ${ICON_SRC} -resize 32x32 Paris-32.png
convert ${ICON_SRC} -resize 48x48 Paris-48.png
convert Paris-16.png Paris-32.png Paris-48.pn... | ParisCoin/Paris | share/qt/make_windows_icon.sh | Shell | gpl-3.0 | 335 |
#!/bin/sh
while read line; do
echo 'http://i.huffpost.com/gen/1548397/images/o-NIC-CAGE-facebook.jpg'
done
| smikims/arpspoof | cage.sh | Shell | gpl-3.0 | 108 |
#!/bin/bash
echo -e "Traktor v1.3\nTor will be automatically uinstalled ...\n\n"
sudo apt remove -y \
tor \
obfs4proxy \
polipo \
dnscrypt-proxy \
torbrowser-launcher \
apt-transport-tor
sudo rm -f /etc/tor/torrc \
/etc/apparmor.d/abstractions/tor \
/etc/apparmor.d/system_tor &> /dev/null
gsettings set org.... | AmirrezaFiroozi/traktor | uninstall_debian.sh | Shell | gpl-3.0 | 683 |
#!/bin/sh
tar -xf sqlite-330-for-speedtest.tar.gz
cd sqlite
./configure
if [ $OS_TYPE = "BSD" ]
then
gmake speedtest1
else
make speedtest1
fi
echo $? > ~/install-exit-status
cd ~
echo "#!/bin/sh
cd sqlite
./speedtest1 \$@ > \$LOG_FILE 2>&1
echo \$? > ~/test-exit-status" > sqlite-speedtest
chmod +x sqlite-speedtest... | phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/pts/sqlite-speedtest-1.0.1/install.sh | Shell | gpl-3.0 | 321 |
conda create --copy --name hls4ml-env python=3.6
source activate hls4ml-env
## CPU version of pytorch for now
#conda install pytorch torchvision -c pytorch
conda install pytorch-cpu torchvision-cpu -c pytorch
conda install -c anaconda scikit-learn h5py pyyaml
| hls-fpga-machine-learning/hls-fpga-machine-learning | install.sh | Shell | gpl-3.0 | 263 |
#!/bin/sh
# Removal script for kernel module "module2.ko"
KO_PATH=$1
rmmod KO_PATH
| legatoproject/legato-af | apps/test/framework/mk/system/kernelmodule/module/files/module2/scripts/remove.sh | Shell | mpl-2.0 | 85 |
rm -v *.aux *.lof *.log *.bbl *.blg *.toc *.synctex.gz | aureooms-ulb-2010-2015/2012-2013-infof302-project | Rapport/clear.sh | Shell | agpl-3.0 | 54 |
#!/bin/bash
. $(dirname $0)/config.inc
rsync -aO $WORKINGDIR"/web/generation/" $COUCHDISTANTHOST":"$WORKINGDIR"/web/generation"
rsync -aO $WORKINGDIR"/"$EXPORTDIR"/" $COUCHDISTANTHOST":"$WORKINGDIR"/"$EXPORTDIR
| 24eme/AVA | project/bin/sync_instances.sh | Shell | agpl-3.0 | 213 |
#!/bin/bash -e
#===============================================================================
# FILE: kaltura-drop-db.sh
# USAGE: ./kaltura-drop-db.sh
# DESCRIPTION:
# OPTIONS: ---
# LICENSE: AGPLv3+
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Jess Port... | doubleshot/platform-install-packages | RPM/scripts/postinst/kaltura-drop-db.sh | Shell | agpl-3.0 | 1,745 |
#!/bin/bash
# Copyright 2013 Telefonica Investigación y Desarrollo, S.A.U
#
# This file is part of FI-WARE LiveDemo App
#
# FI-WARE LiveDemo App is free software: you can redistribute it and/or modify it under the terms
# of the GNU Affero General Public License as published by the Free Software Foundation, either vers... | telefonicaid/fiware-livedemoapp | scripts/cep-start.sh | Shell | agpl-3.0 | 1,114 |
#!/bin/bash -xe
sudo docker exec -it $(sudo docker ps | grep 'kafka_destination' | awk '{print $1}') /kafka/bin/kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginning
| ihrwein/syslog-ng-docker | playground/syslog-ng-ose-with-kafka-destination/check_logs_on_kafka.sh | Shell | lgpl-2.1 | 195 |
#!/bin/sh
set -u
set -e
set -x
if [ $# != 1 ]; then
echo "Usage: $0 VERSION"
echo " e.g.: $0 1.2.6"
exit 1
fi
new_nginx_version="$1"
base_dir="$(dirname "$0")"
top_src_dir="${base_dir}/.."
nginx_version_file="${top_src_dir}/nginx_version"
current_nginx_version=$(cat "${nginx_version_file}")
current_ng... | myokoym/groonga | vendor/update_nginx.sh | Shell | lgpl-2.1 | 709 |
#!/bin/bash
################################################################################
#
# Copyright (c) 2000-2017 Liferay, Inc. All rights reserved.
#
# This library is free software; you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# S... | stiemannkj1/liferay-tools | Tools/my-tools/gist-diff.sh | Shell | lgpl-2.1 | 1,066 |
#!/bin/sh -x
#
# Written by George Milescu
# see LICENSE.txt for license information
#
# We should run the tests in a separate Python interpreter to prevent
# problems with our singleton classes, e.g. SuperPeerDB, etc.
#
# WARNING: this shell script must use \n as end-of-line, Windows
# \r\n gives problems running thi... | egbertbouman/tribler-g | Tribler/Test/test_proxyservice.sh | Shell | lgpl-2.1 | 1,042 |
#! /bin/sh
set -ev
SOLVER_FILES=$(ls ../../core/*.h ../../core/*.cpp | \
grep -v "non_mini_solver\|naxos.h")
# Ensure that Naxos Solver can be considered as a "mini-solver".
# According to the First International XCSP3 Competition: "A
# mini-solver is a solver whose code must be composed of
# less than ... | bftjoe/naxos | apps/XCSP3/verification/test.sh | Shell | lgpl-3.0 | 1,936 |
#!/bin/sh
dd if=/dev/zero of=btrfs-drone bs=1 count=0 seek=4G
mkfs.btrfs btrfs-drone
mount btrfs-drone /mnt
btrfs quota enable /mnt
btrfs qgroup limit -e 4G /mnt
mkdir -p /etc/cobalt
mount sample/config1 /etc/cobalt
| PressLabs/cobalt | drone.sh | Shell | apache-2.0 | 224 |
#!/usr/bin/env bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "Lice... | sekikn/incubator-airflow | scripts/ci/images/ci_prepare_ci_image_on_ci.sh | Shell | apache-2.0 | 2,772 |
#!/bin/bash
function mos_ec2_template() {
## create disk layout
if_create_disk_layout
## create file system layout
if_create_fs_layout
## create swap space
if_create_swap_space
## add mOS repositories
if_add_mos_main_repos
if_add_mos_s3_repos
## install mOS base system
if_install_mos_base
if_install_mos... | ieat/mosaic-mos-image-builder | lib/mos-templates.sh | Shell | apache-2.0 | 1,610 |
#!/bin/bash
# TF_XLA_FLAGS=--tf_xla_auto_jit=2
python3 bigbird/summarization/run_summarization.py \
--data_dir="tfds://scientific_papers/pubmed" \
--output_dir="$GCP_EXP_BUCKET"summarization/pubmed \
--attention_type=block_sparse \
--couple_encoder_decoder=True \
--max_encoder_length=3072 \
--max_decoder_l... | google-research/bigbird | bigbird/summarization/roberta_base.sh | Shell | apache-2.0 | 759 |
#!/bin/bash
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | errordeveloper/kubernetes-anywhere | phase1/aws-ecs/create-cluster.sh | Shell | apache-2.0 | 10,302 |
pkg_origin=core
pkg_name=numactl
pkg_version=2.0.9
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('GPL-2.0' 'LGPL-2.1')
pkg_source=https://github.com/numactl/numactl/archive/v${pkg_version}.tar.gz
pkg_shasum=3e893f41e601eac3100eefd659dbead8c75a89b9b73bc01c8387966181d9320c
pkg_deps=(core/glibc... | be-plans/be | numactl/plan.sh | Shell | apache-2.0 | 604 |
#!/usr/bin/env bash
cp /dragonflow/doc/source/multi-node-conf/compute_node_local_controller.conf ~/devstack/local.conf
if [ "$1" != "" ]; then
sed -i -e 's/<IP address of host running everything else>/'$1'/g' ~/devstack/local.conf
fi
# Get the IP address
ipaddress=$(/sbin/ifconfig eth1 | grep 'inet addr' | awk -F'... | FrankDuan/df_code | vagrant/provisioning/setup-compute.sh | Shell | apache-2.0 | 622 |
#!/bin/bash
set -o errexit -o nounset
rev=$(git rev-parse --short HEAD)
cd target/doc
git init
git config --global user.name "doc bot"
git config --global user.email "docbot@travis"
git remote add upstream "https://$GH_TOKEN@github.com/huonw/spellck.git"
git fetch upstream
git reset upstream/gh-pages
touch .
git ... | huonw/spellck | deploy-docs.sh | Shell | apache-2.0 | 401 |
PYXB_ROOT=${PYXB_ROOT:-/mnt/devel/pyxb}
PYTHONPATH=${PYXB_ROOT}:${PYTHONPATH:+:${PYTHONPATH}}
PATH="${PYXB_ROOT}/scripts:${PYXB_ROOT}/bin:${PATH}"
export PYXB_ROOT PYTHONPATH PATH
| pabigot/pyxb | maintainer/usepyxb.sh | Shell | apache-2.0 | 180 |
#!/bin/bash
wget http://download.virtualbox.org/virtualbox/5.0.24/VBoxGuestAdditions_5.0.24.iso -P /tmp
sudo mount -o loop /tmp/VBoxGuestAdditions_5.0.24.iso /mnt
sudo sh -x /mnt/VBoxLinuxAdditions.run # --keep
sudo modprobe vboxsf
sudo /opt/VBoxGuestAdditions*/init/vboxadd setup
sudo reboot
| CiscoCloud/vaquero-vagrant | provision_scripts/vb_guest.sh | Shell | apache-2.0 | 299 |
#!/bin/bash -eu
#
# Copyright 2019-2020 Google LLC
#
# 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... | GoogleCloudPlatform/datashare-toolkit | ingestion/batch/bin/deploy.sh | Shell | apache-2.0 | 4,812 |
#!/bin/bash
# Note that the sensor specified in $OBSERVATIONS_POST_FILE must be registered in the system beforehand
BASE_URI="http://54.72.170.113:8080/webapp/sos/rest"
N=$1
C=$2
STEPS=$3
CONTENT_TYPE="application/gml+xml"
ACCEPT_ENCODING="gzip, deflate"
OBSERVATIONS_POST_FILE="1st_scenario_post_data.xml"
for ((... | sauloperez/sos | load_testing/first_scenario.sh | Shell | apache-2.0 | 810 |
echo $(date) >> version.html
echo "<br>" >> version.html
echo $(git rev-parse HEAD) >> version.html
echo "<br><br>" >> version.html
git add .
git commit -am "elbv2"
git push origin master
aws deploy create-deployment --application-name CD-Demo-Prod --deployment-group-name CD-Demo-Prod-Group --github-location reposito... | hub714/cdeploy | deploy.sh | Shell | apache-2.0 | 578 |
# Use functions instead of aliases so we can export them.
reallocateReads() {
"$thispath/../scripts/plugins/realloc-reads/reallocateReads" "$@"
}
export -f reallocateReads
| klmr/trna-chip-pipeline | tools-setup.sh | Shell | apache-2.0 | 178 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.