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
# ignore commands that have leading whitespace
GREP_OPTIONS= grep -q ignorespace <<< $HISTCONTROL
retval=$?
if [ $retval -eq 1 ]; then
export HISTCONTROL="$HISTCONTROL:ignorespace"
fi
unset retval
| ARivottiC/aliases.sh | generic/HISTCONTROL-ignorespace.sh | Shell | mit | 213 |
#!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
# Packages required by YCM
sudo apt install build-essential cmake python3-dev -yqq
sudo apt install vim -yqq
vim +PlugInstall +qall
# UltiSnips symlink
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/../.."
ln -s "${DIR}/.vim/UltiSnips/" "$HOME/.vim/Ul... | Coaxial/dotfiles | lib/scripts/vim.sh | Shell | mit | 329 |
#!/bin/bash
#Descarga docker
sudo apt-get update
sudo apt-get install -y docker.io
# Inicia el servicio docker
sudo service docker start
sudo docker -d &
#Descarga la imagen
docker pull angelvalera/bares-y-tapas-dai
#Ejecuta la imagen
sudo docker run -i -t angelvalera/bares-y-tapas-dai /bin/bash
| AngelValera/bares-y-tapas-DAI | Scripts/docker.sh | Shell | mit | 298 |
#!/bin/bash
#=======================================================================================
#
# Prints a list of repos in your working copy that are not in active-repos.
# Requires perennial repo to be checked out at the top-level of your working copy,
# and all other repos to be siblings of perennial.
#
# Aut... | phetsims/perennial | bin/print-vestigial.sh | Shell | mit | 966 |
#!/bin/bash
if [ $UID -ne 0 ]; then
echo Please run as root $0
exit 1
fi
basearch=`uname -p`
srcbasedir=/usr/local/src
downloaddir=$srcbasedir
checkinstall_version=1.6.2
checkinstall_local_srcpkg=checkinstall-$checkinstall_version.tar.gz
checkinstall_download_url=http://asic-linux.com.mx/~izto/checkinstall/files/... | hnakamur/setup_linux | setup_checkinstall.sh | Shell | mit | 1,674 |
#!/bin/bash
normalizeURI() {
local domain="$(escapeSearch "$1")"
local replace="$(escapeReplace "$2")"
local file="$3"
sed -i -e "s/$domain.[^.]*.$DEPLOY_DEV_DOMAIN/$replace/g" $file
log "Running: sed -i -e \"s/$domain.[^.]*.$DEPLOY_DEV_DOMAIN/$replace/g\" $file"
}
syncDb() {
# Default source to current ... | oxyc/deploy | commands/sync.sh | Shell | mit | 2,262 |
#!/bin/bash
# Set variables
consul_version=0.8.3
vault_version=0.7.2
export DEBIAN_FRONTEND=noninteractive
# Upgrade packages and install utilities
apt-get update
apt-get upgrade -y
apt-get install -y unzip
# Copy the systemd scripts
cp /vagrant/consul.conf /etc/init/consul.conf
cp /vagrant/consul.service /etc/syst... | mickengland/vagrant-consul | provisionclient.sh | Shell | mit | 1,451 |
sed -ri 's/autologin-user/#autologin-user/g' /etc/lightdm/lightdm.conf
echo -n "Starting upgrade..."
apt-get -y remove --purge gnome-* xserver-* desktop-* apache2 crtmpserver
apt-get -y autoremove
apt-get update
apt-get -y upgrade
apt-get -y install build-essential libusb-1.0
mkdir /fex
mount /dev/mmcblk0p1 /fex
... | Ensiis/lime2-ap | 01-fix-image.sh | Shell | mit | 685 |
cd ~/dlllciasrouter
sh h_check.sh
echo "Check completed. Wait for 3 sec and start to compile...3..."
sleep 1
echo "2..."
sleep 1
echo "1..."
zentyal-package
sudo dpkg -i debs-ppa/zentyal-dlllciasrouter_3.0_all.deb
| pulipulichen/dlll-cias | zentyal/zentyal-module/dlllciasrouter/compile.sh | Shell | mit | 214 |
# Because of a long-running npm issue (https://github.com/npm/npm/issues/3059)
# prepublish runs after `npm install` and `npm pack`.
# In order to only run prepublish before `npm publish`, we have to check argv.
if node -e "process.exit(($npm_config_argv).original[0].indexOf('pu') === 0)"; then
exit 0;
fi
# Publishi... | tobkle/create-graphql-server-authorization | resources/prepublish.sh | Shell | mit | 1,652 |
#!/bin/bash
if ! brew -v &>/dev/null; then
echo "Installing brew"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
sudo -v
brew update && brew doctor
brew upgrade
brewinstallpackage() {
if ! brew ls --versions "${1}" >/dev/null; then
brew install ... | neogeek/dotfiles | bin/brew.sh | Shell | mit | 613 |
#!/bin/bash
# Prevent the general public from signing up for an admin account
# AGENDA
# * Add integration tests for new admin registrations
# * Make the changes needed to allow the tests to pass
TOGGLE_OUTLINE=$1
echo '##############################'
echo 'Unit 8 Chapter 2: Admin Signup'
echo '####################... | jhsu802701/rails_neutrino_5 | mod/mod-08-02/mod-08-02.sh | Shell | mit | 646 |
#!/bin/sh
/usr/bin/aws s3 sync /var/jenkins_home s3://$S3_BUCKET --sse AES256 --delete --exclude "*caches/*" --exclude "*workspace/*" --exclude "*lastSuccessfulBuild/*" --exclude "*lastStableBuild/*" --exclude "*lastFailedBuild/*" --exclude "*lastUnsuccessfulBuild/*"
| asynchrony/docker-jenkins-s3 | s3-sync.sh | Shell | mit | 268 |
#!/bin/bash
set -e
./etc/docker-test.sh
| cloudControl/buildpack-clojure | etc/all-test.sh | Shell | mit | 42 |
cefmdd_v1 -f ~/C/CAA-DEV-APPS-SAMPLE-DATA/S/S3/C1_CQ_STA_SA_PROBEFAIL_CAVEATS__20011228_000000_20011228_235959_V170103.cef $1 $2 $3
| caa-dev-apps/cefmdd_v1 | tests/2017-00-00__v0.0.0/c62.sh | Shell | mit | 133 |
#!/bin/bash
echo "Installing emacs"
nix-env -i emacs
# Spacemacs
git clone https://github.com/syl20bnr/spacemacs.git ~/.emacs.d/
ln -sf ~/programming/dotfiles/emacs/.spacemacs ~/.spacemacs
| diminishedprime/dotfiles | installs/emacs.sh | Shell | mit | 191 |
# my own git aliases
alias gpp='git pull --prune'
alias get-git-branch-name='git rev-parse --abbrev-ref HEAD'
alias ggbn='get-git-branch-name'
alias gib='git branch -v'
alias gip='git branch --merged master | grep -v "master$" | xargs git branch -d'
alias gs='git status -sb'
alias gis='git status -sb'
alias gid='git di... | justinwoo/dotfiles | git/setup.rc.bash | Shell | mit | 2,583 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/20202_tblptr.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=20202_tblptr.X.${IMAGE_TYPE}.${OUTPU... | tocache/picomones | UPC Microcontroladores 2020-2/Semana 03/20202_tblptr.X/nbproject/Package-default.bash | Shell | cc0-1.0 | 1,395 |
#!/bin/bash
#
# Copyright (c) 2007 IBM Corporation.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# File: ... | gitpan/PLUTO | examples/gen_odo_helper.sh | Shell | epl-1.0 | 1,062 |
#!/bin/sh
export CPPFLAGS="-fPIC -DPIC -pipe"
export SDIR="$(readlink -f "$(dirname $0)")"
function build()
{
local platform=$1
local arch="default"
local cppflags_base="${CPPFLAGS}"
local cppflags="${CPPFLAGS}"
local ldflags_base="${LDFLAGS}"
local ldflags="${LDFLAGS}"
local cfgflags=""
local tmp_build_dir="... | rudolfovich/linux_input_system | cloud-deploy.sh | Shell | gpl-2.0 | 4,155 |
#!/bin/bash
export branch=Sandbox1-Server
echo Deploying ${branch}...
#Run shared script to update all variables
deploy/update.sh
| VirtualFlyBrain/VFB | deploy/Deploy-Sandbox1-Server.sh | Shell | gpl-2.0 | 133 |
#!/bin/tcsh -xef
3dMEMA -prefix hi-lo_slope_paraRS_CTL-MDD \
-jobs 4 \
-mask allSubs_TestMask+tlrc \
-groups MDD CTL \
-set MDD \
PARC_sub_2718 stats.test_paraRW_paraFP_grpspc.PARC_sub_2718_REML+tlrc'[39]' stats.test_paraRW_paraFP_grpspc.PARC_sub_2718_REML+tlrc'[40]' \
PARC_sub_2726 stats... | sorensje/dissertation | 3dmem_test_grpspc_hi-lo_slope__paraRwdStim_CTL-MDD.sh | Shell | gpl-2.0 | 5,289 |
#!/bin/sh
# usage: ./nexbrand.sh "2.0.1 RC 1" rc1
# writes "2.0.1 RC 1" on rc1.tga
# NOTE: unfortunately requires X-server (otherwise file-tga-save won't work... no joke)
# roughly based on Spencer Kimball's "Glowing Hot" effect, included with GIMP
version=$1
versiontag=$2
gimp -i -b - <<EOF
(define (nexuiz-bran... | atphalix/nexuiz | misc/buildfiles/brand/nexbrand.sh | Shell | gpl-2.0 | 2,258 |
#!/system/bin/sh
# Copyright (c) 2014, Savoca <adeddo27@gmail.com>
# Copyright (c) 2009-2014, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source ... | binkybear/furnace_kernel_caf_hammerhead | ramdisk/init.furnace.sh | Shell | gpl-2.0 | 11,199 |
#!/usr/bin/env bash
# This script will start opennms
# in in a configuration that has been
# duplicated from the primary opennms
# system.
# Must first stop OpenNMS that is running and
# monitoring the primary server.
SYNC_USER=opennms
SYNC_HOME=~$SYNC_USER/failover
PRIMARY_NMS=nms-01
STANDBY_NMS=`hostname`
OPENNMS_... | jeffgdotorg/opennms | opennms-base-assembly/src/main/resources/contrib/failover/scripts/failover.sh | Shell | gpl-2.0 | 4,436 |
#!/bin/bash
PREF=/tmp/testvoc_eo-en
lt-expand tmp1_apertium-eo-en.eo.dix |grep -v REGEXP | grep -e ':>:' -e '\w:\w' | sed 's/:>:/%/g' | sed 's/:/%/g' | cut -f1 -d'%' > ${PREF}0.txt &
lt-expand tmp1_apertium-eo-en.eo.dix |grep -v REGEXP | grep -e ':>:' -e '\w:\w' | sed 's/:>:/%/g' | sed 's/:/%/g' | cut -f2 -d'%' | ... | wikimedia/operations-debs-contenttranslation-apertium-eo-en | testvoc_eo-en.sh | Shell | gpl-2.0 | 908 |
PROMPT_COMMAND='history -a >(tee -a ~/.bash_history | logger -t "$USER[$$] $SSH_CONNECTION")'
typeset -r PROMPT_COMMAND
alias top='glances'
| hpz24/playbooks | files/myglobalenv.sh | Shell | gpl-2.0 | 141 |
#!/bin/bash
REMOTEPORTFILE="/home/pid/rpilogger/wsserver/remoteport.txt"
if [ -s $REMOTEPORTFILE ] #file exists and has size greater than 0
then
ODLPORT=`cat $REMOTEPORTFILE`
else
ODLPORT=3000
echo $ODLPORT > $REMOTEPORTFILE
fi
URL="http://tesla.ggki.hu/update_client.php"
MAC=$(cat /sys/class/net/eth0/add... | deguss/rpilogger | wsserver/online_ssh.sh | Shell | gpl-2.0 | 896 |
# Creat usbmux user
useradd -u 233 -g plugdev -d /dev/null -s /bin/false usbmux
chroot . /etc/rc.d/rc.udev reload
| mmwanga/gsb-build-system | src/l/usbmuxd/doinst.sh | Shell | gpl-2.0 | 114 |
# LARGEST DIRECTORIES
# -------------------
# human-readable format
du -hsx * | sort -rh | head -10
# in kilobytes
du -sx * | sort -rh | head -10
# -h: display sizes in human readable format (e.g., 1K, 234M, 2G)
# -s: show only a total for each argument (summary)
# -x: skip directories on different file systems
# L... | jabbalaci/PrimCom | data/shell/top10dirs.sh | Shell | gpl-2.0 | 526 |
#!/bin/bash
DATADIR=/usr/share/xs-rsync
ln -sf $DATADIR/usbmount-50-xs-rsync-installcontent /etc/usbmount/mount.d/50-xs-rsync-installcontent
ln -sf $DATADIR/crond-xs-rsync.conf /etc/cron.d/xs-rsync
ln -sf $DATADIR/xinetd-xs-rsyncd.conf /etc/xinetd.d/xs-rsyncd
service xinetd condrestart
| XSCE/xs-rsync | xs-rsync.setup.sh | Shell | gpl-2.0 | 289 |
#!/bin/bash
#
# test_driver.sh
# Author: Michael Petlan <mpetlan@redhat.com>
#
# Description:
# The test_driver runs all the tests.
#
#
. common/settings.sh
# FIXME :: add arguments for logging, test depth, etc
export PERFTEST_LOGGING=${PERFTEST_LOGGING:-n}
export VERBOSE=n
#### specifies the sets of test per arch... | rfmvh/perftool-testsuite | test_driver.sh | Shell | gpl-2.0 | 3,370 |
#!/usr/bin/env bash
#
# This script installs the LittleShoot svn repository on a new machine.
# It assumes Apache is already present.
#
function die
{
echo $1
exit 1
}
S3_BUCKET=$1
SVN_DUMP_NAME=$2
SVN_CONF_URL=$3
REPO_NAME=$4
echo "Creating subversion repository..."
svnLoc=/mnt/srv/svn
mkdir /mnt/srv
mkdir $svn... | adamfisk/littleshoot-client | bin/bootstrap/svn/svn.bash | Shell | gpl-2.0 | 1,518 |
#!/bin/sh
. gnupoc-common.sh
TOOL=`basename $0`
if [ "`which $TOOL`" != "$0" ] && [ -x "`which $TOOL`" ]; then
exec $TOOL "$@"
else
exec wine ${EPOCROOT}epoc32/tools/$TOOL.exe "$@"
fi
| mstorsjo/gnupoc-package | sdks/wrapper.sh | Shell | gpl-2.0 | 189 |
#!/bin/sh
echo "****thermald preference****"
echo "0 : DEFAULT"
echo "1 : PERFORMANCE"
echo "2 : ENERGY_CONSERVE"
echo "3 : DISABLED"
echo "4 : CALIBRATE"
echo "5 : SET USER DEFINED CPU MAX temp"
echo "6 : SET USER DEFINED CPU PASSIVE temp"
echo "7 : TERMINATE"
echo "8 : REINIT"
echo "A : Add sensor test"
echo "B : Ge... | hadrons123/thermal_daemon | tools/thermald_set_pref.sh | Shell | gpl-2.0 | 4,473 |
elasticdump --maxSockets=1000 --input=http://es-lb.archive.org:9200/archive-all-2 --output=$ --limit=10000 --searchBody '{ "_source": ["collection","mediatype","members"], "filter" : { "term": {"mediatype":"collection"} } }' | pv -acbrl > collection_dump.json
elasticdump --maxSockets=1000 --input=http://es-lb.archive.o... | ximm/listerine | shell/DUMP_LIST_DATA.sh | Shell | gpl-2.0 | 546 |
#!/bin/bash
KEYS='AUTH_KEY SECURE_AUTH_KEY LOGGED_IN_KEY NONCE_KEY AUTH_SALT SECURE_AUTH_SALT LOGGED_IN_SALT NONCE_SALT'
OUTPUT='heroku config:set '
KEY_OUTPUT=''
for KEY in $KEYS
do
KEY_VALUE=`< /dev/urandom tr -dc A-Za-z0-9_ | head -c64`
KEY_OUTPUT="$KEY_OUTPUT WP_$KEY='$KEY_VALUE'"
done
echo -n "$OUTPUT $KEY... | djcp/wordpress-heroku | bin/create_heroku_auth_key_config.sh | Shell | gpl-2.0 | 329 |
#!/bin/bash
PROG=`basename $0`
usage()
{
echo "usage: $PROG CMD"
echo ' install : command to install'
echo ' uninstall : command to uninstall'
echo ''
echo ' -h : display this help'
echo ''
echo ''
}
# error <error-code> <msg> ...
# if the error code is greater than zero, print the rest... | brayra/ecryptfs-loader | setup.sh | Shell | gpl-2.0 | 2,492 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2011-2022 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | gittup/tup | test/t4030-link.sh | Shell | gpl-2.0 | 1,100 |
#!/bin/bash
./clean.sh
./build.sh
| tolokoban/TrailPassionAssist | node_modules/toloframework/tst/prj/rebuild.sh | Shell | gpl-2.0 | 39 |
#!/bin/sh
libtoolize
aclocal
autoconf
autoheader
ln -sf README.md README
ln -sf README.md NEWS
ln -sf README.md AUTHORS
ln -sf LICENSE COPYING
automake -a -c
if [ -f "configure" ]; then
./configure --prefix=/opt/caprice32 \
--with-wx-config="wx-config --version=2.8"
# --with-lib765 \
# --with-stsound \
# --... | burzumishi/caprice32wx | autogen.sh | Shell | gpl-2.0 | 911 |
#!/bin/bash
# The old stack drivers and the mac80211 rc80211_simple modules
# which is no longer on recent kernels (its internal)
OLD_MODULES="iwlwifi_mac80211 rc80211_simple zd1211rw-mac80211"
OLD_MODULES="$OLD_MODULES ieee80211_crypt_tkip ieee80211_crypt_ccmp"
OLD_MODULES="$OLD_MODULES ieee80211softmac ieee80211_cr... | charles1018/android_kernel_bambook_u8500 | net/compat-wireless/scripts/unload.sh | Shell | gpl-2.0 | 2,677 |
#!/bin/sh
BEFORE=$1
NOW=$2
fail=1
pass=0
result=$pass
tmp2=/tmp/tmp.diff
if [ ! -e $BEFORE ] ; then
echo "$BEFORE is not existing"
exit $fail
fi
if [ ! -e $NOW ] ; then
echo "$NOW is not existing"
exit $fail
fi
num_before=`grep -nr "Passed Tests" $BEFORE | head -1 | awk '{print $5}'`
grep -nr "Passed Te... | scs/uclinux | testsuites/ltp/ltp_compare_results_all.sh | Shell | gpl-2.0 | 3,925 |
#!/bin/bash
# host.sh
host surfacemail.com
| yaowenqiang/bash | communicate/host.sh | Shell | gpl-2.0 | 44 |
require net
require lock
require util
require reverse
require file
require usage
require webui
require tel
require fshash
require recode
require flash
_pb_CACHE_DIR="/var/cache/phonebook"
ensure_dir "$_pb_CACHE_DIR"
_pb_FONBUCH_CACHE="$_pb_CACHE_DIR/avm"
new_fshash _pb_avm "$_pb_FONBUCH_CACHE"
new_fshash _pb_cache "$... | kriegaex/callmonitor | base/usr/lib/callmonitor/modules/phonebook.sh | Shell | gpl-2.0 | 6,993 |
#!/bin/sh
#
# ubuntu-nfs-server-v01.sh (25 March 2014)
# GeekPeek.Net scripts - Install and configure NFS Server on Ubuntu Server 12.04
#
# INFO: This script was created and tested on fresh Ubuntu Server 12.04 installation. Script installs required packages
# and adds desired entrie to /etc/exports file. It restarts N... | kernt/inshelp | geekpeek/english/ubuntu-nfs-server-v01.sh | Shell | gpl-2.0 | 1,184 |
#!/usr/bin/env sh
# generated from catkin/cmake/template/setup.sh.in
# Sets various environment variables and sources additional environment hooks.
# It tries it's best to undo changes from a previously sourced setup file before.
# Supported command line options:
# --extend: skips the undoing of changes from a previou... | chickonice/AutonomousFlight | final_ws/devel/setup.sh | Shell | gpl-3.0 | 2,567 |
#!/bin/sh
#
# Vivado(TM)
# runme.sh: a Vivado-generated Runs Script for UNIX
# Copyright 1986-2016 Xilinx, Inc. All Rights Reserved.
#
echo "This script was generated under a different operating system."
echo "Please update the PATH and LD_LIBRARY_PATH variables below, before executing this script"
exit
if [ -z "$... | hsnuonly/PikachuVolleyFPGA | VGA.runs/ball_pixel_synth_1/runme.sh | Shell | gpl-3.0 | 1,102 |
#!/bin/bash
python RunBootstrap.py --paralog1 YML026C --paralog2 YDR450W --bootnum 28 > YML026C_YDR450W_Boot28_PrintScreen.txt
| xjw1001001/IGCexpansion | Bootstrap/ShFiles/MG94_YML026C_YDR450W_Boot28.sh | Shell | gpl-3.0 | 128 |
#!/bin/sh
psql -U agrbrdf -d agrbrdf -h invincible -q -v run_name="'$1'" <<EOF
\t
select count(*) from biosamplelist where listname=:run_name;
EOF
| AgResearch/DECONVQC | database/is_run_in_database.sh | Shell | gpl-3.0 | 149 |
printf "Wrong paper,10,foo,mm" > "./$sysconfdir/paperspecs"
expected_file=expected.txt
printf "paper: bad height in line 1 of $test_dir$sysconfdir/paperspecs\n" > "$expected_file"
expected_exit=1
paper_test
| rrthomas/paper | tests/bad-height.sh | Shell | gpl-3.0 | 207 |
#!/bin/sh
#
# This script has been released under the same license as GNU bash 3
# Please let me know if you have any suggestions
#
# from <http://www.foo.co.in/2011/08/scheduling-multiple-service-checks-in.html>
#
# The authoritative version of this script lives at:
# <https://github.com/jantman/nagios-scripts>
#
# Pl... | jantman/nagios-scripts | schedule_service_checks.sh | Shell | gpl-3.0 | 2,216 |
#!/bin/bash
# number of tasks:
#SBATCH -n 4
# memory:
#SBATCH --mem=2gb
# time:
#SBATCH --time=00:10:00
# Set output and error files (deactivated here)
##SBATCH --error=job.%J.err
##SBATCH --output=job.%J.out
# partition:
#SBATCH --partition=local
module load openmpi
echo "time mpirun -np 4 ~/hpc-excelerate/day1/bin/... | oscartt89/hpc-excelerate | day1/bin/bandwidthmpi.sh | Shell | gpl-3.0 | 407 |
#!/bin/bash
install ./*.service /usr/lib/systemd/system
systemctl reload-daemon
systemctl enable pyborg_*
journalctl | jrabbit/pyborg-1up | misc/systemd_explorer/systemd_install.sh | Shell | gpl-3.0 | 117 |
# -*- coding: utf-8 -*-
#
# This file is part of INSPIRE.
# Copyright (C) 2014-2017 CERN.
#
# INSPIRE 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 License, or
# (at your option) any ... | chris-asl/inspire-query-parser | run-tests.sh | Shell | gpl-3.0 | 963 |
BT=${BT-../../bin/bedtools}
FAILURES=0;
check()
{
if diff $1 $2; then
echo ok
else
FAILURES=$(expr $FAILURES + 1);
echo fail
fi
}
###########################################################
# Test window size / forward window numbering
############################################################
ec... | jkimlab/mySyntenyPortal | src/third_party/bedtools/test/makewindows/test-makewindows.sh | Shell | gpl-3.0 | 4,434 |
#!/bin/bash
# Display CPU & GPU temperature for degrees C.
#
# Thanks badfur and yuusou for writing the script.
# https://www.raspberrypi.org/forums/viewtopic.php?t=34994
cpuTemp0=$(cat /sys/class/thermal/thermal_zone0/temp)
cpuTemp1=$(($cpuTemp0/1000))
cpuTemp2=$(($cpuTemp0/100))
cpuTempM=$(($cpuTemp2 % $cpuTemp1))
... | DT42/BerryNet | utils/rpi3-temperature.sh | Shell | gpl-3.0 | 491 |
#!/usr/bin/env bash
echo " "
echo "adding, commiting, pushing"
git add --all
git commit -m "updating cam's project"
git push -u origin master
| Ronmantech/portf | cam/pusher.sh | Shell | gpl-3.0 | 144 |
#!/bin/sh
alias "fixdns"="echo 'nameserver 8.8.8.8' | sudo tee /etc/resolve.conf"
alias "rpi-serial"="screen /dev/ttyUSB0 115200"
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
ali... | wlmeng11/dotfiles | home/bin/alias.sh | Shell | gpl-3.0 | 1,281 |
#!/bin/bash
# Environment variables passed in from buildroot:
# BR2_CONFIG, HOST_DIR, STAGING_DIR, TARGET_DIR, BUILD_DIR, BINARIES_DIR and BASE_DIR.
echo "##############################################################################"
echo "## $0 "
echo "###############################################################... | NextThingCo/Gadget-OS | gadget/board/nextthing/common/scripts/post-image.sh | Shell | gpl-3.0 | 1,870 |
#!/bin/sh
set -e
rm -rf *.deb
VERSION=$1
# share
mkdir -p ./debian/usr/share/zjunet
cp ../../miscellaneous/* ./debian/usr/share/zjunet
cp ../../VERSION ./debian/usr/share/zjunet
# lib
mkdir -p ./debian/usr/lib/zjunet
cp ../../lib/*.sh ./debian/usr/lib/zjunet
# bin
install -m 755 -d ./debian/usr/bin
install -m 755 ... | QSCTech/zjunet | build/debian/build.sh | Shell | gpl-3.0 | 1,028 |
## save on box.com current results.
# to be done once a week
#!/bin/bash
src=/data/ethoscope_results/
dst_prefix=/mnt/box.com
dst_dir=gglab/shared/ethoscope_results
(
flock -x -w 10 200 || exit 1
umount $dst_prefix
mount $dst_prefix &&
echo "Starting backup" &&
rsync -ahWPv --stats --size-only --inplace $s... | gilestrolab/labscripts | workstation/archive_ethoscope_results.sh | Shell | gpl-3.0 | 415 |
#!/bin/bash -f
xv_path="/opt/Xilinx/Vivado/2016.2"
ExecStep()
{
"$@"
RETVAL=$?
if [ $RETVAL -ne 0 ]
then
exit $RETVAL
fi
}
ExecStep $xv_path/bin/xsim testbench_CORDIC_Arch3_behav -key {Behavioral:tb_CORDIC_Arch3_single:Functional:testbench_CORDIC_Arch3} -tclbatch testbench_CORDIC_Arch3.tcl -log simulate.log
| GSejas/Karatsuba_FPU | Resultados/CORDIC/CORDIC_Arch3_Vivado/CORDIC_Arch3_Vivado.sim/tb_CORDIC_Arch3_single/behav/simulate.sh | Shell | gpl-3.0 | 309 |
#!/bin/bash
EXG="../OpenHardwareExG/src"
SAMPLE=`date +"%Y%m%d.%H%M%S"`
# tee >(./plot_frames.pl) |
./devreader.sh |
$EXG/frame-parser.pl |
tee -a sample-${USER}-${SAMPLE}.csv |
./chan2-filter.pl |
./window.pl |
./plot_2chan.pl
| OpenElectronicsLab/eeg-mouse | src/stm.sh | Shell | gpl-3.0 | 231 |
#!/bin/bash
#===========================================================================================
# Copyright (C) 2017 Nafiu Shaibu.
# Purpose: VM creations menu
#-------------------------------------------------------------------------------------------
# This is is free software; you can redistribute it and/o... | nshaibu/QBox | QBox/dialog_ui/qbox_new_vm_menu.sh | Shell | gpl-3.0 | 8,164 |
#!/bin/bash
source '../dbconfig.sh'
mysql $DBUSER bt < 206_fix_countries.sql
mysql $DBUSER bt < 206_fix_countries_manual.sql | GolemMediaGmbH/OfficeTemperatureData | 02_geochecks/206_fixcountries.sh | Shell | gpl-3.0 | 126 |
#!/bin/sh
#!/bin/sh
# graudit svnhook example by Wireghoul, uses PHP ruleset
REPOSITORY=$1
REVISION=$2
/usr/local/bin/svnlook diff -r $REVISION $REPOSITORY | \
graudit -d php /dev/stdin | \
ansi2html.sh | \
mail -e -s "[graudit report] rev$REVISION - $REPOSITORY" root@domain.com
| wireghoul/graudit | misc/svnhook.sh | Shell | gpl-3.0 | 280 |
#!/bin/bash
# Author: Maria.
# Date & Time: 2016-02-05 15:57:57
# Description: Please Edit here.
echo "please enter three number:"
read -p "the first number is :" n1
read -p "the second number is:" n2
read -p "the third number is:" n3
let MAX=$n1
if [ $n2 -ge $n1 ]; then
MAX=$n2
fi
if [ $n3 -ge $MAX ]; then
... | marry100/shell | bj3.sh | Shell | gpl-3.0 | 367 |
#!/bin/bash
# Tests for all the shell functions needed by iptables-optimizer
# 2015-01-16
# Johannes Hubertz
#
export TRUE=0
export FALSE=1
# default value for logging
VERBLOG=0
CASUAL=/tmp/opti-tests-iptables-optimizer-tests.tmp-log
IP6=""
[ `basename $0` == "ip6tables-optimizer-tests.sh" ] && IP6="6"
# fake LOG f... | sl0/opti | iptables-optimizer-tests.sh | Shell | gpl-3.0 | 7,381 |
#!/bin/bash
echo "export default quizImgs = {"
for img in *.jpg; do
echo " \"$img\": require('./imgs/quiz/$img'),"
done
echo " version: '140331'"
echo "};"
| qiwenmin/HamExam | genjs.sh | Shell | gpl-3.0 | 164 |
#!/bin/bash
# Copyright (c) 2021 SUSE Software Solutions Germany GmbH. All rights reserved.
#
# This file is part of kiwi.
#
# kiwi 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... | dirkmueller/kiwi | kiwi/config/functions.sh | Shell | gpl-3.0 | 28,992 |
#!/bin/bash
date=`date +%H:%M`
# Variables for script
#--------------------------------
#Server(s) to sync or copy
serverto=( [1]="backup@sync.253.int" [2]="backup@sync2.253.int" [3]="backup@vcsinus.waw253.int" )
#echo ${serverto[@]}
logfname=saa_backups_full.log
# Logfile logic
function logging {
mkdir -p /cy... | wizardvtd/scripts | saa/rsync_saa_eja_mfa_db/saa_backups_full.sh | Shell | gpl-3.0 | 7,469 |
#!/bin/sh
echo ---------------download ffmpeg--------------------
/bin/ls -d ffmpeg_src && { echo ffmpeg_src already exist; exit 0; }
/bin/ls -d ffmpeg-2.1.tar.bz2 || { wget http://www.ffmpeg.org/releases/ffmpeg-2.1.tar.bz2 || exit 1; }
tar -xvjf ffmpeg-2.1.tar.bz2 || exit 1
mv ffmpeg-2.1 ffmpeg_src || exit 1
echo --... | sankaryg/sji-android-screen-capture | src/2_download_ffmpeg.sh | Shell | gpl-3.0 | 689 |
#!/bin/sh
dropdb caclr || exit 1
cd $(dirname $0) || exit 2
createdb -E UTF8 caclr
# Create db structure
psql -d caclr -f postgresql.sql
# Fill her up!
psql -d caclr -f import_caclr.sql | grischard/csventrifuge | extra/caclr/import_caclr.sh | Shell | gpl-3.0 | 190 |
#!/bin/sh
tar cf - FHEM fhem.cfg fhem.pl log startfhem* www |
gzip -3 > backup/backup-`date -I`.tar.gz
echo backup done
exit 0
| joergps/SmartLogistics | fhem/contrib/FB7270/backup.sh | Shell | agpl-3.0 | 128 |
#!/bin/bash
usage() {
echo "Usage: ${0##*/} <version> <src_zip_url>
Downloads and packs extplorer.
"
exit 1
}
[ -z "$1" -o -z "$2" ] && usage
version="$1"
tar_ball_url="$2"
pkg_name="extplorer"
self_bin=$(readlink -e "$0")
if [ $? -ne 0 ]; then
echo "Error: unable to determine self path" 1>&2
exit 1
fi
... | devpanel/serverlink | src/packages/extplorer/pack.sh | Shell | agpl-3.0 | 1,270 |
#!/bin/sh
GOOS=${1:-linux}
GOARCH=${2:-amd64}
GOOSARCH="${GOOS}_${GOARCH}"
cwd=`pwd`
cmd=${3:-"build"}
case "$cmd" in
build)
find examples -name \*.go | while read pathname; do
gopt=""
case "$pathname" in
*types_${GOOS}.go) continue;;
*ztypes_${GOOSARCH}.go) continue;;
esac
cd `dirname ... | chamaken/cgolmnl | samples.sh | Shell | lgpl-2.1 | 614 |
#!/bin/sh
./configure -qt-sparql-endpoint -qt-sparql-tracker -qt-sparql-tracker_direct
qmake CONFIG+=coverage
make || exit 1
make check || exit 1
tracker-control -r > /dev/null
tracker-import tests/auto/qsparql_tracker/testdata_tracker.ttl
tests/auto/qsparql_tracker/tst_qsparql_tracker || exit 1
tracker-control -r ... | dudochkin-victor/libqtsparql | coverage-tests-in-sb.sh | Shell | lgpl-2.1 | 959 |
#!/bin/bash
sudo gpasswd -a $USER lp
| frafra/serveurlibre | tools/stampa/configura_stampante.sh | Shell | lgpl-3.0 | 38 |
#!/bin/sh
LAIK_BACKEND=mpi ${MPIEXEC-mpiexec} -n 1 ../../examples/markov 20 4 > test-markov-20-4-mpi-1.out
cmp test-markov-20-4-mpi-1.out "$(dirname -- "${0}")/../test-markov-20-4.expected"
| envelope-project/laik | tests/mpi/test-markov-20-4-mpi-1.sh | Shell | lgpl-3.0 | 190 |
#!/bin/bash
directory="/media/HDD/Data/Backups/Daily"
month=$(date '+%Y-%m')
for folder in $(ls "$directory/")
do
if [ -d "$directory/$folder/$month" ]
then
echo $folder
rdiff-backup --list-increments "$directory/$folder/$month" | grep -v '^Found' | grep -v '^Current'
echo
echo... | ReekenX/backup-bash | show-increments.bash | Shell | lgpl-3.0 | 333 |
#!/bin/bash
# Õâ¸ö¼òµ¥µÄ½Å±¾¿ÉÒÔ°ÑÎļþÖÐËùÓеĿÕÐÐɾ³ý.
# û×ö²ÎÊý¼ì²é.
#
# Äã»òÐíÏëÌí¼ÓÈçÏ´úÂë:
#
# E_NOARGS=65
# if [ -z "$1" ]
# then
# echo "Usage: `basename $0` target-file"
# exit $E_NOARGS
# fi
# Õâ¸ö½Å±¾µ÷ÓÃÆðÀ´µÄЧ¹û,
# µÈ¼ÛÓÚ´ÓÃüÁîÐÐÉϵ÷ÓÃ:
# sed -e '/^$/d' filename.
sed -e /^$/d "$1"
# '-e'Òâζ... | liruiqiu/tlpi | sh/sh/ex3.sh | Shell | lgpl-3.0 | 656 |
#!/bin/bash
pylint --version
pylint --rcfile=pylint.rc setup.py planner
| chrisspen/planner | pep8.sh | Shell | lgpl-3.0 | 72 |
#!/bin/sh
/etc/init.d/hobbit start & 2>1;
supervisord -n
| sillkongen/docker-hobbit | start.sh | Shell | unlicense | 58 |
#!/bin/bash
if [[ "$OSTYPE" == "linux-gnu" ]]; then
command -v docker >/dev/null 2>&1 || { echo >&2 "Script requires docker but it's not installed. Aborting."; exit 1; }
DOCKER_IP="localhost"
elif [[ "$OSTYPE" == "darwin"* ]]; then
command -v docker-machine >/dev/null 2>&1 || { echo >&2 "Script requires docker-... | dmitriy-svds/kafka-consumer-recovery | dev_setup.sh | Shell | apache-2.0 | 1,024 |
#!/bin/sh
# This is a generated file; do not edit or check into version control.
export "FLUTTER_ROOT=/Users/jbarr/personal-repos/flews/.flutter"
export "FLUTTER_APPLICATION_PATH=/Users/jbarr/personal-repos/flews"
export "FLUTTER_TARGET=lib/main.dart"
export "FLUTTER_BUILD_DIR=build"
export "SYMROOT=${SOURCE_ROOT}/../b... | jbarr21/flews | ios/Flutter/flutter_export_environment.sh | Shell | apache-2.0 | 556 |
#!/bin/bash
set -e
FIND_DIRS=${*:-"."}
find $FIND_DIRS -type f \( -name '*.po' -o -name '*.pot' \) -print0 | \
while read -r -d '' FILE; do
msgfmt --check-format -o /dev/null "$FILE"
done
| openstack/i18n | tools/check-po.sh | Shell | apache-2.0 | 193 |
#!/bin/sh
export TOPOLOGY_JAR="target/LearnStorm-0.0.1-SNAPSHOT.jar"
export STORM_CMD="/bin/storm" # HDP2.4.2
export TOPOLOGY_PACKAGE="com.pic.ala"
export TOPOLOGIES="ApLogGenerator ApLogAnalyzer LogAnalyzer"
for topology in $TOPOLOGIES
do
$STORM_CMD jar $TOPOLOGY_JAR ${TOPOLOGY_PACKAGE}.${topology}
done
| desp0916/LearnStorm | bin/deploy_topologies.sh | Shell | apache-2.0 | 313 |
#!/bin/bash
htpasswd -b -c /etc/nginx/pwd/.htpasswd ${MAIL_USER_NAME} ${MAIL_USER_PWD}
nginx -g "daemon off;" | servicecatalog/oscm-dockerbuild | oscm-proxy/start.sh | Shell | apache-2.0 | 109 |
#!/bin/sh
if [ -z $CF_ORG ]; then
CF_ORG="$BLUEMIX_ORG"
fi
if [ -z $CF_SPACE ]; then
CF_SPACE="$BLUEMIX_SPACE"
fi
if [ -z "$BLUEMIX_USER" ] || [ -z "$BLUEMIX_PASSWORD" ] || [ -z "$BLUEMIX_ACCOUNT" ]; then
echo "Define all required environment variables and rerun the stage."
exit 1
fi
echo "Deploy pods"
echo... | IBMCloudDevOps/bluemix-kubernetes-sample | bx_login.sh | Shell | apache-2.0 | 697 |
set -e
apt-get update
apt-get install -y build-essential cmake git libglfw3-dev
| unisparks/unisparks | extras/scripts/setup-devenv.sh | Shell | apache-2.0 | 80 |
#!/bin/sh
echo "SETUP 1"
echo "Script executed from: ${PWD}"
cd ~
echo "Now at: ${PWD}"
export LC_ALL=C
sudo apt-get --assume-yes install virtualenv
sudo apt-get --assume-yes install python-pip
#virtualenv
sudo virtualenv --system-site-packages ~/tensorflow
sudo source ~/tensorflow/bin/activate
#python data sci. lib... | migueldsw/TL-DA-TF | extras/setup1.sh | Shell | apache-2.0 | 2,130 |
#!/bin/bash
ACTIONS_DIR=../actions/
ACTION=etcd-get-state
PKG_NAME=etcd
WSK_CLI="bx wsk"
# this script needs to be executed from within scripts directory (where the script resides)
# create zipped action to access and update state in etcd
# etcd info
if [ -z "$ETCD_HOSTS" ]; then
echo Etcd hosts needs to be defin... | ioana-blue/dsaa17 | scripts/action-etcd-get-state.sh | Shell | apache-2.0 | 1,053 |
#!/bin/bash
# Copyright 2018 ARM Limited
#
# 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 or agreed ... | lisatn/workload-automation | wa/workloads/gmail/uiauto/build.sh | Shell | apache-2.0 | 1,723 |
#!/bin/bash
NDK=/home/shoh/android-ndk-r10e
SYSROOT=$NDK/platforms/android-21/arch-x86/
TOOLCHAIN=$NDK/toolchains/x86-4.9/prebuilt/linux-x86_64
function build_one
{
./configure \
--prefix=$PREFIX \
--extra-cflags="-Os -fpic -I./libx264/include" \
--extra-ldflags=-L./libx264/lib \
--disable-asm \
--enable-gpl... | odol0503/ffmpeg_for_android_build_script | build_ffmpeg_android_for_x86.sh | Shell | apache-2.0 | 824 |
#!/bin/sh
MAX=100
for i in $(seq 1 $MAX)
do
ID="SAMPLE-"$(printf "%05d" "$i");
NO=$(printf "%d" "$i");
QUERY="INSERT INTO SAMPLE VALUES('"${ID}"','*','제목"#${NO}"','내용-"${NO}"','Y','eGov');"
echo $QUERY
done
IDS="INSERT INTO IDS VALUES('SAMPLE',"$(($MAX+1))");";
echo $IDS
| ezsimple/java | study/EGOVTEST/sql/sample_data.sh | Shell | apache-2.0 | 288 |
#!/bin/bash
JENKINS_HOST=<host:port>
curl -k -sSL "http://$JENKINS_HOST/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins" | perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)()(<\/\w+>)+/\1 \2\n/g'|sed 's/ /:/'
| rkhozinov/jenkins-jobs-lab | get_plugins.sh | Shell | apache-2.0 | 245 |
#!/bin/bash
sass --watch ./sass:.
| aaron235/SoundVane | static/styles/watcher.sh | Shell | apache-2.0 | 34 |
#!/bin/bash -e
# Copyright 2012-2014 Brno University of Technology (Author: Karel Vesely)
# Apache 2.0
# This example script trains a DNN on top of fMLLR features.
# The training is done in 3 stages,
#
# 1) RBM pre-training:
# in this unsupervised stage we train stack of RBMs,
# a good starting point for fra... | irrawaddy28/SBS-mul | run_dnn.sh | Shell | apache-2.0 | 4,228 |
#
# Copyright 2011-2021 Asakusa Framework Team.
#
# 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 or agr... | asakusafw/asakusafw-spark | assembly/src/main/dist/spark/libexec/validate-env.sh | Shell | apache-2.0 | 797 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.