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 |
|---|---|---|---|---|---|
set +x
set +e
echo ""
echo ""
echo "---"
echo "Now starting POST-BUILD steps"
echo "---"
echo ""
echo INFO: Pointing to $DOCKER_HOST
if [ ! $(docker ps -aq | wc -l) -eq 0 ]; then
echo INFO: Removing containers...
! docker rm -vf $(docker ps -aq)
fi
# Remove all images which don't have docker or ubuntu in the nam... | rawlingsj/gofabric8 | vendor/github.com/docker/docker/hack/Jenkins/W2L/postbuild.sh | Shell | apache-2.0 | 935 |
#!/bin/sh
# Copyright (c) 2005, 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 con... | yaozongyou/common | third_party/gperftools/src/tests/heap-profiler_unittest.sh | Shell | mit | 5,567 |
# Test the passwords_file parameter from the config file.
use_config simple
echo "set password_file fake_gpg_home/.mdp/alternative" >> test.config
rm -f fake_gpg_home/.mdp/passwords
rm -f fake_gpg_home/.mdp/alternative
run_mdp edit
assert_file_exists fake_gpg_home/.mdp/alternative
| tamentis/mdp | tests/functional/test_custom_password_file.sh | Shell | isc | 285 |
#!/bin/bash
sudo apt-get install darktable | dartmedved/ubuntu-postinstall-v2 | graphics/install-darktable.sh | Shell | mit | 42 |
#!/bin/bash
php /bin/composer.phar clear-cache;
php /bin/composer.phar install;
mysql -uroot -p sarasoft < sarasoft.sql;
rm -rf var/cache/prod/*;
php bin/console cache:clear --env prod;
find * -type d -exec chmod 770 {} \;
find * -type f -exec chmod 660 {} \;
chown -R apache:apache .;
php bin\console security:che... | RicardoSaracino/sarasoft | deploy.sh | Shell | mit | 344 |
# core things
# environment variables
[ -d ${HOME}/bin ] && export PATH="${PATH}:${HOME}/bin"
export MC_COLOR_TABLE=editnormal=:normal=
export LESSCHARSET=utf-8
export GREP_COLOR="1;33"
# unlimited shell history
export HISTSIZE=-1
export HISTFILESIZE=-1
# aliases
alias grep='grep --color=auto'
alias ls='ls -G'
... | majk1/shellrc | core.sh | Shell | mit | 8,909 |
#!/bin/sh
licRes=$(
for file in $(find src test crossdock -type f -iname '*.js' ! -path '*/thrift_gen/*'); do
head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)" || echo " ${file}"
done;)
if [ -n "${licRes}" ]; then
echo "license header check failed:\n${licRes}"
exit 255
fi
| uber/jaeger-client-node | scripts/check-license.sh | Shell | mit | 292 |
#!/usr/bin/env bash
docker build -t screwdriver-docker-proxy .
| tco/screwdriver-docker-proxy | build.sh | Shell | mit | 63 |
#!/bin/bash -e
clear
echo "============================================"
echo "Proton Template Install Script"
echo "============================================"
echo "Menu: "
echo " i: Install templates"
echo " u: Uninstall templates"
echo ""
echo "Enter a command: "
read -e command
if [ "$command" == i ] ; then
... | IMcD23/Proton | Templates/install_templates.command | Shell | mit | 882 |
#!/bin/sh
echo "Cloning dotfiles"
git clone --depth=1 https://github.com/wyze/dotfiles.git "$HOME/.dotfiles"
cd "$HOME/.dotfiles"
# Ask for the administrator password upfront
sudo -v &> /dev/null
# Update existing `sudo` time stamp until this script has finished
# https://gist.github.com/cowboy/3118588
while true; d... | wyze/dotfiles | install.sh | Shell | mit | 1,799 |
#!/bin/sh
whenever -w
cron
tail -f /var/log/whenever.log
| policygenius/seal | start-cron.sh | Shell | mit | 57 |
# added by travis gem
[ ! -s /Users/amasa.amos/.travis/travis.sh ] || source /Users/amasa.amos/.travis/travis.sh | asamasoma/dotfiles | travis/.zsh/travis.zsh | Shell | mit | 112 |
txtblk='\[\e[0;30m\]' # Black - Regular
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
bldblk='\[\e[1;30m\]' # Black - Bold
bldred='\[\e[1;31m\]' # Red
bldgrn=... | bootstraps/dotfiles | bash/colors.sh | Shell | mit | 1,029 |
#!/bin/bash
#Uncomment out this if you want full debug output
#set -xe
# This script can be used to setup the Kubeadm All-in-One environment on Ubuntu 16.04.
# This script should not be run as root but as a different user. Create a new user
# and give it root privileges if required.
if [[ $EUID -eq 0 ]]; then echo "... | lukepatrick/os-helm-aio-installer | os-helm-all-together.sh | Shell | mit | 1,456 |
#!/bin/bash
bash update.sh
bash ../renewPerms.sh
service apache2 restart | lcdi/Inventory | restart.sh | Shell | mit | 72 |
#!/bin/sh
### direct2cache head START ###
_echo2cache() { echo "$@" 2>/dev/null >&9 || true; }
_cat2cache() { cat "$@" 2>/dev/null >&9 || true; }
#### direct2cache head END ####
. "$HOME/.execfunc.sh"
| YoungCatChen/home-rc | profile.d/02-tocache.sh | Shell | mit | 206 |
#!/bin/bash
#
# backs up the entire system, excluding various directories
# that are inappropriate to backup (e.g. proc-fs, dev tree,
# etc.), using rsync
#
include=/backup/include.files
exclude=/backup/exclude.files
lastbup=/backup/backup.log
lockbup=/backup/.backup.lock
rotates=/backup/rotate.sh
# comment out to ac... | ardnew/shutils | sysbackup/backup.sh | Shell | mit | 5,070 |
#!/bin/bash
# directory navigation functions & aliases
alias ls='ls --color=auto'
alias ll='ls -lahF'
alias ...='.. 2'
alias ....='.. 3'
alias .....='.. 4'
alias ......='.. 5'
function ..() {
typeset levels up="" i
echo $1 | grep -E "^[0-9]$" > /dev/null && levels=$1 || levels=1
for ((i=0; i<$levels; i++)... | avishefi/dotfiles | profiles/bash/plugins/common.plugin.sh | Shell | mit | 1,228 |
#!/bin/sh
pushd .
cd build
make && ./RunTests
popd
| spajus/sdl2-snake | scripts/test.sh | Shell | mit | 51 |
#!/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... | george-gw/GAFBCustomTitleButton | Example/Pods/Target Support Files/Pods-GAFBCustomTitleButton_Tests/Pods-GAFBCustomTitleButton_Tests-frameworks.sh | Shell | mit | 3,945 |
#!/bin/bash
if [ -z "$GOPATH" ]; then
echo "Need to set GOPATH see http://golang.org for more info"
exit 1
fi
# Install third party packages
echo "Installing Dependencies"
go get github.com/gorilla/mux
# Compile and install
echo "Building source..."
go install github.com/sjhitchner/annotator
echo "Run $GOPA... | sjhitchner/annotator | build.sh | Shell | mit | 338 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3137-1
#
# Security announcement date: 2016-11-23 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:45 UTC
#
# Operating System: Ubuntu 16.10
# Architecture: i386
#
# Vulnerable packages fix on version:
# - python-moinmoin:1.9.8-1ubuntu1.16.10.1
#
#... | Cyberwatch/cbw-security-fixes | Ubuntu_16.10/i386/2016/USN-3137-1.sh | Shell | mit | 695 |
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails
function doCompile {
./_compile.sh
}
# Pull requests and commits to other branches shouldn't try to deploy, just build to verify
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then
echo "Skipping deploy; just d... | idealabasu/asurobotics | _deploy.sh | Shell | mit | 1,913 |
#!/bin/sh
POSTGRES_USER=postgres
POSTGRES_DB=postgres
POSTGIS_INSTANCE=${1:-"osmdb"}
POSTGIS_PASSWORD=${2:-$(cat /dev/urandom| tr -dc _A-Z-a-z-0-9 | head -c12)}
docker run --name ${POSTGIS_INSTANCE} \
-e POSTGRES_PASSWORD=${POSTGIS_PASSWORD} \
-e POSTGRES_USER=${POSTGRES_USER} \
-e POSTGRES_DB=${POSTGRES_DB... | OsmHackTW/osm2pgsql-docker | postgis.sh | Shell | mit | 345 |
#!/bin/bash
set -e -x
source .github/scripts/retry.sh
brew install pkg-config meson
# General note:
# Apple guarantees forward, but not backward ABI compatibility unless
# the deployment target is set for the oldest supported OS.
# (https://trac.macports.org/ticket/54332#comment:2)
# Used by CMake, clang, and Pyth... | neothemachine/lensfunpy | .github/scripts/build-macos.sh | Shell | mit | 5,236 |
#!/bin/bash -e
#-------------------------------------------------------------------------------
#
# cron/brew_update.sh
#
#-------------------------------------------------------------------------------
# Prime the environment first
# shellcheck source=/Volumes/ThunderBay/Users/phatblat
source "$HOME/.dotfiles/cron/cr... | phatblat/dotfiles | .dotfiles/cron/brew_update.sh | Shell | mit | 724 |
#!/bin/sh
#watch -n 1 --differences smem
fnm=${0##*/}
nlog=${fnm%.*}.log
echo monitor start
#rm $0.log
ps aux |grep USER|grep -v grep >$nlog
while true
do
ps aux|grep [g]it |grep -v time >>$nlog
# sleep 1
# usleep 100000 #0.1s
sleepenh 0.1 > /dev/null
done
echo monitor end
| kotaro-dev/ubuntu-shell | smem_t.sh | Shell | mit | 282 |
#!/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}"
# This protects against multiple targets copying the same framework dependency at the same time.... | JeanVinge/VuforiaAR | Example/Pods/Target Support Files/Pods-VuforiaAR_Example/Pods-VuforiaAR_Example-frameworks.sh | Shell | mit | 4,666 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2993-1
#
# Security announcement date: 2016-06-09 00:00:00 UTC
# Script generation date: 2017-02-06 21:05:33 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - firefox:47.0+build3-0ubuntu0.12.04.1... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/x86_64/2016/USN-2993-1.sh | Shell | mit | 879 |
java -Duser.home=`pwd` -jar alloy41/alloy41.jar &
| nishio/learning_alloy | run41.sh | Shell | mit | 50 |
#!/bin/sh
set +h # disable hashall
shopt -s -o pipefail
set -e # Exit on error
PKG_NAME="bzip2"
PKG_VERSION="1.0.6"
TARBALL="${PKG_NAME}-${PKG_VERSION}.tar.gz"
SRC_DIR="${PKG_NAME}-${PKG_VERSION}"
function prepare() {
ln -sv "../../source/$TARBALL" "$TARBALL"
}
function unpack() {
tar xf ${TARBALL}
}
f... | PandaLinux/pandaOS | phase1/bzip2/build.sh | Shell | mit | 622 |
BARE_PROMPT="$PROMPT"
timeprompt() {
export PROMPT="\$(date \"+%H:%M:%S\") $BARE_PROMPT"
export REPORTTIME=0
}
notimeprompt() {
export PROMPT="$BARE_PROMPT"
unset REPORTTIME
}
| kjhaber/dotfiles | zsh/bin/timeprompt.zsh | Shell | mit | 185 |
#!/bin/bash
#remember to run from git root!
if [ ! -d plots ]; then
echo "Plots directory not found. Are you running from git root?"
fi
echo EXT2 FSCK
IO_INST_READFILE=plots/ext2-fsck.read.out \
IO_INST_WRITEFILE=plots/ext2-fsck.write.out \
IO_INST_TRACKFD=5 \
LD_PRELOAD=`pwd`/lib/io_inst/io_inst.so \
/sbin/fs... | chzchzchz/fsl | util/fsck_io.sh | Shell | mit | 1,452 |
#!/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... | jindulys/Wikipedia | Pods/Target Support Files/Pods-WikipediaUnitTests/Pods-WikipediaUnitTests-frameworks.sh | Shell | mit | 5,548 |
#!/usr/bin/env bash
# This runs a terminal timer that counts down to zero
# from a specified amount of minutes and then
# lets the window manager draw attention to it in it's native way.
# based on script and explanation from: https://erikwinter.nl/notes/2020/basic-pomodoro-timer-in-bash-with-termdown-and-wmctrl/
# ... | tiagoprn/devops | bin/pomodoro.sh | Shell | mit | 1,593 |
#!/bin/sh
# Test comment
echo "^ This guy"
# Another comment + harvesting search results
wget -P files -i urls.log --rejected-log error.log --no-verbose
#EOF
| lee-dohm/language-generic-config | spec/fixtures/exec.sh | Shell | mit | 161 |
#! /usr/bin/env bash
set -e
#############################################################################
## Helpers & Config
#############################################################################
msg() {
tput setab 2 # green bg
tput setaf 7 # white text
echo ">>> $1"
tput sgr 0
sleep 1
}
... | rhoconlinux/fix-spotify-icon-elementary | src/fix-spotify-icon.sh | Shell | mit | 3,629 |
#!/bin/bash
port=8000
for i in `seq 1 4`
do
#rm -rf $i
#mkdir $i
ip='0.0.0.0'
# auto-close terminal
gnome-terminal --tab -e "/bin/bash -c '../main.py -o stakeholders/$i/data -cli -ip $ip -p $port -bp localhost:8000'"
# don't auto-close terminal
#gnome-terminal --tab -e "/bin/bash -c '..... | ceddie/bptc_wallet | demo_setup/start_stakeholders.sh | Shell | mit | 442 |
if test ! $(which pyenv); then
echo "Installing pyenv..."
brew install pyenv
export PYTHON_CONFIGURE_OPTS="--enable-framework"
pyenv install 2.7.8
pyenv global 2.7.8
fi
if test ! $(which http); then
echo "Installing httpie..."
pip install httpie
fi
| redhotvengeance/dotfiles | python/install.sh | Shell | mit | 264 |
#!/usr/bin/env bash
set -ex
for package in ./deploy/*
do
npm publish ${package}
done
| scttcper/ng2-bs-dropdown | enact-release.sh | Shell | mit | 89 |
export SRC_ROOT=`pwd`
# Install Postgres, etc
SRC_ROOT/../install.sh
# Pl/v8 stuff
git clone git://github.com/v8/v8.git v8 && cd v8
export GYPFLAGS="-D OS=freebsd"
make dependencies
make native.check -j 4 library=shared strictaliasing=off console=readline
cp v8.so /usr/lib/v8.so
cd $SRC_ROOT
# TODO: Add pg_config t... | danieltahara/sinew | benchmark/setup.sh | Shell | mit | 468 |
#!/bin/sh -xe
if [ "$CI_ARCH" = "amd64" ]; then
export PATH=/mingw64/bin:$PATH
else
export PATH=/mingw32/bin:$PATH
fi
7za | head -2
gcc -v
cppcheck --error-exitcode=1 src
export ISOLATE_VERSION=head
if [ -n "$CI_BUILD_TAG" ]; then
export ISOLATE_VERSION=$CI_BUILD_TAG
fi
export CI_VERSION=$CI_BUILD_REF_NAME
exp... | itchio/isolate | scripts/ci-build.sh | Shell | mit | 1,088 |
#!/bin/bash
# v1.0.0
#------------------------------------------------------------------------------
# print the help for the create-full-7z-package functionality
#------------------------------------------------------------------------------
doHelpCreateFull7zPackage(){
doLog "INFO ::: START ::: create-full-7z-pac... | YordanGeorgiev/pgsql-runner | src/bash/pgsql-runner/helps/pckg/create-full-7z-package.help.sh | Shell | mit | 558 |
#!/bin/sh
cd /usr/lib/aarch64-linux-gnu
sudo rm libGL.so
sudo ln -s /usr/lib/aarch64-linux-gnu/tegra/libGL.so libGL.so
| jetsonhacks/installLibfreenect2 | libGLFix.sh | Shell | mit | 119 |
#!/bin/sh
export COMPOSER_NO_INTERACTION=1
composer self-update
if [ -n "${MIN_STABILITY:-}" ]; then
sed -i -e "s/\"minimum-stability\": \"stable\"/\"minimum-stability\": \"${MIN_STABILITY}\"/" composer.json
fi
composer require --no-update satooshi/php-coveralls:"~0.6@stable" guzzle/guzzle:">=3.0.4@stable"
composer... | IUQOL/Capacitation | vendor/craue/formflow-bundle/travis_install_dependencies.sh | Shell | mit | 649 |
#!/bin/bash
cd Entidades
javac -d ../WEB-INF/classes/ *.java -classpath /usr/local/Cellar/tomcat/7.0.47/libexec/lib/servlet-api.jar:/usr/local/Cellar/tomcat/7.0.47/libexec/lib/mysql-connector-java-5.1.27-bin.jar:/usr/local/Cellar/tomcat/7.0.47/libexec/webapps/SEng/WEB-INF/classes/
echo "entidades compilado"
cd ..
cd Co... | acrogenesis/SEng-Bytes | compilar.sh | Shell | mit | 917 |
#!/bin/bash
trap 'exit' ERR
APP_NAME="stormy-hollows-9630"
echo "-----> Deploying to Heroku"
./prepare_deploy_directory.sh
VERSION=`git rev-parse HEAD | perl -pe 'chomp'`
echo "-----> Deploying application version $VERSION"
echo " Creating build tarball...."
DEPLOY_FILENAME="deploy-$VERSION.tgz"
pushd deploy
... | shageman/cbra_book_code | c2s12/sportsball/deploy_to_heroku.sh | Shell | mit | 1,404 |
#!/bin/bash
mkdir -p log
mkdir -p output
kill `cat ./log/crawler-worker.pid`
node lib/crawler-worker.js -g "md15" -p 6379 -h localhost -o output/ > log/crawler-worker.log 2>&1 &
echo $!>./log/crawler-worker.pid
tail -f ./log/crawler-worker.log
| yi/node-crawler-worker | start-md15.sh | Shell | mit | 246 |
#!/usr/bin/env bash
# Disable analytics
brew analytics off
# Update the formulae and Homebrew itself
brew update
# Upgrade everything already installed
brew upgrade
# Install main GNU packages
brew install coreutils
brew install findutils
brew install moreutils
# Install other useful GNU packages
brew install auto... | michaelx/dotfiles | brew.sh | Shell | mit | 1,649 |
#!/bin/bash
#SBATCH -o DiscSimu.%j.%N.out
##SBATCH -D
#SBATCH -J DiscSimu_N03_0
#SBATCH --ntasks=1
#SBATCH --mail-type=end
#SBATCH --mail-user=1@nd.edu
#SBATCH --time=99:00:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --share
#SBATCH --gres=gpu:1
#SBATCH --nodelist=gpu03
cd ../
srun --gres=gpu:1 ./bi... | laosunhust/SceCells | scripts/discN03G00.sh | Shell | mit | 355 |
#!/usr/bin/env bash
# Install dependencies
apt-get update && apt-get install -y gcc make linux-headers-$(uname -r)
# Mount Guest Additions ISO file
mkdir /mnt/vbox
mount -t iso9660 -o loop /root/VBoxGuestAdditions.iso /mnt/vbox
# Execute the installer
/mnt/vbox/VBoxLinuxAdditions.run
# Display installation logs bef... | SkypLabs/packer-debian | scripts/vbox-tools.sh | Shell | mit | 552 |
#!/usr/bin/env bash
RELEASE=0.13.1
dist=dist
bin=imladris
function build {
GOOS=$1 GOARCH=$2 go build -o $bin
package=$bin-$RELEASE-$1-$2.tar.gz
tar cvzf $package $bin
mv $package $dist
rm $bin
}
mkdir -p $dist
go generate
build darwin amd64
build linux amd64
| anduintransaction/imladris | build.sh | Shell | mit | 283 |
#!/bin/bash
filename=PKGBUILD
if [[ $1 != '' ]]; then
filename="$1"
fi
if [[ ! -f $filename ]]; then
echo "Can't find $filename"
exit 1
fi
cd $(dirname "$filename")
filename=$(basename "$filename")
# Update the pkgver
bumpver "$filename"
# Update the hash sums
updpkgsums "$filename"
| xyproto/getver | scripts/vup.sh | Shell | mit | 295 |
echo "Trying valid user on unallowed resource."
curl -u policia:password -X GET 'http://localhost:9000/v1/cap/transaction/1'
echo ""
echo "Trying invalid user."
curl -u policia2:password -X GET 'http://localhost:9000/v1/cap/' -i
echo ""
echo "Trying transaction. Checking entities."
curl -u dev:password -X GET 'http://l... | mindware/prgov_gmq_cap_api | test/systems/bash/go.sh | Shell | mit | 462 |
#!/bin/bash
~/.arduino15/packages/esp8266/tools/esptool/0.4.9/esptool -vv -cd nodemcu -cb 57600 -ca 0x00000 -cp /dev/ttyUSB0 -cf latest-20170317.bin
| kiu/feinstaubnode | firmware/flash.sh | Shell | mit | 149 |
#!/bin/bash
#Souce config file
. "../bin/sebal-automation.conf"
#Commands to filter process of crawler and scheduler
check_running_crawler="pgrep -f crawler"
check_running_scheduler="pgrep -f scheduler"
#SSH access and execution of commands
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $crawler_u... | thiagomanel/SEBAL-automation | scripts/check-running-services.sh | Shell | mit | 933 |
#!/bin/bash
set -e
export RAILS_ENV=test
export BUNDLE_WITHOUT=development
if [ -x "$(which bower)" ]; then
bower cache clean
fi
rm -rf vendor/assets/bower_components
bin/setup
bin/rake
| guidance-guarantee-programme/summary_generator | test.sh | Shell | mit | 192 |
#!/bin/bash
#
# SPDX-License-Identifier: MIT
# Copyright © 2021 Apolo Pena
#
# update-composer.sh
# Description:
# Programatically updates composer to the latest version.
LOG='/var/log/workspace-image.log'
# BEGIN: update composer to the latest version
echo "BEGIN: update composer" | tee -a $LOG
echo " Purging existi... | concrete5/concrete5 | .gp/bash/update-composer.sh | Shell | mit | 1,571 |
#! /bin/bash
function read_dir(){
for file in `ls $1` #注意此处这是两个反引号,表示运行系统命令
do
if [ -d $1"/"$file ] #注意此处之间一定要加上空格,否则会报错
then
read_dir $1"/"$file
else
echo $1"/"$file #在此处处理文件即可
mv $1"/"$file /Users/jerry/Desktop/1
fi
done
}
#读取... | niasand/cool-config | shell_learn/get_images.sh | Shell | mit | 447 |
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: NGINX is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
# pidfile: /var/ru... | Novitoll/devops-linux-mentoring-program | Docker/web/nginx.sh | Shell | mit | 2,076 |
#!/bin/bash
set -x
set -e
# setup
apt-get update
apt-get install -y --no-install-recommends ca-certificates-java
ES_PKG_NAME=elasticsearch-7.10.2
cd /tmp/
wget -nv -t5 -O es.tar.gz https://artifacts.elastic.co/downloads/elasticsearch/$ES_PKG_NAME-linux-x86_64.tar.gz
tar xzf es.tar.gz
rm -f es.tar.gz
mv /tmp/$ES_PKG... | nfq-technologies/docker-images | elasticsearch710/build/setup_docker.sh | Shell | mit | 663 |
#!/bin/bash
# to maintain cask ....
# brew update && brew upgrade brew-cask && brew cleanup && brew cask cleanup`
# Install native apps.
brew install caskroom/cask/brew-cask
brew tap caskroom/versions
# browsers
brew cask install google-chrome-canary
brew cask install firefox-nightly
brew cask install firefox
#... | antleblanc/setup | shell/brew-cask.sh | Shell | mit | 1,290 |
# Change the current directory to the extension folder
cd /var/ilx/workspaces/Common/ilxws_DEMO/extensions/ilxex_DEMO/
# Install the Node.js request module (https://www.npmjs.com/package/request)
npm install request --save
# Install the Node.js string module (https://www.npmjs.com/package/string)
npm install string -... | ArtiomL/f5networks | iruleslx/tutorial/part3/tm.sh | Shell | mit | 326 |
#!/usr/bin/env bash
yum -y update
yum groupinstall 'Development Tools'
curl https://setup.ius.io/ | bash -
yum -y install php70u nginx curl vim php70u-fpm-nginx php70u-cli php70u-mysqlnd
curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
yum -y install nodejs
cat << EOF > /etc/yum.repos.d/mongodb-o... | sercril/ACTimer | vagrant/packages.sh | Shell | gpl-2.0 | 552 |
#! /bin/sh
# Copyright (C) 2011-2022 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | autotools-mirror/automake | t/warnings-unknown.sh | Shell | gpl-2.0 | 1,398 |
#!/usr/bin/env bash
. ./lib
# This demonstrates a bug that happens if you revert followed by
# a partial unrevert and a full unrevert. It requires that
# the second unrevert is working with patches who's contents need
# to be modified by the commute in the first unrevert.
rm -rf temp1
mkdir temp1
cd temp1
darcs init... | DavidAlphaFox/darcs | tests/double-unrevert.sh | Shell | gpl-2.0 | 641 |
#!/bin/bash
RESTORE=$(echo -en '\033[0m')
BOLD=$(echo -en '\033[1m')
RED=$(echo -en '\033[00;31m')
GREEN=$(echo -en '\033[00;32m')
YELLOW=$(echo -en '\033[00;33m')
BLUE=$(echo -en '\033[00;34m')
MAGENTA=$(echo -en '\033[00;35m')
PURPLE=$(echo -en '\033[00;35m')
CYAN=$(echo -en '\033[00;36m')
LIGHTGRAY=$(echo -en '\033... | UniversalDependencies/tools | runtests.sh | Shell | gpl-2.0 | 1,988 |
#!/bin/bash
echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"
# Build the project.
hugo --theme=lanyon --buildDrafts # if using a theme, replace by `hugo -t <yourtheme>`
# Go To Public folder
cd public
# Add changes to git.
git add -A
# Commit changes.
msg="rebuilding site `date`"
if [ $# -eq 1 ]
then ms... | ezobn/hugo-blog-source | deploy.sh | Shell | gpl-2.0 | 435 |
#!/bin/bash
WEBPERF="${BUILD_DIR}/bin/webperf"
FT_COMMON="webperf/ft/common"
TMP="${BUILD_DIR}/ft/webperf"
PHANTOMJS="${CACHE_DIR}/bin/phantomjs"
TEST_DIR=$(dirname "${BASH_SOURCE[1]}")
mkdir -p "${TMP}"
update_urls()
{
if [ $# -ne 2 ]; then
echo "Usage: update_urls.sh <URL> <output>" 1>&2
retur... | wwwperf/webperf | webperf/ft/common/ft.bash | Shell | gpl-2.0 | 999 |
#!/bin/bash
#exit when command fails (use || true when a command can fail)
set -o errexit
#exit when your script tries to use undeclared variables
set -o nounset
# in scripts to catch mysqldump fails
set -o pipefail
# Set magic variables for current file & dir
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" ... | cyclingzealot/bin | gitTools/push.bash | Shell | gpl-2.0 | 1,568 |
#!/usr/bin/env bash
# coding=utf-8
[ -z "$UHP_HOME" ] && {
echo "UHP_HOME not set."
exit 1
}
#echo "UHP_HOME=$UHP_HOME"
app=`basename "$0" .sh`
app=${app#*-} # app=worker
echo "------------------------------"
echo "- STOP $app"
echo "------------------------------"
pid=$(cat ${UHP_HOME}/pids/${app}/*.pid 2>... | uhp/uhp | bin/stop-app.sh | Shell | gpl-2.0 | 724 |
#!/bin/sh
#
# ADTPro - *nix startup shell script
#
# Note:
# Invoke with the name of the communications button to push
# in order to start with that mode active (i.e. './adtpro.sh ethernet')
#
# You can set two variables here:
# 1. $MY_JAVA_HOME - to pick a particular java to run under
# 2. $ADTPRO_HOME - to sa... | ADTPro/ADTPro | build/adtprobase.sh | Shell | gpl-2.0 | 1,444 |
#!/bin/bash
# this script is used for comparing decoding results between systems.
# e.g. local/chain/compare_wer_general.sh exp/chain_cleaned/tdnn_{c,d}_sp
# For use with discriminatively trained systems you specify the epochs after a colon:
# for instance,
# local/chain/compare_wer_general.sh exp/chain_cleaned/tdnn_c... | michellemorales/OpenMM | kaldi/egs/fisher_english/s5/local/chain/compare_wer_general.sh | Shell | gpl-2.0 | 3,004 |
#!/bin/sh
## java env
export JAVA_HOME=/usr/local/java/jdk1.7.0_72
export JRE_HOME=$JAVA_HOME/jre
## you just need to change this param name
APP_NAME=fee
SERVICE_DIR=/home/wusc/edu/service/$APP_NAME
SERVICE_NAME=pay-service-$APP_NAME
JAR_NAME=$SERVICE_NAME\.jar
PID=$SERVICE_NAME\.pid
cd $SERVICE_DIR
case "$1" in
... | piaolinzhi/fight | dubbo/pay/应用部署脚本/service-fee.sh | Shell | gpl-2.0 | 1,232 |
#!/bin/sh
#
# $Id: xhbgtmk.sh 9279 2011-02-14 18:06:32Z druzus $
#
# ---------------------------------------------------------------
# Copyright 2003 Przemyslaw Czerpak <druzus@polbox.com>
# This script checks you have all tools to build xHarbour binaries
# installed then takes current xHarbour sources from SourceForg... | xharbour/core | xhbgtmk.sh | Shell | gpl-2.0 | 1,551 |
#!/bin/bash
build_compile()
{
make
}
build_pack()
{
make install \
prefix=$BUILD_PACK/usr \
MANDIR=$BUILD_PACK/usr/share/man/man1
}
| phyglos/phyglos | bundles/phyglos-deck.dir/tree-1.7.0.sh | Shell | gpl-2.0 | 146 |
# ----------------------------------------------------------------------------
# Fala a pronúncia correta de uma palavra em inglês.
# Uso: zzpronuncia palavra
# Ex.: zzpronuncia apple
#
# Autor: Thobias Salazar Trevisan, www.thobias.org
# Desde: 2002-04-10
# Versão: 4
# Licença: GPL
# Requisitos: zzplay
# -------------... | gmgall/funcoeszz | zz/zzpronuncia.sh | Shell | gpl-2.0 | 1,735 |
#!/bin/bash
#
# Allow all ICMP traffic.
#
set -e # Errors are fatal
iptables -D OUTPUT -p icmp -j DROP
echo "#"
echo "# Now allowing all ICMP traffic"
echo "#"
| dakiri/splunk-network-monitor | bin/icmp_allow.sh | Shell | gpl-2.0 | 164 |
# ----------------------------------------------------------------------------
# Testa a validade do número no tipo de categoria selecionada.
# Nada é ecoado na saída padrão, apenas deve-se analisar o código de retorno.
# Pode-se ecoar a saída de erro usando a opção -e antes da categoria.
#
# Categorias:
# ano ... | faustovaz/funcoeszz | zz/zztestar.sh | Shell | gpl-2.0 | 7,078 |
#!/bin/bash
set -e
# Installs modules as defined in environment variables
source "${EJABBERD_HOME}/docker/lib/base_config.sh"
source "${EJABBERD_HOME}/docker/lib/config.sh"
source "${EJABBERD_HOME}/docker/lib/base_functions.sh"
source "${EJABBERD_HOME}/docker/lib/functions.sh"
install_module_from_source() {
loc... | lemenkov/ejabberd | docker/post/11_ejabberd_install_modules.sh | Shell | gpl-2.0 | 4,929 |
#!/bin/bash
## begin license ##
#
# "Meresco Components" are components to build searchengines, repositories
# and archives, based on "Meresco Core".
#
# Copyright (C) 2010 Seek You Too (CQ2) http://www.cq2.nl
# Copyright (C) 2012-2013, 2015-2016, 2020 Seecr (Seek You Too B.V.) https://seecr.nl
# Copyright (C) 2015 Kon... | seecr/meresco-components | test/alltests.sh | Shell | gpl-2.0 | 1,666 |
#!/bin/bash
#mkdir -p /var/www/html/myhvacshop.com/wp-content/themes
#mkdir -p /var/www/html/myhvacshop.com/wp-content/plugins
echo ok
| Doap/myhvacshop.com | scripts/makedirs.sh | Shell | gpl-2.0 | 136 |
PDC_COLS=74
PDC_LINES=48
PDC_FONT=fonts/pdcfont-tiles.bmp
#./wtfgame ./game/start-fixed-iso.js
gdb --args ./wtfgame ./game/start-fixed-iso.js
| blamarche/wtfgame | release/start game-debug.sh | Shell | gpl-2.0 | 145 |
#! /bin/bash
function myecho()
{
echo ====================== BUDDYBOX MAGIC IN PROGRESS ===================================
}
sudo echo -e "[user]\n\tname = EasyEngine\n\temail = root@buddy.box" > ~/.gitconfig
myecho
wget -qO ee rt.cx/ee && sudo bash ee stable || exit 1
myecho
sudo ee stack install || exit 1
m... | BoweFrankema/buddybox | buddybox.sh | Shell | gpl-2.0 | 472 |
#!/bin/bash
mkdir -p data/local
local=`pwd`/local
scripts=`pwd`/scripts
export PATH=$PATH:`pwd`/../../../tools/irstlm/bin
echo "Preparing train and test data"
train_base_name=train_yesno
test_base_name=test_yesno
waves_dir=$1
ls -1 $waves_dir > data/local/waves_all.list
cd data/local
../../local/create_yesno_wav... | michellemorales/OpenMM | kaldi/egs/yesno/s5/local/prepare_data.sh | Shell | gpl-2.0 | 1,065 |
# Copyright 2009 Enno Ruijters
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of version 2 of the GNU General
# Public License as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; with... | ennoruijters/e2defrag | tests/t1111-full.sh | Shell | gpl-2.0 | 1,597 |
export PATH=/work/workspace/toolschain/gcc-3.4.5-glibc-2.3.6/bin:$PATH
#make distclean
make 100ask24x0_config
make
| andyjhf/uboot | build.sh | Shell | gpl-2.0 | 116 |
#!/bin/bash
# Add the sample assets
start_date=$(date '+%FT%H:%M:%SZ')
end_date=$(date '+%FT%H:%M:%SZ' -d '+6 years')
curl --header "Content-Type: application/json" \
--request POST \
--data "{
\"name\": \"Screenly Weather Widget\",
\"uri\": \"https://weather.srly.io\",
\"mimetype\": \"webpage\",
... | GreatFruitOmsk/screenly-ose | bin/prepare_device_for_imaging.sh | Shell | gpl-2.0 | 1,272 |
#!/bin/sh
DIRNAME=`dirname $1`
FILENAME=`basename $1`
ls $DIRNAME/*.tar.xz | sort | while read fname; do
WNAME=`basename $fname`
if [ "$WNAME" \< "$FILENAME" ]
then
if [ "$2" \= "" ]
then
tar -xJGf "$fname"
else
mkdir "$2"
tar -C "$2" -xJGf "$fname"
fi
fi
if [ "$2... | roandbox/backuptar | extract.sh | Shell | gpl-2.0 | 425 |
#!/bin/sh
# Copyright (C) 2012 Red Hat, Inc. All rights reserved.
#
# This file is part of LVM2.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy o... | Distrotech/LVM2 | test/api/pytest.sh | Shell | gpl-2.0 | 1,021 |
#!/bin/bash
#Crosslink Copyright (C) 2016 NIAB EMR see included NOTICE file for details
#
# build crosslink_viewer and crosslink_graphical
#
set -eu
TYPE="-Wall -Wextra -O3"
#TYPE="-Wall -Wextra -g"
AUX=""
#uncomment to select alternative colour scheme
#AUX="-DALTCOLSCHEME"
gcc ${TYPE} ${AUX}\
-o crosslink_vi... | eastmallingresearch/crosslink | scripts/viewer_make.sh | Shell | gpl-2.0 | 753 |
#!/bin/sh
set -e
set +u
# Avoid recursively calling this script.
if [[ $SF_MASTER_SCRIPT_RUNNING ]]
then
exit 0
fi
set -u
export SF_MASTER_SCRIPT_RUNNING=1
BUILD_ROOT=/tmp/PebbleVendor_build/build
SF_TARGET_NAME=PebbleVendor
SF_EXECUTABLE_PATH=libPebbleVendor.a
SF_WRAPPER_NAME=PebbleVendor.framework
SF_IPHONE_BUI... | sdeyerle/pebble_fun | PebbleSDK-2.0-BETA7/PebbleKit-iOS/PebbleVendor/build_framework.sh | Shell | gpl-2.0 | 1,478 |
#!/bin/bash
export PATH=$PATH:"/home/svtuser/Projects/dhARMa/toolchain/arm-2014.05/bin"
arm-none-eabi-as $1.s -o $1.o
arm-none-eabi-objcopy $1.o $1.bin -O binary
arm-none-eabi-objdump -SD $1.o > $1.obj
../../bin/signgp ./$1.bin
mv $1.bin.ift MLO
| mutex023/dhARMa | src/5-MLO-LedBlink-RTCInterrupt-RelocatedIntVec/build.sh | Shell | gpl-2.0 | 251 |
#!/bin/sh
export DEBIAN_FRONTEND=noninteractive
apt-get update -qq
apt-get upgrade -qq
apt-get install -qq \
vim most screen htop pv \
curl wget jq net-tools netcat \
make git etckeeper
# set up git
git config --global user.name "${GIT_AUTHOR_NAME:-Markus Rudy}"
git config --global user.email "${GIT_AUT... | burgerdev/devops | ubuntu-basic-packages.sh | Shell | gpl-2.0 | 355 |
python queryK.py -k 9 -K 30 -s 15 -b ../data/multipleK/boxquery30 -o ../data/multipleK/result30
| updownlife/multipleK | src/queryK.sh | Shell | gpl-2.0 | 96 |
#!/bin/bash
msgfmt -o /usr/share/locale/de/LC_MESSAGES/HTML-FormEngine.mo ../../../../HTML-FormEngine/locale/de/LC_MESSAGES/HTML-FormEngine.po HTML-FormEngine-DBSQL.po
| gitpan/HTML-FormEngine-DBSQL | locale/de/LC_MESSAGES/create.sh | Shell | gpl-2.0 | 170 |
#!/bin/bash
cd /glusterfs/netapp/homes1/BOCONNOR/gitroot/pancancer-sandbox/bionimbus_monitor
# checks and turns off nodes it can't ssh to
perl test.pl --verbose --use-nova --glob-target 'fleet_master' --cluster-json /glusterfs/netapp/homes1/BOCONNOR/gitroot/decider/decider-bwa-pancancer/pdc_cluster.2.json --ssh-pem /g... | ICGC-TCGA-PanCancer/pancancer-sandbox | bionimbus_monitor/test_nova.sh | Shell | gpl-2.0 | 397 |
#!/bin/bash
#
# Script: run_backup.sh
#
#
# Purpose: Backup an Oracle database using rman
#
# Usage: run_backup.sh sid
# where sid is the sid of the database to be backed up
# Logfiles created in /backup/backup_scripts/logs
#
# also sends a second backup to $DEST
#
#
# number of days to keep files
... | acmyonghua/oracle-1 | rman_backup.sh | Shell | gpl-2.0 | 3,956 |
#!/usr/bin/ksh
echo "TYPE: paths with lspath " > ../DATA/$0.`uname -n`.command
lspath | grep -v Enabled > ../DATA/$0.`uname -n`.txt
RC=$?
if [ -s "../DATA/$0.`uname -n`.txt" ] ; then
echo BAD > ../DATA/$0.`uname -n`.error
else
echo OK > ../DATA/$0.`uname -n`.error
fi
| camp8chris/SYSTEMS | PLUGINS/Check_aix_lspaths.sh | Shell | gpl-2.0 | 292 |
#!/bin/bash
configfile='/root/.backup_config/backup'
configfile_secured='/tmp/backup'
if egrep -q -v '^#|^[^ ]*=[^;]*' "$configfile"; then
echo "Config file is unclean, cleaning it..." >&2
egrep '^#|^[^ ]*=[^;&]*' "$configfile" > "$configfile_secured"
configfile="$configfile_secured"
fi
source "$configfile"
_m... | muhilvannan/linux-backup-scripts | s3-monthly-backup.sh | Shell | gpl-2.0 | 741 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.