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
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
mongoexport --db twitterdb --collection hist_glasgow_geo_coordinates --out exact.json
gdrive upload -p 1jprTiCsH6XfCwUc83GO9eIZDjcsiPri8 exact.json
rm exact.json | alek-beloff/teamproject | data_manage/export_exact.sh | Shell | mit | 253 |
SNG_SEP="|"
[ -z $sng_ifs ] && sng_ifs="
$SNG_SEP"
export SNG_SEP
sng_puttsv() {
sep=""
for rec; do
printf "$sep%s" "$rec"
sep="$SNG_SEP"
done
printf "\n"
}
sng_crlf() {
sed 's/\([^\r]\)$/\1\r/'
}
sng_lf() {
sed 's/\r/d'
}
sng_import() {
echo " $_header_ " | tr "$SNG_SEP" ' ' | grep " $1 " > /d... | tyn/arcs | lib/sng/dat.sh | Shell | mit | 613 |
#!/bin/sh
MYDIR=$(cd $(dirname $0) && pwd)
DOCK_NAME='joshrivers/development-shell:local'
docker build -t $DOCK_NAME -f $MYDIR/Dockerfile .
echo "$DOCK_NAME"
| joshrivers/docker-development-shell | build.sh | Shell | mit | 159 |
#!/usr/bin/env bash
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.
sudo -v # ask for password only at the beginning
# Check for Homebrew
if ! type brew > /dev/null 2>&1;then
echo " Installing Homebrew:"
ruby -e "$(curl -fsSL https://raw.github.com/mxc... | DracoLi/dotfiles | homebrew/install-casks.sh | Shell | mit | 1,111 |
#!/bin/bash
go build -o api
docker build -t botbox-api:$BOTBOX_VERSION \
--build-arg domain_name=$BOTBOX_DOMAIN_NAME \
--build-arg db_host=botbox-database \
--build-arg db_user=botbox \
--build-arg db_password=$BOTBOX_DB_PASSWORD \
--build-arg db_name=botbox \
--build-arg db_sslmode=disable \
... | crestonbunch/botbox | services/api/server/build.sh | Shell | mit | 648 |
#!/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... | exevil/Keys-For-Sketch | Source/KeysForSketch/Pods/Target Support Files/Pods-KeysForSketch/Pods-KeysForSketch-frameworks.sh | Shell | mit | 3,719 |
#$!/bin/sh
nvcc -o hello ./hello.cu
| mkurnosov/course-parprog-2015 | parprog2015-lec13-src/hello/build.sh | Shell | mit | 40 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3264-1
#
# Security announcement date: 2015-05-19 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:24 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: armv7l
#
# Vulnerable packages fix on version:
# - icedove:31.7.0-1~deb7u1
#
# Last ve... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/armv7l/2015/DSA-3264-1.sh | Shell | mit | 697 |
PACKAGE_VERSION="1.0.3"
PACKAGE_SOURCES="http://xorg.freedesktop.org/archive/individual/font/font-bh-lucidatypewriter-100dpi-$PACKAGE_VERSION.tar.bz2"
PACKAGE_DEPS=""
PACKAGE_DESC="Lucida 100 DPI fonts"
PACKAGE_ARCH="all"
build() {
[ -d font-bh-lucidatypewriter-100dpi-$PACKAGE_VERSION ] && rm -rf font-bh-lucidatypewr... | dimkr/rlsd | packages/font-bh-lucidatypewriter-100dpi.sh | Shell | mit | 1,111 |
_::import() {
local script="$1"
source "$DOTFILES_LIB/$script.zsh"
}
_::import "shell"
_::import "util"
_::import "path"
_::import "local"
_::import "deno"
_::import "docker"
_::import "editor"
_::import "fzf"
_::import "kubernetes"
_::import "nodejs"
_::import "rust"
_::import "shortcuts"
_::import "tmux"
_::im... | bentruyman/dotfiles | files/lib/init.zsh | Shell | mit | 413 |
#!/bin/bash
# Self-instrumentation tests.
#
# Copyright 2013-2015 National ICT Australia (NICTA), Steve Glass, Olivier Mehani
#
# This software may be used and distributed solely under the terms of
# the MIT license (License). You should find a copy of the License in
# COPYING or at http://opensource.org/licenses/MIT.... | mytestbed/oml | test/system/self-inst.sh | Shell | mit | 2,264 |
#!/bin/bash
#This is simplied version of PageRank. This example source code did not apply the dumping factor of 0.85 to the results. This example source code assumes all pages are cited in other pages.
cp -r examples/PageRank/data /tmp/amfora/
src/amc.py scatter /tmp/amfora/data
cp examples/PageRank/score.txt /tmp/a... | zhaozhang/amfora | examples/PageRank/PageRank.sh | Shell | mit | 938 |
#!/bin/bash
set -e
# FIXME: transitional definitions which are being moved to wb-run-update
HIDDENFS_PART=/dev/mmcblk0p1
HIDDENFS_OFFSET=$((8192*512)) # 8192 blocks of 512 bytes
DEVCERT_NAME="device.crt.pem"
INTERM_NAME="intermediate.crt.pem"
ROOTFS_CERT_PATH="/etc/ssl/certs/device_bundle.crt.pem"
type fit_prop_stri... | contactless/wirenboard | image/install_update.sh | Shell | mit | 4,085 |
#!/bin/bash
SOURCE_REGION=$1
TABLE_NAME=$2
READ_CAPACITY=$3
WRITE_CAPACITY=$4
AS_READ_MIN_TPUT=$5
MAX_ATTEMPTS=50
ATTEMPTS=0
SLEEP_SECONDS=20
RET_CODE=0
table_scaleable_read_dimension="dynamodb:table:ReadCapacityUnits"
USAGE="$0 source_region table_name read_capacity write_capacity"
if [ $# -lt 4 ]; then
echo $US... | Signiant/dynamodb-emr-exporter | app/update-throughput.sh | Shell | mit | 5,187 |
#!/bin/bash
function export_env_vars {
if [[ -n $BATS_TEST_DIRNAME ]]; then
TESTDIR=$(cd "$BATS_TEST_DIRNAME/.." && pwd)
else
TESTDIR=$(cd "$SCRIPTDIR" && pwd)
fi
export TESTDIR
_TMPDIR=$(mktemp -d 2>/dev/null || mktemp -d -t homeshick)
export _TMPDIR
export REPO_FIXTURES="$_TMPDIR/repos"
export HOME="$_TM... | agvim/homeshick | test/helper.bash | Shell | mit | 3,909 |
#!/bin/bash -
readonly TERRAFORM_VERSION="0.9.6"
readonly INSTALL_DIR="/usr/local/bin"
readonly DOWNLOAD_DIR="/tmp"
readonly DOWNLOAD_URL="https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip"
readonly DOWNLOADED_FILE="$DOWNLOAD_DIR/terraform.zip"
# Get distro d... | pinterb/install-terraform.sh | utils.sh | Shell | mit | 1,074 |
#!/bin/bash
# Start apache2
service apache2 start
status=$?
if [ $status -ne 0 ]; then
echo "Failed to apache2: $status"
exit $status
fi
# Start dnsmasq
service dnsmasq start
status=$?
if [ $status -ne 0 ]; then
echo "Failed to start dnsmasq: $status"
exit $status
fi
#service dnsmasq start && service apache2... | jmcoimbra/LAMP-env | apache/wrapper.sh | Shell | mit | 327 |
#!/bin/sh
if [ ! -f $1 ]
then
echo "Could not find pidfile, assuming process does not exist."
exit 0
fi
pid=`cat $1`
if [ "${pid}" -a "`ps -ef | grep $pid | grep -v \"grep\" | awk '{print $2}'`" ]
then
kill -15 ${pid}
echo "Found and killed old process."
else
echo "Old process did not exist."
... | hashimmm/iiifoo | scripts/killbypidfile.sh | Shell | mit | 323 |
#!/usr/bin/env bash
export DISPLAY=:0.0
DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
$DIR/wallpaper_change.py
| MyLittleWallpaper/WallpaperChanger | cron/fluxbox.sh | Shell | mit | 117 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3142-1
#
# Security announcement date: 2015-01-27 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:12 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: armv7l
#
# Vulnerable packages fix on version:
# - eglibc:2.13-38+deb7u7
#
# Last vers... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/armv7l/2015/DSA-3142-1.sh | Shell | mit | 673 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-MacOSX
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=dylib
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/tcp_client
O... | pegurnee/2014-02-522 | Projects/2_project/TCP_Client/nbproject/Package-Debug.bash | Shell | mit | 1,457 |
#!/bin/sh -e
# Edit the following to change the name of the database user that will be created:
APP_DB_USER=threes
APP_DB_PASS=12345
# Edit the following to change the name of the database that is created (defaults to the user name)
APP_DB_NAME=$APP_DB_USER
# Edit the following to change the version of PostgreSQL th... | jbbrokaw/three_advice | Vagrant-setup/bootstrap.sh | Shell | mit | 3,409 |
#!/usr/bin/env bash
#Usage ./linodeDynDNS.sh domainID resourceID API_Key ip_site
domainID=$1
resourceID=$2
api_key=$3
ip_site=$4
#Retrieve current public IP address
current_IP=$(curl -4 -s $ip_site)
#Current DNS Record
current_dns=$(curl -s "https://api.linode.com/?api_key=$api_key&api_action=domain.resource.list&Do... | Bl-nK/linode-dynamic-dns | linodeDynDNS.sh | Shell | mit | 676 |
#! /bin/bash
function older_than() {
local target="$1"
shift
if [ ! -e "$target" ]
then
echo "updating $target" >&2
return 0 # success
fi
local f
for f in "$@"
do
if [ "$f" -nt "$target" ]
then
echo "updating $target" >&2
return 0 # success
fi
done
return 1 # failu... | yumaikas/PISC-mirror | cmd/FinalFrontier/build.sh | Shell | mit | 750 |
function task-git-hook-register()
{
git-hook-register $*
}
| UUUM/gdsync | src/shell/task/git-hook-register.sh | Shell | mit | 63 |
################
# Key bindings #
################
bind "\C-j menu-complete" # Forward cycle through completions
bind "\C-k menu-complete-backward" # Backward cycle through completions
| sohkai/.dotfiles | bash.d/bindings.sh | Shell | mit | 186 |
#!/bin/bash
# Initializes a set of templates for the current PHP session
# Optionally merges customized code with the new template (when MODIFY file exists)
DIR=`dirname $0`
WORK=${DIR}/../machines/$2/work
if [ $# -eq 0 ]
then
echo "Usage: $0 [session]"
exit 1
fi
# Set up working directory
rm -rf $WOR... | tinkerspy/Automaton-Machine-Editor | scripts/update.sh | Shell | mit | 2,054 |
export FREEPLANE_HOME=/usr/local/freeplane
export PATH=${FREEPLANE_HOME}:${PATH}
| lifuzu/bashrc.d | linux/freeplane.path.bash | Shell | mit | 81 |
#!/bin/bash
################################################################################
# The MIT License (MIT) #
# #
# Copyright (c) 2016 Achim Christ ... | acch/nagios-plugins | check_sonas_inodes.sh | Shell | mit | 9,823 |
#!/bin/bash
set -ev
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
if [ "${TRAVIS_BRANCH}" = "master" ]; then
if [ "${TRAVIS_COMMIT_MESSAGE}" = "Bump version" ]; then
echo "Skipping version bump commit"
else
./gradlew deployToBintraySnapshot --stacktrace
fi
elif [ "${TRAVIS_BRANCH}" = "release" ]; then... | isapp/kontroller | scripts/travis.sh | Shell | mit | 958 |
#!/bin/bash
PROJECT=`basename "$PWD"`
EXT=''
while [[ "$#" -gt 0 ]]; do
case $1 in
-j|--jekyll) EXT=jekyll; shift ;;
-r|--restfull-php) EXT=restfullphp; shift ;;
*) echo "Unknown parameter passed: $1"; exit 1 ;;
esac
shift
done
if [[ ! -d .git ]]; then
git init
fi
git submodu... | zhdanov/hakunamatata | build/build__infect.bash | Shell | mit | 4,677 |
#!/bin/bash
regex='PackageReference Include="([^"]*)" Version="([^"]*)"'
find . -name "*.*proj" | while read proj
do
while read line
do
if [[ $line =~ $regex ]]
then
name="${BASH_REMATCH[1]}"
version="${BASH_REMATCH[2]}"
if [[ $version != *-* ]]
then
dotnet add $proj package ... | TinyBlueRobots/Serilog.Sinks.Scalyr | update.sh | Shell | mit | 361 |
#!/bin/bash
set -e
# Usage
# PUBLISH_GEM=true GENERATE_LIB=true RELEASE_VERSION=1.3.1 ./release.sh
if [[ -z "$RELEASE_VERSION" ]]; then echo "forgot to set a release version e.g. RELEASE_VERSION=x.y.z - latest version: lib/phraseapp-ruby/version.rb"; exit 1; fi
PHRASE_RUBY_REPO=git@github.com:phrase/phraseapp-ruby.g... | phrase/phraseapp-ruby | release.sh | Shell | mit | 1,281 |
##
## url.bash for shfw
## by lenormf
##
INCLUDE_PATH=$(dirname "$_")
source "${INCLUDE_PATH}/string.bash"
RESERVED_CHARS=$'#$&\'+,/:;=?@[]- '
function urlEncode {
local s="$@"
for i in $(seq 0 $((${#RESERVED_CHARS} - 1))); do
local c="${RESERVED_CHARS:$i:1}"
local hex=$(strHex $(strAsc "$c"))
test "$c" =... | lenormf/shfw | url.bash | Shell | mit | 598 |
#!/bin/bash
#init
SELF_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$SELF_DIR/lib.sh"
GIT_SPLIT_PATH="$SELF_DIR/../git_split.sh"
TEMP_DIR=$(makeTempDir)
SOURCE_REPO="$TEMP_DIR/sourceRepo"
DEST_REPO="$TEMP_DIR/destRepo"
DEST_REPO2="$TEMP_DIR/destRepo2"
initTestSourceRepo "$TEMP_DIR/sourceRepo"
gi... | vangorra/git_split | tests/dest_repo_exists_bare.sh | Shell | mit | 1,339 |
#!/bin/sh
set -euf -o pipefail
dedup_backups() {
local backup_dir="$1" prev=""
find $backup_dir -name '*.zip' | while read zip
do
echo $(unzip -v $zip | awk '$1 == "Archive:" { next; } { $5=""; $6=""; print }' | md5sum | awk '{print $1}') $zip
done | sort | while read md5 zip
do
if [ -z "$prev" ] ; ... | iliu-net/NeuSol | scripts/bakdedup.sh | Shell | mit | 471 |
alias ajaxrdoc="rdoc --fmt ajax --exclude '.*generator.*' --exclude '.*test.*' --exclude '.*spec.*'"
alias c='clear'
alias cpwd="pwd | ruby -pe'\$_.chomp!' | pbcopy" # copy path to clipboard
alias grep='grep --color --line-number'
alias vim='mvim -v' #use mvim version of vim as terminal vim
alias vi='mvim -v' #use mvim... | wtfluckey/zsh | .zsh/aliases.zsh | Shell | mit | 2,470 |
#!/usr/bin/env bash
THE_BASE_DIR_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
source $THE_BASE_DIR_PATH/_init.sh
usage()
{
echo ""
echo "Usage: make [command]"
echo
cat <<EOF
Ex:
$ make
$ make help
$ make install
$ make apt-install
$ make configure
$ make download
$ make download-install
$ make clean
EOF
}
u... | samwhelp/fix-ubuntu-1404 | misc/app/font-noto/bin/help.sh | Shell | mit | 325 |
#!/bin/bash
# Test AWS provisioned with Ansible
cd $(dirname "$0") && cd ..
echo "Install dependencies"
ansible-galaxy install -r dependencies.yml
echo "Checking syntax"
ansible-playbook -i inventories/local playbooks.yml --extra-vars="@tests/tests.yml" --connection=local --syntax-check
echo "Running role"
ansible-... | Aplyca/ansible-role-accelerator | tests/tests.sh | Shell | mit | 768 |
#!/bin/bash
echo "enter server.priv, then server.pub"
tincd --generate-keys=4096 | iwanders/vpn_infrastructure | clients/tinc/create_server_credentials.sh | Shell | mit | 81 |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-DAE_SDAE_7_inc_bin_DAE_relu
#SBATCH -e Deep-DAE_SDAE_7_inc_bin_DAE_relu.err.txt
#SBATCH -o Deep-DAE_SDAE_7_inc_bin_DAE_relu.out.txt
source /etc/profile.modules
module load gcc
module load matlab
c... | aciditeam/matlab-ts | jobs/deepJobs_DAE_SDAE_7_inc_bin_DAE_relu.sh | Shell | mit | 633 |
cd build
cmake ..
make clean
make
cd ..
time argos3 -c experiments/iAnt.xml | johncarl81/iAnt-ARGoS | build.sh | Shell | mit | 75 |
#! /bin/bash
# SPDX-License-Identifier: BSD-3-Clause
CRYPTO_DEV=${CRYPTO_DEV:-'--vdev="crypto_aesni_mb0"'}
#generate cfg file for ipsec-secgw
config_secgw()
{
cat <<EOF > ${SGW_CFG_FILE}
#SP in IPv4 rules
sp ipv4 in esp protect 7 pri 2 src ${REMOTE_IPV4}/32 dst ${LOCAL_IPV4}/32 \
sport 0:65535 dport 0:65535
sp ipv4 ... | grivet/dpdk | examples/ipsec-secgw/test/trs_3descbc_sha1_common_defs.sh | Shell | gpl-2.0 | 2,189 |
#!/bin/sh
echo Building BES device tree files...
make clean
# Built-in HDMI audio and video
make src/arm/bes-hdmi.dtb
# lcd3-01-00a2
make src/arm/bes-lcd3.dtb
# lcd3-01-00a2 and audio revb
make src/arm/bes-lcd3-audio.dtb
# lcd4-01-00a1
make src/arm/bes-lcd4.dtb
# lcd4-01-00a1 and audio revb
make src/arm/bes-lcd4-audio.... | hendersa/bes-dtb-rebuilder | build.sh | Shell | gpl-2.0 | 546 |
#!/bin/bash
#Kill Daylite if Running
killall Daylite
#Remove Application Support
rm -rf ~/Library/Application\ Support/com.marketcircle.Daylite*
#Remove Preferences Files
rm -rf ~/Library/Preferences/com.marketcircle.Daylite*
#Remove App
rm -rf /Applications/Daylite.App
####
# Remove Daylite Mail Assistant
####
r... | paulmcarrier/OSXMgmtScripts | REMOVE-DAYLITE.sh | Shell | gpl-2.0 | 380 |
#!/bin/sh
# Tcl ignores the next line -*- tcl -*- \
if test "z$*" = zversion \
|| test "z$*" = z--version; \
then \
echo 'git-gui version @@GITGUI_VERSION@@'; \
exit; \
fi; \
argv0=$0; \
exec wish "$argv0" -- "$@"
set appvers {@@GITGUI_VERSION@@}
set copyright [string map [list (c) \u00a9] {
Copyright (c) 2006... | vidarh/Git | git-gui/git-gui.sh | Shell | gpl-2.0 | 94,795 |
#!/bin/sh
set -x
# load module
insmod myfs.ko
# mount filesystem
mkdir -p /mnt/myfs
mount -t myfs none /mnt/myfs
ls -laid /mnt/myfs
cd /mnt/myfs
# create directory
mkdir mydir
ls -la
# create subdirectory
cd mydir
mkdir mysubdir
ls -lai
# rename subdirectory
mv mysubdir myrenamedsubdir
ls -lai
# delete renamed ... | walac/linux | tools/labs/templates/filesystems/myfs/test-myfs-1.sh | Shell | gpl-2.0 | 603 |
#!/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... | P3Stor/P3Stor | ftl/Dynamic_Controller/ipcore_dir/FIFO_DDR_DATA_IN/implement/planAhead_rdn.sh | Shell | gpl-2.0 | 2,533 |
#!/bin/sh
set -e
if [ -x /bin/systemctl ]; then
systemctl daemon-reload
fi
exit 0
| deanwilson/unixdaemon-fpm-cookery-recipes | node_exporter/redhat/post-install.sh | Shell | gpl-2.0 | 86 |
#!/bin/bash
MASTERFILE=/home/jeremy/master_fc6.img
cd /dev/VGXen
for i in $(ls); do
/bin/dd if=$MASTERFILE of=/dev/VGXen/$i bs=1024000
echo "copied to $i"
done
| andersje/SandGarden | scripts/jda_dup_master.bash | Shell | gpl-2.0 | 163 |
#! /bin/bash
echo "type <CTRL-D> to terminate"
echo -n "enter your most liked file:"
while read film
do
echo "Yeah! great film the $film"
done
counter=0
while [ $counter -lt 5 ]
do
counter=`expr $counter + 1`
echo $counter
done
| rudy-yuan/shell-script | while.sh | Shell | gpl-2.0 | 235 |
#!/bin/bash
###############################################################################
#
# Kernel Build Script
#
###############################################################################
# 2011-10-24 effectivesky : modified
# 2010-12-29 allydrop : created
######################... | jm199011/ef40s_kernel_4.2 | ef40s.sh | Shell | gpl-2.0 | 1,153 |
#! /bin/bash
# usage: /bin/bash linux_test6.sh <ipsec_mode>
# for list of available modes please refer to run_test.sh.
# ipsec-secgw (IPv6 mode) functional test script.
#
# Note that for most of them you required appropriate crypto PMD/device
# to be avaialble.
# Also user has to setup properly the following environm... | emmericp/dpdk | examples/ipsec-secgw/test/linux_test6.sh | Shell | gpl-2.0 | 2,106 |
#!/bin/bash
SCRIPT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
for b in llvm libcxx llvm-openmp; do
fn="/tmp/build_nightly_${b}.`date '+%A' | awk '{print tolower($0)}'`"
touch $fn
$SCRIPT_DIR/build_nightly_$b &> $fn
done
| sloede/cobuti | nightly/cron_build_all.sh | Shell | gpl-2.0 | 239 |
find_cmd_val()
{
if [ -n "$QUERY_STRING" ]
then
query1=$(echo "$QUERY_STRING" | cut -d"&" -f1)
cmd=$(echo "$query1" | cut -d"=" -f1)
if [ "$cmd" = "cmd" ]
then
echo "$(echo "$query1" | cut -d"=" -f2)"
else
echo "Unknown cmd"
fi
else
echo "No query string"
fi
}
print_footer()... | ReinhardProbst/WBM | htdocs/OL91/cgi-bin/main.sh | Shell | gpl-2.0 | 3,789 |
#!/bin/sh
# see stackoverflow.com/questions/59895
script_dir=$(dirname "$(readlink -f "$0")")
enum0Name="uncrustify_options"
enum1Name="uncrustify_groups"
enum2Name="argtype_e"
enum3Name="log_sev_t"
enum4Name="c_token_t"
enum5Name="lang_flag_e"
enum0SName="Option"
enum1SName="Group"
enum2SName="Argtype"
enum3SName="... | MeteorAdminz/uncrustify | scripts/genEmscriptenEnumBindingCode.sh | Shell | gpl-2.0 | 3,281 |
! source /home/ucgbpgl/.bashrc
cd /home/ucgbpgl/nCsims
pwd
! pwd
! /home/ucgbpgl/nrnmpi/x86_64/bin/nrnivmodl /home/ucgbpgl/nCsims | pgleeson/TestArea | models/Parallel/pythonScripts/putit.sh | Shell | gpl-2.0 | 131 |
#!/bin/sh
T=$PWD
PRODUCT=Zoom-Kernel
PRODUCT_CONFIG_FILE=mecha-lte_defconfig
RAMDISK_FILES=ramdisk
MKRAMDISK=$T/tools/update-zip-tools/mkbootfs
MKBOOTIMG=$T/tools/update-zip-tools/mkbootimg
VERSION=1.0.2
DATE=$(date +%Y-%m-%d)
echo " === Cleaning up ==="
rm -rf $T/out
mkdir -p $T/out
make ARCH=arm clean
echo " === Set... | TeamFreedom/mecha-2.6.35-gb-mr | mk.sh | Shell | gpl-2.0 | 1,929 |
#!/bin/bash
cat <<EOQ | rhui-manager --username admin --password admin
r
c
rhui-client-config-rhel-server-5-i386-os
Red Hat Update Infrastructure 2.0 Client Configuration Server 5 i386
rhui-client-config/rhel/server/5/i386/os
2
y
rhui-client-config/rhel/server/5/i386/os
y
n
n
y
q
EOQ
cat <<EOQ | rhui-manager --usernam... | jwmatthews/rhui_scripts | rhui_provision/files/setup/remote_host/custom_repos.sh | Shell | gpl-2.0 | 3,439 |
#!/bin/bash
set -eo pipefail
if [ -z "$1" ]; then
echo 'Usage!'
exit 1
fi
INPUT="$1"
set -u
if ! type mdvl.py >/dev/null 2>&1; then
echo 'This script requires mdvl.py to render markdown.'
echo 'You can get it from https://github.com/axiros/mdvl. Then add it to your'
echo '$PATH.'
exit 1
fi
clear
cat $... | christopherfujino/dotfiles | scripts/markdown-render.sh | Shell | gpl-2.0 | 346 |
#!/bin/bash
its_d7_sync_local_to_preview.sh
| ucsf-web-services/ucsf_it_migration | scripts/the_evening_routine.sh | Shell | gpl-2.0 | 44 |
#!/bin/bash
export P4ENV=${HOME}/.p4env
export P4ENVD=${HOME}/.p4env.d
p4Type() {
local SCRATCH=`mktemp`
type -t p4 > ${SCRATCH}
local ret=$?
local P4TYPE=`cat ${SCRATCH}`
rm -f ${SCRATCH}
if [ "${ret}" == "0" ]; then
echo -n "$P4TYPE"
return 0
else
echo "undefined"
return 1
fi
}
p4Setup() {
if [ ! -... | iadnah/p4Setup | p4Setup.sh | Shell | gpl-2.0 | 1,032 |
#!/bin/bash
# open file and read line
# check_daemon script to use
CHECK_DAEMON=check_daemon.pl
NAGIOS_PLUGIN_DIR=/usr/lib/nagios/plugins
SERVICE_DESCRIPTION="Originated by siconf.py"
# declare associative array
declare -A service_array
declare -A service_on_host
### usage
function Usage()
{
cat <<__EOF__>&2
Usage... | gc3-uzh-ch/nagios-plugins | daemon_map.sh | Shell | gpl-2.0 | 2,926 |
#!/bin/bash
COMMAND=$1
BUILD_TOP=`dirname $TRAVIS_BUILD_DIR`
EXIT_VALUE=0
export PATH="$HOME/.composer/vendor/bin:$PATH"
export DISPLAY=:99.0
export CHROME_SANDBOX=/opt/google/chrome/chrome-sandbox
##
# SCRIPT COMMANDS
##
# system-install
#
# This is meant to setup the server on Travis-CI so that it can run the tes... | energycircle/ecdpanopoly-drops-7 | profiles/ecdpanopoly/scripts/travis-ci.sh | Shell | gpl-2.0 | 6,928 |
#!/bin/bash
build_dir=$PWD
actions=(download_rpms install_rpms install_addon_from_repo create_image cleanup)
# ARG_POSITIONAL_SINGLE([start-with],[Action to start with - one of: ${actions[*]}],[install_rpms])
# ARG_OPTIONAL_BOOLEAN([languages],[l],[Include languages in the image. The increased image size may cause ... | OpenSCAP/oscap-anaconda-addon | create_update_image.sh | Shell | gpl-2.0 | 7,012 |
#!/usr/bin/env bash
style_colorRed=$(tput setaf 1)
style_colorGreen=$(tput setaf 2)
style_reset=$(tput sgr0)
status_OK="[${style_colorGreen} OK ${style_reset}]"
status_fail="[${style_colorRed} FAIL ${style_reset}]"
logger(){
message="$1"
status="$2"
let adjustment_rightAlign=$(tput cols)-${#message}+${#style... | chrishewlings/Projects | bash/logger.sh | Shell | gpl-2.0 | 530 |
#!/bin/bash
######################################################################
# TrinityX
# Copyright (c) 2016 ClusterVision B.V.
#
# 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 ... | clustervision/trinityX | legacy/configuration/openstack/cinder.sh | Shell | gpl-2.0 | 4,759 |
#!/bin/bash
unalias cp rm mv
SSH_CONFIG='/etc/ssh/ssh_config'
SSHD_CONFIG='/etc/ssh/sshd_config'
if [ -e $SSH_CONFIG ]; then
echo "Securing $SSH_CONFIG"
grep -v "^Host \*" /etc/ssh/ssh_config-preCIS | grep -v "# Protocol 2,1" \
> /tmp/cis/ssh_config.tmp
awk '/^#.* Host / { print... | sfranke89/ccdc | matt_thompson/LinuxHardeningScripts/step01_ssh.sh | Shell | gpl-2.0 | 2,790 |
# Copyright (c) 2015 sakaki <sakaki@deciban.com>
# License: GPL 3.0+
# NO WARRANTY
# This script fragment will be sourced by the initial (boot) kernel's
# init script; it must in turn load the DTB and final (target) kernel,
# setup the kernel command line, and finally pass control over to the
# new kernel with kexec -... | sakaki-/redsleeve-on-b3 | reference/kexec-on-b3.sh | Shell | gpl-2.0 | 957 |
#!/sbin/ext/busybox sh
/sbin/ext/busybox sh /sbin/boot/busybox.sh
#/sbin/ext/busybox sh /sbin/boot/cwm.sh
/sbin/ext/busybox sh /sbin/boot/properties.sh
/sbin/ext/busybox sh /sbin/boot/install.sh
#/sbin/ext/busybox sh /sbin/boot/tweaks.sh
/sbin/ext/busybox sh /sbin/boot/scripts.sh
/sbin/ext/busybox sh /sbin/boot/count_... | ragepekr/RageKernel | initramfs/sbin/boot-patch.sh | Shell | gpl-2.0 | 377 |
#!/bin/sh
#
# This file is protected by Copyright. Please refer to the COPYRIGHT file
# distributed with this source distribution.
#
# This file is part of GNUHAWK.
#
# GNUHAWK is free software: you can redistribute it and/or modify is under the
# terms of the GNU General Public License as published by the Free Sof... | RedhawkSDR/integration-gnuhawk | components/unpacked_to_packed_ss/build.sh | Shell | gpl-3.0 | 1,596 |
#----------------------------------*-sh-*--------------------------------------
# ========= |
# \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
# \\ / O peration |
# \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
# \\/ M anipulation |
#-------... | ccopsey/ccFOAM | etc/config/settings.sh | Shell | gpl-3.0 | 17,832 |
#! /bin/bash
currentDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker rm -f mymongo
docker run --name mymongo -p 27017:27017 -d mongo:3.4
IMAGE_NAME="comments-server:latest"
docker build -t $IMAGE_NAME $currentDir
docker run -p 3000:3000 --link mymongo:mymongo.org $IMAGE_NAME
| kafkapre/cluster-example | server/docker-build-and-run.sh | Shell | gpl-3.0 | 295 |
: 'Output the merge command as a shell file.'
Id='$Id: merge.sh,v 5.3 90/11/01 05:03:32 eggert Exp $'
cat >a.sh <<'EOF' && chmod +x a.sh || exit
#!/bin/sh
export something
EOF
if
(
./a.sh &&
if csh -c :
then csh -c ./a.sh
else :
fi
) 2>/dev/null
then
echo '#!/bin/sh'
echo '# merge - three-way file merge... | axelmuhr/Helios-NG | cmds/public/rcs5.5/merge.sh | Shell | gpl-3.0 | 2,055 |
youtube-dl --get-id --ignore-error http://www.youtube.com/channel/UC4k3HO5n3aSq_bayF-UHiGg/videos >> louis-IDs.txt
youtube-dl --get-id --ignore-error http://www.youtube.com/channel/UCeMjvwNw3vvsY_nJUG1amFg/videos >> louis-IDs.txt
| vxbinaca/archive-env-NG | survey/louis-URL.sh | Shell | gpl-3.0 | 230 |
#!/bin/bash
#pacman-key --init
#pacman-key --populate archlinux
#pacman-key --refresh-keys
rm -rf ~/initramfs-linux-fallback.img ~/initramfs-linux-grsec-fallback.img
mv /boot/initramfs-linux-fallback.img ~
mv /boot/initramfs-linux-grsec-fallback.img ~
pacman -Syyu
| torchhound/projects | bash/lazyUpgrade.sh | Shell | gpl-3.0 | 267 |
#! /bin/sh
# Copyright (C) 2010 Free Software Foundation, Inc.
#
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.
#set -x
#echo "SRCDIR $srcdir srcdir_test $srcdir_test"
export LANG=C
... | cgwalters/texinfo-git-mirror | texi2html/test/run_test_all.sh | Shell | gpl-3.0 | 11,001 |
#!/bin/bash
export PYTHONPATH=$PYTHONPATH:$PWD/..
| tianyang-li/de-novo-rna-seq-quant-1 | test/python_path.sh | Shell | gpl-3.0 | 52 |
printf "\n\n##### Beginning 02100-install-front-end-tools.sh\n\n" >> /root/report/build-report.txt
## ToDo: set front-end testing information
#cat <<EOF > $PROJECTROOT/dist/package.json
#{
# "name": "$LOWERCASEPROJECTNAME",
# "version": "$VERSION",
# "description": "$DESCRIPTION",
# "main": "index.js",
# "depende... | bradchesney79/2017-Debian-Jessie-Secure-WebApp-Server | scripts/02100-install-front-end-tools.sh | Shell | gpl-3.0 | 1,285 |
#!/usr/bin/env sh
exec cave print-id-metadata --raw-name EXHERES "$1"
| DenisKnauf/truckle | deactived/print-package-path.sh | Shell | gpl-3.0 | 71 |
#!/bin/bash
#
# Ezanvakti Kuran dinletme bileşeni
#
#
#
kuran_dinletimi() {
local parca_suresi parca_suresi_n okuyan kaynak dinletilecek_sure
local sure_adi sure_ayet_sayisi cuz yer
trap 'echo;clear;exit 1' SIGINT
# girileni denetleyip
# sure_kod değişkenine atayacak. (temel_islevler.bash)
sure_no_d... | fbostanci/ezanvakti | lib/kuran_dinletici.bash | Shell | gpl-3.0 | 2,175 |
#!/bin/bash
ROUTE=$1
GW=$2
/sbin/ip route add $ROUTE via $2 2>/dev/null
| rozie/abcc | plugins/generic_route_set.sh | Shell | gpl-3.0 | 74 |
#!/usr/bin/env bash
set -euo pipefail
# Ignore warning about double backslashes
#shellcheck disable=SC1117
scriptdir=$(readlink -f "${BASH_SOURCE%/*}")
#shellcheck source=/dev/null
source "${scriptdir}"/common_functions.sh
if [[ $# -lt 1 ]]
then
echo -e "\n\t${BLUE}USAGE:${RESTORE} ${BASH_SOURCE##*/} file01.eps... | php1ic/inch | scripts/validate_epsfile.sh | Shell | gpl-3.0 | 931 |
#!/bin/bash
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
| bmyell/ubuntu_shell_learning | conda_env.sh | Shell | gpl-3.0 | 224 |
#!/bin/bash
# This is a sample script to execute cdb_query using shell.
# This scripts contains the ask, validate, download, reduce process for cdb_query. Each step would generate a netCDF file as the input for the next step.
# To create the validate file used by pyWPS, only the first two steps are needed.
# The variab... | aerler/WRF-Tools | Scripts/cdb_query/create_monthly_files.sh | Shell | gpl-3.0 | 5,525 |
#!/bin/bash
# install a DMG from CLI
# Author Ryan Nolette
# Date Modified 06/26/2016
######################################################################
echo "hostname: "
read hostname
echo "DA username fo join: "
read DAuser
#join system to domain
dsconfigad -a $hostname -u $DAuser -ou "CN=Computers,DC=network,DC... | sonofagl1tch/OSHardening | OSX/additionalSecurityConfigs/instalDMGFromCLI.sh | Shell | gpl-3.0 | 646 |
#!/bin/bash
# Copyright 2012 Nicolas Bigaouette
# This file is part of repositories_backup.
# https://github.com/nbigaouette/repositories_backup
#
# repositories_backup 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 Fou... | nbigaouette/repositories_backup | backup_git_repos.sh | Shell | gpl-3.0 | 1,153 |
#!/bin/bash
CMD=`basename $0`
SCRIPTDIR=`dirname $0`
if [ $# -ne 2 ]; then
echo "USAGE: bash $CMD <LEXDATA-DIR> <DEST-DIR>" >&2
exit 1
fi
LEXDATA=$1
DESTDIR=$2
echo "Converting:sv" >&2
if zcat $LEXDATA/sv-se/nst/swe030224NST.pron-ws.utf8.gz | egrep -wi "apa|hund|färöarna|det|här|är|ett|test" > $DESTDIR/sw... | stts-se/pronlex | lexserver/demo_files/gen_demo_files.sh | Shell | gpl-3.0 | 1,273 |
cd /home/nlare/_code/cpp-Landau-Wang-omp-averaged/
make && /home/nlare/_code/cpp-Landau-Wang-omp-averaged/landau-wang-omp
| nlare/Landau-Wang-omp | make_and_run.sh | Shell | gpl-3.0 | 123 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="6"
pegasus_lite_version_patch="0"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_exit INT TERM EXIT
echo -e "\n################################ Setting up workdir ###############################... | elainenaomi/sciwonc-dataflow-examples | sbbd2016/data/google-cloud/w-11/dags/elaine.n.watanabe/pegasus/example_workflow/20160523T030841+0000/averageratio_4_ID0000018.sh | Shell | gpl-3.0 | 1,092 |
MYTEST="TEST"
echo "$MYTEST"
| mayankjohri/explore_advance_c | UnixShellProgramming/code/tac/test_dec.sh | Shell | gpl-3.0 | 30 |
#!/usr/bin/env bash
# FunSec - Fungal Secreted Proteins (or Secretome) Prediction Pipeline.
# Copyright (C) 2019 João Baptista <baptista.joao33@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... | Lonewolfenrir/FunSec | bin/FunSec/Dir.sh | Shell | gpl-3.0 | 11,745 |
#!/bin/bash
source /data/project/currentevents/code/bin/activate
time python /data/project/currentevents/code/currentevents-post.py
deactivate
| emijrp/currentevents | currentevents-post2.sh | Shell | gpl-3.0 | 144 |
#!/bin/bash
if [ -d lvtk ]; then
rm -rf lvtk
fi
# LVTK-1
cd $ZYNTHIAN_SW_DIR
if [ -d lvtk-1 ]; then
rm -rf lvtk-1
fi
git clone https://github.com/lvtk/lvtk.git lvtk-1
cd lvtk-1
git checkout 1.x
#./waf configure --disable-ui
./waf configure
./waf build
./waf install
./waf clean
cd ..
# LVTK-2
cd $ZYNTHIAN_SW_DIR
if... | zynthian/zynthian-sys | scripts/recipes/install_lvtk.sh | Shell | gpl-3.0 | 597 |
#!/bin/bash
source config1.sh
echo "$GREETING, $NAME!"
| kyclark/metagenomics-book | bash/read-config.sh | Shell | gpl-3.0 | 56 |
#!/bin/sh
# Update the copy of dev_tools inside the RMF repository.
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
source "${SCRIPT_DIR}/../dev_tools/git/subtree-utils.sh"
pull tools/dev_tools git@github.com:salilab/developer_tools.git master salilab/developer_tools
| shanot/imp | modules/rmf/dependency/RMF/tools/git/update-dev_tools.sh | Shell | gpl-3.0 | 270 |
cmd_setup-oauth2-login_help() {
cat <<_EOF
setup-oauth2-login @<qtr-server>
Setup the oauth2 login between the client and the qtr server.
The argument '@<qtr-server>' is the container of the server.
_EOF
}
cmd_setup-oauth2-login() {
# get the container of the server
local qtr_server=$1... | Q-Translate/qtr_client | ds/cmd/setup-oauth2-login.sh | Shell | gpl-3.0 | 2,304 |
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# show what we're doing
set -x
# Download LLVM with svn, rel or an explicit version number as the argument.
VER=${1:-rel}
URL=""
VER_NUM=$(./get-llvm-ver-num.sh)
VER_NUM_DOTS=$(echo $VER_NUM | sed -e 's/./&\./g')
VER_NUM_DOTS=${VER_NUM_DOTS::-1} # now we should have somethi... | jackwasey/rocker-ubsan | bin/get-llvm.sh | Shell | gpl-3.0 | 999 |
#!/usr/bin/sh
find . -name '*pbm' | xargs -l -i basename '{}' '.pbm' | xargs -l -i convert -transpose -scale 800% '{}.pbm' '{}.png'
| trshaffer/COMAP-2014 | render/process-pbm.sh | Shell | gpl-3.0 | 134 |
#!/bin/bash
sourcefile=(RemoteParcmanServer.java \
RemoteParcmanServerUser.java \
ParcmanServer.java \
ClientDataUser.java \
ClientData.java)
clpath=`pwd`"/../"
dom="[PARCMANSERVER]"
FLAGS="-Xlint"
### FUNZIONI
local_compile()
{
if [ "$1" != "" ]; then
echo "$dom Compile with '$1' flags: ${sourcefile[@]}.... | Stooorky/parcman | src/parcmanserver/compile.sh | Shell | gpl-3.0 | 686 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.