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 |
|---|---|---|---|---|---|
#!/usr/bin/env zsh
# zsh options
setopt COMBINING_CHARS # Display accented chars as one char.
setopt INTERACTIVE_COMMENTS # Allow comments in shell.
setopt RC_QUOTES # Allow 'A''s' to mean 'A'\''s'.
setopt NO_BEEP # Disable beeps.
setopt LONG_LIST_JOBS # List jobs in the long format.... | mc10/dotfiles | zsh/core.zsh | Shell | mit | 4,440 |
pbpaste | sort | uniq -c | sort -rn | head -10 | pbcopy
echo "Copied"
| EvanLovely/clipboard-actions | Lines - top 10 unique lines.sh | Shell | mit | 70 |
#!/bin/bash -l
#SBATCH
#SBATCH --job-name=glm_3_nodes_20_calls_parallel.sh
#SBATCH --time=03:00:00
#SBATCH --mail-type=begin,end
#SBATCH --mail-user=karoraw1@jhu.edu
#SBATCH --nodes=3
#SBATCH --partition=parallel
module load netcdf/intel/4.3.3.1 glm
cd /home-3/karoraw1@jhu.edu/work/kaw/GLM_Wrapper/GLM_Executables/exa... | karoraw1/GLM_Wrapper | MARCCTEST/glm_3_nodes_20_calls_parallel.sh | Shell | mit | 2,895 |
#!/usr/bin/env bash
export PROJECT_NAME=nasabot
export PYTHONPATH=${PYTHONPATH}:$(pwd)
echo "PYTHONPATH"
echo ${PYTHONPATH}
echo "====================================================="
echo ""
echo " Setup"
echo ""
echo "====================================================="
python ./${PROJECT_NAME}/main.py --setup... | botstory/nasa-bot | scripts/start.sh | Shell | mit | 602 |
#! /bin/bash
set -e
DOCKER_BIN=$(which docker)
LIBDEV_BIN=$(ldconfig -p | grep 'libdevmapper.so.1.02' | awk '{print $4}')
LIBDEV_BIN_NAME=$(echo $LIBDEV_BIN | sed 's#.*/##')
TEMP_DIR=tmp-ansible-build
DOCKER_GID=$(id docker -g)
mkdir -p $TEMP_DIR
cp $DOCKER_BIN $TEMP_DIR
cp $LIBDEV_BIN $TEMP_DIR
cat << EOF > $TEMP_... | xynova/docker-autopilot-repo-watcher | provision/docker-infra/build-ansible.sh | Shell | mit | 1,190 |
#!/bin/bash
set -xv
export SUBARUDIR=/gpfs/slac/kipac/fs1/u/awright/SUBARU/ ; export INSTRUMENT=SUBARU
export bonn=/u/ki/awright/wtgpipeline/
export subdir=/gpfs/slac/kipac/fs1/u/awright/SUBARU/
export cluster=MACS0416-24
export ending="OCFR"
export filter="W-C-RC"
. progs.ini > /tmp/out 2>&1
. SUBARU.ini > /tmp/out 2... | deapplegate/wtgpipeline | adamSep15_test_non-parallel_resamp.sh | Shell | mit | 698 |
#!/bin/bash
# this example sets the session "kodi" as default for the user 1001.
dbus-send --system --type=method_call --print-reply --dest=org.freedesktop.Accounts /org/freedesktop/Accounts/User1001 org.freedesktop.Accounts.User.SetXSession string:kodi
| tiagoprn/devops | shellscripts/utils/set_default_xsession.sh | Shell | mit | 255 |
#!/bin/bash
# Here is where you'd want to stop your http daemon. For example:
sudo service php5-fpm stop
sudo service nginx stop
| pipindex/flarum | deployment_scripts/stop_nginx.sh | Shell | mit | 130 |
#!/usr/bin/expect
set timeout 3600
spawn scp -r assets root@120.25.104.171:/opt/platform/dist/
expect {
"*yes/no*" {
send "yes\n";
exp_continue;
}
"root@120.25.104.171's password:*" {
send "Hello1234\r";
exp_continue;
}
}
spawn scp -r bower_components root@120.25.104.171:/opt/platform/dist/
expect {
"*yes/no*" {
sen... | Hive-Team/venus | app/run-pre.sh | Shell | mit | 801 |
#!/usr/bin/env bash
echo "--- Running jasmine tests ---"
jasmine-node tests/spec/api/ | AdamTorkelsson/WrapMyInfo | bin/test.sh | Shell | mit | 85 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2013:1786
#
# Security announcement date: 2013-12-04 18:35:58 UTC
# Script generation date: 2017-01-01 21:15:01 UTC
#
# Operating System: Red Hat 6
# Architecture: i386
#
# Vulnerable packages fix on version:
# - antlr-eap6.noarch:2.7.7-17.redhat_4.1.ep6... | Cyberwatch/cbw-security-fixes | Red_Hat_6/i386/2013/RHSA-2013:1786.sh | Shell | mit | 5,831 |
#!/bin/bash
# -*- coding: UTF8 -*-
##
# Bash basics : notes on line endings encoding conversion.
#
# Sources :
# https://help.github.com/articles/dealing-with-line-endings/
# http://stackoverflow.com/a/20653073/2592338
# http://www.unixcl.com/2008/04/linux-flip-command-alternative-of.html
# http://edito... | Paulmicha/snippets | Sys-admin/Basics/encoding_line_endings.notes.sh | Shell | mit | 770 |
#!/bin/sh
set -e
cd "`dirname "$0"`"
##if #(JDK.Directory:IsSet)
export JAVA_HOME="C:/Program Files/Java/jdk1.7.0_79"
##endif
##if #(Ant.Directory:IsSet)
PATH="C:/ant/bin:$PATH"
##endif
for cmd in ant make; do
if ! which $cmd > /dev/null 2>&1; then
echo "ERROR: '$cmd' was not found." >&2
exit 1
... | blyk/BlackCode-Fuse | AndroidUX/.build/Simulator/Android/build.sh | Shell | mit | 1,437 |
# Command line arguments
# -O2 Good optimizations, including malloc
# -O3 Insane optimizations, but excluding malloc
# -Os Reduced code size
# Compile engine to wasm
#emcc main.c -o build/engine.wasm -Os -s WASM=1 -s SIDE_MODULE=1
#emcc main.c -o build/engine.js -Os -s WASM=1
emcc main.c -o build/engine.js -O2 -... | bassjansson/basslive | engine/build.sh | Shell | mit | 398 |
#!/bin/bash
python RunSimulation.py --Geo 10.0 --sim_num 19
| xji3/IGCCodonSimulation | ShFiles/YDR418W_YEL054C_IGCgeo_10.0_sim_19.sh | Shell | mit | 60 |
cd ..
make all
cd sample
make all
build/imu_gyro
| CURocketry/LaunchVehicleController2016 | sample/build.sh | Shell | mit | 49 |
#!/usr/bin/env bash
THINGSHUBD_CONFIG=${THINGSHUBD_CONFIG:-$HOME/.local/thingshubd.list}
THINGSHUBD_DEBUG=${THINGSHUBD_DEBUG:-false}
THINGSHUBD_SHOW_NOTIFICATIONS=${THINGSHUBD_SHOW_NOTIFICATIONS:-true}
PATH="/usr/local/bin:$PATH"
set -eu
use_terminal_notifier=true
command -v terminal-notifier >/dev/null 2>&1 || use_te... | cdzombak/thingshub | thingshubd/thingshubd.sh | Shell | mit | 1,757 |
cmake -G"Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=$1 ..
make -j4
| phg1024/MultilinearReconstruction | eclipse/build.sh | Shell | mit | 74 |
#!/bin/bash
#%Y Year, %V Week
DATE="`date +%Y%V`"
[ -f /vagrant/proxy.env ] && source /vagrant/proxy.env
BASE="`docker images -q xenial:${DATE}`"
if [ $BASE ]; then
echo "skipping: found image ${BASE} for today ${DATE}"
else
# update xenial if exists
# install if doesnt
if [ -d /root/xenial ]; then
cp ... | kikitux/dockerhost-vagrant | scripts/xenial.sh | Shell | mit | 2,181 |
log "starting jenkins"
/usr/sbin/svcadm enable jenkins
| datasets-at/mi-jenkins | copy/var/zoneinit/includes/31-jenkins.sh | Shell | mit | 57 |
#!/system/xbin/bash
setprop persist.sys.usb.config mass_storage,adb
echo /dev/block/vold/179:32 > /sys/devices/platform/msm_hsusb/gadget/lun0/file
| ii/iiphone | android_research/runme.sh | Shell | mit | 148 |
#!/bin/bash
# subscription-therm-sensors.sh
# Copyright(c) 2016 Bitergia
# Author: Alvaro del Castillo <acs@bitergia.com>,
# Alberto Martín <amartin@bitergia.com>
# MIT Licensed
#
# Restaurant temperature sensors subscription
CYGNUS_HOST=$( getent hosts cygnus | sort -u | awk '{print $1}' )
CYGNUS_PORT=5050
CYGNUS_URL... | Fiware/tutorials.TourGuide-App | docker/cygnus/subscriptions/subscription-therm-sensors.sh | Shell | mit | 1,257 |
_taw_completion() {
COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
COMP_CWORD=$COMP_CWORD \
_TAW_COMPLETE=complete $1 ) )
return 0
}
complete -F _taw_completion -o default taw;
| mkasa/taw | taw_completion.sh | Shell | mit | 228 |
#!/usr/bin/env bash
set -e
SCRIPT_DIR_NAME="$( cd "$( dirname "$0" )" && pwd )"
if [ $# != 2 ]; then
echo "usage: $(basename "$0") <cloudfeaster-tar-gz> <image-name>" >&2
exit 1
fi
CLOUDFEASTER_TAR_GZ=${1:-}
IMAGE_NAME=${2:-}
REPO_ROOT_DIR=$(repo-root-dir.sh)
CONTEXT_DIR=$(mktemp -d 2> /dev/null || mktemp... | simonsdave/cloudfeaster | dockerfiles/dev-env/build-docker-image.sh | Shell | mit | 738 |
#!/bin/bash
set -o nounset
set -o errexit
# necessary declarations
BASEDIR=$(dirname $0)
DATE=$(date +%Y_%m_%d-%H_%M_%S)
YEAR=$(date +%Y)
MONTH=$(date +%m)
DAY=$(date +%d)
# Load specified config if it exists and check for project and url after loading it
if [ "$#" -eq 0 ]; then
echo "No config file argument found"
... | Sjolus/timelapse | timelapse.sh | Shell | mit | 2,684 |
SPP=Cryptococcus_gattii_WM276
PREFIX=ftp://ftp.ncbi.nih.gov/genomes/Fungi/Cryptococcus_gattii_WM276/
mkdir $SPP
cd $SPP
wget ${PREFIX}*.fna
cat *.fna > ../$SPP.fasta
| sauloal/cnidaria | analysis/data/converters/external/Fungi/Cryptococcus_gattii_WM276.sh | Shell | mit | 166 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2313-1
#
# Security announcement date: 2011-09-29 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:18 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - iceweasel:3.5.16-10
#
# Last versi... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2011/DSA-2313-1.sh | Shell | mit | 686 |
# Based on http://larryn.blogspot.nl/2012/11/my-way-for-binding-ssh-agent-with-zshell.html
function ssh-start-agent () {
SSHPID=`ps ax|grep -c "[s]sh-agent"`
if (( $SSHPID == 0 )); then
ssh-agent > ~/.ssh-env
source ~/.ssh-env
ssh-add
else
source ~/.ssh-env
fi
}
ssh-star... | jaapz/zsh-scripts | start-ssh-agent.sh | Shell | mit | 328 |
#!/bin/bash
npm install express
npm install mongodb --mongodb:native
npm install mongoose
npm install jade | a8uhnf/do-server | install.sh | Shell | mit | 106 |
#!/bin/bash
# time is in seconds in the AppleScript, in minutes for shutdown.
# this script works even if no one is logged.
shutdown -r +2
osascript << 'END'
set endTime to ((current date) + 120)
repeat until (endTime = (current date))
set whatsLeft to ((endTime - (current date)) as number)
if whatsLeft > 60 then
... | cynikl/mac-scripts | reboot-script/reboot_dialog.sh | Shell | mit | 1,036 |
#!/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.... | lujie001122/JLString | Example/Pods/Target Support Files/Pods-JLString_Example/Pods-JLString_Example-frameworks.sh | Shell | mit | 4,662 |
#!/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... | poormonkey/GZAdMobSDK | Example/Pods/Target Support Files/Pods-GZAdMobSDK_Example/Pods-GZAdMobSDK_Example-frameworks.sh | Shell | mit | 3,715 |
#!/bin/sh
#→实现把脚本当前目录下的文件拷贝到所有服务器的任意目录
. /etc/init.d/functions
file="$1" #→传参文件
remote_dir="$2" #→远程服务器目录
if [ $# -ne 2 ];then #→如果传的参数不等于2个,那么就打印如下报错信息。
#→ $#:获取当前shell命令行中的参数的总个数
#→ -ne:不等于
echo "usage:$0 argv1 argv2"
#→$0:首个参数(fenfa_host.sh)
echo "must have two argvs."
exit
fi
for ip in $(cat iplist.txt)
#→... | guadeitong/script | common/fenfa.sh | Shell | cc0-1.0 | 1,108 |
#!/bin/bash
for i in {1..5}; do
rm -rf ./toprocess/*
mkdir ./toprocess/
cp -r ~/mondo-codemodel/source-projects/djvu ./toprocess/
rm -rf export
mkdir export
rm -rf results
mkdir results
~/4store-graph-driver/scripts/4s-restart.sh
mongo jamopp --eval "db.dependencies.drop();"
java -jar ./jamoppdiscoverer... | FTSRG/mondo-codemodel | target/benchmark-mod.sh | Shell | epl-1.0 | 898 |
#! /bin/sh
ARCH=i386
if [ -e /lib64 ]; then
ARCH=amd64
fi
case "$ARCH" in
i386)
cd /tmp
wget -c http://www.xncore.com/download/xn-suite_0.83-lenny1_i386.deb
# wget -c http://www.xncore.com/download/xn-client_0.82-lenny1_i386.deb
dpkg -i xn-suite_0.83-lenny1_i386.deb
rm ... | fr34k8/xenlivecd | stuff/02-install-xn-suite.sh | Shell | gpl-2.0 | 1,056 |
#!/bin/bash
# shellcheck disable=SC1003
# shellcheck disable=SC2016
set -euo pipefail
IFS=$'\n\t'
####
#
# CARE archive to Docker image converter.
#
# There is absolutely **no garanty** this works for every CARE archive.
# This essentially writes the archive's rootfs on top of the base's so there
# might be some cases... | proot-me/PRoot | contrib/care2docker.sh | Shell | gpl-2.0 | 1,482 |
scrapy runspider -a category=fantasy --nolog -o - -t json audiobookbay.py
| frodeaa/abook-spider | json.sh | Shell | gpl-2.0 | 74 |
#!/bin/bash
echo "cd /Users/zhangjidong/KP/iQiYi_workspace/svn/puma3"
cd /Users/zhangjidong/KP/iQiYi_workspace/svn/puma3
git checkout .
git pull --rebase
more puma3.podspec|grep s.version
| idanielz/idanielz.github.io | myPodShell/puma3/1_checkVersion.sh | Shell | gpl-2.0 | 189 |
#!/bin/bash
sudo apt-get install djvulibre-bin libdjvulibre21 libtiff-tools mupdf mupdf-tools pdftk poppler-utils git djview
sudo pip install --upgrade google-api-python-client
sudo pip install clint requests wikitools poster oauth2client apiclient
sudo pip uninstall -y apiclient
sudo pip uninstall -y google-api-... | tshrinivasan/OCR4wikisource | setup.sh | Shell | gpl-2.0 | 648 |
#!/bin/sh
set -e
. ./paths
cd $BASEPATH
# FYI, genkernel will mknod a few devices, and officially in an nspawn container you cant do that (generally for more than like zero and null),
# but you actually can go to the devices cgroup sysfs thing for the container in the host and enable mknod-ing any device with echo 'a *... | urjaman/makelive | initramfs.sh | Shell | gpl-2.0 | 580 |
rm output.txt
cuda-memcheck --leak-check full RayTracer > output.txt;
| tompitkin/RayTracer | memcheck.sh | Shell | gpl-2.0 | 70 |
#!/bin/sh
if [ ! -d venv ]
then
virtualenv venv
virtualenv -p /usr/bin/python3.4 venv
fi
echo "Reminder :"
echo "Activation source venv/bin/activate"
echo "Deactivation deactivate"
echo "Running test python -m unittest discover ."
| eplanet/diffbuilder | setup.sh | Shell | gpl-2.0 | 246 |
# export AWS_ACCESS_KEY="Your-Access-Key"
# export AWS_SECRET_KEY="Your-Secret-Key"
today=`date +"%d-%m-%Y","%T"`
logfile="/awslog/automation-instances.log"
# Grab all Instance IDs for REBOOT action and export the IDs to a text file
sudo aws ec2 describe-instances --filters Name=tag:reboot-time,Values=19-00 Name=tag:... | STARTSPACE/aws-ec2-start-stop-reboot-by-timetable | reboot/wd/reboot-wd-19.sh | Shell | gpl-2.0 | 785 |
#!/bin/bash
################################
# Network Destroyer #
# By: Cameron Mayor #
#Written to force oneself to #
#practice for the RHCSA #
################################
#restore the original config if the restore argument is passed to the script
if [ "$1" == "restore" ]; then
{... | wcmayor/redhat-scripts | breaknetwork.sh | Shell | gpl-2.0 | 1,346 |
NAME=SortFunction
#NAME=Timeout
#NAME=Tokenizer
./modules/mutate_php.sh $NAME
| cpantel/codeMutator | php.sh | Shell | gpl-2.0 | 79 |
#!/bin/bash
#we move in the current script directory
script_dir=$(readlink -f $0)
script_dir=${script_dir%\/*.sh}
PROGRAM_DIR=$script_dir/..
cd $PROGRAM_DIR
. ./include_variables.sh "noflags" || exit 1
put_package "arch"
if [[ $ARCH = "i386" ]];then
ARCH=i686
CFLAGS="-O2 -mtune=${ARCH} $CFLAGS"
fi
#if we d... | markjeee/mp3splt | arch/make_arch_package.sh | Shell | gpl-2.0 | 1,936 |
#!/bin/bash
#
# This script is run by Codeship to send an SQS message to deploy the app to production.
# It expects CI_COMMIT_ID, CI_COMMITTER_USERNAME, SERVICE_NAME, GIT_REPO_URL,
# SQS_URL, NEWRELIC_LICENSE and the AWS credentials to be available in the env.
#
BASE_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )/../" &... | uqlibrary/fez | scripts/backend-deployment-staging.sh | Shell | gpl-2.0 | 2,924 |
#!/bin/bash
#
# 一个简单的 WAR&&静态代码 部署脚本, 执行时必须在disconf-web目录下执行本脚本
#
#
# 执行前请确定环境变量里存在以下两个变量
# 1. $ONLINE_CONFIG_PATH : java web 线上配置目录
# 2. $WAR_ROOT_PATH : java web war 包
#
# 脚本执行后,将生成从下文件:
# $WAR_ROOT_PATH/ 项目根目录(请将Tomcat指向此目录)
# $WAR_ROOT_PATH/disconf-web.war 生成的War包
# $WAR_ROOT_PATH/html HTML前端代码(请将... | ChainBoy/disconf | disconf-web/deploy/deploy.sh | Shell | gpl-2.0 | 2,345 |
#!/bin/bash
#
# Copyright (c) 2014 Igor Pecovnik, igor.pecovnik@gma**.com
#
# www.igorpecovnik.com / images + support
#
# Main branch
#
#--------------------------------------------------------------------------------------------------------------------------------
# currently there is no option to create an image wi... | RaymiiOrg/olimex-scripts-lib | main.sh | Shell | gpl-2.0 | 10,169 |
export PATH="$(dirname $0)/..:$PATH"
export ROOTDIR="$(dirname $0)/.."
load_shunit2() {
if [ -e /usr/share/shunit2/shunit2 ]; then
. /usr/share/shunit2/shunit2
else
. shunit2
fi
}
| UnBsafeC/safec | tests/helper/test_helper.sh | Shell | gpl-2.0 | 196 |
#!/bin/bash
# MACHOST holdst the URL of the macintosh computer hosting the virtual machine.
# Script to generate binaries for Linux
# The only argument for the script is the release number
MACHOST=samson
export PATH=/opt/ocaml-3.10.2/bin:$PATH
LINUX_DIRECTORY=linux
mkdir linux
rm -f linux/*
if ! ./configure --enable-in... | amnh/poy4 | linux_builder.sh | Shell | gpl-2.0 | 1,311 |
#!/bin/bash
### BEGIN INIT INFO
#
# Provides: fence_station.py
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: fence weather station initscript
#
### END INIT INFO
## Fill in name of program here.
PROG="fence_station.py"
PROG_PATH="/home/pi... | IslePilot/wx_station | fencestation.sh | Shell | gpl-2.0 | 1,678 |
#!/bin/sh
[ "$PAPARAZZI_HOME" = "" ] && printf "$0: failed! PAPARAZZI_HOME not set\n\n" && exit 1
PATH=/usr/bin:/bin
cd $PAPARAZZI_HOME
# Configuration sources
OCDSCRIPTS=/usr/share/openocd/scripts
# Configuration destination relativ to PAPARAZZI_HOME
OCDCONFDIR=var
# functions
inline_edit()
{
# remove Warn... | elemhsb/mallorca | conf/system/HB/bin/openocd.sh | Shell | gpl-2.0 | 1,406 |
avrdude -pm32 -cusbasp -u -U flash:w:nitrat-meter/Release/nitrat-meter.hex:i
| trol73/avr-nitrat-meter | write_firmware.sh | Shell | gpl-2.0 | 77 |
#!/bin/bash
#FFMPEG installation script
# Copyright (C) 2007-2014 Sherin.co.in. All rights reserved.
#
# 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
# ... | ravensnowbird/ffmpeg-ubuntu-14-04 | fdkaac.sh | Shell | gpl-2.0 | 1,411 |
#!/bin/sh
set -eu
VERSION="$(sed -rne 's,^VERSION="(.+)",\1,p' hibernate.sh)"
PREFIX="hibernate-script-"
TARGETDIR="../$PREFIX$VERSION"
TARBALL="../$PREFIX$VERSION.tar.gz"
if [ -f "$TARBALL" ]; then
echo "E: $TARBALL already exists." >&2
exit 1
fi
if [ -d .git ] && [ -f .git/config ]; then
git archive --prefi... | NigelCunningham/Hibernate-Script | mktarball.sh | Shell | gpl-2.0 | 608 |
#!/bin/bash
# =====================================================================================================
# Copyright (C) steady.sh v1.2 2016 parsa alemi (@parsaalemi1)
# =====================================================================================================
# This program is free software: you ... | MrAL-i/SPIRAN | steady.sh | Shell | gpl-2.0 | 17,683 |
#!/bin/sh
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
#
# Script to start the MySQL daemon and restart it if it dies unexpectedly
#
# This should be executed in the MySQL base directory if you are using a
# binary insta... | holser/mysql-wsrep | scripts/mysqld_safe.sh | Shell | gpl-2.0 | 28,342 |
#!/bin/bash
source ./mednafen-common.sh
export SDL_OMAP_LAYER_SIZE=640x408
while [ 1 ]
do
file=`select_rom "lastdir-lynx.txt" "Atari Lynx"`
if [ "$file" == "" ]; then
exit
fi
./mednafen "$file"
done
| pder/mednafen-pandora | pandora/mednafen-lynx.sh | Shell | gpl-2.0 | 226 |
#!/bin/bash
######################################################################
#
# idFORGE Framework - Manage identity manuals in community
# Copyright © 2015 The CentOS Artwork SIG
#
# idFORGE Framework is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public L... | areguera/idforge | Library/Modules/Render/Modules/Png/Modules/Base/base_setComposition.sh | Shell | gpl-2.0 | 2,041 |
#!/bin/sh
#
# Run this to generate all the initial makefiles.
#
# $Id: autogen.sh 38447 2011-08-10 15:28:29Z morriss $
DIE=true
PROJECT="Wireshark"
# If you are going to use the non-default name for automake becase your OS
# installaion has multiple versions, you need to call both aclocal and automake
# with that ver... | drower/wireshark-1.10.0 | autogen.sh | Shell | gpl-2.0 | 3,317 |
openssl genrsa -out secret/key.pem 2048
openssl rsa -in secret/key.pem -pubout -out secret/cert.pem
| plusplus7/KyrinBox | src/ci/make_secret.sh | Shell | gpl-2.0 | 100 |
#!/usr/bin/env bash
# -----------------------
# SEXY CRAZY WORMSY CUBES
# -----------------------
# Copyright(c)2015 Jonas Sjöberg
# https://github.com/jonasjberg
# jom... | jonasjberg/WormsyCubes | jar/wormsy.sh | Shell | gpl-2.0 | 1,811 |
#!/bin/bash
######################################################################
#
# idFORGE Framework - Manage identity manuals in community
# Copyright © 2015 The CentOS Artwork SIG
#
# idFORGE Framework is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public L... | areguera/idforge | Library/Modules/Render/Modules/Xml/Modules/Extended/extended.sh | Shell | gpl-2.0 | 1,592 |
#!/bin/sh
verbose=false
if [ "x$1" = "x-v" ]; then
verbose=true
out=/dev/stdout
err=/dev/stderr
else
out=/dev/null
err=/dev/null
fi
## make & makeopts
if gmake --version > /dev/null 2>&1; then
make=gmake;
else
make=make;
fi
makeopts="--quiet --no-print-directory -j"
make_print() {
ec... | spinlock/ucore | x86_64/lab6_filesystem/proj18.2/tools/grade.sh | Shell | gpl-2.0 | 22,689 |
#!/bin/bash
# This file is part of Scapy
# See http://www.secdev.org/projects/scapy for more information
# Copyright (C) Philippe Biondi <phil@secdev.org>
# This program is published under a GPLv2 license
sudo -s
unset PROMPT_COMMAND
export PATH="/sbin:/usr/pkg/sbin:/usr/pkg/bin:$PATH"
export PKG_PATH="http://ftp.net... | mtury/scapy | doc/vagrant_ci/provision_netbsd.sh | Shell | gpl-2.0 | 617 |
#!/bin/bash
cd `dirname $0`
HERE=`pwd`
cd /tr2/bookscanner/bookscanner
for project in `find -mindepth 1 -maxdepth 1 -type d`
do
if [ -f "$project/genpdf" ]
then
echo "$(date '+%Y%m%d %H:%M:%S') Building PDF for $project"
pushd "$project/booktif"
$HERE/tif2pdf.sh
rm ../genpdf
popd
echo "$(date '+%Y%m%d ... | vincib/bookscanner-viewer | sh/scanpdf.sh | Shell | gpl-3.0 | 349 |
#!/bin/bash
LIBRESONIC_HOME="/Library/Application Support/Libresonic"
chmod oug+rwx "$LIBRESONIC_HOME"
chown root:admin "$LIBRESONIC_HOME"
chmod oug+rx "$LIBRESONIC_HOME/transcode"
chown root:admin "$LIBRESONIC_HOME/transcode"
rm -rf "$LIBRESONIC_HOME/jetty"
echo Libresonic installation done
| langera/libresonic | libresonic-installer-mac/src/postinstall.sh | Shell | gpl-3.0 | 298 |
#!/bin/sh
. ./variables.sh
cmake -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_PREFIX_PATH=$QT_MINGW32_DIR\;$OPENSSL_DIR\;$ASPELL_DIR\;$BOOST_DIR\;$GETTEXT_DIR\;$LIBBZ2_DIR\;$LIBICONV_DIR\;$LIBIDN_DIR\;$LIBZ_DIR\;$LUA_DIR\;$PCRE_DIR\;$MINGW32_DIR -DCMAKE_C_COMPILER=$C_COMPILER -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_RC_COMP... | pavel-pimenov/eiskaltdcpp | windows/outdated/configure.sh | Shell | gpl-3.0 | 809 |
cd ..
if [ -f ./config/binary ]
then
export binary=$(cat ./config/binary)
else
export binary=$(pwd)/iso_olusturucu/binary
fi
xorriso -as mkisofs \
-iso-level 3 -rock -joliet \
-max-iso9660-filenames -omit-period \
-omit-version-number -relaxed-filenames -allow-lowercase \
-volid "Cus... | parduscix/iso_duzenleyici | iso_olusturucu/binary.sh | Shell | gpl-3.0 | 678 |
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
DIE=0
if [ -n "$GNOME2_DIR" ]; then
ACLOCAL_FLAGS="-I $GNOME2_DIR/share/aclocal $ACLOCAL_FLAGS"
LD_LIBRARY_PATH="$GNOME2_DIR/lib:$LD_LIBRARY_PATH"
PATH="$GNOME2_DIR/bin:$PATH"
export PATH
export L... | tapule/BMonkey | autogen.sh | Shell | gpl-3.0 | 4,736 |
#!/bin/bash
echo "Updating GRUB settings, please wait..."
grub=$((ls /usr/sbin | grep 'grub2-install') || exit 0)
if [ -z "$grub" ]
then
grub=$((ls /usr/sbin | grep 'grub-install') || exit 0)
if [ -z "$grub" ]
then
echo "No tools for GRUB was found."
exit 0
else
sudo grub-install... | NJUOPEN/Quick-Linux-Clone | user_config/update_grub.sh | Shell | gpl-3.0 | 496 |
#!/bin/bash
python manage.py graph_models employees organizations projects funding_programs -g -o projects_morelab_models.png
| OscarPDR/projects_morelab | projects_morelab/scripts/generate_model_graph.sh | Shell | gpl-3.0 | 127 |
#!/bin/bash
# Temporary upgrade script for the panel until panel becomes more self-sufficient
if [[ -f /install/.panel.lock ]]; then
if ! dpkg -s acl > /dev/null 2>&1; then
echo_progress_start "Modifying ACLs for swizzin group to prevent panel issues"
apt_install acl
setfacl -m g:swizzin:rx /home/*
e... | liaralabs/swizzin | scripts/upgrade/panel.sh | Shell | gpl-3.0 | 872 |
#!/bin/bash
yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum -y install gcc perl-ExtUtils-MakeMaker
yum -y remove git
cd /usr/src
wget https://github.com/git/git/archive/v2.5.0.tar.gz
tar -zxvf v2.5.0.tar.gz
cd git-2.5.0
make prefix=/usr/local/git all
make prefix=/usr/local/git install
... | vForce825/serverUtils | git.sh | Shell | gpl-3.0 | 436 |
#!/bin/sh
# update the base system
apk update && apk upgrade
# we need pyhon and git, move along
apk add python git
# add a non-root user and group called "nzbget" with no password (-D), no home dir (-H), no shell (-s /bin/false), and gid/uid set to 1000
addgroup -g 1000 headphones && adduser -H -D headphones -G hea... | pwntr/headphones-alpine-docker | setup/setup.sh | Shell | gpl-3.0 | 859 |
_get_commands() {
n=$(spritzle --help | grep -n 'Commands:' | cut -d ':' -f 1)
let n=n+1
cmds=$(spritzle --help | tail -n+$n |cut -d ' ' -f 3|xargs)
}
_spritzle() {
local cur=${COMP_WORDS[COMP_CWORD]}
local cmd=${COMP_WORDS[COMP_CWORD-1]}
if [[ $COMP_CWORD -eq 1 ]]; then
_get_commands
COMPREPLY=($(compgen -W... | spritzle/spritzle | scripts/complete.sh | Shell | gpl-3.0 | 546 |
#!/bin/sh
# $XTermId: fonts.sh,v 1.10 2003/05/19 00:52:30 tom Exp $
# -----------------------------------------------------------------------------
# this file is part of xterm
#
# Copyright 1999-2002,2003 by Thomas E. Dickey
#
# All Rights Reserved
#
# Permission is hereby granted, free of ch... | chriskmanx/qmole | QMOLEDEV/xterm-270/vttests/fonts.sh | Shell | gpl-3.0 | 2,700 |
#!/bin/sh
/usr/bin/python3 config.py
| loehnertj/bsbgateway | bsbgateway.sh | Shell | gpl-3.0 | 37 |
#!/bin/bash
# Verificar que se ejecute el script con root
if [ "$(id -u)" != "0" ]; then
echo "Debe ser root para ejecutar los script." 1>&2
exit 1
fi
if [ "$(hostname)" != "controller" ]; then
echo "
##################################################################################################
Este script so... | cgomeznt/openstack | scripts/openstack-launch-instance.sh | Shell | gpl-3.0 | 4,022 |
#! /bin/sh
gcc simplest_ffmpeg_player.cpp -g -o simplest_ffmpeg_player.out \
-I /usr/local/include -L /usr/local/lib -lSDL2main -lSDL2 -lavformat -lavcodec -lavutil -lswscale
| YuxuanLing/trunk | trunk/code/study/ffmpeg/simplest_ffmpeg_player/simplest_ffmpeg_player/compile_gcc.sh | Shell | gpl-3.0 | 175 |
#!/bin/bash
VSBUTIL=../../../utility/vsbutil/vsbutil.py
$VSBUTIL dfu > /dev/null
./serialize.py $1 && \
sleep 1 && \
make dfu && \
sleep 1 && \
$VSBUTIL wipeconfig && \
echo && echo && echo && \
$VSBUTIL setkeys shift+h e l l o space t h e r e shift+1 enter && \
echo -n "Button test> " && \
read vsbsays && \
if [ "$v... | gregcourville/VerySeriousButton-firmware | VerySeriousButton/init_vsb.sh | Shell | gpl-3.0 | 658 |
#!/usr/bin/env bash
folder=$1
#tmpfile=$(mktemp /dev/shm/tmp.XXXXXXXXXXX.out)
tmpfile=$(mktemp)
cd $folder
ls $folder | grep -v error | xargs -n 32 -P 8 cat $folder/ 2> /dev/null | awk 'NR==1 || NR%2==0' > $tmpfile
cd -
folder=$2
tmpfile2=$(mktemp)
cd $folder
ls $folder | grep -v error | xargs -n 32 -P 8 cat $folder/ ... | daajoe/asp_param_exp | analyze/decompose_stats.sh | Shell | gpl-3.0 | 458 |
# This file is part of the Aloofix project.
# Copyright (C) 2013 Kevin Johnson <kjj@aloofschipperke.com>
# Distributed under the terms of the GNU General Public License version 3,
# or (at your option) any later version.
name=libffi
version=3.0.13
sequence=1
site=ftp://sourceware.org/pub/$name
description="A portable ... | aloofschipperke/aloofix | specs/pkgs/libffi/spec.sh | Shell | gpl-3.0 | 645 |
#!/bin/bash
DATA="fe00::1"
if ! fw-admin -a $DATA ; then
echo "E: Unable to add $DATA"
exit 1
fi
if ! fw-admin -i $DATA ; then
echo "E: $DATA not stored"
exit 1
fi
exit 0
| aborrero/fw-admin | tests/testfiles/007_0_add.sh | Shell | gpl-3.0 | 179 |
#!/bin/bash
#
# ExtractZip - a script to extract Zips into folder
#
# By Nicola Ferralis <feranick@hotmail.com>
#
# This is script is licensed throughthe GNU Public license v.2.0
#
version="20180110a"
if [ "$1" = "" -o "$1" = "-h" ]; then
echo
echo " ExtractZip v."$version
echo " Usage:"
echo " extrac... | feranick/SpectralMachine | Utilities/extractzip.sh | Shell | gpl-3.0 | 595 |
#!/bin/bash
# This script creates a new domain directory.
#
# Author: George Borisov <git@gir.me.uk>
set -o errexit
set -o nounset
BASE_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" && cd .. && pwd)
. $BASE_DIR/lib/common.sh
initEnv $BASE_DIR
DOMAIN=${1:-}
CSR_SUBJECT=${CSR_SUBJECT:-}
while [ -z $DOMAIN ]; do
echo ... | borisovg/nginx-config | bin/keygen.sh | Shell | gpl-3.0 | 1,725 |
#!/bin/bash -v
java --version
time java -XX:+UseSerialGC -server -XX:CompileThreshold=2 CardRaytracer /dev/null
| Mark-Kovalyov/CardRaytracerBenchmark | java/run.sh | Shell | gpl-3.0 | 112 |
#!/bin/bash
# bash x.sh 6
if [ $# -eq 0 ]; then
echo "bash x.sh <END>"
exit
fi
END=$1
echo 0 > out/spades-length0.txt
bioawk -c fastx '{ print $name, length($seq) }' < out/spades-bwa/scaffolds.fasta | cut -f 2 >> out/spades-length0.txt
echo 1 > out/spades-length1.txt
bioawk -c fastx '{ print $name, length($seq... | goshng/swu-seq | src/sh/r-spades-length.sh | Shell | gpl-3.0 | 704 |
#---------------------------------------------------------------------
# Function: InstallWebServer Ubuntu 16.04
# Install and configure Apache2, php + modules
#---------------------------------------------------------------------
InstallWebServer() {
if [ "$CFG_WEBSERVER" == "apache" ]; then
CFG_NGINX=n
CFG_... | servisys/ispconfig_setup | distros/ubuntu-16.04/install_webserver.sh | Shell | gpl-3.0 | 6,510 |
#!/bin/bash
#
#
clear
echo -e 'source /etc/network/interfaces.d/*\n\nauto lo\niface lo inet loopback' > /etc/network/interfaces
echo 'Configurador de rede por DHCP 1.0'
echo 'Script por Eduardo Medeiros & Fabricio Prado'
echo ''
echo 'Definindo nome do computador...'
echo 'FABRICIO_PRADO' > /etc/hostname
hostname FABRI... | FabricioPrado/trabalho_tumelero_2109 | configura_rede.sh | Shell | gpl-3.0 | 738 |
#!/bin/bash
ROOT_UID=0
NOTROOT=87
# Check if user is root
if [ $UID -ne $ROOT_UID ]
then echo “You must be root to run this script.”
exit $NOTROOT
fi
display_help() {
echo "Usage: $0 [option= ...] " >&2
echo
echo " -h, --help Show this help"
echo " -v, --vhost ... | bgerp/bgerp-install | a2clonevhost.sh | Shell | gpl-3.0 | 1,567 |
#!/bin/bash
# Test Erlang.g4 grammar against Erlang/OTP's *.erl sources
# Note: a preprocessing pass has to be done beforehand (creates *.P files)
get() {
URL="$1" ; SRC="$2"
which wget 1>/dev/null 2>/dev/null
if [ $? -eq 0 ]; then
wget $URL -O maint
else
curl -O $URL
f... | iazarny/gitember | src/main/java/com/az/gitember/controller/lang/erlang/check.sh | Shell | gpl-3.0 | 2,267 |
#!/bin/bash
#MAPROOT='../../maps/'
MAPROOT="../maps/"
MAPFILES=(
$MAPROOT"fernflower.dmm"
$MAPROOT"efficiency.dmm"
)
for MAPFILE in "${MAPFILES[@]}"
do
echo "Processing $MAPFILE..."
git show HEAD:$MAPFILE > tmp.dmm
java -jar MapPatcher.jar -clean tmp.dmm $MAPFILE $MAPFILE
#dos2unix -U '../../maps/'$MAPFILE
rm ... | BlueCabaret/Wonderwork | maptools/clean_map_git.sh | Shell | gpl-3.0 | 374 |
#!/bin/sh
echo "Deleting all npgsql_tests_* databases..."
drop_ok=1
for dbname in `${PSQL} -U ${NPGSQL_UID} -h 127.0.0.1 -d ${NPGSQL_template_DB} -c "select datname from pg_database;" |grep ${NPGSQL_DB_PREFIX}`;
do
echo -n "Deleting database ${dbname}..." && (${PSQL} -U ${NPGSQL_UID} -h ${NPGSQL_HOST} -d ${N... | anonymouskeyboard47/Tripodmaps | Npgsql2.0.11.src/Npgsql2.0.11.src/testsuite/noninteractive/cleanDBs.sh | Shell | gpl-3.0 | 437 |
#!/bin/sh
export AS_NAME="ProcessManagerGroup"
JAVA_OPTS=""
# Init ANKA Servers default paramters
. "$(dirname "$0")/_init.sh"
JAVA_OPTS="$JAVA_OPTS -Dlog4j.debug=false"
JAVA_OPTS="$JAVA_OPTS -DAppServer.init=AppServer-procmangr.properties"
$AS_JAVA -classpath $AS_CLASSPATH $JAVA_OPTS com.kriznar.csshell.epics.ser... | ANKA-CS/ANKA-Servers | sh/ProcessManagerGroup.sh | Shell | gpl-3.0 | 333 |
#!/usr/bin/with-contenv bash
set -e
cd /rpc
exec python start.rpc.py
| LTD-Beget/sprutio-rpc | run-rpc.sh | Shell | gpl-3.0 | 69 |
#!/bin/bash
LIBFFI_CFLAGS="-I/usr/include" LIBFFI_LIBS="-lffi" ./configure
| chriskmanx/qmole | QMOLEDEV/glib-2.29.14/configure.withffi.sh | Shell | gpl-3.0 | 75 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YNL069C --paralog2 YIL133C --simnum 83 > YNL069C_YIL133C_MG94_nonclock_Sim83_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YNL069C_YIL133C_sim83.sh | Shell | gpl-3.0 | 145 |
#!/bin/bash
# Bash script to run the Mocha / Chai tests
# (C) 2016, 2017 Dirk Stolle
# get directory of this script
THIS_DIR="${BASH_SOURCE%/*}"
# get current directory
OLD_WORKING_DIRECTORY="$(pwd)"
# change to this directory, because that is where meteor is
cd "$THIS_DIR"
if [[ $? -ne 0 ]]
then
echo "Could not ... | striezel/meteor-chess | meteorapp/tests.sh | Shell | gpl-3.0 | 1,498 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.