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
set -e
IMG=raspbian-ua-netinst-`date +%Y%m%d`-git`git rev-parse --short @{0}`.img
rm -f $IMG
rm -f $IMG.xz
dd if=/dev/zero of=$IMG bs=1M count=32
fdisk $IMG <<EOF
n
p
1
t
b
w
EOF
if ! losetup --version &> /dev/null ; then
losetup_lt_2_22=true
elif [ $(echo $(losetup --version | rev|cut -f1 -d' '|r... | bbinet/raspbian-ua-netinst | buildroot.sh | Shell | isc | 756 |
#!/bin/bash
set -e
# Deploy documentation files to website
SOURCE_BRANCH="master"
TARGET_REPO="Cecilapp/phpoole.github.io"
TARGET_REPO="Cecilapp/phpoole.github.io"
TARGET_BRANCH="source"
SOURCE_DOCS_DIR="docs"
TARGET_DOCS_DIR="content/documentation"
echo "Starting to update documentation..."
cp -R $SOURCE_DOCS_DIR $... | Narno/PHPoole-library | scripts/deploy-docs.sh | Shell | mit | 942 |
bubblewrap/Tools/genie/genie-linux --platform=x32 gmake
| Dezzles/ludumdare32 | make_gmake_build.sh | Shell | mit | 56 |
SEMBENCH_WORKLOADS=futex
. $SHELLPACK_TOPLEVEL/drivers/driver-sembench-common.sh
| gormanm/mmtests | drivers/driver-sembench-futex.sh | Shell | gpl-2.0 | 81 |
#!/bin/sh
#
# Copyright (c) 2012 Felipe Contreras
#
# Base commands from hg-git tests:
# https://bitbucket.org/durin42/hg-git/src
#
test_description='Test remote-hg'
. ./test-lib.sh
if ! test_have_prereq PYTHON; then
skip_all='skipping remote-hg tests; python not available'
test_done
fi
if ! "$PYTHON_PATH" -c 'im... | gialachoanglong/tortoisegit.tgit | contrib/remote-helpers/test-hg.sh | Shell | gpl-2.0 | 2,155 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | jpiccari/kubernetes | hack/test-cmd.sh | Shell | apache-2.0 | 80,254 |
#!/bin/bash
function configure() {
configure_passwd
}
function configure_passwd() {
sed "/^jboss/s/[^:]*/$(id -u)/3" /etc/passwd > /tmp/passwd
cat /tmp/passwd > /etc/passwd
rm /tmp/passwd
} | bdecoste/cct_module | os-jws-launch/added/launch/passwd.sh | Shell | apache-2.0 | 199 |
#!/bin/sh
set -e
#
# adjust as needed for your clang setup
#
# -Wno-padded padding can change by OS/version this check is really
# for embedded systems so it's ok to skip
#
# -Wno-covered-switch-default Don't warn if we have a switch that
# covers all of an enum AND we have a default. enums are only loosely
# type... | fengjian/libinjection | configure-clang.sh | Shell | bsd-3-clause | 737 |
#!/usr/bin/env bash
ps aux|grep -- 'bin/buildout'|awk '{print $2}'|xargs kill -9
bin/buildout $@
| hellfish2/collective.generic.webbuilder | b.sh | Shell | bsd-3-clause | 98 |
#!/bin/bash
FN="pd.porgene.1.1.st_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.10/data/annotation/src/contrib/pd.porgene.1.1.st_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.porgene.1.1.st_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.porgene.1.1.st/bioconductor-... | Luobiny/bioconda-recipes | recipes/bioconductor-pd.porgene.1.1.st/post-link.sh | Shell | mit | 1,466 |
#!/bin/bash
FN="HuExExonProbesetLocationHg18_0.0.2.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/HuExExonProbesetLocationHg18_0.0.2.tar.gz"
"https://bioarchive.galaxyproject.org/HuExExonProbesetLocationHg18_0.0.2.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-h... | bebatut/bioconda-recipes | recipes/bioconductor-huexexonprobesetlocationhg18/post-link.sh | Shell | mit | 1,538 |
#!/usr/bin/env bash
#grails-version-deploy.sh <grails version number>
GRAILS_VERSION=$1
DIST_DIR="dist-$GRAILS_VERSION"
rm -rf $DIST_DIR
mkdir $DIST_DIR
cd $DIST_DIR
curl -O http://dist.springframework.org.s3.amazonaws.com/release/GRAILS/grails-$GRAILS_VERSION.zip
unzip grails-$GRAILS_VERSION.zip
mv grails-$GRAILS_V... | regorous/heroku-buildpack-grails-nodejs | opt/grails-version-package.sh | Shell | mit | 434 |
#!/bin/sh
/**
* Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
*/
# This shell script programs the ISP (flash array), the ISP configuration words
# (User page) and the general-purpose fuse bits.
# Copyright (c) 2011-2014 Atmel Corporation. All rights reserved.
#
# Redistrib... | femtoio/femto-usb-blink-example | blinky/common/services/usb/class/dfu_flip/device/bootloader/avr32/atucl3_l4/releases/atucl3_l4-isp-1.1.4/program_atucl3_l4-isp-1.1.4.sh | Shell | mit | 2,552 |
#!/bin/bash
# Copyright 2019 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 require... | xzturn/tensorflow | tensorflow/tools/ci_build/release/ubuntu_16/gpu_py37_full/nonpip_v1.sh | Shell | apache-2.0 | 2,097 |
#!/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... | apache/bigtop | bigtop-packages/src/common/elasticsearch/install_elasticsearch.sh | Shell | apache-2.0 | 4,551 |
#!/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 ... | ddysher/kubernetes | staging/copy.sh | Shell | apache-2.0 | 7,031 |
#!/usr/bin/env bash
set -e
cd "$(dirname "$BASH_SOURCE")/.."
rm -rf vendor/
source 'hack/.vendor-helpers.sh'
# the following lines are in sorted order, FYI
clone git github.com/Azure/go-ansiterm 70b2c90b260171e829f1ebd7c17f600c11858dbe
clone git github.com/Microsoft/hcsshim v0.2.1
clone git github.com/Microsoft/go-wi... | Microsoft/docker | hack/vendor.sh | Shell | apache-2.0 | 5,014 |
#!/bin/sh
# $Id:$
ln -s ../export.cpp
ln -s ../export.h
ln -s ../export.i
if [ "$1" = "--swig" ];
then
swig -c++ -ruby -o export_wrap.cpp export.i
fi
| oinbar/simstring | swig/ruby/prepare.sh | Shell | bsd-3-clause | 158 |
#!/bin/bash
CURDIR="${PWD}"
LNGDIR="${PWD}/lumina-i18n/ts"
git clone https://github.com/pcbsd/lumina-i18n.git
[[ ! -d "${LNGDIR}" ]] && (echo "something went wrong!" && exit 1)
LANGS=("${LNGDIR}"/*)
LANGS=(${LANGS[@]/*\/ts\/})
UTILS=( config desktop fileinfo fm info open screenshot search xconfig )
echo ${LANGS[@... | grahamperrin/lumina | debian/merge-lumina-i18n.sh | Shell | bsd-3-clause | 984 |
#!/bin/bash
FN="pd.mogene.2.1.st_3.14.1.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/pd.mogene.2.1.st_3.14.1.tar.gz"
"https://bioarchive.galaxyproject.org/pd.mogene.2.1.st_3.14.1.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.mogene.2.1.st/bioconductor-pd.mo... | joachimwolff/bioconda-recipes | recipes/bioconductor-pd.mogene.2.1.st/post-link.sh | Shell | mit | 1,338 |
#!/bin/bash
FN="MeSH.Ana.eg.db_1.11.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.8/data/annotation/src/contrib/MeSH.Ana.eg.db_1.11.0.tar.gz"
"https://bioarchive.galaxyproject.org/MeSH.Ana.eg.db_1.11.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-mesh.ana.eg.db/bioconductor-mesh.ana.eg.d... | ivirshup/bioconda-recipes | recipes/bioconductor-mesh.ana.eg.db/post-link.sh | Shell | mit | 1,328 |
touch my.stat; rm my.stat; touch my.stat
#make sure you keep only the minimum required files in directory 'decompressor'
size1=0
for f in $(stat -f%z decompressor/*)
do
size1=$(expr $size1 + $f)
done
for file in data/*
do
size0=$(stat -f%z $file)
printf "%s: %d -> " $file $size0
sfile=$(echo "s$file" | ... | assamite/itm_project | returns/third/itmProject/runtest_osx.sh | Shell | gpl-2.0 | 1,077 |
#!/bin/bash
#set -x
set -e
LUSTRE=${LUSTRE:-`dirname $0`/..}
. $LUSTRE/tests/test-framework.sh
init_test_env $@
nobjhi=${nobjhi:-1}
thrhi=${thrhi:-16}
size=${size:-1024}
# the summary file a bit smaller than OSTSIZE
. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
init_logging
[ "$SLOW" = no ] && { nobjhi=1; thrhi=4; }
thrl... | girishshilamkar/lustre-release | lustre/tests/obdfilter-survey.sh | Shell | gpl-2.0 | 5,531 |
#!/bin/sh
# Ensure that hard links are preserved when moving between partitions
# and when the links are in separate command line arguments.
# For additional constraints, see the comment in copy.c.
# Before coreutils-5.2.1, this test would fail.
# Copyright (C) 2004-2014 Free Software Foundation, Inc.
# This program ... | houwentaoff/coreutils | tests/mv/part-hardlink.sh | Shell | gpl-3.0 | 1,463 |
#!/bin/sh
#
# Pre-Compile.sh
#
# Script that install libvlc and its modules inside VLCKit.
#
# This is for some creepy reasons also used by legacy VLC.app or
# the moz plugin.
#
# We are building VLC.app or the moz plugin
#
if test "${ACTION}" = "release-makefile"; then
echo "running Pre-Compile.sh in release-make... | waterskier2007/VLCKit | Pre-Compile.sh | Shell | lgpl-2.1 | 10,923 |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
OS_ROOT=$(dirname "${BASH_SOURCE}")/../..
source "${OS_ROOT}/hack/common.sh"
source "${OS_ROOT}/hack/util.sh"
source "${OS_ROOT}/hack/cmd_util.sh"
os::log::install_errexit
# Cleanup cluster resources created by this test
(
set +e
oc delete all,templates -... | rhuss/gofabric8 | vendor/github.com/openshift/origin/test/cmd/process.sh | Shell | apache-2.0 | 4,477 |
#!/bin/bash
# Set up build environment
source ../setenv.sh mipsel-linux-android
# Download and extract the library source
FILENAME=allegro-4.4.2
EXTENSION=tar.gz
wget -c http://downloads.sourceforge.net/project/alleg/allegro/4.4.2/$FILENAME.$EXTENSION -O ../$FILENAME.$EXTENSION
tar -zxf ../$FILENAME.$EXTENSION
# Bui... | OutOfOrder/ags-geminirue | Android/buildlibs/mips/allegro.sh | Shell | artistic-2.0 | 816 |
#!/usr/bin/env node
var kexec = require('../../');
kexec('echo', [ "hello", "world" ]);
| coleww/node-kexec | test/files/echovp.sh | Shell | mit | 90 |
#!/bin/bash
# This script is a part of RPC & TI-RPC Test Suite
# (c) 2007 BULL S.A.S.
# Please refer to RPC & TI-RPC Test Suite documentation.
# More details at http://nfsv4.bullopensource.org/doc/rpc_testsuite.php
# This scripts launch everything needed to test RPC & TI-RPC
# Never try to launch alone, run "script_r... | anthony-kolesov/arc_ltp | testcases/network/rpc/rpc-tirpc-full-test-suite/tirpc_toplevel_scalability_lib.sh | Shell | gpl-2.0 | 1,942 |
#!/bin/bash
lib=$(dirname $0)/lib
$lib/ucalls.py -l ruby "$@"
| shodoco/bcc | tools/rubycalls.sh | Shell | apache-2.0 | 62 |
#!/bin/bash
FN="pd.porgene.1.1.st_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/annotation/src/contrib/pd.porgene.1.1.st_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.porgene.1.1.st_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.porgene.1.1.st/bioconductor-... | cokelaer/bioconda-recipes | recipes/bioconductor-pd.porgene.1.1.st/post-link.sh | Shell | mit | 1,337 |
touch gracefully_exit_server-19-2c
| herzbube/fuego-on-ios | tools/cgos/stop-19-2c.sh | Shell | lgpl-3.0 | 35 |
#!/usr/bin/env bash
set -ex
hide_output() {
set +x
on_err="
echo ERROR: An error was encountered with the build.
cat /tmp/build.log
exit 1
"
trap "$on_err" ERR
bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
PING_LOOP_PID=$!
"$@" &> /tmp/build.log
rm /tmp/build.log
trap - ERR
... | aidancully/rust | src/ci/docker/host-x86_64/dist-arm-linux/build-toolchains.sh | Shell | apache-2.0 | 526 |
#! /usr/bin/env sh
echo "POST D_A running"
exit 0
| djw8605/htcondor | src/condor_tests/job_dagman_always_run_post-D_A_post.sh | Shell | apache-2.0 | 50 |
#!/usr/bin/env bash
# Exit on any error.
set -e
test_version() {
version=$1
RUBY_CONFORMANCE=test_ruby
if [ "$version" == "jruby-1.7" ] ; then
# No conformance tests yet -- JRuby is too broken to run them.
bash --login -c \
"rvm install $version && rvm use $version && rvm get head && \
wh... | nwjs/chromium.src | third_party/protobuf/ruby/travis-test.sh | Shell | bsd-3-clause | 1,422 |
#!/bin/bash
# Stop on error
set -e
# Install dependencies
echo travis_fold:start:Dependencies
if [ "$(uname)" = "Linux" ]; then
# Linux
sudo add-apt-repository -y ppa:jon-severinsson/ffmpeg
sudo apt-get update
sudo apt-get -y install wget tar bzip2 flvtool2 ffmpeg
wget http://ffmpeg.gusari.org/static/64bit/ffmp... | fritx/node-fluent-ffmpeg | tools/test-travis.sh | Shell | mit | 1,486 |
#!/bin/sh
# Make sure that cp -R DIR1 DIR2 does the right thing
# when DIR1 is written with a trailing slash.
# Copyright (C) 2000-2015 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 Fre... | andreas-gruenbacher/coreutils | tests/cp/dir-slash.sh | Shell | gpl-3.0 | 1,157 |
#!/bin/bash
# load java environment variables
source $IROOT/java8.installed
./gradlew clean --daemon
./gradlew run -Pargs=production,$DBHOST
| lcp0578/FrameworkBenchmarks | frameworks/Java/jawn/setup.sh | Shell | bsd-3-clause | 144 |
#!/bin/bash
##
## Copyright (c) 2012 The WebM project authors. All Rights Reserved.
##
## Use of this source code is governed by a BSD-style license
## that can be found in the LICENSE file in the root of the source
## tree. An additional intellectual property rights grant can be found
## in the file PATENTS. All... | reimaginemedia/webm.webmquicktime | installer/scripts/webm/postinstall.sh | Shell | bsd-3-clause | 993 |
#!/bin/sh
rm -f 1ac7.restart* 1ac7.dump
../charmm2lammps.pl -water -ions -border=2.0 all27_na 1ac7
| ibethune/lammps | tools/ch2lmp/example/convert.sh | Shell | gpl-2.0 | 99 |
#!/bin/bash
# Copyright 2018 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 ... | linzhaoming/origin | vendor/k8s.io/kubernetes/hack/verify-generated-kubelet-plugin-registration.sh | Shell | apache-2.0 | 2,107 |
#!/usr/bin/env bash
# Copyright 2021 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | chestack/kubernetes | test/conformance/spec-to-docs.sh | Shell | apache-2.0 | 954 |
#!/bin/bash
# Copyright 2014 The Kubernetes Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless require... | beyondblog/kubernetes | hack/after-build/update-generated-docs.sh | Shell | apache-2.0 | 1,824 |
#!/bin/bash
# _needgen is a helper function to tell if we need to generate files for msgp, codecgen.
_needgen() {
local a="$1"
zneedgen=0
if [[ ! -e "$a" ]]
then
zneedgen=1
echo 1
return 0
fi
for i in `ls -1 *.go.tmpl gen.go values_test.go`
do
if [[ "$a" -ot... | abhinavdahiya/docker | vendor/src/github.com/ugorji/go/codec/prebuild.sh | Shell | apache-2.0 | 5,932 |
#!/bin/sh
# Copyright (c) 2002, Intel Corporation. All rights reserved.
# This file is licensed under the GPL license. For the full content
# of this license, see the COPYING file at the top level of this
# source tree.
# Upon successful completion, these functions shall return zero;
# otherwise, an error number sh... | liaoqingwei/ltp | testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_lock/2-1.sh | Shell | gpl-2.0 | 479 |
name=`basename $PWD`
echo $name
mkdir -p tmp
mv -f ~/.pm2/logs/${name}* tmp/. || echo 'no pm2 logs'
# domain
port=4
config=${config-secure}
if echo $name | grep -q 'demo'
then
port=8
config=demo
elif echo $name | grep -q 'replica'
then
port=6
config=replica
elif [ $USER = 'webserva' ]
then
config=webserva... | evanx/rquery | scripts/_name.sh | Shell | isc | 1,187 |
#!/bin/sh
#In order to use this, you need particle-cli
#npm install -g particle-cli
PLATFORM=particle
BASE_DIR=`pwd`
BUILD_DIR=$BASE_DIR/build/$PLATFORM
LIB_DIR=$BASE_DIR/deploy/$PLATFORM/firmware
BIN_DIR=$BUILD_DIR/bin
SRC_FILE=$BASE_DIR/$PLATFORM/examples/tentacle-particle/tentacle-particle.ino
echo "Compiling local... | octoblu/tentacle-build | particle/local-compile.sh | Shell | mit | 510 |
#!/bin/sh
NEIGHBOURS="../Output/Neighbours.txt"
ITER_PART="../Output/Iter_"
TARGET="../Output/FOUND"
mkdir -p "Output"
echo "First round: find neighbours"
if [ ! -f $NEIGHBOURS ]; then
cat ../Input/$1 | ./NeighbourMapper.py | sort -n | ./NeighbourReducer.py > $NEIGHBOURS
fi
i=0
if [ ! -f "$ITER_PART""$i"".tx... | AldurD392/SubgraphExplorer | OldStreamingExperiments/launcher.sh | Shell | mit | 747 |
#!/bin/csh -f
# make_data.sh
set path = (~/src/tomo $path)
set X=40 Z=10
set id = type1
set geom = geom.dat.$id
./getbathy.sh
echo "1 20 39" > tmp.xsrc
(cat tmp.xsrc ; cat tmp.xt) | \
awk 'NR==1{ns=NF; split($0,xsrc);i=1}NR>1 && $1==xsrc[i] {printf "%s ", $2; i++} END{printf "\n"}' > tmp.zsrc
cat tmp.xsrc > tmp.in
c... | lehoangha/tomo2d_HeriotWatt | sample/make_data.sh | Shell | mit | 653 |
# pwd = app_folder
node_modules/pgb-config-maker/batch.sh ios
| siddiq/pgb-config-maker | phonegap-remote-build-ios.sh | Shell | mit | 62 |
#!/usr/bin/env zsh -v
curl http://j.mp/spf13-vim3 -L -o - | sh
| NinoScript/ServerConfigurator | 4.spf13.sh | Shell | mit | 64 |
#!/bin/bash
/usr/bin/xset -display ":0.0" dpms force on | dadiletta/JarvusPi | screen_on.sh | Shell | mit | 55 |
#!/bin/sh
set -eu
# Hook SIGUSR1 and dump trace to file system
# shellcheck disable=SC2172
trap 'echo USR1 > /tmp/usr1.log' 10
echo $$ > /run/service.pid
while true; do
sleep 5
done
rm /run/service.pid
| troglobit/finit | test/common/service.sh | Shell | mit | 209 |
#!/bin/sh -e
#
# prepare: none
# job: this
# finalize: none
#
yum install authconfig-gtk openldap nss-pam-ldapd openldap-clients -y
| mikevo/domesticworker | collections/installation_rh-fam/job/ldap_auth.cl7.sh | Shell | mit | 132 |
function vssh() {
ssh dev.noths.com "cd /var/sites/noths/development && $*"
}
function ttv() {
dw=http://dw.notonthehighstreet.com/ttv-tracker/
yesterday=$(date -j -v-1d +"%Y/%m/%d")
open $dw$yesterday
}
function vssh() {
ssh vagrant@dev.noths.com "cd /var/sites/notonthehighstreet/current && $*"
}
function... | mikfreedman/noths-sprout-wrap | site-cookbooks/noths/templates/default/bash_it/custom/noths_helpers.bash | Shell | mit | 6,175 |
#!/usr/bin/env bash
RELEASES=( "pub_0.10::nodejs:Node.js 0.10"
"pub_0.10:_0.10:nodejs:Node.js 0.10"
"pub_0.12:_0.12:nodejs:Node.js 0.12"
"pub_iojs_1.x:_iojs_1.x:iojs:io.js 1.x"
"pub_iojs_2.x:_iojs_2.x:iojs:io.js 2.x"
"pub_iojs_3.x:_iojs_3.x:iojs:io.js 3.x"
... | nodesource/distributions | rpm/src/build.sh | Shell | mit | 1,494 |
#!/bin/sh
#
# Install vim and set it as default editor
yum -y install vim
echo 'EDITOR="/usr/bin/vim" ; export EDITOR' > /etc/profile.d/editor.sh
| KeithYeh/centos-base | provisioners/scripts/vim.sh | Shell | mit | 148 |
export PATH="./bin:$HOME/.rbenv/shims:/usr/local/bin:/usr/local/sbin:$HOME/.sfs:$CZSH/bin:$HOME/Code/skyscrapers/skyscrapers-tools/bin:/usr/local/opt/go/libexec/bin:/Users/gtheys/Code/Personal/flutter/bin:$PATH"
export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH"
| gtheys/dotfiles | system/path.zsh | Shell | mit | 294 |
#!/bin/bash -x
if [ ${UID} != 0 ] ; then
echo "Must be root - use sudo to run this script"
exit 1
fi
echo "deb http://ftp.debian.org/debian jessie main contrib" >> /etc/apt/sources.list
apt-get update
apt-get install virtualbox-guest-dkms virtualbox-guest-x11 linux-headers-$(uname -r)
| mazaclub/EasyGitianBuilder | extras/install_guest-additions.sh | Shell | mit | 290 |
#!/bin/bash -eu
#https://launchpad.net/~unit193/+archive/ubuntu/encryption
add-apt-repository -y ppa:unit193/encryption
apt-get update
apt-get -y upgrade
apt-get -y install veracrypt
exit 0
| antoine-morvan/linux_postinstall | 02_apps/truecrypt/ubuntu.sh | Shell | mit | 194 |
#!/bin/sh
[ "$1" ] || { echo "usage: $0 PIPE"; exit 1;}
trap "stty sane" 0 1 2 3 15
socat unix-connect:$1 stdio,raw,echo=0,icanon=0,crnl
| zzh8829/OSPP | zos/script/soc.sh | Shell | mit | 137 |
#!/bin/bash
TARGET=~/Developer/Github/Else
cd ${TARGET}
for file in ${TARGET}/*
do
cd ${file}
echo ${file##*/}
git remote -v | grep fetch | awk '{print $2}' | git pull
done
| ishepherdMiner/Daily_sh_set | update_repo.sh | Shell | mit | 180 |
#!/usr/bin/env bash
set -e
BRANCH=master
if [[ $BUILD_BRANCH != "master" ]];
then
BRANCH=dev
fi
if [ ! -d JaMmusic ]; then
(git clone https://github.com/WebJamApps/JaMmusic)
fi
(
cd JaMmusic || exit;
git stash;
git checkout $BRANCH;
git pull;
cd ..;
)
if [ -f .env ];
then
(cp .env JaMmusic/;
)
fi
(
c... | WebJamApps/web-jam-back | postinstallJaM.sh | Shell | mit | 347 |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-DAE_MLP_4_inc_real_CAE_sig
#SBATCH -e Deep-DAE_MLP_4_inc_real_CAE_sig.err.txt
#SBATCH -o Deep-DAE_MLP_4_inc_real_CAE_sig.out.txt
source /etc/profile.modules
module load gcc
module load matlab
cd ~... | aciditeam/matlab-ts | jobs/deepJobs_DAE_MLP_4_inc_real_CAE_sig.sh | Shell | mit | 601 |
#!/bin/sh
# shellcheck disable=SC2034
readonly IMAGE_NAME="technofovea/test-image:latest"; # Arbitrary for your project
readonly WEBSERVER_NAME="my-test-server"; # Matching "server" settings in PHPStorm
readonly HOST_NAME="mytest.docker"; # Just the network host-name as seen in container's command-line
readonly CID_P... | DHager/docker-php-library-demo | bin/config.sh | Shell | mit | 531 |
#! /bin/bash
### Install gt4gemstone from Tonel files into a Rowan-enabled stone
### Exits with 0 if success, 1 if failed
set -e
if [ -z "$ROWAN_PROJECTS_HOME" ]
then
echo "ROWAN_PROJECTS_HOME must be defined"
exit 1
fi
gt4GemstoneHome=${ROWAN_PROJECTS_HOME}/gt4gemstone
## Topaz refuses to exit from script if inpu... | feenkcom/gt4gemstone | scripts/installGt4gemstone.sh | Shell | mit | 663 |
#! @SHELL@
# autoheader -- create `config.h.in' from `configure.in'
# Copyright (C) 1992, 1993, 1994, 1996, 1998 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; e... | jubos/meguro | deps/autoconf-2.13/autoheader.sh | Shell | mit | 8,617 |
#!/bin/bash
#
# Generates code coverage report using gcov/geninfo/genhtml for each .cc file in current directory.
set -u -e
CPPFLAGS="-std=c++11 -g -Wall -W -fprofile-arcs -ftest-coverage -DBRICKS_COVERAGE_REPORT_MODE"
LDFLAGS="-pthread"
# NOTE: TMP_DIR must be resolved from the current working directory.
KNOWSHEET... | KnowSheet/fncas | KnowSheet/scripts/coverage-report.sh | Shell | mit | 1,325 |
#!/bin/sh
docker-compose -f docker-compose.test.yml build
docker-compose -f docker-compose.test.yml run --rm app; EXIT_STATUS=$?
docker-compose -f docker-compose.test.yml down
exit $EXIT_STATUS
| vilnius/tvarkau-vilniu-ms | run-tests-in-docker.sh | Shell | mit | 196 |
#!/usr/bin/env bash
set -ex # fail on first error, print commands
command -v conda >/dev/null 2>&1 || {
echo "Requires conda but it is not installed. Run install_miniconda.sh." >&2;
exit 1;
}
PYTHON_VERSION=${PYTHON_VERSION:-3.6} # if no python specified, use 3.6
if [[ $* != *--global* ]]; then
ENVNAME="te... | bambinos/bambi | scripts/create_testenv.sh | Shell | mit | 913 |
#!/bin/sh
service nginx stop
cd /data/webapp/blog/nginx/
rm /etc/nginx/sites-enabled/blog.conf
ln -s /data/webapp/blog/nginx/sites-enabled/madlord.cc.conf /etc/nginx/sites-enabled/blog.conf
service nginx start | madlordory/blog | nginx/link.sh | Shell | mit | 209 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2216-1
#
# Security announcement date: 2011-04-10 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:14 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - isc-dhcp:4.1.1-P1-15+squeeze2
#
# ... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2011/DSA-2216-1.sh | Shell | mit | 638 |
# When sourced, creates an Alfred-like environment
# getvar <name> | Read a value from info.plist
getvar() {
local v="$1"
/usr/libexec/PlistBuddy -c "Print :$v" ./src/info.plist
}
export alfred_workflow_bundleid=$( getvar "bundleid" )
export alfred_workflow_version=$( getvar "version" )
export alfred_workflo... | deanishe/alfred-stackoverflow | env.sh | Shell | mit | 1,267 |
#!/bin/bash
r.js -o build/config.js
cat src/header.js zig.min.js > /tmp/out && mv /tmp/out zig.min.js
| tybenz/zigjs | build.sh | Shell | mit | 104 |
#!/usr/bin/env bash
# Install command-line tools using Homebrew.
# Ask for the administrator password upfront.
sudo -v
# Keep-alive: update existing `sudo` time stamp until the script has finished.
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# Make sure we’re using the latest Hom... | mawie81/dotfiles | brew.sh | Shell | mit | 1,291 |
#!/bin/bash
# =========================================================================
# DESCRIPTION
# starts up MicroMacro app with certain params
# =========================================================================
# PARAMETERS
# initial wait time before starting commands of this script in seconds
# to ma... | HellicarAndLewis/InvisibleTreasure | show/bin/data/scripts/production/window.command | Shell | mit | 1,000 |
#!/bin/env bash
# Get parameters
mPath="$1"
# Restore configuration file
killall fcitx5
rm -rf "$HOME/.config/fcitx5"
cp -rf "$mPath/fcitx5/profile" "$HOME/.config/fcitx5"
#fcitx5 & >/dev/null 2>&1
| Cool-Pan/dotfiles | files/fcitx5/Script/Restore.sh | Shell | mit | 200 |
#!/bin/bash
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
add-apt-repository ppa:webupd8team/java
| danilohiggs/vm1 | add-java-repository.sh | Shell | mit | 163 |
#!/bin/bash
apt-get install -y tiger
tiger
| Timekiller11/server_installer | modules/tiger.sh | Shell | mit | 43 |
#!/bin/sh
set -eo pipefail -o nounset
## Get the genome file
genome=https://raw.githubusercontent.com/gogetdata/ggd-recipes/master/genomes/Homo_sapiens/GRCh37/GRCh37.genome
## Get the chromomsome mapping file
chrom_mapping=$(ggd get-files grch37-chrom-mapping-ucsc2ensembl-ncbi-v1 --pattern "*.txt")
wget --quiet -O -... | gogetdata/ggd-recipes | recipes/genomics/Homo_sapiens/GRCh37/grch37-evofold-ucsc-v1/recipe.sh | Shell | mit | 891 |
curl -s https://www.neurimshoes.co.il/api/report/compare > /dev/null | amirkatzster/Neurimos | scripts/dailytasks.sh | Shell | mit | 68 |
#!/bin/sh
# https://github.com/Homebrew/homebrew-core/issues/11636
rm -rf /usr/local/lib/ruby/gems/2.4.0/gems/psych-2.2.4
rm -rf /usr/local/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0/psych-2.2.4
| irliao/dotfiles | bin/scripts/fix-ruby-gem.sh | Shell | mit | 207 |
#!/bin/bash
set -o errexit -o nounset -o pipefail
SCRIPT_FILENAME="$(readlink -f "${0}")"
SCRIPT_PATH="$(dirname "${SCRIPT_FILENAME}")"
DOTFILES_PATH="${SCRIPT_PATH}/.."
# notify-send "test"
function current_volume {
amixer get 'Master' |grep 'Front Left:' | cut -f 2 -d '[' | cut -f 1 -d ']'
}
function curr... | schanur/dotfiles | i3/toolbox.sh | Shell | mit | 2,535 |
#!/bin/bash
#
# This script generates 'WebP.framework' (static library).
# An iOS app can decode WebP images by including 'WebP.framework'.
#
# 1. Download the latest libwebp source code from
# http://downloads.webmproject.org/releases/webp/index.html
# 2. Use this script instead of the original 'iosbuild.sh' to bui... | ibireme/YYImage | Vendor/WebP.sh | Shell | mit | 3,621 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=Base-Windows
CND_CONF=Release
CND_DISTDIR=dist
CND_BUILDDIR=build
CND_DLIB_EXT=dll
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/math
OUTPU... | RoseLeBlood/aSTL | examples/math/nbproject/Package-Release.bash | Shell | mit | 1,435 |
# Special Thanks to Stephen Simon :)
intUpdated=0;
intCloned=0;
intStashes=0;
intNewDirs=0;
#This function has no purpose other than making the output pretty.
function padOutput()
{
local color="$1"
local string="$2"
local padchar="$3"
if [ ! "$3" ]; then
padchar="**"
fi
local pad=$(printf '%0.1s' " "{1..76})... | RingoKam/BuiltToolGit | src/Assets/bashbase.sh | Shell | mit | 3,670 |
function categoriza() {
# longitud;latitud;parametro;abrebiatura;descripcion;anio-mes-dia;valor
echo "longitud;latitud;parametro;abrebiatura;descripcion;anio-mes-dia;valor;categoria" > NO2-Nitrogen-Dioxide-Madrid-Evolution.csv
cat filtrados/NO2-DIOXIDO_DE_NITROGENO.csv | awk -F ";" '{ if ($7<25) { print ... | asanzdiego/mapa-evolucion-contaminacion-aire-madrid | categoriza-no2.sh | Shell | mit | 1,249 |
#!/bin/bash
sleep 10
cd "$( dirname "${BASH_SOURCE[0]}" )"
/usr/bin/python ./vj-control-server.py
| j-be/vj-control-server | launch.sh | Shell | mit | 100 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2015:0988
#
# Security announcement date: 2015-05-13 08:04:35 UTC
# Script generation date: 2017-01-27 21:19:28 UTC
#
# Operating System: CentOS 5
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - firefox.i386:38.0-4.el5.centos
# - fir... | Cyberwatch/cbw-security-fixes | CentOS_5/x86_64/2015/CESA-2015:0988.sh | Shell | mit | 809 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2784-1
#
# Security announcement date: 2015-10-28 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:51 UTC
#
# Operating System: Ubuntu 15.10
# Architecture: i686
#
# Vulnerable packages fix on version:
# - openjdk-7-jre-lib:7u85-2.6.1-5ubuntu0.15.1... | Cyberwatch/cbw-security-fixes | Ubuntu_15.10/i686/2015/USN-2784-1.sh | Shell | mit | 2,175 |
#!/bin/bash
source ../core.sh
echo "====================================================================="
echo "OS Platfrom : $OS"
echo " Name : $OS_NAME"
echo " Version : $OS_VERSION"
echo " Machine : $MACH"
echo " File Ext : $FILE_EXT"
echo "============================================================... | dindinw/usersettings | lib/test/test_core.sh | Shell | mit | 525 |
# Sets reasonable OS X defaults.
#
# Or, in other words, set shit how I like in OS X.
#
# The original idea (and a couple settings) were grabbed from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Run ./set-defaults.sh and you'll be good to go.
# Disable press-and-hold for keys in favor of key rep... | iturgeon/dotfiles | osx/set-defaults.sh | Shell | mit | 1,694 |
#
# Aliases
#
alias ta='tmux attach -t'
alias ts='tmux new-session -s'
alias tl='tmux list-sessions'
alias tksv='tmux kill-server'
alias tkss='tmux kill-session -t'
# Only run if tmux is actually installed
if which tmux &> /dev/null
then
# Configuration variables
#
# Automatically start tmux
[[ -n... | Wildog/dotfiles | .tmuxinator/tmux.plugin.zsh | Shell | mit | 3,949 |
#!/bin/bash
set -euo pipefail
exec 3>&1
function on_error {
echo -e "\n-- Dependencies NOT installed.\n"
sleep 3
exit 1
}
trap on_error ERR
command -v conan >/dev/null 2>&1 ||
{
echo -e "-- CONAN PACKAGE MANAGER is used to install dependencies\n - Please install with 'pip install conan'"
on_erro... | helmesjo/hello-cd | scripts/install-dependencies.sh | Shell | mit | 2,550 |
#!/usr/bin/env bash
#
# Homebrew
#
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.
# Check for Homebrew
if test ! $(which brew)
then
echo " Installing Homebrew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
else
echo " U... | iheitlager/dotfiles | homebrew/brew_install.sh | Shell | mit | 390 |
#!/bin/sh
set -xe
make install
wait-for back-database:3306
make init-db
exec "$@"
| Collect-io/Collect.io | .docker/back-php/entrypoint.sh | Shell | mit | 85 |
#!/bin/sh
prog=deczky3a_sqp_test.m
depends="deczky3a_sqp_test.m \
test_common.m print_polynomial.m print_pole_zero.m \
armijo_kim.m \
fixResultNaN.m iirA.m iirE.m iirT.m iirP.m invSVD.m local_max.m iir_sqp_mmse.m \
iir_slb.m iir_slb_exchange_constraints.m iir_slb_constraints_are_empty.m \
iir_slb_set_empty_constraint... | robertgj/DesignOfIIRFilters | test/02/t0205a.sh | Shell | mit | 1,875 |
#!/bin/bash
FILE_NAME=$1
FILE_PATH=$2
if [ "$FILE_PATH" == "" ]; then
FULL_PATH="$FILE_NAME"
else
FULL_PATH="$FILE_PATH"/"$FILE_NAME"
fi
FULL_PATH_HTML="$FULL_PATH.html"
if [ -e "$FULL_PATH" ]; then
exit 0
fi
if [ -e "$FULL_PATH_HTML" ]; then
exit 0
fi
mkdir -p "$FULL_PATH"
echo "Starting Processing: $FULL_P... | NumberZeroSoftware/PDFINVEST | utils/run_ocropy.sh | Shell | mit | 741 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3002-1
#
# Security announcement date: 2016-06-10 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:30 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - linux-image-4.2.0-38-lowlatency:4.2.... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/x86_64/2016/USN-3002-1.sh | Shell | mit | 1,118 |
if which go 2>&1 > /dev/null; then
export GOPATH=~/dev/go
export PATH=${PATH}:${GOPATH}/bin
fi
| koenwtje/dotfiles | zsh.d/11-go.zsh | Shell | mit | 99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.