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/bash
sudo sudo sh -c 'echo "mysql-server mysql-server/root_password password root
mysql-server mysql-server/root_password_again password root" > /root/debconf.txt'
debconf-set-selections /root/debconf.txt
echo "mysql-server-5.5 mysql-server/root_password password root" > mysql_password.cfg
echo "mysql-server-5... | britton-clapp/legend | vagrant/bootstrap.sh | Shell | mit | 1,679 |
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Make sure we’re using the latest Homebrew.
brew update
# Upgrade any already-installed formulae.
brew upgrade
brew tap caskroom/versions
brew cask install java8
brew install tree
brew install wget
brew install httrack
brew install maven
brew instal... | nilshartmann/dotfiles | brew.sh | Shell | mit | 496 |
#!/bin/bash
set -e
source common/ui.sh
source common/utils.sh
# If container exists, check if want to continue
if $(lxc-ls | grep -q ${CONTAINER}); then
if ! $(confirm "The '${CONTAINER}' container already exists, do you want to continue building the box?" 'y'); then
log 'Aborting...'
exit 1
fi
fi
# If c... | dragoscirjan/vagrant-lxc-base-boxes | common/download.sh | Shell | mit | 1,212 |
#!/usr/bin/env bash
# completions.sh
# Caleb Evans
# Completion function for npm and bower, the Node-based package managers
_npm() {
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
second=${COMP_WORDS[1]}
third=${COMP_WORDS[2]}
if [ "$prev" == 'npm' ] || [ "$prev" == 'bower' ] || [ "$prev" == 'he... | caleb531/dotfiles | terminal/bash/completions.sh | Shell | mit | 10,320 |
#!/bin/sh
COVERAGE=venv/bin/coverage
$COVERAGE erase
$COVERAGE run -m unittest discover
$COVERAGE report
$COVERAGE html
| fcracker79/pycomb | coverage.sh | Shell | mit | 121 |
#!/bin/zsh
unset AWS_ACCESS_KEY_ID
unset AWS_SECRET_ACCESS_KEY
unset AWS_SESSION_TOKEN
| honux77/practice | aws/script/unset_admin.sh | Shell | mit | 87 |
#!/bin/bash
#*****************************************************************************
# FUNCTION
# Retore environment to test normalize_name.sh script by creating files
# with various characters and patterns to delete or replace in their name.
# It must be launched in the test directory where normalize_nam... | Dingodino/ArcadeRoom | TOOLS/TREE_VIEW/UNIX/TEST_DIRECTORIES/NORMALIZE_NAME/restore_test_env.sh | Shell | mit | 4,154 |
sudo apt-get -y install bed
| sslavov93/kali-linux-tools | scripts/BED.sh | Shell | mit | 28 |
export PATH="./bin:/usr/local/bin:/usr/local/sbin:$BEDROCK_DIR/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
| bedrock-env/bedrock | core/path.zsh | Shell | mit | 155 |
DIR='/opt/stack';
for f in `ls $DIR`;
do
if [ "$f" != "data" ] && [ "$f" != "status" ]
then
echo "Updating $f"
cd $DIR/$f && git pull
fi
done
su vagrant -c "/opt/stack/devstack/stack.sh"
| Thingee/devstack-vagrant | setup.sh | Shell | mit | 210 |
#!/bin/bash
# Setup redis config
echo -e "\n$ENCD_INSTALL_TAG $(basename $0)"
# Check previous failure flag
if [ -f "$encd_failed_flag" ]; then
echo -e "\n\t$ENCD_INSTALL_TAG $(basename $0) Skipping: encd_failed_flag exits"
exit 1
fi
echo -e "\n\t$ENCD_INSTALL_TAG $(basename $0) Running"
# Script Below
# Back... | ENCODE-DCC/encoded | cloud-config/run-scripts/ami-redis.sh | Shell | mit | 812 |
#!/usr/bin/env bash
set -ex
virtualenv env
source env/bin/activate
make bootstrap
make lint
make cover
| LINKIWI/brick-pop-solver | .ci/test.sh | Shell | mit | 105 |
#!/bin/sh
# This script adds a record dimension to the raw output from tht FiT event
# tracking code and then concatenates all files together in time
# Concatenation is done in groups to get over a number of files limit
while getopts ":d:v:s:e:" opt; do
case $opt in
d) dataV="$OPTARG"
... | rhwhite/eventTracking | analysis/add_record_concat.sh | Shell | mit | 2,078 |
#!/bin/bash
# MUST run on Linux ubuntu kernel 3.13 or higher
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
KERNEL=$(uname -r)
KERNEL_PATTERN='3\.([0-9]+)\.([0-9]+)-([0-9]+)-generic'
if [[ $KERNEL =~ $KERNEL_PATTERN ]]; then
KERNEL_MINOR=${BASH_REMATCH[1]}
if (( $KERNEL_MINOR < 13 )); then
... | aclisp/voyage | package/k8s-1.1/sigma_slave/bin/install-docker-ubuntu.sh | Shell | mit | 3,236 |
#!/bin/bash
#
REMOTE_USER="slavko@192.168.0.31"
LOCAL_BACKUP_DIR="./backups"
REMOTE_BACKUP_DIR="/home/slavko/mongo_backups"
[ ! -d $LOCAL_BACKUP_DIR ] && mkdir -p $LOCAL_BACKUP_DIR || :
ssh $REMOTE_USER 'bash -s' < regular_mongo_backup.sh
scp $REMOTE_USER:$REMOTE_BACKUP_DIR/* $LOCAL_BACKUP_DIR
#From windows box:
... | Voronenko/regular_mongo_backup | mongo_remote_backup.sh | Shell | mit | 375 |
#!/usr/bin/env bash
# https://hub.docker.com/r/akumuli/akumuli/
docker run -p 8181:8181 -p 8282:8282 -p 8383:8383 -p 4242:4242 \
-e nvolumes='16' -e volume_size='1GB' \
akumuli/akumuli:skylake
# curl -XGET "http://localhost:8181/api/stats" | xephonhq/xephon-b | script/akumuli/novolume.sh | Shell | mit | 257 |
#!/bin/bash
set -e
# delete stale pid file so Plex doesn't fail to start
rm -f "$PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR/Plex Media Server/plexmediaserver.pid"
exec "$@"
| jakirkham/dockerfiles | plex/media-server/docker-entrypoint.sh | Shell | mit | 174 |
#!/bin/sh
# End the script on any errors
set -e
# Change the working directory to this one
cd "$(dirname "$0")"
# Get administrative privileges
sudo -v
# Keep pinging sudo until this script finishes
# Source: https://gist.github.com/cowboy/3118588
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>... | GloverDonovan/new-start | .archlinux/bootstrap.sh | Shell | mit | 948 |
# git aliases
alias g='git'
alias gs='git status'
alias gst='git status'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
alias gd='git diff -w --ignore-blank-lines'
function gi() {
if [[ $# > 0 ]]; then
# if t... | gblock0/dotfiles | zsh/.zsh/git.zsh | Shell | mit | 1,751 |
#!/bin/sh
################################################################################
#NAME
# <NAME> - contain utility functions for creating LXC containers
#
#SYNOPSIS
# <NAME>
#
#AUTHOR
# Written by Florian Barras.
################################################################################
######... | barrasio/leo | leo/vms/lxc/leo-lxc.sh | Shell | mit | 4,128 |
#!/bin/bash
script_dir=$(dirname "$(readlink -f "$0")")
export PYTHONPATH=$script_dir/../lib:$PATH:$PYTHONPATH
python -u $script_dir/../lib/kb_stringtie/kb_stringtieServer.py $1 $2 $3
| Tianhao-Gu/kb_stringtie | bin/run_kb_stringtie_async_job.sh | Shell | mit | 184 |
#!/bin/sh
killall -q dunst
while pgrep -x dunst >/dev/null; do sleep 1; done
dunst -config ~/.config/dunst/dunst
~
| BenShaw/dotfiles | .config/dunst/launch.sh | Shell | mit | 166 |
#!/bin/sh
REGION=great-britain
if [ -f ${REGION}-latest.o5m ]; then
rm ${REGION}-latest.o5m
fi
if [ -f ${REGION}-railway.osm ]; then
rm ${REGION}-railway.osm
fi
if [ -f ${REGION}-railway.ndjson ]; then
rm ${REGION}-railway.ndjson
fi
for element in points multipolygons
do
if [ -f geojson-rail-$... | anisotropi4/goldfinch | ogrrailway/clean-up.sh | Shell | mit | 603 |
#!/bin/bash
set -e
set -x
case "${TOX_ENV}" in
pypy)
mkdir -p `pwd`/../pypy/
wget https://bitbucket.org/pypy/pypy/get/default.tar.bz2 -O `pwd`/../pypy/pypy.tar.bz2
tar -xf `pwd`/../pypy/pypy.tar.bz2 -C `pwd`/../pypy/
export PYPY_LOCATION=`python -c "import glob; import os; print os... | funkybob/rattle | .travis/run.sh | Shell | mit | 794 |
#!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CMD=serve
if [[ $# -eq 1 ]] ; then
CMD=$1
fi
docker run \
-it \
-u $(id -u):$(id -g) \
--net=host \
--mount type=bind,source=$DIR/frontend,destination=/project \
--rm \
node-env yarn $CMD
| bcspragu/Radiotation | serve.sh | Shell | mit | 280 |
#!/bin/bash
# Input parameters
while [[ $# > 0 ]]
do
key="$1"
case $key in
--stage-schema)
STAGE_SCHEMA="$2"
shift
;;
--target-schema)
TARGET_SCHEMA="$2"
shift
;;
*)
echo "Usage: `basename $0` --stage-schema [stage schema] --target-schema [target schema]"
exit 1... | katastralni-cz/etl | src_ruian/load_state.sh | Shell | mit | 953 |
#!/usr/bin/env bash
declare -i build
build=$(< .build)
build=build+1
echo "Build:1."${build}
docker build -t 01alchemist/django-host:1.${build} .
docker build -t 01alchemist/django-host:latest .
echo ${build} > .build | 01alchemist/docker-django-host | docker/build.sh | Shell | mit | 221 |
#!/usr/bin/env bash
#
# Copyright (c) 2017 Oleg Dolgikh
#
softlist_common='mc sudo htop vlc'
softlist_gtk='vpnc networkmanager-vpnc network-manager-vpnc-gnome freerdp remmina remmina-plugin-rdp'
softlist_kde='vpnc networkmanager-vpnc network-manager-vpnc krdc yakuake'
softlist_note='tlp tlp-rdw powertop'
generate_so... | aristarkh87/scripts | setup.sh | Shell | mit | 15,704 |
#!/bin/sh
#
# split every single ConTeXt's stanza from ConTeXt.stanza
#
for tmp in `cat ConTeXt.list`; do
echo "generate $tmp.stanza..."
sed -e '/./{H;$!d;}' -e "x;/name \<$tmp\>/!d;" ConTeXt.stanza > $tmp.stanza
done | hot123tea123/texlive-rpm-spec | split-context-stanza.sh | Shell | mit | 219 |
#! /usr/bin/bash
OS=Linux
BASE_DIR=$HOME
cd $BASE_DIR
git archive --remote=git://git.code.sf.net/p/esmfcontrib/ESMPy --format=tar --prefix=ESMPy/ 630r_01b | tar xf -
export ESMF_DIR=$BASE_DIR/esmf
export ESMFMKFILE=$BASE_DIR/_inst/lib/libO/$OS.gfortran.64.mpiuni.default/esmf.mk
export PATH="$HOME/miniconda/bin:$PATH... | csdms/coupling | .ci/travis/install_esmpy.sh | Shell | mit | 499 |
#!/bin/bash
rsync -a --progress novemberalpha.js index.html style.css bootstrap.min.css 128.199.239.70:vikasgorur.in/novemberalpha/
| vikasgorur/novemberalpha | deploy.sh | Shell | mit | 133 |
RAGUEL_SRC="./src/raguel.sh"
. $RAGUEL_SRC --source-only
if_var $1
then_run HOME=$1
if_var $HOME
then_if_dir $HOME
then_run "shout '$HOME already exists.' && ls -la $HOME"
else_run "mkdir -p $HOME ; echo 'Created $HOME.'"
end_if
| abhishekkr/raguel | examples/create_home_dir_if_absent.sh | Shell | mit | 232 |
#!/usr/bin/env bash
# More information is available : https://gist.github.com/b-long/632c310453b44fc8e785
# If you ever need to confirm that AWS is configured properly, invoke 'aws help' at the
# command line. This will also verify authentication.
# At installation time, make sure to set the initial alarm state:
# ... | b-long/ServiceMonitoring | service-monitor-solr.sh | Shell | mit | 1,066 |
#!/usr/bin/env bash
# Loads the appropriate host file
set -e
set -o pipefail
POOL=${POOL:?"Need to set: POOL"}
source $POOL/host/all.sh
export CURRENT_HOSTNAME=$(hostname)
export HLRS_HOSTNAME=eslogin # HLRS fronend (Unix)
export AIA_HOSTNAME=aia #AIA (Linux)
export AIR_HOSTNAME=air #Air (MacOS)
case "${CURRENT_HOS... | gnzlbg/unix_env | pool/host.sh | Shell | mit | 743 |
#!/bin/bash
set -e
TARGET_UID=$(stat -c "%u" /var/www)
TARGET_GID=$(stat -c "%g" /var/www)
if [ $TARGET_UID != 0 ] || [ $TARGET_GID != 0 ]; then
echo '* Working around permission errors locally by making sure that "docker" uses the same uid and gid as the host volume'
fi
if [ $TARGET_UID != 0 ]; then
echo '-... | eglobal-it/EGlobalTemplateCacheBundle | docker/dev/entrypoint.sh | Shell | mit | 603 |
#!/bin/bash
# ssh -x dwragg@eddie3.ecdf.ed.ac.uk
# Update files time stamp to prevent deletion
# find . -exec touch -h {} \;
# qsub -tc <int> restricts number of concurrent jobs to be run
# Sync folder to datastore
# qsub -o ${SCRATCH}/${PROJECT}/logs -e ${SCRATCH}/${PROJECT}/logs ${SCRIPTS}/stageout.sh \
# -s ${S... | gibberwocky/LBC-BASH | epistasis_notes.sh | Shell | mit | 124,424 |
#!/bin/bash
pandoc *.md -o out.pdf
| douglasmacdonald/timetastical_presentations | docs/2017-05-wanted_summer_student_programmer/md_to_pdf.sh | Shell | mit | 35 |
#python -m unittest discover tests
coverage run test.py discover tests
coverage report -m
#py.test --cov . tests
| supernifty/mgsa | mgsa/test.sh | Shell | mit | 113 |
alias ana='bat $DOTFILES/source/56_ansible.sh'
alias anil='ansible-inventory --list --vars'
alias anig='ansible-inventory --graph --vars'
alias ancls='ansible-config list'
alias anpb='ansible-playbook'
| mikerathbun/dotfiles | source/56_ansible.sh | Shell | mit | 203 |
make clean && clear && clear && make && make run
| NEWPLAN/emlproj | protocol/run.sh | Shell | mit | 49 |
service salt-minion stop
rm -f /etc/salt/pki/minion/minion.pem
rm -f /etc/salt/pki/minion/minion.pub
rm -f /etc/salt/minion_id
rm -f /etc/salt/minion.d/*
chkconfig salt-minion on
sed -i '/HWADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth0
sed -i "/^UUID/d" /etc/sysconfig/network-scripts/ifcfg-eth0
rm /etc/sysconfig/... | bortels/packer-centos-bootstrap | scripts/cleanup.sh | Shell | mit | 598 |
#!/bin/bash
#
# * Neda Jahanshad - neda.jahanshad@ini.usc.edu
# * ENIGMA 2014.
#
# this is the first part of the association script
# it will filter through yout combinedROItable.csv file
# and remove the ROIs we are not going to evaluate this round
# including the lateralized measures
# make sure you have all covar... | ENIGMA-git/ENIGMA | Genetics/DTI/run0_eDTI_GWAS_format.sh | Shell | mit | 1,393 |
#!/bin/bash
man geoc-vector-buffer | jericks/geoc | examples/man_pages.sh | Shell | mit | 34 |
#!/usr/bin/env bash
# Configure stunnel and enable the service if possible
if mdata-get smtp_server 1>/dev/null 2>&1; then
smtp_server=$(mdata-get smtp_server)
gsed -i "s:__SMTP_SERVER__:${smtp_server}:g" /opt/local/etc/stunnel/smtp.conf
svcadm enable svc:/network/stunnel:smtp
fi
| skylime/mi-core-sogo | copy/var/zoneinit/includes/25-stunnel.sh | Shell | mit | 285 |
#!/usr/bin/env sh
## http://foreachsam.github.io/book-util-dbus/book/content/case/fcitx/basic/qdbus/
qdbus --literal org.fcitx.Fcitx /inputmethod org.fcitx.Fcitx.InputMethod.IMList
| foreachsam/book-lang-python | example/subject/gi/fcitx/prototype/demo-get-imlist/qdbus.sh | Shell | mit | 183 |
th webcam/daemon.lua
python webcam/server.py
| hooram/ownphotos-backend | densecap/run.sh | Shell | mit | 45 |
#!/bin/bash
mkdir -p bin
export LD_LIBRARY_PATH=/usr/local/lib
#nim c -r --define:testing --passL:"-lOVRRT64_0.so.5" src/main.nim
nim c --verbosity:0 --define:testing --clibdir:"/usr/local/lib" --parallelBuild:1 -o:../bin/main src/main.nim
compiler_exit=$?
echo "Compiler Exit: $compiler_exit"
if [ "$compiler_exit"... | bluenote10/NimOculusRiftExample | build.sh | Shell | mit | 408 |
#!/bin/sh
./pasm -b hm_pru0_code.p hm_pru0
./pasm -b hm_pru1_code.p hm_pru1
#./pasm -b pwm_pru.p pwm_pru
| MyXingzhe/xingzhe | src/scripts/mkpru.sh | Shell | mit | 106 |
#!/bin/sh
sudo apt install ansible nmap php-cli pwgen
# Install the folders for Ubuntu
mkdir /mnt/c/Users/cpier/Workspace/
ln -s /mnt/c/Users/cpier/Workspace ~/Workspace
ln -s /mnt/c/Users/cpier/Documents ~/Documents
ln -s /mnt/c/Users/cpier/Desktop ~/Desktop
ln -s /mnt/c/Users/cpier/Downloads ~/Downloads
# Bash Scri... | cpierce/dotfiles | scripts/win_init.sh | Shell | cc0-1.0 | 661 |
#!/bin/bash
for f in *.html
do
echo "started on $f"
STEM=$(echo $f | sed 's/.....$//g' )
mkdir $STEM
done
| rossmounce/pensoft-flickr | html_create_subfolders.sh | Shell | cc0-1.0 | 111 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/003_prendeapaga.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=003_prendeapaga.X.${IMAGE_TYPE}.$... | tocache/picomones | UPC Microcontroladores 2018-0/003 prendeapaga.X/nbproject/Package-default.bash | Shell | cc0-1.0 | 1,413 |
#!/bin/bash
# cutsubstring.sh
# $(string#substring)
# 从$string的开头位置截掉最短匹配的$substring
# $(string##substring)
# 从$string的开头位置截掉最长匹配的$substring
stringZ=abcABC123ABCabc
echo ${stringZ#a*C} # 123ABCabc
echo ${stringZ##a*C} # abc
# ${string%substring}
# 从$string的结尾位置截掉最短匹配的$substring
# ${string%%substrin... | yaowenqiang/bash | strings/cutstring.sh | Shell | gpl-2.0 | 692 |
#!/system/bin/sh
mount -o remount,rw /system
#Auto-Kills security/software checking related apps
rm -rf /system/app/SecurityLogAgent
rm -rf /system/priv-app/AdaptClient
rm -rf /system/priv-app/DiagMonAgent
rm -rf /system/priv-app/FotaClient
rm -rf /system/priv-app/FotaAgent
rm -rf /system/priv-app/FWUpdateService
rm ... | Jovy23/N930TUVU1APGC_Kernel | ramdisk/sbin/smk.sh | Shell | gpl-2.0 | 743 |
#!/bin/sh
#
# Run a herd test specifying an expected outcome (Sometimes, Always, Never).
#
# Usage:
# sh RunLitmus.sh file.litmus outcome
#
# 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... | paulmckrcu/litmus | RCUlitmusGen/RunLitmus.sh | Shell | gpl-2.0 | 1,775 |
#! /bin/bash
#
# Script to update po files after a pot-update
# Requires a wesnoth checkout named "wesnoth" in the root of your home directory and
# a git clone named "wesnoth-ang" in the root of your home directory
#
td=(
wesnoth
wesnoth-ai
wesnoth-anl
wesnoth-aoi
wesnoth-did
wesnoth-dm
wesnoth-dw
wesnoth-editor
wesn... | Espreon/wesnoth-ang | utils/update-po-files.sh | Shell | gpl-2.0 | 745 |
#!/bin/sh
################################################################################
## ##
## Copyright (c) 2015 SUSE ##
## ... | liaoqingwei/ltp | testcases/kernel/controllers/cpuacct/cpuacct.sh | Shell | gpl-2.0 | 3,878 |
# Este .sh requiere que el equalizar cava este installado mediandte -$ make install
# Depende de gnome-terminal.
# si es root:
# sudo apt install gnome-terminal git && git clone https://github.com/karlstav/cava && cd cava && ./autogen && ./configure --enable-debug && make install
#
# Mas info sobre el equalizzador lib... | borregs/noisyCurses | start.sh | Shell | gpl-2.0 | 476 |
mkdir result 2>/dev/null
sudo cp ./bin/mxs/openwrt-mxs-uImage ./result/openwrt-mxs-uImage
sudo cp ./build_dir/target-arm_arm926ej-s_uClibc-0.9.33.2_eabi/linux-mxs/linux-3.18.29/arch/arm/boot/dts/imx28-adt-gtr40v2.dtb ./result/fdt.dtb
sudo cp ./package/base-files/files/etc/openwrt_release ./result/openwrt_release
cd res... | m2mselect/owrt | doresult.sh | Shell | gpl-2.0 | 519 |
#!/usr/bin/bash
set -e
if [ -z "$1" ]; then
echo "name, desc, ver, src, build, listurl"
exit 1
fi
name="$1"
desc="$2"
ver="$3"
src="$4"
build="$5"
listurl="$6"
bld="${name}".bld
mkdir -p /var/noop/blds/"${name}"/
pushd /var/noop/blds/"${name}"/
cp ../../etc/template-x.y.bld $bld
sed -i -e 's|NAME=|NAME='"... | nemasu/noop-linux | etc/mkbld.sh | Shell | gpl-2.0 | 578 |
#!/usr/bin/env bash
## set database environment
set -euo pipefail
set -a
source .env || { echo '[travis.sh] did not load .env, using variables from environment.' ; }
set +a
mysql --version
# setup usernames and permissions
if [ "$DB" = 'MARIADB' ]
then
mysql -h $DB_HOST -u root -e "CREATE USER '$DB_USER'@'$DB_HOS... | IMA-WorldHealth/bhima | sh/travis.sh | Shell | gpl-2.0 | 1,360 |
#!/bin/bash
if [ "$1" = "" ]; then
echo "No module specified.";
exit;
fi
BASEDIR=../modules/$1
php buildFileReferences.php -n $1 -a dir -f $BASEDIR
php buildFileReferences.php -n $1 -a add -f $BASEDIR/class.php
php buildFileReferences.php -n $1 -a dir -f $BASEDIR/views
| exponentcms/exponent-cms-1 | sdk/moduleRefs.sh | Shell | gpl-2.0 | 276 |
./src/radosgw-admin user create --uid orit --display_name orit
./src/radosgw-admin user rm --uid orit &
./src/radosgw-admin user rm --uid orit &
./src/radosgw-admin user create --uid orit --display_name orit &
./src/radosgw-admin user rm --uid orit &
./src/radosgw-admin user rm --uid orit &
./src/radosgw-admin user rm ... | oritwas/scripts | test_rm_user.sh | Shell | gpl-2.0 | 545 |
/usr/lib/git-core/git-svn rebase
| avanhel/paparazzi | TUDelft/git_svn_update.sh | Shell | gpl-2.0 | 34 |
#!/system/bin/sh
# Copyright (c) 2012-2013, Qualcomm Technologies, Inc.
# All Rights Reserved.
# Qualcomm Technologies Proprietary and Confidential.
#
#set -x
agentvalue=`getprop persist.sys.agentvalue`
value=($agentvalue)
anrList=()
tombstonesList=()
action=${value[0]} # 0 based
doAction=""
# Autotrigger funct... | deadlink/tcl_alto45_android_kitchen | vendor/system/etc/init.qcom.rootagent.sh | Shell | gpl-2.0 | 4,891 |
#!/bin/bash
#
# Copyright (c) 2015 Jan Henrik Sawatzki, info@tm**.de
#
# Install libs for tmeslogger
#
# Should work with: Lime2
#
set -e
echo "Installing Labjack Exodriver..."
cd /root/exodriver
/bin/bash ./install.sh
cd /
rm -r /root/exodriver
echo "Installing Labjack python library..."
cd /root/LabJackPython
pytho... | JHSawatzki/Lime2-Debian-Builder | scripts/tmeslogger-init.sh | Shell | gpl-2.0 | 1,231 |
#!/bin/bash
#
# Copyright 2007, 2008, 2010 Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
#
# Use this to update compat-wireless-2.6 to the latest
# wireless-testing.git tree you have.
#
# Usage: you should have the latest pull of wireless-2.6.git
# git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testin... | cdmdata/compat-wireless-2011-08-08 | scripts/admin-update.sh | Shell | gpl-2.0 | 19,743 |
# run tests
vendor/bin/phpunit DEV/tests/saucelabs/simpleTest.php | khoegenauer/tickets-cad | DEV/tests/setup/saucelabs_test.sh | Shell | gpl-2.0 | 65 |
#!/usr/bin/env bash
################################################################################
#
# This Bash script synchronizes multiple copies of the same file in the repository.
# Note that it is not robust against files that have whitespace in their names.
#
# Please keep this file organized in alphabetical o... | hurdleman/fieldtrip | bin/synchronize-private.sh | Shell | gpl-2.0 | 95,789 |
#!/bin/sh
# set -x
loop=8
for x in ip_set_list_set ip_set_hash_netiface ip_set_hash_ipportnet \
ip_set_hash_netport ip_set_hash_net ip_set_hash_ipportip \
ip_set_hash_ipport ip_set_hash_ip ip_set_hash_netnet \
ip_set_hash_netportnet \
ip_set_bitmap_port ip_set_bitmap_ipmac \
ip_set_bitmap_ip xt_set ip_set;... | cyclops8456/ipset | tests/setlist_resize.sh | Shell | gpl-2.0 | 747 |
#!/bin/sh
_usage () {
cat <<- EOF
Usage: $0 build Build images
$0 start Start services
$0 stop Stop services
$0 restart Restart services
$0 manage SERVICE [ARG...] Manage the running servi... | oriaks/docker-mariadb | dh.sh | Shell | gpl-2.0 | 837 |
U-Boot for Renesas SuperH
Last update 08/10/2007 by Nobuhiro Iwamatsu
================================================================================
0. What's this?
This file contains status information for the port of U-Boot to the
Renesas SuperH series of CPUs.
================================================... | weimenlove/u-boot-1.3.2 | doc/README.sh | Shell | gpl-2.0 | 1,981 |
#!/bin/bash
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Unit testing library for BeakerLib
# Author: Ales Zelinka <azelinka@redhat.com>
# Author: Petr Splichal <psplicha@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2010 Red... | petr-muller/beakerlib | src/test/test.sh | Shell | gpl-2.0 | 11,274 |
#!/bin/bash
for i in $(cat _collected/list)
do
/usr/sbin/iptables -I INPUT -s $i -j DROP -m comment --comment "Reason: SSH imported"
done
| grzew/ssh-banip | importBADIP.sh | Shell | gpl-2.0 | 141 |
#!/bin/bash
. /usr/local/minerva/conf/tvconf.conf
pushd ~minerva/update/tv >/dev/null
mkdir -p cache/2
mkdir -p cache/1
mkdir -p cache/0
NUM=1
for channel in ${stations[@]}; do
rm -f cache/2/ch$NUM.xml cache/1/ch$NUM.xml cache/0/ch$NUM.xml
wget http://bleb.org/tv/data/listings/2/$channel.xml?Minerva -O cache/... | MarquisdeGeek/minerva | update/tv/gettv.sh | Shell | gpl-2.0 | 567 |
#!/bin/bash
function t0011 {
FUSE_MD5=$(md5sum $TMP_FILE | cut -d\ -f1)
}
function t0011-check {
[ "$FUSE_MD5" = "$FILE_MD5" ]
}
set -e
source `dirname $0`/lib.sh
e4test_declare_slow
e4test_make_LOGFILE
e4test_make_FS 1024
e4test_make_MOUNTPOINT
e4test_mount
TMP_FILE=$MOUNTPOINT/bigfile
dd if=/dev/urando... | f0rki/ext4fuse | test/0011-file-integrity-large.sh | Shell | gpl-2.0 | 704 |
#!/bin/sh
# from printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256))
macaddress=de:ad:be:ef:48:e8
arch=i386
sudo lvcreate -n WindowsXP.snap -s /dev/oxygen/WindowsXP /dev/oxygen -L 10G
sudo qemu-system-$arch \
-smp 2 -m 1024 \
-name WindowsXP \
-net nic,model=virtio,macaddr=$macaddress \
-net tap,ifname=t... | TimJDFletcher/personal-scripts | KVM/kvm-windowsxp-snap.sh | Shell | gpl-2.0 | 474 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2014-2020 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | ppannuto/tup | test/t2177-generate-shell-script2.sh | Shell | gpl-2.0 | 1,669 |
#!/bin/sh
# ---------------------------------------------
# datatype_bar_graph_4station_list.sh
# ---------------------------------------------
#
# Freely available software: see Appaserver.org
# ---------------------------------------------
echo "Starting: $0 $*" 1>&2
if [ "$#" -lt 2 ]
then
echo "Usage: $0 applicat... | timhriley/appaserver | src_hydrology/datatype_bar_graph4station_list.sh | Shell | gpl-3.0 | 841 |
#!/bin/bash
#
# Copyright (c) Shawn Singh, Mubbasir Kapadia, Petros Faloutsos, Glenn Reinman, Glen Berseth
# See license.txt for complete license.
#
BUILD_MODULE=$1
if [ "`which gmake 2> /dev/null`" == "" ]; then
MAKE=make
else
MAKE=gmake
fi
# remove Visual Studio 2008 files that may exist, only used if th... | CG-F15-29-Rutgers/SteerLite | build/clean.sh | Shell | gpl-3.0 | 7,962 |
#!/system/bin/sh
# listen_fireremote.sh
#
# Copyright (c) 2016 Ingo Bressler (dev@ingobressler.net)
#
# This file is part of the FireSound scripts,
# licensed under the terms of the GPLv3.
# adjusts the volume at a button press event of the fire tv remote
VOL_UP_KEY="KEY_UP"
VOL_DOWN_KEY="KEY_DOWN"
MODIFIER_KEY="KEY_... | ibressler/firesound | scripts/listen_fireremote.sh | Shell | gpl-3.0 | 1,391 |
#!/bin/bash
set -o nounset # error when referencing undefined variable
set -o errexit # exit when command fails
installnodemac() { \
brew install node
}
installnodeubuntu() { \
sudo apt install nodejs
sudo apt install npm
}
installnodearch() { \
sudo pacman -S nodejs
sudo pacman -S npm
}
installnod... | pierolenzo/dotfiles | config/nvim/utils/install-docker.sh | Shell | gpl-3.0 | 4,678 |
#!/bin/bash
APP0="vpntohttp"
APP1="vpntohttp_server"
APP2="vpntohttp_client"
APP3="proxy"
APP4="vpntohttp_client2"
build_() {
docker build -t $APP0 .
}
run_server() {
docker stop $(docker ps -a | grep $APP1 | cut -d' ' -f1) > /dev/null 2>&1;
docker rm $(docker ps -a | grep $APP1 | cut -d' ' -f1) > /dev/n... | remijouannet/vpn_proxy | docker.sh | Shell | gpl-3.0 | 2,752 |
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
set -x
ICD_HOME=${ICD_HOME:-"$HOME/icd"}
GH_PAGES="$HOME/rprojects/icd-gh-pages"
pushd "$ICD_HOME"
function finish {
popd
}
trap finish EXIT
#Rscript --vanilla --default-packages=jwutil -e 'jwutil::reqinst("pkgdown"); pkgdown::build_site()'
Rscript --vanilla -e 'jwutil::... | anobel/icd | tools/publish.sh | Shell | gpl-3.0 | 564 |
#!/bin/bash
#------------------------------------------------------------------------------------------------------------
# Zone Transfer
#
# Program for query DNS servers of the domain and try to get the full zone file.
#
# Developer - Giovani Ferreira
#---------------------------------------------------------------... | giovanifss/Domain-Explorer-Tools | zone-transfer/zone-transfer.sh | Shell | gpl-3.0 | 5,377 |
#!/bin/bash
#Configure AP for linux, By Overlord
| LordOverlord/Networks | Linux/Configure.sh | Shell | gpl-3.0 | 50 |
#!/usr/bin/env bash
set -eExuo pipefail
if ! command -v "pkill" >/dev/null 2>&1; then
printf "error: pkill not installed\n"
exit 1
fi
python3 -V
ASCIINEMA_CONFIG_HOME="$(
mktemp -d 2>/dev/null || mktemp -d -t asciinema-config-home
)"
export ASCIINEMA_CONFIG_HOME
TMP_DATA_DIR="$(mktemp -d 2>/dev/null |... | asciinema/asciinema | tests/integration.sh | Shell | gpl-3.0 | 2,335 |
#!/usr/bin/env bash
{ # this ensures the entire script is downloaded #
nvm_has() {
type "$1" > /dev/null 2>&1
}
if [ -z "$NVM_DIR" ]; then
NVM_DIR="$HOME/.nvm"
fi
nvm_latest_version() {
echo "v0.31.2"
}
#
# Outputs the location to NVM depending on:
# * The availability of $NVM_SOURCE
# * The method used ("sc... | globalfoodbook/frontnode | install_nvm.sh | Shell | gpl-3.0 | 7,766 |
#!/bin/sh
if [ -z "$2" ]; then
echo usage: `basename $0` jobid R-script
echo "checks every 10 minutes to see if qstat still shows job jobid, and"
echo "runs R-script when it's done."
exit 1
fi
# wait until first job is done, checking every 10 minutes (hope for no error)
while [ -n "`qstat | grep $1`" ] ; do sleep... | mars0i/popco2 | src/qsub/whenreadyR.sh | Shell | gpl-3.0 | 557 |
#!/usr/bin/env bash
major_version=3
minor_verison=5
patch_version=2
version=${major_version}.${minor_verison}.${patch_version}
directory=cmake-${version}
filename=${directory}.tar.gz
url=https://cmake.org/files/v${major_version}.${minor_verison}/${filename}
echo
echo 'INFO: Installing third party library CMake'
echo '... | mice-software/maus | third_party/bash/03cmake.bash | Shell | gpl-3.0 | 3,347 |
#!/bin/sh
git clean -d -x -f | dwvisser/knox-cheese-shop | clean.sh | Shell | gpl-3.0 | 28 |
#/bin/bash
set -e
# Set the value for if it should display banner with pause or not
banner=${BANNER:-true}
hello_message () {
echo "Completely resetting Skadi and removing all saved data"
read -n 1 -r -s -p "Press any key to continue... or CTRL+C to exit"
echo ""
}
reset_docker () {
docker-compose down
doc... | rough007/CCF-VM | Docker/reset_skadi.sh | Shell | gpl-3.0 | 484 |
#!/bin/sh
pkgname=imlib
ARCH_NAME=imlib2
pkgver=1.5.1
vcs=git
vcs_pkgname=imlib2
gittag=v${pkgver}
urls="http://downloads.sourceforge.net/enlightenment/imlib2-${pkgver}.tar.bz2"
srctar=${pkgname}-${pkgver}.tar.bz2
kiin_make() {
./autogen.sh --prefix=/usr --disable-static
make
}
kiin_install() {
make DEST... | alekseyrybalkin/kiin-repo | multimedia/imlib/package.sh | Shell | gpl-3.0 | 344 |
#!/bin/bash
/usr/bin/gnome-mplayer --fullscreen --loop /home/commonslab/Videos/CF.mp4
| commonslabgr/donation-box-pi | donation-box/scripts/playvideo.sh | Shell | gpl-3.0 | 87 |
#!/bin/bash
set -ex
unset _JAVA_OPTIONS
readonly manifest="src/main/AndroidManifest.xml"
readonly code=$(Xtract /manifest/@android:versionCode "$manifest")
readonly nextcode=$(("$code" + 1))
readonly version="0.${code}"
readonly nextversion="0.${code}+"
readonly tag="v${version}"
readonly releasedir="../locus-rfl... | liskin/locus-rflkt-addon | release.sh | Shell | gpl-3.0 | 1,185 |
shutdown 1 | MakersLab/Farm-server | server/shutdown.sh | Shell | gpl-3.0 | 10 |
#!/bin/bash
#################################
# cyclog - by tony baldwin #
# http://tonyb.us/cyclog #
# keeping a personal cyclog #
# released according to GPL v.3 #
#################################
filedate=$(date +%Y%m%d%H%M%S)
thismonth=$(date +%Y%m)
tday=$(date +%Y%m%d)
source ~/.cyclog.conf
c... | tonybaldwin/cyclog | cyclog.sh | Shell | gpl-3.0 | 7,199 |
#!/bin/bash
#Syntax - rwall_validate.sh listofIPs.txt nameofMessageFile.txt
#strip out windows encoding
dos2unix $1
dos2unix $2
#debugging on
set -x
#read line by line
while read line
do
#take argument from runtime
rwall $line $2
#alternative to doing for loop with cat
done < $1
#exits status of last command
ex... | dc401/mixed_scripts | rwall_validate.sh | Shell | gpl-3.0 | 323 |
$MEIQUE .. || fail "Early fail."
echo "exe:addCustomFlags('-DTHINGS_CHANGED')" >> ../meique.lua
$MEIQUE || fail "Early fail."
EXE=`./exe` || fail "Target not compiled."
if [ "$EXE" != "Changed" ]
then
fail "main.cpp compilation not triggered after compiler command line modification."
fi
| Meique/Meique | tests/change_compiler_flags/script.sh | Shell | gpl-3.0 | 295 |
./monthChart.py
for i in Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec; do
mkdir ottawa/$i
mv -v ottawa/$i*.png ottawa/$i
done
| endlisnis/weather-records | monthChart.sh | Shell | gpl-3.0 | 137 |
#!/bin/sh
set -e
set -u
if ! [ $# -eq 5 ]; then
echo "Usage: ${0} USERNAME_DEFAULT USERNAME_MAIL USERNAME_REMOTE GROUPNAME DIRECTORY.";
exit 1;
fi
echo "Wait for success..."
USER=$1
USER_MAIL=$2
USER_REM=$3
GROUP=$4
DIR=$5
UNAME=$(uname);
# Thanks Chuck L. for the mac addusers
if [ "$UNAME" = "Darwin" ]; ... | srikanth-dabbiru/chips | src/init/adduser.sh | Shell | gpl-3.0 | 2,050 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.