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
#set -e
# modified from wdt_e2e_test.sh and fbonly/wdt_prof.sh
SRCHOST=$1
DSTHOST=$2
if [ -z $DSTHOST ] ; then
echo "Usage: $0 srchost desthost"
exit 1
fi
#SKIP_WRITES="false"
SKIP_WRITES="true"
echo "Run from ~fbcode (wdt's parent dir). Skip writes is $SKIP_WRITES"
#WDTBIN_OPTS="-minloglevel 2 ... | XiaosongWei/wdt | wdt_remote_test.sh | Shell | bsd-3-clause | 3,170 |
#!/bin/bash
echo ==== $1 - $2 ====
cp -p $1 $1.bak
if which dos2unix > /dev/null; then
if dos2unix -vt <$1 2>&1 | tail -1 | grep 'DOS line endings found.$' > /dev/null; then
unix2dos < $2 > $1;
else
cat $2 > $1;
fi
else
cat $2 > $1;
fi
awk ' BEGIN { header=0 } /^[ \t]*\/\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/ { if (header==0... | Anatoscope/sofa | scripts/deprecated/set-header.sh | Shell | lgpl-2.1 | 532 |
#!/bin/bash -e
# \author Hans J. Johnson
#
# This script assists with using clang-tidy.
#
# STEP 0;
# I recommend downloading or building the latest
# version of llvm with clang and the clang-tidy
# tools in a private repo. NOTE: Apple does
# not currently distribute these.
#
# STEP 1:
# Build your source tree with cm... | thewtex/ITK | Utilities/ITKv5Preparation/modernize-use-default-member-init.sh | Shell | apache-2.0 | 1,695 |
#!/bin/sh -x
#Install some prerequisites for git from apt so we don't have to hunt them down manually
apt-get -y install build-essential gettext libcurl4-gnutls-dev libexpat1-dev
cd /tmp
wget https://www.kernel.org/pub/software/scm/git/git-2.5.0.tar.gz
tar zxf git-2.5.0.tar.gz
cd git-2.5.0/
./configure
#Compile it and... | danieldreier/packer-templates | old_templates/ubuntu-13.10-server-amd64/scripts/git.sh | Shell | apache-2.0 | 773 |
#!/bin/sh
##################################################################################
# Custom build tool for Realm Objective-C binding.
#
# (C) Copyright 2011-2015 by realm.io.
##################################################################################
# Warning: pipefail is not a POSIX compatible opti... | MrDeveloper4/TestProject-GitHubAPI | TestProject-GitHubAPI/Pods/RealmSwift/build.sh | Shell | mit | 43,516 |
#!/bin/bash
# Copyright 2017 The Kubernetes Authors.
#
# 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 ... | wlan0/kubernetes | cluster/kubemark/gce/config-default.sh | Shell | apache-2.0 | 5,252 |
#!/usr/bin/env bash
# Copyright 2016 The TensorFlow 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... | adit-chandra/tensorflow | tensorflow/tools/ci_build/builds/test_user_ops.sh | Shell | apache-2.0 | 7,421 |
#!/bin/bash
set -ex
echo no | android create avd --force -n test -t android-18 --abi armeabi-v7a
emulator -avd test -no-skin -no-audio -no-window &
android-wait-for-emulator
adb shell input keyevent 82
| xfumihiro/sqlbrite | gradle/start-emulator.sh | Shell | apache-2.0 | 204 |
#!/bin/bash
fw_installed cppsp && return 0
VERSION=0.2.3
CPPSP_HOME=$IROOT/cppsp_$VERSION
fw_get -o cppsp_$VERSION.tar.xz http://downloads.sourceforge.net/project/cpollcppsp/CPPSP%200.2%20%28testing%29/cppsp_$VERSION.tar.xz
fw_untar cppsp_$VERSION.tar.xz
# Using cp+rm over mv intentionally, because apparently this ... | kbrock/FrameworkBenchmarks | toolset/setup/linux/frameworks/cppsp.sh | Shell | bsd-3-clause | 885 |
#!/bin/bash
set -ex
SCRIPT_DIR=$(dirname $(readlink -f "$0"))
WPT_ROOT=$(readlink -f $SCRIPT_DIR/../..)
cd $WPT_ROOT
if [[ $RUN_JOB -eq 1 ]]; then
pip install -U setuptools
pip install -U requests
fi
| youtube/cobalt | third_party/web_platform_tests/tools/ci/install.sh | Shell | bsd-3-clause | 210 |
#!/bin/sh
./configure --prefix=$PREFIX --with-readline=gnu CFLAGS="-I$PREFIX/include -I$PREFIX/include/ncurses" CPPFLAGS="-I$PREFIX/include -I$PREFIX/include/ncurses" LDFLAGS="-L$PREFIX/lib" LIBS="-lncurses"
make LDLIBS="-lncurses"
make install
| gvlproject/bioconda-recipes | recipes/slang/build.sh | Shell | mit | 247 |
#!/bin/sh
# Run the waf duplicate symbol check, wrapped in subunit.
. testprogs/blackbox/subunit.sh
subunit_start_test duplicate_symbols
if ./buildtools/bin/waf build --dup-symbol-check; then
subunit_pass_test duplicate_symbols
else
echo | subunit_fail_test duplicate_symbols
fi
| SVoxel/R7800 | git_home/samba.git/buildtools/wafsamba/test_duplicate_symbol.sh | Shell | gpl-2.0 | 284 |
# Start docker daemon
function start_daemon() {
# Drivers to use for Docker engines the tests are going to create.
STORAGE_DRIVER=${STORAGE_DRIVER:-overlay}
EXEC_DRIVER=${EXEC_DRIVER:-native}
docker --daemon --log-level=panic \
--storage-driver="$STORAGE_DRIVER" --exec-driver="$EXEC_DRIVER" &
DOCKER_PID=$!
# ... | tmckayus/oshinko-rest | vendor/github.com/docker/distribution/contrib/docker-integration/helpers.bash | Shell | apache-2.0 | 523 |
#!/bin/bash
# This script serves as an example to demonstrate how to generate the gRPC-Go
# interface and the related messages from .proto file.
#
# It assumes the installation of i) Google proto buffer compiler at
# https://github.com/google/protobuf (after v2.6.1) and ii) the Go codegen
# plugin at https://github.co... | KeyTalk/ApplicationInterfaceGateway | vendor/src/github.com/coreos/etcd/Godeps/_workspace/src/google.golang.org/grpc/codegen.sh | Shell | bsd-3-clause | 638 |
# Prepare puppetlabs repo
wget http://apt.puppetlabs.com/puppetlabs-release-wheezy.deb
dpkg -i puppetlabs-release-wheezy.deb
apt-get update
# Install puppet/facter
apt-get install -y puppet facter
| cotocisternas/vagrant-puppetmaster | veewee/definitions/vincent-box/puppet.sh | Shell | gpl-2.0 | 198 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2009:0016
#
# Security announcement date: 2009-01-13 21:40:34 UTC
# Script generation date: 2017-01-01 21:12:25 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.5.0-ibm.i386:1.5.0.9-1jpp.2.el5
... | Cyberwatch/cbw-security-fixes | Red_Hat_5/x86_64/2009/RHSA-2009:0016.sh | Shell | mit | 3,039 |
# Copyright (c) 2016-present Arctic Ice Studio <development@arcticicestudio.com>
# Copyright (c) 2016-present Sven Greb <development@svengreb.de>
# Project: igloo
# Repository: https://github.com/arcticicestudio/igloo
# License: MIT
# Populate the database with color output configurations for file types and ext... | arcticicestudio/igloo | snowblocks/zsh/pkgs/dircolors/config.zsh | Shell | mit | 627 |
# network socket wait , use expression to find a socket count by process name
#
# RUN AS ROOT: to view user mappings
#
portFilter="" ; # update this if you want to locate a specific port
networkConns=$(ss | grep -iv wait | wc -l)
networkWait=$(ss | grep -i wait | wc -l)
print_with_head "Number of active sockets... | csap-platform/csap-core | csap-core-service/src/main/resources/csap-templates/shell-scripts/network-socket-wait.sh | Shell | mit | 595 |
#!/bin/bash
# windows-tasks.sh
# Copyright (c) 2013-2019 Pablo Acosta-Serafini
# See LICENSE for details
echo "Performing Windows-specific CI tasks"
sed -r -i -e "s/disable=(.*)/disable=\1,C0103/g" "${EXTRA_DIR}"/.pylintrc
cat "${EXTRA_DIR}"/.pylintrc
| pmacosta/peng | data/windows-tasks.sh | Shell | mit | 252 |
#!/bin/bash
#
# Convert any audio to PCM (mulaw) format.
#
# Please note that number of samples must be not smaller than 240,
# not greater than 16080, and evenly divisible by 240 as described
# in the documentation from Cisco.
#
# This script sets the upper bound of output samples to 16080 cause
# I assume that the in... | alextwl/cisco79xx-sip-stuff | any2pcm.sh | Shell | mit | 2,158 |
#!/bin/bash
matsim_path="/home/greg/Desktop/matsim-0.6.0/*"
# 1 ----------------
# Pull osm xml data file using the Overpass API.
# Need to get the data in pieces or API will reject
echo "Downloading OSM Freight Network "
for i in northeast south midwest west; do
echo
## get the osm data
wget -O data/usa_${i}... | gregmacfarlane/trucksim_network | build_network.sh | Shell | mit | 1,150 |
#!/bin/bash
help(){
echo "Placeholder Help Message - Ask Wil"
}
if [ $# -lt 1 ] ; then
echo "Error: Missing argument!"
help
exit 1;
fi
if [ $1 == "-h" -o $1 == "--help" ]; then
help
exit 0
fi
if [ ! -d $1/lux ]
then
mkdir $1/lux
fi
cp -v lux/*.lua $1/lux
if [ ! -d $1/lux/geom ]
then
mk... | Kazuo256/luxproject | deploy.sh | Shell | mit | 475 |
#!/bin/bash
set -eux
# create database dummy
PGHOST=${PGHOST:-postgres.docker}
PGHOST=${PGHOST} PGUSER=postgres PGPASSWORD= psql -d dummy -c "select count(*) from dummy"
PGHOST=${PGHOST} PGUSER=postgres PGPASSWORD= dropdb dummy || true
| toopy/python-microservice-benchs | scripts/teardown_db.sh | Shell | mit | 237 |
#!/bin/bash
function broadcast() {
ls /dev/ | grep -E '^ttys.{3}$' | while read -r line ; do
echo $1 > "/dev/$line"
done
}
count=0
while [ $count -lt 30 ]; do
broadcast ""
let count=count+1
done
broadcast "WOOOO ! Wake up ! Slack notif bitch"
| terry90/doc-bot | urgent.sh | Shell | mit | 275 |
#!/usr/bin/env bash
# link the uploaded nginx config to enable it
echo -e "\e[0m--"
rm -rf /etc/nginx/sites-enabled/*
for vhost in default pma; do
ln -sf /etc/nginx/sites-available/$vhost /etc/nginx/sites-enabled/020-$vhost
test -L /etc/nginx/sites-enabled/020-$vhost && echo -e "\e[0mLinking nginx $vhost confi... | PHPinDD/cqrs-newsletter-double-opt-in | env/bootstrap.sh | Shell | mit | 1,060 |
#!/bin/bash
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
| paulfioravanti/dotfiles | oh-my-zsh/setup.sh | Shell | mit | 145 |
#!/bin/bash
set -e
echo "Setup services"
cp startServices.sh /etc/cron.reboot/
if id polo &>/dev/null; then
echo "polo user already exists"
else
adduser polo
fi
cp -r polo /home/polo/
chown -R polo:polo /home/polo/polo
chmod 755 /home/polo/polo
echo "Setup services - done"
| akiraheid/setup | server/public/setupServices.sh | Shell | mit | 279 |
alias indenitail="tail -200 -F $HOME/indeni/logs/indeni.log"
alias indenilog="emacs-gui $HOME/indeni/logs/indeni.log"
| yarinb/dotfiles-1 | indeni/aliases.zsh | Shell | mit | 118 |
#!/bin/bash
# arguments
#
# 1 - N_divs for pipe flow problem
# 2 - lattice type [ 'D3Q15' | 'D3Q19' | 'D3Q27' ]
# 3 - dynamics [ 1 = LBGK | 2 = RBGK | 3 = MRT]
# 4 - partition methodology [ '1D' | '3D' | 'metis' ]
# 5 - number of partitions
# 6 - number of omp threads
# 7 - pre-process
MAT_FILE=pipe_flow.mat
Nu... | stu314159/pyNFC | run_pipeFlow_local.sh | Shell | mit | 1,153 |
#!/usr/bin/env bash
# Copyright (c) 2014 The Bitcoin Core developers
# Copyright (c) 2014-2015 The Dash developers
# Copyright (c) 2015-2017 The PIVX developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Functions used ... | ColossusCoinXT/ColossusCoinXT | qa/rpc-tests/util.sh | Shell | mit | 2,627 |
#!/usr/bin/env bash
# Applies the salt configuration to the local system and appends any
# command-line arguments to the call.
SRC_DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
salt-call \
--local \
--file-root="$SRC_DIR/salt/" \
--pillar-root="$SRC_DIR/pillar/" \
state.apply \
"$@"
| lucaskolstad/saltshaker | apply.sh | Shell | mit | 316 |
#!/bin/bash
perlbrew_root=/usr/local/perlbrew
perlbrew_home=/usr/local/perlbrew/etc
version=5.16.2
export PERLBREW_ROOT=${perlbrew_root} &&
curl -kL http://install.perlbrew.pl | bash &&
export PERLBREW_HOME=${perlbrew_home} &&
source ${perlbrew_root}/etc/bashrc &&
perlbrew init &&
perlbrew install perl-${version} &&
p... | hnakamur/setup_linux | centos6/install_perlbrew.sh | Shell | mit | 759 |
#!/bin/sh
./clean-deb.sh
fetch.sh
build-chrome.sh
build-deb.sh
| bjwbell/ironframe | deb/all.sh | Shell | mit | 64 |
#/bin/bash
#########################################
#Function: auto fdisk
#Usage: bash auto_fdisk.sh
#Author: Customer service department
#Company: Alibaba Cloud Computing
#Version: 4.0
#########################################
count=0
tmp1=/tmp/.tmp1
tmp2=/tmp/.tmp2
>$tmp1
>$tmp2
fstab_file=/et... | woerwin/learning | kjyw/disk/auto_fdisk_ssd.sh | Shell | mit | 3,561 |
#!/bin/bash
#
# This installs the Unicorn and sparkles script dependancies
#
sudo apt-get -qy remove python-pip
sudo easy_install pip
sudo apt-get -q update
sudo apt-get -qy install python-dev python-pip gcc make
sudo pip install rpi-ws281x
sudo pip install UnicornHat
sudo easy_install web.py
sudo easy_install net... | lizard43/docker-demo17 | swarm/demo/sparkles/installUnicorn.sh | Shell | mit | 436 |
#!/bin/bash
version=`grep "__version__ = " yacon/__init__.py | cut -d "'" -f 2`
git tag "$version"
if [ "$?" != "0" ] ; then
exit $?
fi
rm -rf build
rm -rf dist
python setup.py sdist
python setup.py bdist_wheel
echo "------------------------"
echo
echo "Built version: $version"
echo
echo "now do:"
echo " tw... | cltrudeau/django-yacon | clean_build.sh | Shell | mit | 344 |
#!/bin/bash
PATH_TO_VISIT="/bulk/lkaislan/software/visit2_10_0.linux-x86_64/bin/visit"
export VISIT_EXPORT_INDIR=`pwd`
VISIT_EXPORT_MODELNAME=""
read -e -p "Enter model output directory: " VISIT_EXPORT_MODELNAME
while [ ! -d "$VISIT_EXPORT_MODELNAME" ]
do
echo $VISIT_EXPORT_MODELNAME is not a directory.
read ... | HUGG/NGWM2016-modelling-course | tools/exportDB.sh | Shell | mit | 462 |
# Enable powerful prompt sequences.
setopt prompt_subst
setopt prompt_percent
# Start prompt on its own line. \o/
setopt prompt_cr
setopt prompt_sp
# Make rprompt disappear so we can copy/paste output.
setopt transient_rprompt
# Influenced by http://www.paradox.io/posts/9-my-new-zsh-prompt
# and the zsh prompt theme... | rwstauner/run_control | zsh/prompt.zsh | Shell | mit | 3,872 |
#!/bin/sh -eux
targets=`find . -type f \( -name '*.go' -and -not -iwholename '*vendor*' \)`
packages=$(go list ./...)
# Apply tools
export PATH=$(pwd)/build-cmd:$PATH
which goimports golint staticcheck gosimple unused qbg
go generate $packages
goimports -w $targets
go tool vet $targets
golint $packages
staticcheck $p... | favclip/ds2bq | test.sh | Shell | mit | 389 |
#!/bin/bash
# Source: https://github.com/geerlingguy/JJG-Ansible-Windows/blob/master/windows.sh
# Windows shell provisioner for Ansible playbooks, based on KSid's
# windows-vagrant-ansible: https://github.com/KSid/windows-vagrant-ansible
#
# @todo - Allow proxy configuration to be passed in via Vagrantfile config.
#
#... | HoGentTIN/javaee-poc | scripts/run-playbook-locally.sh | Shell | mit | 1,085 |
docker run -d -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock botbox-sandbox go run main.go
| crestonbunch/botbox | services/sandbox/server/run.sh | Shell | mit | 102 |
#!/usr/bin/env bash
set -o errexit # fail on simple (non-piped) error
set -o pipefail # also fail on piped commands (e.g. cat myfile.txt | grep timo)
set -o nounset # fail when accessing unset vars
DOCKERFILE_HASH=$(md5 -q ./Dockerfile)
CONTAINER_NAME=the-katas
IMAGE_NAME=${CONTAINER_NAME}:${DOCKERFILE_HASH}
funct... | tddbin/katas | run.sh | Shell | mit | 919 |
#! /bin/bash
echo "backup config.."
mv config.js config.bkp.js
echo "get updates.."
git pull
echo "restore config.."
mv config.bkp.js config.js
| 5LICK/chat-bot | update.sh | Shell | mit | 146 |
#!/bin/bash
# exclude vendor/
SOURCES="./ergo.go ./irc"
if [ "$1" = "--fix" ]; then
exec gofmt -s -w $SOURCES
fi
if [ -n "$(gofmt -s -l $SOURCES)" ]; then
echo "Go code is not formatted correctly with \`gofmt -s\`:"
gofmt -s -d $SOURCES
exit 1
fi
| oragono/oragono | .check-gofmt.sh | Shell | mit | 263 |
#!/bin/sh
brightnessctl set 5%-
value=$(brightnessctl -m | cut -d',' -f4)
volnoti-show -s /usr/share/pixmaps/volnoti/display-brightness-symbolic.svg $value
| Spotlight0xff/scripts | brightness_lower_wayland.sh | Shell | mit | 156 |
#!/bin/bash
java -ea -jar P1.jar 2 3 3 3 out 3 3
| andremourato/programacao | programacao-2/guiaoTA/E15/testJar3.sh | Shell | mit | 50 |
WEBSITE_URL=http://rpcentre-indev.bancey.xyz APP_PORT=8080 NODE_ENV=preprod pm2 start server.js
| alexbance/rp-centre | scripts/indevStart.sh | Shell | mit | 96 |
#!/bin/sh
# extra models
cd models
wget http://cloud9.cs.fau.de/index.php/s/ErxcdZJu4aXuLtO/download -O data.zip
unzip data.zip
rm data.zip
cd ..
exit
# vision scenes
cd vision
wget http://cloud9.cs.fau.de/index.php/s/0fQkKJzGHyVxSGf/download -O data.zip
unzip data.zip
rm data.zip
cd ..
# vision bal datasets
cd vis... | darglein/saiga | data/download_datasets.sh | Shell | mit | 445 |
cd ..
chmod a+x ./premake4-linux
./premake4-linux clean
./premake4-linux gmake linux
if [ -d build_logs ]; then
rm -rf build_logs
fi
mkdir build_logs
if [ -d local_install ]; then
rm -rf local_install
fi
mkdir local_install
mkdir local_install/oolua
make config=debug oolua | tee ./build_logs/oolua_gnu_debu... | elite-lang/oolua | build_scripts/gnu_build.sh | Shell | mit | 554 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:0701
#
# Security announcement date: 2016-04-29 18:04:22 UTC
# Script generation date: 2017-01-01 21:17:12 UTC
#
# Operating System: Red Hat 7
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.7.1-ibm.i686:1.7.1.3.40-1jpp.1.e... | Cyberwatch/cbw-security-fixes | Red_Hat_7/x86_64/2016/RHSA-2016:0701.sh | Shell | mit | 2,045 |
#!/bin/bash
amixer -q sset Master 5%-
notify-send "Volume Decreased" "$(awk -F'[][]' '/dB/ { print $2 }' <(amixer sget Master))"
| pkosel/dotfiles | scripts/.local/bin/decrease-volume.sh | Shell | mit | 131 |
#!/bin/sh
BASEDIR=`dirname $0`
touch $BASEDIR/install.log
# turn the logo red to indicate we're installing
echo "Changing Logo: Red" > $BASEDIR/install.log
dtool 6 1 0 100
dtool 6 2 0 0
# cleanup some old stuff first
echo "Cleaning up old Mounts (ignore failures)" >> $BASEDIR/install.log
umount -f /opt/boxee/skin
u... | cigamit/boxeehack | install/install.sh | Shell | mit | 4,152 |
#!/bin/bash
sudo pip install --upgrade pip -q
sudo pip install numpy --upgrade -q
sudo pip install pandas --upgrade -q
sudo pip install spacy --upgrade -q
sudo pip install tensorflow --upgrade -q
sudo pip install keras --upgrade -q
sudo pip install matplotlib --upgrade -q
sudo pip install seaborn --upgrade -q
sudo pip... | botlabio/autonomio | .travis.sh | Shell | mit | 419 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2012:0715
#
# Security announcement date: 2012-06-07 12:44:35 UTC
# Script generation date: 2017-02-03 21:12:27 UTC
#
# Operating System: CentOS 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - thunderbird.x86_64:10.0.5-2.el6.centos
#... | Cyberwatch/cbw-security-fixes | CentOS_6/x86_64/2012/CESA-2012:0715.sh | Shell | mit | 606 |
#!/bin/bash
BASEPATH=$(cd "$(dirname "$0")/.."; pwd)
cd $BASEPATH
./manage.py dumpdata --indent=2 user members events mailcenter auth.Group > sdemo/fixtures/sdemo-example-site.json | animekita/selvbetjening | scripts/freeze-database.sh | Shell | mit | 182 |
#!/bin/sh
THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# load bash utils
source "${THIS_SCRIPT_DIR}/bash_utils/formatted_output.sh"
UPLOADER_VERSION=1.09
# Tester Groups that will be notified when the app is ready. Setup groups in your TestFairy account testers page.
# This parameter is option... | rudacs/bitrise-steps-testfairy-deploy-android | testfairy-upload-android.sh | Shell | mit | 2,735 |
#!/usr/bin/env bash
#
# This file is part of the serializerjs package.
#
# (c) HAIRCVT <tfidry@haircvt.com>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
#
# Functions for publishing and deploying artifacts
#
setupDeployment() {
isDe... | haircvt/serializerjs | scripts/prepare-build.sh | Shell | mit | 889 |
#!/bin/bash
sudo service nogiushi stop
sudo docker rm -f nogiushi.com
sudo docker tag -f eikeon/nogiushi.com:dev eikeon/nogiushi.com:prod
sudo docker rmi eikeon/nogiushi.com:dev
sudo docker create --name="nogiushi.com" -p 3000:3000 -t eikeon/nogiushi.com:prod
sudo service nogiushi start
| nogiushi/nogiushi.com | deploy.sh | Shell | mit | 289 |
#!/usr/bin/env bash
# Test block generation and basic wallet sending
if [ $# -lt 1 ]; then
echo "Usage: $0 path_to_binaries"
echo "e.g. $0 ../../src"
exit 1
fi
set -f
SaveCoinD=${1}/SaveCoind
CLI=${1}/SaveCoin-cli
DIR="${BASH_SOURCE%/*}"
SENDANDWAIT="${DIR}/send.sh"
if [[ ! -d "$DIR" ]]; th... | SureshMatsui/SaveCoin | qa/rpc-tests/wallet.sh | Shell | mit | 2,702 |
export PATH=$HOME/.fnm:$PATH
eval "`fnm env --multi`"
| sergiovilar/dotfiles | nvm/path.zsh | Shell | mit | 54 |
TEST="$1"
PATH=$PATH:$HOME/.meteor/
if [ "$TRAVIS" = "true" ]; then
BUILD=$TRAVIS_BUILD_NUMBER
JOB=$TRAVIS_JOB_NUMBER
echo Find screenshots here: http://s3files.4minitz.com/4minitz/4minitz/$BUILD/$JOB/tests/snapshots
fi
if [ "$TEST" = "unit" ]; then
echo Run unit test
npm run test:unit
UNIT=... | RobNeXX/4minitz | travis.sh | Shell | mit | 1,174 |
#!/bin/bash
rm _* *.o *.d *.asm *.sym *.img vectors.S bootblock entryother initcode initcode.out kernel mkfs
| MiguelALopez/Xv6-OS | script.sh | Shell | mit | 110 |
#!/usr/bin/env bash
SKIP_SUCCEEDED=true
SUCCEDED_COMPILES=( '5.5.0' '5.5.1' '5.5.2' '5.5.3' '5.5.4' '5.5.5' '5.5.6' '5.5.7' '5.5.8' '5.5.9' '5.5.11' '5.5.12' '5.5.13' '5.5.14' '5.5.15' '5.5.16' '5.5.17' '5.5.18' '5.5.19' '5.5.20' '5.5.21' '5.5.22' '5.5.23' '5.5.24' '5.5.25' '5.5.26' '5.5.27' '5.5.28' '5.5.29' '5.5.30'... | KatoPue/KatoStead | resources/test-compiling.sh | Shell | mit | 2,446 |
#!/bin/bash
#
# http://www.sinatrarb.com/intro.html#Command%20Line
#
rackup -p 4567 -o 0.0.0.0 -e :development
| ckaiser79/build-statistics-dashboard | server/bin/start-dev.sh | Shell | mit | 114 |
if [[ -o interactive ]]; then
function _exit() # function to run upon exit of shell
{
echo -e "[1;31mHasta la vista, baby![0m"
}
trap _exit 0
fi
cdpath=(. ~/src)
typeset -U cdpath
# setopt NO_all_export
setopt always_last_prompt #
setopt always_to_end # Dont move to end of word afte... | air7head/dotfiles | zsh/oh-my-zsh/custom.symlink/misc.zsh | Shell | mit | 6,100 |
#!/bin/bash
set -e
if [ -z "$1" ]
then
echo "usage: $0 <annotation in GFF3> <alignment in BAM> <best_score> <score_matrix> <filtered outfile>"
echo ""
exit 1
else
annotation="$1"
fi
if [ -z "$2" ]
then
echo "usage: $0 <annotation in GFF3> <alignment in BAM> <best_score> <score_matrix> <filtered o... | ratschlab/RNA-geeq | SAFT/galaxy/optimal_filter_set_galaxy.sh | Shell | mit | 2,304 |
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Info:
# Miroslav Vidovic
# githubuser.sh
# 20.12.2016.-17:18:33
# -----------------------------------------------------------------------------
# Description:
# Given a GitHub username, pulls information about th... | miroslavvidovic/bash-scripts | Github_user/githubuser.sh | Shell | mit | 1,385 |
#!/bin/bash
data_dir=$DATA_DIR
if [ -z $DATA_DIR ] ; then
data_dir=/data
fi
test ! -e ~/.ssh && ln -s $data_dir/.ssh ~/.ssh
test ! -e ~/.tmuxrc.conf && ln -s $data_dir/.dotfiles/tmuxconf ~/.tmuxrc.conf
test ! -e ~/.vimrc && ln -s $data_dir/.dotfiles/vimrc ~/.vimrc
test ! -d ~/.vim-go && test -d $data_dir/.vim.go... | kachontep/dotfiles | envs/ubuntu_env.sh | Shell | mit | 502 |
# arguments:
# $1: container name
# $2: Username **none** if no user
# $3: Password **none** if no password
# $4 For extra information to be output
print_app_credentials() {
echo ""
echo "#########################################################################"
echo ""
echo " Credentials for $1:"
echo ""
i... | hence-io/images | base/hence-utils.sh | Shell | mit | 4,331 |
#!/bin/env bash
cd() {
if [[ -z $1 ]]; then
builtin cd
elif [[ $1 == "--" ]] || [[ $1 == "-" ]]; then
builtin cd "$@"
elif ! [[ -d $1 ]]; then
echo -n "$1 is not a directory." >&2
local dir=$(dirname "$1" 2> /dev/null)
echo "Stripping component - cd to $dir." >&2
builtin cd "$dir"
else
... | dgengtek/dotfiles | bash/.bash.d/utils/utilities.sh | Shell | mit | 4,853 |
version="$1"
nix hash to-sri --type sha256 "$(nix-prefetch-url https://storage.googleapis.com/jax-releases/nocuda/jaxlib-${version}-cp39-none-manylinux2010_x86_64.whl)"
nix hash to-sri --type sha256 "$(nix-prefetch-url https://storage.googleapis.com/jax-releases/nocuda/jaxlib-${version}-cp310-none-manylinux2010_x86_64.... | NixOS/nixpkgs | pkgs/development/python-modules/jaxlib/prefetch.sh | Shell | mit | 1,014 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2238-1
#
# Security announcement date: 2011-05-19 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:15 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - vino:2.28.2-2+squeeze1
#
# Last ve... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2011/DSA-2238-1.sh | Shell | mit | 635 |
#!/bin/bash
# DETAILS: Process handling utilities
# CREATED: 07/17/13 17:14:12 IST
# MODIFIED: 03/28/16 17:49:11 IST
#
# AUTHOR: Ravikiran K.S., ravikirandotks@gmail.com
# LICENCE: Copyright (c) 2013, Ravikiran K.S.
# Warn unset vars as error, Verbose (echo each command), Enable debug mode
#set -uvx
# Source .ba... | rkks/scripts | bash/ps.sh | Shell | mit | 1,394 |
#!/bin/bash
cd $(dirname $0)
left=1125
top=24
WIDTH=156 HEIGHT=53 ../batgraph
power=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | awk -F'[[:space:]][[:space:]]+' '/percentage/ { print $3 }')
state=$(upower -i /org/freedesktop/UPower/devices/battery_BAT0 | awk -F'[[:space:]][[:space:]]+' '/state/ { print... | Zjael/dotfiles | scripts/pop-up/bat-graph.sh | Shell | mit | 1,372 |
ehsan@sandbox /usr/share/gitweb
% sudo git clone git://github.com/kogakure/gitweb-theme.git static
Cloning into 'static'...
remote: Counting objects: 296, done.
remote: Total 296 (delta 0), reused 0 (delta 0), pack-reused 296
Receiving objects: 100% (296/296), 702.69 KiB | 244.00 KiB/s, done.
Resolving deltas: 100% (1... | journalehsan/Sandbox-Book | Code/gitweb-theme.sh | Shell | cc0-1.0 | 366 |
#!/usr/bin/env bash
echo $date
sudo cp ../config/10-fastcgi.conf /etc/lighttpd/conf-enabled/
sudo service lighttpd stop
sudo service lighttpd start
| DrSkippy/simple_record | scripts/deploy.bash | Shell | cc0-1.0 | 151 |
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
EXPECTED_ARGS=5
#if [ $# -ne $EXPECTED_ARGS ]
if [ $# -lt 5 ] || [ $# -gt 6 ]
then
echo "Usage: AG_BIN KB_PORT KB_NAME KABOB_ROOT FILE (FORMAT)"
echo $@
exit 1
fi
AG_BIN=$1
PORT=$2
KB=$3
KABOB_DATA_ROOT=$4
FILE=$KABOB_DATA_ROOT/$5
SP... | drlivingston/kabob | scripts/load-file.sh | Shell | epl-1.0 | 818 |
#!/bin/bash
rm *out* 2> /dev/null
echo mod.in | genesis
getcur mod.out > curfile
echo "rad.in" | genesis
| Archman/pelican | legacy/old/genesis/noX/run.sh | Shell | gpl-2.0 | 107 |
#! /bin/sh
set -e
if test "x$1" = "x"; then
echo >&2 "usage: $0 SRCDIR"
exit 1
fi
cd "$1"
top_srcdir=../../..
build_aux_dir=$top_srcdir/build-aux
move_if_change=$build_aux_dir/move-if-change
if test ! -f $move_if_change; then
echo >&2 "$0: no such file: $move_if_change"
exit 1
fi
# The file to generate.
ou... | glazzara/vaucanson1 | src/tests/sanity/generate_files.sh | Shell | gpl-2.0 | 1,244 |
#!/bin/bash
# pgn4web javascript chessboard
# copyright (C) 2009, 2010 Paolo Casaschi
# see README file and http://pgn4web.casaschi.net
# for credits, license and more details
localPgnFile_default=live.pgn
refreshSeconds_default=49
timeoutHours_default=12
if [ -z "$1" ] || [ "$1" == "--help" ]
then
echo
echo... | ornicar/pgn4web | live/live-grab.sh | Shell | gpl-2.0 | 3,860 |
#!/bin/sh
##
## Visopsys
## Copyright (C) 1998-2015 J. Andrew McLaughlin
##
## archive-source.sh
##
# This just does all of the things necessary to prepare an archive (zipfile)
# of the Visopsys sources and utilities.
ZIPLOG=./zip.log
echo ""
echo "Making Visopsys SOURCE archive"
echo ""
# Are we doing a release... | buddywithgol/visopsys | utils/archive-source.sh | Shell | gpl-2.0 | 2,107 |
#! /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 ... | pylam/automake | t/tar-opts-errors.sh | Shell | gpl-2.0 | 1,323 |
#!/bin/sh -e
rm -rf config.cache build
mkdir build
# create po/Makefile.in.in
glib-gettextize --force --copy
# add aclocal.m4 to current dir
echo "aclocal..."
aclocal -I m4
# This generates the configure script from configure.in
echo "autoconf..."
autoconf
echo "autoheader..."
autoheader
# Generate Makefile.in fr... | djrtl/ncmpc-dj | autogen.sh | Shell | gpl-2.0 | 465 |
#!/bin/bash
# A simple script to find the max speed of your boosting CPU
MAX=$(grep MHz /proc/cpuinfo | sort -n | tail -1 | cut -d ' ' -f 3 | cut -d . -f 1)
while true; do
CURRENT=$(grep MHz /proc/cpuinfo | sort -n | tail -1 | cut -d ' ' -f 3 | cut -d . -f 1)
[[ ${CURRENT} -gt ${MAX} ]] && MAX=${CURRENT}
echo "Cu... | tsuehpsyde/misc | bash/max-clock.sh | Shell | gpl-2.0 | 368 |
#!/bin/bash
nohup java -jar DownloadDaemon-0.4.5.jar &
| fluxodesign/DownloadDaemon | dod.sh | Shell | gpl-2.0 | 56 |
#!/bin/bash
# failed part
echo $*
| nonemaw/MATRIX_01 | COMP9041/ass1/test03.sh | Shell | gpl-2.0 | 39 |
#!/bin/bash
#PBS -W group_list=bhurwitz
#PBS -q standard
#PBS -l jobtype=serial
#PBS -l select=1:ncpus=2:mem=5gb
#PBS -l place=pack:shared
#PBS -l walltime=24:00:00
#PBS -l cput=24:00:00
source /usr/share/Modules/init/bash
module load R
SED=/bin/sed
cd $RAW_DIR
#
# The following script runs QC on
# a set of pair... | hurwitzlab/qc | illumina_host/workers/qc_fastq.sh | Shell | gpl-2.0 | 604 |
#!/bin/bash
. ./agentenv.sh
$ANT_HOME/bin/ant -buildfile cmd.xml cmd
| nices96/athena-meerkat | agent/src/main/resources/bin/runCmd.sh | Shell | gpl-2.0 | 71 |
#!/bin/bash
######################################################################
#
# idFORGE Framework - Manage identity manuals in community
# Copyright © 2015 The CentOS Artwork SIG
#
# idFORGE Framework is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public L... | areguera/idforge | Library/Modules/Render/Modules/Svg/svg.sh | Shell | gpl-2.0 | 1,393 |
#!/bin/sh
#if we pass 'hyperv_synic' to this function, line 7 - 12 will be deleted
#
# ~/lkp/kvm-unit-tests$ cat unittests.cfg -n
# 1 [vmx_null]
# 2 file = vmx.flat
# 3 extra_params = -cpu host,+vmx -append null
# 4 arch = x86_64
# 5 groups = vmx
# 6
# 7 [hyperv_synic]
# 8 file = hyperv_synic.flat
# 9 smp = 2... | rli9/lkp-tests | lib/tests/kvm-unit-tests.sh | Shell | gpl-2.0 | 2,086 |
# ----------------------------------------------------------------------------
# Calculadora de datas, trata corretamente os anos bissextos.
# Você pode somar ou subtrair dias, meses e anos de uma data qualquer.
# Você pode informar a data dd/mm/aaaa ou usar palavras como: hoje, ontem.
# Usar a palavra dias informa núm... | faustovaz/funcoeszz | zz/zzdata.sh | Shell | gpl-2.0 | 15,546 |
#!/bin/bash
export PATH=/data/apps/bin:$PATH
cd /data/Lacuna-Server-Open/bin
killall memcached
| plainblack/Lacuna-Server-Open | bin/stop_memcached.sh | Shell | gpl-2.0 | 95 |
#!/bin/sh -x
[ "$#" -lt 2 ] && echo "Usage: sign_app.sh <app> <identity>" && exit
src_app="$1"
identity="$2"
QT_FMWK_VERSION="5"
fix_frameworks() {
TMP_APP=$1
QT_FMWK_PATH=$2
QT_FMWKS=$3/Qt*.framework
echo "Patching Qt frameworks..."
for FMWK in $QT_FMWKS; do
FMWK_NAME=`basename -s .fra... | evook/mirall | admin/osx/sign_app.sh | Shell | gpl-2.0 | 1,038 |
__run() {
if [ "$1" = '!' ]; then
shift
if __run "$@"; then
return 1
else
return 0
fi
fi
"$@"
}
assert() {
if ! __run "$@"; then
printf '%s\n' "assertion failed: $*" >&2
exit 3
fi
}
| quixotique/shellboost | libsh/assert.sh | Shell | gpl-2.0 | 254 |
#!/bin/bash
set -e
cd ${CIDS_GENERATOR_DIR}/
if [[ -f ${CIDS_GENERATOR_DIR}/settings.xml ]]; then
if [[ -f ${CIDS_DISTRIBUTION_DIR}/.private/server.pwd && -f ${CIDS_DISTRIBUTION_DIR}/.private/keystore && -f ${CIDS_DISTRIBUTION_DIR}/.private/keystore.pwd ]]; then
SERVER_USERNAME=$(cat ${CIDS_DISTRIBUTION_DI... | cismet/docker-images | cids-distribution/cidsDistribution/utils/_build_autodistribution.master.sh | Shell | gpl-3.0 | 2,811 |
#!/bin/bash
cp -v .aliases .curlrc .exports .functions .gdbinit .gemrc .gitconfig .lldbinit \
.psqlrc .tmux.conf .vimrc .wgetrc .zshrc krb5.conf $HOME
| Na0na0/dotfiles | bootstrap.sh | Shell | gpl-3.0 | 155 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="7"
pegasus_lite_version_patch="0"
pegasus_lite_enforce_strict_wp_check="true"
pegasus_lite_version_allow_wp_auto_download="true"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_signal_int INT
trap... | elainenaomi/sciwonc-dataflow-examples | dissertation2017/Experiment 1A/instances/10_2_workflow_full_10files_secondary_wmj_3sh_3rs_with_annot_with_proj_3s_range/dags/ubuntu/pegasus/example_workflow/20161107T124001+0000/00/00/calculateratio_3_ID0000018.sh | Shell | gpl-3.0 | 1,252 |
#!/bin/bash
# Copyright (C) 2013--2016, 2021 The PISM Authors
# This is just a helper script to make running EISMINT II experiments easier.
# It adds suggested diagnostics which help compare to the published experiments.
SCRIPTNAME="#(runexp.sh)"
set -e # exit on error
PISM_MPIDO="mpiexec -n "
NN=4 # default nu... | pism/pism | examples/eismintII/runexp.sh | Shell | gpl-3.0 | 1,927 |
#!/usr/bin/env bash
### Colors for output
RESTORE='\033[0m'
RED='\033[00;31m'
GREEN='\033[00;32m'
YELLOW='\033[00;33m'
BLUE='\033[00;34m'
PURPLE='\033[00;35m'
CYAN='\033[00;36m'
LIGHTGRAY='\033[00;37m'
LRED='\033[01;31m'
LGREEN='\033[01;32m'
LYELLOW='\033[01;33m'
LBLUE='\033[01;34m'
LPURPLE='\033[01;35m'
LCYAN='\03... | Raikia/FiercePhish | update.sh | Shell | gpl-3.0 | 9,846 |
#!/usr/local/bin/bash
#
# Copyright (c) 2014, Are Hansen - Honeypot Development
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification, are
# permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the... | ZombieNinjaPirate/IncompleteCode | bifrozt_mgmt.sh | Shell | gpl-3.0 | 46,578 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.