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
# Run in the tools directory.
cd "$(dirname $0)"
# Setup and build bindgen.
if [ "$(uname)" == "Linux" ]; then
export LIBCLANG_PATH=/usr/lib/llvm-3.8/lib;
else
export LIBCLANG_PATH=`brew --prefix llvm38`/lib/llvm-3.8/lib;
fi
# Make sure we have llvm38.
if [ ! -x "$(command -v clang++-3.8)" ]; then
... | aeischeid/servo | ports/geckolib/tools/setup_bindgen.sh | Shell | mpl-2.0 | 873 |
#!/bin/bash
cat "$1" | cut -d ',' -f 2 | tr 'ATCG' 'TAGC' | paste -d, "$1" - | cut -d ',' -f 1,3 > "$2"
| cfe-lab/Kive | kive/FixtureFiles/execute_result_tests_rm/Sandboxes/useralice_run4_F0DdJj/step2/complement.sh | Shell | bsd-3-clause | 120 |
#for file in dm0; do for slice in `seq 1 3`; do xcombine_vol_data ../topo_input/slice_file${slice} $file topo OUTPUT_SUM . 0; mv ${file}.mesh ${file}_${slice}.mesh; done; done
#for file in mu_kernel kappa_kernel; do xcombine_vol_data ../topo_input/slice_file $file topo OUTPUT_SUM . 0; done
for file in mu_kernel_smoot... | kbai/specfem3d | utils/ADJOINT_TOMOGRAPHY_TOOLS/iterate_adj/cluster/sum_kernel/combine.bash | Shell | gpl-2.0 | 421 |
#!/bin/bash
#
# mta-server-with-linux-libs.sh
# mta-server64-with-linux-libs.sh
#
# Launch mta-server after adding 'linux-libs' to the library search path
#
if [[ "$0" != *"64"* ]]; then
# 32 bit
LAUNCHER="mta-server"
LINUXLIBS="x86/linux-libs"
else
# 64 bit
LAUNCHER="mta-server64"
LINUXLIBS="... | Necktrox/mtasa-blue | Shared/data/linux-libs/mta-server64-with-linux-libs.sh | Shell | gpl-3.0 | 762 |
#!/bin/bash
##########################################################
# This script provides final build automation for the repo.
# It's responsible for pushing the build. Once your
# branch has been merged by master then use the pull script
# to finalize syncing up your git and github repos.
#
# PRE-REQS:
# 1. Make ... | EnzeZY/offline-editor-js | scripts/push.sh | Shell | apache-2.0 | 2,181 |
#!/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... | F30/storm | storm-client/src/genthrift.sh | Shell | apache-2.0 | 1,485 |
#!/bin/sh
# Run ACATS with the GNU Ada compiler
# The following functions are to be customized if you run in cross
# environment or want to change compilation flags. Note that for
# tests requiring checks not turned on by default, this script
# automatically adds the needed flags to pass (ie: -gnato or -gnatE).
# gc... | SanDisk-Open-Source/SSD_Dashboard | uefi/gcc/gcc-4.6.3/gcc/testsuite/ada/acats/run_all.sh | Shell | gpl-2.0 | 8,370 |
#!/usr/bin/env bash
# **zaqar.sh**
# Sanity check that Zaqar started if enabled
echo "*********************************************************************"
echo "Begin DevStack Exercise: $0"
echo "*********************************************************************"
# This script exits on an error so that errors ... | pacinete/devstack | exercises/zaqar.sh | Shell | apache-2.0 | 1,244 |
#!/bin/bash
set -eu -o pipefail
# create destination folder
OUTDIR=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
mkdir -p $OUTDIR
# install files
chmod +x $SRC_DIR/ShortStack
# https://bioconda.github.io/troubleshooting.html#usr-bin-perl-or-usr-bin-python-not-found
sed -i.bak '1 s|^.*$|#!/usr/bin/env perl|g' $SR... | ostrokach/bioconda-recipes | recipes/shortstack/build.sh | Shell | mit | 691 |
#! /bin/sh
#
# Some of these should really be done by man2html
#
# The ~/xxx links don't really work -- netscape doesn't expand the home
# directory of the user running navigator
#
sed -e 's|<B>gnu.bash.bug</B>|<A HREF="news:gnu.bash.bug">gnu.bash.bug</A>|g' \
-e 's|<I>/bin/bash</I>|<A HREF="file:/bin/bash"><I>/bi... | coreswitch/zebra | vendor/github.com/coreswitch/openconfigd/cli/doc/htmlpost.sh | Shell | apache-2.0 | 1,127 |
set -u -e
. ~/redishub/bin/rhlogging.sh
bot=${bot-}
if [ $# -gt 0 ]
then
if echo "$1" | grep '^[a-z][\-a-z]*_bot$'
then
bot=`echo "$1" | sed -n 's/^[^_]*_bot$/\1/p' || echo ''`
fi
fi
echo bot [$bot]
[ -n "$bot" ]
cd ~/.bot.$bot || cd ~/.${bot}_bot || cd ~/.${bot}
pwd
ls -l
echo
botToken=`cat token`... | evanx/rquery | scripts/telegram.sh | Shell | isc | 2,050 |
#!/usr/bin/bash
rm -rf src-book
mkdir src-book
pushd src
for SRCFILE in $(find . -name "*.md")
do
mdexec -template='```sh
{{.Output}}```' $SRCFILE > ../src-book/$SRCFILE
done
popd
mdbook build
rsync -a src/webshots html-book/
rsync -a src/consoleshots html-book/
| howeyc/ledger | ledger/book/genbook.bash | Shell | isc | 267 |
#!/bin/bash
#
# domain name should be a fqdn e.g. vmhost.somedomain.com
# disk image source should be a directory containing 1 or more disk.img files
# and a cloud-init seed image named config.img
#
if [ $# -lt 2 ]; then
echo "Usage $0 <domain name> <disk image source>"
exit 1
fi
GUEST=$1
IMAGE_SRC=$2
IMAGE_DEST=... | ajbonner/unix | libvirt/virt-inst.sh | Shell | mit | 993 |
#!/bin/sh
docker build -t tools/maven:3.2.5 .
| pesan/docker-maven | build.sh | Shell | mit | 46 |
#!/bin/sh
# emit_warnings_for_todos.sh
#
# Created by Alexander I. Kovács on 2/11/14.
# Copyright (c) 2014 TenTen. All rights reserved.
#
# @source https://github.com/DesignatedInitializer/XcodeBuildPhaseScripts
#
# @reference http://matthewmorey.com/xcode-build-phases/
#
# Adding this script as a build phase to... | DesignatedInitializer/XcodeBuildPhaseScripts | emit_warnings_for_todos.sh | Shell | mit | 940 |
#!/bin/sh
fifo_name=$(mktemp -u -t dbfifo.XXXXXX)
if ! mkfifo "$fifo_name" ; then
echo "Cant create fifo!" >&2
exit 1
fi
trap 'rm -f "$fifo_name"' EXIT
dir=`dirname $0`
${dir}/.dropbox-dist/dropboxd >${fifo_name} 2>/dev/null &
export APP_PID=$!
while read -r line
do
if echo "$line" | grep -q cli_link_nonce
th... | waitxd/dropbox-link | dropbox-link.sh | Shell | mit | 433 |
#! /bin/bash
pushd ..
mvn test
popd
diff -u ../target/test-classes/StandardSqlTest-ref.txt ../target/test-classes/StandardSqlTest-last.txt --color=auto | ewanld/fjdbc-sql | scripts/test.sh | Shell | mit | 153 |
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "Tokumei installation must be run as root!" 1>&2;
exit
fi
filesizelimit_def='104857600'
read -p "Attachment file size limit (bytes) [$filesizelimit_def]: " filesizelimit
filesizelimit=${filesizelimit:-$filesizelimit_def}
filesizelimit_human=$(echo "$filesizelimit" |... | tokumeico/tokumei-www | privclear.sh | Shell | mit | 8,452 |
# rh-git29-git-all \
# devtoolset-6-gcc-c++ devtoolset-6-gdb \
./repoquery-recursive.py \
pssh clusterssh htop iftop iperf3 fio inxi lshw ansible \
python2-pip python2-paramiko python-ipython-console \
python34 python34-setuptools python34-pip python34-paramiko python34-pg8000 \
tmux collectl glances atop statgrab-... | Zor-X-L/offline-utils | centos7-utils/download.sh | Shell | mit | 821 |
#!/bin/bash
set -e
source /build/buildconfig
set -x
apt-get clean
rm -rf /build/build.sh
rm -rf /tmp/* /var/tmp/*
| mlehner/docker | baseimage/cleanup.sh | Shell | mit | 115 |
#!/bin/bash
#
# Notify of Homebrew updates via Notification Center on Mac OS X
#
# Author: Chris Streeter http://www.chrisstreeter.com
# Requires: terminal-notifier. Install with:
# brew install terminal-notifier
TERM_APP='/Applications/Terminal.app'
BREW_EXEC='/usr/local/bin/brew'
TERMINAL_NOTIFIER='/usr/local/Cell... | ikosenn/cray-cray | brew-notifier.sh | Shell | mit | 1,574 |
#!/bin/bash
echo "PRE build script #1"
| ashmckenzie/percheron | spec/unit/support/pre_build_script1.sh | Shell | mit | 40 |
#!/usr/bin/env bash
BAR_ICON=""
while true; do
checkupdates=$(checkupdates)
if [[ "" == "$checkupdates" ]]; then
updates=0
else
updates=$(echo "$checkupdates" | wc -l)
fi
updatesinfo="$BAR_ICON $updates"
if echo "$checkupdates" | grep "^linux\|^systemd" | grep -v 'linux-firm... | BlackIkeEagle/dotfiles | .config/polybar/scripts/updates.sh | Shell | mit | 622 |
/usr/bin/python rideindego-rumps.py
| josepvalls/rideindegochecker | rideindego.command | Shell | mit | 36 |
#!/bin/bash
f=generator.caffemodel
if [ ! -f "${f}" ]; then
echo "Downloading ..."
wget http://s.anhnguyen.me/181007__generator.caffemodel -O ${f}
fi
ls ${f}
echo "Done."
| Evolving-AI-Lab/ppgn | nets/generator/noiseless/download.sh | Shell | mit | 179 |
# zsh mac
# path
export PATH="/usr/local/sbin:$PATH"
# OpenGL Mac OS X (gcc)
alias opengl="gcc -framework GLUT -framework OpenGL"
# brew install android-sdk
if [ -d /usr/local/opt/android-sdk ]; then
export ANDROID_HOME=/usr/local/opt/android-sdk
fi
# brew install zsh-syntax-highlighting
source /usr/local/opt/zs... | mziyut/.zsh | mac.zsh | Shell | mit | 722 |
alias reload!='. ~/.zshrc'
# browsers
alias chrome='open -a "Google Chrome"'
# oracle
alias sqlplus="~/sftw/oracle/instantclient_12_1/sqlplus"
| AravinthPanch/dotfiles | zsh/aliases.zsh | Shell | mit | 145 |
#!/bin/sh
_script=$0
DIR="$(dirname $_script)"
phpdoc run -vvv --ansi --progressbar --directory $DIR/src,$DIR/examples --target $DIR/doc --title wellid --log $DIR/phpdoc.log
echo $DIR
| broeser/wellid | phpdoc.sh | Shell | mit | 186 |
#!/bin/bash
# Reports compressed file sizes for each JS file in dygraphs.
# This list needs to be kept in sync w/ the one in dygraph-dev.js
# and the one in jsTestDriver.conf.
for file in \
dygraph-layout.js \
dygraph-canvas.js \
dygraph.js \
dygraph-utils.js \
dygraph-gviz.js \
dygraph-interaction-model.js \
dygraph... | cavorite/dygraphs | file-size-stats.sh | Shell | mit | 857 |
/home3/redwards/opt/iq-tree/current/bin/iqtree -nt 16 -s seqs.B.rc.trim.aln -bb 1000 -alrt 1000
| linsalrob/crAssphage | Combined_Analysis/Analysis/PrimerB/bootstrap/iqtree.sh | Shell | mit | 96 |
#! /bin/bash
# Cleanup folder
rm -rf _assets
# Recreate folder
mkdir -p _assets/website/
mkdir -p _assets/ebook/
# Compile JS
browserify src/js/core/index.js | uglifyjs -mc > _assets/website/gitbook.js
browserify src/js/theme/index.js | uglifyjs -mc > _assets/website/theme.js
# Compile Website CSS
lessc -clean-css ... | Synapse-Cmf/documentation | theme/gitbook-plugin-theme-synapse/src/build.sh | Shell | mit | 1,031 |
#!/bin/sh
echo ":::"
echo "Installing and configuring Virtualbox"
sudo pacman -S qt4 virtualbox-guest-iso virtualbox-host-modules
# load vboxdrv module on startup
sudo sh -c "echo \"vboxdrv\" > /etc/modules-load.d/virtualbox.conf"
echo ":::"
echo "You should now install Virtualbox extensions from AUR"
echo "e.g. yao... | brandonlichtenwalner/arch-install | package-install/virtualbox.sh | Shell | mit | 350 |
EPOCHS=5
CUDA_VISIBLE_DEVICES=0 python cifar10_cnn_mgpu.py --epochs $EPOCHS
CUDA_VISIBLE_DEVICES=0,1 python cifar10_cnn_mgpu.py --mgpu --epochs $EPOCHS
CUDA_VISIBLE_DEVICES=0,1,2,3 python cifar10_cnn_mgpu.py --mgpu --epochs $EPOCHS
CUDA_VISIBLE_DEVICES=0,1,2,3,4,5 python cifar10_cnn_mgpu.py --mgpu --epochs $EPOCHS
... | rossumai/keras-multi-gpu | experiments/keras_tensorflow/avolkov1/original/run_original_7gforce.sh | Shell | mit | 794 |
#!/bin/bash
echo "Cheking resolv.conf file"
grep "research.ravenpack.com" /etc/resolv.conf >> /dev/null
if [ $? -eq 0 ];then
echo "resolv.conf looks fine"
else
echo "Adding FQDN to your resolv.conf file"
echo "search research.ravenpack.com private.aws.ravenpack.com development.ravenpack.com" >> /etc/resolv.... | joserc87/config-files | scripts/setup-dns-fqdn.sh | Shell | mit | 328 |
#!/bin/bash
#
#
# install application specific to the zsh shell
echo "##################################################"
echo "# Topic Installer: ZSH"
echo "##################################################"
# install oh-my-zsh
echo " #"
echo " # Installation: oh-my-zsh"
echo " ##############################... | mspl13/dotfiles | zsh/install.sh | Shell | mit | 978 |
#!/bin/bash
#
# Usage:
#
# ./sar_seq.sh yyyymmdd1 ... yyyymmddn dims enl significance
echo '***** Multitemporal PolSAR Change Detection **********'
echo '***** Radarsat2 quad or dualpol imagery **************'
echo '***** Pre-processed with MapReady ********************'
echo '***************************************... | mortcanty/SARDocker | src/sar_seq_rs2.sh | Shell | mit | 1,223 |
#!/usr/bin/env bash
curl http://127.0.0.1:4000/demo-playlist/dyn/guts/arm.m3u > arm.m3u
curl http://127.0.0.1:4000/demo-playlist/dyn/guts/dykc.m3u > dykc.m3u
curl http://127.0.0.1:4000/demo-playlist/dyn/guts/homework.m3u > homework.m3u
curl http://127.0.0.1:4000/demo-playlist/dyn/guts/oscar.m3u > oscar.m3u
curl http:/... | samwhelp/demo-playlist | all/guts/update.sh | Shell | mit | 377 |
#!/usr/bin/env bash
echo
echo [+] Restarting compute services
echo
sleep 2
service nova-compute restart
| SocialGeeks/vagrant-openstack | scripts/compute-configuration.sh | Shell | mit | 109 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | hanjt/calendar | calendar/Pods/Target Support Files/Pods-calendar/Pods-calendar-frameworks.sh | Shell | mit | 3,483 |
#!/bin/sh -e
# allow a custom EOxServer location to override the default one if needed
export EOX_ROOT=${1:-"/var/eoxserver"}
# Locate sudo (when available) for commands requiring the superuser.
# Allows setup of a custom autoconf instance located in the non-root user-space.
SUDO=`which sudo`
# Add CRS 900913 if not... | ESA-VirES/eoxserver-magnetism | vagrant/scripts/development_installation.sh | Shell | mit | 1,442 |
git add -A
git commit -m $1
git push origin database
git checkout master
git pull
git merge database
git push origin master
git checkout database
| ethz-nus/nan-codefest | server/sync-this-shit.sh | Shell | mit | 146 |
# This script takes care of testing your crate
set -ex
main() {
# Build debug and release targets
cross build --target $TARGET
cross build --target $TARGET --release
if [ ! -z $DISABLE_TESTS ]; then
return
fi
# Run tests on debug and release targets.
cross test --target $TARGET
... | posborne/rust-nix | ci/script.sh | Shell | mit | 455 |
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error : You must be root to run this script, please use root to install mysql"
exit 1
fi
clear
echo "=================================================="
echo ... | quan993210/shopexDocument | install/mysql.sh | Shell | mit | 880 |
# -*- sh -*-
info_command() {
printf "%s:\\n%s\\n\\n" "OS" "$(uname -a)"
printf "%s:\\n%s\\n\\n" "SHELL" "$($SHELL --version)"
printf "%s:\\n%s\\n\\n" "ASDF VERSION" "$(asdf_version)"
printf "%s:\\n%s\\n\\n" "ASDF ENVIRONMENT VARIABLES" "$(env | grep -E "ASDF_DIR|ASDF_DATA_DIR|ASDF_CONFIG_FILE|ASDF_DEFAULT_TOO... | asdf-vm/asdf | lib/commands/command-info.bash | Shell | mit | 451 |
local OLD_EMAIL CORRECT_EMAIL SHOULD_PUSH
echo -n "Old Email: "
read OLD_EMAIL
echo -n "Correct email: "
read CORRECT_EMAIL
echo -n "Should push changes [Y/n]: "
read SHOULD_PUSH
SHOULD_PUSH=${SHOULD_PUSH:-Y}
local CMD="git filter-branch -f --env-filter ' \
if [ "\$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]; \
then \
... | tbremer/dotfiles | zsh/git-reset-email.zsh | Shell | mit | 623 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-2937-1
#
# Security announcement date: 2014-05-27 00:00:00 UTC
# Script generation date: 2017-01-01 21:09:00 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - mod-wsgi:3.3-2+deb6u1
#
# Last ver... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2014/DLA-2937-1.sh | Shell | mit | 632 |
#!/bin/bash -ev
#
# Installation Script
# Written by: Tommy Lincoln <pajamapants3000@gmail.com>
# Github: https://github.com/pajamapants3000
# Legal: See LICENSE in parent directory
#
#
# Dependencies
#**************
# Begin Required
#glib-2.44.1
#js-17.0.0
# End Required
# Begin Recommended
# End Recommended
# Begin O... | pajamapants3000/BLFS_scripts_etc | scripts/polkit-0.113.sh | Shell | mit | 2,446 |
#!/bin/sh
prog=labudde_test.m
descr="labudde_test.m (octfile)"
depends="labudde_test.m labudde.oct test_common.m check_octave_file.m tf2Abcd.m"
tmp=/tmp/$$
here=`pwd`
if [ $? -ne 0 ]; then echo "Failed pwd"; exit 1; fi
fail()
{
echo FAILED ${0#$here"/"} $descr 1>&2
cd $here
rm -rf $tmp
... | robertgj/DesignOfIIRFilters | test/01/t0163a.sh | Shell | mit | 2,916 |
#!/bin/bash
mkdir -p "${SRCROOT}/../build"
which pact-mock-service
pact-mock-service start --pact-specification-version 2.0.0 --log "${SRCROOT}/../build/pact.log" --pact-dir "${SRCROOT}/../build/pacts" -p 1234
| bgannin/pact-consumer-swift | scripts/start_server.sh | Shell | mit | 212 |
#!/bin/bash
SSR_SERVER001=${SSR_SERVER001:-0.0.0.1}
SSR_SERVER002=${SSR_SERVER002:-0.0.0.2}
SSR_SERVER003=${SSR_SERVER003:-0.0.0.3}
SSR_SERVER004=${SSR_SERVER004:-0.0.0.4}
SSR_SV_PORT=${SSR_SV_PORT:-8888}
SSR_PASS=${SSR_PASS:-mpswd}
SSR_METH=${SSR_METH:-aes-256-cfb}
SSR_PROTO=${SSR_PROTO:-auth_sha1_v2}
SSR_OBFS=${SSR_O... | arthurliang/dockerfiles | proxychain/init.sh | Shell | mit | 1,059 |
#!/bin/bash
# this script runs a few functional tests to make sure that everything
# is working properly. on error in any subcommands, it should not quit
# and finally exit with a non-zero exit code if any of the commands
# failed
# get the directory of this script and use it to correctly find the
# examples director... | shobhitmittal/textract | tests/run_functional_tests.sh | Shell | mit | 3,202 |
#!/bin/sh
cd "${0%/*}"
echo "Starting application...\n\n"
./crazymk | open-fun/crazymk | scripts/run.sh | Shell | mit | 67 |
#!/bin/bash
pushd $(dirname $0) &>/dev/null
source build.env || exit $?
APP_DIR=Banshee.app
BUNDLE=$APP_DIR/Contents/MacOS
LIB_PREFIX=$BUILD_PREFIX/lib
[[ -d "${LIB_PREFIX}" ]] || {
echo "ERROR: ${LIB_PREFIX} does not exist; dependencies must first be built"
exit 1
}
rm -rf $APP_DIR
cp -rf app-bundle-data Banshee... | eeejay/banshee | build/osx/make-app-bundle.sh | Shell | mit | 1,866 |
#ip=192.168.20.235
ip=10.8.0.235
odbc_srv='IntegraDb'
usr='zam'
pass='lis'
database='gstdb'
#sqsh -S SERV -U user -P passwd -D db -L bcp_colsep=',' -m bcp
# -C 'select * from some_table where foo=bar' > /path/to/output.out
# Define table variable
sqsh -S $odbc_srv -U $usr -P $pass -D $database -L bcp_colsep=' ' -... | ambagasdowa/kml | cron/disponibilidad_historical_trigger_job.sh | Shell | mit | 2,516 |
# make sure errors stop the script
set -e
echo "add patch-package"
yarn add $1
alias patch-package=./node_modules/.bin/patch-package
echo "@microsoft/mezzurite-core => @types/angular should not contain patch-package"
if grep patch-package ./node_modules/@microsoft/mezzurite-core/node_modules/@types/angular/index.d.ts... | ds300/patch-package | integration-tests/nested-scoped-packages/nested-scoped-packages.sh | Shell | mit | 1,240 |
#!/bin/zsh
# zsh settings for history
export HISTIGNORE="&:ls:[bf]g:exit:reset:clear:cd:cd ..:cd.."
export HISTSIZE=25000
export HISTFILE=~/.zsh_history
export SAVEHIST=25000
setopt APPEND_HISTORY
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLA... | soleblaze/dotfiles | zsh/history.zsh | Shell | mit | 393 |
set -e
if [ "$LANE" = "ios" ]; then
brew update
brew install yarn
brew outdated node || brew upgrade node
brew outdated yarn || brew upgrade yarn
elif [ "$LANE" = "android" ]; then
node --version
npm install -g yarn
fi | idehub/react-native-google-analytics-bridge | .travis/before_install.sh | Shell | mit | 242 |
#! /bin/sh
# Runs the docker container mounting the current directory in the working directory of the container
# and leaves you at a bash prompt
# Usage :
# ./run.sh
# Run from the directory containing the Dockerfile
docker run -v `pwd`:/var/lib/blog -p 8000:4000 -t -i saltatory/blog /bin/bash
| saltatory/saltatory.github.io | docker-run.sh | Shell | mit | 297 |
#!/usr/bin/env bash
declare -a fac_users=("fernando" "ximenes" "guilherme" "liulin" "ana" "alexandre")
function create_groups {
group=fac
echo "creating group " $group
sudo adduser --quiet --disabled-password --shell /bin/bash --home /home/fac --gecos "User" $group --ingroup $group
sudo passwd $user
sudo addu... | lnls-fac/scripts | bin/rip/sirius-computer-setup.bash | Shell | mit | 8,964 |
#!/bin/bash
set -eu -o pipefail
outdir=$PREFIX/share/$PKG_NAME-$PKG_VERSION-$PKG_BUILDNUM
mkdir -p $outdir
mkdir -p $PREFIX/bin
cp ./chexmix_v0.4.jar $outdir
cp $RECIPE_DIR/chexmix.sh $outdir/chexmix
chmod +x $outdir/chexmix
ln -s $outdir/chexmix $PREFIX/bin
| jerowe/bioconda-recipes | recipes/chexmix/build.sh | Shell | mit | 261 |
sudo apt-get update
sudo apt-get -y install unzip
sudo apt-get -y install vim
sudo apt-get -y install python-software-properties python g++ make
sudo add-apt-repository -y ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get -y install nodejs=0.10.25-1chl1~precise1
mkdir -p ~/closure
cd ~/closure
sudo apt-get -y in... | maciejjaskowski/node.js-grunt-closure | node-env.sh | Shell | mit | 509 |
sudo apt-add-repository -y ppa:paolorotolo/copy
sudo apt-get -y update
sudo apt-get -y install copy | lovromazgon/ubuntu-reinstall-scripts | apps/install_copy.sh | Shell | mit | 99 |
../play compile
../play stop
../play start
| duanp0128/PlayHongKongResort | restart.sh | Shell | mit | 43 |
/bin/sh ./install --with-CC=gcc4 \
--with-CXX=g++4 \
--with-CXXLINK=g++4 \
--with-GC_LIBDIRS='-L/usr/local/gcc-4.0.2/lib -lgc' \
--with-GC_INCLDIRS='-I/usr/local/gcc-4.0.2/include' \
--with-DOT=/usr/bin/dot \
--with-TCL_INCLDIRS='-I/usr/local/include' \
--with-TCL_LIBDIRS='-L/usr/local/lib -... | nxt4hll/roccc-2.0 | roccc-compiler/src/NuSuif/suif2/install4ahawk.sh | Shell | epl-1.0 | 352 |
#!/bin/bash
s3cmd sync -P dist/ s3://blog.eikeland.se --cf-invalidate --cf-invalidate-default-index --add-header "Cache-Control: max-age=600"
| stianeikeland/bloggr-clj | sync.sh | Shell | epl-1.0 | 142 |
#!/usr/bin/env bash
# Create the .m2 folder if it does not exist
[ -d $HOME/.m2 ] || mkdir $HOME/.m2
# Copy the settings.xml file to .m2
[ -f $HOME/.m2/settings.xml ] || rm $HOME/.m2/settings.xml
cp ./travis_settings.xml $HOME/.m2/settings.xml
| subclipse/subclipse | .travis-archive/setup_travis.sh | Shell | epl-1.0 | 246 |
#! /usr/bin/env bash
$XGETTEXT *.cpp -o $podir/libfolderarchivesettings.pot
| kolab-groupware/kdepim-runtime | resources/folderarchivesettings/Messages.sh | Shell | gpl-2.0 | 76 |
#! /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/werror2.sh | Shell | gpl-2.0 | 1,401 |
#!/bin/bash
APATH=/ROOTPATH/mProject
PATH_LIB=${APATH}/library_jui
function copyLib
{
cp -r ${PATH_LIB}/$1/lib/*.* ${PATH_LIB}/$1/libUse/
}
function copyLibAll
{
copyLib replaceFileLib
copyLib TreeLib
copyLib XMLLibrary
copyLib dataStruct
copyLib strLibrary
}
function exportLib
{
export LD_L... | Chalearm/MachineLearning- | mProject/fileApp/fileReplaceApp/arun_temp.sh | Shell | gpl-2.0 | 1,168 |
#!/bin/sh
# --------------------------------------------------------------------------
# buildscript for osx 32bit/64bit
# --------------------------------------------------------------------------
# Processing Wrapper for the Oculus Rift library
# http://github.com/xohm/SimpleOculusRift
# -----------------------------... | xohm/SimpleOculusRift | buildOsx.sh | Shell | gpl-2.0 | 2,158 |
#!/system/bin/sh
#Set governor items
#echo 378000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;
echo 1512000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;
echo 1512000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq;
echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_booted;
DISLIT=0
... | Perseus71/KT747 | kernel/usr/initramfs/sbin/post-init.sh | Shell | gpl-2.0 | 6,766 |
#!/bin/tcsh -xef
# ============
# this Jim's pre-proc script for It's a (heavily) edited version of the
# script automatically created by uber_subject_proc.py
#
# it has been rebuilt to work for study or test.
#
# it assumes that when it is called, the tcsh shell is currently in the master working directory for ... | sorensje/dissertation | preproc_2956_sepcial2.sh | Shell | gpl-2.0 | 10,847 |
#!/bin/bash
# Daniel Fernandez Rodriguez <gmail.com daferoes>
# https://github.com/danifr/miscellaneous
#
# This script will download, build and install/update OpenAFS
#
#
# Usage: sh openafs_update.sh $OPENAFS_RELEASE
# Ex: sh openafs_update.sh 1.8.3
#
OPENAFS_RELEASE=$1
WORKING_DIR='/tmp'
EPEL_RPM='http://dl.fed... | danifr/miscellaneous | CERN_OpenAFS/openafs_update.sh | Shell | gpl-2.0 | 4,347 |
#! /bin/sh
# Copyright (C) 2013-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/subobj-vpath-pr13928.sh | Shell | gpl-2.0 | 2,682 |
#!/bin/bash
rm .version
# Bash Color
green='\033[01;32m'
red='\033[01;31m'
blink_red='\033[05;31m'
restore='\033[0m'
clear
# Resources
THREAD="-j$(grep -c ^processor /proc/cpuinfo)"
KERNEL="Image"
DTBIMAGE="dtb"
DEFCONFIG="phasma_defconfig"
# Kernel Details
VER=".R39.bullhead."
# Paths
KERNEL_DIR=`pwd`
REPACK_DIR="... | chrisc93/bullhead | build.sh | Shell | gpl-2.0 | 3,883 |
#!/bin/bash
# Copyright 2014 Guoguo Chen, 2015 GoVivace Inc. (Nagendra Goel)
# 2017 Vimal Manohar
# Apache 2.0
# Some basic error checking, similar to steps/decode.sh is added.
set -e
set -o pipefail
# Begin configuration section.
transform_dir= # this option won't normally be used, but it can be used... | michellemorales/OpenMM | kaldi/egs/wsj/s5/steps/cleanup/decode_segmentation.sh | Shell | gpl-2.0 | 7,261 |
#!/bin/sh
a=0
while [ "$a" -lt 1000 ] # this is loop1
do
a=`expr $a + 1`
./NTNU_check.sh
done
| sunejak/EmbeddedJetty | src/main/scripts/7_Jan_2015/NTNU_loop.sh | Shell | gpl-2.0 | 105 |
#!/bin/sh
die()
{
echo "$@" 1>&2
dump_call_stack
# http://tldp.org/LDP/abs/html/exitcodes.html#EXITCODESREF
# According to the above table, exit codes 1 - 2, 126 - 165, and 255 [1] have special meanings,
# and should therefore be avoided for user-specified exit parameters.
exit 99
}
dump_call_stack()
{
:
}
... | dbshch/lkp-tests | lib/debug.sh | Shell | gpl-2.0 | 566 |
#!/bin/sh
./clean_all.sh
javac -O jiv2/Main.java
jar cf ../bin/jiv2.jar COPYING jiv2
cp ../bin/jiv2.jar ~/www/Atlases/
cp ../bin/jiv2.jar ../demo_web/jiv2-bin/
./clean_all.sh
| BIC-MNI/JIV2 | compile_all.sh | Shell | gpl-2.0 | 179 |
#!/bin/bash
[ -z "$UHP_HOME" ] && source $HOME/.bash_profile
[ -z "$UHP_HOME" ] && {
echo "UHP_HOME not set."
exit 1
}
sh $UHP_HOME/bin/stop-web.sh
sh $UHP_HOME/bin/start-web.sh
cd $UHP_HOME/uhpweb/test
for py in `ls $UHP_HOME/uhpweb/test`
do
if [[ "$py" == *py ]]
then
python $py
fi
do... | uhp/uhp | uhpweb/test/main.sh | Shell | gpl-2.0 | 325 |
# Setup Postfix
function ee_mod_setup_postfix()
{
EE_EMAIL=$($EE_CONFIG_GET wordpress.email)
if [[ $EE_EMAIL = "" ]]; then
EE_EMAIL=$(git config user.email)
fi
EE_HOSTNAME=$(hostname -f)
#We previously not used this package. So, if some one don't have Postfix-MySQL installed,
#Postfix will not work
ee_lib_... | shitalp/easyengine | src/modules/stack/install/mail/ee_mod_setup_postfix.sh | Shell | gpl-2.0 | 3,134 |
#!/bin/bash
/bin/aws ec2 describe-instances --query 'Reservations[*].Instances[*].[State.Name, InstanceId, PublicIpAddress, Platform, Tags[?Key==`Name`]| [0].Value ]' --output text | /bin/grep running > instances.txt
restart=0
if [ -f instances-old.txt ]; then
diff instances.txt instances-old.txt > /dev/null 2>&1
... | jmatis/icinga-aws-selfregister | icinga-selfregister.sh | Shell | gpl-2.0 | 3,702 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2012-2022 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... | gittup/tup | test/t5077-ghost-subdir2.sh | Shell | gpl-2.0 | 1,305 |
#!/bin/sh
#
# YAGARTO toolchain
#
# Copyright (C) 2006-2012 by Michael Fischer
# Michael.Fischer@yagarto.de ... | ARMinARM/arm-toolchain-build-scripts | 12-build-pdf.sh | Shell | gpl-2.0 | 2,077 |
#!/bin/bash
NCORES=4
unamestr=`uname`
if [[ "$unamestr" == "Linux" ]]; then
NCORES=`grep -c ^processor /proc/cpuinfo`
fi
if [[ "$unamestr" == "Darwin" ]]; then
NCORES=`sysctl -n hw.ncpu`
fi
rm -rf deploy
rm -rf build
mkdir build
cd build
cmake ../
make -j $NCORES
cd ..
mkdir deploy
cp ./build/redumi... | sebalamm/KaMIS | compile_withcmake.sh | Shell | gpl-2.0 | 605 |
#!/bin/sh
# prints to stdout matrix with given size filled with given values
if [ $# -lt 1 ]; then
echo "Usage: $0 <number of rows> [ <number of columns> [ <value to fill with> ] ]"
exit 1
fi
ROWS=$1
if [ $# -gt 1 ]; then
COLUMNS=$2
echo "# $ROWS $COLUMNS"
else
COLUMNS=$ROWS
echo "# $ROWS"
fi;
if [ $# -g... | uquendo/calc | test/apps/quest01-1/square-ones/gen_square_matrix.sh | Shell | gpl-2.0 | 517 |
#! /bin/sh
# Copyright (C) 2002-2018 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 ... | komh/automake-os2 | t/version6.sh | Shell | gpl-2.0 | 1,040 |
#!/bin/bash
# Copyright (C) 2009 Przemyslaw Pawelczyk <przemoc@gmail.com>
# (C) 2017 Jan Schulz <jasc@gmx.net>
##
## This script is licensed under the terms of the MIT license.
## https://opensource.org/licenses/MIT
# Fail on all errors
set -o pipefail
# We always start in the current users ho... | vitalif/grive2 | systemd/grive-sync.sh | Shell | gpl-2.0 | 3,346 |
#!/usr/bin/env bash
# $Id: dieIfNotRoot.sh 1128 2012-08-31 15:44:45Z gab $
source $(cd $(dirname "$0") ; pwd)/bootstrap.sh
| octo-online/libkoca | t/dieIfNotRoot.sh | Shell | gpl-2.0 | 123 |
#!/bin/sh
# 安装可执行文件和库,这里就不做输入校验了,这里安装的含义除了将文件放置在对应位置外,
# 还包括移除调试信息、设置权限的含义。因此安装之后一定要保留原二进制文件,用于处理调
# 试信息。
# 两种使用方式
# - ./install_binaries_and_libraries.sh /path/to/build/dir
# 当只有一个参数时,即编译构建的目录,安装全部的库和可执行程序
# - ./install_binaries_and_libraries.sh /path/to/src /path/to/dest
# 当超过一个参数时,去第一个参数作为源地址,第二个参数为目标地址,用于安装特定文件... | bmybbs/bmybbs | install_binaries_and_libraries.sh | Shell | gpl-2.0 | 5,144 |
#!/bin/bash
# Device Info
DEVICEBASE="khadas"
BOARDFAMILY="vims"
PLATFORMREPO="https://github.com/volumio/platform-khadas.git"
BUILD="armv7"
NONSTANDARD_REPO=no # yes requires "non_standard_repo() function in make.sh
LBLBOOT="BOOT"
LBLIMAGE="volumio"
LBLDATA="volumio_data"
# Partition Info
BOOT_TYPE=msdos # msdos ... | volumio/Build | installer/board-config/mp1/mkinstall_config.sh | Shell | gpl-2.0 | 2,286 |
#!/sbin/sh
SLOT=$(for i in `cat /proc/cmdline`; do echo $i | grep slot | dd bs=1 skip=24 2>/dev/null; done)
BOOTPATH="/dev/block/bootdevice/by-name/boot$SLOT"
/tmp/busybox dd if=$BOOTPATH of=/tmp/boot.img
| mdalexca/marlin | out/kernel/slotdetect.sh | Shell | gpl-2.0 | 208 |
#!/bin/bash
set -e
cachedir=.cache
mkdir -p $cachedir
if [[ ! -d build ]]; then
mkdir -p build
fi
libversion=2
libVFile="./libversion"
libdir="./lib"
currentversion=0
needsdownload="true"
if [ -f $libVFile ]; then
while read line; do
currentversion=$line
continue
done < $libVFile
f... | DrWeir/OpenRCT2 | build.sh | Shell | gpl-3.0 | 1,798 |
#!/usr/bin/bash
#
# Shutdown the mongod gracefully.
#
mongo --quiet <<HERE >/dev/null
use admin
db.shutdownServer()
HERE
sleep 3
| TrailingDots/async_py_messaging | async_py_messaging/scripts/shutdown.sh | Shell | gpl-3.0 | 130 |
#! /usr/bin/env bash
#
# This file is part of AirStashPlayer.
# Copyright (c) 2016 Wearable Inc.
#
# AirStashPlayer is based on ijkPlayer:
# Copyright (c) 2013-2014 Zhang Rui <bbcallen@gmail.com>
#
# Portions of ijkPlayer are based on kxmovie:
# Copyright (c) 2012 Konstantin Boukreev. All rights reserved.
#
# AirStashP... | AirStash/AirStashPlayer | android/compile-player.sh | Shell | gpl-3.0 | 3,458 |
#!/bin/bash
:>command.txt
filelist=`ls ~/ws/LA.UM.0.0/out/target/product/msm8996/system/lib`
for file in $filelist
do
echo 'adb push ' $file '/system/lib' >> command.txt
done
echo ' ' >> command.txt
for file in $filelist
do
echo 'adb push ' $file '/system/lib64' >> command.txt
done
| anonymouss/configure | script/foreach.sh | Shell | gpl-3.0 | 289 |
#!/usr/bin/env sh
echo "#"
echo "# starting registry auto pusher process..."
echo "#"
set -e
VERSION=`echo $1 | cut -d: -f2 | cut -d- -f1`
BASE_IMAGE=`echo $1 | cut -d: -f1`
BASE_REPO=`echo $REGISTRYREGISTRY | cut -d/ -f3`
if [ "$USERNAME" != "" ] || [ "$PASSWORD" != "" ]
then
DOCKER_PASS=`echo "$PASSWORD" | base... | amenezes/registry-auto-pusher | update_registry.sh | Shell | gpl-3.0 | 682 |
#!/bin/bash
# params:
# URMDB_USER
# URMDB_PWD
# URMDB_DBHOST
# URMDB_DBNAME
P_SQLFILE=$1
P_LOGFILE=$2
export PGPASSWORD="$URMDB_PWD"
psql -A -a -t -d $URMDB_DBNAME -h $URMDB_DBHOST -U $URMDB_USER < $P_SQLFILE > $P_LOGFILE 2>&1
| releasemgn/urm | database/sql/postgres/linux/applyscript.sh | Shell | gpl-3.0 | 230 |
while true
do
sample_data="$(rabbitmqctl list_queues name consumers messages | grep $1 | cut -f2- | sed 's/ /\t/')"
echo -e "$(date '+%Y-%m-%d %H:%M:%S.%N')\t$sample_data"
done
| f3flight/openstack-tools | rabbitmq/monitor-rabbitmq-queue.sh | Shell | gpl-3.0 | 181 |
sudo cp /usr/share/X11/xkb/symbols/ir ir.back && echo "OK"
sudo cp ir /usr/share/X11/xkb/symbols/ir && echo "OK"
sudo cp /usr/share/X11/xkb/rules/evdev.xml evdev.xml.back && echo "OK"
sudo cp evdev.xml /usr/share/X11/xkb/rules/evdev.xml && echo "OK"
sudo cp /usr/share/X11/xkb/rules/evdev.lst evdev.lst.back && echo "OK"... | behnamhatami/Persian-Qwerty | replace.sh | Shell | gpl-3.0 | 387 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.