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/sh
##
# Copies the directories contained inside the user's Data directory
# into the application bundle.
##
srcDir=${SRCROOT}/../../../Data
dstDir=${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
# Parse argument.
case "${1}" in
"link" )
CP="ln -sf";;
"copy" )
CP="cp -rf";;
"echo... | LudoSapiens/Dev | Tools/IDE/Xcode/Script/CopyData.sh | Shell | mit | 697 |
#!/usr/bin/env bash
set -e
set -u
set -o pipefail
# Run all the tests
./tests/test-highway.sh
./tests/test-GRU.sh
./tests/test-BatchNorm.sh
./tests/test-dense_dropout_functional.sh
./tests/test-lstm_functional.sh
./tests/test-merge-graph.sh
./tests/test-time-distributed-dense.sh
./tests/test-gru-sequence.sh
./tests/c... | lwtnn/lwtnn | tests/test-runner.sh | Shell | mit | 474 |
#!/usr/bin/env bash
docker-compose down
docker rmi $(docker images -q) | onekit/rest-tutorial | clean.sh | Shell | mit | 70 |
#! /bin/bash
source ./install_helpers.sh ""
PKG_NAME="openssl"
PKG_INSTALLED_FILE="$SWEET_LOCAL_SOFTWARE_DST_DIR/lib/libssl.so"
PKG_URL_SRC="openssl-1.1.1.tar.gz"
config_setup
config_package $@
config_exec ./config --prefix=$SWEET_LOCAL_SOFTWARE_DST_DIR
config_make_default
if [ "${HOSTNAME:0:10}" != "mpp2-login" ];... | schreiberx/sweet | local_software/install_openssl.sh | Shell | mit | 457 |
#!/bin/bash
curl -X POST -H "Content-Type: application/json" -d '{
"setting_type":"call_to_actions",
"thread_state":"new_thread",
"call_to_actions":[
{
"message":{
"text":"空虛、寂寞、覺得冷嗎?你可以跟我說說話喔>///<"
}
}
]
}' "https://graph.facebook.com/v2.6/libGF/thread_settings?access_token=`cat ac... | libGF/libGirlfriendFramework | welcome.sh | Shell | mit | 372 |
#!/bin/bash
#统计git提交代码量
for dir in qmzb qmzb-android h5 im-server push-server qmzb-api-docs qmzb-ios web-live web-login web-money web-shake lua qmzb-web-login;do
#yestaerday-time
years=`date -d "yesterday" +%Y`
mons=`date -d "yesterday" +%m`
days=`date -d "yesterday" +%d`
hears=`date -d "yesterday" +%H`
#today-time
ye... | gong-long/gong-long.github.io | chang用脚本/gitlab/count_git/count_git.sh | Shell | mit | 2,142 |
#!/bin/sh
SOURCEDIR=~/work/metis_projects/mcnulty_banking/d3
HTMLTARGETDIR=~/work/fdurant_github_io_source/_posts/projects/banking-project
OTHERHTMLTARGETDIR=~/work/fdurant_github_io_source/projects/banking-project
CSSTARGETDIR=~/work/fdurant_github_io_source/projects/banking-project
JSONTARGETDIR=~/work/fdurant_githu... | fdurant/fdurant_github_io_source | _posts/projects/banking-project/copy.sh | Shell | mit | 625 |
#! /bin/bash
source ./install_helpers.sh ""
PKG_NAME="MPICH"
PKG_INSTALLED_FILE="$SWEET_LOCAL_SOFTWARE_DST_DIR/bin/mpicc"
PKG_URL_SRC="mpich-3.3.2.tar.gz"
export FC=$F90
export FCFLAGS=$F90FLAGS
unset F90
unset F90FLAGS
config_setup
config_package $@
config_configure
config_make_default_install
config_success... | schreiberx/sweet | local_software/install_mpich.sh | Shell | mit | 321 |
#! /usr/local/bin/zsh
# first import the dataset
mongoimport --drop -d blog -c posts data/posts.f52bca51f2fb.json
| nmarley/mongo-univ-hw | week7/final4-load.sh | Shell | mit | 117 |
echo "Waiting for MySQL connection..."
sleep 15
echo "Executing Web Server..."
exec java -jar /home/seriescarpincho.jar
| erkike/daw | docker/web/wait.sh | Shell | mit | 120 |
# Source this file to run it in your shell:
#
# source internal/test.sh
#
# Any arguments passed will go directly to the tox command line, e.g.:
#
# source internal/test.sh -e py27
#
# Which would test just Python 2.7.
# We just want the name of the directory to pass to the Python
# script. So rmdir it, then l... | xguse/trenderbot | internal/test.sh | Shell | mit | 726 |
rosrun image_view image_view image:=/head_mount_kinect/rgb/image_color compressed
| djbutler/figleaf | scripts/image_view.sh | Shell | mit | 82 |
#!/bin/sh
qdbus de.naptower.Baulicht / addText "Morse" 3
qdbus de.naptower.Baulicht / addText "Licht" 3
qdbus de.naptower.Baulicht / start
| elnappo/Baulicht | Service/tests/test.sh | Shell | mit | 141 |
cd www/zalbee/kong
echo "badges = " > badges.tmp
wget -o wget.log -O - http://www.kongregate.com/badges.json >> badges.tmp && mv badges.tmp badges.js
| zAlbee/kong-graphs | updateBadges.sh | Shell | mit | 150 |
#!/bin/sh
cron -L15
rsyslogd
/bin/sh -c "/opt/activemq/bin/activemq console" | vulhub/vulhub | base/activemq/5.11.1/with-cron/entrypoint.sh | Shell | mit | 79 |
if [ ! -d ~/.workspaces ]; then
mkdir ~/.workspaces
fi
cp "workspace.sh" ~/.workspaces
cp "version" ~/.workspaces
cp "help" ~/.workspaces
if [ -f ~/.bashrc ]; then
echo "source ~/.workspaces/workspace.sh" >> ~/.bashrc
fi
if [ -f ~/.zshrc ]; then
if [ -d ~/.oh-my-zsh ]; then
cp -r workspace ~/.oh-my-zsh/plugins
fi... | Geweldig/Workman | install.sh | Shell | mit | 378 |
#!/bin/bash
function check_package_installed(){
if dpkg --get-selections | grep -q "^$1[[:space:]]*install$" >/dev/null; then
return 0
else
return 1
fi
}
package_to_check=ipvsadm
if check_package_installed $package_to_check; then
echo "$package_to_check is already installed"
else
ec... | nitinmidha/docker-swarm-mode-test | swarmtest/Scripts/setup-ipvsadm-nsenter.sh | Shell | mit | 598 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2899-1
#
# Security announcement date: 2014-04-09 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:53 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - openafs:1.6.1-3+deb7u2
#
# Last ver... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/x86_64/2014/DSA-2899-1.sh | Shell | mit | 634 |
#!/bin/bash
#SBATCH --partition=mono
#SBATCH --ntasks=1
#SBATCH --time=4-0:00
#SBATCH --mem-per-cpu=8000
#SBATCH -J Deep-DAE_MLP_7_bot_bin_DAE_tanh
#SBATCH -e Deep-DAE_MLP_7_bot_bin_DAE_tanh.err.txt
#SBATCH -o Deep-DAE_MLP_7_bot_bin_DAE_tanh.out.txt
source /etc/profile.modules
module load gcc
module load matlab
cd ~... | aciditeam/matlab-ts | jobs/deepJobs_DAE_MLP_7_bot_bin_DAE_tanh.sh | Shell | mit | 629 |
#! /bin/bash
pushd reveal.js
grunt css-themes
popd
cp -rf reveal.js/css static/reveal.js/
cp -rf reveal.js/js static/reveal.js/
cp -rf reveal.js/lib static/reveal.js/
cp -rf reveal.js/plugin static/reveal.js/
| asimonet/website | update_css.sh | Shell | cc0-1.0 | 211 |
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: target/pkgdist/build.sh
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or mod... | arete/t2 | target/share/pkgdist/build.sh | Shell | gpl-2.0 | 1,062 |
#!/bin/sh
# Copyright (C) 2012 Glen Pitt-Pladdy
#
# 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 is d... | casep/isc_coding | trakautomation/cacti-apache/apache-stats.sh | Shell | gpl-2.0 | 2,295 |
#!/bin/bash
# Script to find your public MAC address.
# v1.1 - Modified to use /sbin/ip and nothing else
# David Cantrell 8/31/2008
# v1.0 - Initial script (mymac.sh)
#
# Copyright (C) 2008 James Bair <james.d.bair@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the term... | tsuehpsyde/misc | bash/getmac.sh | Shell | gpl-2.0 | 1,813 |
#!/bin/bash
################################################################################
# Constantes de base
# definition, si ce n'est pas une variable d'environnement, du time-out
if [ -z "$MAXTIME" ] ; then
MAXTIME="30"
fi
if [ -z "$SSHP" ] ; then
SSHP="2222"
fi
# if [ -z "$PROCESSOR" ] ; then
# MAXTIME... | cesaro/cunf-mcc2014 | ToolSubmissionKit/launch_a_command.sh | Shell | gpl-2.0 | 1,981 |
#!/usr/bin/env bash
#
# Author: Kim Hallén <kim.hallen@gmail.com>
#
# iptables.sh generates iptables rules for a standalone server.
# By default only SSH is allowed on port 22. Modifications to
# script can be used by changing the variables under the
# "Dynamic script variables" section". Both IPv4 and IPv6 is
# taken ... | telnetmaster/mixed-space | bash/iptables.sh | Shell | gpl-2.0 | 14,270 |
#!/bin/bash
../../pm3 -c "script run testembedded_grab.py" -i
| samyk/proxmark3 | client/experimental_client_with_swig/02b_run_test_py_grabber.sh | Shell | gpl-2.0 | 63 |
#!/bin/sh
#LD_LIBRARY_PATH=../../../libpisock/.libs gdb --args python pisocktests.py $*
LD_LIBRARY_PATH=../../../libpisock/.libs python pisocktests.py $*
| unwiredben/pilot-link | bindings/Python/test/run.sh | Shell | gpl-2.0 | 157 |
#!/bin/sh
project=`oraccopt`
if [ "$project" == "" ]; then
echo otf2odt.sh: must be run from a project directory
exit 1
fi
driverpath=$1
if [ "$driverpath" == "" ]; then
if [ -r 00lib/project.otf ]; then
driverpath=00lib/project.otf
else
echo otf2odt.sh: no .otf file given on command line and no 00lib... | oracc/oracc | misc/otf/otf2odt.sh | Shell | gpl-2.0 | 1,828 |
#!/bin/bash
if [ ${#4} -lt 1 ]; then
/bin/echo "msa2prf.sh <protnamefile> <fastadir> <msadir> <outdir>"
exit
fi
####### hard coded directories and progs###########
modhmmblastdir=modhmmblast
################################################
workingdir=`/bin/mktemp -d $TMPPATH/run_msa2prf_XXXXXXXXXX` || exit ... | ElofssonLab/TOPCONS2 | topcons2_webserver/workflow/modhmmblast/msa2prf.sh | Shell | gpl-2.0 | 985 |
#!/bin/sh
# Include config to find out OpenWRT trunk revision
. ../../config.mk
# Package name, taken as current folder name
PKG_NAME="${PWD##*/}"
#Make sure package index is exists!
[ -f ../.packages_path.mk ] || $(cd .. && ./index_scan.rb > /dev/null)
# Path to package, taken from .package_path.mk. It will be so... | zyxmon/qnapware | packages/fix-path.sh | Shell | gpl-2.0 | 1,648 |
#! /bin/sh
# Copyright (C) 2011-2013 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 ... | GavinSmith0123/automake-amplain | t/tap-fancy2.sh | Shell | gpl-2.0 | 3,459 |
#!/bin/sh
# Copyright (C) 2008-2013 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public L... | shehbazj/DyRe | test/shell/lvmcache-exercise.sh | Shell | gpl-2.0 | 1,057 |
#!/usr/bin/env bash
sudo -v
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
# sane standby
sudo pmset -a standbydelay 86400
#sound off
sudo nvram SystemAudioVolume=" "
# green highlight
defaults write NSGlobalDomain AppleHighlightColor -string "0.764700 0.976500 0.568600"
#save dial... | chrishewlings/Projects | bash/fuckoff_osx.sh | Shell | gpl-2.0 | 7,312 |
#!/bin/sh
targetname=backups.local
tid=$(cat /proc/net/iet/volume | grep $targetname | awk '{print $1}' | cut -d : -f 2)
sudo blockdev --setrw $1
sudo ietadm --op new --lun=0 --tid=$tid --params Path=$1,Type=fileio,IOMode=wb
| TimJDFletcher/personal-scripts | bin/iscsi-export.sh | Shell | gpl-2.0 | 225 |
#!/usr/bin/env bash
cd module
string="Button_Plot_Photograph=Attach Photograph"
replacement="Button_Plot_Photograph=Plot Photograph"
perl -0777 -i.original -pe "s/\\Q$string/$replacement/igs" english.0.properties
string="Button_Marker_Photograph=Attach Photograph"
replacement="Button_Marker_Photograph=Marker Photogr... | FAIMS/gravestones | postproc.sh | Shell | gpl-2.0 | 626 |
defaults write com.apple.spotlight orderedItems -array \
'{"enabled" = 1;"name" = "APPLICATIONS";}' \
'{"enabled" = 1;"name" = "SYSTEM_PREFS";}' \
'{"enabled" = 1;"name" = "DIRECTORIES";}' \
'{"enabled" = 1;"name" = "PDF";}' \
'{"enabled" = 1;"name" = "FONTS";}' \
'{"enabled" = 0;"name" = "DOCUMENTS";}' \
... | erikdejonge/devenv | osxhacker.sh | Shell | gpl-2.0 | 4,424 |
#!/bin/bash
#Function:卸载不必要的配置文件
#说明:请以root 运行
date
echo "正在清除......"
sudo dpkg -l|grep "^rc"|awk '{print $2}' |xargs aptitude -y purge
sudo apt-get autoremove
sudo apt-get clean
echo "残留的配置文件已清除!"
| pengshp/shell_script | remove_purge.sh | Shell | gpl-2.0 | 262 |
#!/bin/bash
EMAIL=$1
PASSWD=$2
URL=http://localhost:1337/soapbox/
SRV_RESPONSE=$(curl -s --compressed $URL"nothing/user/authenticateUser?email="$EMAIL"&password="$PASSWD)
IN=$SRV_RESPONSE
ARRIN=(${IN//>/ })
USERID=${ARRIN[2]}
USERID=${USERID//[^0-9]/}
TOKEN=${ARRIN[4]}
TOKEN=${TOKEN//[^0-9]/}
echo SRV: $SR... | nilzao/soapbox-race | launcher.sh | Shell | gpl-2.0 | 490 |
#!/bin/bash
header "Changeset"
# synchronize repo to load the packages
#test_success "repo synchronize" repo synchronize --id="$REPO_ID"
test_success "product synchronize" product synchronize --org="$TEST_ORG" --name="$FEWUPS_PRODUCT"
# testing changesets
CS_NAME="changeset_$RAND"
CS_NAME_2="changeset_2_$RAND"
CS_NA... | iNecas/katello | scripts/system-test/cli_tests/changeset.sh | Shell | gpl-2.0 | 3,590 |
#!/bin/bash
set -e
cd ../../mdm
make clean
make ubuntu-8.04
cp packages/*.deb ../compiled/ubuntu-8.04/
cd ../extra-modes/xephyr-gdm/
make clean
make ubuntu-8.04
cp packages/*.deb ../../compiled/ubuntu-8.04/
cd ../../dependencies/ubuntu-8.04/
| freedesktop-unofficial-mirror/xorg__app__mdm | compiled/ubuntu-8.04/update.sh | Shell | gpl-2.0 | 246 |
BEGIN {
printf "Bill for the 4-March-2001.\n"
printf "By Vivek G Gite.\n"
printf "----------------------------------------\n"
}
{
total = $3 * $4
recno = $1
item = $2
gtotal += total
#printf "%d %s Rs.%f\n", recno, item, total
printf "%2d %-10s Rs.%7.2f\n", recno, item, total
}
END... | Furzoom/demo-C | src/shell/awk_user_defined_variables_5.sh | Shell | gpl-2.0 | 520 |
#!/bin/bash
ADDRESS=`echo $1 | sed 's/mailto://'`
/opt/google/chrome/google-chrome "https://mail.google.com/mail?view=cm&tf=0&to=$ADDRESS"
| casep/Molido | mailto.sh | Shell | gpl-2.0 | 140 |
VBoxManage controlvm FTFSTest poweroff
| oscarlab/betrfs | buildbot/masterftfs/poweroff.sh | Shell | gpl-2.0 | 39 |
#!/bin/bash
source ./test_DATA.sh
source ./test_ffmpeg.sh
source ./test_H264AVCEncoderLibTestStatic.sh
source ./test_wget.sh
VIDEO=coastguard_352x288x30x420x300
PICTURES=33
Y_DIM=288
X_DIM=352
FPS=30
MAX_Q_SCALE=50
GOP_SIZE=32
if [[ ! -e $DATA/$VIDEO.yuv ]]; then
current_dir=$PWD
cd $DATA
wget http://www... | vicente-gonzalez-ruiz/QSVC | trunk/tests/RD-H264SVC-SQCGS-coastguard_352x288x30x420x300.sh | Shell | gpl-2.0 | 730 |
#!/bin/bash
if [ ! -f /etc/httpd/ssl/server.key ]; then
mkdir -p /etc/httpd/ssl
KEY=/etc/httpd/ssl/server.key
DOMAIN=$(hostname)
export PASSPHRASE=$(cat /dev/urandom | tr -cd 'a-f0-9' | head -c 16)
SUBJ="
C=US
ST=Texas
O=University of Texas
localityName=Austin
commonName=$DOMAIN
... | milhomem/controller | backend/docker/docker_entrypoint.sh | Shell | gpl-2.0 | 2,016 |
#!/usr/bin/sh
CWD=`dirname $0`
source ${CWD}/../conf/galera-tools.conf
source ${CWD}/../lib/*
#write_to_log ${LOGFILE} "the script is working" ${INFO}
exit 0
| giuse-to/galera-tools | bin/run-cluster.sh | Shell | gpl-3.0 | 162 |
#!/bin/bash -e
. ../env/env
brief="A GTK+ module that bridges ATK to D-Bus at-spi"
intro="
The At-Spi2 Atk package contains a library that bridges ATK to At-Spi2 D-Bus
service.
"
depends="at-spi2-core (>= 2.32.1), atk (>= 2.32.0)"
depends_for_compile=""
version=2.32.0
srcfil=at-spi2-atk-$version.tar.xz
srcdir=at-s... | fangxinmiao/projects | Architeture/OS/Linux/Distributions/LFS/build-scripts/blfs-9.0-systemd/scripts/a/at-spi2-atk.sh | Shell | gpl-3.0 | 764 |
#!/bin/bash
# to get rid of MSDOS format do this to this file: sudo sed -i s/\\r//g ./filename
# or, open in nano, control-o and then then alt-M a few times to toggle msdos format off and then save
# updated the list of installed gear so this works if we also use it : https://github.com/DeadSix27/python_cross_compile_... | hydra3333/ffmpeg-windows-build-helpers-withOpenCL | archive/rm-v10-min.sh | Shell | gpl-3.0 | 3,875 |
#!/bin/bash
source $HOME/.local/share/AppInstall/components/helpers/colors.sh
echo -e "$green Installing... $close_color" &&
sudo apt install -y ubuntu-restricted-extras vlc unace unrar zip unzip p7zip-full p7zip-rar sharutils rar &&
echo -e "$green Codecs successfully installed $close_color" | Wilfison/AppsInstall | components/extras.sh | Shell | gpl-3.0 | 296 |
#!/bin/bash
#
# Schedules a list of wordseg jobs on bash. Have a
# "./wordseg-bash.sh --help" to display help.
#
# author: Mathieu Bernard <mathieu.a.bernard@inria.fr>
# import functions defined in functions.sh
. $(dirname $0)/functions.sh
# sbatch is the job launcher for SLURM
backend="bash"
# run a job with bas... | bootphon/wordseg | tools/wordseg-bash.sh | Shell | gpl-3.0 | 538 |
#Que a podcast file and open in using https://github.com/mpv-player/mpv
terminator --new-tab -x "mpv `cat ~/.newsbeuter/queue` --fs"
cat /dev/null > ~/.newsbeuter/queue
| diskotechjam/newsbeuter-scripts | mpv.pod.sh | Shell | gpl-3.0 | 169 |
#!/bin/sh
test_perms /etc/shadow 000
| Taywee/dod-stig-scripts | linux/V-38504/test.sh | Shell | gpl-3.0 | 39 |
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$(readlink -f "$0")")/.."
if [ ! -f "build/compile_commands.json" ]; then
echo "Expected a compile_commands.json in build folder.
Check that it is generated (-DCMAKE_EXPORT_COMPILE_COMMANDS=ON)" >&2
exit 1
fi
NAMES=(run-clang-tidy-8.py run-clang-tidy.py)... | Flamefire/s25client | tools/runClangTidy.sh | Shell | gpl-3.0 | 857 |
#!/usr/bin/env bash
# This script installs all dependencies needed to build DICOMautomaton starting with a minimal Ubuntu system.
set -eux
mkdir -pv /scratch_base
cd /scratch_base
export DEBIAN_FRONTEND="noninteractive"
apt-get update --yes
apt-get install --yes --no-install-recommends \
bash \
git \
cmake ... | hdclark/DICOMautomaton | docker/build_bases/ubuntu/implementation_ubuntu.sh | Shell | gpl-3.0 | 2,951 |
#!/bin/bash
# Syncs QR Code images in directory $1 to the remote webserver (via rsync). It
# generates a HTML file with information about the image, and keeps track of
# prevous/next image links.
[ -d "$1" ] || return 1
DIR="$1"
INDEX="$DIR/index.html"
IMAGES=(`ls $DIR/ | grep "[0-9].jpg$" | sort -n`)
FIRST=`basena... | jfjhh/QRScans | qr-sync.sh | Shell | gpl-3.0 | 3,018 |
# ffactor expands factored files according to an environment.
# Copyright (C) 2015 ia0
#
# 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 License, or
# (at your option) a... | ia0/ffactor | script/common.sh | Shell | gpl-3.0 | 1,004 |
#!/bin/bash
# montecarlo-font
if [ -n "$(pacman -Qs montecarlo-font)" ]; then
yay -s aur/montecarlo-font
else
continue
fi
# FiraCode
for type in Bold Light Medium Regular Retina; do
wget -O ~/.local/share/fonts/FiraCode-${type}.ttf \
"https://github.com/tonsky/FiraCode/blob/master/distr/ttf/FiraCode-$... | lemones/dotfiles | tools/fonts/install-fonts.sh | Shell | gpl-3.0 | 446 |
#!/bin/bash
# simulate a bad connection on the loopback interface for testing purposes.
#
# also check out `libfiu` (packages available in Ubuntu) which can simulate
# errors by injecting them into function calls themselves rather than
# interfering with the connection.
#
# examples:
# fiu-run -x -c 'enable name=posix... | mbway/Bayesian-Optimisation | tools/bad_connection.sh | Shell | gpl-3.0 | 1,910 |
#!/bin/bash
# SSAFD verification test V (van der Veen) regression test
PISM_PATH=$1
MPIEXEC=$2
MPIEXEC_COMMAND="$MPIEXEC -n 1"
PISM_SOURCE_DIR=$3
EXT=""
if [ $# -ge 4 ] && [ "$4" == "-python" ]
then
PYTHONEXEC=$5
MPIEXEC_COMMAND="$MPIEXEC_COMMAND $PYTHONEXEC"
PYTHONPATH=${PISM_PATH}/site-packages:${PYTHONPATH}
... | pism/pism | test/regression/ssa/ssa_test_cfbc_fem.sh | Shell | gpl-3.0 | 1,247 |
#!/bin/sh
#
# tsend_card.sh
# 20131030 -tm
#
# simulate Parallax card proximity transmission
#
#
# 1. open two windows in a current session, one will be Reader
# the other Writer
#
# 2. mknod tdev p # create a pipe device (1 time only)
#
# 3. invoke the tdev_read.sh in the Reader Window
... | bubbapizza/doorController | drivers/RPi/tsend_card.sh | Shell | gpl-3.0 | 1,369 |
#!/bin/bash
javac -d ../bin/update -cp ../lib:../bin CreateDB.java
jar cfe ../bin/Updates.jar CreateDB ../bin/update/*.class
| prasadtalasila/ISPView | src/install-update.bash | Shell | gpl-3.0 | 127 |
#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distributio... | goofwear/RetroPie-Setup | scriptmodules/ports/wolf4sdl.sh | Shell | gpl-3.0 | 2,755 |
#!/bin/bash
if [ -d "C:/cygwin64/home/streamcreed" ];then
xtreamcodes="ok"
wwwdir="C:/cygwin64/home/streamcreed/wwwdir"
crondir="cronstreamcreed"
user="nouser"
elif [ -d "/home/streamcreed" ];then
xtreamcodes="ok"
wwwdir="/home/streamcreed/wwwdir"
crondir="cronstreamcreed"
user="streamcreed"
fi
if [ -d "/home/xtreamcod... | andykimpe/euroiptv-epg-fr | updatechannel.sh | Shell | gpl-3.0 | 3,304 |
#KALMAN FILTER CONFIGURATION
DOMAINCONF=CORDOBA_2KBIS #Define a domain
LETKFNAMELIST=control #Define a letkf namelist template
MEMBER=60 #Number of ensemble members.
MAX_DOM=1 #Maximum number of WRF domains.
HOMEDIR=${HOME}
DATADIR=/home/jruiz/share
ANALYSIS=0 #Id... | gustfrontar/LETKF_WRF | wrf/run/configuration/forecast_conf/ensemble_forecast_spinup_grib_Hydra.sh | Shell | gpl-3.0 | 8,704 |
#!/bin/sh
cd $(dirname $0)
for i in `ls po/*.po`;do
echo "Compiling `echo $i|sed "s|po/||"`"
msgfmt $i -o `echo $i |sed "s/.po//"`.mo
done
intltool-merge po/ -d -u src/persistence-wizard.desktop.in src/persistence-wizard.desktop
intltool-merge po/ -d -u src/persistence-wizard-kde.desktop.in src/persistence-wizard-kde... | Salix-OS/persistence-wizard | compile.sh | Shell | gpl-3.0 | 329 |
#!/bin/sh
for page in *.wiki; do
./insert_page.sh $page
done
| ETegro/OpenSAN | wiki/insert_all.sh | Shell | gpl-3.0 | 63 |
#!/bin/bash
sleep 20
echo "Starting celery ..."
# cd /earkweb && celery multi start ingestqueue -A earkweb.celery --concurrency=4 -Ofair --pidfile=/data/celery_worker.pid --logfile=/data/celery_default_queue.log
# cd /earkweb && celery -A earkweb.celery worker --pool threads -Ofair --pidfile=/data/celery_worker.pid -... | eark-project/earkweb | run_celery.sh | Shell | gpl-3.0 | 471 |
echo "" > ../timer/tv | eastmaels/smarthome | web/scripts/cleartimers.sh | Shell | gpl-3.0 | 21 |
#!/bin/bash
########################################################################
# Author : Victor Mendez ( vmendez.tic@gmail.com )
########################################################################
# alternative to python script (remote run con Cernvm seems to fail on python call)
# contextualization script ... | myco/VMDIRAC | WorkloadManagementSystem/private/bootstrap/contextualize-script.bash | Shell | gpl-3.0 | 5,133 |
#!/bin/bash
tr -d 'x' < draws$1 | awk '
BEGIN {
sum=0
}
{
sum += $1
#print $1
}
END {
print sum
}
'
| richi235/pid_lotto | trivia/sum.sh | Shell | gpl-3.0 | 110 |
#!/bin/bash
zip="/tmp/rom_sf2.zip"
dir="/tmp/sf2"
rom="${dir}/ssf2t.zip"
mkdir -p "$dir"
if [ ! -f "/usr/games/mame" ]
then
sudo apt-get install mame -y
fi
wget -c "https://dl.dropbox.com/s/d1n98wb8p5gpj1w/sf2.zip?dl=0" -O "$zip"
unzip -o "$zip" -d "$dir"
rm "$zip"
mame "$rom" -rompath "$dir"
| metalx1000/MyBin | games/mame/street_fighter_2/sf2_deb.sh | Shell | gpl-3.0 | 301 |
#! /bin/bash
# kill the most memory intensive user process
# Check if all parameters are present
# If no, exit
if [ $# -ne 1 ]
then
echo
echo "usage :"
echo "$0 license_to_kill"
echo "This shellscript will kill the most memory intensive user process if license_to_kill!=0."
echo "Otherwise, it... | KIAaze/bin_and_dotfiles_public | bins/public_bin/killmaxmemprocess.sh | Shell | gpl-3.0 | 2,421 |
#!/bin/bash
CFENCODINGFILE=~/.CFUserTextEncoding
PROGNAME="$0"
case $# in
0)
echo -n 'Init '
cat ${CFENCODINGFILE}
echo
echo -n 'Env '
echo ${__CF_USER_TEXT_ENCODING}
exit 0
;;
*)
case $1 in
en) ENCODING='0:0' ;;
ja) ENCODING='1:14' ;;
*) echo "$PROGNAME: Unknown encoding" >&2; exit 1;;
esac
;;
esac
cas... | moriai/macutils | cfencoding.sh | Shell | gpl-3.0 | 501 |
#! /bin/sh
if [ -z "$1" ]; then
for l in "$(lsblk -o NAME,HOTPLUG,MODEL,SIZE -P -n -s)"; do
name="$(echo "$l" | awk '/NAME/ {printf $1}')"
name="${name%\"}"
echo "HHH $name HHH"
done
fi
| AntoninRousset/i3statusExtra | mountDevice.sh | Shell | gpl-3.0 | 191 |
JDK_VER=jdk1.8.0_40.jdk
rm -rf /Library/Java/JavaVirtualMachines/$JDK_VER
rm -rf /Library/PreferencePanes/JavaControlPanel.prefPane
rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
| junjiemars/kit | darwin/uninstall-jdk.sh | Shell | gpl-3.0 | 192 |
#!/bin/bash
num_nodes="${1:-0}"
scriptPATH=`realpath $0`
rootPATH=`dirname $scriptPATH`
echo "rootpath is : $rootPATH"
for i in $(seq 1 1 $num_nodes)
do
foldername="$rootPATH/NODE_$i/query/"
rm -rf $foldername
mkdir -p $foldername
queryfile="$rootPATH/query_$i.file"
mv $queryfile $foldername/
cp $rootPATH/s... | Mondego/SourcererCC | clone-detector/preparequery.sh | Shell | gpl-3.0 | 420 |
#!/bin/bash
sudo -i
dnf install MariaDB-server MariaDB-client
chkconfig mysql on
service mysql start
#'/usr/bin/mysqladmin' -u root password 'new-password'
#'/usr/bin/mysqladmin' -u root -h localhost.localdomain password 'new-password'
#'/usr/bin/mysql_secure_installation'
cp /etc/my.cnf{,.original}
cp /etc/my.cnf.... | oscm/shell | database/mariadb/server.sh | Shell | gpl-3.0 | 1,116 |
#!/usr/bin/env bash
set -e
DIR=$APACHE_ROOT
INI=$DIR/openformat.ini
INSTALL=$INI"_INSTALL"
cp $DIR/openformat.wsdl_INSTALL $DIR/openformat.wsdl
cp $DIR/robots.txt_INSTALL $DIR/robots.txt
############# temporary fix #################
# set aaa access to true -
# TODO get the ip adresses for whereever this is supposed... | DBCDK/OpenFormat-webservice | docker/www/config.sh | Shell | agpl-3.0 | 2,665 |
#!/bin/bash -e
. /etc/os-release
print_usage() {
echo "build_rpm.sh --rebuild-dep --target centos7 --reloc-pkg build/release/scylla-package.tar.gz"
echo " --dist create a public distribution rpm"
echo " --target target distribution in mock cfg name"
echo " --xtrace print command traces before execu... | avikivity/scylla | reloc/build_rpm.sh | Shell | agpl-3.0 | 2,315 |
#!/bin/bash
echo "Optimize Images"
find ./static/ -type f -name "*.png" -print -exec convert {} -strip {} \;
find ./static/ -type f -name "*.gif" -print -exec convert {} -strip {} \;
find ./static/ -type f -name "*.jpg" -print -exec convert {} -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace sRGB {... | brickfiestastem/brickfiesta | scripts/optimizeimages.sh | Shell | agpl-3.0 | 324 |
#!/bin/bash -e
# Set up vm
vagrant up kor.base
# Extract base box
vagrant package --base "kor.base"
# Re-import the box
vagrant box remove coneda/debian7.kor
vagrant box add package.box --name coneda/debian7.kor
# Save the box
mv package.box deploy/build.boxes/coneda_debian7.kor.box
# Tear down vm
vagrant destroy ... | anne-cecile/kor_annotorious | deploy/build-base.sh | Shell | agpl-3.0 | 332 |
#!/bin/bash
set -e
if [ "$1" = 'zammad' ]; then
echo -e "\n Starting services... \n"
# starting services
service postgresql start
service elasticsearch start
service postfix start
service memcached start
service redis-server start
service nginx start
# wait for postgres processe coming up
until ... | zammad/zammad-docker | docker-entrypoint.sh | Shell | agpl-3.0 | 1,029 |
source ./ci/env.sh
set -eu
export CARGO_HOME='/usr/local/cargo'
RUSTUP_VERSION=1.24.3
RUST_VERSION=$1
RUST_ARCH=$2
RUSTUP_URL=https://static.rust-lang.org/rustup/archive/$RUSTUP_VERSION/$RUST_ARCH/rustup-init
wget $RUSTUP_URL
chmod +x rustup-init;
./rustup-init -y --no-modify-path --profile minimal --default-toolch... | GNOME/librsvg | ci/install-rust.sh | Shell | lgpl-2.1 | 850 |
#!/bin/bash
#
echo `date` Running online remove command on hostname `hostname` >> /hostfs/upgradeInstallationRemoval.log
echo Arguments: >> /hostfs/upgradeInstallationRemoval.log
ARGS=$@
for ARG in $ARGS; do
echo $ARG >> /hostfs/upgradeInstallationRemoval.log
done
exit 0
| kenzaburo/OpenSaf-FrameWork | samples/smfsv/online_remove.sh | Shell | lgpl-2.1 | 279 |
/opt/pandora-sebt/scripts/pnd_make -p testsparrow.pnd -d . -x ./PXML.xml -i ./sparrow-icon.png
| theZiz/sparrow3d | build/pandora/make_package_pandora.sh | Shell | lgpl-2.1 | 95 |
#!/bin/sh -ex
$CEPH_TOOL mds tell 0 injectargs '--mds-bal-interval 0'
$CEPH_TOOL mds tell 1 injectargs '--mds-bal-interval 0'
$CEPH_TOOL mds tell 2 injectargs '--mds-bal-interval 0'
$CEPH_TOOL mds tell 3 injectargs '--mds-bal-interval 0'
#$CEPH_TOOL mds tell 4 injectargs '--mds-bal-interval 0'
mkdir -p ./a/a
mkdir -p... | ajnelson/ceph | qa/workunits/rename/prepare.sh | Shell | lgpl-2.1 | 604 |
#!/bin/bash
#set -e
echo " >> Migrating the database to the recent version"
su www-data -s /bin/bash -c "cd /var/www/html/ && make migrate"
echo " >> Reconfiguring the application to be running in TEST mode, erasing all data"
su www-data -s /bin/bash -c "cd /var/www/html/ && make _configure_ci_environment _erase_all... | Wolnosciowiec/file-repository | tests_entrypoint.sh | Shell | lgpl-3.0 | 673 |
#!/bin/sh
if [[ $1 == "on" ]]; then
pkill redshift
redshift -l 55.4:7.8 -t 5700:3000 -g 0.8 -m randr &
elif [[ $1 == "dark" ]]; then
pkill redshift
redshift -l 55.4:7.8 -t 5700:3000 -g 0.8 -b 0.7:0.7 -m randr &
elif [[ $1 == "off" ]]; then
redshift -x
pkill redshift
else
echo "Allowed inputs are 'on' and... | artemisclyde/dotfiles | scripts/rs.sh | Shell | lgpl-3.0 | 341 |
#!/usr/bin/env bash
#
# A script to build and run the Swarm development environment using Docker.
set -e
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
# DEFAULT_NAME is the default name for the Docker image and container
DEFAULT_NAME="swarm-dev"
usage() {
cat >&2 <<USAGE
usage: $0 [options]
Build and run the Swarm... | trust-tech/go-trustmachine | swarm/dev/run.sh | Shell | lgpl-3.0 | 1,813 |
#!/bin/bash
set -e
BRANCH="master"
ARCH=`/bin/uname -m`
if [ `whoami` != 'root' ]; then
echo "ERROR: must be run as root"
exit 0
fi
if [ $ARCH != 'x86_64' ]; then
echo "ERROR: must install on a 64-bit OS"
exit 0
fi
if [ -f /etc/lsb-release ]; then
. /etc/lsb-release
OS=$DISTRIB_ID
VER=$DISTRI... | aeppert/massive-octo-spice | hacking/platforms/easybutton_curl.sh | Shell | lgpl-3.0 | 1,217 |
udevadm control --reload-rule
udevadm trigger
upsdrvctl start
| ddemuro/raspberrypi | rootDir/etc/nut/restart.sh | Shell | unlicense | 62 |
#!/bin/sh
. /build/cleanup.sh
rm -rf /build/*-rethink.sh
| dajobe/docker | rethinkdb/cleanup-rethinkdb.sh | Shell | unlicense | 59 |
#!/bin/bash
# grab files from previous node project to start a new one
SRC=../node-dictionaries
mkdir -p doc config test/app app
cp $SRC/package.json $SRC/.npmignore $SRC/.gitignore $SRC/.jshint* \
$SRC/README.md $SRC/Gruntfile.js \
./
cp $SRC/config/pre-commit config/
cp $SRC/test/setup.js $SRC/test/.jshi... | bcowgill/simple-design | getpj.sh | Shell | unlicense | 337 |
#!/bin/sh
INDIR="$1"
OUTDIR="$2"
mkdir -p $OUTDIR
for typ in "train" "test" "val"
do
MINCNT=10000000
for file in $INDIR/*_$typ.txt
do
count=$(wc -l < $file)
if [ $MINCNT -gt $count ]
then
MINCNT=$count
fi
done
for infile in $INDIR/*_$typ.txt
do
echo "[$MINCNT lines] $infi... | abilng/Mtech-proj-scripts | Others/trimData.sh | Shell | apache-2.0 | 425 |
perl $HOME/bin/ensembl-vep/vep \
--species human \
--database \
--host mysql-ensembl-mirror \
--port 4240 \
--user ensro \
--dir /nfs/production/panda/ensembl/variation/data/VEP/ \
--input_file /hps/nobackup2/production/ensembl/anja/vep_data/input/regulatory_variant_id.txt \
--output_file /hps/nobackup2/production/en... | at7/work | vep/regulation/vep_regulation_94_mf_plugin.sh | Shell | apache-2.0 | 479 |
#!/bin/bash
instlog="/home/vagrant/install.log"
## Docker install
tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
echo "`date` yum repo for Docker was added" >> $in... | naotakeyoshida/scaleio2.0-rexray | scripts/rexray-tb.sh | Shell | apache-2.0 | 2,436 |
testJsonFiles=`find . -name "*.test.json"`
numFiles=`echo $testJsonFiles | wc -w`
echo "module.exports = [" > tests.js
i=1
for testJsonFile in $testJsonFiles;
do
testDir=`dirname $testJsonFile`
scFile=$testDir/`basename $testJsonFile .test.json`.sc.json
#alternatively, it could just be a regular module, ... | mattoshry/SCION-CORE | test/tests/generate-test-registry.sh | Shell | apache-2.0 | 752 |
#!/bin/bash
# Copyright 2017 AT&T Intellectual Property, Inc
#
# 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 applic... | blsaws/nancy | rancher/rancher-cluster.sh | Shell | apache-2.0 | 18,273 |
#!/bin/sh
# Copyright 2005-2017 ECMWF.
#
# This software is licensed under the terms of the Apache Licence Version 2.0
# which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
#
# In applying this licence, ECMWF does not waive the privileges and immunities granted to it by
# virtue of its status as an int... | 0x1mason/GribApi.XP | grib_api/examples/F90/grib_precision.sh | Shell | apache-2.0 | 510 |
#!/bin/bash
#
# 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 to in writing, software
# distri... | duckback00/dxapikit | API/jetstream_list_bookmarks.sh | Shell | apache-2.0 | 8,174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.