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
##########################################################################
#Aqueduct - Compliance Remediation Content
#Copyright (C) 2011,2012
# Vincent C. Passaro (vincent.passaro@gmail.com)
# Shannon Mitchell (shannon.mitchell@fusiontechnology-llc.com)
#
#This program is free software; you ca... | quark-pat/CLIP | packages/aqueduct/aqueduct/compliance/Bash/STIG/rhel-5/prod/GEN003140.sh | Shell | apache-2.0 | 3,803 |
#!/bin/bash
set -euo pipefail
GO_VERSION="1.9"
export GoInstallDir="/tmp/go$GO_VERSION"
mkdir -p $GoInstallDir
if [ ! -f $GoInstallDir/go/bin/go ]; then
GO_MD5="4577d9ba083ac86de78012c04a2981be"
URL=https://buildpacks.cloudfoundry.org/dependencies/go/go${GO_VERSION}.linux-amd64-${GO_MD5:0:8}.tar.gz
echo "----... | oocl-ncc-itm/nodejs-buildpack | scripts/install_go.sh | Shell | apache-2.0 | 777 |
source ../testsupport.sh
source ./cleanup.sh
run test.txt
grep -q "Stage hello" test.out || err "Failed to find expected stage hello"
grep -q "Stage world" test.out || err "Failed to find expected stage world"
grep -q "Stage end" test.out || err "Failed to find expected stage end"
[ ! -f test.txt.hello ] && err "Fa... | vivovip/bpipe | tests/nested_parallel/run.sh | Shell | bsd-3-clause | 996 |
set -e
BUILD_DIR=$(dirname -- $0)
MONO_PATH=$BUILD_DIR/../deps/NUnit.ConsoleRunner.3.6.1/tools \
cp $BUILD_DIR/../deps/NUnit/nunit.framework.* $BUILD_DIR/gmake/lib/Release_*/
mono $BUILD_DIR/../deps/NUnit.ConsoleRunner.3.6.1/tools/nunit3-console.exe -noresult $BUILD_DIR/gmake/lib/Release_*/*Tests*.dll
| zillemarco/CppSharp | build/RunTests.sh | Shell | mit | 303 |
#!/usr/bin/env bash
DB=$1;
mysql -uhomestead -psecret -e "DROP DATABASE IF EXISTS $DB";
mysql -uhomestead -psecret -e "CREATE DATABASE $DB";
| dnacreative/SimpleLance | scripts/create-mysql.sh | Shell | mit | 142 |
#!/bin/bash
touch ~/.gitcookies
chmod 0600 ~/.gitcookies
git config --global http.cookiefile ~/.gitcookies
tr , \\t <<\__END__ >>~/.gitcookies
go.googlesource.com,FALSE,/,TRUE,2147483647,o,git-rileykarson.google.com=1/rOwTyPQnsZnGgNtlqMhkqM63-n0W68pQ7GfhAKGIy4E
__END__
| hashicorp/terraform-provider-google | scripts/gogetcookie.sh | Shell | mpl-2.0 | 273 |
# Based on: https://github.com/concourse/docker-image-resource/blob/master/assets/common.sh
DOCKER_LOG_FILE=${DOCKER_LOG_FILE:-/tmp/docker.log}
SKIP_PRIVILEGED=${SKIP_PRIVILEGED:-false}
STARTUP_TIMEOUT=${STARTUP_TIMEOUT:-120}
sanitize_cgroups() {
mkdir -p /sys/fs/cgroup
mountpoint -q /sys/fs/cgroup || \
mount... | hello2009chen/spring-boot | ci/images/docker-lib.sh | Shell | apache-2.0 | 2,776 |
#!/bin/bash
fw_depends rvm ruby-2.2
sed -i 's|127.0.0.1|'${DBHOST}'|g' config/database.yml
rvm ruby-$MRI_VERSION do bundle install --jobs=4 --gemfile=$TROOT/Gemfile --path=vendor/bundle
rvm ruby-$MRI_VERSION do bundle exec puma -t 8:32 -w 8 --preload -b tcp://0.0.0.0:8080 -e production &
| ashawnbandy-te-tfb/FrameworkBenchmarks | frameworks/Ruby/rack/run_mri_puma.sh | Shell | bsd-3-clause | 293 |
#!/bin/bash
# obtain and optionally verify Bench / signature
# if no reference is given, the output is deliberately limited to just the signature
error()
{
echo "running bench for signature failed on line $1"
exit 1
}
trap 'error ${LINENO}' ERR
# obtain
signature=`./stockfish bench 2>&1 | grep "Nodes searched :... | crunchyNYC/Stockfish2016 | tests/signature.sh | Shell | gpl-3.0 | 620 |
#!/usr/bin/env 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 A... | greghogan/flink | flink-end-to-end-tests/test-scripts/test_confluent_schema_registry.sh | Shell | apache-2.0 | 5,041 |
#!/bin/bash
FN="TxDb.Ptroglodytes.UCSC.panTro5.refGene_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/annotation/src/contrib/TxDb.Ptroglodytes.UCSC.panTro5.refGene_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/TxDb.Ptroglodytes.UCSC.panTro5.refGene_3.12.0.tar.gz"
"https://depot.galaxypr... | cokelaer/bioconda-recipes | recipes/bioconductor-txdb.ptroglodytes.ucsc.pantro5.refgene/post-link.sh | Shell | mit | 1,442 |
#!/bin/bash
# config
releaseName="Brackets"
version="1.5"
dmgName="${releaseName} Release ${version}"
format="bzip2"
encryption="none"
tmpLayout="./dropDmgConfig/layouts/tempLayout"
appName="${releaseName}.app"
tempDir="tempBuild"
# rename app and copy to tempBuild director
rm -rf $tempDir
mkdir $tempDir
cp -r "./sta... | jomolinare/brackets-shell | installer/mac/buildInstaller.sh | Shell | mit | 1,256 |
#!/usr/bin/env bash
# Usage:
# ./setup-data-dir.sh [path to rkt data dir]
# The script can take one parameter being a path to the rkt data
# directory. If none is passed, /var/lib/rkt is assumed.
# Please keep it in sync with dist/init/systemd/tmpfiles.d/rkt.conf!
set -e
if [[ $EUID -ne 0 ]]; then
echo "This scr... | yifan-gu/rkt | dist/scripts/setup-data-dir.sh | Shell | apache-2.0 | 2,556 |
#!/bin/bash
###########################################################################
#
# Copyright 2017 Samsung Electronics 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 Licens... | sunghan-chang/TizenRT | build/configs/artik05x/scripts/partition_gen.sh | Shell | apache-2.0 | 4,180 |
#! /bin/bash
# A tls test.
# Copyright (C) 2003-2014 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
... | sebastianscatularo/glibc | nptl/tst-tls6.sh | Shell | gpl-2.0 | 2,544 |
#!/usr/bin/env bash
curl -s http://www.gutenberg.org/cache/epub/76/pg76.txt |
tr '[:upper:]' '[:lower:]' | grep -oE '\w+' | sort |
uniq -c | sort -nr | head -n 10
| xianjunzhengbackup/code | shell/book/ch04/top-words-3.sh | Shell | mit | 163 |
#!/bin/bash
# Copyright 2014 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 applicable law ... | ahakanbaba/kubernetes | hack/lib/golang.sh | Shell | apache-2.0 | 23,906 |
PATH=/usr/local/pypy/bin:$PATH
| gavioto/travis-cookbooks | cookbooks/pypy/files/default/etc/profile.d/pypy.sh | Shell | mit | 31 |
#!/bin/bash
mv * "$PREFIX/bin/"
mkdir -p "$PREFIX/home"
export HOME="$PREFIX/home"
sh "$PREFIX/bin/setup.sh"
| JenCabral/bioconda-recipes | recipes/entrez-direct/build.sh | Shell | mit | 110 |
#!/bin/sh
test_description='git bugreport'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
# Headers "[System Info]" will be followed by a non-empty line if we put some
# information there; we can make sure all our headers were followed by some
# information to check if the command was successful.
HEADER_PATTERN="^\[... | abg1979/git | t/t0091-bugreport.sh | Shell | gpl-2.0 | 2,114 |
#!/usr/bin/env bash
set -e -o pipefail
[[ -z "$NGIO_ENV_DEFS" ]] && . ./scripts/env-set.sh > /dev/null
if [[ "x$1" == "x-v" ]]; then VERBOSE=1; shift; fi
SITE=./www
CHECK_FOR=bad-code-excerpt
LOGFILE_PREFIX=$CHECK_FOR-log
LOGFILE_FULL=$TMP/$LOGFILE_PREFIX-full.txt
LOGFILE=$TMP/$LOGFILE_PREFIX.txt
SKIPFILE_BASE=$C... | IdeaBlade/angular.io | scripts/check-docs.sh | Shell | mit | 1,446 |
#!/usr/bin/env bash
#
# Configure.sh Generates interactively a config.h from config.in
#
# net-tools A collection of programs that form the base set of the
# NET-3 Networking Distribution for the LINUX operating
# system.
#
# Usage: Install.sh [--nobackup] [--test]
#
# Version: Install.sh 1.65 (1996-01-12)
#
# Author... | kidmaple/CoolWall | user/net-tools/configure.sh | Shell | gpl-2.0 | 3,931 |
#!/bin/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 applicable law o... | eastbanctech/kubernetes-contrib | micro-demos/daemon_sets/split1_hit_svc.sh | Shell | apache-2.0 | 944 |
#!/bin/bash
# Copyright 2016, Google Inc.
# 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
# notice, this list of conditio... | jcanizales/grpc | tools/gource/make-video.sh | Shell | bsd-3-clause | 1,882 |
#
# This helper is for templates using GNU configure scripts.
#
do_configure() {
: ${configure_script:=./configure}
${configure_script} ${configure_args}
}
do_build() {
: ${make_cmd:=make}
${make_cmd} ${makejobs} ${make_build_args} ${make_build_target}
}
do_check() {
if [ -z "$make_cmd" ] && [ -z "$make_check_... | NeoChontrix/void-packages | common/build-style/gnu-configure.sh | Shell | bsd-2-clause | 743 |
#
# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foun... | frohoff/jdk8u-jdk | test/sun/tools/jstat/jstatGcMetaCapacityOutput1.sh | Shell | gpl-2.0 | 1,395 |
#!/usr/bin/env bash
rm "$1" | tsdmgz/ansible | test/integration/targets/script/files/remove_afile.sh | Shell | gpl-3.0 | 28 |
#!/bin/sh -
#
# $OpenBSD: newvers.sh,v 1.10 2008/03/09 12:03:03 sobrado Exp $
# $NetBSD: newvers.sh,v 1.3 1996/06/14 20:03:04 cgd Exp $
#
# Copyright (c) 1984, 1986, 1990, 1993
# The Regents of the University of California. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# m... | orumin/openbsd-efivars | arch/alpha/stand/boot/newvers.sh | Shell | isc | 2,055 |
#!/bin/sh
set -e
# Let's automate the install some Firefox addons
# We used the instructions here to prepare our addons: http://askubuntu.com/a/73480
# Then we zipped the contents and had Packer transfer them to the /tmp directory of our VM
# Untar the file Packer uploaded for us
tar zxf /tmp/add-ons.tar.gz -C /usr/l... | jameswhiteman/packer-kali | scripts/software.sh | Shell | isc | 351 |
#!/bin/bash
sudo -s
xterm -e 'sudo passwd' & read -n 1 -p "Press Enter to continue once you have set a new username and password" passwdchanged
sudo apt-get update
sudo apt-get install expect -Y
sudo apt-get install openvpn -Y
cp -r /usr/share/doc/openvpn/examples/easy-rsa/2.0 /etc/openvpn/easy-rsa
cd /etc/openvpn/easy... | MaxDistructo/ShellScripts | linux-shell/InstallOpenVPN.sh | Shell | mit | 1,500 |
#!/bin/sh
set -e
./mkinitrd.sh
./strip-bin.sh
cd ..
rm -rf isodir/boot/*
mkdir -p isodir
mkdir -p isodir/boot
mkdir -p isodir/boot/grub
rm -f isodir/LudOS.iso
cp build/bin/LudOS.bin isodir/boot/LudOS.bin
cp build/bin/stripped.bin isodir/boot/stripped.bin
cp build/bin/initrd.tar isodir/boot/initrd.tar
cat > is... | LugosFingite/LudOS | tools/iso.sh | Shell | mit | 499 |
#!/usr/bin/env bash
set -uo pipefail
IFS=$'\n\t'
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"
ROOT="$(dirname "$(dirname "$DIR")")"
function assert {
if [[ "$1" != "$2" ]]; then
echo -e "\n\e[31m$3\e[0m" >&2
echo -e "Output was\n$4" >&2
exit 1
fi
echo -n '.'
}
function controller {
phpdbg -qrr "$ROO... | Mikulas/test-workers | tests/cases/controller.sh | Shell | mit | 1,129 |
#!/bin/bash
set -e
if [ $CKANVERSION == 'master' ]
then
export CKAN_MINOR_VERSION=100
else
export CKAN_MINOR_VERSION=${CKANVERSION##*.}
fi
if (( $CKAN_MINOR_VERSION >= 9 ))
then
pytest --ckan-ini=subdir/test.ini --cov=ckanext.archiver ckanext/archiver/tests
else
nosetests --ckan --nologcapture --with... | ckan/ckanext-archiver | bin/travis-run.bash | Shell | mit | 474 |
#!/usr/bin/env bash
docker run --rm -p 4000:4000 -v `pwd`:/src site:serve "$@"
| mmorse1217/mmorse1217.github.com | docker_serve.sh | Shell | mit | 79 |
#!/bin/bash
#
# This script is executed with TravisCI (see .travis.yml file) on the server using SSH
#
# Required :
# * pm2
# * node
# * other dependencies refereced in the README.md file
#
cd `dirname $0`
printf "`date +%Y-%m-%d` : Trying ...\n" >> deploy.log
#PM2
echo "Cheking PM2 ..."
if npm list -g --depth=0 | ... | league-of-legends-devs/feeder.lol-item-sets-generator.org | deploy.sh | Shell | mit | 932 |
docker stop flask && docker rm flask
docker run --name flask -d -p 22 -p 8080:8080 sivakumarkailasam/flask_server /usr/sbin/sshd -D
docker run --link flask:flask -i -t sivakumarkailasam/fabric_server
| sivakumar-kailasam/fabric-demo | run.sh | Shell | mit | 201 |
_hr_commands() {
local cmds
local -a commands
cmds="$(hr commands)"
commands=(${(ps:\n:)cmds})
_wanted command expl "hr command" compadd -a commands
}
_hr_subcommands() {
local cmd subcmds
local -a commands
cmd="${words[2]}"
subcmds="$(hr completions $cmd ${words[3,$(($CURRENT - 1))]})"
if [ -n "$s... | hashrocket/hr | completions/hr.zsh | Shell | mit | 568 |
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2014:0148
#
# Security announcement date: 2014-02-10 17:32:17 UTC
# Script generation date: 2016-01-11 19:14:44 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - spacewalk-base-minimal:2.0.3-19.el6sat.noarch
# ... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2014/RHSA-2014:0148.sh | Shell | mit | 2,710 |
#!/bin/bash
# Usage: CARD='/Volumes/MY CARD' sh storage-test.bash
set -o errexit -o pipefail -o nounset
num=${NUM:-20}
folder=${FOLDER:-test-files}
log_file=${LOG_FILE:-log}
card=${CARD%/}
unset NUM FOLDER LOG_FILE CARD
print_message() {
tput setaf 2 # green
echo "$@"
tput sgr0
}
print_error() {
tput setaf 1 # ... | franklinyu/snippets | storage-test.bash | Shell | mit | 1,387 |
#!/usr/bin/env bash
function is_git_repository {
git branch > /dev/null 2>&1
}
function git_branch_name() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/';
}
function set_git_branch() {
unset BRANCH
local branch=`git_branch_name`;
if test $branch
then
BRANCH="${branch}"
fi
}
func... | connorjacobsen/bourne | lib/appearance.sh | Shell | mit | 1,819 |
#!/bin/bash
SIZE=$1
awk '{s[$2]+=$1}END{for(i in s){print s[i],i}}' | sort -n | tail -$SIZE
| andrewguy9/tt | naive_awk.sh | Shell | mit | 94 |
mkdir build
mkdir build/src
git clone https://github.com/AwesomeSauceMods/AwesomeSauceCore.git build/src
git clone https://github.com/AwesomeSauceMods/CoolInfoStuff.git
mv CoolInfoStuff/* build
cd build
rm -r OpenAutomation
bash gradlew build
# | AwesomeSauceMods/AwesomeSauceCore | build.sh | Shell | mit | 244 |
docker exec anycontent-cms-construction-kit-php70 php -v | nhagemann/anycontent-cms-construction-kit-php | docker/php70/cmd/docker-phpversion.sh | Shell | mit | 56 |
#!/bin/bash
set -e
printf "\n\n\n\n"
echo "Starting Helicopterizer ..."
#Import helper.
. /scripts/core/helper.sh
#Run Backup.
runBackup(){
#Exec core backup.
case $2 in
--tarball)
exec /scripts/core/tarball/backup.sh
;;
--sync)
exec /scripts/core/sync/backup.sh
;;
*... | frekele/helicopterizer | scripts/run.sh | Shell | mit | 1,750 |
#!/bin/sh
HOST=encore.noise.gatech.edu
IP_DROP_PORT=8888
HTTP_DROP_PORT=8889
TCP_RESET_IP_PORT=8890
TCP_RESET_URL_PORT=8891
start() {
sudo iptables -A INPUT -p tcp -d $HOST --dport $IP_DROP_PORT -j DROP
sudo iptables -A INPUT -p tcp -d $HOST --dport $HTTP_DROP_PORT -m string --string 'GET /' --algo bm -j DROP
sudo... | sburnett/web-censorship-testbed | setup_testbed.sh | Shell | mit | 1,039 |
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2015:0216
#
# Security announcement date: 2015-02-11 20:49:41 UTC
# Script generation date: 2016-05-12 18:12:43 UTC
#
# Operating System: Red Hat 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - antlr-eap6.noarch:2.7.7-18.redhat_4.1.e... | Cyberwatch/cbw-security-fixes | Red_Hat_5/x86_64/2015/RHSA-2015:0216.sh | Shell | mit | 17,209 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-634-1
#
# Security announcement date: 2016-09-23 00:00:00 UTC
# Script generation date: 2017-01-01 21:09:20 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: i386
#
# Vulnerable packages fix on version:
# - dropbear:2012.55-1.3+deb7u1
#
# Last v... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/i386/2016/DLA-634-1.sh | Shell | mit | 646 |
#! /bin/bash -e
dir=kits/cli
protoc -I ${dir} ${dir}/*.proto --go_out=plugins=grpc:${dir}/proto
echo >&2 "update protos OK" | yulefox/lamp | update_proto.sh | Shell | mit | 125 |
#!/bin/bash
rebase () {
patch -p2 < ./${patch_file}
git diff *.dts > ./${patch_file}
patch -p2 -R < ./${patch_file}
}
rebase_one_dep () {
patch -p2 < ./${patch_dep_one}
patch -p2 < ./${patch_file}
git diff *.dts > ./${patch_file}
patch -p2 -R < ./${patch_file}
}
patch_file="simple/disable-ttyO1.diff"
rebase
p... | RobertCNelson/rscm | 3.13-bone/rebase.sh | Shell | mit | 667 |
# First, install OpenSSL
# This is also important for python
PKGS+=("install_openssl.sh")
PKGS+=("install_anaconda.sh")
PKGS+=("install_scons3.sh")
#PKGS+=("install_gcc7.1.sh")
PKGS+=("install_fftw3.sh")
PKGS+=("install_shtns.sh")
#PKGS+=("install_eigen3.sh")
PKGS+=("install_lapack.sh")
#PKGS+=("install_sht... | schreiberx/sweet | mule_local/platforms/50_coolmuc_mpp2_gnu/local_software_default.sh | Shell | mit | 558 |
#!/bin/bash
clean () {
if [ -f "/tmp/projects.html" ]
then
rm "/tmp/projects.html"
fi
if [ -f "/tmp/projects.xml" ]
then
rm "/tmp/projects.xml"
fi
}
sync_files_datetime () {
cd "projects"
for file in *
do
date=$(cat "$file" | grep "[0-9]*-[0-9]*-[0-9]*" | sed "s/-//g")
date="$date""0000"
touch "$fi... | dimhold/cool-projects.com | build.sh | Shell | mit | 1,811 |
#!/bin/bash
# Configuring NodeJS (and NPM packages)
# Note: this installs `npm` too.
os=$(uname -s)
if [ "$os" = "Linux" ] ; then
sudo apt-get remove --purge node # unrelated package
# https://github.com/nodesource/distributions
curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -
sudo apt-get... | jivkok/dotfiles | configure_nodejs.sh | Shell | mit | 1,718 |
export SENTRY_ENDPOINT="..."
export SITE_URL="127.0.0.1:3000"
export LISTEN="127.0.0.1:3000"
export RETHINK_HOST="127.0.0.1:28015"
export RETHINK_DB="rewl"
export MAIL_FROM="xxx"
export MAILGUN_API="..."
| axcoto/rethink-weekly | env.sh | Shell | mit | 204 |
####################
# functions
####################
# print available colors and their numbers
function colours() {
for i in {0..255}; do
printf "\x1b[38;5;${i}m colour${i}"
if (( $i % 5 == 0 )); then
printf "\n"
else
printf "\t"
fi
done
}
# Create a n... | hacker1db/Dotfiles | zsh/functions.zsh | Shell | mit | 3,517 |
#!/bin/sh
clear
echo "
_____ _ _ _ _
| |___ ___ ___| |_ ___ _| | | |_ _ _ |_|
| --| _| -_| .'| _| -_| . | | . | | | _
|_____|_| |___|__,|_| |___|___| |___|_ | |_| ... | c2theg/srvBuilds | install_golang.sh | Shell | mit | 1,893 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2008:0569
#
# Security announcement date: 2008-07-06 14:53:47 UTC
# Script generation date: 2017-01-27 21:18:01 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - devhelp.i386:0.12-17.el5
# - devhelp-d... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2008/CESA-2008:0569.sh | Shell | mit | 2,178 |
#!/usr/bin/env bash
echo "Configuring all..."
~/dotfiles/setup/create_symlinks.sh
~/dotfiles/setup/setup_prefs.sh
~/dotfiles/setup/install_brew.sh
~/dotfiles/setup/install_casks.sh
~/dotfiles/setup/install_packages.sh
~/dotfiles/setup/install_mas_apps.sh
~/dotfiles/setup/install_fonts.sh
~/dotfiles/setup/set_default_... | caleb531/dotfiles | setup/setup_all.sh | Shell | mit | 357 |
#! /usr/bin/env bash
cd `python -c "import edeposit.amqp.storage.settings as s; print s.ZCONF_PATH"`
# supervisord can't stop the script, this should fix it
trap "{ pkill runzeo -SIGINT; exit 0; }" EXIT
runzeo -C zeo.conf
| edeposit/edeposit.amqp.storage | bin/edeposit_storage_runzeo.sh | Shell | mit | 225 |
#!/bin/bash
if [ ! -d /dwl/home/host ]; then
sudo mkdir -p /dwl/home/host;
fi
if [ -d /dwl/home/host/files ]; then
if [ -f /home/${DWL_USER_NAME}/files ]; then
sudo rm -f /home/${DWL_USER_NAME}/files;
fi
if [ -d /home/${DWLC_USER_NAME}/files ]; then
sudo rm -rdf /home/${DWLC_USER_NAME}/... | davask/d-ubuntu | build/dwl/permission.sh | Shell | mit | 525 |
#!/bin/bash
java -server -XX:+UseG1GC -XX:MaxGCPauseMillis=500 -XX:ParallelGCThreads=7 -Xmx5G -Xms2G -XX:UseSSE=3 -jar /home/minecraft/spigot.jar
| ttk2/DockerBootstrapping | spigot.sh | Shell | mit | 147 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2628-1
#
# Security announcement date: 2015-06-08 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:36 UTC
#
# Operating System: Ubuntu 14.10
# Architecture: i686
#
# Vulnerable packages fix on version:
# - strongswan-ike:5.1.2-0ubuntu3.3
#
# Last v... | Cyberwatch/cbw-security-fixes | Ubuntu_14.10/i686/2015/USN-2628-1.sh | Shell | mit | 634 |
# The Brewfile handles Homebrew-based app and library installs, but there may
# still be updates and installables in the Mac App Store. There's a nifty
# command line interface to it that we can use to just install everything (like
# OS and iTunes updates), so yeah, let's do that.
echo "› softwareupdate -i -a"
softwar... | edahlseng/dotfiles | macos/install.sh | Shell | mit | 336 |
#!/bin/bash
set -e
echo "What is your git account's email address?"
read email
echo "$email" > $(dirname $0)/email.config
echo "What is your name?"
read name
echo "$name" > $(dirname $0)/name.config
echo "Would you also like to install git lfs (Large File Storage)(y/n)?"
read installgitlfs
echo "$installgitlfs" > $... | IronPeak/BitCrow | git/config.sh | Shell | mit | 362 |
#!/usr/bin/env bash
if ps -ef | grep -v grep | grep fetch.sh ; then
echo "task is already running"
exit 0
else
echo "fetch new changes"
exec $SYNC_HOME/fetch.sh
exit 0
fi | ghasemz/sync | rsync.sh | Shell | mit | 190 |
#!/bin/bash
set -e
# Place for custom stuff you like to run
# So i can merge your changes without need to build a
# new Vagrantfile
service statusengine restart
| nook24/statusengine-vagrant | install-custom.sh | Shell | mit | 163 |
cp ../../zh-stroke-data/json/5c0f.json ./strokes/
cp ../../zh-stroke-data/json/7d05.json ./strokes/
cp ../../zh-stroke-data/json/5e3d.json ./strokes/
cp ../../zh-stroke-data/json/4f4f.json ./strokes/
cp ../../zh-stroke-data/json/5728.json ./strokes/
cp ../../zh-stroke-data/json/68ee.json ./strokes/
cp ../../zh-stroke-d... | ChineseCubes/react-odp | src/build/strokes.sh | Shell | mit | 5,450 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2436-2
#
# Security announcement date: 2014-12-09 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:08 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - xserver-xorg-core:2:1.11.4-0ubuntu10... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/x86_64/2014/USN-2436-2.sh | Shell | mit | 863 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2014:1167
#
# Security announcement date: 2014-09-09 23:10:17 UTC
# Script generation date: 2017-01-13 21:13:22 UTC
#
# Operating System: CentOS 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - kernel-abi-whitelists.noarch:2.6.32-431.... | Cyberwatch/cbw-security-fixes | CentOS_6/x86_64/2014/CESA-2014:1167.sh | Shell | mit | 1,958 |
#!/bin/bash
if [ -d /usr/local/Cellar ]; then
echo "Found Cellar directory under /usr/local/Cellar - removing"
rm -rf /usr/local/Cellar
fi
# Find and eliminate broken links, under the assumption that they are linked to the old Cellar
if [ -x /usr/local/bin/brew ]; then
echo "Found brew executable in /usr/... | discoverydev/my-boxen | remove_strange_brew.sh | Shell | mit | 570 |
#!/bin/bash
#seat cinemaId=109&hallNo=180&uid=baidumovie&method=getSeatsByCinemaAndHall&time_stamp=1422001556275&enc=824e2fcfdc02564763613db3c75a4bd7
#sold set planId=1422098100000010980&uid=baidumovie&method=getSoldSeats&time_stamp=1422001556350&enc=42953c4914b7861b4dd5ba4ca9df43c3
#analyze
# third_id : planId
| deevarvar/myLab | baidu_code/xingmei/data_api/info/info_test.sh | Shell | mit | 320 |
#!/bin/bash
#bash script used to test port watcher
function launch_nc {
# the pid that binds $PORT should be the grand son of this script pid
echo "spawning"
nc -l 3000
}
function launch_nc2 {
echo "spawning2"
nc -l 3001
}
function prepare_nc {
#spawn an other child process
launch_nc &
launch_nc2 &
... | robinmonjo/dock | integration/assets/spawn_orphaned.sh | Shell | mit | 359 |
#!/bin/bash
# Keeping atlas variable without prefix as it's been shared by consul and tf at the moment.
export ATLAS_TOKEN=${ATLAS_TOKEN:?"Need to set ATLAS_TOKEN non-empty"}
export ATLAS_INFRASTRUCTURE=${ATLAS_INFRASTRUCTURE:-capgemini/apollo}
export TF_VAR_user=${TF_VAR_user:?"Need to set User non-empty"}
export TF... | mehulsbhatt/Apollo | bootstrap/aws/config-default.sh | Shell | mit | 1,867 |
#!/bin/bash
# Puppet-Diamond
# http://diamond-methods.org/puppet-diamond.html
# http://stackoverflow.com/questions/11258737/restore-git-submodules-from-gitmodules
set -e
git config -f .gitmodules --get-regexp '^submodule\..*\.path$' |
while read path_key path
do
url_key=$(echo $path_key | sed 's/\.pat... | diamond-org/puppet-diamond | bin/get_submodules.sh | Shell | mit | 458 |
#!/bin/bash
mkdir -P ./deps
git clone https://github.com/kramer314/fortran-lib.git ./deps/fortran-lib
cd ./deps/fortran-lib
scons
| kramer314/1d-vd-test | build-deps.sh | Shell | mit | 131 |
# check if this is a login shell
[ "$0" = "-bash" ] && export LOGIN_BASH=1
# run bash_profile if this is not a login shell
[ -z "$LOGIN_BASH" ] && source ~/.bash_profile
# load shared shell configuration
source ~/.shrc
# History
export HISTFILE="$HOME/.bash_history"
export HISTCONTROL="ignoredups"
export PROMPT_COMM... | mikemcquaid/dotfiles | bashrc.sh | Shell | mit | 580 |
#!/bin/bash
set -eou pipefail
if [[ $# -ne 3 ]]; then
echo "usage: $0 <link-cov-heatmap.R> <in.csv> <out.pdf>" 1>&2
exit -1
fi
#in: data/sample.kK.se.links.csv
#out: plots/sample.kK.se.links.pdf
script=$1
in=$2
out=$3
KMER=`echo "$in" | grep -oE 'k[0-9]+' | grep -oE '[0-9]+'`
CUTOFFFILE=`echo "$in" | awk '{gsub... | mcveanlab/mccortex | scripts/report/make-link-plot.sh | Shell | mit | 852 |
#!/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... | burntheroad/RoundDropMenu | Example/Pods/Target Support Files/Pods-RoundDropMenu_Tests/Pods-RoundDropMenu_Tests-frameworks.sh | Shell | mit | 3,568 |
cd bank
bundle install
rake db:migrate
rake bank:setup
cd ..
cd provider
bundle install
rake db:migrate
rake provider:setup
cd ..
cd store-system
bundle install
rake db:migrate
rake store:setup
cd ..
cd coordinator
bundle install | fabriciojoc/ws_coordination_protocols_rails | setup.sh | Shell | mit | 229 |
#!/bin/bash
iter=1
N=1024
bigfile="../../../DATA_SETS/MNIST/mnist/train_data.csv"
while [ $iter -le $N ]; do
filename="./_test_files/_f${iter}.bin"
test -f $filename
cut -f $iter -d "," $bigfile > _temp.csv
../../../UTILS/src/asc2bin _temp.csv I2 _temp.bin
cmp _temp.bin $filename
echo "done $iter"
iter=`e... | NerdWalletOSS/Q | OPERATORS/LOAD_CSV/test/check_diff.sh | Shell | mit | 569 |
#!/bin/bash
DIR="$(cd `dirname $0`;pwd)"
# install rbenv
if [ -z `which rbenv 2> /dev/null` ]; then
RBENV_REPO="https://github.com/sstephenson/rbenv.git"
RUBYBUILD_REPO="https://github.com/sstephenson/ruby-build.git"
RBENV_HOME="~/.rbenv"
RUBYBUILD_HOME="$RBENV_HOME/plugins/ruby-build"
[ ! -d $RBENV_HOME ] &&... | takasing/lifestream | bootstrap.sh | Shell | mit | 774 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3045-1
#
# Security announcement date: 2016-08-02 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:34 UTC
#
# Operating System: Ubuntu 16.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - php7.0-fpm:7.0.8-0ubuntu0.16.04.2
# ... | Cyberwatch/cbw-security-fixes | Ubuntu_16.04_LTS/i386/2016/USN-3045-1.sh | Shell | mit | 1,616 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2011:1073
#
# Security announcement date: 2011-09-01 16:10:39 UTC
# Script generation date: 2017-01-01 21:10:13 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - bash.x86_64:3.2-32.el5
#
# Last versions... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2011/CESA-2011:1073.sh | Shell | mit | 589 |
#!/bin/bash
while getopts 'i:o:' opt; do
case $opt in
i)
input=$OPTARG
;;
o)
output=$OPTARG
;;
esac
done
for file in $(ls $input)
do
./get-tweet.sh $input/$file | gzip > $output/$file
done
| raphaottoni/twitter-lda | preprocess/json2tweet/get-tweet-per-user.sh | Shell | mit | 238 |
script_dir=$(dirname "$(readlink -f "$0")")
export KB_DEPLOYMENT_CONFIG=$script_dir/../deploy.cfg
WD=/kb/module/work
if [ -f $WD/token ]; then
cat $WD/token | xargs sh $script_dir/../bin/run_ReferenceDataManager_async_job.sh $WD/input.json $WD/output.json
else
echo "File $WD/token doesn't exist, aborting."
... | kbaseapps/ReferenceDataManager | scripts/run_async.sh | Shell | mit | 330 |
#!/usr/bin/env bash
# Base16 OceanicNext - Gnome Terminal color scheme install script
# https://github.com/voronianski/oceanic-next-color-scheme
[[ -z "$PROFILE_NAME" ]] && PROFILE_NAME="Base 16 OceanicNext"
[[ -z "$PROFILE_SLUG" ]] && PROFILE_SLUG="base-16-oceanicnext"
[[ -z "$DCONF" ]] && DCONF=dconf
[[ -z "$UUIDGEN... | dcelasun/dotfiles | config/base16-gnome-terminal/color-scripts/base16-oceanicnext.sh | Shell | mit | 4,385 |
#!/bin/sh
SYSTEMID_PS1=38
ABBREV_SYSTEMNAME_PS1="PSX"
SYSTEMNAME_PS1="Sony - PlayStation"
GEN_DAT_PS1='{"game":{"rom":{"serial":"romSerial","image":"romFileName"},"name":"romExtensionlessFileName"}}'
GEN_DEVELOPER_PS1='{"game":{"rom":{"serial":"romSerial","image":"romFileName"},"name":"romExtensionlessFileName","deve... | libretro/libretro-dat-pull | scripts/Sony - PlayStation.sh | Shell | mit | 2,625 |
#!/bin/bash
userinstall=no
steamcmd_user=
showusage=no
migrateconfig=no
installservice=no
while [ -n "$1" ]; do
case "$1" in
--me)
userinstall=yes
steamcmd_user="--me"
;;
-h|--help)
showusage=yes
break
;;
--prefix=*)
PREFIX="${1#--prefix=}"
;;
--prefix)
... | FezVrasta/ark-server-tools | tools/install.sh | Shell | mit | 15,733 |
#!/bin/sh
# Source: http://developer.android.com/tools/testing/testing_otheride.html#RunTestsCommand
adb shell am instrument -w -r at.mfellner.android.cucumber.example.test/at.mfellner.cucumber.android.api.CucumberInstrumentation
| mfellner/cucumber-android | cucumber-example-test/run_test.sh | Shell | mit | 230 |
#!/usr/bin/env bash
set -e
WORK_TREE=~
GIT_DIR=~/.baredot
ALIAS_NAME=baredot
CMD="/usr/bin/git --work-tree=$WORK_TREE --git-dir=$GIT_DIR"
ALIAS_CMD="alias $ALIAS_NAME='$CMD'"
function explain() {
printf '\e[33m'
echo "$@"
printf '\e[m'
}
function perform() {
echo "+ $1"
eval $1
}
if [ $# -eq 0 ]... | baredot/baredot.github.io | setup.sh | Shell | mit | 930 |
brew install github
| velocityzen/station | setup/github.sh | Shell | mit | 20 |
#!/bin/bash
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt install -y google-chrome-stable
| Vorago/dotfiles | packages/chrome/install.sh | Shell | mit | 267 |
#!/bin/bash
ALLVAR=""
for var in "$@"
do
ALLVAR="$ALLVAR $var"
done
if [ "$ALLVAR" = "" ]; then
ALLVAR='plotting'
fi
python PlaneProc.py -f $ALLVAR -i ~/DATA/PlaneProcessing/Phased_Array/exp_width_stat_01 -c ~/DATA/PlaneProcessing/Phased_Array/planeproc2_stat.ini -r y
cp ~/DATA/PlaneProcessing/Phased_Array/e... | jswoboda/PlaneProcessing | runplanestat.sh | Shell | mit | 679 |
#!/bin/bash -e
function main()
{
source "$(dirname "${BASH_SOURCE[0]}")/../libraries/util.bash"
# Validations
checkRequireMacSystem
checkRequireRootUser
# List and Update
header 'LISTING AVAILABLE SOFTWARE UPDATES'
softwareupdate --list
header 'UPDATING SOFTWARE'
softwareupdate... | gdbtek/mac-cookbooks | tools/update-software.bash | Shell | mit | 359 |
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2012:0109
#
# Security announcement date: 2012-02-15 16:24:41 UTC
# Script generation date: 2016-05-12 18:10:40 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - rhev-hypervisor6.noarch:6.2-20120209.0.... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2012/RHSA-2012:0109.sh | Shell | mit | 970 |
# .bashrc
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
| shawndfl/fedora-developer | roles/developer/files/bashrc.d/git.sh | Shell | mit | 51 |
#!/bin/sh
# cli tools
brew install ack
brew install tree
brew install wget
brew install caskroom/cask/brew-cas
brew install grep --default-names
brew install findutils --default-names
brew install watch
brew install coreutils
# development server setup
brew install nginx
# development tools
brew install git
brew in... | cnak/dotfiles | scripts/brew.sh | Shell | mit | 725 |
docker run -it --rm magnitus/automated-tests:0.10-node-express-access-control;
docker run -it --rm magnitus/automated-tests:4.1-node-express-access-control;
| Magnitus-/DockerFiles | automated-tests/express-access-control/run.sh | Shell | mit | 157 |
#!/bin/sh
plat=darwin
arch=x64
if [ -f ./dist-common.sh ]; then
. ./dist-common.sh
else
echo '*** This must be run from the top-level qmk_flasher directory!'
exit 1
fi
# Build the macOS package
echo '*** Building macOS package'
electron-packager ./ --platform=$plat --arch=$arch \
--asar.unpackDir='**/{dfu,node_mo... | jackhumbert/dfu-programmer-app | dist-darwin.sh | Shell | mit | 756 |
#!/bin/bash -e
################################################################################################
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File : stop_old_containers.sh
## Author: doungni
## Co-Author : Den... | DennyZhang/devops_public | jenkins_scripts/docker/stop_old_containers.sh | Shell | mit | 6,065 |
#!/usr/bin/env bash
echo "waiting for cassandra to start"
# FIXME: timeout is not included
wait-for-it xkbkairosdbcassandra:9042
echo "cassandra started"
/opt/kairosdb/bin/kairosdb.sh run
| xephonhq/xephon-k | _legacy/script/kairosdb/node/kairosdb.sh | Shell | mit | 191 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.