code stringlengths 2 1.05M | repo_name stringlengths 5 110 | path stringlengths 3 922 | language stringclasses 1
value | license stringclasses 15
values | size int64 2 1.05M |
|---|---|---|---|---|---|
#! /usr/bin/env bash
$EXTRACTRC `find . -name \*.ui -o -name \*.rc -o -name \*.kcfg` >> rc.cpp
$XGETTEXT `find . -name \*.cpp` -o $podir/dolphin.pot
rm -f rc.cpp
| panzi/KDE-Folderview-Translucent-D-n-D-Hack | dolphin/src/Messages.sh | Shell | gpl-2.0 | 162 |
#!/bin/bash -eu
# Copyright 2019 The Kapitan Authors
# SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com>
#
# SPDX-License-Identifier: Apache-2.0
DIR=$(dirname ${BASH_SOURCE[0]})
for SECTION in pre-deploy manifests
do
echo "## run kubectl apply for ${SECTION}"
kapitan refs --revea... | ademariag/kapitan | tests/test_kubernetes_compiled/minikube-mysql/scripts/apply.sh | Shell | apache-2.0 | 394 |
# Install the application. The following parameters are passed to the deployApp script
# param1 --> ear file name
# param2 --> application Name
# param3 --> serverName
# param4 --> cellName
# param5 --> nodeName
. /nhin/CI/setVariables.sh
echo $EARFILENAME
$WEBSPHERE_PROFILE_DIR/bin/wsadmin.sh -f /nhin/CI/deployA... | sailajaa/CONNECT | Product/Install/Websphere/deployApp.sh | Shell | bsd-3-clause | 369 |
cite 'about-alias'
about-alias 'common git-svn abbreviations'
# Aliases
alias gsr='git svn rebase'
alias gsc='git svn dcommit'
alias gsi='git svn info'
| moraleida/dotfiles | home/.bash_it/aliases/available/gitsvn.aliases.bash | Shell | gpl-2.0 | 153 |
#!/bin/sh
if [ "x${DATA_PATH}" != "x" ]; then
if [ -e ${DATA_PATH} ]; then
echo "dump namenode log"
cat ${DATA_PATH}/hadoop*/logs/*namenode*log*
echo "dump datanode log"
cat ${DATA_PATH}/hadoop*/logs/*datanode*log*
fi
if [ "x${KEEP_LOG}" != "xtrue" ]; then
rm -rf ${DATA_PATH}/*
fi
rm -rf ${DATA_PATH}... | zhangh43/incubator-hawq | depends/libyarn/releng/bin/cleanup-phd.sh | Shell | apache-2.0 | 633 |
#!/bin/bash
if [ $# -lt 2 ]
then
echo "Usage: `basename $0` OUTPUT_FORMAT DOT_FILES+"
exit 65
fi
FORMAT=$1
shift
for FILE in $@
do
echo visualizing $FILE
java org.culturegraph.mf.cmdline.MorphVis "$FILE" | dot -T$FORMAT > "$FILE.$FORMAT"
done | guenterh/mfRunnerPlayBox | visualizeMorphDefs.sh | Shell | apache-2.0 | 257 |
# set the following variables only if they've not been set
export GOVC_DATASTORE=${GOVC_DATASTORE-datastore1}
export GOVC_NETWORK=${GOVC_NETWORK-"VM Network"}
export GOVC_INSECURE=true
export GOVC_PERSIST_SESSION=false
unset GOVC_URL
unset GOVC_DEBUG
unset GOVC_TLS_KNOWN_HOSTS
unset GOVC_TLS_HANDSHAKE_TIMEOUT
unset GO... | pweil-/origin | vendor/github.com/vmware/govmomi/govc/test/test_helper.bash | Shell | apache-2.0 | 6,044 |
#!/bin/bash
set -o errexit -o nounset -o pipefail
DOCKER_TAG=${DOCKER_TAG:-"dev"}
DOCKER_IMAGE=${DOCKER_IMAGE:-"mesosphere/universe-converter"}
DOCKER_IMAGE_AND_TAG="${DOCKER_IMAGE}:${DOCKER_TAG}"
CONVERTER_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function clean {
rm -rf ${CONVERTER_DIR}/target
}
... | pradeeppanga/dcos-universe | converter/build.bash | Shell | apache-2.0 | 1,295 |
#!/usr/bin/env bash
set -e
set -x
git fetch --tags
lein test
echo "Tests passed!"
lein release
echo "Release plugin successful, pushing changes to git"
git push origin --tags HEAD:$BRANCH
echo "git push successful."
| camlow325/clj-http-client | jenkins/deploy.sh | Shell | apache-2.0 | 222 |
#!/bin/bash
(set -o igncr) 2>/dev/null && set -o igncr; # this comment is required
set -$-ue${DEBUG+xv}
#######################################################################################################################
# This script processes the memory consumption of an application and prints it out to the cons... | weiyuliang/rt-thread | bsp/cypress/psoc6-pioneerkit_modus/libs/psoc6make/make/scripts/memcalc.bash | Shell | apache-2.0 | 3,654 |
#!/bin/sh
# split_x32.sh -- test -fstack-split for x32
# Copyright (C) 2014-2016 Free Software Foundation, Inc.
# Written by Ian Lance Taylor <iant@google.com>.
# Modified by H.J. Lu <hongjiu.lu@intel.com>.
# This file is part of gold.
# This program is free software; you can redistribute it and/or modify
# it unde... | hexa00/binutils-gdb | gold/testsuite/split_x32.sh | Shell | gpl-2.0 | 1,650 |
ARCH=avr:51
MACHINE=
SCRIPT_NAME=avr
OUTPUT_FORMAT="elf32-avr"
MAXPAGESIZE=1
EMBEDDED=yes
TEMPLATE_NAME=elf32
TEXT_LENGTH=128K
DATA_ORIGIN=0x800100
DATA_LENGTH=0xff00
EXTRA_EM_FILE=avrelf
FUSE_NAME=fuse
EEPROM_LENGTH=64K
FUSE_LENGTH=1K
LOCK_LENGTH=1K
SIGNATURE_LENGTH=1K
USER_SIGNATURE_LENGTH=1K
| nadeaud/binutils-gdb | ld/emulparams/avr51.sh | Shell | gpl-2.0 | 299 |
# (c) 2014-2015 Sam Nazarko
# email@samnazarko.co.uk
#!/bin/bash
. ../common.sh
# Build in native environment
pull_source "https://github.com/bavison/arm-mem/archive/master.zip" "$(pwd)/src"
build_in_env "${1}" $(pwd) "rbp-armmem-osmc"
build_return=$?
if [ $build_return == 99 ]
then
echo -e "Building package rbp-arm... | EWol234/osmc | package/rbp-armmem-osmc/build.sh | Shell | gpl-2.0 | 1,001 |
#!/bin/bash
# Set client and server directories as environment variables
# if you don't want to enter them here
if [ -z $CLIENT_DIR ]; then
echo -n "Enter directory where client files are located: "
read CLIENT_DIR
if ! cd $CLIENT_DIR; then
echo "Cannot access $CLIENT_DIR"
exit 1
fi
if [ ! -d $CLIENT_... | pete318/TrinityCore | contrib/extractor.sh | Shell | gpl-2.0 | 3,816 |
#!/bin/sh
#strictly use anaconda build environment
CC=${PREFIX}/bin/gcc
CXX=${PREFIX}/bin/g++
mkdir -pv $PREFIX/bin/HR2/bin
g++ HR2.cpp -o $PREFIX/bin/HR2/bin/HR2.exe
chmod a+x $PREFIX/bin/HR2/bin/HR2.exe
cp $PREFIX/bin/HR2/bin/HR2.exe ${PREFIX}/bin
| roryk/recipes | recipes/hr2/build.sh | Shell | mit | 254 |
#!/bin/bash
#
# Tracebacks in bash
# https://docwhat.org/tracebacks-in-bash/
#
# Just take the code between the "cut here" lines
# and put it in your own program.
#
# Written by Christian Höltje
# Donated to the public domain in 2013
#--------->8---------cut here---------8<---------
set -e
trap _exit_trap EXIT
trap _... | jonboiser/kolibri | test/traceback.sh | Shell | mit | 1,142 |
#
# Copyright (c) 2004, 2012, 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... | frohoff/jdk8u-jdk | test/sun/security/tools/keytool/StandardAlgName.sh | Shell | gpl-2.0 | 3,255 |
#! /bin/sh
################################################################################
## ##
## Copyright (c) 2012 FUJITSU LIMITED ##
## ... | skynet/ltp | testcases/kernel/controllers/memcg/functional/memcg_move_charge_at_immigrate_test.sh | Shell | gpl-2.0 | 2,774 |
#!/bin/bash
#
# vim: set ts=4 sw=4 et:
#
# Passed arguments:
# $1 - pkgname to build [REQUIRED]
# $2 - cross target [OPTIONAL]
if [ $# -lt 1 -o $# -gt 2 ]; then
echo "${0##*/}: invalid number of arguments: pkgname [cross-target]"
exit 1
fi
PKGNAME="$1"
XBPS_CROSS_BUILD="$2"
for f in $XBPS_SHUTILSDIR/*.sh; do... | oliver-cfc/void-packages | common/xbps-src/libexec/xbps-src-docheck.sh | Shell | bsd-2-clause | 1,505 |
#!/bin/sh
/usr/bin/pg_dump -O -v -f "apidb_0.6.sql" api06
| supunj/sl2garmin | tools/osmosis/package/script/contrib/dump_apidb.sh | Shell | mit | 58 |
SCRIPT_NAME=arclinux
if [ "x${ARC_ENDIAN}" = "xbig" ]; then
OUTPUT_FORMAT="elf32-bigarc"
else
OUTPUT_FORMAT="elf32-littlearc"
fi
LITTLE_OUTPUT_FORMAT="elf32-littlearc"
BIG_OUTPUT_FORMAT="elf32-bigarc"
TEXT_START_ADDR=0x10000
MAXPAGESIZE=0x2000
COMMONPAGESIZE=0x2000
NONPAGED_TEXT_START_ADDR=0x10000
ARCH=arc
MACHINE=... | selmentdev/selment-toolchain | source/binutils-latest/ld/emulparams/arclinux.sh | Shell | gpl-3.0 | 523 |
incdir=$1
libdir=$2
ldso=$3
cat <<EOF
%rename cpp_options old_cpp_options
*cpp_options:
-nostdinc -isystem $incdir -isystem include%s %(old_cpp_options)
*cc1:
%(cc1_cpu) -nostdinc -isystem $incdir -isystem include%s
*link_libgcc:
-L$libdir -L .%s
*libgcc:
libgcc.a%s %:if-exists(libgcc_eh.a%s)
*startfile:
%{!shared... | chardi/musl | tools/musl-gcc.specs.sh | Shell | mit | 625 |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | manuzhang/incubator-beam | .test-infra/kubernetes/cassandra/LargeITCluster/show_health.sh | Shell | apache-2.0 | 1,716 |
#!/bin/sh
. "${TEST_SCRIPTS_DIR}/unit.sh"
define_test "slave node, no gateway"
setup_ctdb
setup_ctdb_natgw <<EOF
192.168.1.21
192.168.1.22 master
192.168.1.23
192.168.1.24
EOF
CTDB_NATGW_DEFAULT_GATEWAY=""
ok_null
simple_test_event "ipreallocated"
ok "default via ${FAKE_CTDB_NATGW_MASTER} dev ethXXX metric 10 "... | SVoxel/R7800 | git_home/samba.git/ctdb/tests/eventscripts/11.natgw.014.sh | Shell | gpl-2.0 | 444 |
git subsplit init git@github.com:laravel/framework.git
git subsplit publish --heads="master 5.2 5.1" src/Illuminate/Auth:git@github.com:illuminate/auth.git
git subsplit publish --heads="master 5.2 5.1" src/Illuminate/Bus:git@github.com:illuminate/broadcasting.git
git subsplit publish --heads="master 5.2 5.1" src/Illumi... | olsgreen/framework | build/illuminate-split-full.sh | Shell | mit | 2,949 |
#!/usr/bin/env bash
###########################################################################
# chkspelling.sh
# ---------------------
# Date : December 2009
# Copyright : (C) 2009 by Juergen E. Fischer
# Email : jef at norbit dot de
###########################... | luzpaz/QGIS | scripts/chkspelling.sh | Shell | gpl-2.0 | 1,401 |
#!/bin/sh
EXIT=0
OUTPUT="loop
loop
loop"
cat > t.r <<EOF
exit@syscall(1);
write@syscall(4);
main();
// naked function for wrapping calls
fun@global() {
write (1, .arg0, .arg1);
}
main@global(128,128) {
.var0 = 0;
while (.var0<2) {
fun ("loop\n", 5);
.var0 += 1;
}
exit (0);
}
EOF
. ./t.sh
| h4ng3r/radare2-regressions | unit/legacy_unit/egg/t-fun2.sh | Shell | gpl-3.0 | 298 |
cat ../sql/updates/world/*.sql > world_update.sql
| ariel-/TrinityCore | contrib/merge_updates_unix.sh | Shell | gpl-2.0 | 50 |
#!/usr/bin/env bash
set -e
psql -U postgres <<-EOSQL
CREATE USER rc2;
CREATE DATABASE rc2 OWNER rc2;
\c rc2
DROP SCHEMA public;
CREATE SCHEMA public AUTHORIZATION rc2;
GRANT CREATE, USAGE ON SCHEMA public TO PUBLIC;
EOSQL
| rc2server/rc2 | containers/dbserver2/init-scripts/a_dbsetup.sh | Shell | isc | 230 |
#!/bin/bash
docker run -p "9444:9444" 66pix/s3ninja
| 66pix/docker-s3ninja | run.sh | Shell | isc | 52 |
#!/bin/ksh
typeset -l Request Var
Request=$1
case $Request in
game)
comptail=200 hidetail=75
print "<p>Here are details about our next game: \\c"
echo -n $(curl -s https://goduke.com/sports/mens-basketball/schedule | grep -A$comptail sidearm-schedule-game-completed | grep -A$hidetail Hide | tail -$hidetail | egre... | glmck13/Askpi | coachK.sh | Shell | mit | 1,081 |
#!/bin/sh
LOG_PATH="/Users/Salo/Documents/Farseer/Log"
#LOG_PATH="~/Documents/Farseer/Log/"
mkdir -p $LOG_PATH
if [ "$1" != "-m" ];then
cd $LOG_PATH
LAST_LOG=""
while :
do
NEWEST_LOG=$(ls -l | tail -n 1 | awk '{print $9}')
if [ "$LAST_LOG" != "$NEWEST_LOG" ];then
LAST_LOG=$NEWEST_LOG
echo "\n\n\n"
... | winterbesos/Farseer | Script/farseer.sh | Shell | mit | 730 |
#!/usr/bin/env bash
set -e
set -o pipefail
if [[ ${PLATFORM} == "osx" || ${PLATFORM} == "linux" ]]; then
# Run unit tests
echo "Running Unit Tests"
pushd ./build/tests/unit/bin
for file in *.out
do
echo "Running ${file}"
./$file
done
popd
fi
| xvilan/tangram-es | travis/script_run_tests.sh | Shell | mit | 305 |
#!/bin/bash
export DISPLAY=":99"
linux_wd=$1
workspace_dir=$2
qmake_58="/home/ubuntu/Qt/5.8/gcc_64/bin/qmake"
mkdir -p /home/ubuntu/workspace/$linux_wd
# running test
cd /home/ubuntu/workspace/$linux_wd/
$qmake_58 $workspace_dir
make
make check
| evonove/qt-ci-images | qt-community/ubuntu1604/provision/roles/stages/files/test.sh | Shell | mit | 250 |
#!/usr/bin/env bash
set -e
git stash
git checkout gh-pages
git merge master
npm run index
npm run build_scss
npm run build_js
awk -F, '{$1=$1+1;print}' OFS=, VERSION > VERSION.tmp && mv VERSION{.tmp,}
git commit -a -m "Creates release deploy # `cat VERSION`"
git push -f
git checkout master
git stash pop
npm ru... | rhardih/winski | deploy.sh | Shell | mit | 392 |
#!/bin/sh
# Builder script.
# Vars
pkg=$1
# Logic
cd $pkg
# Checksums
abuild checksum
# Build package.
abuild -r
| vifino/alpine_packages | builder.sh | Shell | mit | 117 |
#!/bin/bash
# how many DB to be insert into
export HT_MULTI_DB=1
# how many collections per DB
export HT_MULTI_COLLECTION=16
# number of workers
export HT_CMD_WORKERS=16
# report stats every N second
export HT_CMD_MONITOR_INTERVAL=10
# how long shall the run in sercond, 0 means infinity
export HT_CMD_TOTAL_TIME=40... | guoyr/hammer.mongo | scripts/simple_insert.sh | Shell | mit | 1,169 |
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
sudo dnf install --assumeyes zsh python{2,3}-virtualenvwrapper
if [[ -f ~/.zshrc || -L ~/.zshrc ]];
then
mv ~/.zshrc ~/.zshrc.backup.$(date +%s)
fi
ln -s $(readlink -f zshrc) ~/.zshrc
chsh -s $(which zsh)
| kkorekk/linux-workspace | zsh/install.sh | Shell | mit | 261 |
#!/bin/sh
## got the information from http://cran.rstudio.com/bin/linux/ubuntu/README.html
# check for the current Ubuntu release code name
UBUNTU_RELEASE=$(lsb_release -c | sed 's/^.*:[[:space:]]*//g')
echo "Identified Ubuntu release $UBUNTU_RELEASE"
## add the corresponding repository
echo 'deb http://ftp5.gwdg.de... | cctb-it-wuerzburg/installation | final_installation/terminal_server/36_r-repository.sh | Shell | mit | 599 |
#!/bin/bash
find . -type f -regextype posix-extended -regex ".*\([1-9]\)\.mp3$" -print0 | xargs -0 rm
| aebarber/ScriptToolbox | server-management/media-server/remove-google-play-duplicates.sh | Shell | mit | 102 |
#!/bin/bash
if [ ! -z "$TRAVIS_TAG" ]
then
echo "on a tag -> set pom.xml <version> to $TRAVIS_TAG"
mvn --settings .travis/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$TRAVIS_TAG 1>/dev/null 2>/dev/null
else
echo "not on a tag -> keep snapshot version in pom.xml"
fi
mvn clean d... | maschel/RoombaJSSC | .travis/deploy.sh | Shell | mit | 424 |
#!/bin/zsh
umask 022
setopt autolist automenu nobeep
# no c-s/c-q output freezing
setopt noflowcontrol
# allow expansion in prompts
setopt prompt_subst
# Disable 'zsh: no matches found' warning
setopt nonomatch
# whenever a command completion is attempted, make sure the entire command path
# is hashed first.
setopt h... | soleblaze/dotfiles | zsh/misc.zsh | Shell | mit | 1,444 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2516-2
#
# Security announcement date: 2015-02-28 00:00:00 UTC
# Script generation date: 2017-02-02 21:02:53 UTC
#
# Operating System: Ubuntu 14.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - mouse-modules-3.13.0-46-generic-di:3... | Cyberwatch/cbw-security-fixes | Ubuntu_14.04_LTS/x86_64/2015/USN-2516-2.sh | Shell | mit | 56,087 |
#!/usr/bin/env bash
#
# rxstacks_slave.sh - rxstacks script for RADseq workflow
#
# Version 0.9 (April 19, 2016)
#
# Copyright (c) 2015-2016 Andrew Krohn
#
# This software is provided 'as-is', without any express or implied
# warranty. In no event will the authors be held liable for any damages
# arising from the... | alk224/akutils_RADseq_utility | scripts/cor_cstacks_slave.sh | Shell | mit | 1,999 |
echo while begins
while cat /tmp/foo.txt | grep -qi foo
sleep 1
echo foo is good in while
done
echo the end
| mitnk/cicada | tests/locusts/while-001.sh | Shell | mit | 117 |
#!/bin/bash
KEYWORDS_FIREARMS="\bFire(| )arm|hand(| )gun|open(-| )carry|Gold(| )Star(| )State"
KEYWORDS_AK47="AK(| |-)47"
KEYWORDS_M16="\bM16(|s)\b|(|X)M16(a|e)[1-5]|AR(|-)15"
KEYWORDS_FIREARMS_EXCLUDE="$KEYWORDS_AK47|$KEYWORDS_M16"
KEYWORDS_FIREARMS_ALL="$KEYWORDS_FIREARMS|$KEYWORDS_AK47|$KEYWORDS_M16"
if [ "$1" == ... | MW-autocat-script/MW-autocat-script | catscripts/Lifestyle/Hobbies/Firearms/Firearms.sh | Shell | mit | 666 |
# NOTICE
# This script is meant for auto-run. If you want to learn, please learn BASH script. Thank you.
function xcode_agreement {
echo "== Setup Xcode Agreement =="
sudo xcodebuild -license
echo "[ COMPLETED ]"
}
function install_homebrew {
echo "== Installing Homebrew =="
ruby -e "$(curl -fsSL https://raw.gi... | hollowaykeanho/learning | rails/setup/mac/rails_setup_osx.sh | Shell | mit | 4,662 |
export SERVERLESS_STAGE="dev"
bash scripts/deploy_serverless.sh
| amowu/amowu.com | scripts/deploy_staging.sh | Shell | mit | 65 |
#!/bin/bash
set -e
# HOROVOD BUILD SH
# Cori:
PATH=/global/homes/w/wozniak/Public/sfw/mpich-3.2.1/bin:$PATH
PATH=/global/homes/w/wozniak/Public/sfw/tcl-8.6.6/bin:$PATH
PATH=$HOME/Public/sfw/login/swift-t-2018-04-16/turbine/bin:$PATH
# USER: set the Horovod location here:
HOROVOD=$HOME/proj/horovod
CONTROLLER=$HOROV... | ECP-CANDLE/Supervisor | workflows/test-horovod/build.sh | Shell | mit | 665 |
#! /bin/bash
# sort-numbers.sh -- This script asks the user to input any 10 numbers of choice and each number is added to a file called unsorted.txt and finally the program prints out the sorted list of numbers.
# Author : Prince Oppong Boamah<regioths@gmail.com>
# Date : 7 July 2015
echo "Hello and please input an... | Prince-linux/prince-linux-learning | scripts/sort-numbers.sh | Shell | mit | 846 |
#!bin/bash
DEVICE=/dev/sdXY
sudo mount $DEVICE /mnt
sudo mount --bind /dev /mnt/dev &&
sudo mount --bind /dev/pts /mnt/dev/pts &&
sudo mount --bind /proc /mnt/proc &&
sudo mount --bind /sys /mnt/sys
sudo chroot /mnt
| Endika/test_script | live_mount_sistem.sh | Shell | mit | 216 |
# file: simulate_isim.sh
#
# (c) Copyright 2008 - 2011 Xilinx, Inc. All rights reserved.
#
# This file contains confidential and proprietary information
# of Xilinx, Inc. and is protected under U.S. and
# international copyright and other intellectual property
# laws.
#
# DISCLAIMER
# This disclaimer is not a licens... | chcbaram/FPGA | ZPUino_miniSpartan6_plus/ipcore_dir/Clock/simulation/timing/simulate_isim.sh | Shell | mit | 2,595 |
#!/bin/bash
setdir="run68mousernaseqtregsplnlung/"
basedir="/home/trevor/jen/"
alignedsub="aligned/"
outsub="counts/"
tailsub=".txt"
aligneddir=$basedir$alignedsub$setdir
outdir=$basedir$outsub$setdir
im1_files=($(ls "$aligneddir" | grep Aligned.out.sam))
for ((i=0;i<${#im1_files[@]};i++)); do
alignedpath=$alignedd... | trevormartin/basicrnaseqanalysispipeline | bulkcountreads.sh | Shell | mit | 606 |
#!/bin/sh
# nix-run.sh provides an easy way to run executables from Nix derivations
# without installing them. It will try to determine how to run the application
# based on what files are installable. Currently, macOS apps, Freedesktop apps,
# and ordinary binaries are handled.
# Usage
if [ -z "$1" ]; then
>&2 ... | matthewbauer/nix-bundle | nix-run.sh | Shell | mit | 2,518 |
#!/usr/bin/env bash
outfname=im_$(date '+%y%m%d_%H%M%S').jpg
outdir=~/im
mkdir -p $outdir
# Get image
outfullfile=$outdir/$outfname
curl -n http://192.168.15.21/axis-cgi/jpg/image.cgi -o $outfullfile
# upload to google Drive
echo Uploading file to Google Drive
python /home/johannes/code/plantnet/upload-file.py --fi... | johannestoger/plantnet | getimage.sh | Shell | mit | 336 |
#!/bin/bash -ev
#
# Installation Script
# Written by: Tommy Lincoln <pajamapants3000@gmail.com>
# Github: https://github.com/pajamapants3000
# Legal: See LICENSE in parent directory
#
#
source ${HOME}/.blfs_profile
#
# Dependencies
#**************
# Begin Required
# End Required
# Begin Recommended
# End Recommended
# ... | pajamapants3000/BLFS_scripts_etc | scripts/non-blfs/libast-0.7.sh | Shell | mit | 1,205 |
#!/bin/bash
erl -make
erl -pe ebin | M1nified/Erlang-Samples | run.sh | Shell | mit | 36 |
#!/bin/bash
LIBUSB_VERSION="c6a35c56016ea2ab2f19115d2ea1e85e0edae155"
# ^ tag v1.0.24
set -e
. $(dirname "$0")/build_tools_util.sh || (echo "Could not source build_tools_util.sh" && exit 1)
here=$(dirname $(realpath "$0" 2> /dev/null || grealpath "$0"))
CONTRIB="$here"
PROJECT_ROOT="$CONTRIB/.."
pkgname="libusb"
i... | wakiyamap/electrum-mona | contrib/make_libusb.sh | Shell | mit | 2,223 |
java -Xmx4000m -Dlog4j.configuration=file:src/main/resources/log4j.properties -cp target/dependency/*:target/stats-0.0.1-SNAPSHOT.jar rdf.literal.stats.Main $1 $2 | SaudAljaloud/RdfLiteralStats | run2.sh | Shell | mit | 162 |
#!/bin/bash
djsons='../jsons'
pjsons='../jsons/proxies'
opath='../tmp'
pfname='Crow_Glacier.json'
./proxy_oper.py --djsons ${djsons} --pjsons ${pjsons} --opath ${opath} --pfname ${pfname} --name 'Crow Glacier' --ptype 'Tree rings' --longitude 170.998122 --latitude -43.346222 --dataset 'vcsn' --variable 'TMean' --seas... | nicolasfauchereau/paleopy | scripts/test_proxy_oper.sh | Shell | mit | 606 |
#!/bin/bash
# Remove web_cache requests that have failed so they will be retried.
find $1 -name '*.fail' -print0 | while read -d '' -r var; do
rm -f "${var%.fail}.fail"
rm -f "${var%.fail}.url"
rm -f "${var%.fail}.data"
rm -f "${var%.fail}.timestamp"
done
| squirrel2038/thearchdruidreport-archive | remove-web-cache-failures.sh | Shell | mit | 272 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2782-1
#
# Security announcement date: 2015-10-27 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:51 UTC
#
# Operating System: Ubuntu 15.10
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - apport:2.19.1-0ubuntu4
#
# Last versions... | Cyberwatch/cbw-security-fixes | Ubuntu_15.10/x86_64/2015/USN-2782-1.sh | Shell | mit | 609 |
#!/bin/bash
/usr/bin/java -Xmx512m -Djava.library.path=/usr/local/lib -Djava.util.logging.SimpleFormatter.format=%2$s%5$s%6$s%n -cp /usr/local/bin/marathon mesosphere.marathon.Main \
| bfs/docker-mesosphere-cluster | start_marathon.sh | Shell | mit | 184 |
#!/bin/bash
(export PRODUCTION_BUILD=true API_HOST=https://api.envkey.com/api && ./build.sh) | envkey/envkey-app | build_prod.sh | Shell | mit | 93 |
#!/bin/bash
grep_output=`grep -IUlr $'\r' --exclude=*.log --exclude-dir={node_modules,coverage,.nyc_output,.git,logs,.idea,.vscode,dist,dest}`
if [ "$grep_output" != "" ]; then
dos2unix ${grep_output}
fi
yarn build
rm -rf docs
cp -R dist/. docs/
# deploy to git
git add --all
git commit -a
git push origin master... | pgmanutd/react-redux-rxjs-typescript-boilerplate | scripts/deploy.sh | Shell | mit | 321 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2016:2090
#
# Security announcement date: 2016-10-20 12:55:16 UTC
# Script generation date: 2017-01-19 21:27:24 UTC
#
# Operating System: Red Hat 7
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.6.0-sun.i686:1.6.0.131-1jpp.1.el... | Cyberwatch/cbw-security-fixes | Red_Hat_7/x86_64/2016/RHSA-2016:2090.sh | Shell | mit | 1,901 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3102-1
#
# Security announcement date: 2016-10-13 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:39 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - quagga:0.99.20.1-0ubuntu0.12.04.5
#
# ... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2016/USN-3102-1.sh | Shell | mit | 664 |
#!/usr/bin/env bash
# Copyright (c) 2014 The PayProCoin Core developers
# Distributed under the MIT/X11 software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
# Test marking of spent outputs
# Create a transaction graph with four transactions,
# A/B/C/D
# C spends... | PayProCoin/PayProCoin | qa/rpc-tests/conflictedbalance.sh | Shell | mit | 3,393 |
#!/bin/bash
i18n(){
echo "atualizando .mo"
cd riddles
django-admin.py makemessages -a
django-admin.py compilemessages
cd -
}
i18n_criar(){
echo "atualizando .mo"
cd riddles
django-admin.py makemessages -l pt_BR
cd -
}
COMANDO=$1
$COMANDO
| arruda/riddles | utils.sh | Shell | mit | 278 |
if [[ -n $SSH_CONNECTION ]]; then
export PS1='%m:%3~$(git_info_for_prompt)%# '
else
export PS1='%3~$(git_info_for_prompt)%# '
fi
export LSCOLORS="exfxcxdxbxegedabagacad"
export CLICOLOR=true
fpath=($ZSH/functions $fpath)
autoload -U $ZSH/functions/*(:t)
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=10000
set... | danishumate/dotfiles | zsh/config.zsh | Shell | mit | 4,008 |
#!/bin/bash -e
# This is a horrible hack, but the only reliable way I can get debconf values
# to change. Call as:
# EDITOR=debconf_edit.sh DEBIAN_FRONTEND=editor dpkg-reconfigure <package>
OUTFILE="${1}"
TMPFILE="$(mktemp)"
function setvar() {
sed "s|${1}="'".*'"|${1}="'"'"${2}"'"|g' "${OUTFILE}" > "${TMPFILE}... | CallumCameron/pi-server | zz-vm-testing/setup/debconf-edit.sh | Shell | mit | 477 |
OUTPUT_CLIP="outputs/ffmpeg_h264_aac_from_ffmbc_h264_aac_v1.mp4"
echo "Creating $OUTPUT_CLIP"
ffmpeg -y -i outputs/ffmbc_h264_aac.mp4 -f mp4 -c:v copy -c:a copy $OUTPUT_CLIP >/dev/null 2>&1
echo "$OUTPUT_CLIP duration (expected 2.40s)"
ffprobe $OUTPUT_CLIP 2>&1 | grep "Duration:"
echo ""
OUTPUT_CLIP="outputs/ffmpeg_... | Neil-Aframe/ffmpeg_timing_examples | create_ffmpeg_transcoded_outputs.sh | Shell | mit | 904 |
find bower_components -name *.css | sed 's/^\(.*\)\.css$/cp "\1.css" "\1_css.scss"/' | sh | ricardofadini/rf-angular | app/.bower-postinstall.sh | Shell | mit | 89 |
# |Restore| {{{
# ------------------------------------------------------------------------------
# Find a resorable session file using the following steps:
# 1. File with name passed as a first argument ($1)
# 2. Last backup session file
# 3. Default session file
# A restorable session file must have the followi... | RobertAudi/tsm | src/commands/restore.zsh | Shell | mit | 2,354 |
#!/bin/bash
function DoEcho()
{
echo "=== $@"
}
function ContinueEcho()
{
echo " $@"
}
function PackageName()
{
local package=$1
local version=$2
local line=$(apt-get download -o Debug::NoLocking=1 --print-uris ${package}=${version} | cut -d' ' -f2)
local result=$?
echo "${line}"
... | GusBricker/fancy-sauce | include/functions.sh | Shell | mit | 2,133 |
#!/bin/bash
echo Waiting a bit before starting server...
cd ~/java-hdl-webserver/releases
/bin/sleep 30 # Just to be more sure that the network interfaces are up and running
echo Starting server...
nohup java -cp hdlserver-LATEST.jar com.roysolberg.java.hdlserver.Application &
| roys/java-hdl-webserver | launcher.sh | Shell | mit | 278 |
#!/bin/bash
# ADB Install.sh
echo "This will install ADB and Fastboot on your computer."
echo "Root Permissions required. Please type your password."
sudo cd ~ #Gives Superuser permissions
cd "`dirname "$0"`" #CDs to script directory
echo "Changed directory to `pwd`" #Informs user of path change
echo "Moving ADB"
su... | sameer49/Appium-Grid-For-Android | Mac-Command-Setup.sh | Shell | mit | 854 |
###-begin-basis-completion-###
#
# basis command completion script
#
# Original file https://github.com/isaacs/npm/blob/master/lib/utils/completion.sh
#
# Installation: basis completion >> ~/.bashrc (or ~/.zshrc)
# Or, maybe: basis completion > /usr/local/etc/bash_completion.d/basis
#
COMP_WORDBREAKS=${COMP_WORDBREAK... | basisjs/basisjs-tools | lib/completion/completion.sh | Shell | mit | 1,655 |
#!/bin/bash
set -ex
if [[ $ENGINE != "podman" ]]; then
exit 0
fi
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L https://download.opensuse.org/reposit... | systemslab/popper | src/scripts/install_podman.sh | Shell | mit | 512 |
#!/usr/bin/env bash
repo_root=$(dirname "${0}")/..
command_name=$(basename "$0")
help() {
echo "mjournal command line interface usage:"
printf "Basic syntax is ${command_name} <resource-or-subcommand> [options]\n"
for sub_cli in $(find "${repo_root}/app/" -name cli.js -type f);
do
if [ ! -x "${sub_cli}" ]; ... | focusaurus/mjournal | bin/mjdev.sh | Shell | mit | 874 |
#!/usr/bin/env bash
set -o errexit
#set -o verbose
set -o xtrace
set -o nounset
SN_NETWORK_ACCOUNT_PASSWORD=${SN_NETWORK_ACCOUNT_PASSWORD:=no_password_set}
case "$1" in
init)
#https://www.vaultproject.io/intro/getting-started/deploy.html#initializing-the-vault+
;;
demo)
docker-compose -f docker-compose... | jensenbox/singnet | tools.sh | Shell | mit | 3,166 |
startDir=$(pwd)
. ./setupDirectory.sh
cp ../packages/libwebp/libwebp.spec $RPM_DIR/SPECS/libwebp.spec
cp ../zips/libwebp-0.4.2.tar.gz $RPM_DIR/SOURCES/
cd $RPM_DIR
rpmbuild --define "_topdir `pwd`" -ba SPECS/libwebp.spec
. ${startDir}/copyAndRepo.sh
| Danack/BastionRPM | scripts/webp.sh | Shell | mit | 261 |
#!/bin/sh
# base16-shell (https://github.com/chriskempson/base16-shell)
# Base16 Shell template by Chris Kempson (http://chriskempson.com)
# Summerfruit Light scheme by Christopher Corley (http://christop.club/)
color00="FF/FF/FF" # Base 00 - Black
color01="FF/00/86" # Base 08 - Red
color02="00/C9/18" # Base 0B - Gree... | WojciechKo/dotfiles | base16-shell/scripts/base16-summerfruit-light.sh | Shell | mit | 3,958 |
#! /bin/sh
cd $HOME
sudo apt-get update && \
sudo apt-get upgrade && \
sudo apt-get autoremove && \
sudo apt-get autoclean
npm update -g
gem update
# update dotfiles
cd $HOME/.dotfiles
if [ -z "$(git status --untracked-files=no --porcelain)" ]; then
git pull
fi
# update password store
cd $HOME/.password-s... | firemound/dotfiles | scripts/commands/update_system.sh | Shell | mit | 404 |
headsha=$(git rev-parse --verify HEAD)
echo "Commit sha is: $headsha"
BASE_REPO=demos.hub.polyverse.io
echo "Building the PWP container...."
GOOS=linux CGO_ENABLED=0 go build api.go
docker build \
-f Dockerfile.pwp \
-t $BASE_REPO/pwp \
-t $BASE_REPO/pwp:$headsha \
.
docker push $BASE_REPO/pwp
docker push $... | polyverse-security/play-with-polyverse | build-pwp.sh | Shell | mit | 357 |
#!/usr/bin/env sh
# This is called by `.travis.yml` via Travis CI.
# Travis supplies $TRAVIS_OS_NAME.
# http://docs.travis-ci.com/user/multi-os/
# Our .travis.yml also defines:
# - SHARED_LIB=ON/OFF
# - STATIC_LIB=ON/OFF
# - CMAKE_PKG=ON/OFF
# - BUILD_TYPE=release/debug
# - VERBOSE_MAKE=false/true
# - VERB... | Streamlet/GoogleHelper | Source/External/jsoncpp/travis.sh | Shell | mit | 748 |
#! /bin/bash
#
# Author: Bert Van Vreckem <bert.vanvreckem@gmail.com>
#
# Run a syntax check on ansible/site.yml
set -e # abort on nonzero exitstatus
set -u # abort on unbound variable
#{{{ Variables
script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
#}}}
# Script proper
${script_dir}/playbook.sh ${... | bertvv/lampstack | scripts/syntax-check.sh | Shell | mit | 368 |
!#/bin/bash
docker build -t restaurant-service-flask . && \
docker run -p 8080:8080 restaurant-service-flask gunicorn start:app -w 3 -b :8080
| Kalimaha/restaurant-service-flask | bin/start.sh | Shell | mit | 143 |
#!/usr/bin/env bash
set -x
cat > /etc/yum.repos.d/epel.repo << EOM
[epel]
name=epel
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-22&arch=\$basearch
enabled=1
gpgcheck=0
EOM
cat > /etc/yum.repos.d/remi.repo << EOM
[remi]
name=remi
mirrorlist=http://rpms.famillecollet.com/fedora/22/remi/mirror
ena... | webhippie/vagrant | scripts/fedora/22/base.sh | Shell | mit | 616 |
#!/bin/bash
id=$1
n=$2
name=$3
long=$4
cd /tmp/$id
mid=`echo $name | awk -F "__" '{print $1}'`
echo $mid
if [[ "$name" == "start" ]] || [[ "$mid" == "mid" ]] || [[ "$name" == "end" ]] ; then
ffmpeg -v quiet -y -loop 1 -i /tmp/black640x480.png -t $long -pix_fmt yuv420p -vcodec libx264 $n".mp4"
else
ffmpeg -y -a... | spacemm/bbbBuildVideo | scripts/buidcam.sh | Shell | mit | 379 |
#!/bin/sh
#
# Vim
#
# This installs NeoBundle for mac
cd $HOME
curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
mkdir -p $HOME/.vim/backups
| larrybolt/dotfiles | vim/install.sh | Shell | mit | 179 |
python ../scripts/parse_comparison.py --main_report_path_template /Users/Bowman/Drive/MultiNLI/MultiGenre\ NLI/Tree\ Reports/Dev\ and\ PTB/sweep_tree_analysis_enc_fix_nli_ChoiPyramid_b_\*0.report --ptb_report_path /Users/Bowman/Drive/MultiNLI/MultiGenre\ NLI/Tree\ Reports/Dev\ and\ PTB/sweep_tree_analysis_enc_fix_nli_C... | nyu-mll/spinn | scripts/run_all_parse_comparisons.sh | Shell | mit | 4,284 |
#!/usr/bin/env bash
source $HOME/.homesick/repos/runcom/rc.common
source $HOMESHICK_REPOS/homeshick/completions/homeshick-completion.bash
GIT_PS1_SHOWDIRTYSTATE=1
#GIT_PS1_SHOWSTASHSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWCOLORHINTS=1
source $rcfiles/utils/git-completion.bash
source $rcfiles/utils/git-prompt... | goude/runcom | rc.bash | Shell | mit | 768 |
mkdir temp
cd temp
cmake .. -DCMAKE_INSTALL_PREFIX=../build_macos
make
make install
cd ..
rm -rf temp
| KVADRO/netCards | shared/build_macos.sh | Shell | mit | 115 |
die() { echo "$@" 1>&2 ; exit 1; }
kcadm=$JBOSS_HOME/bin/kcadm.sh
output=/var/opt/keycloak
realm=$KC_REALM_NAME
[ -z "$realm" ] && die "Realm not set. Beware to call this script with Make!"
#########################################
# Login
#########################################
$kcadm config credentials --server ... | ncarlier/keycloak-todomvc | keycloak/setup.sh | Shell | mit | 4,858 |
#!/usr/bin/env bash
#
# Copyright (c) 2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
export LC_ALL=C.UTF-8
export HOST=x86_64-w64-mingw32
export PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-b... | aurarad/auroracoin | ci/test/00_setup_env_win64.sh | Shell | mit | 459 |
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
printf "\nCheck without --all doesn't read malformed @flow file\n"
assert_ok "$FLOW" check --strip-root .
printf "\nCheck with --... | samwgoldman/flow | tests/malformed_code/test.sh | Shell | mit | 395 |
#!/bin/bash
# version of your package
VERSION_libzip=1-5-2
# dependencies of this recipe
DEPS_libzip=()
# url of the package
URL_libzip=https://github.com/nih-at/libzip/archive/rel-${VERSION_libzip}.zip
# md5 of the package
MD5_libzip=e5d917a79134eba8f982f7a32435adc4
# default build path
BUILD_libzip=$BUILD_PATH/l... | opengisch/OSGeo4A | recipes/libzip/recipe.sh | Shell | mit | 1,214 |
#!/bin/bash
# boost expects to find python headers in $PREFIX/include/pythonX.Y
# but on python3, they're often in $PREFIX/include/pythonX.Ym
# so we make a soft link if the "m" include directory exists
# and the other doesn't.
# (This only effects the miniconda _build env, so it doesn't mess
# with any user's actual... | danielparton/omnia-md-conda-recipes | boost/build.sh | Shell | mit | 1,310 |
function configure_powerline() {
local -n __var=$1
if [ -x /usr/bin/powerline-daemon ]
then
/usr/bin/powerline-daemon -q
export POWERLINE_BASH_CONTINUATION=1
export POWERLINE_BASH_SELECT=1
_bashy_before_thirdparty
# shellcheck source=/dev/null
source /usr/share/powerline/bindings/bash/powerline.sh
_bas... | veltzer/bashy | plugins/powerline.bash | Shell | mit | 416 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.