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 |
|---|---|---|---|---|---|
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Zle-Builtins
# http://zsh.sourceforge.net/Doc/Release/Zsh-Line-Editor.html#Standard-Widgets
# Make sure that the terminal is in application mode when zle is active, since
# only then values from ... | devnall/oh-my-zsh | lib/key-bindings.zsh | Shell | mit | 2,921 |
#!/bin/sh
notifier_info() {
echo "`date "+%F %T"` INFO $1"
}
notifier_debug() {
echo "`date "+%F %T"` DEBUG $1"
}
notifier_error() {
echo "`date "+%F %T"` ERROR $1"
}
notifier_warn() {
echo "`date "+%F %T"` WARN $1"
}
| alinmear/docker-conanexiles | src/var/lib/conanexiles/notifier.sh | Shell | mit | 238 |
#!/usr/bin/env bash
###############################################################################
# General
###############################################################################
# Set appearance
# Blue : 1
# Graphite : 6
defaults write NSGlobalDomain AppleAquaColorVariant -int 6
# # Highlight color
#... | drvdijk/dotfiles | macos/system/general.sh | Shell | mit | 2,154 |
#!/bin/sh
sudo apt-get update
sudo apt-get upgrade
sudo cp etc/modprobe.d/alsa-base.conf /etc/modprobe.d/
sudo apt-get install $(cat packages | tr "\n" " ")
sudo apt-get install python-distutils-extra
sudo apt-get install python-pyrex
sudo apt-get install libffi5 libffi-dev
#sudo pip install python-pyrex
sudo pip ins... | anuwish/sesame-melody | bootstrap/bootstrap.sh | Shell | mit | 610 |
export GRADLE_HOME=$HOME/dev-tools/gradle-1.8/bin | leggetter/dotfiles | gradle/env.zsh | Shell | mit | 49 |
#!/bin/bash
#ocaml
type opam >/dev/null 2>&1 || \
{ \
echo >&2 "installing Ocaml";
sudo apt-get install -y software-properties-common > /dev/null 2>&1
sudo add-apt-repository -y ppa:avsm/ppa > /dev/null 2>&1
sudo apt-get update > /dev/null 2>&1
sudo apt-get install -y curl build-essential m4 ocaml opam > /de... | cromulus/exercism_vagrant | bootstrap.sh | Shell | mit | 1,753 |
#!/bin/bash
echo "cleaning sites config"
rm /etc/nginx/conf.d/*
echo "generating sites config for CNAME"
/home/pages/webhook/helper/generate_sites.py
echo "reloading nginx"
/usr/sbin/nginx -s reload
| YuMS/gitlab-ce-pages | src/helper/generate_sites.sh | Shell | mit | 199 |
. "$IMAGEDIR/config.sh"
POINTVER=9.0
RELEASE=http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-stream-release-${POINTVER}-5.el9.noarch.rpm
BASEURL=http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/
# CentOS >8 does not seem to have an updates repo, so this variable is used to
# add AppS... | vpsfreecz/build-vpsfree-templates | images/centos-9-stream/build.sh | Shell | mit | 674 |
# Install/unInstall package files in LAMMPS
if (test $1 = 1) then
cp fix_qeq_comb.cpp ..
cp pair_adp.cpp ..
cp pair_airebo.cpp ..
cp pair_bop.cpp ..
cp pair_comb.cpp ..
cp pair_eam.cpp ..
cp pair_eam_alloy.cpp ..
cp pair_eam_fs.cpp ..
cp pair_eim.cpp ..
cp pair_lcbop.cpp ..
cp pair_rebo.cpp ..
... | jcarlson23/lammps | src/MANYBODY/Install.sh | Shell | gpl-2.0 | 1,428 |
#!/bin/bash -xe
case "$1" in
master)
if ! test -e /usr/src/app/.dbcreate ; then
buildbot create-master /usr/src/app/master
touch /usr/src/app/.dbcreate
fi
exec buildbot start --nodaemon /usr/src/app/master
;;
slave)
if ! test -e /usr/src/app/.dbcreate ; then
buildslave create-slave buildarea buildbot.pytho... | dmlb2000/buildbot | runit.sh | Shell | gpl-2.0 | 358 |
#!/bin/sh
set -ev
fac new-radial-lj.mkdat new-radial-wca.mkdat # new-bh-radial-wca.mkdat new-bh-radial-lj.mkdat
# ../../../src/new-radial-lj.mkdat
# ./new-radial-wca.mkdat DENSITY TEMPERATURE
rq run -J radial-6-10 --mem 88 -o new-data/radial-wca-0.6000-10.00.out ./new-radial-wca.mkdat 0.6 10.0
rq run -J radial-6... | droundy/deft | papers/fuzzy-fmt/figs/run-new-radial.sh | Shell | gpl-2.0 | 4,884 |
#!/bin/sh
. ./test-lib.sh
t_plan 29 "keepalive does not clear Rack env prematurely for $model"
t_begin "setup and start" && {
rainbows_setup
rtmpfiles curl_out curl_err
echo "preload_app true" >> $unicorn_config
rainbows -D close-has-env.ru -c $unicorn_config
rainbows_wait_start
}
req_pipelined () {
pfx=$1
t_... | benmyles/rainbows-gc | t/t0050-response-body-close-has-env.sh | Shell | gpl-2.0 | 1,949 |
#!/bin/sh
cd $(dirname $0)
cd ../complete
mvn clean package
ret=$?
if [ $ret -ne 0 ]; then
exit $ret
fi
java -jar target/gs-maven-0.1.0.jar | tail -1 > target/actual.txt
echo "Let's look at the actual results: `cat target/actual.txt`"
echo "And compare it to: `cat ../test/expected.txt`"
if diff -w ../test/expe... | langzi0/playground | test/run.sh | Shell | gpl-2.0 | 579 |
#!/bin/bash
#
# Adrian Likins <alikins@redhat.com>
#
# GPL v2
#
# cert-diff cert1.pem cert2.pem
FILE1="${1}"
FILE2="${2}"
# FIXME: should be no need for temp files, but git diff doesnt seem to like process sub
DIFF_OPTIONS="--minimal --histogram"
GIT_WORD_DIFF="git --no-pager diff --color-words --no-index ${DIFF_OP... | alikins/cert-diff | cert-diff.sh | Shell | gpl-2.0 | 2,145 |
#!/bin/bash
set -e
if [ $# -lt 2 ]; then
echo "Usage: $0 <wifilog> <cleanlog>"
exit -1
fi
httplog=$1
output=$2
echo "Output file:" $output
# build with java 6 to be compatible with our Spark cluster
sbt -java-home $(/usr/libexec/java_home -v '1.6*') assembly
APP_NAME="cn.edu.sjtu.omnilab.cobac.CleanseWifilogJob"
... | OMNILab/COBAC | mergetags/bin/test_cleanse_wifilog.sh | Shell | gpl-2.0 | 548 |
#install all pre-reqs
yum -y install gcc libacl-devel libblkid-devel gnutls-devel \
readline-devel python-devel gdb pkgconfig krb5-workstation \
zlib-devel setroubleshoot-server libaio-devel \
setroubleshoot-plugins policycoreutils-python \
libsemanage-python setools-libs-python setools-libs \
popt-devel... | andysturrock/Samba4-ActiveDirectory | setup_samba.sh | Shell | gpl-2.0 | 8,648 |
#!/bin/sh
#
# Copyright (C) 2009-2011 OpenWrt.org
#
AR71XX_BOARD_NAME=
AR71XX_MODEL=
ar71xx_get_mtd_offset_size_format() {
local mtd="$1"
local offset="$2"
local size="$3"
local format="$4"
local dev
dev=$(find_mtd_part $mtd)
[ -z "$dev" ] && return
dd if=$dev bs=1 skip=$offset count=$size 2>/dev/null | hex... | lbschenkel/openwrt | target/linux/ar71xx/base-files/lib/ar71xx.sh | Shell | gpl-2.0 | 15,384 |
#!/bin/bash
export MINI_LOG_NAME=${MACHINE_NAME}-apavlo-${MONGO_TYPE}
if [ ${MONGO_TYPE} == "tokumx" ]; then
LOG_NAME=${MINI_LOG_NAME}-${MONGO_COMPRESSION}-${MONGO_BASEMENT}.log
else
LOG_NAME=${MINI_LOG_NAME}.log
fi
export MONGO_LOG=${LOG_NAME}.mongolog
rm -f $LOG_NAME
echo "`date` | starting t... | Percona-QA/toku-qa | tokudb/software/mongodb/apavlo-compression-test/run.load.bash | Shell | gpl-2.0 | 4,363 |
#!/bin/bash
. $(dirname $0)/include.rc
. $(dirname $0)/volume.rc
function pidgrep()
{
ps ax | grep "$1" | awk '{print $1}' | head -1
}
## Start glusterd
glusterd;
pidof glusterd;
$CLI volume info;
mkdir -p $B0/brick1/brick $B0/brick2/brick;
## Lets create volume
$CLI volume create $V0 $H1:$B0/brick1/brick $H... | raghavendra-talur/gluster-helpscripts | createlocal211dist.sh | Shell | gpl-2.0 | 392 |
#!/bin/bash
# Copyright (c) 2015 by Roderick W. Smith
# Licensed under the terms of the GPL v3
echo -n "Enter a Common Name to embed in the keys: "
read NAME
openssl req -new -x509 -newkey rsa:2048 -subj "/CN=$NAME PK/" -keyout PK.key \
-out PK.crt -days 3650 -nodes -sha256
openssl req -new -x509 -newkey rsa:... | fccagou/tools | sec/mkkeys.sh | Shell | gpl-2.0 | 1,757 |
#! /bin/sh
# Copyright (C) 2011-2022 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 ... | autotools-mirror/automake | t/txinfo-unrecognized-extension.sh | Shell | gpl-2.0 | 1,228 |
#!/bin/bash
# Path to build your kernel
k=~/kernel/m7-443
# Directory for the any kernel updater
t=$k/packages
# Date to add to zip
today=$(date +"%m_%d_%Y")
# Clean old builds
echo "Clean"
rm -rf $k/out
# make clean
# Setup the build
cd $k/arch/arm/configs/BBKconfigs
for c in *
do
... | brymaster5000/m7-443 | build_m7_kernel_buck.sh | Shell | gpl-2.0 | 1,494 |
#/bin/bash!
MODULES_PATH="/lvwnet/modules"
CONFIG_PATH="/lvwnet/config"
MAC_CONTROLLER=$(cat ${CONFIG_PATH}/controller_mac)
NIC="ens3"
echo "LVWNet controller MAC address: [${MAC_CONTROLLER}] "
X_POS=100
Y_POS=200
Z_POS=300
POWER_TX_DBM=20
SENS_RX_DBM=-75
insmod ${MODULES_PATH}/lvwnet_node.ko \
ethernic_name=${NIC}... | lvwnet/main | scripts/insmod_lvwnet_virtual_node.sh | Shell | gpl-2.0 | 595 |
#! /bin/sh
# Copyright (C) 2008-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 ... | Starlink/automake | t/instfail-java.sh | Shell | gpl-2.0 | 1,442 |
#!/bin/bash
readonly RED="\033[0;31m"
readonly GREEN="\033[0;32m"
readonly BLUE="\033[38;5;27m"
readonly MAGENTA="\033[0;35m"
readonly CYAN="\033[0;36m"
readonly PURPLE="\033[38;5;63m"
readonly ORANGE="\033[38;5;208m"
readonly RED_BOLD="\033[1;31m"
readonly GREEN_BOLD="\033[1;32m"
readonly BLUE_BOLD="\033[1;38;5;27m"
r... | eric-gunn/site-config | site.sh | Shell | gpl-2.0 | 7,768 |
declare -Ag SL_WIDGETS_STATUS
declare -Ag SL_WIDGETS_NOTIFY
declare -Ag SL_WIDGETS_SETDATA
# Name of widget => Name of widgets status array
SL_WIDGETS_STATUS=(
["date.sh"]="SL_WSTATUS_DATE"
#["git.sh"]="SL_WSTATUS_GIT"
["bat.sh"]="SL_WSTATUS_BAT"
["path.sh"]="SL_WSTATUS_PATH"
["session.sh"]="SL_WSTATUS_SESS... | forflo/shellyCode | bashcode/widgets/wconf.sh | Shell | gpl-2.0 | 688 |
#!/bin/bash
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
PROJECT_DIRNAME="$(basename "$(dirname "$(dirname "$(readlink -f "$0")")")")"
cd "$SCRIPT_DIR/../../"
test -x "$(which makeself)" && MAKESELF="$(which makeself)"
test -x "$(which makeself.sh)" && MAKESELF="$(which makeself.sh)"
test -x "makeself-2... | Cybolic/LinReaper | build/create_package.sh | Shell | gpl-2.0 | 1,300 |
#!/bin/sh
/etc/init.d/monitor stop
/etc/init.d/monitor slay
/etc/init.d/merlind stop
| ageric/merlin | apps/libexec/stop.sh | Shell | gpl-2.0 | 86 |
#! /bin/sh
# Copyright (C) 2001-2018 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 ... | komh/automake-os2 | t/werror.sh | Shell | gpl-2.0 | 875 |
# Common code fragment for tests
#
BUILDDIR=`pwd`
SRCDIR=`dirname $0`
SRCDIR=`cd $SRCDIR && pwd`
TOPSRCDIR=`cd $srcdir/.. && pwd`
TOOLS=`cd ../tools && pwd`
IMAGES="${SRCDIR}/images"
# Aliases for built tools
BMP2TIFF=${TOOLS}/bmp2tiff
FAX2PS=${TOOLS}/fax2ps
FAX2TIFF=${TOOLS}/fax2tiff
GIF2TIFF=${TOOLS}/gif2tiff
PAL2RG... | scs/uclinux | lib/libtiff/tiff-4.0.0beta3/test/common.sh | Shell | gpl-2.0 | 1,468 |
#!/bin/bash
N=20
# name of configuration, e.g.1:1 2:1 10:1
CONF="2:1"
TASK="task5.txt"
PROB=(0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0)
echo "TASK: 0 green sourceA sinkA 1 0.0545 10.0" > ${TASK}
echo "TASK: 0 blue sourceB sinkB 1 0.0055 10.0" >> ${TASK}
for ((j=0;j<11;j++))
do
for ((i=1;i<=N;i++))
do
P... | rtv/autolab-fasr | run_experiment5.sh | Shell | gpl-2.0 | 477 |
#!/usr/bin/bash
# compile One (annotated JDK source file) At A Time
# Debugging
PRESERVE=1 # option to preserve intermediate files
# parameters derived from environment
# TOOLSJAR and CTSYM derived from JAVA_HOME, rest from CHECKERFRAMEWORK
JSR308="`cd $CHECKERFRAMEWORK/.. && pwd`" # base directory
WORKDIR="${CHE... | pbsf/checker-framework | checker/jdk/oaat.sh | Shell | gpl-2.0 | 3,052 |
#!/bin/sh
# -------------------------------------------------------------------------------------------
# This script downloads logback and swagger-ui components (via curl) to the current directory and
# copies the components into appropriate jetty deployment directories.
if [ -z "${JETTY_BASE}" ] | [ ! -d "${JETTY_B... | fcollman/render | render-ws/src/main/scripts/jetty/configure_web_server.sh | Shell | gpl-2.0 | 3,338 |
#!/bin/bash
# =====================================================================================================
# Copyright (C) steady.sh v1.2 2016 iicc (@iicc1)
# =====================================================================================================
# This program is free software: you can redistrib... | ttebbllaasstteerr/Firebot | steady.sh | Shell | gpl-2.0 | 19,932 |
#!/bin/bash
# Script to add a user to Linux system
if [ $(id -u) -eq 0 ]; then
read -p "Enter username : " username
read -s -p "Enter password : " password
egrep "^$username:" /etc/passwd >/dev/null
if [ $? -eq 0 ]; then
echo "$username exists!"
exit 1
... | muhilvannan/Linux-Config-Scripts | create-user.sh | Shell | gpl-2.0 | 1,361 |
#!/bin/sh
# Copyright (C) 1999-2005 ImageMagick Studio LLC
#
# This program is covered by multiple licenses, which are described in
# LICENSE. You should have received a copy of LICENSE with this
# package; otherwise see http://www.imagemagick.org/script/license.php.
. ${srcdir}/tests/common.shi
${RUNENV} ${MEMCHECK} ... | atmark-techno/atmark-dist | user/imagemagick/tests/rwblob_BMP_truecolor.sh | Shell | gpl-2.0 | 364 |
#!/bin/sh
git submodule init
git submodule update
rm -rf lib/RF24Network/tests
rm -rf lib/RF24Network/RPi
rm -rf lib/RF24Network/examples
rm -rf lib/RF24/examples_RPi
rm -rf lib/RF24/RPi
rm -rf lib/RF24/tests
rm -rf lib/RF24/examples
| zarya/NrfSensorNode | install.sh | Shell | gpl-2.0 | 234 |
#!/bin/bash
python create_robolog_dataset.py --config_file robolog.cfg -d
| Juxtapose-Technologies/Robolog | client/create_robolog_dataset.sh | Shell | gpl-3.0 | 75 |
#!/bin/bash
mkdir midilooper
mkdir midilooper/library
cp COPYING midilooper
cp README midilooper
cp -R src midilooper
cp -R examples midilooper
cd src
javac -classpath "../lib/rwmidi-0.1c.jar" midilooper/*.java
jar cvf ../midilooper/library/midilooper.jar midilooper/*.class
cd .. | heuermh/midi-looper | build-library.sh | Shell | gpl-3.0 | 281 |
#!/bin/bash
python RunBootstrap.py --paralog1 YBR191W --paralog2 YPL079W --bootnum 41 > YBR191W_YPL079W_Boot41_PrintScreen.txt
| xjw1001001/IGCexpansion | Bootstrap/ShFiles/MG94_YBR191W_YPL079W_Boot41.sh | Shell | gpl-3.0 | 128 |
#!/usr/bin/env bash
echo "Hello this is first attempt to run linchpin provisioning in github actions"
VERSION_ID=$(cat /etc/*release | grep ^VERSION_ID | tr -d 'VERSION_ID="')
echo $VERSION_ID
if [ $VERSION_ID = "7" ]
then
echo "This is centos7";
export LC_ALL="en_US";
export LANG="en_US";
fi
linchpin... | samvarankashyap/linch-pin | .github/run_libvirt_mocktests.sh | Shell | gpl-3.0 | 743 |
#!/bin/bash
make
folder=`zenity --file-selection --directory --title="Select Source Directory"`
dest=`zenity --file-selection --directory --title="Select Destination Directory"`
if [ -z $dest ]
then
zenity --error --title="Destination" --text="Not Found"
exit 1
fi
files=`ls $folder/* `
if [ ! -e fldrcomp ]
then
mkd... | tvvikram/college | others/compression/folder.sh | Shell | gpl-3.0 | 566 |
#!/bin/sh
. ~/workspace/rs-testbed/scripts/ssh/config
HOST=$1
PID=`ssh $HOST cat $PID_FILE`
ssh $HOST ps aux | grep $PID | grep bgpd > /dev/null
echo `expr 1 - $?`
| sspies8684/hoofprints | scripts/ssh/quagga/ssh_quagga_is_running.sh | Shell | gpl-3.0 | 168 |
# !/usr/bin/env bash
# *** NEW! *** the digital script should be used for dlwork and porter ****
# NOT this script! This is just for legacy info and is temporary
#
# this script is for the 1st server to be updated to head.
# That update is tested before updating the other server(s).
#
UPDATE_EXEC_DIR=`pwd`
TODAY... | pc37utn/islandupdate | dlwork-islandupdate.sh | Shell | gpl-3.0 | 11,895 |
#!/bin/sh
# The perf framework should set the ECLIPSE environment variable
# Try "eclipse" if ECLIPSE is not defined
ECLIPSE="${ECLIPSE:-eclipse}"
GAME_FILE=$1
OUTPUT_FILE=$2
SECONDS_TO_RUN=$3
${ECLIPSE} -g 512M -b "bin/main_perf" -e "main_perf:run_perf_test(\"${GAME_FILE}\", \"${OUTPUT_FILE}\", ${SECONDS_TO_RUN})"
| AlexLandau/fluxplayer-prolog-engine | start_perf_test.sh | Shell | gpl-3.0 | 320 |
aws s3 sync dist/ s3://lowside.aksels.app
| lowsideio/web-frontend | ops/publish.sh | Shell | gpl-3.0 | 42 |
#!/bin/bash
PWYTTER_HOME=/opt/pwytter-0.8
cd $PWYTTER_HOME
exec python2.7 ./pwytter.py
| jmanoel7/my_shell_scripts | bin/pwytter.sh | Shell | gpl-3.0 | 87 |
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: $0 [in app] [out img] [src dir]";
echo "[in app] path to Vespucci.app";
echo "[out img] path to DMG file to create";
echo "[src dir] location of README, etc.";
fi
appDir=$1
outImg=$2
srcDir=$3
#prepare a folder to create a disk image from.
dmgDir=/tmp/dmgdir
... | VespucciProject/Vespucci | createdmg.sh | Shell | gpl-3.0 | 579 |
#!/usr/bin/env bash
# first, go to mycloud and export the share as NFS
# then, uncover the shares with: showmount -e server
# if lsmod | grep nfs does not return 0, you may have updgraded the kernel. reboot.
# you can test this with modprobe nfs
cloud_filipe=~/julicloud/filipe
cloud_eve=~/julicloud/eve
cloud_public... | ninrod/dotfiles | options/ubuntu/scripts/julicloud.sh | Shell | gpl-3.0 | 618 |
#!/bin/bash
pushd "$BACKUP_LOCAL_DIR"
if [ ! -d './.git' ] ; then
echo -e "Not a git repository.\nInitializing"
git init
fi
git add -A .
git commit -m "Backup"
popd
| makkrnic/admin-scripts | backups/git-actions.sh | Shell | gpl-3.0 | 173 |
#!/bin/bash
# get the scripts path
SCRIPT=`realpath -s $0`
SCRIPTPATH=`dirname $SCRIPT`
# set the path for the python
#lpython=/home/xiaoh/Downloads/compiler/intel/intelpython27/bin/python
#python=pypy
lpython=python
python=python
#######################################
# parse the args
#############################... | Rinoahu/POEM | bin/run_poem.sh | Shell | gpl-3.0 | 7,391 |
#!/bin/bash
set -e
pegasus_lite_version_major="4"
pegasus_lite_version_minor="7"
pegasus_lite_version_patch="0"
pegasus_lite_enforce_strict_wp_check="true"
pegasus_lite_version_allow_wp_auto_download="true"
. pegasus-lite-common.sh
pegasus_lite_init
# cleanup in case of failures
trap pegasus_lite_signal_int INT
trap... | elainenaomi/sciwonc-dataflow-examples | dissertation2017/Experiment 1B/logs/w-11-A/20161203T122321+0000/00/00/calculateratio_6_ID0000021.sh | Shell | gpl-3.0 | 1,252 |
#!/usr/bin/env bash
#
# Common set of functions used by modules
# Copyright (c) 2010-2016 Plowshare team
#
# This file is part of Plowshare.
#
# Plowshare 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... | mcrapet/plowshare | src/core.sh | Shell | gpl-3.0 | 132,446 |
#!/bin/bash
xset r rate 300 30 | co-rkscrew/linux | packages/cscrew-xorg-1.0.0/root/etc/X11/xinit/xinitrc.d/90-kb.sh | Shell | gpl-3.0 | 30 |
#!/bin/bash
if [ -z $1 ]; then printf "\nSyntax $0 1.1.1.1 80\n\n"
else
for i in $(seq 1 20); do
sudo hping3 -S -c 1 -n -t $i -p $2 $1 2>&1 | grep 'ip=' | sed "s/^/$i /g";
done
fi
| jnqpblc/Randomness | 2.discovery/tcp_traceroute.sh | Shell | gpl-3.0 | 188 |
#! /bin/sh
## This file is part of AutoOpts, a companion to AutoGen.
## AutoOpts is free software.
## AutoOpts is Copyright (C) 1992-2016 by Bruce Korb - all rights reserved
##
## AutoOpts is available under either of two licenses. The license
## in use must be one of these two and the choice is under the contro... | pexip/os-autogen | autoopts/install-hook.sh | Shell | gpl-3.0 | 4,011 |
#!/bin/sh
#
# ogn.sh
#
# Copyright (C) 2019-2022 Linar Yusupov
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Th... | lyusupov/SoftRF | software/utils/ogn.sh | Shell | gpl-3.0 | 953 |
#!/usr/bin/env bash
svn checkout http://develop.svn.wordpress.org/tags/${WP_VERSION} ${WP_TESTS_DIR}
mysql -e "CREATE DATABASE IF NOT EXISTS test_db;"
cp ${WP_TESTS_DIR}/wp-tests-config-sample.php ${WP_TESTS_DIR}/wp-tests-config.php
sed -i 's/youremptytestdbnamehere/'${DB_NAME}'/' ${WP_TESTS_DIR}/wp-tests-config.php
s... | clubdeuce/wplib-olm-juicer | tests/run_tests.sh | Shell | gpl-3.0 | 600 |
#!/bin/sh
cat << EOF | gnuplot -p
set xdata time
set timefmt "%Y-%m-%d %H:%M:%S"
set format x "%d/%m\n%H:%M"
plot \
"$1" using 1:4 title "$1" with line, \
"$1" using 1:(\$5*10) title "$1" with line
EOF
| e5150/msdec | plot-ac.sh | Shell | gpl-3.0 | 204 |
#!/bin/bash
#/**
#@file mountrepo.sh
#@brief Script para montar el repositorio de datos remoto.
#@warning License: GNU GPLv3+
#@version 1.0
#@author Ramon Gomez, ETSII Universidad de Sevilla
#@date 2011-03-17
#*/
OGIMG=${OGIMG:-/opt/opengnsys/images}
ROOTREPO=${ROOTREPO:-"$ROOTSERVER"}
# TODO Revisar proceso... | DreamaerD/Opengnsys | client/shared/etc/preinit/mountrepo.sh | Shell | gpl-3.0 | 1,983 |
#!/bin/bash
function doSql_sqlite() {
sqlite3 "${SQLITE_FILE-build/videostreaming.sqlite}"
}
function doSql_psql() {
psql -A -t -h localhost -p 5432 "${PG_DB_NAME-videostreaming}" "${PG_USERNAME-videostreaming}"
}
function bool_sqlite() {
if test "$1" == "true"; then
echo 1
else
echo 0
fi
}
func... | GuLinux/Pandorica | scripts/sql_common.sh | Shell | gpl-3.0 | 353 |
#!/bin/sh
autoreconf --install
# vim:ts=2:sw=2:sts=2:et:ft=sh
| AndyA/ts-split | bootstrap.sh | Shell | gpl-3.0 | 64 |
#!/bin/bash
# Processes files from Matt for use in ILP.
# This script works on the submodules derived from random subnets.
# First, generates the submodules file
# Generates simple IDs for submodules:
# Example: Induced_.....s..S..._cdc14_Induced_Amplified
# Pattern (_-delimited)
# Induced/repressed
# Motif string
... | mmacgilvray18/Phospho_Network | phospho_subnet/scripts/step1R_gen_rand_input_data.sh | Shell | gpl-3.0 | 3,715 |
#!/bin/bash
COMPILER=llvm
ILCSOFT=/cvmfs/clicdp.cern.ch/iLCSoft/builds/current/CI_${COMPILER}
source $ILCSOFT/init_ilcsoft.sh
cd /Package
mkdir build
cd build
cmake -GNinja -C $ILCSOFT/ILCSoft.cmake -DCMAKE_CXX_FLAGS="-fdiagnostics-color=always" .. && \
ninja check-format
| dhynds/ConformalTracking | .travis-ci.d/check_format.sh | Shell | gpl-3.0 | 276 |
#!/bin/bash
<<COMMENT
Script que realiza una conexion con un servidor, obtiene sus cabeceras y
determina si hay o no conexion dependiendo del resultado.
curl -s -I -L:
-s => silent. No muestra ningun mensaje, error o barra de progreso
-I => solo coje la cabecera
-L => especificamos la url que tiene que se... | cgomeznt/CentOS | scripts/verificar_pagina_web.sh | Shell | gpl-3.0 | 3,146 |
#!/bin/sh
# boost, sdl2, freeimage
SDL2_INCLUDE=/Library/Frameworks/SDL2.framework/Headers/
g++ code/*.cpp lib/unzip/*.cpp lib/imgui/*.cpp -I SDL2_INCLUDE -I code/ -I lib/ltb/ -I lib/unzip/ -I lib/imgui/ -L SDL2 -Wall -Weffc++ -pedantic -Wno-unused-function -std=c++14 -D USE_SDL2 -o qbsploader.out
# g++ -I/Library... | Axodoss/QBSPLoader | build_mac.sh | Shell | gpl-3.0 | 576 |
#!/bin/bash
set -e
# ignore pull requests
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "Skipping push for pull requests"
exit 0
fi
# ignore non-master branches
if [ "$TRAVIS_BRANCH" != "master" ]; then
echo "Skipping push for non-master branches"
exit 0
fi
# login to docker hub
docker login -... | LTD-Beget/sprutio | travis/docker-push.sh | Shell | gpl-3.0 | 597 |
#!/bin/sh
##
## Nautilus
## SCRIPT: 00_numberOFlines_1file.sh
##
## PURPOSE: Shows the number of lines in a user-selected file.
##
## Shows the number in a 'zenity' popup.
##
## HOW TO USE: In Nautilus, navigate to a file, select it,
## right-click and choose this Nautilus script to run.
##
## Crea... | kernt/linuxtools | gnome3-shell/nautilus-scripts/System/File Info/EXAMINEfiles/Number-Of-Lines-In-1File.sh | Shell | gpl-3.0 | 1,533 |
#!/bin/sh
# device-mapper sector sizes are 512b, make sure partitions are the correct
# size when using larger sector sizes and a linear dm table.
# Copyright (C) 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 L... | glaubitz/parted | tests/t6006-dm-512b-sectors.sh | Shell | gpl-3.0 | 2,371 |
#!/bin/bash
set -eEuo pipefail
if [ "$#" -lt 1 ]; then
echo "Usage: $0 <output directory>"
exit 1
fi
DEST_DIR="$1"
mkdir -p "$DEST_DIR"
trap 'rm -rf "$DEST_DIR"' ERR
cd $DEST_DIR
cat << 'EOF' > intermediate.ext
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer
basicConstraints=critical, CA:TRUE, pat... | advancedtelematic/aktualizr | tests/sota_tools/authentication/generate-certs.sh | Shell | mpl-2.0 | 3,617 |
# terminate old instances
if [ -n "${OLD_INSTANCES}" ]; then
log "Now terminating instances" ${OLD_INSTANCES}...
aws --region "${REGION}" ec2 terminate-instances --instance-ids ${OLD_INSTANCES} >/dev/null 2>&1
else
log "No previous instances to terminate."
fi
# deregister old AMIs
if [ -n "${OLD_AMIS}" ]; then
... | petemoore/generic-worker | worker_types/delete.sh | Shell | mpl-2.0 | 925 |
#!/bin/bash
set -ex
# required env vars: CLUSTER_NAME, CONFIG_BRANCH, CONFIG_REPO, NAMESPACE,
# DEPLOYMENT_YAML, DEPLOYMENT_LOG_BASE_URL, DEPLOYMENT_NAME, DEPLOYMENT_VERSION
. ${BASH_SOURCE%/*}/../docker/bin/set_git_env_vars.sh # sets DEPLOYMENT_DOCKER_IMAGE
pushd $(mktemp -d)
git clone --depth=1 -b ${CONFIG_BRANCH:=m... | ericawright/bedrock | bin/update_config.sh | Shell | mpl-2.0 | 1,068 |
CURDIR=$1
# in Windows there sh.exe does not provide correct path for docker
if [ -z "$1" ]; then
CURDIR=$PWD
fi
docker run -it --env-file=.env --rm -v "$CURDIR":/gitrepo \
silverbulleters/sonar-history-runner
| silverbulleters-research/sonar-bring-me-back | sonar-history.sh | Shell | mpl-2.0 | 221 |
#
# moz-vs-common.sh
#
moz_vs() {
MOZ_TARGET_ENV="$1"
temp=`mktemp`
case "$MOZ_TARGET_ENV" in
2015|2015-64|vs2015-64)
/usr/share/moz-vs/moz-vs-get-values.py amd64 2015 > $temp
. $temp
;;
2015-32|vs2015-32)
/usr/share/moz-vs/moz-vs-get-values.py x86 2015 > $temp
. $temp
;;
2... | mozilla/moz-dev-contrib | windows/moz-vs/moz-vs.sh | Shell | mpl-2.0 | 695 |
#!/bin/bash -l
#PBS -l walltime=24:00:00,nodes=1:ppn=8,mem=42gb
#PBS -N bismark
#PBS -r n
#PBS -m abe
#PBS -M pcrisp@umn.edu
########## QC #################
set -xeuo pipefail
echo ------------------------------------------------------
echo -n 'Job is running on node '; cat $PBS_NODEFILE
echo ------------------------... | pedrocrisp/springerlab_methylation | SeqCap/02-bismark.sh | Shell | mpl-2.0 | 3,412 |
#!/bin/bash
# SAMPLE TOMCAT START SCRIPT
# THIS SCRIPT SHOULD WORK ON ALL DEBIAN-BASED LINUX DISTRIBUTIONS (DEBIAN, UBUNTU, MINT, ETC)
# FOR OTHER OPERATING SYSTEMS, YOU WILL NEED TO MODIFY THIS FILE
# REPLACE <tomcatbase>, <tomcathome> with appropriate entries for your installation
sudo date
output=`sudo service my... | dinoboy197/Appliance-Energy-Detector | infrastructure/tomcat/start.sh | Shell | agpl-3.0 | 852 |
#!/bin/bash
version="0.4.8"
target_dir="/Users/mk/Documents/__bitsquare/_releases/$version"
mac="Bitsquare-$version.dmg"
cp "/Users/mk/Documents/_intellij/bitsquare/gui/deploy/$mac" "$target_dir/"
cp "/Users/mk/Documents/_intellij/bitsquare/gui/deploy/SeedNode-$version.jar" "$target_dir/"
deb32="Bitsquare-32bit-$ve... | metabit/bitsquare | package/mac/finalize.sh | Shell | agpl-3.0 | 1,096 |
run_charmhub_download() {
echo
name="charmhub-download"
file="${TEST_DIR}/test-${name}.log"
ensure "test-${name}" "${file}"
output=$(juju download mysql --series xenial --filepath="${TEST_DIR}/mysql.charm" 2>&1 || true)
check_contains "${output}" "Fetching charm \"mysql\""
juju deploy "$... | wallyworld/juju | tests/suites/charmhub/download.sh | Shell | agpl-3.0 | 1,301 |
#!/bin/bash
set -e
set +h
function postinstall()
{
if ! grep apache /etc/group &> /dev/null; then
groupadd -g 25 apache &&
useradd -c "Apache Server" -d /srv/www -g apache \
-s /bin/false -u 25 apache
fi
}
preinstall()
{
echo "#"
}
$1
| FluidIdeas/parsers | blfs-resources/extrascripts/apache-appconfig.sh | Shell | lgpl-2.1 | 252 |
#!/bin/bash
#===============================================================================
#
# FILE: setup.sh
#
# USAGE: ./setup.sh
#
# DESCRIPTION:
#
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: humboldt (), humboldt-xie@163.com
... | humboldt-xie/xb | setup.sh | Shell | lgpl-3.0 | 750 |
#!/bin/bash
# source this script to setup compiler ENV
export BUILD=intel
export COMPILER="intel"
echo "Using Intel icc, icpc, and ifort compilers for all binary builds"
source /opt/intel/bin/compilervars.sh -arch intel64 -platform linux
export CC="icc"
export CXX="icpc"
export CPP="${CC} -E"
export F90="ifort"
e... | datareel/datareel | env/intel_env.sh | Shell | lgpl-3.0 | 817 |
#!/usr/bin/env bash
echo Title:
echo -e '\033[0;30m┆\033[0m level 1'
echo -e '\033[0;30m┆\033[0m [WARNING] utf-8 aïe'
echo -e '\033[0;30m┆\033[0m \033[0;30m┆\033[0m \033[1;33myellow level 2'
echo -e '\033[0;30m┆\033[0m \033[0;30m┆\033[0m \033[1;31m [WARNING]colored\033[0m message 2…'
echo ' END with sp... | geoffroy-aubry/Supervisor | tests/resources/bash_warning.sh | Shell | lgpl-3.0 | 373 |
#!/bin/bash
#Author: Tapas Sharma
#Version: 0.1
#Used for basic testing of the proxy
PROXY_STATSD_HOST="localhost"
PROXY_STATSD_PORT=8272
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
WAIT_BETWEEN_COMMAND=2
STATDS_OUT="statsd_server.out"
echo "Deleting $STATSD_OUT"
rm -rf $STATSD_OUT
#stop any statsd_proxy server running
pkil... | tapas-sharma/statsd-proxy | tests/start_test.sh | Shell | lgpl-3.0 | 2,105 |
# bash specific source filename...
TESTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PYTHONPATH=$(eval echo "$TESTDIR/../python/build/lib."*)
LD_LIBRARY_PATH="$TESTDIR/../.libs"
export LD_LIBRARY_PATH PYTHONPATH
| martinetd/space9 | src/tests/python-env.sh | Shell | lgpl-3.0 | 224 |
for i in FAST GFTT HARRIS MSER ORB SIFT STAR SURF
do
for j in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
do
./../../bin/Detectors ../../data/WATER.JPG ../../../../../../local/Olbitla/Classroom/Natural-Lighting/9MP-2992x2992/Water/IMG$j.JPG $i ../../../../../../local/Olbitla/Classroom/Natural-Lighting/9MP-2992x2992/Wat... | Olbitla/Evaluation-of-search-methods-OpenCV | build/Classroom/detWaterDist.sh | Shell | lgpl-3.0 | 2,121 |
#!/bin/bash
#xorgVars=`psgrep -a Xorg`
export DISPLAY=:0
export HOME="/home/`users | awk '{print $1}'`"
# Obtain the greeter cookie:
export XAUTHORITY=`ls /tmp/serverauth.*`
USER_MODMAP=$HOME/.Xmodmap
sleep 1 # sleep to allow udev finish loading the keyboard first
setxkbmap -layout us -variant altgr-intl -display "${... | 0nse/dotfiles | i3/.i3/scripts/loadKeyboardLayout.sh | Shell | lgpl-3.0 | 467 |
#!/bin/bash
#max 600
FOLDER="series"
TYPE=1
mkdir $FOLDER/
for i in {0..600}
do
wget -O $FOLDER/page$i.txt --load-cookies cookie.txt http://series.ly/scripts/catalogue/index.php?page=$i\&mediaType=1
sleep 1
done
rm $FOLDER/ids.txt
for i in $FOLDER/page*.txt
do
grep -o -P "/series/serie-(\S+)\"" $i >> $FOLDER/ids.t... | javipolo/seriesLyks | dev/series.sh | Shell | lgpl-3.0 | 556 |
#!/bin/bash
set -ueE -o pipefail
# If the tests succeed on the specified `DEPLOY_BRANCH`, then prepare git for deployment, and then run the `DEPLOY_COMMAND`.
# SCRIPT
#
# after_success:
# - eval "$(curl -fsSL https://raw.githubusercontent.com/bevry/awesome-travis/master/scripts/deploy-custom.bash)"
# CUSTOM ENVIRO... | balupton/awesome-travis | scripts/deploy-custom.bash | Shell | unlicense | 1,213 |
#!/bin/bash
while [ 1 ]
do
sudo upsc forza850@localhost
sleep 2
clear
done
| ddemuro/raspberrypi | scripts/bash/upsmon.sh | Shell | unlicense | 99 |
#!/bin/bash
# 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"); y... | phrocker/nifi-minifi-cpp | darwin.sh | Shell | apache-2.0 | 4,366 |
#!/bin/bash -eu
# Copyright 2016 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agree... | googlefonts/oss-fuzz | projects/skia/build.sh | Shell | apache-2.0 | 11,031 |
#!/bin/bash
_man "vu" "[vagrant] vagrant up"
_man "vh" "[vagrant] vagrant halt"
_man "vr" "[vagrant] reboot : first vagrant halt then vagrant up"
_man "vssh" "[vagrant] vagrant ssh"
# vagrant aliases
alias vu='vagrant up'
alias vh='vagrant halt'
alias vr='vh && echo "\n vh<- - - - - - - - - >vu \n" && vu'
alias vssh=... | leberger/baal-bash-alias | vagrant.sh | Shell | apache-2.0 | 356 |
#!/bin/bash
if [ ! -d "/usr/local/tremolo/tremolo-service/external/apps" ] ; then
echo "Copying apps"
cp -r /usr/local/tremolo/tremolo-service/apps /usr/local/tremolo/tremolo-service/external/
fi
if [ ! -d "/usr/local/tremolo/tremolo-service/external/conf" ] ; then
echo "Copying config"
cp -r /usr/local/tre... | TremoloSecurity/UnisonDocker | scripts/firstStart.sh | Shell | apache-2.0 | 1,123 |
#!/bin/bash
#
# Copyright Pravega 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... | pravega/pravega | test/system/Change_Docker_Config_Slave.sh | Shell | apache-2.0 | 753 |
#!/bin/bash
set -ex
while true ; do
for I in {0..50} ; do
dd if=/dev/urandom bs=1M count=10 2>/dev/null | tee /test/data${I}.data | md5sum > /test/data${I}.data.md5 &
done
wait
for I in {0..50} ; do
EXPECTED=$(cat /test/data${I}.data.md5 | awk '{print $0}')
ACTUAL=$(cat /test/data${I}.data | md5sum | awk '{pr... | amccurry/pack | test-scripts/basic-md5-concurrent-test.sh | Shell | apache-2.0 | 481 |
#!/usr/bin/env bash
# Here test1 and test2 must resolve to IP addresses, be it virtual interfaces
# on local machine or physical machines.
SERVERS=(test1)
DRIVERS=(test2)
KEYCLOAK_DIST=$HOME/workspace/keycloak/distribution/server-dist/target/keycloak-1.9.0.Final-SNAPSHOT.tar.gz
HOSTNAME=localhost
SETUP_ARGS="-Dtest.... | rvansa/keycloak-benchmark | src/test/resources/bin/example-properties.sh | Shell | apache-2.0 | 479 |
#!/bin/bash
base_dir="$GROUPEOSDIR/monoH4l/minitrees/mc15_13TeV_v1"
file_tag="mono2"
signal="${base_dir}/mc_341748_zphxx_mzp200_mx1_fullsim_${file_tag}.root"
ggF="${base_dir}/mc_PowhegPythia8EvtGen_CT10_AZNLOCTEQ6L1_ggH125_ZZ4lep_noTau_combined_${file_tag}.root"
VBF="${base_dir}/mc_PowhegPythia8EvtGen_CT10_AZNLOCTEQ6L1... | xju2/H4l | scripts/add_weight.sh | Shell | apache-2.0 | 1,099 |
#!/bin/bash
bin=`dirname "$0"`
bin=`cd "$bin"; pwd`
DIR=`cd $bin/../; pwd`
. "${DIR}/../bin/config.sh"
. "${DIR}/bin/config.sh"
echo "========== running ${APP} benchmark =========="
# path check
SIZE=`${DU} -s ${INPUT_HDFS} | awk '{ print $1 }'`
JAR="${DIR}/target/StronglyConnectedComponentApp-1.0.jar"
CLASS="src... | ibmsoe/spark-bench | StronglyConnectedComponent/bin/run.sh | Shell | apache-2.0 | 983 |
# -----------------------------------------------------------------------------
#
# Package : follow-redirects
# Version : 1.14.0
# Source repo : https://github.com/follow-redirects/follow-redirects
# Tested on : RHEL 8.3
# Script License: Apache License, Version 2 or later
# Maintainer : BulkPackageSearch Automation <... | ppc64le/build-scripts | f/follow-redirects/follow-redirects_rhel_8.3.sh | Shell | apache-2.0 | 3,102 |
#!/usr/bin/env bash
# Non-interactive cassandra-diagnostics installer.
FILE_COPYING_ERROR_EXIT_CODE=1
function print_usage() {
echo "Usage: $1 [OPTION]..."
echo "Automates installation of cassandra-diagnostics into existing Cassandra"
echo "installation."
echo ""
echo "Mandatory arguments:"
e... | smartcat-labs/cassandra-diagnostics | bash-installer/installer/non-interactive-installer.sh | Shell | apache-2.0 | 2,912 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.