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
# -*- indent-tabs-mode: nil -*-
#
# gen-test-files.sh --- Generates test files with iconv.
#
# Copyright (C) 2007, Luis Oliveira <loliveira@common-lisp.net>
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"... | cl-babel/babel | tests/gen-test-files.sh | Shell | mit | 1,534 |
#!/bin/bash
mkdir -p "$PREFIX/bin"
if [ "$(uname)" == "Darwin" ]; then
cp {program} "$PREFIX/bin"
else
export MACHTYPE=x86_64
export BINDIR=$(pwd)/bin
mkdir -p "$BINDIR"
(cd kent/src/lib && make)
(cd kent/src/htslib && make)
(cd kent/src/jkOwnLib && make)
(cd kent/src/hg/lib && make)
... | dmaticzka/bioconda-recipes | scripts/ucsc/template-build-no-bin.sh | Shell | mit | 443 |
#!/bin/sh
#
# Copyright (c) 2010 Johan Herland
#
test_description='Test merging of notes trees'
. ./test-lib.sh
test_expect_success setup '
test_commit 1st &&
test_commit 2nd &&
test_commit 3rd &&
test_commit 4th &&
test_commit 5th &&
# Create notes on 4 first commits
git config core.notesRef refs/notes/x &&
... | devzero2000/git-core | t/t3308-notes-merge.sh | Shell | gpl-2.0 | 9,321 |
#!/bin/bash
mkdir -p "${PREFIX}/bin"
mkdir -p "${PREFIX}/opt/ditasic"
cd src
cp -r * "${PREFIX}/opt/ditasic/"
ln -s \
"${PREFIX}/opt/ditasic/ditasic" \
"${PREFIX}/opt/ditasic/ditasic_mapping.py" \
"${PREFIX}/opt/ditasic/ditasic_matrix.py" \
"${PREFIX}/opt/ditasic/core" \
"${PREFIX}/bin/"
| ostrokach/bioconda-recipes | recipes/ditasic/build.sh | Shell | mit | 310 |
#!/bin/bash
$PYTHON setup.py install
binaries="\
scripts/find_enrichment.py \
scripts/map_to_slim.py \
scripts/plot_go_term.py
"
mkdir -p $PREFIX/bin/
for i in $binaries; do cp $SRC_DIR/$i $PREFIX/bin/; done
| JenCabral/bioconda-recipes | recipes/goatools/build.sh | Shell | mit | 211 |
go get github.com/golang/protobuf/protoc-gen-go
# ONE TIME
#
#
############################# FOR E2E TESTING ########################################
# ensure vendorextension proto contract is compiled.
pushd $GOPATH/src/github.com/googleapis/gnostic/extensions
./COMPILE-EXTENSION.sh
popd
pushd $GOPATH/src/github.c... | mdshuai/service-catalog | vendor/github.com/googleapis/gnostic/extensions/sample/INSTALL.sh | Shell | apache-2.0 | 1,728 |
#!/usr/bin/env bash
# ******************************************************
# DESC : build script for release env
# AUTHOR : Alex Stocks
# VERSION : 1.0
# LICENCE : Apache License 2.0
# EMAIL : alexstocks@foxmail.com
# MOD : 2016-07-12 16:34
# FILE : test.sh
# *********************************************... | AlexStocks/getty | examples/rpc/server/assembly/windows/release.sh | Shell | apache-2.0 | 661 |
#!/usr/bin/env bash
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
OUT="Make.deps"
TMP="Make.deps.tmp"
if [ -f $OUT ] && ! [ -w $OUT ]; then
echo "$0: $OUT is read-only; aborting." 1>&2
exit 1
fi
# Get list... | steven-sheffey-tungsten/thrift | tutorial/go/deps.bash | Shell | apache-2.0 | 1,143 |
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
VAGRANT_CORE_FOLDER=$(cat '/.puphpet-stuff/vagrant-core-folder.txt')
OS=$(/bin/bash "${VAGRANT_CORE_FOLDER}/shell/os-detect.sh" ID)
RELEASE=$(/bin/bash "${VAGRANT_CORE_FOLDER}/shell/os-detect.sh" RELEASE)
CODENAME=$(/bin/bash "${VAGRANT_CORE_FOLDER}/shell/os-detect.s... | chrisciampoli/swiftly | vm/puphpet/shell/update-puppet.sh | Shell | mit | 2,140 |
#!/bin/bash -x
# Copyright (C) 2017-2020 The Project X-Ray Authors.
#
# Use of this source code is governed by a ISC-style
# license that can be found in the LICENSE file or at
# https://opensource.org/licenses/ISC
#
# SPDX-License-Identifier: ISC
PRJ=$2
export FUZDIR=$PWD
source ${XRAY_GENHEADER}
${XRAY_VIVADO} -m... | SymbiFlow/prjxray | fuzzers/005-tilegrid/generate.sh | Shell | isc | 658 |
#!/bin/bash
center=$1
action=$2
grep -A 7 "Grid Center index : $center" checkfile | grep "Probability $action" |\
awk '{print $4}'
| cigani/RL | probability_viewer.sh | Shell | mit | 139 |
#!/bin/sh
echo "Choose scheme name and update it in SCHEME_XC"
echo "click manage scheme and choose scheme name and find the build configuration BUILD_CONFIG"
echo "if your features(automation test features) are present in different folder rather than folder where project is present , mention the path in FEATURES_PAT... | lummyare/Unibet-calabash-casino | run_ios_casino_ipadAir2-8.4.sh | Shell | mit | 1,636 |
#!/bin/bash
BRANCH=$(git rev-parse --abbrev-ref HEAD)
echo Pushing branch $BRANCH for review
git push origin HEAD:refs/for/$BRANCH
| Manu343726/dotfiles | dev/git/submit.sh | Shell | mit | 132 |
#!/bin/bash
# Autocompletion script for rsqueue
# by Sebastien Lemaire <sebastien.lemaire@soton.ac.uk>
# license MIT
compdef _gnu_generic rsqueue
# jcd:
# Move to a job working directory from its jobID
jcd () {
local job_working_directory=$(rsqueue -d ${1%%-*})
if [ -d "$job_working_directory" ]
then
... | Nanoseb/rsqueue | _rsqueue_completion.zsh | Shell | mit | 1,052 |
#!/usr/bin/env sh
set -ev
if [ "${TRAVIS_PHP_VERSION}" != "hhvm" ]; then
mv "$HOME/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini" /tmp
echo "memory_limit=3072M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
if [ ${TRAVIS_PHP_VERSION} '<' '7.0' ]; then
echo "ext... | tackerm/SonataDoctrinePhpcrAdminBundle | .travis/before_install_test.sh | Shell | mit | 940 |
mkdir ./models
th scripts/train_PTN.lua --gpu 3 --niter 100 --lambda_vox 1 --lambda_msk 0
| xcyan/nips16_PTN | demo_train_cnn_vol_singleclass.sh | Shell | mit | 91 |
#!/usr/bin/env sh
BASE=~/git/NIF-Ontology
BASESC=$(echo ${BASE} | sed 's/\//\\\//g')
echo $BASESC
CONVFILE=/tmp/owl_to_convert.txt
find "${BASE}"/Backend -name '*.owl' > /tmp/back_files
find "${BASE}"/BiomaterialEntities/ -name '*.owl' > /tmp/be_files
find "${BASE}"/DigitalEntities/ -name '*.owl' > /tmp/de_files
find ... | tgbugs/pyontutils | nifstd/complete/gather_owls.sh | Shell | mit | 1,921 |
#! /bin/bash
set -xv
### superscript template to do the preprocessing
. progs.ini > /tmp/progs.out 2>&1
REDDIR=`pwd`
####################################################
### the following need to be specified for each run
####################################################
export SUBARUDIR=/gpfs/slac/kipac/fs1/u/aw... | deapplegate/wtgpipeline | postH_preprocess_2015-12-15_W-J-B-superflats.sh | Shell | mit | 9,345 |
#!/bin/sh
set -e
apt-get autoremove -y
apt-get clean
rm -rf /build
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
| Aliance/Kanchanaburi | dockerfiles/kanchanaburi-base/build/cleanup.sh | Shell | mit | 117 |
#!/bin/bash
# A little bit of scripting magic so that whatever directory this script is
# run from, we always find the python scripts and data we need.
cd "$(dirname "$0")"
cwd=`pwd`/..
cd ${cwd}
# Activate python virtual environment
source ../../../../virtualenv/bin/activate
# Now do some work
mkdir -p ../../../out... | dcf21/4most-4gp-scripts | src/scripts/test_cannon/examples/examples_fourteam2.sh | Shell | mit | 1,846 |
#!/usr/bin/env bash
# BASH3 Boilerplate: megamount
#
# This file:
#
# - Takes a URL (smb, nfs, afs) and tries to mount it at a given target directory
# - Forcefully unmounts any active mount at the target directory first
# - Displays the mount's contents for verification
#
# Depends on:
#
# - ./parse_url.sh
#
# Usa... | kvz/bash3boilerplate | src/megamount.sh | Shell | mit | 2,160 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2679-1
#
# Security announcement date: 2013-05-23 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:32 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - xserver-xorg-video-openchrome:1:0.2.9... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/i386/2013/DSA-2679-1.sh | Shell | mit | 900 |
#!/bin/bash
git clone git@github.com:technolotrix/django_by_example.git
pyvenv dev
source dev/bin/activate | technolotrix/django_by_example | setup.sh | Shell | mit | 106 |
#!/bin/sh
osascript <<END
tell application "Terminal"
do script "cd \"`pwd`\";cd reactnative;react-native start;exit;"
end tell
tell application "Terminal"
do script "cd \"`pwd`\";node react.css.build.js"
end tell
tell application "Terminal"
do script "cd \"`pwd`\";webpack -w -d"
end tell
END | waterbolik/prestudy | demo/react-mix/dev.sh | Shell | mit | 310 |
AllpixSquared_version="@ALLPIX_VERSION@"
# Dependencies
@SETUP_FILE_DEPS@
THIS_BASH=$BASH
if [[ $THIS_BASH == "" ]]; then
THIS_HERE=$(dirname $0)
else
THIS_HERE=$(dirname ${BASH_SOURCE[0]})
fi
CLIC_AllpixSquared_home=$THIS_HERE
# Export path for executable, library path and data path for detector models
exp... | Koensw/allpix-squared | cmake/setup.cmake.sh | Shell | mit | 512 |
#!/usr/bin/env bash
# constants
DOKKU_ROOT=${DOKKU_ROOT:=~dokku}
DOCKER_BIN=${DOCKER_BIN:="docker"}
DOKKU_LIB_ROOT=${DOKKU_LIB_PATH:="/var/lib/dokku"}
PLUGIN_PATH=${PLUGIN_PATH:="$DOKKU_LIB_ROOT/plugins"}
PLUGIN_AVAILABLE_PATH=${PLUGIN_AVAILABLE_PATH:="$PLUGIN_PATH/available"}
PLUGIN_ENABLED_PATH=${PLUGIN_ENABLED_PATH... | progrium/dokku | tests/unit/test_helper.bash | Shell | mit | 15,290 |
#!/bin/bash
echo "AFTER SUCCESS SCRIPT"
if [ "$TRAVIS_BRANCH" == "develop" ]; then
# nbBuildSuccessFile="/tmp/nbBuildSuccess.txt"
# if [ ! -f "${nbBuildSuccessFile}" ]; then
# echo '0'>"${nbBuildSuccessFile}"
# fi
# nbBuildSuccess=`cat "${nbBuildSuccessFile}"`
# echo "Previous build success number: $nbBuildSu... | benjdum59/filterRoms | .merge.sh | Shell | mit | 1,009 |
#!/bin/bash
## clean_haraka_logs 2016-09-02
## http://www.aqzt.com
## email: ppabc@qq.com
## robert yu
## ubuntu
#!/bin/bash
date=`date -d "-1 day" +%Y%m%d`
mkdir /data/haraka/$date/
mv /var/log/haraka.log /data/haraka/$date/haraka.log.$date
/etc/init.d/haraka restart
find /data/haraka/ -name "20*" -type d -mtime +3|t... | woerwin/learning | kjyw/shell/clean_haraka_logs.sh | Shell | mit | 390 |
#!/usr/bin/env sh
# generated from catkin/python/catkin/environment_cache.py
# based on a snapshot of the environment before and after calling the setup script
# it emulates the modifications of the setup script without recurring computations
# new environment variables
# modified environment variables
export CATKIN... | superdyzio/PWR-Stuff | AIR-ARR/Projekt Zespołowy/catkin_ws/src/robot_localization/catkin_generated/setup_cached.sh | Shell | mit | 1,745 |
#!/bin/bash
#usage ./shell_frist.sh <ignoreToStart> <numberOfAlocatedJobs>
cont=1
sum=0
for x in `/bin/ls ./job_local/waiting`; do
if [ $(($sum+1)) -le "$2" ]; then
cmd="java -Djava.library.path=/opt/ibm/ILOG/CPLEX_Studio126/cplex/bin/x86-64_linux -jar ./code/Java/Java.jar run ./job_local/waiting/$x ./input/"
i... | marcio-da-silva-arantes/ProOF | ProOFJava/static/shell_frists2.sh | Shell | mit | 1,031 |
#! /bin/bash
redirectedTempFolder=tmp
PatientCancerType=$redirectedTempFolder/GSE62944_06_01_15_TCGA_24_Normal_CancerType_Samples.txt.gz
NormalFeatureCounts=$redirectedTempFolder/GSM1697009_06_01_15_TCGA_24.normal_Rsubread_FeatureCounts.txt.gz
nameToAbbreviation="nameToAbbreviation.txt"
dataOutFile=Gene_Expression.tsv... | srp33/WishBuilder | GSE62944_Normal_FeatureCounts/parse.sh | Shell | mit | 588 |
#!/bin/bash
./grailsw create-app fooapp
cp grails-scaffold-angular/config fooapp/config
| MayGo/grails-scaffold-angular | test-app.sh | Shell | mit | 89 |
#!/bin/sh
export HOME=/home/ubuntu
cd /usr/local/mplusmuseum/projects
# the deploy installs as root, so just chown all the things
sudo chown -R ubuntu:ubuntu ./mplusmuseum-www
cd ./mplusmuseum-www
yarn install
yarn build
pm2 restart "mplusmuseum-www" --env production --update-env
| mplusmuseum/mplusmuseum-www | ubuntu/post-deploy.sh | Shell | mit | 288 |
#!/bin/sh
docker build -t=buptmiao/apigateway:v1.0.1 -f=Dockerfile.apigateway .
docker build -t=buptmiao/feed:v1.0.1 -f=Dockerfile.feed .
docker build -t=buptmiao/profile:v1.0.1 -f=Dockerfile.profile .
docker build -t=buptmiao/topic:v1.0.1 -f=Dockerfile.topic . | buptmiao/microservice-app | docker/build.sh | Shell | mit | 262 |
#!/bin/bash
# This script should be called by create-android-project.bat
# or should be runned in linux shell. It can not be runned under
# cygwin.
# Don't modify the script until you know what you do.
# set environment paramters
NDK_ROOT_LOCAL="/home/laschweinski/android/android-ndk-r5"
ANDROID_SDK_ROOT_LOCAL... | wenhulove333/ScutServer | Sample/ClientSource/create-android-project.sh | Shell | mit | 3,929 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2473-1
#
# Security announcement date: 2015-01-14 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:12 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - coreutils:8.21-1ubuntu5.1
#
# Last v... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/x86_64/2015/USN-2473-1.sh | Shell | mit | 642 |
#!/usr/bin/env bash
WALLPAPER_DIR="$HOME/Wallpapers"
if [[ ! -d "$WALLPAPER_DIR" ]]; then
mkdir "$WALLPAPER_DIR"
fi
if [[ -f "$HOME/.fehbg" ]]; then
rm "$HOME/.fehbg"
fi
WALLPAPER=$(ls "$WALLPAPER_DIR" | sort -R | head -n1 | tr -s "\n")
if [[ ! -e $WALLPAPER ]]; then
echo "Setting wallpaper to $WALLPAP... | gauravmm/dotdotdot | dotfiles/scripts/random_background.sh | Shell | mit | 521 |
#!/bin/bash
#
# provision.sh
#
# This file is specified in Vagrantfile and is loaded by Vagrant as the primary
# provisioning script whenever the commands `vagrant up`, `vagrant provision`,
# or `vagrant reload` are used. It provides all of the default packages and
# configurations included with Varying Vagrant Vagrant... | direcode/vagrant-vvv | provision/provision.sh | Shell | mit | 25,740 |
# include library files
if [ "$1" = "debug" ]
then
find ../../src -name "*.ts" -not -path "*/dist/*" -type f > files.txt;
fi
# include sample source files
find . -name "*.ts" -type f >> files.txt;
| davidyu/Robinson | samples/cubemapfilter/files.sh | Shell | mit | 204 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3076-1
#
# Security announcement date: 2016-09-22 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:37 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: i686
#
# Vulnerable packages fix on version:
# - firefox:49.0+build4-0ubuntu0.14.04.1
#... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/i686/2016/USN-3076-1.sh | Shell | mit | 993 |
#!/bin/bash
ENTRYCOUNT=$(wc -l < playerlist.txt)
cat out.txt | sed "s/^[0-9]\+ //" > out2.txt
for (( i=0; i<$((ENTRYCOUNT)); i++ ))
do
sed "s/ /\n/g" out2.txt | grep -c "^$i$" >> scores.txt
done
echo "Score Player"
paste scores.txt playerlist.txt \
| expand \
| sed "s/^\([0-9]... | KeyboardFire/caveman-duels | buildscores.sh | Shell | mit | 476 |
#!/bin/sh -e
rm -f ${0%.sh}_*_real.*
for t in ${0%.sh}_*.f90
do
TEST=${t%.f90}
cat m_contours_test_data_sp.f90 $TEST.f90 > "$TEST"_real.f90
if [ -f $TEST.xml ]; then ln -s $TEST.xml "$TEST"_real.xml; fi
if [ -f $TEST.out ]; then ln -s $TEST.out "$TEST"_real.out; fi
./test.sh "$TEST"_real
done
| wilsonCernWq/Simula | fortran/utils/FoX-4.1.2/wkml/test/test_kmlContours.sh | Shell | mit | 308 |
autoload -Uz is-at-least
# *-magic is known buggy in some versions; disable if so
if [[ $DISABLE_MAGIC_FUNCTIONS != true ]]; then
for d in $fpath; do
if [[ -e "$d/url-quote-magic" ]]; then
if is-at-least 5.1; then
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-mag... | spazm/oh-my-zsh | lib/misc.zsh | Shell | mit | 809 |
minikube start --kubernetes-version v1.7.4 --extra-config=apiserver.Features.EnableSwaggerUI=true --cpus 4 --memory 8192 --extra-config=apiserver.GenericServerRunOptions.AuthorizationMode=RBAC --extra-config=apiserver.GenericServerRunOptions.AuthorizationRBAC,SuperUser=minikube
| rahulinux/scripts | start_minikube.sh | Shell | mit | 282 |
#!/bin/sh
watch " \
echo -e \"\\nipv4 forwarding status:\\n\`cat /proc/sys/net/ipv4/ip_forward\`\\n\\n\
IPtables rules:\\n\`iptables -t nat -S POSTROUTING\`\\n\"\
"
| ansemjo/armory | scripts/watch_status.sh | Shell | mit | 165 |
#!/bin/bash
# prepends $HOME/bin to $PATH
[ -d ${HOME}/bin ] && PATH=${HOME}/bin:${PATH}
| marado/aliases.sh | generic/PATH-HOME-bin.sh | Shell | mit | 89 |
#
# Nice git prompt for massive git usage
#
prompt=/usr/local/etc/bash_completion.d/git-prompt.sh
if [[ -a $prompt ]]
then
type -P hub &>/dev/null && [ -d .git ] && $(git rev-parse) &&
eval "git remote -v show | grep github &>/dev/null" &&
test -n $? && ci_status=$(hub ci-status)
case $ci_status in
*... | crystal1009/dotfiles | git/git.bash | Shell | mit | 843 |
#!/bin/bash -e
export COMPONENT="secrets"
export VAULT_DATA_DIR="$RUNTIME_DIR/$COMPONENT/data"
export VAULT_CONFIG_DIR="$CONFIG_DIR/$COMPONENT"
export SCRIPTS_DIR="$SCRIPTS_DIR"
export LOGS_FILE="$RUNTIME_DIR/logs/$COMPONENT.log"
export SCRIPTS_DIR_REMOTE="/tmp/shippable"
## Write logs of this script to component spe... | himanshu0503/admiral | common/scripts/installVault.sh | Shell | mit | 4,034 |
#!/bin/bash
OFFICE=$(dirname "$(readlink -f "$(which "$0")")")
ARCH=amd64
OTHER_ARCHITECTURES="i386"
DISTRO=trusty
LOCALE=en_US.UTF-8
APTCACHER="http://149.156.75.213:3142"
KEYSERVER="keyserver.ubuntu.com"
MAINTAINER="Grzegorz Gutowski <gutowski@tcs.uj.edu.pl>"
DOCKER_REPO="satoriproject/satori"
BASE_DIR="${OFFICE}/${... | zielmicha/satori | satori-testing-images/settings.sh | Shell | mit | 9,743 |
#!/bin/bash
set -euo pipefail
# git_commit_and_tag.sh - Commit and push the current git changes. Create a version tag and push to master.
#
# Edward Smith, January 2017
scriptfile="$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
scriptfile="${scriptfile}"/$(basename "$0")
cd $(dirname "$scriptfile")/..
git_branch... | BranchMetrics/ios-branch-deep-linking | scripts/git_commit_and_tag.sh | Shell | mit | 753 |
#!/bin/bash
chroot /mnt/gentoo /bin/bash <<'EOF'
sed -i 's/^#\s*GRUB_CMDLINE_LINUX=.*/GRUB_CMDLINE_LINUX="net.ifnames=0"/' \
/etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
ln -s /etc/init.d/net.lo /etc/init.d/net.eth0
echo 'config_eth0=( "dhcp" )' >> /etc/conf.d/net
rc-update add net.eth0 default
EOF
| knilling/gentoo | 11-network.sh | Shell | mit | 313 |
#! /bin/bash
IMAGE_DIR=$1
PAGE_DIR=$2
POST_DIR=$3
base_dir=`pwd`
for saison in `ls $IMAGE_DIR`
do
mkdir -p $POST_DIR/$saison
saison_1=$(echo "$saison" | awk '{split($0,a,"-"); print a[1]}')
saison_2=$(echo "$saison" | awk '{split($0,a,"-"); print a[2]}')
cp template_index.md $POST_DIR/$saison/$saison... | aurelien-pacaud/tac-website | generate_gallery.sh | Shell | mit | 2,525 |
#!/usr/bin/env bash
CWD=`pwd`
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE" # if $SOURCE was a relative symlink, we need to... | thlorenz/nad | bin/nad.sh | Shell | mit | 3,020 |
#!/bin/bash
# @author Michael Wiesendanger <michael.wiesendanger@gmail.com>
# @description script for attaching to running docker-mysql container
set -euo pipefail
# variable setup
DOCKER_MYSQL_NAME="mysql"
# get absolute path to script and change context to script folder
SCRIPTPATH="$(cd "$( dirname "${BASH_SOURCE[... | RagedUnicorn/docker-mysql | dockery/dattach.sh | Shell | mit | 531 |
#!/bin/bash
#package for chrome web store
cd ..
rm -f HNES.zip
zip -r HNES.zip HNES -x \*.git\* *screenshots* *notes* *zip.sh*
| bsloane1650/HNES | zip.sh | Shell | mit | 127 |
python manage.py upgrade
python manage.py collectstatic --noinput
| yuanxu/django-py3 | upgrade.sh | Shell | mit | 69 |
#!/bin/bash
# exit if a command fails
set -e
# Required parameters
if [ -z "${nuget_source_name}" ] ; then
echo " [!] Missing required input: nuget_source_name"
exit 1
fi
if [ -z "${nuget_source_path_or_url}" ] ; then
echo " [!] Missing required input: nuget_source_path_or_url"
exit 1
fi
if [ ! -z "${nuget_... | teference/steps-set-nuget-private-source | step.sh | Shell | mit | 2,025 |
#!/bin/bash
#Detects the user
user=$(whoami)
kubectl get nodes | grep -o 'k8s-agent-.*-[0-9]*' | while read -r agent; do
echo "Processing $agent"
scp -o "StrictHostKeyChecking no" install-local-kubernetes.sh $user@$agent:~/
ssh -o "StrictHostKeyChecking no" -n $user@$agent sudo sh ~/install-local-kubernet... | theonemule/azure-file-storage-on-acs | install-agents-kubernetes.sh | Shell | mit | 354 |
#!/bin/bash
# Written by Csaba Orban and CBIG under MIT license: https://github.com/ThomasYeoLab/CBIG/blob/master/LICENSE.md
cd ~/storage
rsync -a --exclude .git CBIG/* Standalone_Orban2020_time_of_day
# remove useless stable projects
rm -r Standalone_Orban2020_time_of_day/stable_projects/brain_parcellation
rm -r Stan... | ThomasYeoLab/CBIG | stable_projects/preprocessing/Orban2020_tod/config/CBIG_tod_generate_standalone.sh | Shell | mit | 835 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-370-1
#
# Security announcement date: 2015-12-16 00:00:00 UTC
# Script generation date: 2017-01-01 21:09:05 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - bind9:1:9.7.3.dfsg-1~squeeze18
#
# ... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2015/DLA-370-1.sh | Shell | mit | 638 |
#! /bin/cat
typed () {
type "$1" >/dev/null 2>&1
}
if [[ -f ~/whyp.sh ]]; then
missing_w=
typed w || missing_w=w
typed ww || missing_w=ww
[[ $missing_w ]] && . ~/whyp.sh
else
alias .=whyp_source
alias w=whyp
alias .w="whyp_source $WHYP_SOURCE"
alias wq="quietly whyp "
fi
| jalanb/jab | src/bash/keyboard/w.sh | Shell | mit | 312 |
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${DIR}"
mkdir -p train_loss_reports
aws s3 sync s3://ithemal-checkpoints/loss_reports train_loss_reports
mkdir -p train_loss_checkpoints
aws s3 sync s3://ithemal-checkpoints/checkpoint_reports/ test_loss_checkpoint_repo... | ithemal/Ithemal | learning/pytorch/loss_reports/sync_reports.sh | Shell | mit | 324 |
#!/bin/sh
BUILD_DIR="./build"
ZIP_FILE="../loopy_ios.zip"
PACKAGE_DIR="${BUILD_DIR}/package_dir"
EMBEDDED_FRAMEWORK="./build/Loopy.embeddedframework"
if [ -e $PACKAGE_DIR ]
then
rm -R $PACKAGE_DIR
fi
mkdir $PACKAGE_DIR
#the -R parameter makes sure we dont follow symbolic link, increasing package size
cp -R $EMBED... | socialize/loopy-ios | Scripts/package.sh | Shell | mit | 570 |
#!/bin/sh -e
phpbrew known --update
| FunTimeCoding/php-utility | bin/show-releases.sh | Shell | mit | 37 |
forceLinkCoreFoundationFramework() {
NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}"
NIX_LDFLAGS+=" @out@/Library/Frameworks/CoreFoundation.framework/CoreFoundation"
}
preConfigureHooks+=(forceLinkCoreFoundationFramework)
| NixOS/nixpkgs | pkgs/os-specific/darwin/apple-sdk-11.0/cf-setup-hook.sh | Shell | mit | 273 |
#!/bin/bash
bundle exec micron test/
ret=$?
set -e
echo -e "\n"
bundle exec rake gemspec
diffcount=$(git diff *.gemspec | egrep '^\+' | egrep -v 's\.(date|rubygems_version)' | wc -l)
if [[ $diffcount -gt 2 ]]; then
echo
echo "***********************"
echo "gemspec is out of date!"
echo "*********************... | chetan/bixby-agent | bin/ci.sh | Shell | mit | 445 |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-DAE_SDAE_6_bot_bin_RICA_sig
#SBATCH -e Deep-DAE_SDAE_6_bot_bin_RICA_sig.err.txt
#SBATCH -o Deep-DAE_SDAE_6_bot_bin_RICA_sig.out.txt
source /etc/profile.modules
module load gcc
module load matlab
c... | aciditeam/matlab-ts | jobs/deepJobs_DAE_SDAE_6_bot_bin_RICA_sig.sh | Shell | mit | 622 |
#!/bin/sh
set +e
uname -m | grep x86_64 > /dev/null
if [ $? -eq 0 ]
then
ARCH="amd64"
else
ARCH="386"
fi
set -e
wget -O go.tar.gz https://storage.googleapis.com/golang/go1.10.1.linux-${ARCH}.tar.gz
tar -C /usr/local -xzf go.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" > /etc/profile.d/go-path.sh
echo... | chrisroberts/vagrant-installers | packer/vagrant/scripts/centos/go.sh | Shell | mit | 470 |
extract_packages_not_installed(){
local __extracted_packages=$2
local __packages_not_installed=$1
for line in $__packages_not_installed; do echo $line | awk '{print $NF}';done
}
#run_npm() {
#local NPM_GLOBAL_PACKAGES="n tldr spoof dark-mode pipeable-js jsome jshint cordova ionic@beta commitizen"
#if hash npm 2>/d... | 8bitme/dotfiles | node/install.sh | Shell | mit | 865 |
#!/bin/bash
source "$(dirname $0)/common.sh"
java -cp "$CLASSPATH" com.neophi.overlap.CreateIndex target/titles.tsv target/index
| NeoPhi/overlap | bin/createIndex.sh | Shell | mit | 131 |
# -*- sh -*-
# shellcheck source=lib/commands/reshim.bash
source "$(dirname "$ASDF_CMD_FILE")/reshim.bash"
reshim_command() {
local plugin_name=$1
local full_version=$2
if [ -z "$plugin_name" ]; then
local plugins_path
plugins_path=$(get_plugin_path)
if ls "$plugins_path" &>/dev/null; then
f... | Stratus3D/asdf | lib/commands/command-reshim.bash | Shell | mit | 3,479 |
docker stop $(docker ps -q)
docker rm -v $(docker ps -a -q)
docker volume rm $(docker volume ls -qf dangling=true)
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
docker rmi $(docker images | grep "nats-connector-spark" | awk "{print $3}")
| Logimethods/docker-nats-connector-spark | compose/clean.sh | Shell | mit | 257 |
{% include 'common/common.sh' %}
# Installing GLUT, GLFW, GLEW, SOIL
sudo apt-get -y install freeglut3-dev libglfw3-dev libglew-dev libsoil-dev | chaosmail/sh-install | src/opengl/opengl.sh | Shell | mit | 144 |
env PYTHONPATH=ebge python3.4 example/the_one.py
| mpyatishev/ebge | run_example.sh | Shell | mit | 49 |
#!/bin/sh
set -e
set -x
vsprefix="$HOME/opt/vapoursynth"
test -e "$vsprefix"
mkdir -p AppDir/usr/
cp -r "$vsprefix/include" "$vsprefix/lib" "$vsprefix/src" install-vs.sh AppDir/usr/
for l in AppDir/usr/lib/vapoursynth/*.so ; do
cmdLine="$cmdLine -e$l"
done
wget https://github.com/linuxdeploy/linuxdeploy/releases/... | darealshinji/scripts | Hybrid/deploy-vapoursynth.sh | Shell | mit | 941 |
#!/usr/bin/env bash
# https://www.google.com.tw/#q=bash+current+path
# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-what-directory-its-stored-in
# https://stackoverflow.com/questions/3349105/how-to-set-current-working-directory-to-the-directory-of-the-script
THE_BASE_DIR_PATH=$(cd -P -- "$(dirname -... | foreachsam/book-util-make | example/make-scripts/web-project/bin/help.sh | Shell | cc0-1.0 | 592 |
#!/usr/bin/env bash
SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
if [ "$SCRIPTPATH" = "/tmp" ] ; then
SCRIPTPATH=/vagrant
fi
mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SRPMS}
ln -sf $SCRIPTPATH/SPECS $HOME/rpmbuild/SPECS
echo '%_topdir '$HOME'/rpmbuild' > $HOME/.rpmmacros
cd $HOME/r... | olivermel/pg_jobmon | bootstrap.sh | Shell | cc0-1.0 | 405 |
#!/bin/sh
if [ -r /etc/rc.d/model_config.sh ]; then
. /etc/rc.d/model_config.sh
CPU_EXTRA_INFO=$CONFIG_IFX_CONFIG_CPU"-v"
BOARD_EXTRA_INFO="`echo $CONFIG_IFX_CONFIG_CPU|cut -b8`"
MODEL_EXTRA_INFO="-"${BOARD_EXTRA_INFO}${CONFIG_IFX_CONFIG_FLASH_SIZE}${CONFIG_IFX_CONFIG_MEMORY_SIZE}
fi
if [ -r /etc/rc.d/config.sh ];... | kbridgers/VOLTE4GFAX | target/linux/ltqcpe/base-files/usr/sbin/version.sh | Shell | gpl-2.0 | 5,461 |
#!/usr/bin/env bash
############################################################################
# This file is part of "Velox Linux Build Environment"
#
# Copyright (C) 2012-2017 Stewart Maguire <stewart.maguire@s2ack.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms ... | s2ack/velox-core | toolchains/etc/scripts/configure-velox-native.sh | Shell | gpl-2.0 | 2,491 |
#!/bin/bash
RUTA=/usr/bin/
# AS=mips-linux-gnu-as
# LD=mips-linux-gnu-ld
AS=as
LD=ld
CC=gcc
OBJDUMP=mips-linux-gnu-objdump
IP_MIPS=10.0.15.50
exec > /tmp/archivotemp${2}.txt
exec 2>&1
# Matamos el gdbserver remoto
## sshpass -p "root" ssh -o StrictHostKeyChecking=no root@${IP_MIPS} "killall gdbserver "
sshpass -p ... | zrafa/mipsx | mipsx_compilarycargar.sh | Shell | gpl-2.0 | 1,119 |
#!/bin/sh
# Create the database
psql -U postgres < create-db.sql
# Create the tables
psql -U acousticbrainz acousticbrainz < create-tables.sql
| mineo/acousticbrainz-server | admin/setup.sh | Shell | gpl-2.0 | 145 |
#!/bin/sh
# TopGit - A different patch queue manager
# (c) Petr Baudis <pasky@suse.cz> 2008
# GPLv2
terse=
graphviz=
sort=
deps=
head_from=
## Parse options
while [ -n "$1" ]; do
arg="$1"; shift
case "$arg" in
-i|-w)
[ -z "$head_from" ] || die "-i and -w are mutually exclusive"
head_from="$arg";;
-t)
ters... | sigma/topgit | tg-summary.sh | Shell | gpl-2.0 | 3,230 |
#!/bin/bash
####### DO NOT EDIT THIS SECTION
#######SBATCH --partition=general-c
#SBATCH --exclusive
####### CUSTOMIZE THIS SECTION FOR YOUR JOB
####### KEEP --mem=64000 TO USE FULL MEMORY
#SBATCH --mem=80000
#SBATCH --job-name="Krypton"
#SBATCH --nodes=4
#SBATCH --ntasks-per-node=3
#SBATCH --output=%j.stdout
#SBATCH... | cube2matrix/Krypton | script/genec/3904/4-3-4-bc.sh | Shell | gpl-2.0 | 2,255 |
#!/bin/bash
### BEGIN INIT INFO
#
# Provides: YSFReflector
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Example startscript YSFReflector
#
### END INIT INFO
## Fill in name of program here.
PROG="YSFReflector"
PR... | g4klx/YSFClients | YSFReflector/YSFReflector.sh | Shell | gpl-2.0 | 1,627 |
convert images/OCS-741.png -crop 1686x5106+0+0 +repage images/OCS-741-A.png
convert images/OCS-741.png -crop 1686x5106+1686+0 +repage images/OCS-741-B.png
#/OCS-741.png
#
#
#
| jonnymwalker/Staroslavjanskij-Slovar | scripts/middlesplit.OCS-741.sh | Shell | gpl-2.0 | 175 |
#!/bin/bash
NAME="ubuntu-after-install.sh"
BLURB="Configure a device after a fresh install of Ubuntu"
SRC_DIR="https://github.com/vonbrownie/linux-post-install"
SOURCE="${SRC_DIR}/tree/master/scripts/ubuntu-after-install"
set -eu
# Copyright (c) 2019 Daniel Wayne Armstrong. All rights reserved.
# This program is free ... | vonbrownie/linux-post-install | scripts/ubuntu-after-install/ubuntu-after-install.sh | Shell | gpl-2.0 | 14,386 |
#! /bin/sh
# Copyright (C) 1996-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/depacl2.sh | Shell | gpl-2.0 | 907 |
#!/bin/sh
curl -XDELETE http://localhost:9200/tw/publication
| tetherless-world/tw-elasticsearch | scripts/delpubs.sh | Shell | gpl-2.0 | 62 |
#!/bin/sh
# Copyright (C) 2008 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public Licens... | ystk/debian-lvm2 | test/t-vgcreate-usage.sh | Shell | gpl-2.0 | 5,350 |
dbus-binding-tool --mode=glib-server --prefix=srv serv_dbus_api.xml > serv_dbus_api.h
dbus-binding-tool --mode=glib-server --prefix=device serv_dbus_api_device.xml > serv_dbus_api_device.h
# FIXME add cond Undocumented fence
| daemondeas/phdIntegration | antidote/src/serv_dbus_api.sh | Shell | gpl-2.0 | 227 |
#!/usr/bin/env bash
THIS_DIR=$(cd $(dirname $0); pwd)
cd $THIS_DIR
update() {
git pull
git submodule update --init --recursive
install_rocks
}
# Will install luarocks on THIS_DIR/.luarocks
install_luarocks() {
git clone https://github.com/keplerproject/luarocks.git
cd luarocks
git checkout tags/v2.2.1 # ... | heri/JuliaBot | launch.sh | Shell | gpl-2.0 | 2,381 |
#!/bin/bash
# Cleanup empty records of mysql traffic info
# Sum together entries in the same month for same IP when older than 31 days
# Author: Amro Diab
# Date: 09/2010
configfile="/var/amrox/etc/VPS-config"
if [ -f $configfile ]; then
. $configfile
else
echo "$configfile:No Such File or Directory"
exit 1
f... | adiabuk/random_scripts | hosting/scripts/openvz_tools/clean_old_traffic.sh | Shell | gpl-2.0 | 914 |
# **************************************************************************** #
# #
# ::: :::::::: #
# defuse.sh :+: :+: :+: ... | EpicWAX/Piscine-C | j09/ex03/defuse.sh | Shell | gpl-2.0 | 952 |
#!/bin/bash +x
# Define variables
SYSCTL=/usr/bin/sysctl
IPTABLES=/usr/bin/iptables
IPTABLES_SAVE=/usr/bin/iptables-save
IPTABLES_RULE_FILE=/etc/iptables/iptables.rules
IP_ADDR=192.168.1.70
BROADCAST=192.168.1.255
DNS_SERVERS="192.168.1.2"
SSH=22 # SSH port to connect
SSHD=22 # SSHd server port
NTP_SERVERS="0... | marcstraube/linux-scripts | iptables.sh | Shell | gpl-2.0 | 10,553 |
#! /bin/sh
# Usage: make-syscalls.sh ../sysdeps/unix/common
# Expects $sysdirs in environment.
##############################################################################
# Syscall Signature Key Letters for BP Thunks:
#
# a: unchecked address (e.g., 1st arg to mmap)
# b: non-NULL buffer (e.g., 2nd arg to read; re... | mseaborn/nacl-glibc | sysdeps/unix/make-syscalls.sh | Shell | gpl-2.0 | 11,204 |
#!/bin/bash
# Check for a passed in DOCKER_UID environment variable. If it's there
# then ensure that the sinatra user is set to this UID. That way we can
# easily edit files from the host.
if [ -n "$DOCKER_UID" ]; then
printf "Updating UID...\n"
# First see if it's already set.
current_uid=$(geten... | joshuacox/docker-jekyll-store-microservice | start.sh | Shell | gpl-2.0 | 726 |
#!/bin/sh
# This script can be used to automatially update code to change
# from Teuchos::RefCountPtr to Teuchos::RCP.
#
# Run this script from any base directory where you want to update
# the files. Note, this will update all files, except those
# in a directory CVS.
#
# Warning! Do not run this in a directory whe... | mingpz2010/DMAT | benchmark/trilinos-11.12.1-Source/packages/teuchos/refactoring/change-RefCountPtr-to-RCP-20070619.sh | Shell | gpl-2.0 | 979 |
#!/usr/bin/env bash
ROOT_DIR="/vagrant/vagrant"
PROVISION_DIR="${ROOT_DIR}/provision"
CONFIG_DIR="${ROOT_DIR}/config"
# default apt-get command + options for quiet operation
APT_GET_QUIET="apt-get -y -qq"
source ${ROOT_DIR}/functions.sh
source ${PROVISION_DIR}/001-update.sh
source ${PROVISION_DIR}/002-httpd.sh
sour... | dreadwarrior/typo3-vagrant | vagrant/provision.sh | Shell | gpl-2.0 | 491 |
#!/bin/sh
cd ../lib
java -classpath accjwrap.jar:ant-1.6.5.jar:ant-antlr-1.6.5.jar:ant-junit-1.6.5.jar:ant-launcher-1.6.5.jar:ant-swing-1.6.5.jar:antlr-2.7.6.jar:asm-attrs.jar:asm.jar:c3p0-0.9.1.jar:cglib-2.1.3.jar:checkstyle-all.jar:cleanimports.jar:commons-collections-2.1.1.jar:commons-logging-1.0.4.jar:concurrent-1.... | aarontrank/PetrolBot | scripts/lin/PetrolBot.sh | Shell | gpl-2.0 | 788 |
#!/bin/sh
PID=$$
### Format:
# sendEmail.sh ${FromAddr} ${ToAddr} ${Subject} ${ContentFile} [-s]
FromAddr=$1
ToAddr=$2
Subject=$3
ContentFile=$4
isSilent=$5
TMPFILE=./feedback_${PID}.txt
## Parsing and fetch arguments list:
if [ $# -lt 4 ] ; then
echo -e "\nUsage:\n$0 \${FromAddr} \${ToAddr} \${Subject} \${Conten... | martinchina1985/bash | common/send_email.sh | Shell | gpl-2.0 | 1,062 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.