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
#set -x
source $LIBMESH_DIR/examples/run_common.sh
example_name=eigenproblems_ex3
example_dir=examples/eigenproblems/$example_name
options="-n_evals 5 -mesh_name drum1 -plotting_index 2"
run_example "$example_name" "$options"
options="-n_evals 5 -mesh_name drum2 -plotting_index 2"
run_example "$exampl... | cahaynes/libmesh | examples/eigenproblems/eigenproblems_ex3/run.sh | Shell | lgpl-2.1 | 339 |
#!/bin/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 "License"); y... | zuotingbing/spark | sql/create-docs.sh | Shell | apache-2.0 | 1,863 |
#!/bin/bash -e
. shared.sh
serviceUUID=${serviceUUID-$(oc get template cakephp-mysql-example -n openshift -o template --template '{{.metadata.uid}}')}
req="{
\"plan_id\": \"$planUUID\",
\"service_id\": \"$serviceUUID\",
\"parameters\": {
\"MYSQL_USER\": \"username\",
\"template.openshift.io/namespace\"... | stevekuznetsov/origin | pkg/template/servicebroker/test-scripts/provision.sh | Shell | apache-2.0 | 626 |
# added 2012-09-20 by rgerhards
# This file is part of the rsyslog project, released under ASL 2.0
echo ===============================================================================
echo \[rscript_prifilt.sh\]: testing rainerscript prifield\(\) function
source $srcdir/diag.sh init
source $srcdir/diag.sh startup rscri... | deniskin82/rsyslog | tests/rscript_prifilt.sh | Shell | gpl-3.0 | 569 |
#!/usr/bin/env bash
#
# Prepares a virtual machine for running TFB
# A shell provisioner is called multiple times
if [ ! -e "~/.firstboot" ]; then
# Workaround mitchellh/vagrant#289
echo "grub-pc grub-pc/install_devices multiselect /dev/sda" | sudo debconf-set-selections
# Install prerequisite tools
echo... | nbrady-techempower/FrameworkBenchmarks | deployment/vagrant/bootstrap.sh | Shell | bsd-3-clause | 1,391 |
function agp() {
echo $AWS_PROFILE
}
# AWS profile selection
function asp() {
if [[ -z "$1" ]]; then
unset AWS_DEFAULT_PROFILE AWS_PROFILE AWS_EB_PROFILE
echo AWS profile cleared.
return
fi
local -a available_profiles
available_profiles=($(aws_profiles))
if [[ -z "${available_profiles[(r)$1]}"... | Seinh/oh-my-zsh | plugins/aws/aws.plugin.zsh | Shell | mit | 3,228 |
#! /bin/sh
# $Id: iptables_display.sh,v 1.4 2011/05/16 12:11:37 nanard Exp $
IPTABLES=/sbin/iptables
#display all chains relative to miniupnpd
$IPTABLES -v -n -t nat -L PREROUTING
$IPTABLES -v -n -t nat -L MINIUPNPD
$IPTABLES -v -n -t nat -L POSTROUTING
$IPTABLES -v -n -t nat -L MINIUPNPD-PCP-PEER
$IPTABLES -v -n -t m... | megraf/asuswrt-merlin | release/src/router/miniupnpd/netfilter/iptables_display.sh | Shell | gpl-2.0 | 416 |
#!/bin/sh
setenv()
{
# Define and export.
eval ${1}="${2}"
export ${1}
}
case "${SCRIPTDIR}" in
/*) ;;
*) SCRIPTDIR="`pwd`/${SCRIPTDIR}"
esac
while true
do case "${SCRIPTDIR}" in
*/.) SCRIPTDIR="${SCRIPTDIR%/.}";;
*) break;;
esac
done
#... | gwq5210/litlib | thirdparty/sources/curl-7.46.0/packages/OS400/initscript.sh | Shell | gpl-3.0 | 8,955 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | linzichang/kubernetes | cluster/vagrant/util.sh | Shell | apache-2.0 | 14,316 |
#!/usr/bin/env sh
set -e
# The following example allows for the MNIST example (using LeNet) to be
# trained using the caffe docker image instead of building from source.
#
# The GPU-enabled version of Caffe can be used, assuming that nvidia-docker
# is installed, and the GPU-enabled Caffe image has been built.
# Settin... | aayushbansal/PixelNet | tools/caffe/examples/mnist/train_lenet_docker.sh | Shell | mit | 4,518 |
#!/bin/sh
# make sure ls -L always follows symlinks
# Copyright (C) 2000-2015 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 3 of the License, or... | kdave/coreutils | tests/ls/follow-slink.sh | Shell | gpl-3.0 | 1,905 |
brew() {
"$HOMEBREW_BREW_FILE" "$@"
}
git() {
"$HOMEBREW_LIBRARY/Homebrew/shims/scm/git" "$@"
}
git_init_if_necessary() {
if [[ -n "$HOMEBREW_OSX" ]]
then
OFFICIAL_REMOTE="https://github.com/Homebrew/brew.git"
else
OFFICIAL_REMOTE="https://github.com/Linuxbrew/brew.git"
fi
if [[ ! -d ".git" ]]
... | Si15801489663/test | rvm install ruby --head/Library/Homebrew/cmd/update.sh | Shell | mit | 10,143 |
#!/bin/bash
mkdir -p "$PREFIX/bin"
export MACHTYPE=x86_64
export BINDIR=$(pwd)/bin
export L="${LDFLAGS}"
mkdir -p "$BINDIR"
(cd kent/src/lib && make)
(cd kent/src/htslib && make)
(cd kent/src/jkOwnLib && make)
(cd kent/src/hg/lib && make)
(cd kent/src/utils/bigWigCat && make)
cp bin/bigWigCat "$PREFIX/bin"
chmod +x "$P... | phac-nml/bioconda-recipes | recipes/ucsc-bigwigcat/build.sh | Shell | mit | 341 |
#!/bin/bash -eux
source_root=$(python -c "from os import path; print(path.abspath(path.join(path.dirname('$0'), '../../..')))")
install_deps="${INSTALL_DEPS:-}"
cd "${source_root}"
if [ "${install_deps}" != "" ]; then
add-apt-repository ppa:fkrull/deadsnakes && apt-get update -qq && apt-get install python2.4 -q... | bhcopeland/ansible-modules-extras | test/utils/shippable/sanity.sh | Shell | gpl-3.0 | 1,185 |
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "mountd down, 7 iterations, back up after 2"
setup_nfs
rpc_services_down "mountd"
# Iteration 2 should try to restart rpc.mountd. However, our test
# stub rpc.mountd does nothing, so we have to explicitly flag it as
# up.
nfs_iterate_test 7 "mountd" \
3 "rp... | SVoxel/R7800 | git_home/samba.git/ctdb/tests/eventscripts/60.nfs.monitor.153.sh | Shell | gpl-2.0 | 342 |
R CMD REMOVE --library=$PREFIX/lib/R/library/ fission
| roryk/recipes | recipes/bioconductor-fission/pre-unlink.sh | Shell | mit | 54 |
#!/bin/bash
set -e
#
# Build the distribution using the same process used on Drupal.org
#
# When building, we expect that you're building within a directory structure like
# the following:
# commons/
# /commons_profile
# /docroot
# /docroot2, etc, etc
# /repos
# /patches
# /screenshots
#
#
# ... | acquia/commons | scripts/build.sh | Shell | gpl-2.0 | 3,999 |
#!/bin/sh
mkdir -p $PREFIX/bin
# Install the current codebase as an R package
Rscript install.R
# Install executables
install -C exec/smudgeplot.py $PREFIX/bin
install -C exec/smudgeplot_plot.R $PREFIX/bin
| cokelaer/bioconda-recipes | recipes/smudgeplot_rn/build.sh | Shell | mit | 209 |
#!/bin/bash -eux
# These were only needed for building VMware/Virtualbox extensions:
zypper -n rm -u binutils gcc make perl ruby kernel-default-devel kernel-devel
| sillvan/bento | scripts/opensuse/cleanup.sh | Shell | apache-2.0 | 163 |
#!/bin/sh
apt-get clean
sync
| Boltmade/packer-yesod-ghc-7.8 | scripts/compact.sh | Shell | isc | 31 |
#!/bin/sh
# This is a sample shell script showing how you can submit the ADD_SVC_COMMENT command
# to Nagios. Adjust variables to fit your environment as necessary.
now=`date +%s`
commandfile='/var/lib/nagios3/rw/nagios.cmd'
host=$1
service=$2
comment=$3
/usr/bin/printf "[%lu] ADD_SVC_COMMENT;$1;$2;1;nagios;$comment\n... | petervdb/testrep1 | bin/nagios-add-svc-comment.sh | Shell | mit | 344 |
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
export PATH=/opt/bin:/opt/etc/vault/scripts:$PATH
. $DIR/utils/functions
. $DIR/utils/env_defaults
. /etc/profile.d/vault.sh
export PATH=/opt/bin:/opt/etc/vault/scripts:$PATH
CLUSTER_ID=$1
if [ -z "$CLUSTER_ID" ];
then
exit1 "A unique Kubernetes c... | xuwang/kube-aws-terraform | resources/vault/artifacts/upload/scripts/create_kube_config.sh | Shell | mit | 1,022 |
#!/bin/bash
set -ev
if [ "$TRAVIS_BRANCH" = "master" ] ; then
bundle exec pod spec lint
bundle exec pod trunk push SwiftDecimalNumber.podspec
fi
| superwatermelon/SwiftDecimalNumber | scripts/deploy.sh | Shell | mit | 149 |
#!/bin/bash
java -Xbootclasspath/p:../duzl-studios/src/ SatSolver $1 > $2
| jaanos/LVR-2016 | homework/2016/run/run-duzl-studios.sh | Shell | mit | 74 |
# In theory all you need to do to use zsh in nix-shell is to set NIX_BUILD_SHELL
# to zsh. Unfortunatly nix assumes that the NIX_BUILD_SHELL is a bash variant and
# passes bash specific arguments to the shell. To fix this we need a shim that
# translates these arguments.
#
# Copied from https://github.com/chisui/zsh-ni... | koenwtje/dotfiles | zsh.d/nix-shell/nix-shell.zsh | Shell | mit | 1,771 |
#!/bin/sh
#
# heligun: 3D flight sim shooter
# Copyright (c) 2016 Joseph Kuziel
#
# This software is MIT licensed.
#
emcc main.c game.c glext.c renderer.c sdlext.c \
-s USE_SDL=2 \
-s USE_SDL_IMAGE=2 \
-s SDL2_IMAGE_FORMATS='["png"]' \
--preload-file res \
-O2 \
-o index.html
| jkuziel/heligun | build_emscripten.sh | Shell | mit | 303 |
#!/bin/bash
# push the routers external IP address to dropbox
APP="push_ip"
echo -e "\n\r" $APP " 0.0.0\n\r"
CURRENT_OS=$(uname)
echo -n "operating system is "
echo $CURRENT_OS
if [ $CURRENT_OS == "Linux" ]
then
echo -e "\rappending active sensor log to master log\r"
else
echo -e "\r" $APP " can not be run from OS... | mam1/Pcon-TNG | script_lib/OSX/push_ip.sh | Shell | mit | 331 |
#!/bin/sh
dockutil --no-restart --remove all
dockutil --no-restart --add "/Applications/Mail.app"
dockutil --no-restart --add "/Applications/Calendar.app"
dockutil --no-restart --add "/Applications/Messages.app"
dockutil --no-restart --add "/Applications/FaceTime.app"
dockutil --no-restart --add "/Applications/Notes.a... | initialkommit/dotfiles | macos/dock.sh | Shell | mit | 794 |
node snippets/test.js
| wangjeaf/ckstyle-node | go.sh | Shell | mit | 22 |
export PATH=/opt/local/bin:/opt/local/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript
# set to home directory of the user Meteor will be running as
export PWD=/home/wo
export HOME=/home/wo
# leave as 127.0.0.1 for security
ex... | webobservatory/web-observatory | launch-wo.sh | Shell | mit | 1,370 |
#!/usr/bin/env bash
if [ "$(( RANDOM % 2 ))" -eq 0 ]; then
echo "S"
else
echo "M"
fi
for ((i = 0; i <= 144; i++)); do
echo "($(( RANDOM % 10 )) + 1) * 2.3" | bc
done
| deniscostadsc/playground | solutions/beecrowd/1187/generate_in.sh | Shell | mit | 180 |
#!/bin/bash
mkdir -p $PREFIX/bin
cp simple_sv_annotation.py $PREFIX/bin
chmod a+x $PREFIX/bin/simple_sv_annotation.py
| JingchaoZhang/bioconda-recipes | recipes/simple_sv_annotation/build.sh | Shell | mit | 118 |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices ... | msencenb/EveryoneAPI | Example/Pods/Target Support Files/Pods-EveryoneAPI/Pods-EveryoneAPI-resources.sh | Shell | mit | 4,022 |
#!/bin/bash
for i in "$@"
do
case $i in
--nginx-http=*)
NGINX_HTTP="${i#*=}"
shift
;;
--nginx-https=*)
NGINX_HTTPS="${i#*=}"
shift
;;
--data-root=*)
DATA_ROOT="${i#*=}"
shift
;;
--cert-owner-email=*)
CERT_OWNER_EMAIL="${i#*=}"
shift
;;
--portainer-fqd... | kyr0s/gantry-crane | install.sh | Shell | mit | 3,157 |
#!/bin/bash
if [ -d "$1" ]; then
cd "$1"
else
echo "Usage: $0 <datadir>" >&2
echo "Removes obsolete Yiffcoin database files" >&2
exit 1
fi
LEVEL=0
if [ -f wallet.dat -a -f addr.dat -a -f blkindex.dat -a -f blk0001.dat ]; then LEVEL=1; fi
if [ -f wallet.dat -a -f peers.dat -a -f blkindex.dat -a -f blk0001.dat ... | Techwolfy/yiffcoin | contrib/tidy_datadir.sh | Shell | mit | 1,389 |
__has screen && alias c=__connect_screen
__connect_screen()
{
if [ -n "$STY" ]; then
echo '*** Nested screen is forbidden here ***'
return
fi
case "_$1" in
_)
screen -q -x main || screen -S main
;;
_:)
screen -ls
;;
_::... | hengyang-zhao/unix-home | bashrc.d/80-connections.sh | Shell | mit | 2,740 |
#!/bin/bash
alias tfplan='terraform plan --var-file=terraform.tfvars --var-file cluster_values.tfvars'
alias tfapply='terraform apply --var-file=terraform.tfvars --var-file cluster_values.tfvars'
alias tfdestroyplan='terraform plan --var-file=terraform.tfvars --var-file cluster_values.tfvars -destroy --out=destroy.tfp... | xueshanf/coreos-docker-dev | terraform/bin/aliases.sh | Shell | mit | 430 |
#!/bin/sh
#SBATCH -o loopy_node_openacc_benchmarks%j.out
#SBATCH -e loopy_node_openacc_benchmarks%j.err
# one hour timelimit
#SBATCH --time 7:00:00
# get gpu queue
#SBATCH -p gpu
# need 1 machine
#SBATCH -N 1
# name the job
#SBATCH -J LoopyNodeOpenACCBeliefPropagationBenchmarks
module load cuda/toolkit
module load li... | mjost5v/belief-propagation | scripts/loopy_node_profile/submit_loopy_node_openacc.sh | Shell | mit | 583 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2011:0433
#
# Security announcement date: 2011-04-11 20:29:01 UTC
# Script generation date: 2017-01-01 21:13:04 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - xorg-x11-server-utils.x86_64:7.1-5.el5_... | Cyberwatch/cbw-security-fixes | Red_Hat_5/x86_64/2011/RHSA-2011:0433.sh | Shell | mit | 824 |
#! /bin/bash
rm -rf bin
rm -rf TestResult.xml
xbuild /p:Configuration=Release
nunit-color-console -labels "$@" bin/Release/IO.Interfaces.Specs.dll
| remi/IO.Interfaces | build-and-test-release.sh | Shell | mit | 147 |
#!/bin/bash
apt-get -y update
apt-get -y install\
apache2\
tomcat7 tomcat7-admin tomcat7-common tomcat7-docs tomcat7-examples\
openjdk-6-jdk maven
a2enmod headers proxy proxy_html rewrite xml2enc
service apache2 restart
| WOVNio/wovnjava | provision.sh | Shell | mit | 227 |
#!/bin/sh
./halite -d "240 160" "dart MyBot.dart" "dart MyBot.dart"
| HaliteChallenge/Halite-II | airesources/Dart/run_game.sh | Shell | mit | 69 |
#if [[ -n $SSH_CONNECTION ]]; then
# export PS1='%m:%3~$(git_info_for_prompt)%# '
#else
# export PS1='%3~$(git_info_for_prompt)%# '
#fi
export LSCOLORS="exfxcxdxbxegedabagacad"
export CLICOLOR=true
fpath=($ZSH/functions $fpath)
autoload -U $ZSH/functions/*(:t)
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000... | ealasu/dotfiles | zsh/config.zsh | Shell | mit | 1,805 |
#!/bin/bash
cd livefyre
tar cvzf livefyre-drupal.tar.gz livefyre* js README.txt
mv livefyre-drupal.tar.gz ..
cd ..
echo "
*Made a new zip file for you: livefyre-drupal.tar.gz"
| Livefyre/Livefyre-Comments-for-Drupal | build.sh | Shell | mit | 178 |
#!/bin/bash
set -xv
# $1 : run dir
# $2 : norm flat dir
# $3 : norm illum dir
. ${INSTRUMENT:?}.ini > /tmp/inst.out 2>&1
if [ ! -d $1/BASE_WEIGHT ]; then
mkdir $1/BASE_WEIGHT
fi
for ((i=1;i<=${NCHIPS};i+=1)); do
ic '%1 %2 *' $1/$2/${2}_${i}.fits $1/$3/${3}_${i}_illum.fits > $1/BASE_WEIGHT/BASE_WEIGHT_$... | deapplegate/wtgpipeline | create_globalweight_base.sh | Shell | mit | 462 |
#!/bin/bash
script_dir=$(dirname "$(readlink -f "$0")")
export PYTHONPATH=$script_dir/../lib:$PATH:$PYTHONPATH
python $script_dir/../lib/ContigCount/ContigCountServer.py $1 $2 $3
| levinas/kb_sdk_ContigCount | bin/run_ContigCount_async_job.sh | Shell | mit | 179 |
global_setup() {
helper__use_silent_reporter
SBU_RANDOM_RUN=${SBU_YES}
}
setup() {
database__initialise
}
teardown() {
database__release
}
can_execute_test_files_randomly() {
local tests_dir="${TESTS_RESOURCES_DIR}/runner/directory_with_a_lot_of_files"
runner__run_all_test_files "${tests_dir}"
local ... | arpinum-oss/shebang-unit | sources/tests/core/runner/runner_function_calls_with_random_test.sh | Shell | mit | 1,089 |
ring ring2exe.ring ring2exe.ring
./cleartemp.sh
cp ring2exe $PWD/../../bin/ring2exe
if [ -f ../../lib/libring.dylib ];
then
cd ../../bin
ln -sf "`pwd`/ring2exe" /usr/local/bin/ring2exe
chmod +x /usr/local/bin/ring2exe
fi
if [ -f ../../lib/libring.so ];
then
cd ../../bin
sudo ln -sf "`pwd`/ring2exe" /usr/bin/ring2ex... | ring-lang/ring | tools/ring2exe/buildring2exe.sh | Shell | mit | 359 |
# CHROMIUM UI LIB contains org.chromium.ui.* sources
# Make sure you setup and run ../../env.sh first
export PROJ=$ACV_HOME/ui
# cleanup
rm -rf $PROJ/src/org/chromium/ui/*
rm -rf $PROJ/res/*
# copy android ui sources org.chromium.ui
cp -r $BUILD/ui/android/java/src/* $PROJ/src/
# copy android ui resources
cp -r $B... | a-klimashevsky/android-chromium-view | ui/scripts/copy-ui.sh | Shell | mit | 513 |
#!/bin/sh
./start.sh 'testing...'
| jm-janzen/EC2-facer | test.sh | Shell | mit | 36 |
#!/bin/bash
# get the directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# RSA key
RSA_ID="${DIR}/id_geni_ssh_rsa"
# node names
VM1="${1}@pcvm2-8.instageni.idre.ucla.edu"
VM2="${1}@pcvm2-9.instageni.idre.ucla.edu"
VM3="${1}@pcvm2-12.instageni.idre.ucla.edu"
VM4="${1}@pcvm2-16.instageni.... | meggers/pyflix | deploy.sh | Shell | mit | 1,050 |
#!/bin/bash -eux
echo "Disabling IPv6 ####################################################"
# Disable ipv6
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl... | Manifesto-Digital/wcs-env-tutorial-packer-templates | scripts/centos/disable-ip6.sh | Shell | mit | 325 |
#!/bin/bash
nconn=$1
[ -z "$nconn" ] && {
echo "Usage: $0 <nconn>" >&2
exit 1
}
Dir=`dirname $0`
cd $Dir
./web $nconn www.firstview.com / \
/themes/default/images/blogtitle-logo.jpg \
/themes/default/images/blog-thumb3.jpg \
/themes/default/images/blogfeaturestrends.jpg \
/themes/default/images/l... | GongCun/UNIX_Network_Programming_3thEd_Volume1 | ch16_nonblock/web.sh | Shell | mit | 429 |
#!/usr/bin/env bash
mkdir -p out
javac -implicit:class -d out \
-cp src:$LOG4J2_HOME/log4j-core-2.11.0.jar:$LOG4J2_HOME/log4j-api-2.11.0.jar \
src/gov/fubar/foo/HelloLog4J2JAR.java
cd out
jar -xf $LOG4J2_HOME/log4j-core-2.11.0.jar
jar -xf $LOG4J2_HOME/log4j-api-2.11.0.jar
cd ..
cp src/log4j2.xml out
jar -c... | jbannick/hellokata-java | src/log4j2/hellolog4j2JAR/build.sh | Shell | mit | 376 |
#!/bin/bash
if [ -d "$1" ]; then
cd "$1"
else
echo "Usage: $0 <datadir>" >&2
echo "Removes obsolete Terracoin database files" >&2
exit 1
fi
LEVEL=0
if [ -f wallet.dat -a -f addr.dat -a -f blkindex.dat -a -f blk0001.dat ]; then LEVEL=1; fi
if [ -f wallet.dat -a -f peers.dat -a -f blkindex.dat -a -f blk0001.dat... | terracoin/terracoin | contrib/tidy_datadir.sh | Shell | mit | 1,395 |
#!/usr/bin/env roundup
#
#/ usage: rerun stubbs:test -m cfg -p fedora [--answers <>]
#
# Helpers
# -------
[[ -f ./functions.sh ]] && . ./functions.sh
# The Plan
# --------
describe "fedora"
# ------------------------------
# Replace this test.
it_fails_without_a_real_test() {
exit 1
}
# ----------------------... | Configi/configi | tests/modules/cfg/tests/fedora-1-test.sh | Shell | mit | 330 |
#Use only in production
#!/bin/sh
# wait for Postgres to start
postgres_ready(){
python << END
import sys
import psycopg2
try:
conn = psycopg2.connect(dbname="postgres", user="postgres", password="changeme", host="db")
except psycopg2.OperationalError:
sys.exit(-1)
sys.exit(0)
END
}
until postgres_ready; do
... | amigos-do-gesiel/iespv-administrativo | boot.sh | Shell | mit | 448 |
#!/bin/bash
set -e
echo args: $@
sitl_bin=$1
rcS_dir=$2
debugger=$3
program=$4
model=$5
src_path=$6
build_path=$7
echo SITL ARGS
echo sitl_bin: $sitl_bin
echo rcS_dir: $rcS_dir
echo debugger: $debugger
echo program: $program
echo model: $model
echo src_path: $src_path
echo build_path: $build_path
working_dir=`pwd... | darknight-007/Firmware | Tools/sitl_run.sh | Shell | mit | 2,844 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2296-1
#
# Security announcement date: 2014-07-22 00:00:00 UTC
# Script generation date: 2017-01-27 21:05:08 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - thunderbird:1:31.0+build1-0ubuntu0.12.... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2014/USN-2296-1.sh | Shell | mit | 875 |
# Mount a Samba share
mount -t cifs -o username=<share user>,password=<share password> //WIN_PC_IP/<share name> /mnt
| calebsullivan/useful_scripts_linux | oneliners.bash | Shell | mit | 118 |
#!/bin/sh
# pngcrush a directory given as the first command line argument.
# Note: This modifies the original files.
for png in `find $1 -name "*.png"`;
do
echo "crushing $png"
pngcrush -brute "$png" temp.png
mv -f temp.png $png
done;
| boyers/hamlit | tasks/pngcrush.sh | Shell | mit | 243 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2856-1
#
# Security announcement date: 2016-01-05 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:04 UTC
#
# Operating System: Ubuntu 15.04
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libldb1:1:1.1.18-1ubuntu0.1
#
# Last ver... | Cyberwatch/cbw-security-fixes | Ubuntu_15.04/x86_64/2016/USN-2856-1.sh | Shell | mit | 644 |
#!/usr/bin/env bash
NDK=/Users/mac/Project/ndk/
API=android-26
./cmake_android.sh build_android -DURHO3D_PHYSICS=1 -DURHO3D_LUA=0 -DURHO3D_URHO2D=0 -DURHO3D_NETWORK=0 -DURHO3D_NAVIGATION=0 \
-DURHO3D_TOOLS=1 -DURHO3D_SAMPLES=0 -DURHO3D_EXTRAS=0 -DURHO3D_FILEWATCHER=0 -DURHO3D_ANGELSCR... | 299299/Urho3D | make_android.sh | Shell | mit | 507 |
make clean
make
./heat2d.run 1.0 2 2 40 40 100 64 4
./heat2d.run 1.0 2 2 80 80 100 64 4
./heat2d.run 1.0 2 2 160 160 100 64 4
./heat2d.run 1.0 2 2 320 320 100 64 4
./heat2d.run 1.0 2 2 640 640 100 64 4
| wme7/Matlab2CPP | OMP/heatEquation2d/run.sh | Shell | mit | 202 |
#!/bin/bash
export DOCKER_IDE=intellij
export WORK_DIR="${_MY_GIT}/splunk"
export _BANG_SH="${_MY_GIT}/bangsh"
export PATH="${WORKSTATION_HOME}/bin:${_BANG_SH}:$PATH"
source ~/.config/work/.config
#. "$WORKSTATION_HOME/scripts/workstation_bash_autocomplete.bash"
alias work="cd ${WORK_DIR}"
#####
# Snippet of Bold... | ferronrsmith/dotfiles | zsh/work.sh | Shell | mit | 1,009 |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
FLDR="$(basename $DIR)"
#nano
ln -s -f #DIR/dotfiles/tmux.conf $HOME/.tmux.conf
#tmux
ln -s -f $DIR/dotfiles/tmux.conf $HOME/.tmux.conf
ln -s -f $DIR/tmux $HOME/.tmux
#Add the environment settings
echo "Please add the following to your profile script:"
echo ""
... | nathairtras/.files | install.sh | Shell | mit | 495 |
#!/bin/bash
#
# GridPP and DIRAC: running CERN@school frame processing on the grid.
#
# This script gets passed to the grid job to run the CVMFS Python scripts.
#
# Parameters:
# * $1 : the CVMFS location of the CERN@school clustering software;
# * $2 : the Python script to run.
#
export PATH=$1/lib64/:$1/lib/:$PATH:... | gridpp/dirac-getting-started | run.sh | Shell | mit | 904 |
#!/bin/sh
host=${1:-$(hostname)}
port=${2:-8007}
true=/bin/true
[ ! -f ${true} ] && true=/usr/bin/true
while $true; do
echo "starting..."
node --max-stack-size=4G start boothost=${host}:${port}
echo "sleeping..."
sleep 1
done >> boot.log 2>&1
| stewartoallen/cbs | start.sh | Shell | mit | 247 |
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
add-apt-repository -y ppa:nikratio/s3ql
apt-get update
apt-get install --no-install-recommends -y software-properties-common s3ql ca-certificates python-swiftclient nfs-kernel-server
apt-get upgrade --no-install-recommends -y
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp... | murf0/docker-s3ql | build.sh | Shell | mit | 719 |
#!/usr/bin/env sh
set -e
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Ruby
ln -nfs "$DIR/gemrc" ~/.gemrc
ln -nfs "$DIR/irbrc" ~/.irbrc
ln -nfs "$DIR/rubocop.yml" ~/.rubocop.yml
| cmckni3/dotfiles | ruby/install.sh | Shell | mit | 191 |
#!/usr/bin/env bash
pkg_prereqs=('brew' 'git')
pkg_extract_path=~/
pkg_description='tmux — best terminal multiplyer'
function install_package() {
b.system.brew_install_new cmake
b.system.brew_install_new tmux
b.system.brew_install_new tmux-mem-cpu-load
b.system.brew_cask_install_new easysimbl
# El Capitan m... | smileart/omg | packages/osx/tmux/tmux.sh | Shell | mit | 711 |
#!/usr/bin/env bash
# Never had luck with this shite.
| benkolera/osx-env | roles/mac/files/settings.sh | Shell | mit | 55 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-1809-1
#
# Security announcement date: 2013-05-01 00:00:00 UTC
# Script generation date: 2017-01-01 21:03:15 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - linux-image-3.2.0-41-virtual:3.2.0-4... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/x86_64/2013/USN-1809-1.sh | Shell | mit | 1,947 |
#!/usr/bin/env bash
cp ./script.py ~/.git-walk.py
git config --global alias.walk '!python ~/.git-walk.py'
echo 'The extension has been successfully installed.'
| nok/git-walk | install.sh | Shell | mit | 161 |
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2012:0973
#
# Security announcement date: 2012-06-20 09:28:01 UTC
# Script generation date: 2016-11-16 21:16:20 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - nspr.x86_64:4.9-1.el6
# - nspr-debugi... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2012/RHSA-2012:0973.sh | Shell | mit | 3,142 |
#!/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... | zgosalvez/ISO-3166-iOS-OSX | Example/Pods/Target Support Files/Pods-ISO3166_Example/Pods-ISO3166_Example-frameworks.sh | Shell | mit | 3,548 |
#!/bin/bash
## Get the "Device name" or ID number
## for Finger Touch from 'xsetwacom list dev'
DEVICE="Wacom Bamboo 16FG 6x8 Finger touch"
GESTURE_STATE=`xsetwacom get "$DEVICE" gesture`
if [ "$GESTURE_STATE" == "on" ]
then
echo "Touch is ON, turning OFF."
xsetwacom set "$DEVICE" gesture off
else
... | hmm01i/dotfiles | home_bin/toggle-gesture.sh | Shell | mit | 395 |
#!/usr/bin/env bash
#
# +------------------------------------------------------------------------+
# | Phalcon Developer Tools |
# +------------------------------------------------------------------------+
# | Copyright (c) 2011-2016 Phalcon Team (http://www.phalconph... | rikur/heroku-buildpack-php | phalcon-devtools/phalcon.sh | Shell | mit | 2,961 |
docker build -t="index.alauda.cn/zhaoic/debian:node840" .
| zhaoic/meteord-taobao | debian-base/build.sh | Shell | mit | 58 |
get_os() {
uname | tr A-Z a-z
}
get_cpu() {
if [[ "$(uname -p)" = "i686" ]]; then
echo "x86"
else
echo "x64"
fi
}
os=$(get_os)
cpu=$(get_cpu)
platform="$os-$cpu"
export JQ="$BP_DIR/vendor/jq-$os"
create_default_env() {
export NPM_CONFIG_LOGLEVEL=${NPM_CONFIG_LOGLEVEL:-error}
export NODE_MODULES_C... | apiaryio/heroku-buildpack-nodejs-grunt | lib/environment.sh | Shell | mit | 1,982 |
mkdir -p $BUNDLES_PATH/$1
if [ ! -z $2 ];then distro=$2
else read -p "What distribution is the bunde's OS? [ubuntu|debian]" distro
fi
case "$distro" in
ubuntu)
cp $TEMPLATE_PATH/preseed-ubuntu.template $BUNDLES_PATH/$1/preseed.template
;;
debian)
cp $TEMPLATE_PATH/preseed-debian.template $BUNDLES_PATH/$1/pres... | ugeorge/virtual_monkey_builder | core_scripts/new_bundle.sh | Shell | mit | 700 |
export CUDA_VISIBLE_DEVICES=0
python ./neural-style/fast.py \
--style-image="./images/themuse.jpg" \
--content-image="./images/robot.jpg" \
--loss-style=5 \
--loss-feature=1 \
--loss-interval=100 \
--pretrained-model="./models/vgg16-00b39a1b-255.pth" \
--use-cuda \
--styled-prefix="fast_robot_muse" \
... | ctliu3/neural-style | fast.sh | Shell | mit | 563 |
#!/usr/bin/env bash
rm ip-lists/*.txt
mv result/* ip-lists
cd ip-lists
tree -H . -P "*.txt|stat" -T "China Operator IP - prebuild results" > index.html
git config user.name GitHub Actions
git config user.email github-actions@github.com
git add .
git commit -m "update $(date +%Y-%m-%d)"
git push -q
| gaoyifan/china-operator-ip | upload.sh | Shell | mit | 301 |
#!/usr/bin/env bash
set -euo pipefail
. ./substr.bash
test_start="${2:-}"
test_end="${3:-}"
iterations=30000
str="MoNXZZwU+JPK/nyZgnz/8P4XknxjZREZd5tSb1avuY2n1F1M5a5eKN6hpBaNciHT9OCNQngLaVMs88aUmqq0GvN2/Sxx8Scv+7RHWpul1l+zfc2GEcoPLSTAX8aNIDkaqLrVlQo="
# str="MoNXZZwU+JPKanyZgnza8P4XknxjZREZd5tSb1avuY2n1F1M5a5eKN6hpB... | zbentley/bash-tricks | substr/benchmark.sh | Shell | mit | 1,096 |
#!/bin/bash
set -e
if [[ "$DISTRIB" =~ ^conda.* ]]; then
source activate $VIRTUALENV
elif [[ "$DISTRIB" == "ubuntu" ]] || [[ "$DISTRIB" == "ubuntu-32" ]]; then
source $VIRTUALENV/bin/activate
fi
python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
python -c "import scipy; print('s... | fmfn/UnbalancedDataset | build_tools/azure/test_script.sh | Shell | mit | 1,120 |
#!/usr/bin/env sh
set -x
NAME=mailpile
docker stop "$NAME"
docker rm "$NAME"
docker run -d \
--name="$NAME" \
--publish 33411:33411 \
--volume ~/.local/share/Mailpile:/home/mailpile/.local/share/Mailpile \
--restart unless-stopped \
florianpiesche/mailpile:nightly
# docker start "$NAME"
docker logs --fol... | aiosk/docker | mailpile/up.sh | Shell | mit | 342 |
#!/usr/bin/env bash
set -e
set -x
REPORT_FOLDER="$(mktemp -d)"
if [[ ${REPORT_BRANCH} == "STAGING" ]]; then
REPORT_BRANCH_NAME="staging"
else
REPORT_BRANCH_NAME="gen2-system-reports-w$(date +%W)"
fi
GEN2_FOLDER_PATH="$REPORT_FOLDER/system_reports/GEN2"
envman add --key REPORT_BRANCH_NAME --value "${REPORT_BRANCH... | bitrise-io/osx-box-bootstrap | _scripts/generate_system_report.sh | Shell | mit | 1,122 |
#!/bin/sh
rm -f /etc/env
for varname in `env | grep -o "^[A-Z_0-9]*"`; do
echo "$varname=\"`printenv $varname`\"" >> /etc/env
done
if [ -z "$1" ]; then
echo Running scripts in /etc/startup
run-parts /etc/startup
echo Starting services in /etc/services
set -- runsvdir -P /etc/services
fi
exec $@
| erlend/docker-postgres | entrypoint.sh | Shell | mit | 310 |
#!/bin/bash
usage()
{
echo "usage: timeline_etl -s ... -m ... -u ... -p ... -c ... | [-h]]"
}
do_etl()
{
lib/tools/timeline_etl.js -p "$couchdb/${store}_timeline" -P $store -U $store -h "$mysql" -u $user -w $pass -d etl -s $store
}
store=
mysql=
user=
pass=
couchdb=
filePath=
while [ "$1" != "" ]; do
cas... | sudzy-group/com.sudzy.db | etl/timeline_etl.sh | Shell | mit | 1,378 |
#!/bin/bash -x
#
# Install various tools (Debian packages) used in the configuration.
#
# @author Michal Turek
#
apt-get update
apt-get install --yes acpi
apt-get install --yes alsa-utils
apt-get install --yes apt-file
apt-get install --yes arandr
apt-get install --yes autoconf
apt-get install --yes automake
apt-get... | mixalturek/pekwm-desktop | util/install_deb.sh | Shell | mit | 2,693 |
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
timit_root=$1 # assume it is the upper-cased version
tgt_dir=$2
model=$3
set -eu
setups="matched unmatched"
splits="test valid ... | pytorch/fairseq | examples/wav2vec/unsupervised/scripts/prepare_timit.sh | Shell | mit | 3,466 |
#!/usr/bin/env bash
CONFIG_FILE=/etc/powerdns/pdns.conf
sed -i 's/{{PDNS_REMOTE_HTTP_HOST}}/'"${PDNS_REMOTE_HTTP_HOST}"'/g' ${CONFIG_FILE}
exec "$@" | pboehm/ddns | docker/powerdns/entrypoint.sh | Shell | mit | 151 |
#! /bin/bash
python $1 < $2
| OssecTN/CodeChall | src/web/compiler/compile_py.sh | Shell | mit | 29 |
#!/bin/bash
sudo chmod -R 777 app
php app/console doctrine:database:create
php app/console doctrine:schema:update --force
php app/console doctrine:fixtures:load
php app/console assets:install web --symlink | andboson/filmz | reload_cust.sh | Shell | mit | 206 |
#!/bin/bash
#Creates the basic structure of NetIDE Engine
#[It is used to set up the Vagrant VM]
NetIDE_DIR="$HOME/NetIDE"
if [ "$1" == "-h" ] || [ "$1" == "--help" ]
then
echo "Usage: setEngine.sh"
exit 0
fi
if [ -d $NetIDE_DIR ]; then
echo "NetIDE folder already exists"
exit 0
fi
echo "*--"
echo "*-- I... | fp7-netide/Engine | utils/scripts/setEngine.sh | Shell | epl-1.0 | 3,390 |
#!/bin/bash
#Creates the basic structure to later apply the runEngine and updateEngine scripts, also indicates what components to install
if [ -z "$1" ] || [ "$1" == "-h" ] || [ "$1" == "--help" ]
then
echo "Usage: <setEngine.sh> <-i (Install)>"
exit 0
fi
if [ "$1" == "-i" ]
then
cd $HOME
sudo mkdir NetIDE
cd N... | pablomuri/Engine | utils/scripts/setEngine.sh | Shell | epl-1.0 | 949 |
#! /bin/bash
#set -x
. /export/home/mo/moar/scripts/set_parametros_comunes.sh
LOG=$DIR_APP/logs/respuestaMovimientoCuenta.log
export LANG=en_US.ISO-8859-1
$JAVA_HOME/java -Xms6M -Xmx48M -Djava.awt.headless=true -Duser.timezone=$TZ -Dlog4j.configuration=log4j-respuestaMovimientoCuenta.xml -Dftp.presea.activo=True -D... | eldie1984/Scripts | cmd/scripts/respuestaMovimientoCuenta.sh | Shell | gpl-2.0 | 447 |
FACTORYBASE=/home/robert/projects/thermofisher/factory-proservices/build_armv7l-timesys-linux-gnueabi
export PATH=${FACTORYBASE}/toolchain/ccache:${FACTORYBASE}/toolchain/bin:$PATH
| ptdropper/ubuntu_scripts | thermo.sh | Shell | gpl-2.0 | 181 |
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 <git repo>"
exit 1
fi
BASE_DIR="$HOME/cron/svn-mirror-git"
LWISO_HOME="${BASE_DIR}/git/$1"
PATCHDIR="${PWD}/patches"
if [ ! -d "${LWISO_HOME}" ]; then
echo "${LWISO_HOME} is not a directory! Exiting..."
exit 1
fi
echo "Using BASE_DIR = ${BASE_DIR}"
f... | Coffeedude/slag | scripts/gitsync/patch-main-repo.sh | Shell | gpl-2.0 | 597 |
#! /bin/bash
# source helper functions
. ../helperfunctions.sh
# source configuration
. ../OPTIONS.conf
# configuration of /etc/ldap.conf is normalli done by:
# dpkg-reconfigure ldap-auth-config when you install the package ldap-auth-client.deb
# because we skiped the standard configuration we copy our /etc/ldap.c... | edvapp/networkbox | ldap-client/change-etc_ldap.conf.sh | Shell | gpl-2.0 | 9,899 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.