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 |
|---|---|---|---|---|---|
INPUT=$1
yum install perl-pmtools
pminst | grep -v -P "^\d" | sort | uniq > /tmp/installed_perl_fresh.log
comm -23 <(sort $INPUT | grep -v -P "^\d" | uniq) <(sort /tmp/installed_perl_fresh.log | uniq) > /tmp/installed_perl_diff.log
DATABASES=( $(sort /tmp/installed_perl_diff.log) )
TOTALc=`wc -l /tmp/installed_per... | sauloal/linuxscripts | yumupdate/perl_restore.sh | Shell | mit | 771 |
#!/usr/bin/env bash
if test `uname` = Darwin; then
cachedir=~/Library/Caches/KBuild
else
if [ -z $XDG_DATA_HOME ]; then
cachedir=$HOME/.local/share
else
cachedir=$XDG_DATA_HOME;
fi
fi
mkdir -p $cachedir
url=https://www.nuget.org/nuget.exe
if test ! -f $cachedir/nuget.exe; then
wge... | iambmelt/O365-ASPNETMVC-Start | build.sh | Shell | mit | 978 |
#!/bin/bash -e
##-------------------------------------------------------------------
## @copyright 2016 DennyZhang.com
## Licensed under MIT
## https://raw.githubusercontent.com/DennyZhang/devops_public/tag_v1/LICENSE
##
## File: check_proc_mem.sh
## Author : Denny <contact@dennyzhang.com>
## Description :
## --
##
#... | DennyZhang/devops_public | nagios_plugins/check_proc_mem/check_proc_mem.sh | Shell | mit | 2,759 |
#!/bin/bash
cd "$(dirname "$0")"
function doIt() {
rsync --exclude ".git/" \
--exclude ".gitignore" \
--exclude "install-deps.sh" \
--exclude ".DS_Store" \
--exclude "sync-remote.sh" \
--exclude "sync-local.sh" \
--exclude "README.md" \
--exclude "LICENSE.md" \
... | Kikobeats/dotfiles | sync-local.sh | Shell | mit | 695 |
#!/bin/bash -e
rsync -avrc --exclude=logs/* --exclude=.git --exclude=sync_vagrant_share_with_root.sh /vagrant/ /home/webapps/rsss/
| rgeyer/rs_selfservice | sync_vagrant_share_with_root.sh | Shell | mit | 132 |
#!/bin/bash
# Script to add manage UA override to B2G 1.2+
# Karl Dubost - 2013 © - MIT Licence
LOCAL_USER_JS=/tmp/user.js
LOCAL_ORIG_USER_JS=/tmp/orig-user.js
# TODO: Change this for /data/b2g/mozilla/*.default/
# The user profile is
# /data/b2g/mozilla/something.default/prefs.js
PROFILE_DIR=/system/b2g/defaults/pref... | karlcow/webcompat | moz/uaoverride/mozua2.sh | Shell | mit | 4,802 |
#!/bin/sh
rm $0
./base
echo "
------------------
(program exited with code: $?)"
echo "Press return to continue"
#to be more compatible with shells like dash
dummy_var=""
read dummy_var
| voidrank/ASA.tv | src/app/scripts/services/ABPlayerHTML5/css/geany_run_script.sh | Shell | mit | 195 |
#!/bin/bash
# Clone submodules
git submodule update --init
cd docs
# Fix sphinx to ignore non-local image warnings
filename="$(find /home/travis/virtualenv/ -name environment.py)"
sed -e '/nonlocal\ image\ URI\ found/ s/^/#/' -i ${filename}
# Test documentation
OPTIONS="-n" # nit-picky mode
if [[ "$1" = "-W" ]] ; t... | Gomez/docs-1 | test.sh | Shell | mit | 416 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-53-1
#
# Security announcement date: 2014-09-16 00:00:00 UTC
# Script generation date: 2017-01-01 21:08:48 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - apt:0.8.10.3+squeeze3
#
# Last versi... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2014/DLA-53-1.sh | Shell | mit | 650 |
#!/bin/sh
MODULE=ikev1
VERSION=0.9
TITLE=IPsec服务器
DESCRIPTION=高安全的企业VPN服务器
HOME_URL=Module_ikev1.asp
CHANGELOG="√修复重启防火墙规则可能丢失的BUG"
# Check and include base
DIR="$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd )"
# now include build_base.sh
. $DIR/../softcenter/build_base.sh
# build bin
sh $DIR/build/build ikev1
# c... | koolshare/ledesoft | ikev1/build.sh | Shell | mit | 467 |
# libs/copy_home_dir.sh
#
# Sub-routines to handle copying a user's homedir to the local machine.
# You can make an update script that calls this if you want to allow
# this to happen every time you `ezvm update`
#
# If there is a home directory in the local content dir (etc/local by default)
# then we want to copy i... | vube/ezvm | libs/copy-home-dir.sh | Shell | mit | 1,545 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-1460-1
#
# Security announcement date: 2012-05-31 00:00:00 UTC
# Script generation date: 2017-01-01 21:02:34 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - linux-image-3.2.0-1413-omap4:3.2.0-1... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/x86_64/2012/USN-1460-1.sh | Shell | mit | 713 |
sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
sudo setfacl -R -m u:www-data:rwX -m u:www-data:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:www-data:rwx app/cache app/logs
sudo -u www-data php app/console c... | Aldor007/mkaciuba.pl | cache.sh | Shell | mit | 728 |
#! /bin/sh
echo "Pruning the database"
# Add your pruning instructions here
$PRUNE_SCRIPT | ryanisnan/pg-clean-to-s3 | src/db_prune.sh | Shell | mit | 91 |
# remap caps lock (linux)
setxkbmap -option caps:ctrl_modifier
sudo apt install ansible curl
cd playbooks;ansible-playbook --ask-sudo-pass dev-laptop.yml
| ejosafat/dotfiles | setup_ubuntu.sh | Shell | mit | 157 |
#!/bin/bash
BGreen='\e[1;32m'
normal=`tput sgr0`
echo -e "${BGreen}"
echo -e "================================"
echo -e "== 1/4 INSTALL ENVIRONMENT =="
echo -e "================================"
echo -e "\033[0m${normal}"
virtualenv -p /usr/bin/python2.7 venv
echo -e "${BGreen}"
echo -e "========================... | shepilov-vladislav/Flask-Restless-Restangular-with-JWT-auth | bootstrap.sh | Shell | mit | 1,423 |
#!/usr/bin/env bash
set -ex
export CUDA_VISIBLE_DEVICES="" # ensure running on cpu
R=runs/87
mkdir -p $R/{repro1,repro2,bn,3repeats}
# exactly repros run_86
export RR=$R/repro1
nice ./naf_cartpole.py --action-force=100 \
--action-repeats=2 --steps-per-repeat=5 \
--optimiser=Momentum --optimiser-args='{"learning_rat... | matpalm/cartpoleplusplus | exps/run_87.sh | Shell | mit | 1,372 |
#!/bin/bash
# This was downloaded from http://deb.nodesource.com/setup_7.x
# Thanks to https://bugs.launchpad.net/ubuntu/+source/pycurl/+bug/1111673,
# we need to work with http:// deb locations instead of https://
# Discussion, issues and change requests at:
# https://github.com/nodesource/distributions
#
# Script... | journeymonitor/infra | puppet/modules/nodejs/files/opt/puppet/install/nodesource_nodejs_setup_7.x.sh | Shell | mit | 12,387 |
#!/bin/bash
set -e
python bootstrap
source bin/activate
pip install coverage
coverage erase
coverage run '--include=migrations/**' tests/testrunner.py
coverage xml
deactivate || : # virtualenv
| qmagico/gae-migrations | coverage.sh | Shell | mit | 195 |
#!/usr/bin/env bash
# 把生成好的文档上传到github.com/api上面去
# api-repos-location: /Users/leeight/local/leeight.github.com/edp-cli/api
# bash upload.sh localDocDir serverDocDir apiReposDir
set -x
LOCAL_DOC_DIR="$1"
SERVER_DOC_DIR="$2"
API_REPOS_LOCATION="$3"
cd "${API_REPOS_LOCATION}"
git checkout gh-pages
git reset --hard ori... | ecomfe/edp-webhooks | base/upload.sh | Shell | mit | 617 |
#!/bin/bash
set -e
SUFFIX=$1
if [ -z ${SUFFIX} ]; then
echo "Supply valid python package extension such as whl or tar.gz. Exiting."
exit 3
fi
script=`pwd`/${BASH_SOURCE[0]}
HERE=`dirname ${script}`
ROOT=`realpath ${HERE}/../..`
cd ${ROOT}
DESTENV=${ROOT}/.venvforinstall
if [ -d ${DESTENV} ]; then
rm -rf... | alisaifee/redis-py | .github/workflows/install_and_test.sh | Shell | mit | 930 |
#!/bin/bash
[ -z $MAKE ] && MAKE=make
[ -z $GIT ] && GIT=git
[ -z $MC_BOPOMOFO_REPO ] &&\
MC_BOPOMOFO_REPO=git://github.com/OpenVanilla/McBopomofo.git
[ -z ${TMPDIR} ] && TMPDIR=./
echo Pulling McBopomofo...
rm -rf ${TMPDIR}McBopomofo
${GIT} clone --depth=1 ${MC_BOPOMOFO_REPO} ${TMPDIR}McBopomofo
echo
echo Generat... | timdream/jszhuyin | build/pull-mcbopomofo-data.sh | Shell | mit | 621 |
export CONLL_PATH=~/uparse/data/nlp/treebank/treebank-2.0/combined/conll_token_scode
dist/Release/GNU-MacOSX/ai-parse -s optimize -p $CONLL_PATH -l 50 -e p-1v_p0v_p1v_c-1v_c0v_c1v_tl -o scode_token
| hsensoy/ai-parse | run_token.sh | Shell | mit | 198 |
#!/bin/bash
npm i -g polymer-cli bower
cd client
bower install
polymer build
| salimkayabasi/cherry | install/post-install.sh | Shell | mit | 77 |
#!/bin/sh
echo '{"version":1}[[],'
exec conky -c ~/.conky/conkyi3 2>/dev/null
| memes/home | .config/i3/primary_status.sh | Shell | mit | 78 |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
realpath() {
DIRECTORY="$(cd "${1%/*}" && pwd)"
FILENAME="${1##*/}"
echo "$DIRECTORY/$FILENAME"
}
install_reso... | iOSTestApps/News-YC---iPhone | Pods/Target Support Files/Pods/Pods-resources.sh | Shell | mit | 4,863 |
#!/bin/bash -e
################################################################################
## File: mysql.sh
## Desc: Installs MySQL Client
################################################################################
export ACCEPT_EULA=Y
# Mysql setting up root password
MYSQL_ROOT_PASSWORD=root
echo "mys... | mattgwagner/New-Machine | .github-actions/images/linux/scripts/installers/mysql.sh | Shell | mit | 858 |
#!/bin/bash
read_temperature() {
temperature=$(cat /sys/bus/w1/devices/28-*/w1_slave | grep -E 't=\w{3,6}' | grep -oE '\w{3,6}')
if [ ${#temperature} -lt 4 ]; then
return
fi
dot=$(expr ${#temperature} - 3)
result=${temperature:0:$dot}.${temperature:$dot}
logger -t "smartaquarium" "Current temperature: ... | uilianries/SmartAquarium | script/sensor/smartaquarium-temperature-sensor.sh | Shell | mit | 552 |
#!/bin/bash
sudo apt-get update
sudo apt-get -y install mysql-server
# Need to add a line here using the command: sed Addthat will replace the bind-address value in /etc/mysql/my.cnf to give the value of your public IP address - so your client can connect to it
| jhajek/db-samples | mysql-server-install.sh | Shell | mit | 265 |
function malloc(){
dlcall -r pointer malloc $size_t:$2
eval $1=\$DLRETVAL
}
function free(){
dlcall free $1
}
| cemeyer/httpd.sh | stdlib.sh | Shell | mit | 123 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:1851
#
# Security announcement date: 2016-09-12 21:52:32 UTC
# Script generation date: 2017-01-26 21:24:37 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - jbcs-httpd24-httpd.x86_64:2.4.6-77.SP1.... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2016/RHSA-2016:1851.sh | Shell | mit | 2,252 |
#------------------------------------------------------------------------------
# Convert all text files in $* to UNIX format, by erasing the carriage return
# (CR) characters.
nocr()
{
if [ $# -eq 0 ]; then
echo >&2 "Specify a list of files to convert to UNIX text format."
else
for f in $*; do
mv $f... | dlsnostress/.home | bashrc.d/functions.sh | Shell | mit | 1,828 |
#!/bin/bash
sudo tc qdisc del dev lo root
| luiz/modular-calc | restore.sh | Shell | mit | 43 |
#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
ROOT=$(dirname $(dirname $(realpath "$0")))
else
ROOT=$(dirname $(dirname $(readlink -f $0)))
fi
cd $ROOT
if [[ "$OSTYPE" == "darwin"* ]]; then
NAME=`node -p "require('./product.json').nameLong"`
... | hungys/vscode | scripts/test.sh | Shell | mit | 1,081 |
#! /usr/bin/env zsh
foreach f g ({1..10}) { echo -n "${g} ${f} " }; echo ""
| kmhjs/shell_gei | src/08/q01.sh | Shell | mit | 77 |
#!/bin/sh
#
# Set environment variables so that we can compile rocksdb using
# fbcode settings. It uses the latest g++ compiler and also
# uses jemalloc
# location of libgcc
LIBGCC_BASE="/mnt/gvfs/third-party2/libgcc/7712e757d7355cb51292454ee0b7b46a467fdfed/4.8.1/gcc-4.8.1-glibc-2.17/8aac7fc"
LIBGCC_INCLUDE="$LIBGCC_... | talrasha007/node-kv | 3rd-party/leveldb/leveldb-rocksdb-3.7/build_tools/fbcode_config.sh | Shell | mit | 5,507 |
#! /bin/sh
# input should be a directory
path=$1
# for loop all the files and check the license
for file in $path/*
do
echo $file
sh $CBIG_CODE_DIR/setup/check_license/CBIG_check_license_matlab_file.sh $file
clear
done
exit 0;
| ThomasYeoLab/CBIG | setup/check_license/CBIG_check_license_one_folder.sh | Shell | mit | 234 |
#!/bin/bash
##########################
# General parameters
##########################
TIME_THRESHOLD=30
DISK_THRESHOLD=70
LOAD_THRESHOLD=1.5
TIME_NOTICE=120
TMP_FILE=/tmp/smartkids
EMAIL_ADDRESS=stefano@waag.org
MAIL_OPTS=''
TARGET="waag"
##########################
# Host specific parameters
###################... | waagsociety/making-sensor | doTestSensors.sh | Shell | cc0-1.0 | 5,145 |
#!/usr/bin/env bash
# start database
PSQLVER=$( cd /usr/lib/postgresql && ls | tail -n 1 )
PSQLBINDIR=/usr/lib/postgresql/${PSQLVER}/bin/
if [ -d "$PSQLBINDIR" ]; then
export PATH=$PSQLBINDIR:$PATH
fi
DATADIR=/data/psql/
export LC_ALL=C
# if database dir not found, create and init
if [ ! -d "${DATADIR}" ]; then... | propairs/propairs | dockerentry.sh | Shell | gpl-2.0 | 948 |
*
* Copyright (C) 2001 Tensilica, Inc. All Rights Reserved.
* Revised to support Tensilica processors and to improve overall performance
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version... | qiyao/xcc | libu/sci/c1/whenm.sh | Shell | gpl-2.0 | 12,303 |
#!/bin/bash
PHPREDMIN_DIR="phpredmin"
PHPREDMIN_PATH="$(pwd)/$PHPREDMIN_DIR/public"
PHPREDMIN_CONF="/etc/supervisor/conf.d/phpredmin.conf"
echo " * Setting up Redis..."
sudo apt-get update
sudo apt-get -y install redis-server php5-redis gearman-server php5-gearman supervisor
sudo service php5-fpm restart
if [ ! -d "... | goblindegook/VVV-Redis | vvv-init.sh | Shell | gpl-2.0 | 890 |
#!/bin/bash
# Original script written by Justin Decker, copyright 2015. For licensing
# purposes, use GPLv2
#
# To use, create a "user job" that runs like so:
# /path/to/script/mythtv-plex-links.sh "%CHANID%" "%STARTTIMEUTC%"
# The following values adjust the script parameters:
#
# Set this to the directory of the Pl... | kwmonroe/mythtv-plex-links | mythtv-plex-links.sh | Shell | gpl-2.0 | 3,226 |
#!/bin/sh
####DO_NOT_TOUCH####
# if an argument is given, we git clone buildroot and use the argument
# as the commit where we want to go back in tree
if [ $# = 0 ]
then
VERSION=2013.11
NAME=buildroot-${VERSION}.tar.bz2
URL=http://buildroot.uclibc.org/downloads/${NAME}
wget ${URL} -O /tmp/${NAME}
... | chep/BR_custom | bootstrap.sh | Shell | gpl-2.0 | 868 |
#!/bin/bash
VERSION=$1
if [[ -z "$VERSION" ]]; then
VERSION=$(git describe --tags | sed 's/^v//' )
# c.f. grep AssemblyVersion Properties/AssemblyInfo.cs
fi
if [[ -z "$VERSION" ]]; then
echo "Error: Could not determine the version string." >&2
exit 1
fi
nuget pack NCommander.nuspec -Version $VERSION
| izrik/NCommander | release.sh | Shell | gpl-2.0 | 311 |
cvlc -vvv rtsp://admin:123456@192.168.1.10:554 --sout '#transcode{vcodec=h264,venc=x264{qp=99},scale=Auto,width=1024,acodec=none}:http{mux=ffmpeg{mux=flv},dst=:8080/}'
| ElvisLouis/code | work/sh/sucessed.sh | Shell | gpl-2.0 | 169 |
#!/bin/bash
# 1.*_Pre-installation
#
# https://wiki.archlinux.org/index.php/Installation_guide#Pre-installation
#
# *----------------------------------------------------------------------------*
# 09-01-2017 - 22:49:31 (by gener-guide.bash)
# *------------------------------------------------------... | RC69/RCsite1 | archlinux/installation-guide-old/contents/0.+_Initialisation.bash | Shell | gpl-2.0 | 856 |
#!/bin/sh
# Copyright (C) 2005-2013 MaNGOS project <http://getmangos.com/>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that ... | ralph93/crtoe | contrib/extractor_binary/ExtractResources.sh | Shell | gpl-2.0 | 4,274 |
# export AWS_ACCESS_KEY="Your-Access-Key"
# export AWS_SECRET_KEY="Your-Secret-Key"
today=`date +"%d-%m-%Y","%T"`
logfile="/awslog/ec2-access.log"
# Grab all Security Groups IDs for DISALLOW action and export the IDs to a text file
sudo aws ec2 describe-security-groups --filters Name=tag:close-allports-time,Values=08... | STARTSPACE/aws-access-to-ec2-by-timetable | all/disallow-wd/all-disallow-wd-08.sh | Shell | gpl-2.0 | 817 |
#!/bin/bash
#
# Install Eclipse Java EE Plugins
#
# $1 is the repository it is at
# $2 is plugin classname to install
REPOSITORY="$1"
CLASSNAME="$2"
if find_executable "eclipse" "eclipse"; then
ECLIPSE="$EXECUTABLE"
set +e
while true; do
echo "> Running Eclipse installation of $CLASSNAME from $R... | ripply/devenv | development/setup_eclipse_plugin.sh | Shell | gpl-2.0 | 713 |
#! /bin/sh
# Copyright (C) 2001-2014 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 ... | infoburp/automake | t/distcom2.sh | Shell | gpl-2.0 | 2,101 |
#! /bin/sh
# Copyright (C) 2011-2018 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 ... | komh/automake-os2 | t/dejagnu-relative-srcdir.sh | Shell | gpl-2.0 | 2,044 |
#! /bin/bash
# SPDX-License-Identifier: BSD-3-Clause
. ${DIR}/tun_3descbc_sha1_common_defs.sh
SGW_CMD_XPRM='-e -w 300 -l'
config_remote_xfrm()
{
ssh ${REMOTE_HOST} ip xfrm policy flush
ssh ${REMOTE_HOST} ip xfrm state flush
ssh ${REMOTE_HOST} ip xfrm policy add \
src ${REMOTE_IPV4} dst ${LOCAL_IPV4} \
dir out pt... | grivet/dpdk | examples/ipsec-secgw/test/tun_3descbc_sha1_esn_defs.sh | Shell | gpl-2.0 | 2,280 |
#!/bin/sh
if [ ! -e /usr/local/tce.installed/qemu-arm ]; then tce-load -i qemu-arm; fi
qemu-system-arm -kernel zImage -cpu arm1176 -m 256 -M versatilepb -no-reboot \
-serial stdio -initrd piCore.gz -append \
"root=/dev/ram0 elevator=deadline rootwait quiet nozswap nortc noswap"
| redrock9/PAD | picore/start.sh | Shell | gpl-2.0 | 279 |
#scripta
#!/bin/bash
cd /etc
sudo yum install -y git
sudo yum install -y gcc-c++ make &
wait $!
echo Installed gcc-c++ and make
sleep 2
sudo yum install -y openssl-devel &
wait $!
echo Installed openssl-devel
sleep 3
sudo yum install -y ppp &
wait $!
wget http://poptop.sourceforge.net/yum/stable/rhel6/x86_64/pptp... | mikkopoyhonen/noise-builder | startup.sh | Shell | gpl-2.0 | 2,266 |
#!/bin/bash
set -e
##################################################################################################################
# Written to be used on 64 bits computers
# Author : Erik Dubois
# Website : http://www.erikdubois.be
################################################################################... | erikdubois/ArchCinnamon | installation/050-install-cinnamon-core-v1.sh | Shell | gpl-2.0 | 2,936 |
#!/bin/bash
rm .version
# Bash Color
green='\033[01;32m'
red='\033[01;31m'
blink_red='\033[05;31m'
restore='\033[0m'
clear
# Resources
THREAD="-j$(grep -c ^processor /proc/cpuinfo)"
KERNEL="Image"
DTBIMAGE="dtb"
DEFCONFIG="phasma_defconfig"
# Kernel Details
VER=".R7.bullhead."
# Paths
KERNEL_DIR=`pwd`
REPACK_DIR="$... | VRToxin-AOSP/android_kernel_lge_bullhead | despair-build.sh | Shell | gpl-2.0 | 2,997 |
#!/bin/bash
/etc/init.d/evw-self-serve stop || /bin/true
| UKHomeOffice/evw-self-serve | fpm/scripts/preuninstall.sh | Shell | gpl-2.0 | 58 |
# USPDroidsSimulator
# (C) 2007 Diogo Oliveira de Melo
# 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 of the License, or
# (at your option) any later version.
# This program... | dmelo/uspds | executar_loop.sh | Shell | gpl-2.0 | 1,106 |
#!/usr/bin/env bash
cd "$(dirname "${BASH_SOURCE[0]}")"
source installers/ENV.sh
TAG=$1
docker exec -it -u ${USER} ${TAG} bash
| xiaoxq/single-script-toolkit | docker/dev-env/login.sh | Shell | gpl-2.0 | 128 |
awk 'BEGIN{for(i=0;i<256;i++)printf "%c",i}' > $1
| scottrcarlson/dirt-simple-comms | gen_ascii_bin.sh | Shell | gpl-2.0 | 50 |
#! /bin/sh
# Copyright (C) 2011-2017 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 ... | pylam/automake | t/java-no-duplicate.sh | Shell | gpl-2.0 | 1,360 |
#!/bin/bash
# variable definition
# log file
readonly mlog=log_admin_content_tests.json
# default db socket for MAMP
readonly local_socket="/Applications/MAMP/tmp/mysql/mysql.sock"
# phpunit configuration file
readonly config_file=../administrator/components/com_content/Tests/phpunit.xml
# tests to be run
readonly tes... | AngelVillanueva/soap | tests/run_admin_content_tests.sh | Shell | gpl-2.0 | 711 |
#!/bin/sh
function status_resource_exe(){
unique_resource_name="$1"
exe="$2"
# Uncomment to debug
# DEBUG_PREFIX="echo "
cmd="${DEBUG_PREFIX}curl"
# Specify password without making it visible in process
# list (e.g. 'ps awwx')
$cmd \
--insecure \
--cert $certfile \
--key $key \
... | heromod/migrid | mig/resource/status_resource_exe.sh | Shell | gpl-2.0 | 1,092 |
printf '$UNLT,10*' > $TTY_DEV
sleep 0.1
printf '$UNST,250*' > $TTY_DEV
sleep 0.1
printf '$UNSEN,70*' > $TTY_DEV
sleep 0.1
printf '$UNBF,2500*' > $TTY_DEV
sleep 0.1
printf '$UNBR,100*' > $TTY_DEV
sleep 0.1
printf '$UNLV,9*' > $TTY_DEV
sleep 0.1
printf '$UNLBF,500*' > $TTY_DEV
sleep 0.1
printf '$UNSPA,95*' > $TTY_DEV
sle... | polachp/Unity | LK8000/kobo/unityConfig.sh | Shell | gpl-2.0 | 396 |
#! /bin/sh
# Make sure all of these programs work properly
# when invoked with --help or --version.
# Copyright (C) 2000-2014 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... | oldcap/coreutils | tests/misc/help-version.sh | Shell | gpl-3.0 | 8,222 |
cmd_clone-del_help() {
cat <<_EOF
clone-del <tag>
Delete clone 'btr_<tag>'.
_EOF
}
cmd_clone-del() {
local tag=$1
[[ -n $tag ]] || fail "Usage:\n$(cmd_clone-del_help)"
ds @wsproxy domains-rm $tag.$DOMAIN
ds @wsproxy exec sh -c "
cp /etc/hosts /etc/hosts.1 ;
sed -i /etc... | B-Translator/btr_server | ds/cmd/clone-del.sh | Shell | gpl-3.0 | 529 |
#!/bin/bash
# Builds libgpg-error for all three current iPhone targets: iPhoneSimulator-i386,
# iPhoneOS-armv6, iPhoneOS-armv7.
#
# Copyright 2012 Mike Tigas <mike@tig.as>
#
# Based on work by Felix Schulze on 16.12.10.
# Copyright 2010 Felix Schulze. All rights reserved.
#
# Licensed under the Apache License, Ve... | auviz/safejab | OTRKit/build-libgpg-error.sh | Shell | gpl-3.0 | 5,442 |
#! /bin/sh
# Author: Na Li <nali@umn.edu>
# Created: 2005/06/16 18:51:57
# Time-stamp: "Thu Dec 02 09:59:57 CST 2004 (nali@bass)"
# Purpose: run R scripts that allow command line arguments
if [ $# -lt 1 ]; then
echo "Usage: `basename $0` Rscript.R [ arguments ]"
exit 2
fi
RCMD="R --vanilla -q"
RSCRIPT=$1
if [... | rna-seq/pipeline | bin/runR.sh | Shell | gpl-3.0 | 474 |
#!/bin/bash
get_full_path() {
# Absolute path to this script, e.g. /home/user/bin/foo.sh
SCRIPT=$(readlink -f $0)
if [ ! -d ${SCRIPT} ]; then
# Absolute path this script is in, thus /home/user/bin
SCRIPT=`dirname $SCRIPT`
fi
( cd "${SCRIPT}" ; pwd )
}
export SYS_CONFIG_DIR="/etc/... | LeonanCarvalho/testcube-server | cube-build/files/cube-server/bin/redhat/uninstall.sh | Shell | gpl-3.0 | 459 |
#!/bin/sh
# Ensure GNU address extensions are rejected in posix mode
# Copyright (C) 2016-2018 Free Software Foundation, Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | pexip/os-sed | testsuite/posix-mode-addr.sh | Shell | gpl-3.0 | 2,607 |
#!/bin/sh
set -e
echo "[INFO]: Starting up..."
if [ "${1}" = "bootstrap" ]; then
POLICIES=$(curl -sS http://${RANCHER_API_HOST}/${RANCHER_API_VERSION}/self/service/metadata/policies)
if ( "${POLICIES}" = "Not found" ); then
echo "[INFO]: cant find any policies...skipping"
else
echo "[DEBUG]: found po... | nodeintegration/rabbitmq-bootstrap | docker-entrypoint.sh | Shell | gpl-3.0 | 1,483 |
set -u
set -e
echo "This script has manual steps and will prompt you"
echo "Press enter to continue..."
read
#WARN: do not use spaces in these...
UNPACK_HOME=/root/deploy #you will need to edit buildout.cfg if you change this
MECAT_HOME=/opt/mecat
MECAT_ANSTO=$MECAT_HOME/mecat-ansto
DJANGO=$MECAT_ANSTO/bin/django
T... | IntersectAustralia/dc2c | deploy/install.sh | Shell | gpl-3.0 | 4,663 |
#!/bin/bash
# Author: Alexander Epstein https://github.com/alexanderepstein
if [[ -f /usr/local/bin/currency ]];then
echo -n "Do you wish to uninstall currency [Y/n]: "
read -r answer
if [[ "$answer" == "Y" || "$answer" == "y" ]] ;then
cd currency || exit 1
./uninstall.sh || exit 1
cd .. || exit 1
... | Priyansh2/test | Bash-Snippets-master/uninstall.sh | Shell | gpl-3.0 | 2,020 |
adb shell screenrecord --output-format=h264 - | ffplay -
| digitalghost/pycv-gameRobot | ffplayScreencast.sh | Shell | gpl-3.0 | 57 |
#!/bin/sh
#
# make manager files
#
# Copyright 2011-2012, Bmath Web Application Platform Project. (http://bmath.jp)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the Lice... | aotake/peachp1 | webapp/tool/manager.sh | Shell | gpl-3.0 | 3,035 |
#!/bin/bash
# Get the 1 of 6 git Repository
echo "Get liuchangdong.github.io.git start"
git clone https://github.com/liuchangdong/liuchangdong.github.io.git
echo "Get liuchangdong.github.io.git done"
# Get the 2 of 6 git Repository
echo "Get dotfiles.git start"
git clone https://github.com/liuchangdong/dotfiles.git
e... | liuchangdong/vimconf | github.sh | Shell | gpl-3.0 | 957 |
ghdl -a bcd_counter/cont_bcd.vhd
ghdl -a bcd_counter/cont_bcd_tb.vhd
ghdl -e cont_bcd_tb
ghdl -r cont_bcd_tb --vcd=out.vcd --stop-time=20us
gtkwave out.vcd
| Xero-Hige/LuGus-VHDL | TPS-2016/tps-Gaston/tp1/run.sh | Shell | gpl-3.0 | 156 |
#!/bin/bash
gcc -o bin2vmem bin2vmem.c
or32-elf-gcc -Wall -mhard-mul -mhard-div -nostdlib -g -O0 -c -I./ int.c -o int.o
or32-elf-gcc -Wall -mhard-mul -mhard-div -nostdlib -g -O0 -c -I./ support.c -o support.o
or32-elf-gcc -Wall -mhard-mul -mhard-div -nostdlib -g -O0 -c -I./ main.c -o main.o
or32-elf-gcc -Wall -mhar... | feddischson/soc_maker | examples/or1200_test/sw/compile.sh | Shell | gpl-3.0 | 928 |
rpmbuild -ba SPECS/atom.spec
| fusion809/rpmbuild | build.sh | Shell | gpl-3.0 | 29 |
#!/bin/bash
# Documentation
# http://rogerdudler.github.io/git-guide/
# https://stackoverflow.com/questions/5617211/what-is-git-remote-add-and-git-push-origin-master
# Initialize the local repository
# cd ~/NetBeansProjects
# git init
# git remote add origin git@github.com:jsfan3/CodenameOne-Apps.git
# Update all lo... | jsfan3/CodenameOne-Apps | bashScripts/updateLocalFromGit.sh | Shell | gpl-3.0 | 483 |
#!/bin/sh
#-------------------------------------------------------------------
# config.sh: This file is read at the beginning of the execution of the ASGS to
# set up the runs that follow. It is reread at the beginning of every cycle,
# every time it polls the datasource for a new advisory. This gives the user
# the ... | jasonfleming/asgs | config/2019/asgs_config_southfl_al052019_jgf.sh | Shell | gpl-3.0 | 3,935 |
#!/bin/bash
# Global variables
TRIM_LEFT=8 # The sequences should already be trimmed appropriately
TRIM_RIGHT=35 # idem
INDELS=$1
SNPS=$2
TEMP_FILE="clean_align_clean.temp"
# Help
echo "---"
echo "Help for program 05_align_clean_align.sh"
echo
echo "Usage:"
echo " ./scripts/05_align_clean_align.sh INDELS SNPS"
echo
... | enormandeau/ngs_genotyping | scripts/05_align_clean_align.sh | Shell | gpl-3.0 | 1,401 |
cufflinks-2.2.1.Linux_x86_64/cuffmerge -s bundle/hg19/ucsc.hg19.fasta assemblies.txt
| CSB-IG/hmgb1_rna_seq | cuffmerge.sh | Shell | gpl-3.0 | 85 |
#!/bin/bash
primusrun ./CharacterAnimation
| marccomino/Crowd_Simulator | CharacterAnimation.sh | Shell | gpl-3.0 | 43 |
#!/bin/bash
# Script para generar los SQLs comprimidos para el phpMyAdmin
rutaScriptsLimpieza="/home/alex/programacion/Intercambia/importadorWordpress"
# Comprimo el script de creacion de las tablas
zip creacionTablas.sql.zip creacionTablas.sql
# Ahora para todos los SQL pequenios
archivos="datosTablas/02_itmt.sql d... | Eidansoft/Creade | paraMySql/generaScripts.sh | Shell | gpl-3.0 | 1,556 |
#!/bin/bash
# Author: pblaas (patrick@kite4fun.nl)
# Initial version 04-2017
# This script is used to generate Kubernetes cloud-init files for CoreoS.
if [ ! -f config.env ]; then
echo config.env not found.
echo cp config.env.sample to config.env to get started.
exit 1
fi
. config.env
if [ ! $1 ]; then
ec... | pblaas/cloudinit_generator | add_node.sh | Shell | gpl-3.0 | 4,282 |
#!/bin/bash
#
# Linux/MacOS X script to install rEFInd
#
# Usage:
#
# ./install.sh [options]
#
# options include:
# "--esp" to install to the ESP rather than to the system's root
# filesystem. This is the default on Linux.
# "--usedefault {devicefile}" to install as default
# (/EFI/BOOT/BOOTX6... | dab2000/rEFInd-custom | install.sh | Shell | gpl-3.0 | 41,259 |
#!/bin/bash
GO_ARCHIVE=go1.15.linux-amd64.tar.gz
if [ -z $(which go) ]
then
if [ ! -f $GO_ARCHIVE ]
then
echo "download golang archive.."
curl -OL https://golang.org/dl/$GO_ARCHIVE
fi
if [ ! -d /usr/local/go ]
then
echo "extract golang archive to /usr/local/go"
sudo... | spearwolf/kiwotigo | setup-go-env.sh | Shell | gpl-3.0 | 706 |
#!/bin/bash
#BSUB -J "dk[1-408]"
#BSUB -o log.%I
#BSUB -e err.%I
#BSUB -q basement
cd /lustre/scratch116/casm/cgp/users/tn5/confetti/coverage
SAMPLE=`ls *.gz | head -n $LSB_JOBINDEX | tail -n 1`
python3 ../scripts/covintrip.py ../../davidrnaseq/genome/Mus_musculus.NCBIM37.67.gtf $SAMPLE >kruskal/${SAMPLE%.gz}
| TravisCG/SI_scripts | runcovintrip.sh | Shell | gpl-3.0 | 315 |
#!/bin/sh
# Author: Marc Christensen (mchristensen@novell.com)
# Michael Hutchinson (mhutchinson@novell.com)
MONO_FRAMEWORK_PATH=/Library/Frameworks/Mono.framework/Versions/Current
export DYLD_FALLBACK_LIBRARY_PATH=$MONO_FRAMEWORK_PATH/lib:/lib:/usr/lib
#prevent Macports from messing up mono and pkg-config
e... | jrising/flight-finder | desktop/Community Flight Finder Pristine.app/Contents/MacOS/run.sh | Shell | gpl-3.0 | 1,949 |
#!/bin/sh
#
# set up the environment where the uninstalled tools and plugins will be used by default.
# The following can be placed in the profile file
#
BUILD=$HOME/gstreamer_build
#
export PATH=$BUILD/bin:$PATH
export PKG_CONFIG_PATH=$BUILD/lib/pkgconfig:$PKG_CONFIG_PATH
# Linux
export LD_LIBRARY_PATH=/home/guofeng/g... | auslides/gstreamer-setup | env-exports.sh | Shell | gpl-3.0 | 899 |
#! /usr/bin/env bash
./vm_setup.sh
./vm_run.sh &disown;
clear
sleep 5 # booting
./upload.sh
ssh so ./test0.sh log > clean0
ssh so ./test1.sh log > clean1
ssh so ./prepare.sh &
sleep 15 # rebooting
ssh so ./test0.sh log > patched0
ssh so ./test1.sh log > patched1
ssh so poweroff
| vlad7777/uni_coursework | 4_sem/SO/5/do_all.sh | Shell | gpl-3.0 | 287 |
#!/bin/bash
# vim: ts=4:sw=4
. ~/plescripts/plelib.sh
. ~/plescripts/dblib.sh
. ~/plescripts/global.cfg
EXEC_CMD_ACTION=EXEC
PAUSE=OFF
typeset -r ME=$0
typeset -r PARAMS="$*"
typeset -i loops=2
typeset -r str_usage=\
"Usage :
$ME
-db=db_name
-pdb=pdb_name
[-loops=$loops] nombre d'insertion de la table my_objects... | PhilippeLeroux/plescripts | db/crash/desynchronize_physical_stby.sh | Shell | gpl-3.0 | 2,844 |
exec 2>/dev/null;
echo -n ".";
cat tests/data/pcapng_big | ./pipa -s 1000000 -x pcapng A%i.part;
mergecap -F pcapng -w glued.pcapng *.part;
S1=`capinfos -c tests/data/pcapng_big | awk 'END{print $4}'`;
S2=`capinfos -c glued.pcapng | awk 'END{print $4}'`;
if [ "$S1" != "$S2" ];
then echo -e "\nx_pcapng_r... | Janiczek/pipa | tests/x_pcapng_rotation.sh | Shell | gpl-3.0 | 409 |
#Phil, Lamia 10 Oct 08
source params.sh
sudo sysctl -w net.ipv6.conf.all.forwarding=1
./mr3_conf_nas_barca_outdoor.sh
./mr3_mpls_nas_barca.sh
sudo sysctl -w net.ipv6.conf.eth0.proxy_ndp=1
sudo sysctl -w net.ipv6.conf.nasmesh0.proxy_ndp=1
sudo ifconfig eth0 promisc
sudo ip -6 addr add $MR3_EG6_ADDR/64 dev eth0
sudo ... | mspublic/openair4G-mirror | openair3/EXAMPLES/CONSEIL_SCIENTIFIQUE_DEMO/mr3_nas_barca_outdoor.sh | Shell | gpl-3.0 | 550 |
#!/bin/bash
#Opens todays journal, creating the file if it doesn't exist.
TODAY=$(date +%F)
JOURNAL_DIR=/media/FILES/journal/
TODAYS_JOURNAL=${JOURNAL_DIR}${TODAY}.jent
#Opens journal Entry for date parameter passed in.
####BUGGY CODE!!! Opening yesterdays journal prints todays date
####at the top of the entry.
... | Joe-Westra/Joernal | journal.sh | Shell | gpl-3.0 | 2,538 |
#!/bin/sh -x
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=brave-browser
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && echo "Install Brave browser from the official site" && exit
[ "$($DISTRVENDOR -a)" != "x86_64" ] && echo "Only x86_64 is... | vitlav/eepm | prescription.d/brave.sh | Shell | agpl-3.0 | 526 |
#!/bin/bash
script=`readlink -f $0`
basedir=`dirname $script`
cd "$basedir/.."
ulimit -t unlimited
time ./bin/deepframe -m 1000 -n 200 -a0.03 -p \
-t resources/lines-test.dat -s resources/lines-labels.dat \
-c examples/lines-dbn.cfg $@
| janvojt/ffwdnet | examples/lines-dbn.sh | Shell | agpl-3.0 | 241 |
#!/usr/bin/env bash
stop_bgm(){
touch /home/pi/.DisableMusic
clear
echo -e "\n\n\n Background Music Stopped\n\n\n"
sleep 3
}
start_bgm(){
rm /home/pi/.DisableMusic
echo -e "\n\n\n Background Music Started\n\n\n... | Shakz76/Eazy-Hax-RetroPie-Toolkit | cfg/Toggle Background Music.sh | Shell | agpl-3.0 | 428 |
cd /server/UnityStation_Data/StreamingAssets/config
if test $RCON_PASSWORD; then jq --arg v "$RCON_PASSWORD" '.RconPass = $v' config.json | sponge config.json; fi
if test $HUB_USER ; then jq --arg v "$HUB_USER" '.HubUser = $v' config.json | sponge config.json; fi
if test $HUB_PASSWORD ; then jq --arg v "$HUB_... | Necromunger/unitystation | Docker/entrypoint.sh | Shell | agpl-3.0 | 732 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.