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
# Update requirements files and pre-commit hooks to current versions.
set -e
echo "🧱 Updating project"
poetry update
echo "🛠️ Updating pre-commit"
pre-commit autoupdate
echo "📖 Updating documentation"
pur -r docs/requirements.txt
echo "🎉 Successfully updated dependencies"
| roskakori/pygount | scripts/update_dependencies.sh | Shell | bsd-3-clause | 297 |
#!/bin/bash
# $WORKSPACE is set from jenkins.
# When running from project root manually, use:
# environment settings.
WORKSPACE=${WORKSPACE-`pwd`}
PYBIN=`which python2.7`
## PYTHONPATH
if [[ $1 == "local" ]]; then
export PYTHONPATH=$WORKSPACE:$OLD_PYTHONPATH
else
OLD_PYTHONPATH=$PYTHONPATH
export PYTHONPATH=$WOR... | yungyuc/solvcon | examples/linear/run_linear_cvg2d.sh | Shell | bsd-3-clause | 1,020 |
#!/usr/bin/bash
SCRIPTS_DIR=`dirname $0`
#Frequwntly changed
testDevice='PCI\VEN_XXXX&DEV_XXXX&SUBSYS_XXXXXXXX' #Format: PCI\VEN_XXXX&DEV_XXXX&SUBSYS_XXXXXXXX
projectName='TEST-PROJ'
cl1Name='CL1-2012R2X64'
cl2Name='CL2-2012R2X64'
#Occasionally changed
controllerIP='10.0.1.212'
winPasswd='PUT_YOUR_PASSWORD_HERE'
#... | daynix/VirtHCK | guest_tools/RemoteHCK/RemoteHCK.sh | Shell | bsd-3-clause | 2,235 |
#!/bin/bash
#**********************************************************************************
#
# This file is part of e-venement.
#
# e-venement 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... | ketch-li/e-venement-ketch | bin/migration-to-v210.sh | Shell | gpl-2.0 | 9,182 |
#!/bin/bash
wget \
--post-data 'user=admin@nanopay.net&password=adminAb1' \
http://localhost:8080/service/memory
| jacksonic/vjlofvhjfgm | src/foam/nanos/session/test/test_basic.sh | Shell | apache-2.0 | 121 |
#!/bin/sh
python translator.py --root-dir ..
| bkeiren/cef | tools/translator.sh | Shell | bsd-3-clause | 45 |
#!/bin/sh
# Copyright 2009-2012 Splunk, Inc.
#
# ... | excessivedemon/puppet-splunk | files/ta/Splunk_TA_nix/bin/ps.sh | Shell | mit | 3,860 |
#!/bin/sh
set -e
mkdir -p "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
install_resource()
{
case $1 in
*.storyboard)
echo "ibtool --reference-external-strings-file --errors --warnings --notices ... | bsantanas/MMMaterialDesignSpinner | Example/Pods/Target Support Files/Pods-Tests/Pods-Tests-resources.sh | Shell | mit | 4,032 |
#!/bin/bash
source ~/virtual-tf/bin/activate
echo "running python basic_operations.py from the aymericdamien-Examples folder"
echo ""
echo ""
python basic_operations.py
echo ""
echo "--------------------Done--------------------------"
| hpssjellis/forth-tensorflow | aymericdamien-Examples/examples/b02-rocksetta-basic_operations.sh | Shell | mit | 245 |
#!/bin/sh
java_app_dir=${JAVA_APP_DIR:-/app}
# Read in configurt if given
if [ -f "${java_app_dir}/setenv.sh" ]; then
. ${java_app_dir}/setenv.sh
fi
java_options="$JAVA_OPTIONS $(agent-bond-opts)"
if [ "x$JAVA_ENABLE_DEBUG" != "x" ]; then
debug_port=${JAVA_DEBUG_PORT}:-5005}
java_options="${java_options} ... | christian-posta/base-images | java/images/alpine/openjdk8/jre/run-java.sh | Shell | apache-2.0 | 1,836 |
#!/bin/bash
export RAILS_ENV=packaging
if [ "$HOSTNAME" = chorus-ci ]; then
export GPDB_HOST=chorus-gpdb-ci
export ORACLE_HOST=chorus-oracle
export HAWQ_HOST=chorus-gphd20-2
fi
. script/ci/setup.sh
. script/ci/install_python.sh
echo "checking for an alpine package"
if [[ $(ls vendor/alpine/*.sh 2> /dev/null | ... | prakash-alpine/chorus | script/ci/packaging.sh | Shell | apache-2.0 | 470 |
#!/bin/bash
DEPLOY_NAME=${1:-dmon}
for EXEC_ID in $(cfy executions list -d $DEPLOY_NAME | grep started | awk '{print $2}')
do
cfy executions cancel --execution-id $EXEC_ID
STATUS=$(cfy executions get -e $EXEC_ID | grep "| *$EXEC_ID" | awk '{print $6}')
while [ "$STATUS" != "cancelled" ]
do
sleep 3
STATUS=$(c... | igabriel85/IeAT-DICE-Repository | bootstrap/dw.sh | Shell | apache-2.0 | 530 |
#!/bin/bash
# Dump uuids and rdf type from the infoton table.
if [ -z $1 ]; then
echo "usage: $0 <cmwell-url>"
exit 1
fi
source ./set-runtime.sh
OUTPUT_FILE="infoton-uuid-rdf-type"
rm -rf "${OUTPUT_FILE}"
$SPARK_HOME/bin/spark-submit \
--conf "spark.driver.extraJavaOptions=-XX:+UseG1GC" \
--master "${SPARK_MA... | bryaakov/CM-Well | tools/dataConsistencyTool/cmwell-spark-analysis/src/scripts/dump-infoton-with-uuid-rdf-type.sh | Shell | apache-2.0 | 518 |
export PATH=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:${PATH}
export CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1
export LDFLAGS=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/usr/lib
export CPPFLAGS=-I/Developer/Platforms/iPhoneOS.plat... | tipbit/iOSPorts | build-aux/iOS-buildenv.sh | Shell | bsd-3-clause | 368 |
#!/bin/bash
FN="drosgenome1cdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.9/data/annotation/src/contrib/drosgenome1cdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/drosgenome1cdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-drosgenome1cdf/bioconductor-drosgenome1cd... | jfallmann/bioconda-recipes | recipes/bioconductor-drosgenome1cdf/post-link.sh | Shell | mit | 1,444 |
#!/bin/bash
FN="hgu95ccdf_2.18.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.9/data/annotation/src/contrib/hgu95ccdf_2.18.0.tar.gz"
"https://bioarchive.galaxyproject.org/hgu95ccdf_2.18.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-hgu95ccdf/bioconductor-hgu95ccdf_2.18.0_src_all.tar.gz"
... | jerowe/bioconda-recipes | recipes/bioconductor-hgu95ccdf/post-link.sh | Shell | mit | 1,409 |
#! /bin/sh
# Copyright (C) 2001-2015 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 ... | hika-server/automake | t/ccnoco3.sh | Shell | gpl-2.0 | 1,325 |
#!/bin/sh
hex=$(echo 993233 | xxd -r -p | base58 -d 25 || echo FAIL)
test "x${hex}" = "xFAIL"
| bitcoin/libbase58 | tests/decode-highbit-prefix.sh | Shell | mit | 94 |
#!/bin/sh
append DRIVERS "mac80211"
lookup_phy() {
[ -n "$phy" ] && {
[ -d /sys/class/ieee80211/$phy ] && return
}
local devpath
config_get devpath "$device" path
[ -n "$devpath" -a -d "/sys/devices/$devpath/ieee80211" ] && {
phy="$(ls /sys/devices/$devpath/ieee80211 | grep -m 1 phy)"
[ -n "$phy" ] && retu... | iceriverweng/openwrt-mt7620 | package/kernel/mac80211/files/lib/wifi/mac80211.sh | Shell | gpl-2.0 | 3,383 |
#!/bin/sh
# Ensure that "cp -Rf fifo E" unlinks E and retries.
# Up until coreutils-6.10.171, it would not.
# Copyright (C) 2008-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 ... | mmayer/coreutils | tests/cp/special-f.sh | Shell | gpl-3.0 | 1,063 |
#!/bin/bash
FN="BSgenome.Drerio.UCSC.danRer11_1.4.2.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/annotation/src/contrib/BSgenome.Drerio.UCSC.danRer11_1.4.2.tar.gz"
"https://bioarchive.galaxyproject.org/BSgenome.Drerio.UCSC.danRer11_1.4.2.tar.gz"
"https://depot.galaxyproject.org/software/bioconducto... | cokelaer/bioconda-recipes | recipes/bioconductor-bsgenome.drerio.ucsc.danrer11/post-link.sh | Shell | mit | 1,393 |
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0
# Library of helpers for test scripts.
set -e
DIR=/sys/devices/virtual/misc/test_firmware
PROC_CONFIG="/proc/config.gz"
TEST_DIR=$(dirname $0)
# Kselftest framework requirement - SKIP code is 4.
ksft_skip=4
print_reqs_exit()
{
echo "You must have the following enable... | Fe-Pi/linux | tools/testing/selftests/firmware/fw_lib.sh | Shell | gpl-2.0 | 4,438 |
#!/bin/bash
# Copyright 2012 Vassil Panayotov
# Apache 2.0
# NOTE: You will want to download the data set first, before executing this script.
# This can be done for example by:
# 1. Setting the DATA_ROOT variable to point to a directory with enough free
# space (at least 20-25GB currently (Feb 2... | saikrishnar/Forced-Alignment | Post_2/voxforge_XX/s5/run.sh | Shell | gpl-2.0 | 9,352 |
#!/bin/bash
# Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# 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 require... | tensorflow/tensorflow | tensorflow/tools/ci_build/rel/ubuntu_cuda114/gpu_py36_pip.sh | Shell | apache-2.0 | 2,280 |
#
#
# Copyright 2013 LinkedIn Corp. All rights reserved
#
# 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 ... | chosen0ne/databus | db/oracle/fwk/schema/ddl_con.sh | Shell | apache-2.0 | 1,043 |
#!/usr/bin/env bash
source="${BASH_SOURCE[0]}"
darcVersion=''
versionEndpoint='https://maestro-prod.westus2.cloudapp.azure.com/api/assets/darc-version?api-version=2019-01-16'
verbosity='minimal'
while [[ $# > 0 ]]; do
opt="$(echo "$1" | tr "[:upper:]" "[:lower:]")"
case "$opt" in
--darcversion)
darcVers... | dotnet/roslyn-analyzers | eng/common/darc-init.sh | Shell | mit | 2,444 |
#!/bin/bash
if [[ $(stat -c %U:%G /var/lib/cinder) != "cinder:kolla" ]]; then
sudo chown -R cinder:kolla /var/lib/cinder
fi
if [[ $(stat -c %a /var/lib/cinder) != "2775" ]]; then
sudo chmod 2775 /var/lib/cinder
fi
if [[ $(stat -c %U:%G /etc/iscsi) != "cinder:kolla" ]]; then
sudo chown -R cinder:kolla /etc/... | mrangana/kolla | docker/cinder/cinder-volume/extend_start.sh | Shell | apache-2.0 | 413 |
#!/bin/bash
#
# Copyright (C) CFEngine AS
#
# This file is part of CFEngine 3 - written and maintained by CFEngine AS.
#
# 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 3.
#
# This... | pasinskim/core | splint-check.sh | Shell | gpl-3.0 | 1,143 |
#
# Copyright (c) 2003, 2016, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Softwar... | FauxFaux/jdk9-jdk | test/java/lang/management/MemoryMXBean/PendingAllGC.sh | Shell | gpl-2.0 | 1,763 |
# Cross build profile for MIPS32 LE soft float.
XBPS_TARGET_ARCH="mipsel-musl"
XBPS_CROSS_TRIPLET="mipsel-linux-musl"
XBPS_CROSS_CFLAGS="-mtune=mips32r2 -mabi=32 -msoft-float"
XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
| eddyb/void-packages | common/cross-profiles/mipsel-musl.sh | Shell | bsd-2-clause | 218 |
#!/bin/bash
# Copyright 2015 gRPC authors.
#
# 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 t... | jboeuf/grpc | tools/run_tests/helper_scripts/pre_build_cmake.sh | Shell | apache-2.0 | 797 |
# A script that runs a traditional Chinese tokenizer on a text file with one
# sentence per line.
#
# Example usage:
# bazel build syntaxnet:parser_eval
# cat untokenized-sentences.txt |
# syntaxnet/models/parsey_universal/tokenize_zh.sh \
# $MODEL_DIRECTORY > output.conll
#
# The traditional Chinese model can ... | unnikrishnankgs/va | venv/lib/python3.5/site-packages/tensorflow/models/syntaxnet/syntaxnet/models/parsey_universal/tokenize_zh.sh | Shell | bsd-2-clause | 895 |
#!/bin/bash
# Copyright 2015, Google Inc.
# 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
# notice, this list of conditio... | zeliard/grpc | tools/gce_setup/private_build_and_test.sh | Shell | bsd-3-clause | 3,759 |
#!/bin/bash
if [ -f .veewee_params ]
then
. .veewee_params
fi
# Removing leftover leases and persistent rules
echo "cleaning up dhcp leases"
rm /var/lib/dhcp3/*
# Make sure Udev doesn't block our network
# http://6.ptmc.org/?p=164
echo "cleaning up udev rules"
rm /etc/udev/rules.d/70-persistent-net.rules
mkdir /et... | jedi4ever/veewee | templates/ubuntu-11.04-server-amd64/network-cleanup.sh | Shell | mit | 559 |
#!/bin/sh
# $Id$
cd `dirname $0`
cc -o exe2coff/exe2coff exe2coff/exe2coff.c || exit
cp $1 binary.exe || exit
./exe2coff/exe2coff binary.exe || exit
cat cwsdpmi/cwsdstub.exe binary > binary.exe || exit
mv binary.exe $1
rm binary exe2coff/exe2coff
| M3Henry/openttd | os/dos/make_dos_binary_selfcontained.sh | Shell | gpl-2.0 | 249 |
#!/bin/bash
#
# Runs all standard extended tests against either an existing cluster (TEST_ONLY=1)
# or a standard started server.
source "$(dirname "${BASH_SOURCE}")/../../hack/lib/init.sh"
source "${OS_ROOT}/test/extended/setup.sh"
os::test::extended::setup
os::test::extended::focus "$@"
exitstatus=0
# run parallel... | surajnarwade/kedge | vendor/github.com/openshift/origin/test/extended/core.sh | Shell | apache-2.0 | 851 |
#! /bin/sh
# $OpenLDAP: pkg/ldap/contrib/ldapc++/version.sh,v 1.1.2.1 2008/07/09 21:59:44 quanah Exp $
#
# Copyright 2008, OpenLDAP Foundation, All Rights Reserved.
# COPYING RESTRICTIONS APPLY, see COPYRIGHT file
DIR=`dirname $0`
. $DIR/version.var
echo OL_CPP_API_VERSION=$ol_cpp_api_current:$ol_cpp_api_revision:$ol_... | kapilrastogi/Impala | thirdparty/openldap-2.4.25/contrib/ldapc++/version.sh | Shell | apache-2.0 | 422 |
#!/bin/bash
# Copyright 2015 The Kubernetes Authors.
#
# 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 ... | anguslees/kubernetes | release/cut-official-release.sh | Shell | apache-2.0 | 11,219 |
#!/bin/bash
sed -i 's|host: .*|host: '"${DBHOST}"'|g' postgresql.yaml
sed -i 's|host: .*|host: '"${DBHOST}"'|g' mongodb.yaml
fw_depends dart nginx
pub upgrade
#
# start dart servers
#
current=9001
end=$(($current+$MAX_THREADS))
while [ $current -lt $end ]; do
dart server.dart -a 127.0.0.1 -p $current -d ${MAX_THR... | thousandsofthem/FrameworkBenchmarks | frameworks/Dart/stream/setup.sh | Shell | bsd-3-clause | 1,302 |
#!/bin/sh
#
# Copyright 2015, Daniel Axtens, IBM Corporation
#
# 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 distributed in the hope that it will... | zhiyisun/linux | tools/testing/selftests/powerpc/scripts/hmi.sh | Shell | gpl-2.0 | 2,805 |
#!/bin/sh
python setup.py docs
sleep 1
while inotifywait -qq -r -e modify -e create -e move -e delete \
--exclude '\.sw.?$|^_build' docs percolate
do
clear
python setup.py docs
sleep 1
done
| andsor/pypercolate | devtools/cdocs.sh | Shell | isc | 204 |
#!/bin/bash
DEBIAN_FRONTEND=noninteractive apt-get install -y $(cat /install/*packages | tr "\n" " ")
curl --progress-bar --max-time 60 --retry-max-time 60 --location --output dumb-init.deb https://github.com/Yelp/dumb-init/releases/download/v1.0.0/dumb-init_1.0.0_amd64.deb
dpkg --install dumb-init.deb
rm -rf dumb-in... | konstantinj/docker-php | install/packages.sh | Shell | mit | 513 |
# go to the out directory and create a *new* Git repo
cd prod
git init
# inside this git repo we'll pretend to be a new user
git config user.name "Travis CI"
git config user.email "tomas.trajan@gmail.com"
# The first and only commit to this new Git repo contains all the
# files present with the commit message "Deploy... | tomastrajan/complete-angular2-seed | .travis-deploy.sh | Shell | mit | 769 |
#!/usr/bin/env bash
set -e
[ "$DEBUG" == 'true' ] && set -x
# Apache MPM Tuning
export MPM_START=${MPM_START:-5}
export MPM_MINSPARE=${MPM_MINSPARE:-5}
export MPM_MAXSPARE=${MPM_MAXSPARE:-10}
export MPM_MAXWORKERS=${MPM_MAXWORKERS:-150}
export MPM_MAXCONNECTIONS=${MPM_CONNECTIONS:-0}
# SMTP
export SMTP_HOST=${SMTP_... | panubo/docker-apache-mvh | jessie/entry.sh | Shell | mit | 4,131 |
#!/bin/bash
trim()
{
trimmed=$1
trimmed=${trimmed%% }
trimmed=${trimmed## }
echo $trimmed
}
# declare BUILT_PRODUCTS_DIR CURRENT_ARCH OBJECT_FILE_DIR_normal SRCROOT OBJROOT
declare -r xctoolVars=$(xctool -showBuildSettings -workspace ../IMMSlackerClient.xcworkspace -scheme IMMSlackerClient | egrep '(... | DBugMode/Copy-Test | fastlane/coveralls.sh | Shell | mit | 1,160 |
#!/bin/bash
for port in 5001 5002 5003 5004
do
dendrite-node -host "127.0.0.1:$port" -nodes "127.0.0.1:5000" &
done
| fastfn/dendrite | create_cluster.sh | Shell | mit | 121 |
#!/bin/sh
cd `dirname $0`
export BASENAME=${PWD##*/}
export SCRIPTDIR=$PWD
export BUILDDIR=$PWD/build
/bin/sh $SCRIPTDIR/build.sh debug
echo "\nRunning unit tests...\n"
$BUILDDIR/bin/"zottests" "$@"
| manyoso/zot | runtests.sh | Shell | mit | 204 |
#!/bin/bash
set -eufo pipefail
# Options
qr=false
decode=
# Globals
tmpdir=
issuer=
account=
secret=
readonly otp_file=~/.otp
usage() {
cat <<EOS
usage: $0 [-q | -q IDENTIFIER] [-d IMAGE]
Copies a TOTP or HOTP code to the clipboard based on IDENTIFIER.
With -q, it produces a QR code of the secret as a PNG and... | mk12/scripts | otp.sh | Shell | mit | 4,711 |
#! /bin/bash
# http://glx-dock.org/
sudo add-apt-repository ppa:keepassx/daily
sudo apt-get update
sudo apt-get install keepassx
| locoesso/install | ubuntu/keepassx.sh | Shell | mit | 131 |
#/bin/bash
apt-get install vlc openshot x264 gimp
| rekurzia/computer | additional.sh | Shell | mit | 51 |
#!/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... | heilb1314/JWMediaManager | Example/Pods/Target Support Files/Pods-JWMediaManager_Example/Pods-JWMediaManager_Example-frameworks.sh | Shell | mit | 3,731 |
#!/bin/bash
set -e -x
pushd lolstats-staging
#bundle exec rspec
#bundle update
#bundle exec rake test
bin/rails test
popd
| kayemk/lolstats | ci/twb.sh | Shell | mit | 132 |
#!/usr/bin/env bash
# convert a list of urls to pdf files
WKtopdf=/usr/bin/wkhtmltopdf
Output=pdfs/
while read f; do
if [ ! -d ${Output} ]; then
mkdir -p ${Output}
fi
filename=$(echo ${f} | sed 's#.*/##g')
$WKtopdf -s Letter ${f} ${Output}${filename}.pdf
done < urls.txt
| niq000/urls_to_pdf | convert_urls.sh | Shell | mit | 286 |
output=$(curl -s -XPUT '192.168.0.204:9200/_cluster/settings?pretty' -H 'Content-Type: application/json' -d' { "transient": { "cluster.routing.allocation.enable": "all" } } ')
res=$(echo $output | grep '"acknowledged" : true')
if [ "$res" ] ; then
exit 0
fi
exit 1
| dnsanalytics/scripts | ansible/elasticsearch/rolling_upgrade_scripts/enable_routing_allocation.sh | Shell | mit | 270 |
#!/usr/bin/env bash
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd)
set -e
source "$DOTFILES_ROOT/utils.sh"
cask_install "karabiner-elements"
launchctl load -w /Library/LaunchAgents/org.pqrs.karabiner.karabiner_console_user_server.plist
success "Enabled and started karabiner"
| bss/dotfiles | karabiner-elements/install.sh | Shell | mit | 280 |
IGNORED_FILES=(. .. .git .gitignore)
for file in .*
do
if [[ "${IGNORED_FILES[@]}" =~ "${file} " || "${IGNORED_FILES[${#IGNORED_FILES[@]}-1]}" == "${file}" ]]; then
# whatever you want to do when arr contains value
echo "should not link $file"
else
link_from=$(pwd)/$file
link_to... | JaviLorbada/dotfiles | install.sh | Shell | mit | 1,017 |
function . {
if [[ $# -eq 0 ]]; then
reload
else
builtin . "$@"
fi
}
function reload {
echo "Reloading zsh profile" >&2
builtin . ~/.zshrc
} | sax/dotfiles | ohmyzsh/reload.zsh | Shell | mit | 173 |
if [[ ! -o interactive ]]; then
return
fi
compctl -K _goenv goenv
_goenv() {
local words completions
read -cA words
if [ "${#words}" -eq 2 ]; then
completions="$(goenv commands)"
else
completions="$(goenv completions ${words[2,-2]})"
fi
reply=(${(ps:\n:)completions})
}
| syndbg/goenv | completions/goenv.zsh | Shell | mit | 298 |
ghc-ios src/*.hs && cp -v ./*.a ./*_stub.h ../FlatReversi
| ysnrkdm/Hamlet | build.sh | Shell | mit | 58 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for DLA-547-1
#
# Security announcement date: 2016-07-11 00:00:00 UTC
# Script generation date: 2017-01-01 21:09:14 UTC
#
# Operating System: Debian 7 (Wheezy)
# Architecture: armv7l
#
# Vulnerable packages fix on version:
# - graphicsmagick:1.3.16-1.1+deb7u3
#
#... | Cyberwatch/cbw-security-fixes | Debian_7_(Wheezy)/armv7l/2016/DLA-547-1.sh | Shell | mit | 663 |
OPENSHIFT_OAUTH_REQUEST_HANDLERS=session,basicauth
OPENSHIFT_OAUTH_HANDLER=login
OPENSHIFT_OAUTH_PASSWORD_AUTH=htpasswd
OPENSHIFT_OAUTH_HTPASSWD_FILE=/etc/openshift-passwd
OPENSHIFT_OAUTH_ACCESS_TOKEN_MAX_AGE_SECONDS=172800
| docker-in-practice/openshift-origin-play | openshift-master-env.sh | Shell | mit | 224 |
#!/usr/bin/env bash
sass --watch ../../sass:public/stylesheets sass:public/stylesheets &
ruby -run -e httpd . -p5001
| stupakov/data-zoom-d3 | examples/react-example/server.sh | Shell | mit | 117 |
#!/bin/sh
set -e
DESTDIR="$1"
MSGFMT="${MSGFMT-msgfmt} -c"
get_all_langs()
{
for f in `ls locales/*.po` ; do
basename "$f" .po
done
}
lang_to_osx()
{
echo $1 | sed -e 's/zh_TW/zh-Hant/' \
| sed -e 's/zh_CN/zh-Hans/' \
| sed -e 's/@latin/-Latn/' \
| sed -e 's/... | laborautonomo/poedit | macosx/copy-translations.sh | Shell | mit | 1,142 |
#!/bin/sh
# Update Docker images
docker-compose pull
docker-compose build
# Update deps
docker-compose run php composer update
docker-compose run pwa /bin/sh -c 'yarn install && yarn upgrade'
# Update the Symfony skeleton
cd api
composer sync-recipes --force
# Hint the user to change APP_SECRET
sed -i.bak 's/^APP_S... | api-platform/demo | update-deps.sh | Shell | mit | 1,011 |
#!/bin/bash
#################################################
# Filename: run_start_stone.sh
# Author: jerry_0824
# Email: 63935127##qq.com
# Date: 2016-05-20
# Time: 15:14
# Version: v1.0.1
#################################################
STONE_SCRIPT_PATH=${HOME}/work_java/017_stone/web/script/sh
# s... | jerry-0824/017_stone | web/script/sh/shell_run_start_stone.sh | Shell | mit | 422 |
#!/bin/zsh
set -eu
# Usage: ./get_review_data_all_games.sh[ WAIT_TIME]
# WAIT_TIME: number of seconds to tell the program to sleep in between
# webpage requests (default: 30)
# Activate conda environment
source activate reviews
if [[ $# -eq 1 ]]; then
WAIT_TIME=30
else
WAIT_TIME=$2
fi
D... | mulhod/reviewer_experience_prediction | util/get_review_data_all_games.sh | Shell | mit | 812 |
#!/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... | MisterPear/CheckerboardView | Example/Pods/Target Support Files/Pods-CheckerboardView_Example/Pods-CheckerboardView_Example-frameworks.sh | Shell | mit | 3,739 |
#!/usr/bin/env bash
clean() {
rm -f $aux $aux2 $mods_setup1 $mods_setup2 $mods_setup3 $modoverrides1 $modoverrides2 $modoverrides3
if [ -n "`docker ps -qf id=$container_id`" ]; then
docker rm -fv $container_id > /dev/null
fi
}
trap clean EXIT
aux=`mktemp`
aux2=`mktemp`
mods_setup1=`mktemp`
mods_setup2=`mktemp`
m... | BraisGabin/dst-server | test/boot-mods/run.sh | Shell | mit | 2,541 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3103-1
#
# Security announcement date: 2016-10-13 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:39 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libdbd-mysql-perl:4.025-1ubuntu0.1
#... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/x86_64/2016/USN-3103-1.sh | Shell | mit | 689 |
#!/bin/bash
set -e
set -x
pip install -U conan_package_tools conan
| skypjack/entt | conan/ci/install.sh | Shell | mit | 69 |
#!/bin/sh
set -e
if [[ "x" == "${OVERRIDE_BUNDLE}x" ]]; then
if [[ -r 'Gemfile' ]]; then
bundle install
fi
fi
/opt/cfn/bin/cfn "$@"
| base2Services/build-containers | cfn/run.sh | Shell | mit | 142 |
__tsm::main "$@"
| RobertAudi/tsm | src/tsm.zsh | Shell | mit | 17 |
#!/bin/bash
# Update all installed packages
yum -y -q update
# Setup build dependencies
yum -y -q install gcc-c++ patch readline readline-devel zlib zlib-devel
yum -y -q install libyaml-devel libffi-devel openssl-devel make
yum -y -q install bzip2 autoconf automake libtool bison iconv-devel
yum -y -q install openssl ... | watermarkchurch/docker-image-base | install.sh | Shell | mit | 447 |
#!/bin/bash
# used in pindel raw call set
if [ ! -d ./res ]; then
mkdir res
fi
for filename in $(ls *_D)
do
grep ChrID $filename > ./res/${filename%_D}
done
| zz-zigzag/bioinformatics | scripts/real/call_analyze/1.0.simplify_pindel_callset.sh | Shell | mit | 168 |
#!/bin/bash
# ensures that we have a recent version of ruby installed
# and kicks things over to initialize.rb
set -o pipefail
pushd $HOME
if [ -f /etc/debian_version ]; then
RBENV_PREREQS="git curl zlib1g-dev build-essential libssl-dev libreadline-dev"
echo "debian based system"
echo "going to install ... | jtprince/dotmation | script/bootstrap-ruby-env.sh | Shell | mit | 2,495 |
#!/bin/bash
# Author : sckn <seckinalan@gmail.com>
# Usage : automount.sh disable | automount.sh enable
function enable {
echo 'ACTION=="add", KERNEL=="sd*",NAME="flash_drive",' \
'SUBSYSTEMS=="usb", ,RUN+="/bin/mount /dev/%k /mnt"' \
> /etc/udev/rules.d/99_automount.rules
udevadm control --reload-rules
}
f... | sckn/overlord | overlord-client/scripts/automount.sh | Shell | mit | 424 |
_tool_clearname()
{
local name="${1}"
if [[ -z "${name}" ]]; then
name=$(cat /dev/stdin)
fi
echo "${name}" | sed -E 's/[^a-zA-Z0-9._-]+/./g'
}
| henriquemoody/deployer | src/tool/clearname.bash | Shell | mit | 168 |
# Batch running of Event Processing Agents (EPA) with test files
# By mikko.rinne@aalto.fi 20.1.2016
# Each individual EPA and the combination of all EPAs is executed on 1000 events
# Modify as needed to run other event files
echo -e "\n\n\nEPA1 (Stateless filter)"
./EPArun.sh EPA1 1000events
echo -e "\n\n\nEPA2 (S... | aaltodsg/instans-cep2sparql | scripts/batch_run.sh | Shell | mit | 957 |
#!/usr/bin/env bash
echo "User 'postgres' password:"
pg_dump -Fc --no-acl --no-owner -h localhost -U postgres beer > beer.dump
scp beer.dump ernir@hekla.rhi.hi.is:/heima/ernir/.public_html
heroku pg:backups restore 'https://notendur.hi.is/~ernir/beer.dump' DATABASE -a bjorleit-v2
ssh ernir@hekla.rhi.hi.is "rm /heima/e... | Ernir/bjorleitin | updatedb.sh | Shell | mit | 349 |
cd /chmall/test_html
wget http://127.0.0.1:5000/
wget http://127.0.0.1:5000/m/
#cd /chmall
#zip -r /chmall/test_html.zip /chmall/test_html
#sz /chmall/test_html.zip
sz index.html*
cd /chmall
| scmsqhn/changhongmall | test_html.sh | Shell | mit | 193 |
# grc overides for ls
# Made possible through contributions from generous benefactors like
# `brew install coreutils`
if $(gls &>/dev/null)
then
alias ls="gls -F --color"
alias l="gls -lAh --color"
alias ll="gls -l --color"
alias la='gls -A --color'
fi
# Pipe my public key to my clipboard.
alias pubkey="mo... | DracoLi/dotfiles | system/aliases.zsh | Shell | mit | 1,904 |
#! /bin/bash
sudo groupadd powermate
sudo cp ./60-powermate.rules /etc/udev/rules.d/60-powermate.rules
echo "A group has been setup for powermate"
echo "add your user to the powermate group if you would like access"
echo "sudo usermod -a -G powermate `whoami`"
echo "NOTE: this does not take effect until you re-login"
... | lex148/powermate | setup.sh | Shell | mit | 322 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:0084
#
# Security announcement date: 2016-01-28 16:15:55 UTC
# Script generation date: 2017-01-01 21:16:57 UTC
#
# Operating System: Red Hat 7
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - libcacard-devel-rhev.x86_64:2.3.0-31.el... | Cyberwatch/cbw-security-fixes | Red_Hat_7/x86_64/2016/RHSA-2016:0084.sh | Shell | mit | 1,695 |
#!/bin/bash
#find the process that is running the server
echo 'Find the server process'
ps aux | grep 'server_8000.py'|grep -v 'grep'
echo 'Process number to kill'
ps aux | grep 'server_8000.py'|grep -v 'grep' | awk '{print $2}'
#kill the process
kill $(ps aux | grep 'server_8000.py'|grep -v 'grep' | awk '{print $2... | webbhm/OpenAg_MVP_UI | MVP_UI/scripts/stopServer.sh | Shell | mit | 365 |
#!/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... | DarlingXIe/WeiBoProject | WeiBo/Pods/Target Support Files/Pods-WeiBo/Pods-WeiBo-frameworks.sh | Shell | mit | 4,445 |
#!/bin/bash
set -e # Exit with nonzero exit code if anything fails
SOURCE_BRANCH="master"
TARGET_BRANCH="gh-pages"
# Save some useful information
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:}
SHA=`git rev-parse --verify HEAD`
# Clone the existing gh-pages for this repo i... | rp4rk/ChimpTravisCI | failure_deploy.sh | Shell | mit | 1,323 |
#!/bin/sh
GRIMA_HOME=$(dirname $0)/..
export GRIMA_HOME
. ${GRIMA_HOME}/etc/common
print_usage_and_die()
{
echo "Usage: $(basename $0) [--start | --stop | --make-cert]"
exit 1
}
OPTION="$1"
case "${OPTION}" in
*start)
lighttpd -f ${GRIMA_ETC}/lighttpd.conf
;;
*stop)
[ -f ${GRIMA_RUN}/lighttpd.pi... | cdsi/grima | bin/lighttpd.sh | Shell | mit | 540 |
#!/bin/bash
pacman -S --noconfirm mingw-w64-x86_64-{gcc,boost,ninja,cmake} make | milleniumbug/gdbplz | ci/00-install_deps_win.sh | Shell | mit | 79 |
#!/bin/bash
# exit on 1st error
set -e
find . -name '*.py[co]' -exec rm {} \;
flake8 celstash.py test_celstash.py
py.test --ignore=test-requirements.txt -v $@
| CyberInt/celstash | run-tests.sh | Shell | mit | 161 |
#!/bin/bash
#
source $HIPPIE_INI
source $HIPPIE_CFG
export bam_file=$1
export sec_bam_file=$2
export chim_file=$3
export sec_chim_file=$4
export ChimSegMin=$5
export size_select=$6
export RE=$7
export out=$8
if [ ! -s "${GENOME_CHRM_PATH}/${RE}_site.bed" ]
then
echo "Cannot find input file ${GENOME_CHRM_PATH}/${... | yihchii/hippie | cmd/pairingBam.sh | Shell | mit | 798 |
python build.py
# Make HTML notes version of slides
pandoc slides.md -o index.html -c revealjs/css/notes.css \
--template=template.html -H header.html
# Make revealjs version of slides
pandoc --section-divs -t revealjs -s \
--template template.revealjs \
-o slides.html \
-H header.html \
slides.md... | ericmjl/big-data-boston-2016 | build.sh | Shell | mit | 383 |
#!/bin/bash
java -jar pingpongparachute.jar
| joesgordon/soh | pingpongparachute/pingpongparachute.sh | Shell | mit | 46 |
#!/usr/bin/env bash
# color lines of log output
cat | awk -W interactive '
/ALL/ { print "\033[1;37m" $0 "\033[0m"; next; }
/FATAL/ { print "\033[1;31m" $0 "\033[0m"; next; }
/ERROR/ { print "\033[1;31m" $0 "\033[0m"; next; }
/WARN/ { print "\033[1;33m" $0 "\033[0m"; next; }
/INFO/ { print "\033[... | rdk/p2rank | logc.sh | Shell | mit | 484 |
#!/bin/sh
cd /prj/skyhopper
bundle exec foreman start -f Procfile.docker &
foreman_pid=$!
trap_TERM() {
kill $foreman_pid
while kill -0 $foreman_pid
do
sleep 1
done
exit 0
}
trap 'trap_TERM' TERM
while kill -0 $foreman_pid
do
sleep 1
done
| skyarch-networks/skyhopper | scripts/app_run.sh | Shell | mit | 257 |
#!/bin/bash
/usr/bin/php /var/www/html/cron/storeTemp.php
| SloS13/tempMonitor | cron/storeTemp.sh | Shell | mit | 58 |
#!/usr/bin/env bash
# Onorio Catenacci 3 January 2014
echo "Installing scala and setting it up . . . "
readonly homedir="/home/vagrant"
apt-get update >/dev/null 2>&1
apt-get install -y scala > /dev/null 2>&1
# Thanks to pardigmatic on StackOverflow for this procedure to install
# SBT via apt-get on Ubuntu... | dbongo/ScalaVM | provision.sh | Shell | mit | 2,712 |
#!/bin/sh
# Usage: <cmd> file-regex
for filename in $1; do
echo "SPIRV: $filename:"
./build/VC4C --spirv --hex -o /dev/null "$filename" > /dev/null
echo "LLVM: $filename:"
./build/VC4C --llvm --hex -o /dev/null "$filename" > /dev/null
done
| doe300/VC4C | check_all_files.sh | Shell | mit | 256 |
#!/usr/bin/env bash
docker run -d -P --name putioSync -v $PWD/test:/downloads putio-sync:latest | oudenmallon/putioDownloader | docker.start.sh | Shell | mit | 95 |
#!/bin/bash -xe
# git clone git://sourceware.org/git/binutils-gdb.git
# invoke as ~/git/binutils-gdb/install/bin/gdb
cd ~/git/binutils-gdb
git reset --hard
git pull -r
git clean -x -d -f
CFLAGS="-g -O2" ./configure --prefix=$(pwd)/install --with-python=/usr/bin/python3
make -j8
make install
# enable e.g. STL pretty-pri... | vmiklos/vmexam | gdb/build.sh | Shell | mit | 378 |
#!/bin/bash
# $NODE_VERSION = 10.111.60
npm i nvm -g
nvm install 10
# nvm set default 0
npm i nvm -g
npm i spoof -g
npm i gatsby -g
npm i serverless -g
npm i underscore -g
npm i request -g
npm i axios -g
npm i hotel -g
npm i standard -g
npm i depcheck -g
npm i npm-check-unused -g
| matthewhudson/dotfiles | node.sh | Shell | mit | 285 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.