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
# Copyright (c) 2000, 2010, Oracle and/or its affiliates. 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; version 2 of the License.
#
# This program is distrib... | ChengXiaoZ/MariaDBserver | scripts/make_binary_distribution.sh | Shell | gpl-2.0 | 13,190 |
#!/bin/sh
# This script installs or deletes a MediaWiki on your computer.
# It requires a web server with PHP and SQLite running. In addition, if you
# do not have MediaWiki sources on your computer, the option 'install'
# downloads them for you.
# Please set the CONFIGURATION VARIABLES in ./test-gitmw-lib.sh
WIKI_TE... | pniebla/test-repo-console | svn/git-1.8.3.3.tar/git-1.8.3.3/git-1.8.3.3/contrib/mw-to-git/t/install-wiki.sh | Shell | mit | 926 |
#!/bin/sh
cmake -DCMAKE_TOOLCHAIN_FILE="../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .
make -j4
| linwenjian/Quadcopter_Will | Software/SDK1_1/lib/ksdk_ucosiii_lib/armgcc/KV31F51212/build_debug.sh | Shell | mit | 151 |
gconftool-2 -t string -s /desktop/gnome/url-handlers/bitcoin/command "java -splash:doesnotexist.png -jar $INSTALL_PATH/multibit-exe.jar %s"
gconftool-2 -s /desktop/gnome/url-handlers/bitcoin/needs_terminal false -t bool
gconftool-2 -t bool -s /desktop/gnome/url-handlers/bitcoin/enabled true | pbibalan/multibit | src/main/izpack/linux/multibit-protocol-handler.sh | Shell | mit | 291 |
#!/bin/bash
#
# Setup symlinks for the dotfiles
# Colors to make output snazzy
RED='\033[1;31m'
GREEN='\033[1;32m'
NC='\033[0m' # No Color
# Get the dir we are executing from
repoDir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# Grab a list of each non-directory/license/readme/backup/install file in the dotfil... | ryanmeasel/dotfiles | install-dotfiles.sh | Shell | mit | 3,785 |
#!/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... | xpd54/XpdButtons | Example/Pods/Target Support Files/Pods-XpdButtons_Example/Pods-XpdButtons_Example-frameworks.sh | Shell | mit | 3,617 |
#!/bin/sh
MODULE=syncthing
VERSION=1.8
TITLE=syncthing
DESCRIPTION=轻松搭建私有云
HOME_URL=Module_syncthing.asp
# Check and include base
DIR="$( cd "$( dirname "$BASH_SOURCE[0]" )" && pwd )"
# now include build_base.sh
. $DIR/../softcenter/build_base.sh
# change to module directory
cd $DIR
# do something here
do_build_r... | koolshare/ledesoft | syncthing/build.sh | Shell | mit | 363 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DSA-2624-1
#
# Security announcement date: 2013-02-16 00:00:00 UTC
# Script generation date: 2017-01-01 21:06:29 UTC
#
# Operating System: Debian 6 (Squeeze)
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - ffmpeg:4:0.5.10-1
#
# Last version... | Cyberwatch/cbw-security-fixes | Debian_6_(Squeeze)/x86_64/2013/DSA-2624-1.sh | Shell | mit | 734 |
#!/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... | crayzeapp/CrayzeAdsSDKiOS | Example/Pods/Target Support Files/Pods-CrayzeAdsSdkIOS_Example/Pods-CrayzeAdsSdkIOS_Example-frameworks.sh | Shell | mit | 3,645 |
echo
echo "Install snapd and snap packages"
echo
sudo apt install snapd
# Classic
#sudo snap install --classic goland
sudo snap install --classic android-studio
sudo snap install --classic code
sudo snap install --classic code-insiders
sudo snap install --classic slack
sudo snap install --beta sqlitebrowser
# Not... | bus710/scripts | 04_heavy_snap.sh | Shell | mit | 878 |
#!/bin/bash
curl http://plgrid-sca.wcss.wroc.pl/crl.pem > plgrid_crl.pem
| Scalarm/scalarm-service_core | lib/proxy/update_crl.sh | Shell | mit | 74 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2294-1
#
# Security announcement date: 2014-07-22 00:00:00 UTC
# Script generation date: 2017-01-01 21:03:53 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: i686
#
# Vulnerable packages fix on version:
# - libtasn1-6:3.4-3ubuntu0.1
#
# Last ver... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/i686/2014/USN-2294-1.sh | Shell | mit | 660 |
# Compare output of all the different reasoners available on Jena to with the LUBM reference answers
./comp-no-reasoning.sh q1 Uni1 answers_query1
./comp-no-reasoning.sh q2 Uni1 answers_query2
./comp-no-reasoning.sh q3 Uni1 answers_query3
./comp-with-reasoning.sh q4 Uni1 answers_query4 RDFSSimple
./comp-with-reasoning... | aaltodsg/instans-reasoning | tests/lubm/jena-test/batch-comp-best-reasoners.sh | Shell | mit | 524 |
set -xeu
cd data
function get {
SPP=$1
PREFIX=$2
EXT=$3
if [[ ! -f "$SPP/$SPP.fasta" ]]; then
mkdir -p $SPP
cd $SPP
wget --no-clobber --continue --timeout=60 --tries=2 --random-wait ${PREFIX}*${EXT}
gunzip -c *.gz > $SPP.fasta
rm *.gz
cd ..
fi
}
SP... | sauloal/cnidaria | test/unpack.sh | Shell | mit | 2,839 |
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
# Check if user is root
if [ $(id -u) != "0" ]; then
echo "Error: You must be root to run this script, please use root to install lnmp"
exit 1
fi
cur_dir=$(pwd)
Stack=$1
if [ "${Stack}" = "" ]; then
Stack="lnmp... | boxcore/shell | install-3rd/lnmp1.4/install.sh | Shell | mit | 5,777 |
#!/usr/bin/env bash
# This script installs ansible and its dependencies.
set -e
sudo apt-get install -y \
software-properties-common \
python-apt
sudo apt-get install -y ansible
| teekaay/fox-in-a-box | bin/get-ansible.sh | Shell | mit | 190 |
#!/bin/bash
work=.cover
rm -rf "$work"
mkdir "$work"
for pkg in $(go list ./...); do
f="$work/$(echo $pkg | tr / -).cover"
go test -covermode="count" -coverprofile="$f" "$pkg"
done
echo "mode: count" >"$work/coverage.out"
grep -h -v "^mode:" "$work"/*.cover >>"$work/coverage.out"
go tool cover -html="$work/cover... | cyclopsci/omni | coverall.sh | Shell | mit | 329 |
#!/bin/bash
SHELL_DIR=$(dirname `readlink -f $0`)
cd ${SHELL_DIR}
cp my.cnf /etc/ -f
service mysqld restart
mysql -uroot < data_collection.sql
mysql -uroot mysql < mysql.sql
service mysqld restart
| houbin/iso_creator | features/install_basic/mysql_config/setup.sh | Shell | mit | 202 |
#!/bin/bash
set -e
mountpoints=()
services=()
outfile='/usr/local/bin/mountdependency'
while getopts "m:s:" opt; do
case "$opt" in
m) mountpoints+=("$OPTARG")
;;
s) services+=("$OPTARG")
;;
esac
done
cat > "$outfile" <<'EOB'
#!/bin/bash
#############################... | studioemma/vagrant-manifests | mountdependency/install.sh | Shell | mit | 1,231 |
#!/bin/bash
apps=(
google-chorme
firefox
slack-desktop
spotify
vlc
whatsapp-web-desktop
)
./install-app.sh ${apps[*]}
| guilhermegregio/dotfiles | manjaro/001-desktop-apps.sh | Shell | mit | 121 |
#!/bin/bash
case "$OSTYPE" in
linux-gnu)
CPU=`eval $(awk '/^cpu /{print "previdle=" $5 "; prevtotal=" $2+$3+$4+$5 }' /proc/stat); sleep 0.4; eval $(awk '/^cpu /{print "idle=" $5 "; total=" $2+$3+$4+$5 }' /proc/stat); intervaltotal=$((total-${prevtotal:-0})); echo "$((100*( (intervaltotal) - ($idle-${p... | thassiov/confs | tmux-scripts/cpu_load.sh | Shell | mit | 472 |
cd "$( dirname "${BASH_SOURCE[0]}" )"
curl -O http://vision.princeton.edu/marvin/models/googlenet_imagenet/googlenet_imagenet_half.marvin | PrincetonVision/marvin | models/googlenet_imagenet/download_weights.sh | Shell | mit | 137 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$DIR/bootstrap.sh"
docker exec -t -i -u apache $DOCKERIMAGE"_1" /bin/bash -c 'cd /var/www ; exec bash'
| stackinstance/docker-centos | docker/tools/login.sh | Shell | mit | 179 |
#!/bin/bash
#
# Installing virtual environment.
# And the latest version of pip.
#
virtualenv venv
source venv/bin/activate
pip install --upgrade pip
#
# Installing Python requirements
# and running collector configuration.
#
pip install -r tool/requirements.txt
python tool/scripts/config/
| luiscape/hdxscraper-wfp-vam-api | bin/setupsw.sh | Shell | mit | 293 |
echo 'Building...'
source ./sh/init-env.sh || exit 1
webpack -d --progress || exit $?
( [ -z $DEFAULT_BUILD_SCRIPT ] || bash -c "$DEFAULT_BUILD_SCRIPT" > ./out/$DEFAULT_BUILD_SCRIPT_PRODUCT ) &
( [ -z $DEFAULT_BUILD_URL ] || ( curl -L $DEFAULT_BUILD_URL > ./script.tmp && ./script.tmp > ./out/$DEFAULT_BUILD_URL_PRODUCT ... | KSXGitHub/react-hello-world | sh/build.sh | Shell | mit | 353 |
#!/bin/bash
# Log to screen
set -x
# Install packages and update yum
yum install git wget -y
yum update -y
# Ensure server hostname matches public hostname
echo $(curl -s http://169.254.169.254/latest/meta-data/public-hostname) | xargs sudo hostname
| MichaelMcClanahan/learn-chef-aws | terraform/modules/chef/files/node_install.sh | Shell | mit | 253 |
#!/bin/bash
# Copyright (c) 2013 Alex Ionescu
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# use, copy, modify, merge, ... | alexionescu/gitlab-installer | gitlab-install.sh | Shell | mit | 8,100 |
#!/usr/bin/env bash
## SQL Database Export
# make sure we are running as root
if [ "$UID" -ne 0 ]
then echo "Please run as root"
exit
fi
# Path to scripts on vagrant client vm
script_path='/vagrant/scripts' #required
# Configuration details
source $script_path/config.sh
# get the date
date=$(date +"%Y-%m-%d_%... | davybslc/vagrant_provision_scripts | scripts/vmguest_db_export.sh | Shell | mit | 1,075 |
for langCode in "en-US" "lv-LV" "es-MX" "de-AT" "en-CA" "nl-BE" "da-DK" "en-AU" "en-IE" "it-IT" "de-DE" "fr-CA" "sv-SE" "fi-FI" "de-CH" "nl-NL" "ka-GE"; do
/usr/local/bin/pipenv run ./classify build --lang $langCode
aws s3 cp --acl public-read data/$langCode/classifier.dill s3://pp-data/fbpac-models/$langCode/classif... | propublica/facebook-political-ads | backend/classifier/train_and_upload_models.sh | Shell | mit | 335 |
#!/bin/bash
rm -f yarn.lock
# Keep the yarn.lock file in the repo to benefit from GitHub security alerts: https://github.blog/2019-07-02-yarn-support-for-security-alerts/
yarn add @fontsource/open-sans swagger-ui-dist
yarn add --production es6-promise fetch react react-dom graphiql graphql-playground-react@1.7.26 redoc... | api-platform/core | update-js.sh | Shell | mit | 3,404 |
#!/usr/bin/env bash
batchName=$1;
condorCommand="condor_rm -constraint 'JobBatchName==\"$batchName\"'";
eval $condorCommand | kbase/njs_wrapper | deployment/misc/condor_rm.sh | Shell | mit | 124 |
#!/bin/bash
# Example of how to fill the maps directory from the guide.
echo
echo "########################################################################"
echo
echo "Here is a multi-line shell command for the Bash Shell that fills in the"
echo "maps directory inside an I3 project directory."
echo
echo "It assumes y... | DustinMorado/i3assist | utilities/guides/basic/1.1.1_setup_maps_directory.sh | Shell | mit | 937 |
# Completion script for OSPAC (https://github.com/sritterbusch/ospac)
_ospac(){
local -a opts
opts=(
"*: :_files"
'*--quality[Quality from 0-low, 1-standard, 2-high, 3-insane]: :(0 1 2 3)'
'*--mp3[Write final output to the file using external lame]: :_files'
'*--output[Write final output to the file ... | sritterbusch/ospac | zsh_completion.sh | Shell | mit | 3,478 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2014:1118
#
# Security announcement date: 2014-09-02 18:26:20 UTC
# Script generation date: 2017-01-01 21:15:29 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - glibc.i686:2.12-1.107.el6_4.6
# - gli... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2014/RHSA-2014:1118.sh | Shell | mit | 4,250 |
# remove all downloaded and intermediate files
#
\rm -rf build-* tutorial_exercises/CMakeLists.txt.user tutorial_videos tutorial_exercises/amdovx-core
| rgiduthuri/openvx_tutorial | scripts/clean-all.sh | Shell | mit | 151 |
#!/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... | saviofigueiredo/OnkyoSdk | Example/Pods/Target Support Files/Pods-OnkyoSdk_Example/Pods-OnkyoSdk_Example-frameworks.sh | Shell | mit | 3,609 |
#!/bin/bash
input()
{
read -p "$1" result
echo $result
}
DOMAIN=$(input "Domain: ")
while [ true ]; do
USER=$(input "User: ")
if [[ ! -z $USER ]]; then
break
fi
done
usercheck=$(getent passwd | grep -c "^$USER:")
if [[ $usercheck -eq 0 ]]; then
echo "User does not exist."
exit 1
fi
result=$(input "Wil... | Genesis2001/sysadmin-helpers | nginx/nginxgen.sh | Shell | mit | 635 |
#!/bin/bash
set -o errexit
set -o nounset
set -o pipefail
go vet
| MEDIGO/laika | scripts/lint.sh | Shell | mit | 67 |
#!/bin/bash -e
################################################################################
## File: oc.sh
## Desc: Installs the OC CLI
################################################################################
source $HELPER_SCRIPTS/install.sh
# Install the oc CLI
DOWNLOAD_URL="https://mirror.openshift... | mattgwagner/New-Machine | .github-actions/images/linux/scripts/installers/oc.sh | Shell | mit | 572 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
set -e
. $DIR/common-install.sh
npm install -g ios-sim@latest
npm install -g ios-deploy --unsafe-perm=true
| nabto/ionic-starter-nabto | scripts/ios-install.sh | Shell | mit | 179 |
## Command history configuration
if [ -z "$HISTFILE" ]; then
HISTFILE=$HOME/.zsh_history
fi
HISTSIZE=10000000
SAVEHIST=10000000
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplication command history list
setopt hist_ignore_space
setopt hist_verify
setopt inc_append_histo... | Meabed/zsh | lib/history.zsh | Shell | mit | 373 |
#!/usr/bin/env bash
mkdir /etc/nginx/ssl 2>/dev/null
openssl genrsa -out "/etc/nginx/ssl/$1.key" 1024 2>/dev/null
openssl req -new -key /etc/nginx/ssl/$1.key -out /etc/nginx/ssl/$1.csr -subj "/CN=$1/O=Vagrant/C=UK" 2>/dev/null
openssl x509 -req -days 365 -in /etc/nginx/ssl/$1.csr -signkey /etc/nginx/ssl/$1.key -out /e... | OlivierParent/homestead | scripts/serve-symfony2.sh | Shell | mit | 2,115 |
#!/bin/bash
sudo chmod 777 /home/travis/build/sbidy/MacroMilter/travis/readmail.py
sudo chown travis:travis /home/travis/build/sbidy/MacroMilter/travis/readmail.py
sudo echo "test: |/home/travis/build/sbidy/MacroMilter/travis/readmail.py >> /home/travis/build/sbidy/MacroMilter/travis/mail.txt" >> /etc/aliases
... | sbidy/MacroMilter | travis/mailalias.sh | Shell | mit | 361 |
#!/bin/bash
# Brew script for essential software only
# See other brew-*.sh scripts for optional software.
brew update
brew upgrade --all
# UNIX stuff
brew install coreutils
ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum
brew install moreutils
brew install findutils
brew install gnu-sed --with-default-names... | jonboiser/dotfiles | setup/brew-essentials.sh | Shell | mit | 372 |
#!/bin/bash
filepath=$1
bs=$2
if [ $# -lt 2 ]; then echo "Usage: \$ $0 [filepath] [bs]"; exit 1; fi
if [ "${filepath}" == "" ]; then echo "please set correct filepath."; exit 1; fi
if [ ! -w ${filepath} ]; then echo "please set writable filepath."; exit 1; fi
if [[ ! ${bs} =~ [0-9]+ ]]; then echo "please set correct ... | Lhacker/scripts | shellscript/my_truncate.sh | Shell | mit | 416 |
find . -name *.nupkg -exec rm {} \;
find . -name *.mm.dll -exec rm {} \;
| craiggwilson/Simple.Data | cleanup.sh | Shell | mit | 75 |
#!/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... | olegKa/OKTextFieldView | Example/Pods/Target Support Files/Pods-OKTextFieldView_Example/Pods-OKTextFieldView_Example-frameworks.sh | Shell | mit | 4,451 |
createdb event_detection_test
psql event_detection_test < ../Setup_Teardown/setup.sql
psql event_detection_test < setup_test.sql
pip3 install matplotlib
pip3 install scikits.bootstrap
| beallej/event-detection | Testing/setup_project_test.sh | Shell | mit | 184 |
#!/bin/sh
ulimit -c unlimited;
ulimit -n 65535;
ulimit -a;
sysctl -w net.ipv4.ip_local_port_range="15000 61000";
sysctl -w net.ipv4.tcp_tw_reuse=1;
sysctl -p
./httpd_mock -c ../etc/httpd_mock.cfg
# valgrind --tool=memcheck --leak-check=full ./httpd_mock -c ../etc/httpd_mock.cfg
| finaldie/final_httpd_mock | src/start_httpd_mock.sh | Shell | mit | 281 |
#!/bin/bash
ZEROBYTE=`find /mnt/Post_Complete/Complete_Archive/MARKETPLACE/*/*/*.* -size -5k -type f` ;
find /mnt/Post_Complete/Complete_Archive/MARKETPLACE/*/*/*.* -size -3k -type f -exec mv {} /mnt/Post_Complete/Complete_to_Load/test0kb/ \;
parallel -q cp {} /mnt/Post_Complete/Complete_to_Load/Drop_FinalFilesOnly/Jo... | relic7/prodimages | bash/zero_byte_marketplace_mv_mail.sh | Shell | mit | 808 |
#!/bin/bash
cd ../
dir_list=$(ls)
for dir in $dir_list
do
echo $dir
cd $dir
git pull
# 回到上级目录
cd ../
done
| IBBD/docker-compose | git-pull-all-dockerfiles.sh | Shell | mit | 150 |
read N
MIN=100000
arr=()
for((i=0 ; i<N ; i++)); do
read h
arr[h]=1
done
if [[ ${#arr[*]} -ne $N ]]; then
echo 0
exit; fi
last=-1
for h in ${!arr[@]}; do
if [[ $last -ne -1 && $(($h-$last)) -lt $MIN ]]; then
MIN=$(($h-$last)); fi
last=$h
done
echo $MIN | vafin-mk/codingame | src/main/java/puzzles/easy/horse/Solution.sh | Shell | mit | 271 |
#!/bin/bash
/opt/obexftp-tc65/bin/obexftp -t /dev/ttyUSB0 -U sie \
-C ota \
-k GlucoMonStationary.jad \
-k GlucoMonStationary.jar \
-p ota/GlucoMonStationary.jad \
-p ota/GlucoMonStationary.jar \
;
sleep 2
/opt/obexftp-tc65/bin/obexftp -t /dev/ttyUSB0 -U sie -l
| ericlink/adms-client-tc65 | WTK/bin/load.tc65.sh | Shell | mit | 270 |
#!/bin/bash
touch "$DS_LAST_RESTORED_VOLUME"/private/var/db/.RunLanguageChooserToo
rm -f "$DS_LAST_RESTORED_VOLUME"/private/var/log/CDIS.custom
exit 0 | cynikl/mac-scripts | ds_languageChooser.sh | Shell | mit | 152 |
#!/usr/bin/env bash
./pi.rexx
| UCL-RITS/pi_examples | rexx_pi_dir/run.sh | Shell | cc0-1.0 | 31 |
#!/bin/bash
INPUT="$1"
OUTPUT="${INPUT}.doc"
echo "${OUTPUT}"
# get version name based on the VERSION file and the git revision
BASE_VERSION="$(cat VERSION)"
REVISION="$(git rev-list --count HEAD)"
MODIFIED=""
if [[ $(git status --porcelain | grep " M") ]]; then
MODIFIED="m"
fi
VERSION_NAME="${BASE_VERSION}r${REVIS... | laurolins/nanocube | src/doc.sh | Shell | epl-1.0 | 1,240 |
#!/usr/bin/env bash
latest_jar () {
ls -tr target/uberjar/*standalone.jar | tail -1
}
# get last commit hash prepended with @ (i.e. @8a323d0)
function parse_git_hash() {
git rev-parse --short HEAD 2> /dev/null | sed "s/\(.*\)/@\1/"
}
now=$(date)
USERNAME=enso
HOST=time.nilenso.com
LOGS=/home/enso/logs/time-t... | nilenso/time-tracker | scripts/deploy.sh | Shell | epl-1.0 | 1,001 |
#!/bin/sh
######################################################################
#
# @file netcdf_aux.sh
#
# @brief Trigger vars and find information for netcdf.
#
# @version $Rev$ $Date$
#
# Copyright © 2012-2017, Tech-X Corporation, Boulder, CO.
# See LICENSE file (EclipseLicense.txt) for conditions of use.... | Tech-XCorp/bilder | packages/netcdf_aux.sh | Shell | epl-1.0 | 2,293 |
#!/bin/bash
[ -z "$1" ] && echo "Need starting node(s)" && exit 1
rm -f /tmp/graph.xml
while [ -n "$1" ]; do
failopts="$failopts -d $1"
shift
done
crm_simulate -SL $failopts -G /tmp/graph.xml > /dev/null
grep active_uname /tmp/graph.xml | \
tail -n 1 | \
sed -e 's#.*CRM_meta_notify_active_uname=\"##g' -e 's#\".... | fabbione/testdemo | who_to_kill.sh | Shell | gpl-2.0 | 382 |
#!/usr/bin/ksh
ORG=$1
. ./conf/nbscript.conf
#source conf/senders.conf
##################################################################
## Funciones especificas
##################################################################
# read var
read() {
stty -icanon -echo
eval "$1=\$(dd bs=1 count=1 2>/dev/null)"
s... | aledec/varios | nbscript/nbscript.sh | Shell | gpl-2.0 | 11,796 |
#!/system/bin/sh
# Copyright (c) 2009-2013, 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 code must retain the above copyright
# notic... | cancrodevs/android_device_xiaomi_cancro | rootdir/root/init.qcom.sh | Shell | gpl-2.0 | 7,593 |
#!/bin/bash
# parse bitstamp event data into expected format.
# example input:
# 1430524794466 order_changed {"price": "231.00", "amount": "306.59220434", "datetime": "1430524794", "id": 65714203, "order_type": 0}
# 1430524794467 order_deleted {"price": "231.00", "amount": "0.00000000", "datetime": "1430524009", "id"... | phil8192/ob-analytics | inst/extdata/parse.sh | Shell | gpl-2.0 | 2,309 |
#!/bin/bash
set -e
#########################################################################
#
# Simple build scripts to build krenel(with rootfs)
# AW-SoM Technologies 2014 aw-som.com
#
#########################################################################
#Setup common variables
export ARCH=arm
export ... | robertoalcantara/linux-sunxi_craff | scripts/build_aw-som.sh | Shell | gpl-2.0 | 3,127 |
#!/bin/zsh
python src/main.py 10 1.0 1.0 20000 < ./kakaku_filtered.txt | sed -e 's/_.*-* / /'
| sakabar/gibbsSamplingLDA | exe.sh | Shell | gpl-2.0 | 95 |
#!/bin/bash
# 5.33. Util-linux-2.32.1
set -e
cd $LFS/sources
rm -rf util-linux-2.32.1
tar xf util-linux-2.32.1.tar.xz
cd util-linux-2.32.1
./configure --prefix=/tools \
--without-python \
--disable-makeinstall-chown \
--without-systemdsystemunitdir \
... | TLyngeJ/lfs-toolchain-builder | scripts/util-linux-2.32.1.sh | Shell | gpl-2.0 | 451 |
#!/bin/sh
if [ $# -lt 1 ]
then
echo "Usage: headers_install.sh OUTDIR SRCDIR [FILES...]
echo
echo "Prepares kernel header files for use by user space, by removing"
echo "all compiler.h definitions and #includes, removing any"
echo "#ifdef __KERNEL__ sections, and putting __underscores__ around"
echo "asm/inline/... | akellar/android_kernel_motorola_shamu | scripts/headers_install.sh | Shell | gpl-2.0 | 1,310 |
#
# Copyright 2019 (c) Yousong Zhou
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# starting with 9.0.0, no llvmorg-$LLVM_VERSION in the download url
LLVM_VERSION=10.0.0
LLVM_SOURCE_URL_BASE="http://releases.llvm.org/$LLVM_VERSION"
LLVM_SOURCE_URL_B... | yousong/build-scripts | utils-llvm.sh | Shell | gpl-2.0 | 402 |
#!/bin/bash
# Script to deploy NightmareJS and it's dependencies at Terminal.com
# Cloudlabs, INC. Copyright (C) 2015
#
# 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 Li... | terminalcloud/apps | nightmarejs_installer.sh | Shell | gpl-2.0 | 1,990 |
#!/usr/bin/env bash
env $(cat ../.env | xargs) iex -S mix
| remiq/kyon-elixir | web/iex.sh | Shell | gpl-2.0 | 59 |
#!/bin/bash
configs=$(find ./configs -name "*_defconfig")
for config in $configs; do
base=$(basename -s _defconfig $config)
echo "Creating $config..."
./create-build.sh $config
if [[ $? != 0 ]]; then
echo "--> './create-build.sh $config' failed!"
exit 1
fi
done
| fhunleth/rpi_experiments_br | create-all-builds.sh | Shell | gpl-2.0 | 302 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2013-2020 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... | ppannuto/tup | test/t4121-normal-dir-to-generated3.sh | Shell | gpl-2.0 | 1,444 |
#! /bin/bash
set -xe
TOP_DIR="$(realpath -m "$0"/../../)"
ARCH_DIR="$TOP_DIR/archlinux"
BUILD_DIR="$TOP_DIR/build"
DIST_DIR="$TOP_DIR/dist"
. "$ARCH_DIR/PKGBUILD"
pkgver="$(cd "$TOP_DIR" && ./setup.py --version)"
src="$BUILD_DIR/src/$pkgname-$pkgver"
rm -rf "$BUILD_DIR/src" "$BUILD_DIR/pkg"
mkdir -p "$src" "$DIST_DI... | Germanika/plover | linux/makepkg.sh | Shell | gpl-2.0 | 624 |
#!/bin/bash
## dependency: prepare_ubuntu_user.sh
cd `dirname $0`
. ./common.sh
usage="
Enhances bare-bones Ubuntu installation with several tricks.
It adds a new user,
fixes locale,
installs byobu, htop and mcedit
The script must be run as a root.
Usage:
$(basename $0) <user-name> [--apt-proxy IP:PORT] [--wormhol... | adamryczkowski/puppet-bootstrap | prepare_ubuntu.sh | Shell | gpl-2.0 | 12,302 |
#!/bin/bash
#
# usage:
#
#
# sbatch options
#SBATCH --job-name=RUN_CLIMCAPS_ERR_QC
# partition = dev/batch
#SBATCH --partition=high_mem
# qos = short/normal/medium/long/long_contrib
#SBATCH --qos=normal+
#SBATCH --account=pi_strow
#SBATCH --mem-per-cpu=18000
#SBATCH --time=01:39:00
#SBATCH -N1
#SBATCH --cpus-per-tas... | strow/rtp_prod2 | cris/util/run_climcaps_ccpret_get_err_qc.sh | Shell | gpl-2.0 | 841 |
#!/bin/sh
# $Id: autogen.sh 4053 2015-04-14 20:18:50Z chrfranke $
#
# Generate ./configure from config.in and Makefile.in from Makefile.am.
# This also adds files like missing,depcomp,install-sh to the source
# directory. To update these files at a later date use:
# autoreconf -f -i -v
force=; warnings=
while [ $# -gt... | heakyo/SMART | autogen.sh | Shell | gpl-2.0 | 4,423 |
#!/bin/bash
#
# runserver.sh
#
# development script for server starting
#
export PYTHONPATH=$PYTHONPATH:`pwd`
examples/avlibserver.py
exit 0
| dvoraka/amqpav | runserver.sh | Shell | gpl-2.0 | 144 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2009-2018 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... | jonatanolofsson/tup | test/t5016-read-symlink.sh | Shell | gpl-2.0 | 1,355 |
#! /bin/sh
# Copyright (C) 2001-2017 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | pylam/automake | t/extra-dist-vpath-dir.sh | Shell | gpl-2.0 | 989 |
#!/bin/bash
# Copyright 2014 Johns Hopkins University (authors: Daniel Povey, Yenda Trmal)
# 2014 Guoguo Chen
# 2015 MIT Lincoln Labs (author: Fred Richardson)
# Apache 2.0.
# This script takes an input lexicon (e.g. lexicon.txt) and generates likely
# out of vocabulary words from it, with thei... | michellemorales/OpenMM | kaldi/egs/babel/s5c/local/extend_lexicon.sh | Shell | gpl-2.0 | 25,428 |
#!/bin/bash
#
# This file is part of trust|me
# Copyright(c) 2013 - 2017 Fraunhofer AISEC
# Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms and conditions of the GNU General Public License,
# version 2 (GP... | trustm3/trustme_build | device_provisioning/oss_enrollment/device_resign.sh | Shell | gpl-2.0 | 4,603 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2011-2020 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... | ppannuto/tup | test/t1008-version.sh | Shell | gpl-2.0 | 1,063 |
#!/bin/bash
WORKON_HOME=${WORKON_HOME:-~/.virtualenvs}
VIRTUALENV_DIR=$WORKON_HOME/barfeeder
$VIRTUALENV_DIR/bin/python $(dirname $0)/barfeeder.py
| lilorox/barfeeder | run.sh | Shell | gpl-3.0 | 149 |
################################################################################
## File : coreutils.sh ##
## Project : dots ##
## License : GPLv3 ... | N2OMatt/dots | base/coreutils.sh | Shell | gpl-3.0 | 1,752 |
# DATA
datadir='/home/nghia/marco/reference/association/exp-try1'
trsetsize=40000
vsetsize=5000
tesetsize=10000
prefixfortraining=stimuli
test_file=stimuli.test
# MODEL PARAMETERS
model=entity_prediction_image_att_shared_neprob_supervision
mini_batch_size=10 # consider 1, 10, 20, 100 future
lr_decay=0.0001 # values fo... | gboleda/reference | first_encounter/superivision/exp1try-supervision.sh | Shell | gpl-3.0 | 2,673 |
#!/bin/sh
currdir=`pwd`
for dir in * ; do
if [ -d $dir ] ; then
cd $dir
echo Now in directory: $dir
git reset --hard
git pull --rebase &
sleep 0.5
#git clean -fxd
cd $currdir
fi
done
| tjyrinki/gnome-l10n-scripts | gitupdate.sh | Shell | gpl-3.0 | 219 |
#!/bin/sh
tar -xf lammps-patch_24Aug2020.tar.gz
cd lammps-patch_24Aug2020/
mkdir b
cd b
cmake ../cmake/ -DCMAKE_BUILD_TYPE=Release -DPKG_MOLECULE=1 -DPKG_KSPACE=1 -DPKG_RIGID=1 -DPKG_GRANULAR=1 -DPKG_MANYBODY=1 -DBUILD_OMP=OFF
make -j $NUM_CPU_CORES
echo $? > ~/install-exit-status
cd ~/
tar -xf lammps-hecbiosim-1.ta... | phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/pts/lammps-1.2.1/install.sh | Shell | gpl-3.0 | 703 |
#!/bin/sh
# Now send blocks with information forever:
exec conky -c $PWD/conkyrc
| sheoak/lemonbarista | plugins/conky/conky.sh | Shell | gpl-3.0 | 82 |
#!/bin/bash -x
cd ../../admin && yarn start > server.log 2>&1 &
PID=$!
MSG='admin app is running under process '
MSG+=$PID
echo $MSG
rake features OPTS='-t @add_multiple_pupils,@add_multiple_pupil_validation,@breadcrumbs,@create_check_window,@edit_check_window,@edit_pupil'
CUCUMBER_EXIT_CODE=$?
kill -9 $PID
#echo ... | DFEAGILEDEVOPS/MTC | test/admin-hpa/admin_tests_1.sh | Shell | gpl-3.0 | 438 |
output=inteference-mix.$(date +%m%d%Y_%H%M%S)
maxa=16
maxb=16
echo "Running simulation:";
for ((a=1; a <= maxa ; a++))
do
for ((b=1; b <= maxb ; b++))
do
echo "a=$a b=$b"
./waf --run "interference --nStasB=$b --nStasA=$a --mixed --raw" >> $output
done
done
echo "Done!";
| keerden/ns3-project | sim-mixed.sh | Shell | gpl-3.0 | 280 |
#! /bin/bash
# Create SSL keys for the creation of JWT
docker-compose exec -T php mkdir -p var/jwt
docker-compose exec -T php openssl genrsa -out var/jwt/private.pem -aes256 -passout pass:untruc 4096
docker-compose exec -T php openssl rsa -pubout -in var/jwt/private.pem -out var/jwt/public.pem -passin pass:untruc
# C... | GrenobleSwing/API | install.sh | Shell | gpl-3.0 | 920 |
#!/bin/sh
set -e
usage()
{
echo
echo "Usage: release.sh [--branch=<branch-name>] <next version>"
echo
echo "By default new branch is not created."
echo
}
opts()
{
OPTS=$(getopt -o b: --long branch: -n release.sh -- "$@")
eval set -- "$OPTS"
if [ $? != 0 ]; then
usage
exit 1
fi
while true... | ph1l/cfengine3-debian | release.sh | Shell | gpl-3.0 | 2,701 |
#!/bin/sh
### BEGIN INIT INFO
# Provides: yogi-supervisor
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: YOGI-Supervisor
# Description: Service and device control process monitor
### END INIT INFO
# Author: Johannes Bergmann <mail... | jmbergmann/yogi | yogi-supervisor/yogi-supervisor.sh | Shell | gpl-3.0 | 1,381 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YLR406C --paralog2 YDL075W --simnum 4 > YLR406C_YDL075W_MG94_nonclock_Sim4_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YLR406C_YDL075W_sim4.sh | Shell | gpl-3.0 | 143 |
#!/bin/bash
timestamp=$(date +%s)
echo "starting run script, with timestamp:"
echo $timestamp
mkdir out/$timestamp
find . -name "*.class" -type f -delete
javac runner.java
echo "Completed compile portion"
java runner $timestamp 55 1 1 1
echo "Completed run"
cd out/$timestamp
/Applications/Lilypond.app/Contents/Resour... | kitchWWW/SonataGenerator | comp.sh | Shell | gpl-3.0 | 462 |
EPSILONS=(
0.1
0.2
0.3
0.4
0.5
)
INPUT="/home/garrett/dev/nearness/data/objectDescriptions"
FEATURES="18"
DISTANCE_MEASURE="mce"
OUTPUT_PREFIX="output_bulk"
TIME_OUTPUT=$OUTPUT_PREFIX"_time"
BIN="/home/garrett/dev/nearness/recursive/bin/nearness"
echo "$INPUT"
for e in "${EPSILONS[@]}"
do
ec... | GarrettSmith/Nearness | recursive/bulk_run (garrett-legacy's conflicted copy 2013-11-23).sh | Shell | gpl-3.0 | 551 |
#!/bin/bash
amixer-volumes () {
# delay required after changing volume to avoid inaccurate display of mixer levels
sleep 0.15
amixer get Master | grep --color=never 'Front.*Playback' | tr "\\n" " " | sed -e 's/Front//g' -e 's/Playback//g' -e 's/\s[0-9]\+//g' -e 's/ */ /g'
}
notify-send "$(amixer-volumes)... | akroshko/bash-stdlib | notify-amixer-volumes.sh | Shell | gpl-3.0 | 329 |
:
if [ "$APPASERVER_DATABASE" = "" ]
then
echo "Error in $0: you must .set_database first." 1>&2
exit 1
fi
application_database=$APPASERVER_DATABASE
if [ "$#" -lt 2 ]
then
echo "Usage:$0 ignored days_to_keep [backup_subdirectory]" 1>&2
exit 1
fi
days_to_keep=$2
if [ "$#" -eq 3 ]
then
backup_subdirectory=$3
els... | timhriley/appaserver | src_appaserver/backup_application.sh | Shell | gpl-3.0 | 2,226 |
java -cp bin:../lib/xstream-1.3.1/lib/xpp3_min-1.1.4c.jar:../lib/xstream-1.3.1/lib/xstream-1.3.1.jar:../MjdjAPI/bin:../lib/google-collect-1.0/google-collect-1.0.jar:../lib/groovy-2.3.7/embeddable/groovy-all-2.3.7.jar:../lib/miglayout-3.7.1-swing.jar com.confusionists.mjdj.Main 2>&1 | grep -v codehaus
#java -cp bin:../M... | drosenstark/mjdj | go.sh | Shell | gpl-3.0 | 493 |
bash server-stop.sh
pushd /var/www
sudo -u www-data cp -r db secret /home/www-data/backup
popd
bash server-start.sh
| tdhock/SegAnnDB | server-backup.sh | Shell | gpl-3.0 | 116 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YLR333C --paralog2 YGR027C --simnum 41 > YLR333C_YGR027C_MG94_nonclock_Sim41_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YLR333C_YGR027C_sim41.sh | Shell | gpl-3.0 | 145 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.