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
# file: simulate_mti.sh
#
# (c) Copyright 2008 - 2011 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 ... | rohit91/HDMI2USB | ipcore_dir/clkGen/simulation/timing/simulate_mti.sh | Shell | bsd-2-clause | 2,561 |
#!/bin/bash
# From: http://stackoverflow.com/a/246128
# - To resolve finding the directory after symlinks
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
done
DIR="$( cd -P "$( dir... | alszeb/rexster | rexster-console/src/main/bin/rexster-console.sh | Shell | bsd-3-clause | 802 |
#!/bin/sh
################################################################################
# This file is part of the package effrb. It is subject to the license
# terms in the LICENSE.md file found in the top-level directory of
# this distribution and at https://github.com/pjones/effrb. No part of
# the effrb package... | nfredrik/effrb | irb/ruby/nil-tox.sh | Shell | bsd-3-clause | 712 |
#!/bin/sh
# Copyright 2005-2013 Splunk, Inc.
#
# ... | huit/puppet-splunk | files/ta/Splunk_TA_nix/bin/selinuxChecker.sh | Shell | mit | 2,810 |
#!/bin/bash
FN="hapmapsnp6_1.32.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/experiment/src/contrib/hapmapsnp6_1.32.0.tar.gz"
"https://bioarchive.galaxyproject.org/hapmapsnp6_1.32.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-hapmapsnp6/bioconductor-hapmapsnp6_1.32.0_src_all.ta... | bebatut/bioconda-recipes | recipes/bioconductor-hapmapsnp6/post-link.sh | Shell | mit | 1,302 |
#!/bin/bash
ROOT="$1"
if [[ ! -d $ROOT ]]; then
echo "Usage: $0 <rootdir>"
exit 1
fi
if [[ $ROOT -ef / ]]; then
echo "Can't convert the running system."
echo "Please boot with 'rd.convertfs' on the kernel command line,"
echo "to update with the help of the initramfs,"
echo "or run this script... | FGrose/dracut | modules.d/30convertfs/convertfs.sh | Shell | gpl-2.0 | 6,204 |
#!/system/bin/sh
# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyright
# notic... | newhor1z0n/furnace_kernel_motorola_falcon | ramdisk/init.qcom.class_core.sh | Shell | gpl-2.0 | 7,762 |
# added 2014-10-01 by Rgerhards
# This file is part of the rsyslog project, released under ASL 2.0
source $srcdir/diag.sh init
source $srcdir/diag.sh startup fac_invld1.conf
source $srcdir/diag.sh tcpflood -m1000 -P 1011
source $srcdir/diag.sh shutdown-when-empty # shut down rsyslogd when done processing messages
sour... | teifler/rsyslog | tests/fac_invld1.sh | Shell | gpl-3.0 | 458 |
#!/usr/bin/env bash
# Copyright 2020 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... | google/CFU-Playground | third_party/tflite-micro/tensorflow/lite/micro/tools/ci_build/test_cortex_m_corstone_300.sh | Shell | apache-2.0 | 1,842 |
#!/bin/bash
# This script uploads sourcemaps to rollbar.com. Sourcemaps
# make it easier to debug client side errors that occur in
# production.
WEBSITE=$(dirname $0)/../website/a/p/p
ROLLBAR_TOKEN=`cat ROLLBAR_TOKEN`
VERSION=`cat VERSION`
FOLDERPATH=$WEBSITE/$VERSION
if [ ! -d $FOLDERPATH ]; then
echo "ERROR: '$F... | kwagdy/koding-1 | scripts/upload-sm-rollbar.sh | Shell | apache-2.0 | 634 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... | ecatmur/avro | lang/js/build.sh | Shell | apache-2.0 | 1,082 |
for f in `ls ../../../receptors/wt-ensemble/*.pdbqt`;do
prefix=`basename $f .pdbqt`
vina --config config3.txt --receptor $f --ligand ../../../ligands/osel.pdbqt --out $prefix.pdbqt --log $prefix.log --cpu 4
done
| ttdtrang/SlidingBindingBox | vina-ensemble/wt/3/run3.sh | Shell | mit | 220 |
#!/bin/bash
FN="xenopuslaeviscdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/xenopuslaeviscdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/xenopuslaeviscdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-xenopuslaeviscdf/bioconductor-xenop... | ivirshup/bioconda-recipes | recipes/bioconductor-xenopuslaeviscdf/post-link.sh | Shell | mit | 1,338 |
#!/bin/bash
# Populate site
echo Generating site
mkdir -p out
cp -R site out
mkdir -p out/site/images
cp -R images/tutorial images/concepts out/site/images
cp -R images/faq out/site/images
cp -R images/version-2.0.0 out/site/images/version-2.0.0
for name in `ls *.md`; do
echo Processing ${name} into out/site/${name... | bjhargrave/bndtools | bndtools.manual/generate.sh | Shell | epl-1.0 | 522 |
# Refs of upstream : main(A)
# Refs of workbench: main(A) tags/v123
# git-push : main(B) next(A)
test_expect_success "git-push ($PROTOCOL)" '
git -C workbench push origin \
$B:refs/heads/main \
HEAD:refs/heads/next \
>out 2>&1 &&
make_user_friendly_and_stable_output <out >actual &&
cat >... | tacker66/git | t/t5411/test-0000-standard-git-push.sh | Shell | gpl-2.0 | 4,612 |
#!/bin/bash
# Copyright (c) 2014 ThoughtWorks, Inc.
#
# Pixelated is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pixelated ... | SamuelToh/pixelated-user-agent | web-ui/config/package.sh | Shell | agpl-3.0 | 1,755 |
#!/bin/bash
# TODO: This follows the initial demo pieces and uses a bash script to
# generate the keepalived config - rework this into a template
# similar to how it is done for the haproxy configuration.
# Includes.
source "$(dirname "${BASH_SOURCE[0]}")/utils.sh"
# Constants.
readonly CHECK_SCRIPT... | maxamillion/origin | images/ipfailover/keepalived/lib/config-generators.sh | Shell | apache-2.0 | 7,053 |
#!/bin/sh
# Verify behavior of env.
# Copyright (C) 2009-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 the License, or
# (at your opti... | yuxuanchen1997/coreutils | tests/misc/env.sh | Shell | gpl-3.0 | 5,385 |
#!/bin/bash
[ -r ../shell_helper.sh ] || { echo "Cannot source shell_helper.sh"; exit -1; }
source ../shell_helper.sh
python this_test/run_test.py
die 0
| islog/leosac | test_helper/test-wiegand-pin/run_test.sh | Shell | agpl-3.0 | 156 |
#!/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you... | IMGJulian/incubator-mynewt-core | hw/bsp/stm32f429discovery/stm32f429discovery_debug.sh | Shell | apache-2.0 | 1,555 |
#!/bin/bash
hbase shell << EOF
disable 'hbvoter'
drop 'hbvoter'
create 'hbvoter', 'onecf', 'twocf', 'threecf', 'fourcf', {SPLITS => ['1','2','3','4','5','6','7','8','9']}
exit
EOF
| vmarkman/drill-test-framework | framework/resources/Datasources/hive_storage/hbase/createHbaseTable.sh | Shell | apache-2.0 | 181 |
#!/bin/bash
# $Id$
base=`dirname $0`/..
cd $base
VERSION=`grep 'VERSION =' setup.py | cut -d "'" -f2`
# Source dists
python setup.py sdist --formats=gztar,zip
# Eggs
python2.4 setup.py bdist_egg --exclude-source-files
python2.5 setup.py bdist_egg --exclude-source-files
python2.6 setup.py bdist_egg --exclude-source-... | seeminglee/pyglet64 | tools/gendist.sh | Shell | bsd-3-clause | 483 |
#!/bin/bash
# test many concurrent tcp connections
# addd 2016-03-28 by RGerhards, released under ASL 2.0
. $srcdir/diag.sh init
. $srcdir/diag.sh generate-conf
. $srcdir/diag.sh add-conf '
module(load="../plugins/imtcp/.libs/imtcp")
input(type="imtcp" port="13514")
template(name="outfmt" type="string" string="%msg:9:... | sematext/rsyslog | tests/template-pos-from-to-lowercase.sh | Shell | gpl-3.0 | 624 |
#!/bin/bash
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
(set -o igncr) 2>/dev/null && set -o igncr; # comment is needed
##
# Set any variables that my be needed ... | adobe-flash/avmplus | build/buildbot/slaves/linux-arm-ssh/scripts/environment.sh | Shell | mpl-2.0 | 1,636 |
#!/bin/bash
RUN='123456'
PERIOD='LHC10a'
PASS='pass1'
YEAR='2010'
ALICE_ITS='$ALICE_ROOT/ITS'
TMPPLACE='/tmp'
TMPFOLDER='1'
EXECFOLDER='$HOME/macroQAshifter'
MAXFILES='300'
echo "Run Number :[${RUN}]"
read
if [ "$REPLY" != "" ]; then
RUN=$REPLY
echo "Run $RUN"
fi
echo "Period :[${PERIOD}]"
read
if [ "$REPLY"... | ecalvovi/AliRoot | ITS/macrosSDD/ShowSDDQA.sh | Shell | bsd-3-clause | 2,058 |
#!/bin/sh
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --errors --warnings --notices --output-format human-readable-text --compile ${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$1\" .storyboard`.storyboardc ${PODS_ROOT}/$1 --sdk ${SDKROOT}"
ibtool --errors ... | chriscsc/motion-plot | examples/vendor/Pods/Pods-resources.sh | Shell | mit | 1,429 |
#!/bin/sh
if [ -f Makefile ]; then
echo "Making make distclean..."
make distclean
fi
echo "Removing autogenned files..."
rm -f config.guess config.sub configure install-sh missing mkinstalldirs Makefile.in ltmain.sh stamp-h.in */Makefile.in ltconfig stamp-h config.h.in
echo "Done."
| xzwang/fem | tslib/autogen-clean.sh | Shell | gpl-2.0 | 285 |
__cont_source_scripts()
{
local i
local dir="$1"
for i in "$dir"/*.sh; do
if test -r "$i"; then
. "$i"
fi
done
}
# CONT_SOURCE_HOOKS HOOKDIR [PROJECT]
# -----------------------------------
# Source '*.sh' files from the following directories (in this order):
# a. /usr/sha... | docent-net/Fedora-Dockerfiles | postgresql/root/usr/share/cont-lib/cont-lib.sh | Shell | gpl-2.0 | 2,473 |
if [ $# -lt 1 ]; then
echo "Usage: $0 CRL_path"
exit 1
fi
ln -s $1 `openssl crl -hash -noout -in $1`.r0
| mhrivnak/pulp | playpen/certs/create_crl_sym_link.sh | Shell | gpl-2.0 | 113 |
#!/bin/bash
#
# Checks to make sure SSLv3 is not allowed by a server.
#
THRIFTHOST=localhost
THRIFTPORT=9090
while [[ $# -ge 1 ]]; do
arg="$1"
argIN=(${arg//=/ })
case ${argIN[0]} in
-h|--host)
THRIFTHOST=${argIN[1]}
shift # past argument
;;
-p|--port)
THRIFTPORT=${argIN[1]}
shift ... | yuewko/themis | vendor/github.com/apache/thrift/test/features/nosslv3.sh | Shell | apache-2.0 | 1,112 |
#!/bin/bash
mkdir -p $PREFIX/bin
for i in transIndel_*.py; do
sed -i.bak '1s|^|#!/usr/bin/env python\'$'\n|g' ${i};
chmod 755 ${i};
cp ${i} $PREFIX/bin/;
done
| cokelaer/bioconda-recipes | recipes/transindel/build.sh | Shell | mit | 167 |
#!/bin/sh
SPOTYPING_DIR=${PREFIX}/share/SpoTyping
mkdir -p $SPOTYPING_DIR
cp -r SpoTyping-v${PKG_VERSION}-commandLine/* $SPOTYPING_DIR
mkdir -p ${PREFIX}/bin
PLOT_CMD=${PREFIX}/bin/SpoTyping_plot.r
echo '#!/usr/bin/env Rscript' > $PLOT_CMD
cat SpoTyping-v${PKG_VERSION}-commandLine/SpoTyping_plot.r >> $PLOT_CMD
chmod ... | cokelaer/bioconda-recipes | recipes/spotyping/build.sh | Shell | mit | 499 |
#!/bin/bash
CSHOST="localhost"
CSPORT="988"
USR="user"
PWD="passwd"
NETCAT="nc"
DELAY=5
get_geo()
{
eval "`echo "$2" | sed -e \"s/^.*${1} /${1}=/g\" -e 's/;.*$//g'`"
}
do_init()
{
clear
sline="`stty -a 2>/dev/null | grep rows 2>/dev/null`"
get_geo rows "$sline"
get_geo columns "$sline"
[ "$rows" -eq 0 ] ... | bas-t/oscam | Distribution/monitor/mpcsmon.sh | Shell | gpl-3.0 | 2,895 |
R CMD REMOVE --library=$PREFIX/lib/R/library/ pd.hg.focus
| joachimwolff/bioconda-recipes | recipes/bioconductor-pd.hg.focus/pre-unlink.sh | Shell | mit | 58 |
echo 'Username?'
read username
echo 'Password?'
read -s password # -s flag hides password text
echo 'Repo name?'
read reponame
echo -e "The username ${username}\n\n"
echo -e "The password ${password}\n\n"
echo -e "The reponame ${reponame}\n\n"
curl --user $username:$password https://api.bitbucket.org/1.0/repositor... | lightblueseas/linuxstuff | src/main/resources/git/impgitrep_iterate_interactive.sh | Shell | mit | 498 |
sudo cp raspberry_garden.conf /etc/init.d/raspberry_garden
sudo chmod a+x /etc/init.d/raspberry_garden
sudo update-rc.d raspberry_garden defaults
| plokk/raspberry-garden | install.sh | Shell | mit | 147 |
#!/bin/sh
export HOSTED_ZONE_NAME=$(cat $(pwd)/config/main.json | jq -r ".hosted_zone_name")
export ENVIRONMENT=$(cat $(pwd)/config/main.json | jq -r ".environment")
export COLOUR=$(cat $(pwd)/config/main.json | jq -r ".colour")
export ENVIRONMENT_SECRETS_PATH=$(pwd)/secrets/environments/${ENVIRONMENT}/${COLOUR}
exp... | nextbreakpoint/infrastructure-as-code | swarm_join.sh | Shell | mit | 2,322 |
#!/usr/bin/env bash
#
# This script is executed inside the builder image
export LC_ALL=C.UTF-8
set -e
PASS_ARGS="$*"
source ./ci/dash/matrix.sh
if [ "$RUN_INTEGRATIONTESTS" != "true" ]; then
echo "Skipping integration tests"
exit 0
fi
export LD_LIBRARY_PATH=$BUILD_DIR/depends/$HOST/lib
cd build-ci/dashcore-$... | thelazier/dash | ci/dash/test_integrationtests.sh | Shell | mit | 1,703 |
#!/bin/bash
if test $(which brew)
then
echo "Installing vscode..."
brew install --cask visual-studio-code
echo "Installing vscode extensions..."
# Run `code --list-extensions` to check current extensions
declare -a CODE_EXTENSIONS=(
TsumiNa.Seti-theme
donjayamanne.githistory
esbenp.p... | kmctown/dotfiles | vscode/install.sh | Shell | mit | 654 |
#!/bin/bash
DB_USER="patrickbalestra"
DB_NAME="patrickbalestra"
DB_PORT=5433
set -e
psql -U "$DB_USER" -d "$DB_NAME" -p $DB_PORT -a -f seed_categories.sql || (echo "🚨 Failed seed categories"; exit 1;)
psql -U "$DB_USER" -d "$DB_NAME" -p $DB_PORT -a -f seed_manufacturers.sql || (echo "🚨 Failed seed manufacturers";... | BalestraPatrick/HomeKitty | Scripts/seed.sh | Shell | mit | 958 |
#!/bin/sh
echo "Purging old build...."
rm -rf dist
rm -rf build
echo "Creating new app...."
python setup.py py2app
cp HVR* dist/gORAnalysis.app/Contents/Resources/.
echo "Done!"
| BioSeq/Genetics-Of-Race-Mac-App | compile.sh | Shell | mit | 181 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-3261-1
#
# Security announcement date: 2015-05-15 00:00:00 UTC
# Script generation date: 2017-01-01 21:07:23 UTC
#
# Operating System: Debian 8 (Jessie)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libmodule-signature-perl:0.73-1+deb... | Cyberwatch/cbw-security-fixes | Debian_8_(Jessie)/x86_64/2015/DSA-3261-1.sh | Shell | mit | 722 |
#!/bin/bash
set -e
UDIR=${Q_SRC_ROOT}/UTILS/lua
test -d $UDIR
rm -rf ../gen_inc/; mkdir -p ../gen_inc/
rm -rf ../gen_src; mkdir -p ../gen_src
lua $UDIR/cli_extract_func_decl.lua mmap.c ../gen_inc
lua $UDIR/cli_extract_func_decl.lua is_valid_chars_for_num.c ../gen_inc
lua $UDIR/cli_extract_func_decl.lua f_mmap.c ../gen... | NerdWalletOSS/Q | UTILS/src/DEPRECATED/gen_files.sh | Shell | mit | 1,680 |
#!/usr/bin/env bash
# ensure that we have the server software
if [ ! -f /data/minecraft_server.jar ]; then
echo "Downloading minecraft server ..."
curl --fail --silent "https://s3.amazonaws.com/Minecraft.Download/versions/1.8.1/minecraft_server.1.8.1.jar" -o /data/minecraft_server.jar
fi
# accept eula
if [ ! -f ... | monsendag/minecraft-server | server.sh | Shell | mit | 463 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2013:1476
#
# Security announcement date: 2013-10-30 04:43:50 UTC
# Script generation date: 2017-01-01 21:10:49 UTC
#
# Operating System: CentOS 6
# Architecture: i386
#
# Vulnerable packages fix on version:
# - xulrunner.i686:17.0.10-1.el6.centos
# - ... | Cyberwatch/cbw-security-fixes | CentOS_6/i386/2013/CESA-2013:1476.sh | Shell | mit | 901 |
#!/usr/bin/env bash
set -e
if [[ -z ${1} ]]; then
echo "usage: scripts/get_swagger_json.sh <version>"
exit 1
fi
curl -f "http://kubernetes.io/swagger-spec/api/${1}/" -o resources/swagger/${1}.json
| yanatan16/clj-kubernetes-api | scripts/get_swagger_json.sh | Shell | mit | 207 |
mkdir -p build
#添加-fpic 这个compiler flag,告诉编译器,
#生成的对象模块采用浮动的(可重定位的)地址。缩微词 pic 代表“位置无关代码”(position independent code)
g++ -c say_util.cpp -fpic -o build/say_util.o
g++ -c say_hello_func.cpp -fpic -o build/say_hello_func.o
g++ -shared build/say_util.o build/say_hello_func.o -o build/libsay.so
rm build/*.o
export LD_LIB... | YcheLanguageStudio/CPP11Study | Guidance/GccUsage/build_say_hello_with_shared_object.sh | Shell | mit | 524 |
#!/bin/bash
# SysScout - A simple menu driven shell script to get information about your Linux-based System.
# Author: Josh Brunty
# Email: josh [dot] brunty [at] marshall [dot] edu
# Twitter: @joshbrunty @MUDigForensics
# Version 1.0.3
# Updated 31October2016
# v.1.0.3 fix- fixed minor issue with date output (line 7... | joshbrunty/SysScout | SysScout.sh | Shell | mit | 5,206 |
#!/bin/sh
cd "$(dirname "$0")"
if [ "$(ps -C "mono" -o "cmd" --no-headers | grep "EmuHawk.exe")" ]; then
echo "EmuHawk is already running, exiting..."
exit 0
fi
libpath=""
if [ "$(command -v lsb_release)" ]; then
case "$(lsb_release -i | cut -c17- | tr -d "\n")" in
"Arch"|"ManjaroLinux") libpath="/usr/lib/wine";;
... | ircluzar/RTC3 | Real-Time Corruptor/BizHawk_RTC/Assets/EmuHawkMono.sh | Shell | mit | 876 |
#!/bin/bash
ls /sys/class/net 2> /dev/null | while read interface
do
speed=$(cat /sys/class/net/$interface/speed 2> /dev/null)
if [[ -z "$speed" ]]; then
continue
fi
# the speed is measured in megabytes
echo "net,interface=$interface,speed=$speed interface_speed=$speed"
done
| monitoring-tools/telegraf-plugins | netspeed/netspeed.sh | Shell | mit | 306 |
#!/bin/bash
echo 10 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio10/direction
echo 1 > /sys/class/gpio/gpio10/value
sleep 1
echo 0 > /sys/class/gpio/gpio10/value
echo 10 > /sys/class/gpio/unexport
| mech0s/room-defence-system | testscripts/gunfire.sh | Shell | mit | 216 |
#!/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 7 (Wheezy)
# Architecture: armv7l
#
# Vulnerable packages fix on version:
# - cups:1.5.3-5+deb7u6
# - libcups2:... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/armv7l/2015/DSA-3283-1.sh | Shell | mit | 3,061 |
echo "Import Pocci Template"
${BIN_DIR}/oneoff nodejs bash ./import-pocci-template.sh
| xpfriend/pocci-template-examples | services/core/zabbix/update-container.sh | Shell | mit | 86 |
#!/bin/sh
basedir=$(cd `dirname $0`; pwd)
export GOPATH=$(pwd)
export GOBIN=$(pwd)/bin
go get github.com/go-martini/martini
go install src/main.go
| Delostik/SimpleWebHook | build.sh | Shell | mit | 151 |
#export NNN_FCOLORS='0000E631000000000000000'
alias nnn='nnn -e'
#alias ls='nnn -e'
NNN_FIFO='/tmp/nnn.fifo'
| hypebeast/dotfiles | nnn/.oh-my-zsh/custom/nnn.zsh | Shell | mit | 109 |
#!/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... | yuanzj/RKBluetoothLEKit | Example/Pods/Target Support Files/Pods-RKBluetoothLEKit_Tests/Pods-RKBluetoothLEKit_Tests-frameworks.sh | Shell | mit | 4,055 |
#!/usr/bin/env bash
echo "$@" | pbcopy
| dunn/mb-dotfiles | bin/copy.sh | Shell | mit | 40 |
#!/usr/bin/env bash
# always immediately exit upon error
set -e
# start in project root
cd "`dirname $0`/.."
./bin/require-clean-working-tree.sh
git reset HEAD --hard
read -p "Enter the version you want to publish, with no 'v' (for example '1.0.1'): " version
if [[ ! "$version" ]]
then
echo "Aborting."
exit 1
fi
... | bmelo/matlab-utils | bin/publish-release.sh | Shell | mit | 704 |
#!/bin/sh
# Copyright (c) 2013 The Bitcoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Helper script for pull-tester.
#Param 1: path to bitcoin srcroot
#Param ...: arguments for build-test.sh
if [ $# -l... | getcoin/globalboosty | qa/pull-tester/pull-tester.sh | Shell | mit | 524 |
# remotely run latest version of this script
# wget -O - https://github.com/boardstretcher/bash-redis/blob/master/install-arch.sh | bash
# installation on vanilla arch linux
# virtual machine provided by rackspace
if [[ $EUID -ne 0 ]]; then
echo "script must be run as root"
exit
fi
if [ ! -f /etc/arch-release ]; the... | boardstretcher/perf2redis | install-arch.sh | Shell | mit | 885 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2743-4
#
# Security announcement date: 2015-10-05 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:49 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: i686
#
# Vulnerable packages fix on version:
# - firefox:41.0.1+build2-0ubuntu0.14.04.1... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/i686/2015/USN-2743-4.sh | Shell | mit | 1,055 |
#!/bin/zsh
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color|*-256color) color_prompt... | mendlik/dotfiles | zsh/.zsh/prompts/basic.zsh | Shell | mit | 1,464 |
#!/bin/sh
docker rm -f edvid
docker run -P -d -p 80:5000 --name edvid --link mongo:mongo danheidel/edvid
| danheidel/education-video.net | startedvid.sh | Shell | mit | 107 |
#!/usr/bin/env bash
work_dir="$(pwd)"
tools_dir="$(cd "$(dirname "$0")" && pwd)"
tmp="/tmp/$$"
URL_REDIRECTORS="$(cat << FIN
1drv.ms
amzn.to
bit.ly
boog.io
bugzil.la
g.co
gigaz.in
go.ascii.jp
goo.gl
fb.me
is.gd
kuku.lu
macaf.ee
nico.ms
nico.sc
num.to
ow.ly
p.tl
prt.nu
r10.to
s.nikkei.com
sdrv.ms
t.asahi.com
t.co
tin... | 84115/twooo | tweet.sh | Shell | mit | 7,265 |
#!/usr/bin/env bash
set -euo pipefail
# Test if $1 is available
isavailable() {
type "$1" &>/dev/null
}
LOGFILE="/tmp/dotfiles.log"
echo "Running '$0' $(date)" | tee -a $LOGFILE
make all
| benmezger/dotfiles | install.sh | Shell | mit | 191 |
#!/bin/bash
ip2dec () {
local a b c d ip=$@
IFS=. read -r a b c d <<< "$ip"
printf '%d' "$((a * 256 ** 3 + b * 256 ** 2 + c * 256 + d))"
}
IPS=`dashd masternode list | grep : | cut -d \" -f 2 | cut -d : -f 1`
printf '<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST... | UdjinM6/dashwallet | BreadWallet/masternodeList.sh | Shell | mit | 539 |
#!/bin/bash
BATCHFILE="$1"
if [ ! -f "$BATCHFILE" ]; then
echo "Cannot find batch file (batch: $BATCHFILE)" >&2
exit 1
fi
source $BATCHFILE
DATAFILE="$(Rscript gen_data.R $BATCHSET)"
if [ $? -ne 0 ] || [ ! -f "$DATAFILE" ]; then
echo "Cannot generate data file (batch: $BATCHFILE)" >&2
exit 1
fi
METHODS_TORUN=... | fsavje/sim_gfm | complexity/batch.sh | Shell | mit | 1,465 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2012:1483
#
# Security announcement date: 2012-11-22 06:01:09 UTC
# Script generation date: 2017-02-03 21:12:36 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - thunderbird.x86_64:10.0.11-1.el5.centos
... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2012/CESA-2012:1483.sh | Shell | mit | 907 |
#!/bin/bash
DATADIR="/home/jack/src/SideCoin/.sidecoin"
rm -rf "$DATADIR"
mkdir -p "$DATADIR"/regtest
touch "$DATADIR/regtest/debug.log"
tail -q -n 1 -F "$DATADIR/regtest/debug.log" | grep -m 1 -q "Done loading" &
WAITER=$!
PORT=`expr $BASHPID + 10000`
"/home/jack/src/SideCoin/src/sidecoind" -connect=0.0.0.0 -datadir="... | AugurProject/sidecoin | qa/pull-tester/run-sidecoind-for-test.sh | Shell | mit | 880 |
function ramSummarizer() {
# Get current RAM usage in MB (integer)
ram_used=$(ps -u $USER -o rss= | awk '{rss += $1} END {printf("%0.f", rss / 1000)}')
echo "\033[34m$ram_used MB\033[0m used"
}
registerSummarizer "RAM" ramSummarizer
| lukasbestle/my-welcome | summarizers/05-ram.sh | Shell | mit | 239 |
#!/bin/bash
# This file is managed by salt, do not edit.
[ -f /etc/default/softether-vpnclient ] && source /etc/default/softether-vpnclient
/opt/vpnclient/vpnclient start
PID=$?
sleep 2
ifup $IFUP_INTERFACE
exit 0
| pcdummy/saltstack-softether-formula | softether/files/systemd-start-script.sh | Shell | mit | 215 |
#!/bin/bash
set -o xtrace
scripts/bootstrap-roles.sh
scripts/bootstrap-inventory.sh
scripts/bootstrap-jira.sh
| pantarei/ansible-playbook-jira | scripts/bootstrap-aio.sh | Shell | mit | 112 |
#!/bin/sh
#install global
sudo apt-get update && sudo apt-get install -y git curl tmux vim i3 dmenu dunst zsh build-essential vim thunderbird htop arc-theme lxappearance weechat
#powerline fonts
# git clone https://github.com/powerline/fonts.git
# cd fonts || exit
# ./install.sh
#
# #oh-my-zsh
# sh -c "$(curl -fsSL ht... | malko42/dotfiles | src/script_init.sh | Shell | mit | 1,871 |
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
# vi: set expandtab shiftwidth=4 :
# auther: shun kawai
#===============================
# smart-install.sh
#===============================
# err masage
function usage_exit() {
echo 'Usage: smart-install packa-gename'
exit 1
}
function already_installed() {
ec... | mypaceshun/practice | bin/smart-install.sh | Shell | mit | 833 |
#!/bin/sh
# Exit if an error is encountered
set -e -x
# Unzip EAP to the version-generic home directory
# TODO make more generic so this doesn't have to change for upgrades
echo "unzipping files..."
unzip -q ${INSTALL_DIR}/jboss-eap-7.2.0.zip -d ${EAP_PARENT}
mv ${EAP_PARENT}/jboss-eap-7.2 ${EAP_PARENT}/jboss-eap
chm... | jlgrock/docker.jboss-eap | eap-files/resources/install_eap.sh | Shell | mit | 2,163 |
#!/bin/sh
LIME_FETCH_URL=http://trac.symfony-project.org/browser/tools/lime/trunk/lib/lime.php?format=txt
LIME_TEST=`dirname $0`/test/lib/lime.php
if [ ! -e $LIME_TEST ];
then
wget -O $LIME_TEST $LIME_FETCH_URL
fi
| kjim/phrack | sync_vendor_libs.sh | Shell | mit | 219 |
#!/bin/bash
set -x
ANDROID_TARGET=android-19
ANDROID_ABI=armeabi-v7a
echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
emulator -avd test -no-skin -no-audio -no-window &
adb wait-for-device
adb shell input keyevent 82 &
find /home/travis/build/ -name "*.apk"
adb devices -l
if [ ... | snowch/android-tdd-playground | connect_to_device.sh | Shell | mit | 1,206 |
#!/bin/bash
function usage() {
echo "Usage: $0 token chat message ..."
echo " $0 token chat @filename"
exit ${1:-0}
}
[ -z "$3" ] && usage
### Just hard coded parameter order...
token=$1
chat_id=$2
### Is the 3rd given parameter a file name (starting with @)?
if [ ${3:0:1} == @ ]; then
### Use... | KKoPV/PVLng-scripts | bin/telegram.sh | Shell | mit | 653 |
#!/usr/bin/env bash
#set -x
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $CURRENT_DIR/../tmuxomatic.sh
source $CURRENT_DIR/../helpers.sh
tmuxomatic__begin begin_hook
begin_with_conf "benchmark"
init_pane
tmuxomatic__exec "cat ./test/fixtures/grep-output"
invoke_fingers
tmuxomatic send-key... | Morantron/tmux-fingers | test/benchmarks/basic_benchmark.sh | Shell | mit | 354 |
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2012:0734
#
# Security announcement date: 2012-06-13 20:26:37 UTC
# Script generation date: 2016-10-20 21:19:33 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.6.0-sun.x86_64:1.6.0.33-1jpp.1.e... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2012/RHSA-2012:0734.sh | Shell | mit | 2,029 |
#!/bin/bash
#
# env vars:
# - ELECBUILD_NOCACHE: if set, forces rebuild of docker image
# - ELECBUILD_COMMIT: if set, do a fresh clone and git checkout
set -e
PROJECT_ROOT="$(dirname "$(readlink -e "$0")")/../.."
PROJECT_ROOT_OR_FRESHCLONE_ROOT="$PROJECT_ROOT"
CONTRIB="$PROJECT_ROOT/contrib"
CONTRIB_WINE="$CONTRIB/bu... | pooler/electrum-ltc | contrib/build-wine/build.sh | Shell | mit | 1,706 |
#!/bin/bash
# Use unofficial Bash Strict Mode
set -euo pipefail
IFS=$'\n\t'
# LOG
NC='\033[0m' # No Color
RED='\033[0;31m'
YELLOW='\033[0;33m'
GREEN='\033[0;32m'
function error() {
typeset message
message=$1
printf "${RED}[ERROR]${NC} - $message\n"
}
function warning() {
typeset message
message... | EthanCai/mac-os-scripts | lib/common.sh | Shell | mit | 2,760 |
#!/bin/zsh
#
# ____ _ _____ _ _
# | _ \ ___ | |_| ___(_) | ___ ___
# | | | |/ _ \| __| |_ | | |/ _ \/ __|
# | |_| | (_) | |_| _| | | | __/\__ \
# |____/ \___/ \__|_| |_|_|\___||___/
#
# DotFiles v0.2.447
# https://dotfiles.io
# ... | reedia/bash_profile | src/dotfiles/zsh/configurations.zsh | Shell | mit | 649 |
#!/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... | priyanka16/RPChatUI | Example/Pods/Target Support Files/Pods-RPChatUI_Example/Pods-RPChatUI_Example-frameworks.sh | Shell | mit | 3,707 |
#!/bin/sh
command -v npm >/dev/null 2>&1 || { echo >&2 "This script requires npm but it's not available in this context. Ending without running pre-commit hook."; exit 0; }
npm run lint &&
npm t
| MyFoodBag/eslint-config-mfb-node | pre-commit.sh | Shell | mit | 196 |
#!/bin/bash
# this should work no matter where it is called from
# that is, this will tell you what is this script's
# base directory, indepentent from the working dir
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo $DIR
| mvendra/sandboxes | bash/scripts_own_dir.sh | Shell | mit | 237 |
#! /bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pull=off
source ${DIR}/lib.sh
if [ $# -lt 1 ]; then
echo "You must supply a password for the ti user account."
exit 2
fi
PW=$1 | figshare/Total-Impact | deploy/test.sh | Shell | mit | 204 |
#!/bin/sh
node "$ASKPASS_MAIN" "$@"
| desktop/dugite | test/auth/ask-pass.sh | Shell | mit | 37 |
#!/bin/bash
clear
RED='\033[0;31m'
NC='\033[0m' # No Color
outname="sysinfo.out";
main="sysinfo.c"
gcccmd="gcc -Wall $main -o $outname"
rm $outname
printf "${RED}Build started...${NC}\n"
$gcccmd
printf "${RED}Build finished...${NC}\n"
printf "${RED}Running...${NC}\n"
./$outname
printf "${RED}Finished.${NC}\n"
| adrianlita/academic | sysinfo/build.sh | Shell | mit | 316 |
#!/usr/bin/env bash
set -euo pipefail
command -v port >/dev/null 2>&1 || { echo "I require port but it's not installed, or not found in PATH. Aborting." >&2; exit 1; }
sudo port -v sync &&
sudo port -v upgrade outdated &&
sudo port -v rev-upgrade
exit 0 | milamd/sh | macportsUpdate.sh | Shell | mit | 256 |
#!/usr/bin/env bash
# Define different RVMs
declare -a RVMS=(\
'ruby-1.9.3-p484@databox' \
'ruby-2.0.0-p353@databox' \
# Add others here
)
# Loop over RSMs and exec RSpec
for r in "${RVMS[@]}"; do
set -o verbose
echo "Testing $r"
rvm $r exec bundle install --quiet
rvm $r exec bundle exec rspec --fail-fa... | sraka1/databox | test_rvms.sh | Shell | mit | 346 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:2142
#
# Security announcement date: 2016-11-02 16:58:44 UTC
# Script generation date: 2017-01-16 21:17:45 UTC
#
# Operating System: Red Hat 5
# Architecture: i386
#
# Vulnerable packages fix on version:
# - bind97.i386:9.7.0-21.P2.el5_11.9
# - bi... | Cyberwatch/cbw-security-fixes | Red_Hat_5/i386/2016/RHSA-2016:2142.sh | Shell | mit | 1,298 |
#!/bin/bash
# clean existing vim files and symlinks
rm -f $HOME/.vimrc
rm -rf $HOME/.vim
rm -rf $PWD/src/.vim/bundle
rm -rf $PWD/src/.vim/.netrwhist
# clean existing .tmux.conf
rm -rf $HOME/.tmux.conf
# clean existing zsh related files
rm -rf $HOME/.zprezto
rm -rf $HOME/.zlogin $HOME/.zlogout $HOME/.zpreztorc $HOME... | renuvair/dotfiles | clean.sh | Shell | mit | 358 |
#!/usr/bin/env clrwrap
sqlsharp-pnet.exe
| jjenki11/blaze-chem-rendering | qca_designer/lib/ml-pnet-0.8.1/tools/SqlSharp/sqlsharp-run.sh | Shell | mit | 41 |
#!/bin/bash
set -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"$DIR"/java-daemon/start-daemon.sh $@ | ltg-uic/wc-java-notifier-bot | src/main/java-daemon/bin/startup.sh | Shell | mit | 112 |
#!/usr/bin/env bash
#########################################################################
# Script Name: yad2ogg
# Script Version: 1.0.0
# Script Date: 12 Juli 2016
#########################################################################
#
# Based on the idea of dir2ogg
#
##########################################... | idelsink/yad2ogg | yad2ogg.sh | Shell | mit | 35,300 |
#!/bin/sh
set -e
set -u
set -o pipefail
if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then
# If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy
# resources to, so exit 0 (signalling the script phase was successful).
exit 0
fi
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZE... | albertodebortoli/Skopelos | Example/Pods/Target Support Files/Skopelos/Skopelos-Unit-Tests-resources.sh | Shell | mit | 8,913 |
#!/bin/bash
rm combined/*
g++ new_temp_test.cpp ../../src/functions.cpp ../../src/globals.cpp ../../src/classes.cpp -lgsl -lgslcblas -o new_temp_test.o
| homeslike/OpticalTweezer | test/new_temp_test/compile_new_temp_test.sh | Shell | mit | 154 |
/Applications/NaturalDocs/NaturalDocs -r -i hardware -o HTML docs -p docProject
| snhack/LogoBot | hardware/document.sh | Shell | mit | 80 |
set -e
export DEBIAN_FRONTEND=noninteractive
export DOKKU_REPO=${DOKKU_REPO:-"https://github.com/h4ck4life/dokku.git"}
apt-get update
apt-get install -y git make curl
cd ~ && test -d dokku || git clone $DOKKU_REPO
cd dokku && test $DOKKU_BRANCH && git checkout origin/$DOKKU_BRANCH || true
make all
echo
echo "Be sure... | h4ck4life/dokku | bootstrap.sh | Shell | mit | 447 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.