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
# Test in an ISO-8859-1 or ISO-8859-15 locale.
: ${LOCALE_FR=fr_FR}
if test $LOCALE_FR = none; then
if test -f /usr/bin/localedef; then
echo "Skipping test: no traditional french locale is installed"
else
echo "Skipping test: no traditional french locale is supported"
fi
exit 77
fi
LC_ALL=$L... | Distrotech/coreutils | gnulib/tests/test-mbmemcasecoll1.sh | Shell | gpl-3.0 | 363 |
#!/usr/bin/env bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | fabric8io/gofabric8 | vendor/k8s.io/kubernetes/cluster/get-kube-binaries.sh | Shell | apache-2.0 | 6,603 |
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-sparc"
TEXT_START_ADDR=0x10000
MAXPAGESIZE=0x10000
COMMONPAGESIZE=0x2000
NONPAGED_TEXT_START_ADDR=0x10000
ALIGNMENT=8
ARCH=sparc
MACHINE=
TEMPLATE_NAME=elf32
DATA_PLT=
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
NO_SMALL_DATA=yes
| shaotuanchen/sunflower_exp | tools/source/binutils-2.16.1/ld/emulparams/elf32_sparc.sh | Shell | bsd-3-clause | 273 |
#!/bin/sh -x
set -e
cd /tmp
yum -y install make gcc libyaml ruby ruby-libs ruby-rdoc ruby-irb ruby-devel patch
curl -O http://production.cf.rubygems.org/rubygems/rubygems-1.8.25.tgz
tar zxf rubygems-1.8.25.tgz
cd rubygems-1.8.25
ruby setup.rb --no-format-executable
gem install chef --no-ri --no-rdoc
| oppai/isucon3 | final/chef/setup-chef.sh | Shell | mit | 302 |
#!/bin/sh
# (c) Copyright 2009 - 2010 Xilinx, Inc. All rights reserved.
#
# This file contains confidential and proprietary information
# of Xilinx, Inc. and is protected under U.S. and
# international copyright and other intellectual property
# laws.
#
# DISCLAIMER
# This disclaimer is not a license and does not gra... | wgml/sysrek | skin_color_segm/ipcore_dir/LUT/implement/planAhead_ise.sh | Shell | gpl-2.0 | 2,520 |
#!/bin/sh -e
pre() {
for file in `find doc-build -name '*.md' -type f -print`; do
# Remove lines starting with '%' from manpages
if echo "$file" | grep -q -e '\.1\.md$'; then
cat $file | perl -n -e '!/^%/ && print;' > ${file}.tmp
mv -f ${file}.tmp $file
fi
# Process include statements
... | paddg/pdns | docs/process-md.sh | Shell | gpl-2.0 | 1,082 |
#!/bin/bash
# get config settings
CONFIG="$HOME/.omgsm/config";
GSMSESSION=`cat "$CONFIG" | grep '^GSMSESSION' | cut -d '=' -f 2`;
GSMPATH=`cat "$CONFIG" | grep '^GSMPATH' | cut -d '=' -f 2`;
lock="$GSMSESSION"/scan.lock
if [ -f "$lock" ]; then
echo "Another scan running? ($lock)"
exit 1
fi
touch "$lock"
# pi... | alberto-fc/typhon-vx | bin/gsm_rescan_bts.sh | Shell | gpl-3.0 | 833 |
#!/sbin/sh
# $Id: smf-vboxwebsrv.sh $
# Copyright (C) 2008-2012 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
# General Public License (GP... | eaas-framework/virtualbox | src/VBox/Installer/solaris/smf-vboxwebsrv.sh | Shell | gpl-2.0 | 6,157 |
#!/bin/sh
# Test for bugs in du's --one-file-system (-x) option.
# Copyright (C) 2006-2016 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 th... | yuxuanchen1997/coreutils | tests/du/one-file-system.sh | Shell | gpl-3.0 | 1,758 |
#!/bin/bash
InitDir=$PWD
#=============Detect directory that contains script=====================
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
CurDir="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && ... | Wohlstand/PGE-Project | _common/deploy/_old_files/deploy_windows_cross.sh | Shell | gpl-3.0 | 4,927 |
#!/bin/sh
DEST_FILE="sources.cmake"
echo "# Generated by $0. Do not edit this file manually." > $DEST_FILE
echo "set(STK_SOURCES" >> $DEST_FILE
find src \
-path 'src/bullet' -prune -o \
-path 'src/ide' -prune -o \
-path 'src/wiiuse' -prune -o \
-regex ".*\.cpp" -print | sort >> $DEST_FILE
echo ")" >> $DEST_FILE
e... | kiennguyen1994/game-programming-cse-hcmut-2012 | update_file_list.sh | Shell | gpl-3.0 | 529 |
# vim: set ts=4 sw=4 et:
#
setup_pkg_depends() {
local pkg="$1" j _pkgdepname _pkgdep _rpkgname _depname _depver _replacement
if [ -n "$pkg" ]; then
# subpkg
if declare -f ${pkg}_package >/dev/null; then
${pkg}_package
fi
fi
for j in ${depends}; do
_rpkgname... | uriah0/void-packages | common/xbps-src/shutils/build_dependencies.sh | Shell | bsd-2-clause | 12,897 |
#!/bin/sh
# Set here your own NDK path if needed
# export PATH=$PATH:~/src/endless_space/android-ndk-r4
IFS='
'
NDK=`which ndk-build`
NDK=`dirname $NDK`
GCCVER=4.4.0
PLATFORMVER=android-8
LOCAL_PATH=`dirname $0`
LOCAL_PATH=`cd $LOCAL_PATH && pwd`
# Hacks for broken configure scripts
rm -rf $LOCAL_PATH/../../obj/loc... | droozynuu/doom-android | project/jni/application/launchConfigure.sh | Shell | lgpl-2.1 | 3,082 |
#!/bin/sh
##
## Copyright (c) 2014 The WebM project authors. All Rights Reserved.
##
## Use of this source code is governed by a BSD-style license
## that can be found in the LICENSE file in the root of the source
## tree. An additional intellectual property rights grant can be found
## in the file PATENTS. All c... | youtube/cobalt | third_party/libvpx/test/vp8_multi_resolution_encoder.sh | Shell | bsd-3-clause | 2,899 |
# Copyright 2015 The Bazel 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 required by applicable la... | zhangzhonglai/heron | scripts/packages/client_template_bin.sh | Shell | apache-2.0 | 3,257 |
#!/bin/sh -e
REFSPEC=$1
DIST=$2
if [ -z "$REFSPEC" -o -z "$DIST" ]; then
echo "Usage: $0 <refspec> <dist>"
echo "Example: $0 tags/0.7 natty"
exit 1
fi
PPA=ppa:me-davidsansome/clementine
REPO=https://code.google.com/p/clementine-player/
BASE=`pwd`
DIRECTORY=clementine
# Cleanup any old stuff
rm -rfv $BASE/$DI... | admiral0/clementine | dist/uploadtoppa.sh | Shell | gpl-3.0 | 943 |
#!/bin/sh
set -e
#
# This script is not called by the CI system! It is supposed to be used for
# package creation debugging and as a blue print for CI configuration.
#
usage() {
echo "Sample script that builds cvmfs debian packages from source"
echo "Usage: $0 <work dir> <source tree root>"
exit 1
}
if [ $# -... | cvmfs-testing/cvmfs | packaging/debian/cvmfs/do.sh | Shell | bsd-3-clause | 1,308 |
#!/bin/bash -e
# Matthew Bashton 2015
# Generic cluster job submission script
# Takes shell expanded wildcard input from command-line and submits a qsub job
# for each element of array passed to it by the shell i.e.
# "script.sh /dir/*.bam" will qsub the specified shell script in $1 with all
# other variables passed ... | MattBashton/MB-GATK-SGE | Manual/gzip_fastq/gsub.sh | Shell | artistic-2.0 | 641 |
# rethumbnail the images
cd img
images="gpk-*.png kpk-*.png pk-*.png assassin.png list*.png"
for image in $images; do
echo "thumbnailing $image"
convert -geometry 300x170 $image thumbnails/$image
done
cd -
| Distrotech/packagekit | docs/html/thumbnail.sh | Shell | gpl-2.0 | 209 |
# build the zip file for uploading to AWS
mkdir Particle_Windows_Serial_Drivers
cp *.cat Particle_Windows_Serial_Drivers
cp *.inf Particle_Windows_Serial_Drivers
cp readme.md Particle_Windows_Serial_Drivers/README.txt
zip Spark.zip Particle_Windows_Serial_Drivers/*
rm -rf Particle_Windows_Serial_Drivers
| glibersat/firmware | platform/spark/firmware/misc/driver/windows/buildzip.sh | Shell | agpl-3.0 | 306 |
#!/bin/bash
# Copyright 2015 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... | rhuss/gofabric8 | vendor/k8s.io/kubernetes/hack/update-swagger-spec.sh | Shell | apache-2.0 | 999 |
#!/bin/sh -e
# Make certain that the script is not running in an internationalized
# environment.
LANG=C ; export LANG
LC_ALL=C ; export LC_ALL
if test $# -ne 3
then
echo "Usage: $0 <h|inc> <observer.texi> <observer.out>" 1>&2
exit 0
fi
lang=$1 ; shift
texi=$1 ; shift
o=$1
case $lang in
h) tmp=htmp ;;
in... | dov/gdb | gdb/observer.sh | Shell | gpl-2.0 | 4,500 |
#!/usr/bin/fish
for i in *.stats_out
set BASENAME (basename -s .stats_out $i)
set STATS (grep out-delta $i | awk '{print $14}' | tail -n +15 | Rscript -e 'd<-scan("stdin", quiet=TRUE); cat(min(d), mean(d), max(d), sd(d), sep=" ")')
set LATENCY_STATS (grep out-delta $i | awk '{print $17}' | tail -n +15 | Rs... | ruedigergad/dsbdp | benchmarks/results/tmp/2016-05-22/extract_out_stats.sh | Shell | epl-1.0 | 852 |
#!/bin/bash
# Execution Parameters
MVN="${MVN:-mvn}"
KEYCLOAK_PROJECT_HOME=${KEYCLOAK_PROJECT_HOME:-$(cd "$(dirname "$0")/../.."; pwd)}
DRY_RUN=${DRY_RUN:-false}
# Performance Testsuite Parameters
DATASET=${DATASET:-1r_10c_100u}
WARMUP_PERIOD=${WARMUP_PERIOD:-120}
RAMPUP_PERIOD=${RAMPUP_PERIOD:-60}
MEASUREMENT_PERIOD... | abstractj/keycloak | testsuite/performance/stress-test.sh | Shell | apache-2.0 | 6,443 |
#!/usr/bin/env bash
#
# Copyright (c) 2017-2020 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Check for new lines in diff that introduce trailing whitespace.
# We can't run this check unless we kn... | Sjors/bitcoin | test/lint/lint-whitespace.sh | Shell | mit | 3,368 |
#!/bin/sh
# Copyright (C) 2007 OpenWrt.org
# This setup gives us 4.5 distinguishable states:
#
# Solid OFF: Bootloader running, or kernel hung (timer task stalled)
# Solid ON: Kernel hung (timer task stalled)
# 5Hz blink: preinit
# 10Hz blink: failsafe
# Heartbeat: normal operation
set_state() {
case "$1... | TheSkorm/openwrt-metarouter-cjdns | target/linux/ar7/base-files/etc/diag.sh | Shell | gpl-2.0 | 1,250 |
#!/bin/sh
#
# Downloads sequence for the mm10 version of M. musculus (mouse) from
# UCSC.
#
# Note that UCSC's mm10 build has two categories of compressed fasta
# files:
#
# 1. The base files, named chr??.fa.gz
# 2. The unplaced-sequence files, named chr??_random.fa.gz
#
# By default, this script indexes all these fil... | benranco/SNPpipeline | tools/bowtie2-2.2.9/scripts/make_mm10.sh | Shell | mit | 2,596 |
#!/usr/bin/env bash
usage()
{
echo "Usage: $0 [BuildArch]"
echo "BuildArch can be: arm, arm64"
exit 1
}
__CrossDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
__InitialDir=$PWD
__BuildArch=arm
__UbuntuArch=armhf
__UbuntuRepo="http://ports.ubuntu.com/"
__UbuntuPackages="build-essential lldb-3.6-dev ... | bitcrazed/coreclr | cross/build-rootfs.sh | Shell | mit | 1,696 |
#!/bin/bash
#Date - 06102017
#Developer - Sysgain
DATE=`date +%Y%m%d%T`
LOG=/tmp/jenkins_deploy.log.$DATE
srcdir="/usr/share/jenkins"
jenkinsdir="/var/lib/jenkins"
user="admin"
passwd=`cat /var/lib/jenkins/secrets/initialAdminPassword`
url="localhost:8080"
echo "$2,$3,$4,${15}" >> $srcdir/mongodbvhdurl.secrets
# Conf... | lizzha/azure-quickstart-templates | devopstools-jenkins-chefhabitat-terraform/scripts/jenkins_deploy.sh | Shell | mit | 6,813 |
#!/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... | zhengguoyong/kubernetes | hack/after-build/verify-description.sh | Shell | apache-2.0 | 2,166 |
#!/usr/bin/env bash
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | npuichigo/ttsflow | third_party/tensorflow/tensorflow/contrib/makefile/build_all_ios.sh | Shell | apache-2.0 | 1,861 |
#!/usr/bin/env bash
set -e
./make-json.js --year 2020-2022
#./make-candidate-table.js --year 2022
echo 'Copying files from src to dist'
mkdir -p dist
rm dist/*
cp -u src/*.{js,json,html} dist/
echo 'Compiling and minifying JS'
npx babel src/dc-campaign-finance.js | \
npx browserify - | \
npx terser -c -m --top... | kcivey/dc-ocf | build.sh | Shell | isc | 385 |
#!/bin/bash
#
# Copyright © 2012-2014 Sergio Arroutbi Braojos <sarroutbi@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software
# for any purpose with or without fee is hereby granted, provided that
# the above copyright notice and this permission notice appear in all copies.
#
# THE SOFTWA... | sarroutbi/buscobici | getscripts/mundoebikes_get2.sh | Shell | isc | 4,349 |
#!/bin/sh
set -e
# ensure we can use unicode filenames in the test
export LC_ALL=en_US.UTF-8
THISDIR=`dirname $0`
export PYTHONPATH=${THISDIR}/..
python2.6 ${THISDIR}/test.py
python2.7 ${THISDIR}/test.py
python3 ${THISDIR}/test.py
| rasata/python-magic | test/run.sh | Shell | mit | 234 |
#!/bin/sh
# Specify Device
export DEVICE=wlan0
# Specify SSID and Channel
export SSID1=NETGEAR
#export SSID2=NOTGEAR
#export SSID3=LANGEAR
export CHANNEL1=6
#export CHANNEL2=6
#export CHANNEL3=6
#Specify CDD Address
export CDDIP=8.8.8.8
modprobe snd-soc-igep0020
modprobe snd-soc-omap
modprobe snd-soc-omap-mcbsp
m... | james-johns/XNOR-ESD | rpu/scripts/init_device.sh | Shell | mit | 2,154 |
imageName="webapiapplication"
projectName="webapiapplication"
serviceName="webapiapplication"
containerName="${projectName}_${serviceName}_1"
publicPort=80
url="http://localhost:$publicPort"
runtimeID="debian.8-x64"
framework="netcoreapp1.0"
# Kills all running containers of an image and then removes them.
cleanAll ()... | skielo/ASPNETCoreWebAPIAngular2MongoDbProductsManager | WebAPIApplication/.docker/dockerTask.sh | Shell | mit | 4,288 |
#!/bin/bash
export LD_LIBRARY_PATH=/tools/lib/
export TCGAFMP_ROOT_DIR=/users/sreynold/to_be_checked_in/TCGAfmp
export PYTHONPATH=$TCGAFMP_ROOT_DIR/pyclass:$TCGAFMP_ROOT_DIR/util:$PYTHONPATH
## this script should be called with a current date string such as 14jan13 (ie ddmmmyy)
curDate=$1
if [ -z "$curDate" ]
th... | cancerregulome/gidget | commands/feature_matrix_construction/shscript/archive/fmp11_mergeNT.sh | Shell | mit | 1,214 |
#network interface on which to limit traffic
IF="eth0"
#limit of the network interface in question
LINKCEIL="1gbit"
#limit outbound Vikingcoin protocol traffic to this rate
LIMIT="160kbit"
#defines the address space for which you wish to disable rate limiting
LOCALNET="192.168.0.0/16"
#delete existing rules
tc qdisc d... | i3lome/failfial | contrib/qos/tc.sh | Shell | mit | 1,673 |
echo 'Welcome to Mac Builder of VMX Webcam'
mkdir -p ./Contents/MacOS/
mkdir -p ./Contents/Frameworks/
rm ./Contents/MacOS/*
rm ./Contents/Frameworks/*
#D=~/projects/VMXserver/build/VMXserver.app/
#D=~/projects/vmxmiddle/dist/VMX.app/
D=.
#F=$D/Contents/MacOS/VMXwebcam2
#G=$D/Contents/MacOS/VMXwebcam
F=.VMXwebcam
G=V... | VISIONAI/VMXwebcam | mac_builder.sh | Shell | mit | 2,644 |
#!/bin/sh
#
# Fix duplicate IP problem.
#
# VERSION :0.2.0
# ORIGIN :Aruba Debian image /etc/rc.local Arp Cache Broadcast Request
# DEPENDS :apt-get install arping
# LOCATION :/etc/network/if-up.d/00aruba-arping
# Non if-up.d method
#
# # Exclude loopback interface
# # Output "IPv4 ... | szepeviktor/debian-server-tools | monitoring/aruba-arping.sh | Shell | mit | 952 |
applied=`hg qapp`
if [ -n "$applied" ]
then
echo MQ contains applied patches, aborting.
exit 1
fi
##########
date=`cat ../bridge/date`
echo '../bridge/date:' $date
hg update -C -d "$date"
if [ ! $? -eq 0 ]
then
exit 1
fi
##########
info=`cat ../bridge/info`
hg qnew hg-import-info
hg qref -m "$info"
hg qpop
... | jdashg/such-build | hg-import.sh | Shell | mit | 619 |
#!/bin/bash
apt-get install -y libfontconfig
apt-get install cups-pdf -y
apt-get install cups cups-client cups-bsd cups-pdf -y
apt-get install hplip printer-driver-hpijs printer-driver-gutenprint -y
/usr/sbin/cupsctl --remote-admin
echo "current printers: "
lpstat -a
/etc/init.d/cups restart
mongorestore -h 127.0.... | loooriiis/Cellenarium | server/additional/setup.sh | Shell | mit | 375 |
#!/bin/bash -e
VERSION=`cat VERSION`
TAG="shippableimages/ubuntu1204_ruby:$VERSION"
echo "Building $TAG"
docker build --rm -t $TAG .
| anowak/ubuntu1204_ruby | build.sh | Shell | mit | 133 |
#!/usr/bin/env bash
gopkg=go1.15.linux-amd64.tar.gz
curl -O https://dl.google.com/go/$gopkg
sudo rm -r /usr/local/go
sudo tar -C /usr/local -xzf $gopkg
rm $gopkg
# Setup Golang paths and extra tools
mkdir -p $HOME/go
mkdir -p $HOME/go/bin
mkdir -p $HOME/go/pkg
mkdir -p $HOME/go/src
GOPATH="$HOME/go"
PATH="$PATH:/usr... | mapitman/linux-setup | generic/golang.sh | Shell | mit | 1,602 |
# !/bin/sh
#
set -euo pipefail
trap "echo 'error: Script failed: see failed command above'" ERR
. $(dirname "$0")/../../../scripts/libs/utils.sh
use_red_green_echo 'Ruby Install'
VERSION="2.5"
MIN_VERSION=".1"
ROOT_DIR=$(dirname $0)
cd $ROOT_DIR
_compile_ruby(){
tar -Jxf $1
local rubySrcDir="ruby-src"
util... | Jackysonglanlan/devops | dev/sdks/ruby/install.mac.sh | Shell | mit | 937 |
#!/bin/bash
cd /home/zero/src/bill-splitter
docker run --rm=true -w /code -v `pwd`:/code itszero/bill-splitter npm run remote:start
| itszero/bill-splitter | start.sh | Shell | mit | 132 |
#!/usr/local/bin/bash
function assertInstalled() {
for var in "$@"; do
if ! which $var &> /dev/null; then
echo "[radio_cbc] Selected player not available. Please Install $var!"
exit 1
fi
done
}
red=`tput setaf 1`
tput setaf 1
# echo '
#
# | _)
# _... | LaurentFough/radio-cli | radio_cbc.sh | Shell | mit | 9,155 |
##---------------------------------------------
## コマンドラインからWebの検索をする
##---------------------------------------------
# 使い方 $ google vim rails
# url: $1, delimiter: $2, prefix: $3, words: $4..
function web_search {
local url=$1 && shift
local delimiter=$1 && shift
local prefix=$1 && shift
local query
... | srockstyle/dotfiles | zsh/zsh.d/search_engine.zsh | Shell | mit | 1,211 |
# ...
# Update package lists, upgrade everything, remove orphaned packages.
/usr/bin/apt-get update && /usr/bin/apt-get -y dist-upgrade && /usr/bin/apt autoremove -y
| lambdacasserole/useful-bash-things | crontab/update-upgrade-autoremove.sh | Shell | mit | 167 |
g++ duel-with-the-devil/main.cpp -lSDL2 -lSDL2_mixer -lSDL2_image -std=c++11 -o dwtd
| Resonious/dwtd | linux-build.sh | Shell | mit | 85 |
#!/bin/bash
#
# Common utility functions
#
. $UB_HOME/errors.bash
#
# Logging and process execution
#
function linfo {
echo "[INFO ] $@"
}
function lerror {
echo "[ERROR] $@"
}
function die {
eval lerror "$1 -\$$(echo $@)"
exit 1
}
linfo "Using a root directory of ${UB_HOME}"
| ericdwhite/mirrored-debootstrap-install | functions.bash | Shell | mit | 290 |
#!/usr/bin/env sh
source src/euthanize/cli.sh
source src/support.sh
source test/helper.sh
scale_size_test() {
local expression='scale_size ""'
assert_output_equal 'Size option is required' "$expression"
assert_exit_status_equal 1 "$expression"
local expression='scale_size "foo"'
assert_output_equal 'Size ... | njonsson/euthanize | test/unit/euthanize/cli/scale_size_test.sh | Shell | mit | 2,779 |
#!/bin/sh
export MAIN_DIR=$(pwd)
# Cleanup previous builds
rm -rf deps
rm -rf build*
# Dependencies
mkdir deps
cd deps
export DEPS_DIR=$(pwd)
# Build qt5
mkdir buildQt5
cd buildQt5
cmake .. -DQT5_BUILD=TRUE -DQt5_DIR=/opt/Qt5.1.0/5.1.0/gcc_64/lib/cmake/Qt5 -DCommonModules_DIR=$MAIN_DIR/deps/install/lib/cmake/CommonM... | nwoki/socializer | build-ci.sh | Shell | mit | 542 |
# get the name of the branch we are on
function git_prompt_info() {
if [[ "$(command git config --get oh-my-zsh.hide-status 2>/dev/null)" != "1" ]]; then
ref=$(command git symbolic-ref HEAD 2> /dev/null) || \
ref=$(command git rev-parse --short HEAD 2> /dev/null) || return 0
echo "$ZSH_THEME_GIT_PROMPT_PR... | dylanclement/oh-my-zsh | lib/git.zsh | Shell | mit | 5,532 |
#!/bin/bash
php -S 0.0.0.0:8092
| cstabor/screw | buildin_server.sh | Shell | mit | 33 |
#!/usr/bin/env bash
{ tail -q -n +1 *Water.csv ; } > _WATER_RAW.csv
{ tail -q -n +1 *Sanitation.csv ; } > _SANITATION_RAW.csv
# Reorder columns to match format of GIMS output
awk -F "\",\"" '{print $1 "\",\"" $2 "\",\"" $3 "\",\"" $4 "\",\"" $7 "\",\"" $5 "\",\"" $9 "\",\"\",\"\",\"" $13 "\",\"" $11 "\",\"" $15 "\",\... | Ecodev/gims | bin/merge_csv_expected_questionnaire.sh | Shell | mit | 739 |
#!/bin/bash
TRACECMD=$(which trace-cmd)
if [ -z "${TRACECMD}" ]; then
echo "ERROR: Could not locate trace-cmd binary"
exit -1
fi
if [ ! -u "${TRACECMD}" ]; then
echo "ERROR: ${TRACECMD} setuid bit not set. Run trace-cmd-setup.sh?"
exit -1
fi
if [ "${USE_I915_PERF}" ]; then
if [ -z "${I915_PERF_M... | mikesart/gpuvis | sample/trace-cmd-start-tracing.sh | Shell | mit | 2,599 |
#!/bin/bash
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
| x007007007/macconfig | .bash/ruby.bash | Shell | mit | 80 |
#!/bin/bash
############################################################
# Delete table before exporting data from Hive. #
# ---------------------------------------------------- --- #
# Sqoop version: 1.4.6 + #
# @author Hefei Li
# @since Feb. 29, 2016
#####################... | lhfei/cluster-conf | scloud-master/job-util/sqoop_clean_table.sh | Shell | mit | 1,071 |
#!/bin/bash
#set -x
E_BADARGS=65
EXPECTED_ARGS=3
if [ $# -ne $EXPECTED_ARGS ]
then
echo " This script expect $EXPECTED_ARGS arguments instead of $#"
exit $E_BADARGS
fi
MV=$(which mv)
RM=$(which rm)
DATE=$(which date)
SED=$(which sed)
CAT=$(which cat)
DRUSH=$(which drush)
### CONFIG
DEP_NAME=$1
DEP_BRANCH=$2
... | jonhattan/deploy-scripts | autodeploy-drupal.sh | Shell | mit | 1,678 |
# OneView Appliance hostname or IP address
OV_HOST=${OV_HOST:=oneview}
# OneView Appliance username
OV_USER=${OV_USER:=Administrator}
# OneView Appliance password
OV_PASS=${OV_PASS:=OV_PASSWORD}
echo ================================================================
echo " Removing Profiles ... | miqui/python-hpOneView | examples/scripts/clean.sh | Shell | mit | 3,514 |
#!/bin/bash
# Usage: _strip_flags <...all_arguments>
# Results are stored in CURRENT_CLEAN_ARGUMENTS
# Example: _strip_flags -g hello there --open && echo $CURRENT_CLEAN_ARGUMENTS
CURRENT_CLEAN_ARGUMENTS=()
_strip_flags() {
CURRENT_CLEAN_ARGUMENTS=()
for argument in "$@"; do
if [[ "$argument" =~ ^- ]]; then
... | kvendrik/dotfiles | foundation/utilities.bash | Shell | mit | 818 |
#!/bin/bash
# install.js ( indirect version: for ie6 )
java -jar ~/softwares/yui-2.4.7/yuicompressor-2.4.7.jar --type js src/install.js \
| sed -Ee 's/^(.)/javascript:\1/' \
| cat .tmp - .tmp
# install.js ( direct version ) and main.js
java -jar ~/softwares/yui-2.4.7/yuicompressor-2.4.7.jar --type js src/sho... | MichaelHu/google_results | build.sh | Shell | mit | 577 |
#!/bin/bash
docker build --no-cache -t=geographica/postgis:spry_sparrow .
| GeographicaGS/Docker-Postgis | Spry_Sparrow/build.sh | Shell | mit | 75 |
#!/usr/bin/env bash
if [ -z "$UNITY_PATH" ]
then
echo "UNITY_PATH must be set, to e.g. /Applications/Unity/Hub/Editor/2018.4.36f1/Unity.app/Contents/MacOS"
exit 1
fi
echo "\`which Unity\`=`which Unity`"
pushd "${0%/*}"
script_path=`pwd`
popd
pushd "$script_path/../../fixtures"
DEFAULT_CLI_ARGS="-quit -nograp... | bugsnag/bugsnag-unity | features/scripts/mobile/generate_xcode_project.sh | Shell | mit | 1,804 |
#!/bin/bash
pdflatex wiring.tex && \
convert -flatten -density 300 wiring.pdf -quality 90 -resize 560x560 wiring.png
| thijstriemstra/RPLCD | docs/wiring.sh | Shell | mit | 118 |
#! /bin/bash
source ./scripts/setenv.sh
set -ex
# Analyze JScience Type
echo Analyzing JScience Type $1
java $JAVA_OPTS ui.AnalyzeType -j -classpath -j $LIBCP --bodies -v 3 -t $1 $JSCIENCE/src
| jgaltidor/VarJ | src/VarJFrontend/scripts/analyze_jscience_type.sh | Shell | mit | 193 |
#!/bin/bash
#
# This script can be used to generate the 2nd place solution
# of team o_O for the diabetic retinopath competition.
#
# terminate on error
set -e
########## Convert Images ##########
# Original images are expected to reside in data/{train,test}.
# Convert them to 512x512 pixel images.
#pyt... | cauchyturing/kaggle_diabetic_RAM | make_kaggle_solution.sh | Shell | mit | 3,180 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2101-1
#
# Security announcement date: 2014-02-10 00:00:00 UTC
# Script generation date: 2017-01-01 21:03:36 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - libgadu3:1:1.11.1-1ubuntu0.1
#
# Last ... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2014/USN-2101-1.sh | Shell | mit | 629 |
#!/bin/bash
# irixboot
# boot.sh - start services on each boot
# (c) 2018 Andrew Liles
# https://github.com/halfmanhalftaco/irixboot
# LICENCE: MIT
CLIENT_NAME="$1"
CLIENT_IP="$2"
CLIENT_MAC="$3"
DOMAIN="$4"
NETMASK="$5"
HOST_IP="$6"
### Calculate network address
### http://stackoverflow.com/questions/15429420/given... | halfmanhalftaco/irixboot | scripts/boot.sh | Shell | mit | 1,692 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2893-1
#
# Security announcement date: 2016-02-11 00:00:00 UTC
# Script generation date: 2017-02-06 21:05:18 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - firefox:44.0.2+build1-0ubuntu0.12.04.1... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2016/USN-2893-1.sh | Shell | mit | 659 |
#!/bin/bash
set -e -u
sudo apt-get -y purge homeworld-apt-setup && sudo apt-get -y remove 'homeworld-*' && sudo apt-get clean || true
sudo dpkg -i /homeworld/apt-setup.deb
sudo apt-get update
sudo apt-get -y install homeworld-spire
| sipb/homeworld | deploy-chroot/reinstall-apt-setup.sh | Shell | mit | 233 |
#!/bin/bash
#run get_data.sh to get all the relevant data
#add -gpuid 0 to use GPU
#add -cudnn 1 to use cudnn
#To reproduce Table 3:
#LSTM-Word-Small
th main.lua -data_dir data/ptb -savefile ptb-word-small -EOS '+' -rnn_size 200 -use_chars 0
-use_words 1 -word_vec_size 200 -highway_layers 0
#LSTM-CharCNN-Small
th mai... | fiskio/lstm-char-cnn | run_models.sh | Shell | mit | 1,791 |
#!/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... | NitWitStudios/NWSUrlValidator | Example/Pods/Target Support Files/Pods-NWSUrlValidator_Example/Pods-NWSUrlValidator_Example-frameworks.sh | Shell | mit | 2,636 |
NODE_DEBUG=foo node logit.js
| hansrwindhoff/NodeJsDebugging | 0 debuglog/run.sh | Shell | mit | 29 |
#!/bin/bash
# gcc - second pass
pushd ${LFS}/sources &> /dev/null
cd gcc-build
message building gcc - second pass
AR=ar LDFLAGS="-Wl,-rpath,${LFS}/cross-tools/lib" \
../gcc-[0-9]*/configure --prefix=${LFS}/cross-tools \
--build=${LFS_HOST} --host=${LFS_HOST} --target=${LFS_TARGET} \
--with-sysroot=${LFS} --disab... | stwb/raspberrypi_clfs | lfs.d/48_gcc.sh | Shell | mit | 779 |
#!/bin/bash
if [ `id -u` != 0 ] ; then
echo "Need to be root"
exit 1
fi
function dd_create {
read -p "Lets create an image. Input size in megabytes: " diskSize
echo "Filesystem (vfat or ext4): "
read diskFS
echo creating $diskSize"MB" disk with $diskFS
dd if=/dev/zero of=$HOME/otgDisk.img bs=1M cou... | L0sted/Otg-chooser-for-linux | demo.sh | Shell | mit | 2,248 |
#!/bin/bash
# Install jq 1.4, if it's not there already
JQ_VERSION=$(jq --version)
if [[ "$JQ_VERSION" =~ "1.4" ]]; then
echo "jq version 1.4 detected"
else
wget --output-document="${HOME}/bin/jq" https://github.com/stedolan/jq/releases/download/jq-1.4/jq-linux-x86_64
chmod u+x ${HOME}/bin/jq
fi
| Rhjulskov/webonaut | deploy_scripts/lib/install-dependencies.sh | Shell | mit | 310 |
SHELL=/bin/zsh
cd /var/www/lab/ratefeed
ruby processqueue.rb
| hirose30/ratefeedwatcher | processqueue.sh | Shell | mit | 61 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2013:1409
#
# Security announcement date: 2013-10-07 17:24:38 UTC
# Script generation date: 2017-01-01 21:14:52 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - xinetd.x86_64:2.3.14-39.el6_4
# - xin... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2013/RHSA-2013:1409.sh | Shell | mit | 748 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3449-1
#
# Security announcement date: 2016-01-19 00:00:00 UTC
# Script generation date: 2017-01-29 21:06:20 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - bind9:1:9.8.4.dfsg.P1-6+nmu2+deb7u9
#... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/i386/2016/DSA-3449-1.sh | Shell | mit | 653 |
#!/bin/bash
source ./script.profile;
# locate to /cygdrive/d/xampp/htdocs/pegasus
cd ".." 1>/dev/null 2>&1
for model in $Models; do
echo "rename namespace for $model";
sed -i 's/namespace App;/namespace App\\Models;/' ./app/$model.php;
#mv ../app/$model ../app/Models;
done
cd - 1>/dev/n... | Qsinzheng/pegasus | scripts/model.2.rename.namespace.sh | Shell | mit | 329 |
#!/bin/bash
# code
GIT_DIR=~/git/ggr-project
R_DIR=$GIT_DIR/R
SCRIPT_DIR=$GIT_DIR/figs/fig_2.modelling
# dirs
GGR_DIR=/mnt/lab_data/kundaje/users/dskim89/ggr/integrative/v1.0.0a
EVAL_DIR=/mnt/lab_data/kundaje/users/dskim89/ggr/nn/evals.2018-12-03
#PREDICT_DIR=/mnt/lab_data/kundaje/users/dskim89/ggr/nn/inference.2019-... | vervacity/ggr-project | figs/fig_2.modelling/runall.sh | Shell | mit | 9,582 |
#!/bin/sh
set -e
set -x
# Deploy the SNAPSHOT version to Clojars. Additional check is needed
# to ensure that we don't deploy release versions accidentally (we
# shouldn't have them in master first of all, but that's a whole
# different story)
# Check that we're not building PR and we're on master branch
test $TRAVI... | screen6/bigquery-clj | bin/build/clojars.sh | Shell | mit | 422 |
if [[ -x "$(command -v ag)" ]]; then
export FZF_DEFAULT_COMMAND='ag --depth 100 --hidden -U --ignore .git -g "" 2>/dev/null'
elif [[ -x "$(command -v rg)" ]]; then
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*" 2>/dev/null'
fi
| martyla/dotfiles | zsh/10-fzf.zsh | Shell | mit | 274 |
#!/usr/bin/env bash
MODELS="DistMult TransE ComplEx"
TAGS="symm impl impl_inv impl_conj trans_single trans_diff multiple"
CONFS="0.3"
#CONFS="0.3 0.5 0.7"
#['exp_symm', 'exp_impl', 'exp_impl_inv', 'exp_impl_conj', 'exp_trans_single', 'exp_trans_diff']
#SUBSAMPLES="0.1 0.2 0.3 0.4 0.5 0.6 0.7 1"
SUBSAMPLES="0.5 1"
#SU... | uclmr/inferbeddings | scripts/synth/parse_results.sh | Shell | mit | 2,195 |
rdebug-ide --trace --debug --port 1234 --dispatcher-port 26166 --host 0.0.0.0 -- bin/rails s -b 0.0.0.0 -p 3000 -e development | xpopov/rails5-api-bdd-boilerplate | rdebug.sh | Shell | mit | 126 |
# cdf: cd's to frontmost window of Finder
cdf () {
currFolderPath=$( /usr/bin/osascript <<"EOT"
tell application "Finder"
try
set currFolder to (folder of the front window as alias)
on error
set currFolder to (path to desktop folder as alias)
end try
POSIX path of currFolder
end... | midwire/bash.env | os/Darwin/functions.sh | Shell | mit | 4,026 |
#!/bin/sh
#
# Prerequisites:
# - google-chrome (or chromium-browser), x11-xserver-utils, unclutter
# - Run dpkg-reconfigure x11-common and allow all users to start X session
# or alternatively start the xinit with sudo
#
default_url="http://localhost:8000"
resolution="1366,768"
browser_path="/usr/bin/google-chrome"
... | Vilsepi/radiate | radiate-client/radiate-client.sh | Shell | mit | 835 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:1632
#
# Security announcement date: 2016-08-18 19:35:36 UTC
# Script generation date: 2017-01-17 21:20:44 UTC
#
# Operating System: Red Hat 7
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - kernel-rt-doc.noarch:3.10.0-327.28.3.rt... | Cyberwatch/cbw-security-fixes | Red_Hat_7/x86_64/2016/RHSA-2016:1632.sh | Shell | mit | 3,576 |
#!/bin/bash
# This script was written as a shortcut to "resetting" a RHEL6 VM template
# Resetting the template involves resetting the network interfaces, changing
# the systems hostname, registering the system to spacewalk, pulling the config
# for the new node from puppet and re-registering the system to Free-IPA us... | k4k/MyScripts | deploy-template.sh | Shell | mit | 2,895 |
ScriptInfo_backup_folder_archive_functions() {
SCRIPT_NAME="Backup Folder Archive"; SCRIPT_VERSION="2.2"; SCRIPT_DATE="2014/02/01"; SCRIPT_AUTHER="Austin Saint Aubin"; SCRIPT_AUTHER_CONTACT="AustinSaintAubin@gmail.com"
SCRIPT_DESCRIPTION="Used to backup a single folder"
SCRIPT_TITLE="Dependency: $SCRIPT_NAME - v$SCRIPT... | AustinSaintAubin/linux-bash-scripts-library-core | backup/dependencies/backup_folder_archive_functions.sh | Shell | mit | 7,569 |
#!/bin/bash -ex
bundle exec jruby --1.9 -S redstorm local $1
| auser/rigdata | bin/run_topology.sh | Shell | mit | 62 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3194-1
#
# Security announcement date: 2015-03-17 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:17 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libxfont:1:1.4.5-5
# - libxfont1:... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2015/DSA-3194-1.sh | Shell | mit | 996 |
#
# zsh/041_fzf_fd.zsh
#
# fd - cd to selected directory
fd() {
local dir
dir=$(find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf +m) &&
cd "$dir"
}
| tomoyamkung/dotfiles | zsh/041_fzf_fd.zsh | Shell | mit | 176 |
#!/bin/bash
# by onephone@20170709
#set -e # exit if any command return non zero
#set -x # print commands
PROJECTNAME="minipj"
[ $# -eq 0 ] && echo -e "Please input UsernameFile.txt! \n sh $0 UsernameFile" && exit
yum install git -y > /dev/null
id git &> /dev/null
[ ! $? -eq 0 ] && useradd git -s /usr/bin/git-... | wenfengshi/CoScripts | shell/build_git_server.sh | Shell | mit | 872 |
#!/bin/bash
usage(){
echo "Usage: $0 tag container-port host-port"
echo " tag is used to name the mongodb and portal containers"
echo " host-port is the external port to listen on, and is bound to container port container-port"
exit 1
}
[[ $# -ne 3 ]] && usage
TAG=$1
PORT=$2
HOST_PORT=$3
... | rickmcgeer/geni-expt-engine | create-portal.sh | Shell | mit | 507 |
#!/bin/bash
#
# Description : OpenJK
# Author : Jose Cerrejon Gonzalez (ulysess@gmail_dot._com)
# Version : 1.0.0 (17/Dec/21)
# Compatible : Raspberry Pi 4 (tested)
#
#
. ./scripts/helper.sh || . ./helper.sh || wget -q 'https://github.com/jmcerrejon/PiKISS/raw/master/scripts/helper.sh'
clear
check_board || { ... | jmcerrejon/PiKISS | scripts/games/openjk.sh | Shell | mit | 4,528 |
#!/bin/bash
echo "Starting screensaver..."
screen -d -m -S screensaver xscreensaver
echo "Starting screensaver blank watcher..."
screen -d -m -S screensaver-watch ./screensaver-watch.pl
echo "Starting player..."
screen -m -S player ./player.sh
| schamp/KidsAudiobookPlayer | start.sh | Shell | mit | 245 |
#!/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... | caoyy/RKServerApiKit | Example/Pods/Target Support Files/Pods-RKServerApiKit_Example/Pods-RKServerApiKit_Example-frameworks.sh | Shell | mit | 4,327 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.