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 |
|---|---|---|---|---|---|
#!/usr/bin/env bash
echo 'running...' > ./qsub.out
procPerNode=1
wc -l pops.tsv
while read line; do
IFS=$'\t';set -- $line;pop1=$1;pop2=$2 ;echo $pop1 $pop2
for i in {1..22};do
qsub -l nodes=1:ppn=$procPerNode -N $pop1.$pop2.$i -v chr=$i,pop1=$pop1,pop2=$pop2 ./qsub.sh
done
done < pops.tsv | airanmehr/bio | Scripts/Bash/VCF/Fst/Fst.sh | Shell | mit | 311 |
#! /bin/bash
#sed -i '/protocolversion/d' $1
#sed -i '/protocoltool/d' $1
valkyrie --view-log $1
| nithinn/json-schema-validator | test/ut/valkyrie.sh | Shell | mit | 99 |
source "$DATADIR/modules/utils.sh"
AIDV_CHIPS=3
AIDV_CHAN_PER_CHIP=4
AIDV_CHANNEL_NUM=$((AIDV_CHIPS * AIDV_CHAN_PER_CHIP))
ADS_ADDR=72
local AIDV_JSON="/var/lib/wb-mqtt-adc/conf.d/wbio-ai-dv-12.conf"
dec_to_hex() {
printf '%x\n' $1
}
schedule_service_restart() {
hook_once_after_config_change "service_restart_dele... | contactless/wb-hwconf-manager | modules/wbio-ai-dv-12.sh | Shell | mit | 3,210 |
[[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found
| nuimk/nmk | zsh/src/zshrc/90-command-not-found.zsh | Shell | mit | 73 |
nohup jekyll server &
| comganet/comganet.github.com | start.sh | Shell | mit | 23 |
#!/bin/sh
startdir="$(cd `dirname $0`; pwd)"
( cd ${startdir}/local_modules/phi-nomenal-contracts && yarn install )
( cd ${startdir}/local_modules/phi-nomenal-contracts && yarn run testrpc & )
( cd ${startdir}/local_modules/phi-nomenal-webapp && yarn install )
yarn install
# Make sure testrpc is fully up and runnin... | phi-nomenal/phi-nomenal | .travis-runner.sh | Shell | mit | 363 |
sudo apt install texlive-full dvipng -y
| brendan-R/dotfiles | os/install_latex_etc.sh | Shell | mit | 40 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=so
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/duckhunt
OUTPUT_... | KardaChalak/aiHw1 | duckhunt/duckhunt/nbproject/Package-Debug.bash | Shell | mit | 1,445 |
#!/bin/bash
# Display listening TCP ports
# Commands: sudo, lsof, gawk, sort
# Source: https://blog.sleeplessbeastie.eu/2017/05/29/how-to-display-network-connections-using-lsof-and-gnu-awk/
sudo lsof -iTCP -sTCP:LISTEN -P -n | \
sed 1d | \
gawk '{
if (substr($9,1,1) != "[") {
split($9,lo... | milosz/shell-octo-adventure | scripts/lsof_net_tcpl.sh | Shell | mit | 723 |
#
# Pacman aliases
#
# ${zpacman_frontend} is provided by either .zimrc or (if not set) init.zsh
# The zpacman_frontend is _only_ used for package installs.
#
# Setup
#
# ensure pacman is available
if (( ! ${+commands[pacman]} )); then
return 1
fi
local zpacman_frontend_priv helper
if (( ! ${+zpacman_frontend} )... | zhentan/dotfiles | .zim/modules/pacman/init.zsh | Shell | mit | 2,825 |
# https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes
## Shorthand for docker commands
alias d='docker'
alias dm='docker-compose'
alias dmp='dm ps'
alias dr='docker run -ti $1 $2'
## Easy logging
## dlog service-gateway-api
alias dlog='docker logs --tail 200 $1 -f'
## ... | austinrivas/dotfiles | source/50_docker.sh | Shell | mit | 883 |
#! /bin/bash
lex c.l
yacc -dv c.y
cc lex.yy.c y.tab.c -ll
./a.out < test.c | i5ting/myc | yacc/make.sh | Shell | mit | 75 |
#!/bin/bash
# for file in *.mov; do change_file_extension_to_mp4 "$file"; done
# for file in *
for file in *.*
ffmpeg_convert_to_mp4 -5 -p 1 $file
sleep 30
done
| tom-weatherhead/bash-scripts | f5b.sh | Shell | mit | 165 |
#!/bin/bash
isExistApp=`pgrep cp-badges-service`
if [[ -n $isExistApp ]]; then
service cp-badges-service stop
fi
| bmatthews68/cp-badges-service | deploy/stop-server.sh | Shell | mit | 115 |
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2013:1260
#
# Security announcement date: 2013-09-23 17:34:22 UTC
# Script generation date: 2016-05-12 18:11:35 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - rhev-hypervisor6.noarch:6.4-20130912.1.... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2013/RHSA-2013:1260.sh | Shell | mit | 641 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2667-1
#
# Security announcement date: 2013-05-12 00:00:00 UTC
# Script generation date: 2017-01-25 21:07:28 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - mysql-5.5:5.5.31+dfsg-0+wheezy1
#
#... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2013/DSA-2667-1.sh | Shell | mit | 789 |
#!/bin/bash
cd "${0%/*}"
JAVA_CMD=`which java` || "$JAVA_HOME/bin/java"
if [ ! -f "$JAVA_CMD" ]; then
echo "Cannot find java executable"
exit 1
fi
set_ld_library_path() {
if [ "$(uname -s)" = Linux ]; then
if [ "$(uname -i)" = x86_64 ]; then
NATIVE_LIB=native/linux_64
else
... | rideg/jtext | src/main/dist/jtext.sh | Shell | mit | 876 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2015:1189
#
# Security announcement date: 2015-06-26 12:05:54 UTC
# Script generation date: 2017-01-01 21:11:29 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - kmod-kvm.x86_64:83-273.el5.centos
# - ... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2015/CESA-2015:1189.sh | Shell | mit | 1,107 |
#!/bin/bash
# -*- coding: utf-8, tab-width: 2 -*-
SELFPATH="$(readlink -m "$0"/..)"
function main () {
cd "$SELFPATH" || return $?
local ARCH="$1"
[ -n "$ARCH" ] || return 2$(echo 'E: no arch name given!' >&2)
sed ../index.js -re '
/^\s*(\}|\]|\)|;)+$/d
/^\s*return \[$/d
/^\s*throw this\.fail2gues... | mk-pmb/node-usher-xdg | doc/arch-grep.sh | Shell | mit | 1,173 |
#!/usr/bin/env zsh
rga-fzf() {
RG_PREFIX="rga --files-with-matches"
local file
file="$(
FZF_DEFAULT_COMMAND="$RG_PREFIX '$1'" \
fzf --sort --preview="[[ ! -z {} ]] && rga --pretty --context 5 {q} {}" \
--phony -q "$1" \
--bind "change:reload:$RG_PREFIX {q}" \
--preview-window="70%:wrap"
)" &&
ech... | loganlinn/dotfiles | zsh/functions/rga-fzf.zsh | Shell | mit | 368 |
docker stop pdns
docker rm pdns
| nihildeb/happymoose-docker | pdns/stop.sh | Shell | mit | 32 |
curl -X POST -H "Content-Type: application/json" -d '{"name":"Deo"}' http://127.0.0.1:8080/todo -v
| scubao/todo | tools/add_item.sh | Shell | mit | 100 |
# builds test suite and runs it
~/.cabal/bin/cabal configure --enable-tests
~/.cabal/bin/cabal test --show-details=streaming $1
| ChanderG/scheme-compiler | test.sh | Shell | mit | 131 |
#! /bin/bash -xv
### superscript template to do the preprocessing
### $Id: do_Subaru_preprocess_2006-12-21_W-C-IC.sh,v 1.1 2010-02-04 19:55:00 anja Exp $
. progs.ini
REDDIR=`pwd`
export SUBARUDIR=/nfs/slac/g/ki/ki02/xoc/anja/SUBARU
run=2006-12-21
filter="W-C-IC"
FLAT=DOMEFLAT # SKYFLAT or DOMEFLAT
SKYBACK=... | deapplegate/wtgpipeline | non_essentials/preprocess_scripts/do_Subaru_preprocess_2006-12-21_W-C-IC.sh | Shell | mit | 12,017 |
xboard -fcp crafty \
-scp "polyglot -noini -log true -lf engine2.log -ed . -ec \"/home/mike/bin/mchess\" -pg \"Book=true\""
| MJoergen/mchess2 | tests/xb-crafty.sh | Shell | mit | 129 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2851-1
#
# Security announcement date: 2014-02-02 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:49 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - drupal6:6.30-1
#
# Last versions rec... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/i386/2014/DSA-2851-1.sh | Shell | mit | 589 |
#!/bin/bash -l
#SBATCH
#SBATCH --job-name=glm_16_nodes_20_calls_shared.sh
#SBATCH --time=03:00:00
#SBATCH --mail-type=begin,end
#SBATCH --mail-user=karoraw1@jhu.edu
#SBATCH --nodes=16
#SBATCH --partition=shared
module load netcdf/intel/4.3.3.1 glm
cd /home-3/karoraw1@jhu.edu/work/kaw/GLM_Wrapper/GLM_Executables/examp... | karoraw1/GLM_Wrapper | MARCCTEST/glm_16_nodes_20_calls_shared.sh | Shell | mit | 2,893 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2012:0051
#
# Security announcement date: 2012-01-24 20:53:03 UTC
# Script generation date: 2017-01-01 21:10:18 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - kmod-kvm.x86_64:83-239.el5.centos.1
# ... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2012/CESA-2012:0051.sh | Shell | mit | 1,137 |
#!/usr/bin/env sh
# determine if a shell command is available
function has() {
command -v "$1" &> /dev/null
return $?
}
# determine if homebrew is available
function has_homebrew() {
has brew
return $?
}
# determine if the system is running macOS
function is_macos() {
[[ "$(uname -s)" == "Darwin" ]]
retu... | cafedomingo/dotfiles | sh/functions/detection.sh | Shell | mit | 441 |
#!/usr/bin/env bash
gem build rails-perf-test.gemspec
gem install ./rails-perf-test-0.0.1.gem
| MakeSchool/Reddit-On-Rails-Performance-Solution | bin/build.sh | Shell | mit | 94 |
if ! type git &>/dev/null; then
return
fi
if ! type __git_ps1 &>/dev/null; then
. ~/.dotfiles/bashrc.d/git-prompt.sh
fi
hg_ps1() {
hg_ps1_string=$(hg prompt "{ on {branch}}{ at {bookmark}}{status}" 2>/dev/null)
if [ $? -eq 0 ]; then
echo "${hg_ps1_string}"
fi
}
if type __git_ps1 &>/dev/nu... | nocnokneo/dotfiles | bashrc.d/50git.sh | Shell | mit | 885 |
#!/usr/bin/env bash
# Expecting MESOS_SOURCE_DIR and MESOS_BUILD_DIR to be in environment.
env | grep MESOS_SOURCE_DIR >/dev/null
test $? != 0 && \
echo "Failed to find MESOS_SOURCE_DIR in environment" && \
exit 1
env | grep MESOS_BUILD_DIR >/dev/null
test $? != 0 && \
echo "Failed to find MESOS_BUILD_DIR in... | jmanero/mesos-service | mesos-0.20.0/src/tests/java_framework_test.sh | Shell | mit | 720 |
cat | sort
| Mehonoshin/hackerrank | shell/sort/sort_1.sh | Shell | mit | 11 |
#!/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"
XCASSET_FILES=()
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_reso... | qwang216/Strike | Pods/Target Support Files/Pods/Pods-resources.sh | Shell | mit | 4,838 |
#!/bin/sh
__reload_dotfiles() {
PATH="$(command -p getconf PATH):/usr/local/bin"
. ~/.zshrc
cd .
}
alias reload!='__reload_dotfiles'
| chiragraman/dotfiles | zsh/aliases.zsh | Shell | mit | 139 |
docker rm -f $(docker ps -a -q)
docker rmi $(docker images -a --filter=dangling=true -q)
| Zetaphor/docker-lamp | docker/docker-nuke.sh | Shell | mit | 89 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3283-1
#
# Security announcement date: 2015-06-09 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:26 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - cups:1.7.5-11+deb8u1
# - libcups2:1... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/i386/2015/DSA-3283-1.sh | Shell | mit | 3,137 |
#!/bin/bash
# backup a specific FTP folder into tar archive, remove old backups
# (c) 2016 Benjamin Meinhold, polarvogel.de
# login information, paths and parameters
FTPserver=
FTPpath=""
# excludes separated by comma
FTPexcludes=""
FTPuser=""
FTPpassword=""
PREFIX="prefix_"
TIMESTAMP=$(date "+%Y-%m-%d_%H-%M")
BACK... | polarvogel/FTPtoTAR.sh | FTPtoTAR.sh | Shell | mit | 916 |
#!/bin/bash
# request user details
userInfo=$(curl \
-s \
-H "Content-Type: application/json" \
-H "Authorization: Bearer AUTH_TOKEN" \
https://mixer.com/api/v1/users/current )
# jq . <<< $userInfo # use for inspection of data
channelId=$(jq .channel.id <<< $userInfo); # extract channel id
userId=$(jq .id <<< $userI... | WatchBeam/developers | src/tutorials/code/raw/chat/1.sh | Shell | mit | 369 |
#! /usr/bin/env bash
ROOT_DIR=`dirname $BASH_SOURCE`/..
kubectl delete -f ${ROOT_DIR}/config-maps/kube-lego.yaml
kubectl delete -f ${ROOT_DIR}/deployments/kube-lego.yaml
# kubectl delete -f ${ROOT_DIR}/services/kube-lego.yaml | ApolloCrawler/cluster-kubernetes | components/kube-lego/delete-lego.sh | Shell | mit | 227 |
#!/usr/bin/env bash
set -o errexit
set -o pipefail
fatal() {
printf "%s\n" "$@"
exit 1
}
# TODO: Note that mdata get tools are installed in /usr/sbin/
print_prompt() {
clear
echo "--------------------------------------------------------------------"
echo " SmartOS VM Guest Tools - Install (Linux)"
echo ... | joyent/sdc-vmtools | src/linux/install-tools.sh | Shell | mit | 3,629 |
#!/bin/bash
set -e
THIS_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "${THIS_SCRIPT_DIR}/.."
#
# Script for Continuous Integration
#
set -v
go build
go test markdownlog_test.go markdownlog.go
#
# ==> DONE - OK
# | bazscsa/steps-hipchat | markdownlog/_scripts/ci.sh | Shell | mit | 237 |
#!/usr/bin/env zsh
#
# bootstrap
#
# Get ready to develop something
#
declare DOTFILES_PATH="$HOME/dotfiles"
declare NEEDED_PACKAGES=(ruby git curl rsync)
function install_dotfiles(){
if [ -d "$DOTFILES_PATH" ]; then
. "$DOTFILES_PATH"/etc/helpers
message " + Dotfiles is Already exists. Let's go next step"... | sachin21/dotfiles | script/bootstrap.zsh | Shell | mit | 6,554 |
#!/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... | jlainog/Messages | Messages/Pods/Target Support Files/Pods-Messages/Pods-Messages-frameworks.sh | Shell | mit | 4,323 |
#!/usr/bin/env bash
# Print Travis environment variables and migration count.
echo "TRAVIS_EVENT_TYPE: ${TRAVIS_EVENT_TYPE}"
# Only act if this is build was fired from cron and we have container registry credentials
if [ -n "${cr_server+isset}" ] && [ -n "${cr_username+isset}" ] && [ -n "${cr_password+isset}" ]
then
... | WikipediaLibrary/TWLight | .travis/docker_mirror.sh | Shell | mit | 842 |
#!/bin/sh
GVF=$1
DEF_VER=v1.6.6-rc1.GIT
LF='
'
# First see if there is a version file (included in release tarballs),
# then try git-describe, then default.
if test -f $2
then
VN=$(cat $2) || VN="$DEF_VER"
elif test -d $3/.git -o -f $3/.git &&
VN=$(git --git-dir=$3/.git describe --abbrev=4 HEAD 2>/dev/null) &&
#V... | aholler/crazyflie-client-cpp | git-version-gen.sh | Shell | mit | 842 |
#! /bin/bash
#
# Author: Bert Van Vreckem <bert.vanvreckem@gmail.com>
#
# Install role dependencies
#
# ansible/roles contains all roles used by nodes managed in this
# project. Generic roles from Ansible Galaxy are stored in a directory
# with name "user.rolename". These directories are ignored by
# .gitignore and sh... | bertvv/lampstack | scripts/role-deps.sh | Shell | mit | 833 |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-DAE_MLP_5_lin_real_DAE_tanh
#SBATCH -e Deep-DAE_MLP_5_lin_real_DAE_tanh.err.txt
#SBATCH -o Deep-DAE_MLP_5_lin_real_DAE_tanh.out.txt
source /etc/profile.modules
module load gcc
module load matlab
c... | aciditeam/matlab-ts | jobs/deepJobs_DAE_MLP_5_lin_real_DAE_tanh.sh | Shell | mit | 615 |
g++ -std=c++11 main.cpp -o tmd -lsfml-graphics -lsfml-window -lsfml-system
| seanballais/tiled-map-demo | build.sh | Shell | mit | 75 |
#!/bin/bash
# Connect together all the docker containers
# docker run -i -t -d -p 2204:22 -p 9004:9001 -p 8012:8009 \
# -v /vagrant/docker/wildfly/opt/wildfly:/wildfly -e=WILDFLY_BASE_DIR="/wildfly/standalone",WILDFLY_CONFIG_DIR="/wildfly/standalone/configuration" wildfly /bin/bash
# docker run -i -t -d -p 2204:22 -p... | vormund/web-stack | docker/wildfly/run.sh | Shell | mit | 784 |
#!/usr/bin/env bash
clear;
echo "$0" | sed 's/\.\///g' | awk '{print toupper($0)}'
echo "Bash version ${BASH_VERSION}..."
./script.sh "../fiddle-0035-Kdiff3/sencha_ver5.sh" "../fiddle-0035-Kdiff3/sencha_ver6.sh"
| bradyhouse/house | fiddles/bash/fiddle-0035-Kdiff3/test.sh | Shell | mit | 219 |
#!/bin/sh
# get logfile ready for httpdb to read as soon as possible
logfile="/tmp/upload/fw_log.txt"
echo "" > $logfile
alias echo_date='echo $(date +%Y年%m月%d日\ %X)'
export KSROOT=/koolshare
source $KSROOT/scripts/base.sh
eval `dbus export fwupdate_`
fwserver="http://firmware.koolshare.cn/LEDE_X64_fw867"
fwlocal=`ca... | koolshare/ledesoft | fwupdate/fwupdate/scripts/fwupdate_config.sh | Shell | mit | 3,134 |
#/bin/bash
java -cp mouserobot-2.0-jar-with-dependencies.jar org.ggoncalves.robot.main.MouseRobotMain
| ggoncalves/mouserobot | run-robot.sh | Shell | mit | 103 |
#!/bin/sh
cd /home/pi
mkdir confirmupdate11
| aftersight/After-Sight-Model-1 | updatecontrol/update11/update.sh | Shell | cc0-1.0 | 44 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/20201_delay.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=20201_delay.X.${IMAGE_TYPE}.${OUTPUT_... | tocache/picomones | UPC Microcontroladores 2020-1/Semana 02/20201_delay.X/nbproject/Package-default.bash | Shell | cc0-1.0 | 1,389 |
#!/bin/bash
/datomic-free-${DATOMIC_VERSION}/bin/transactor /datomic-free-${DATOMIC_VERSION}/transactor.properties 2>&1 > /dev/null &
java -jar /app/ladders.jar "$@"
| djljr/ladders | start.sh | Shell | epl-1.0 | 169 |
env VIRTUAL_ENV=$PWD/.ve PYTHON_BIN="/usr/bin/python3" ./fab.py -p$(pass show Projects/IdsHosting/idsapi/tacuma.ids.ac.uk |head -n1) -uroot -A $*
| oriel-hub/api | deploy/fab.sh | Shell | gpl-2.0 | 147 |
(/usr/bin/env python2.6 -x "$0" 2>&1 >/dev/null &);exit
# coding:utf-8
__version__ = '1.6'
GOAGENT_TITLE = "GoAgent OS X"
GOAGENT_ICON_DATA = """\
iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAADtklEQVR42r3UW0xbdRwH8PqiLz7Y
xTTEJwMSdVMX2nMprZBSeqFd6cQlBgPGxGVJSwschLpNjDMap9vUxIxgKbcNKgHWdcU55nSJOpEx
Wkav0DIvC0pgPiy6+... | sj20082663/sched | sched.command | Shell | gpl-2.0 | 8,389 |
#! /bin/sh
#
# $Id: dbmsReport.sh
#
if [ $1 ] ; then
MODULE=$1
else
MODULE="pm1"
fi
if [ $2 ] ; then
OUT_FILE=$2
else
OUT_FILE=${MODULE}_logReport.txt
fi
if [ $3 ] ; then
MCSSUPPORTDIR=$3
else
MCSSUPPORTDIR="/usr/share/columnstore"
fi
if [ $4 ] ; then
PW_PROMP... | mariadb-corporation/mariadb-columnstore-engine | oamapps/columnstoreSupport/dbmsReport.sh | Shell | gpl-2.0 | 1,604 |
#!/usr/bin/env bash
#
# Build and install the cctools the SDK and macports.
#
# This script requires the OS X SDK and the Clang/LLVM compiler.
#
VERSION=1.4
pushd "${0%/*}" &>/dev/null
source tools/tools.sh
if [ $SDK_VERSION ]; then
echo 'SDK VERSION set in environment variable:' $SDK_VERSION
else
guess_sdk_ver... | tpoechtrager/osxcross | build.sh | Shell | gpl-2.0 | 11,481 |
#!/bin/bash
# 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="zImage"
DTBIMAGE="dtb"
DEFCONFIG="ak_bacon_defconfig"
KERNEL_DIR=`pwd`
RESOURCE_DIR="$KERNEL_DIR/.."
ANYKERNEL_DIR="$RESOURCE_DIR/AK-OnePlu... | whodunnit/AK-OnePlusOne-CM | ak-bacon-build.sh | Shell | gpl-2.0 | 2,853 |
#!/bin/bash
/usr/bin/getent group evw-self-serve > /dev/null || /usr/sbin/groupadd evw-self-serve
/usr/bin/getent passwd evw-self-serve > /dev/null || /usr/sbin/useradd -r -g evw-self-serve -s /bin/bash -c 'evw-self-serve user' evw-self-serve
| UKHomeOffice/evw-self-serve | fpm/scripts/preinstall.sh | Shell | gpl-2.0 | 244 |
#!/bin/bash
#enable job control in script
set -m
pkill x11vnc
x11vnc --loop -scale 1920x1080 &
sleep 2
xinit /home/pooya/displaylink/xinitrc -- /usr/bin/X :2 -xf86config /home/pooya/displaylink/xorg.conf -novtswitch -sharevts -nocursor &
fg %1
kill %2 | pi0/displaylink-mirror | displaylink.sh | Shell | gpl-2.0 | 255 |
#!/sbin/busybox sh
# Optimize Databases script
# Original by dorimanx for ExTweaks
# Modified by UpInTheAir for SkyHigh kernels & Synapse
# Modified by tvm2487 for TeamSPR kernels & Synapse
BB=/sbin/busybox;
P=/res/synapse/TeamSPR/cron_sqlite;
SQLITE=$(cat $P);
if [ "$($BB mount | grep rootfs | cut -c 26-27 | grep -... | SM-G920P/TeamSPR_Kernel_OLD | build_kernel/G920P/ramdisk/res/crontab/cron-scripts/database_optimizing.sh | Shell | gpl-2.0 | 1,154 |
#! /bin/bash
python doif.py "action=test make" "action=fix make" pass1 pass2 fixable1 fixable2 broken1 broken2 | patrickmmartin/doif | test.sh | Shell | gpl-2.0 | 110 |
#!/bin/sh
#
# Copyright (c) 2006 Eric Wong
#
PERL='@@PERL@@'
OPTIONS_KEEPDASHDASH=
OPTIONS_SPEC="\
git-instaweb [options] (--start | --stop | --restart)
--
l,local only bind on 127.0.0.1
p,port= the port to bind to
d,httpd= the command to launch
b,browser= the browser to launch
m,module-path= t... | xlymian/git | git-instaweb.sh | Shell | gpl-2.0 | 6,207 |
#!/bin/sh
test_description='Test stg patches'
. ./test-lib.sh
test_expect_success 'Create some patches' '
echo "*.log" >> .git/info/exclude &&
stg init &&
mkdir -p dir0/dir1 &&
touch even.txt &&
touch dir0/dir1/odd.txt &&
git add even.txt dir0/dir1/odd.txt &&
git commit -m "Add even and o... | ctmarinas/stgit | t/t0006-patches.sh | Shell | gpl-2.0 | 2,452 |
#! /bin/sh
# Copyright (C) 2011-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/yacc-d-vpath.sh | Shell | gpl-2.0 | 2,260 |
#! /bin/bash
DIR=$(cd $(dirname $0); pwd)
SENSORD_DIR=$(cd $DIR/..; pwd)
. $SENSORD_DIR/../scripts/common.sh
NODE_PATH=$(which node)
if [ ! -f /lib/lsb/init-functions ]
then
die "This system is not a Linux Standard Base."
fi
cat - > /etc/init.d/sensord <<EOF_INIT_D
#! /bin/bash
### BEGIN INIT INFO
# Provides: s... | premisense/premisense | sensord/scripts/gen_init_d.sh | Shell | gpl-2.0 | 3,396 |
#!/bin/sh
export KERNELDIR=`readlink -f .`
export PARENT_DIR=`readlink -f ..`
export INITRAMFS_DEST=$KERNELDIR/kernel/usr/initramfs
export INITRAMFS_SOURCE=`readlink -f ..`/elite_kernel_jf/Ramdisks/AOSP_ATT
export CONFIG_AOSP_BUILD=y
export PACKAGEDIR=$KERNELDIR/Packages/AOSP
# enable ccache
export USE_CCACHE=1
#Enable... | Buckmarble/elite_kernel_jf | build-att.sh | Shell | gpl-2.0 | 2,821 |
# export AWS_ACCESS_KEY="Your-Access-Key"
# export AWS_SECRET_KEY="Your-Secret-Key"
today=`date +"%d-%m-%Y","%T"`
logfile="/awslog/automation-instances.log"
# Grab all Instance IDs for REBOOT action and export the IDs to a text file
sudo aws ec2 describe-instances --filters Name=tag:stop-time,Values=08-00 Name=tag:ba... | STARTSPACE/aws-ec2-start-stop-reboot-by-timetable | stop/ad/stop-ad-08.sh | Shell | gpl-2.0 | 775 |
#!/bin/sh
# stopwatch.sh - Calculate average execution time for a command
# Copyright (C) 2010 Andrea Bolognani <andrea.bolognani@roundhousecode.com>
#
# 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 Foun... | andreabolognani/pity | performance/stopwatch.sh | Shell | gpl-2.0 | 1,576 |
#! /bin/sh
# This file is (C) copyright 2011 Software Improvements, Pty Ltd
#
# 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 of the License, or
# (at your option) any later ve... | milthorpe/evacs | config/voting_client.sh | Shell | gpl-2.0 | 1,082 |
# -*- shell-script -*-
# step.sh - gdb-like "step" and "skip" debugger commands
#
# Copyright (C) 2008-2011, 2019 Rocky Bernstein <rocky@gnu.org>
#
# 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 Fo... | rocky/kshdb | command/step.sh | Shell | gpl-2.0 | 3,022 |
#!/bin/bash
source ./multilang.def
if [ ! -d "$MODDIR" -o ! -x "$MODDIR" ]
then
echo "$0 Error: $MODDIR No existe o no se puede acceder a él"
exit 1
fi
if [ ! -x "./generate_msg.sh" -o ! -x "./validate_xml.sh" ]
then
echo "$0 Error: No encontrado ./generate_msg.sh o ./validate_xml.sh"
exit 1
fi
#####
# $1 :... | gestiweb/eneboo | src/translations/multilang/update_multilang.sh | Shell | gpl-2.0 | 1,474 |
#!/bin/bash
c99 Main.c -o decode -lm
code=$1
if [ $# -eq 0 ]
then
echo "No arguments, using test code 101111001110001111111101"
./decode 101111001110001111111101
else
./decode $code
fi
| Dalukar/Viterbi_decoder | decode/run.sh | Shell | gpl-2.0 | 190 |
#!/bin/sh
#
# PM-QA validation test suite for the power management on Linux
#
# Copyright (C) 2011, Linaro Limited.
#
# 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
# of the Li... | bigzz/pm-qa | cpuhotplug/cpuhotplug_05.sh | Shell | gpl-2.0 | 1,515 |
#!/bin/bash
dir=exp/tri6_nnet
train_stage=-10
. conf/common_vars.sh
. ./lang.conf
# This parameter will be used when the training dies at a certain point.
train_stage=-100
. ./utils/parse_options.sh
set -e
set -o pipefail
set -u
# Wait till the main run.sh gets to the stage where's it's
# finished aligning the tri... | michellemorales/OpenMM | kaldi/egs/babel/s5d/run-2a-nnet-gpu.sh | Shell | gpl-2.0 | 975 |
#!/bin/bash
# Example for running
docker run -e HOME=/root -t -i imiell/sd_sthttpd /bin/bash
| ianmiell/shutit-distro | sthttpd/bin/run.sh | Shell | gpl-2.0 | 93 |
#!/bin/bash
# links the files in this repository based on the dotfilelist.txt file
# current directory of script
scriptdir="$(readlink -f "$(dirname "${0}")")"
dotfilelist="${scriptdir}/dotfilelist.txt"
repoprefix="conf"
if [ ! -e "${dotfilelist}" ]
then
echo "ERROR: No dotfilelist.txt at ${dotfilelist}, exiting"
... | brainwater/conf | linkfiles.bash | Shell | gpl-2.0 | 1,073 |
clear
echo ""
echo "Installing Cyanogenmod 13 without Gapps"
echo ""
sleep 1
echo "Please boot your MX4 into bootloader/fastboot mode by pressing Power & Volume Down (-)"
echo ""
sleep 1
echo -n "Is your MX4 in bootloader/fastboot mode now? [Y] "; read bootloadermode
if [ "$bootloadermode"==Y -o "$bootloadermode"==y -o... | MariusQuabeck/magic-device-tool | devices/mx4/android/cyanogenmodwogapps.sh | Shell | gpl-3.0 | 3,400 |
#!/bin/bash
for page in content/post/*.md ; do
#page="content/post/2016-01-20-how-we-speed-up-news-feed-and-user-wall-display-using-elasticsearch.md"
# Generate thumbnail if defined but not present
if [ $(grep -c "^thumbnailImage: " $page) == 1 ] ; then
thumbnail_path="static$(gawk '/^thumbnailImage: /{print $2}' ... | deimosfr/blog | scripts/generate_thumbnails.sh | Shell | gpl-3.0 | 1,140 |
#!/bin/sh
# asynchia - asynchronous networking library
# Copyright (C) 2010 Florian Mayer <florian.mayer@bitsrc.org>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of ... | segfaulthunter/asynchia | runtests.sh | Shell | gpl-3.0 | 1,803 |
#!/bin/sh
echo "#!/bin/sh
cd linux-3.18-rc6/
make -s -j \$NUM_CPU_JOBS 2>&1
echo \$? > ~/test-exit-status" > time-compile-kernel
chmod +x time-compile-kernel
| phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/pts/build-linux-kernel-1.5.3/install.sh | Shell | gpl-3.0 | 161 |
#!/bin/bash
i=1
while test $i -le 100
do
if test `expr $i % 4` -eq 0
then
echo $i
fi
i=`expr $i + 1` #i和=号之间不能加空格啊
done
#输出1-100内能被4整除的数 | whkobe/wanghao- | sh/while.bash | Shell | gpl-3.0 | 189 |
#!/bin/bash
##DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
##cd $DIR
cd "$( dirname "${BASH_SOURCE[0]}" )"
java -classpath babelnet-api-2.0.jar:lib/*:config it.uniroma1.lcl.babelnet.PrintTranslations "$@"
| iucl/l2-writing-assistant | babelnet-api-2.0/run-print-translations.sh | Shell | gpl-3.0 | 219 |
#!/bin/bash
#
# This script assumes a linux environment
echo "*** uBlock0.chromium: Creating web store package"
echo "*** uBlock0.chromium: Copying files"
DES=dist/build/uBlock0.chromium
rm -rf $DES
mkdir -p $DES
cp -R assets $DES/
./tools/fix-3p-assets.sh $DES
rm $DES/assets/*.sh
cp -R src/css $DES/
cp -R src/img $... | HLFH/uBlock | tools/make-chromium.sh | Shell | gpl-3.0 | 821 |
#!/bin/bash
# SPDX-FileCopyrightText: 2021 The Manyverse Authors
#
# SPDX-License-Identifier: CC0-1.0
set -eEu -o pipefail
shopt -s extdebug
IFS=$'\n\t'
trap 'onFailure $?' ERR
function onFailure() {
echo "Unhandled script error $1 at ${BASH_SOURCE[0]}:${BASH_LINENO[0]}" >&2
exit 1
}
mkdir -p ./nodejs-assets/no... | staltz/mmmmm-mobile | tools/backend/move-to-nodejs-assets.sh | Shell | gpl-3.0 | 1,210 |
#!/bin/bash
gnuplot temp/TermodinamicalStat_L=3D_4_PP=2/*.plot
gnuplot temp/DensityStat_L=3D_4_PP=2/*.plot
| nlare/Landau-Wang-omp | plot_graph_L=3D_4_PP=2.sh | Shell | gpl-3.0 | 107 |
#! /usr/bin/env bash
################################################################################
# test_helper.bash -
# Time-stamp: <Wed 2017-10-04 14:22:30 hcartiaux>
#
# Copyright (c) 2016 Sebastien Varrette <Sebastien.Varrette@uni.lu>
#
###########################################################################... | ULHPC/dotfiles | tests/test_helper.bash | Shell | gpl-3.0 | 2,413 |
#! /bin/sh
# adapated from: http://blog.stablekernel.com/continuous-integration-for-unity-5-using-travisci
BASE_URL=http://netstorage.unity3d.com/unity
HASH=d3101c3b8468
VERSION=5.6.3f1
download() {
file=$1
url="$BASE_URL/$HASH/$package"
echo "Downloading from $url: "
curl -o `basename "$package"` "$... | bjubes/ProjectPorcupine | Scripts/Install/unity.sh | Shell | gpl-3.0 | 1,234 |
#!/bin/bash
python RunBootstrap.py --paralog1 YLR333C --paralog2 YGR027C --bootnum 34 > YLR333C_YGR027C_Boot34_PrintScreen.txt
| xjw1001001/IGCexpansion | Bootstrap/ShFiles/MG94_YLR333C_YGR027C_Boot34.sh | Shell | gpl-3.0 | 128 |
#!/bin/bash
red='\033[0;31m'
green='\033[0;32m'
nocolor='\033[0m'
echo "Running all tests wrapped in valgrind..."
echo ""
valgrind --leak-check=full --track-origins=yes --log-file=.valgrind bin/rambrain-tests
noleak=$(grep -c "All heap blocks were freed -- no leaks are possible" .valgrind)
if [ $noleak -eq 1 ]
then... | mimgrund/rambrain | scripts/run-tests.sh | Shell | gpl-3.0 | 525 |
#!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ $BUILD_TYPE == android ]; then
ANDROID_NDK=$ANDROID_NDK $DIR/cmake-android.sh -j4
elif [ $BUILD_TYPE == native ]; then
$DIR/cmake-make.sh -j4
elif [ $BUILD_TYPE == emscripten ]; then
echo $EMSCRIPTEN
EMSCRIPTEN=$EMSCRIPTEN $DIR/c... | tazdij/odingine | scripts/travis-build.sh | Shell | gpl-3.0 | 346 |
[ "$INCLUDED_PREREQS" == "$RUNTOKEN" ] && return
INCLUDED_PREREQS="$RUNTOKEN"
INCLUDE "functions"
DEBUG "Loading ${BASH_SOURCE[0]}"
PREREQS=" ";
CHECKED_PREREQS=" "
PREREQ_REGISTER() {
while [[ -n $1 ]]
do
DEBUG "Registering Prerequisite $1"
STR_CONTAINS "$1" "$PREREQS" || PREREQS=" $1 $PREREQS"
STR_CON... | jwalzer/bashlib | lib/prereqs.bash | Shell | gpl-3.0 | 627 |
#!/usr/bin/env bash
#
# Dropbox Uploader
#
# Copyright (C) 2010-2014 Andrea Fabrizi <andrea.fabrizi@gmail.com>
#
# 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 of the License, ... | a-c-t-i-n-i-u-m/Dropbox-Uploader | dropbox_uploader.sh | Shell | gpl-3.0 | 38,557 |
#############################################################################
# Executing migration for layers tables
#############################################################################
echo "\nCreate view for bbox in legacy database"; do_dash
sudo -u $USER PGPASSWORD=$DB_PW \
psql -v ON_ERROR_STOP=1 -U $DB_... | cga-harvard/worldmap | worldmap-migration/scripts/layers.sh | Shell | gpl-3.0 | 13,705 |
#postgis parameters
dbname=stifdb
dbhost=localhost
dbuser=postgres
dbpwd=newpassword
export PGPASSWORD=$dbpwd
#html result directory
html_dir='/media/Downloads/osm/sidjy.github.io/gtfs'
#gtfs download url and working directory
gtfs_url='https://opendata.stif.info/explore/dataset/offre-horaires-tc-gtfs-idf/files/f24cf... | sidjy/gtfs2osm | config.sh | Shell | gpl-3.0 | 571 |
#!/bin/bash
######################################################################
#By Tummy a.k.a Vincent C. Passaro #
#Vincent[.]Passaro[@]gmail[.]com #
#www.vincentpassaro.com #
######################################################################
#___________________________... | jason-callaway/stig-fix | cat3/gen002715.sh | Shell | gpl-3.0 | 2,033 |
#!/bin/bash
set -ex
username=$1
userfolder=/home/$username
### Install dependencies
yes | pacman -Syu
yes | pacman -S python2
# Enable wheel
sed -i '/^# %wheel ALL=(ALL) NOPASSWD: ALL/s/^#//' /etc/sudoers
# Create an user
useradd -m -d $userfolder $username
usermod -a -G wheel $username
install -d -m 700 $userfold... | LSS-USP/web_server_benchmark | vagrant/arch.sh | Shell | gpl-3.0 | 639 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.