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
set -e
mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt
> "$RESOURCES_TO_COPY"
XCASSET_FILES=()
case "${TARGETED_DEVICE_FAMILY}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
... | TsinHzl/GuiJiBao | APP_FK/Pods/Target Support Files/Pods-HuLaQuan/Pods-HuLaQuan-resources.sh | Shell | mit | 6,408 |
#!/usr/bin/env zsh
setopt extended_glob # needed for glob after --stow
STOW_DIR="$HOME/dotfiles" # Should be repo dir
TARGET_DIR=$HOME
stow \
--dir="$STOW_DIR" \
--target="$TARGET_DIR" \
--verbose \
--stow ^(deps|bin)*/ # matches dirs but not those with names containing deps & bin
| tetov/tetov-dotfiles | stow-script.sh | Shell | mit | 297 |
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the... | xyhuangjia/FitScreenKit | Example/Pods/Target Support Files/Pods-FitScreenKit_Tests/Pods-FitScreenKit_Tests-frameworks.sh | Shell | mit | 8,045 |
coffee -c slate.coffee
cp slate.js ~/.slate.js
echo Installation Complete. Restart Slate to activate changes. | kg4lod/coffee-slate | install.sh | Shell | mit | 109 |
#!/bin/sh
test -x /usr/local/sbin/backup-manager || exit 0
/usr/local/sbin/backup-manager
| hugoliv/backup-manager | backup-manager.sh | Shell | mit | 90 |
coffee --compile --watch .
| Piot/boardgamedb-server | src/compile.sh | Shell | mit | 28 |
#!/usr/bin/env bash
# create new VMWare virtual disks (.vmdks)
#set -x
set -e
if [[ -z "${vmdks}" ]]; then
vmdks=25
fi
VDISKMANAGER_OPTIONS="-s 64GB -t 0"
vmx="$(ls -1 *.vmx 2>/dev/null | head -n 1)"
if [[ ! -f "${vmx}" ]]; then
echo $0: No .vmx file found in $(pwd) >&2
exit 1
fi
vmdk="$(ls -1 *.vmdk 2>/de... | rasa/out-of-one-many | create-vmdks.sh | Shell | mit | 1,527 |
alias reload!='. ~/.zshrc'
alias python='python3'
zz () {
if (( $#==0 ))
then sleep 1200;
else
sleep $(($* * 60));
fi
osascript -e 'display notification "赶快走开" with title "休息时间"'
}
#### BEGIN: Touch To-Do Aliases ####
TTDDIR=~/Dropbox/Apps/Touch\ To-Do
# Add a single Touch To-Do i... | azalea/dotfiles | zsh/aliases.zsh | Shell | mit | 1,387 |
#!/bin/bash
cd /media/programming/Java/Discord\ Bots/CodeBot;
scp build/libs/* *.csv *.txt *.json mc:/Stuff/bots/CodeBot | ThePhisics101/CodeBot | copy.sh | Shell | mit | 122 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for RHSA-2014:0139
#
# Security announcement date: 2014-02-05 17:48:40 UTC
# Script generation date: 2017-01-01 21:15:10 UTC
#
# Operating System: Red Hat 6
# Architecture: i386
#
# Vulnerable packages fix on version:
# - libpurple.i686:2.7.9-27.el6
# - pidgin.... | Cyberwatch/cbw-security-fixes | Red_Hat_6/i386/2014/RHSA-2014:0139.sh | Shell | mit | 2,010 |
#!/bin/sh
echo "Bootstrapping ModModule"
# Choose correct libtoolize executable
if [ `uname -s` = Darwin ] ; then
# libtoolize is glibtoolize on OSX
LIBTOOLIZE=glibtoolize
else
LIBTOOLIZE=libtoolize
fi
# We require libtool 2 or newer, stop and inform if it is missing
libtool_major=`$LIBTOOLIZE --version | head... | francesco-mannella/nest-modmodule | modmodule/bootstrap.sh | Shell | mit | 1,810 |
#!/bin/bash -
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "$CURRENT_DIR/helpers/helpers.sh"
trap cleanup SIGINT SIGTERM
read -r -d '' USAGE << "EOF"
Runs the "get" init scripts and checks results.
NOTE that if any script fails exits with that error code
and does not continue.
optional argu... | beeryardtech/init | dogets.sh | Shell | mit | 800 |
#!/usr/bin/env bash
set -u -e -o pipefail
# Setup environment
readonly thisDir=$(cd $(dirname $0); pwd)
source ${thisDir}/_travis-fold.sh
# If the previous commands in the `script` section of .travis.yaml failed, then abort.
# The variable is not set in early stages of the build, so we default to 0 there.
# https:/... | jonrimmer/angular | scripts/ci/build.sh | Shell | mit | 1,981 |
#!/bin/sh
b=pg-scott-nd
s=$b.sql
d=docker-$b
echo ">> docker-pg-scott - https://github.com/rsp/$d"
echo ">> Starting postgresql server"
/etc/init.d/postgresql start
echo ">> Creating scott database"
sudo -u postgres createdb scott
echo ">> Populating scott database with $s"
sudo -u postgres psql -d scott -f /$s
ec... | rsp/docker-pg-scott-nd | docker-pg-scott.sh | Shell | mit | 659 |
#!/usr/bin/env bash
# super simple build script since this is a pain to repeat
rm -f wc.jar
mkdir wordcount_classes
javac -classpath $HADOOP_HOME/hadoop-core-1.2.1.jar:$HADOOP_HOME/lib/commons-cli-1.2.jar -d wordcount_classes WordCount.java && jar -cvf wc.jar -C wordcount_classes .
rm -rf wordcount_classes
rm -f ri.jar... | capdevc/reverse-indexer | build.sh | Shell | mit | 683 |
#!/bin/bash
set -e
echo "Installing Ansible..."
apt-get install -y --force-yes software-properties-common
apt-add-repository ppa:ansible/ansible
apt-get update
apt-get install -y ansible
cp /vagrant/ansible/ansible.cfg /etc/ansible/ansible.cfg
| vfarcic/docker-flow | scripts/bootstrap_ansible.sh | Shell | mit | 246 |
_feed_list()
{
[ -z "${FEED_DIR}" ] && FEED_DIR="${XDG_CONFIG_DIR:-${HOME}/.config}/feeds/"
[ ! -d "${FEED_DIR}" ] && return 1
local cur prev OPTS
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
local IFS=$'\n'
compopt -o filenames
COMPREPLY=( $(compgen -W "$( \
shopt -s nullglob; ... | hobbitalastair/feedutils | completion/bash_completion.sh | Shell | mit | 1,088 |
set -e
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
fi
if [ -d "$ZSH" ]; then
echo "\033[0;33mYou already have Oh My Zsh installed.\033[0m You'll need to remove $ZSH if you want to install"
exit
fi
echo "\033[0;34mCloning Oh My Zsh...\033[0m"
hash git >/dev/null 2>&1 && env git clone --depth=1 https://github.com/... | Spencevail/oh-my-zsh | tools/install.sh | Shell | mit | 1,928 |
# Android Nexus Device Image Update Procedure
# Resources used to generate this procedure
# Procedure - http://www.androidbeat.com/2015/03/flash-android5-1-factory-image-nexus5-nexus7-nexus10/
# Factory Images - https://developers.google.com/android/nexus/images
# General adb notes - http://lifehacker.com/th... | jvanmeter/android | nexus-rom-image-update.sh | Shell | mit | 1,910 |
LLVM_PATH=/usr/local/Cellar/llvm/3.5.1/bin
$LLVM_PATH/llvm-as < opt-test.ir | $LLVM_PATH/opt -analyze -view-cfg
| atzkey/llvm-experiments | implementing-a-language/test/opt-test.sh | Shell | cc0-1.0 | 112 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_CONF=default
CND_DISTDIR=dist
TMPDIR=build/${CND_CONF}/${IMAGE_TYPE}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=dist/${CND_CONF}/${IMAGE_TYPE}/20201_7seg_upc.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=20201_7seg_upc.X.${IMAGE_TYPE}.${O... | tocache/picomones | UPC Microcontroladores 2020-1/Semana 03/20201_7seg_upc.X/nbproject/Package-default.bash | Shell | cc0-1.0 | 1,403 |
#!/bin/sh
TYPE="staging qa demo test development local static"
for type in $TYPE; do
/opt/homebrew/bin/convert -geometry 32x32 "favicon_${type}.png" "favicon_${type}_32x32.png" \
&& imageoptim -S "favicon_${type}_32x32.png"
png2ico "favicon_${type}.ico" "favicon_${type}_32x32.png"
rm -f "favicon_${type}_1... | ryochin/developer-favicon | convert.sh | Shell | cc0-1.0 | 363 |
#!/usr/bin/env bash
#
# Summary
#
# generates a user ssh key via an experimental process. Extracted to test.
if [ ! -f "logger.sh" ]; then
me=`basename "$0"`
errormessage="critical error in '${me}': missing: logger.sh"
logthis "${errormessage}"
logthis "${errormessage}" >> "${HOME}/bootstrap.... | jameswilliamknight/scripts.pub | Bash/provision/generate-ssh-key.sh | Shell | cc0-1.0 | 1,093 |
#! /bin/bash -e
# $Id$
# -----------------------------------------------------------------------------
# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-16 Bradley M. Bell
#
# CppAD is distributed under multiple licenses. This distribution is under
# the terms of the
# Eclipse Public Lice... | kaskr/CppAD | bin/check_replace.sh | Shell | epl-1.0 | 1,649 |
#!/bin/bash
#-*- coding:utf-8 -*-
dn=$(dirname "$0")
cd "${dn}/../"
xgettext -o ./po/messages.pot -j --from-code=UTF-8 --no-location *{/,/*/}*.py ./share/euphorbia/plugins/*.py ./share/euphorbia/*.glade
exit 0
| cvkbtzx/euphorbia | tools/update-pot.sh | Shell | gpl-2.0 | 215 |
#!/bin/bash
cd $(git rev-parse --show-toplevel)
V=$(./scripts/greezly/find_out_grsecurity_version.pl)
V=$(echo $V | sed 's/-/ /g' | sed 's/\(^grsecurity \|\.patch$\)//g')
./scripts/greezly/upstream_check.sh $V
| moulecorp/greezly | scripts/greezly/verify.sh | Shell | gpl-2.0 | 213 |
#!/bin/sh
NAME="rhic-serve"
SELINUX_VARIANTS="targeted"
if [ $# -lt 1 ]; then
INSTALL_DIR=/usr/share
else
INSTALL_DIR=$1
fi
if /usr/sbin/selinuxenabled ; then
for selinuxvariant in ${SELINUX_VARIANTS}
do
/usr/sbin/semanage -i - << _EOF
module -a ${INSTALL_DIR}/selinux/${selinuxvar... | splice/rhic-serve | selinux/enable.sh | Shell | gpl-2.0 | 404 |
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
[[ $mount_needs ]] && return 1
return 0
}
depends() {
echo 'fs-lib'
}
install() {
if ! dracut_module_included "systemd"; then
inst_hook pre-pivot 50 "$moddir/mou... | zfsonlinux/dracut | modules.d/98usrmount/module-setup.sh | Shell | gpl-2.0 | 347 |
#!/bin/bash
CUCMD="`whereis cu | cut -d ' ' -f 2`"
if [ ! -f $CUCMD ]; then
ping 168.95.1.1 -n -c 2 -W 2 &> /dev/null && TNET=0 || TNET=1
ping 8.8.8.8 -n -c 2 -W 2 &> /dev/null && TNET1=0 || TNET1=1
if [ $TNET != 0 ] && [ $TNET1 != 0 ]; then
echo -e "\nError...!!!\n"
echo -e "Network is Not Connect.\n"
... | kyos0109/tools | old_newWord/initmodem.sh | Shell | gpl-2.0 | 4,685 |
#! /bin/sh
# Copyright (C) 2002-2017 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This program ... | pylam/automake | t/subdir-am-cond.sh | Shell | gpl-2.0 | 2,224 |
#! /bin/sh
$XGETTEXT */*.h */*.cc -o $podir/kocolorspaces.pot
| JeremiasE/KFormula | plugins/colorspaces/Messages.sh | Shell | gpl-2.0 | 63 |
#!/bin/bash
# This is a script to assist with setting up a new Linux computer, at FCI. It
# attempts to install a bunch of packages, setup networking, setup ssh, and
# copy some config files from a base user's home directory on a remote
# host/server.
# !!!!!!!!!!!!!!!!! THIS SCRIPT IS NOT TESTED !!!!!!!!!!!!!!!!!!... | rbb/scripts | movein_apt.sh | Shell | gpl-2.0 | 3,186 |
#!/bin/sh
### BEGIN INIT INFO
# Provides: module-init-tools
# Required-Start:
# Required-Stop:
# Should-Start: checkroot
# Should-stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Process /etc/modules.
# Description: Load the modules listed in /etc/modules.
### END INIT INFO... | pli3/pli3-openpli3 | meta-openpli/recipes-core/module-init-tools/modutils-initscripts/modutils.sh | Shell | gpl-2.0 | 1,051 |
#!/bin/bash
while true
do
ctrl=$(cat /var/www/html/pibot/command)
./control-codes/shell/control.sh ${ctrl}
done
| championswimmer/minor-1-piBot-videostream | observer.sh | Shell | gpl-2.0 | 115 |
#/bin/bash
#: autor jesus
#: programa que fai unha copia dun directorio a un dir remoto a usuario
rutaL=$1
usuario=$2
maquina=$3
rutaR=$4
if [ -d "$1" ]
then
scp -r $rutaL $usuario@$maquina:$rutaR
else
scp $rutaL $usuario@$maquina:$rutaR
fi
| jmlb23/scripts | sshcopia.sh | Shell | gpl-2.0 | 248 |
#!/bin/bash
# Install on osx
if [ "$TRAVIS_OS_NAME" = "osx" ]
then
pip3 install tox
if [ ! -z $SCAPY_USE_PCAPDNET ]
then
brew update
brew install libdnet libpcap
fi
exit 0
fi
# Install wireshark data
if [ "$TRAVIS_OS_NAME" = "linux" ] && [ "$TRAVIS_SUDO" = "true" ]
then
sudo apt-get update
sudo a... | francois-contat/scapy | .travis/install.sh | Shell | gpl-2.0 | 652 |
java -cp spark/spark-assembly_2.10-0.9.0-incubating-hadoop1.0.4.jar:assembly/target/scala-2.10/pir-assembly-0.1.0.jar -Dspark.akka.frameSize=128 -Dconfig.file=env.conf edu.uwm.cs.pir.examples.NaiveIndexQuery se 2
| pir-dsl/pir | exec_NaiveIndexQuery.sh | Shell | gpl-2.0 | 214 |
#! /bin/sh
# Copyright (C) 2009-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/maken3.sh | Shell | gpl-2.0 | 4,471 |
#!/bin/sh
# create snapshot release from current HEAD
# travis will build release tarball and upload it to github release page
# https://github.com/eventum/eventum/releases/tag/snapshot
set -e
have() {
type -p "$1" >/dev/null 2>&1
}
# create commit message
# assumes few variables being set
get_commit_message() {
c... | mariadb-corporation/eventum | bin/ci/snapshot.sh | Shell | gpl-2.0 | 2,342 |
#!/usr/bin/env bash
# Author: Jon Schipp
# Date: 04-15-2014
########
# Examples:
# 1.) Check if sshd has restarted since last check
# $ ./check_pid.sh -f /var/run/sshd.pid
# Nagios Exit Codes
OK=0
WARNING=1
CRITICAL=2
UNKNOWN=3
usage()
{
cat <<EOF
Check if a service has been restarted by comparing its PID to each ... | jonschipp/nagios-plugins | check_pid.sh | Shell | gpl-2.0 | 1,717 |
#!/bin/bash
shopt -s extglob # +([[:digit:]]) trick
cd atom.kaeri.re.kr/cgi-bin
NATURALLY=$(grep -l Naturally *)
for i in $NATURALLY; #loop around naturally occuring elements
do
html2text $i | head -n 1 | awk -F"-" '{print $1}' | awk -F" " '{print $1}' | tr -d '\n'; #Z
echo ";" | tr -d '\n';
html2text $i | head -n ... | nonas/MassSpectrumGen | kaeri2csv.sh | Shell | gpl-2.0 | 907 |
#!/bin/bash
#backup MySQL data
DB=database.txt
today="`date +%F`";
if [ -f $DB ]
then
echo "MySQL password is"
mysqldump -u root -p -B $(cat $DB) > mysqlbkp.$today.sql;
else
echo "file $DB is missing"
fi
| eugenereut/scripts-4-work | mysqlbkp.sh | Shell | gpl-2.0 | 211 |
#!/bin/sh
./client_linux_amd64 -r "YOUR SERVER:PORT" -l ":8000" -mode fast2 -key "YOUR PASSWORD" -crypt "tea" &
| JuncoJet/skeepalive | startserver.sh | Shell | gpl-2.0 | 112 |
#!/bin/bash
###########################################################################
# astyle.sh
# ---------------------
# Date : August 2008
# Copyright : (C) 2008 by Juergen E. Fischer
# Email : jef at norbit dot de
##########################################... | NINAnor/QGIS | scripts/astyle.sh | Shell | gpl-2.0 | 2,838 |
#! /bin/sh
_checkout_rev=
show_help(){
cat << EOF
Usage: $0 [OPTIONS]...
Configuration:
-h, --help display this help and exit
--checkout=[GIT REVISION] checkout specific git revision
EOF
exit 0
} #show_help()
for ac_option do
case "$ac_option" in
--help|-help|-h)
show_help
;... | MeditProfi/mplayer | ffupdate.sh | Shell | gpl-2.0 | 1,419 |
#!/bin/bash
set -euo pipefail
# USAGE:
# ./kernel-downloader.sh DISTRO [VERSION] URL...
# Where to download the kernel headers. A subfolder for each distro will be
# created.
declare -r BASEDIR="$(pwd)/kernels"
declare -r BUILDER_LOG_FILENAME=".sysdig-builder-log"
# A Python implementation of realpath from coreutil... | SamuelePilleri/sysdig | scripts/kernel-downloader.sh | Shell | gpl-2.0 | 9,687 |
#!/bin/sh
echo "cleaning up"
make mrproper
echo "..."
echo "preparing modem driver"
sh prebuilt-drivers.sh
echo "done ..."
echo "building galaxys & telus kernel"
sh galaxys.sh
echo "done ..."
echo "cleaning up"
make mrproper
echo "..."
echo "preparing modem driver"
sh prebuilt-drivers.sh
echo "done"
echo "buildi... | galaxys-cm7miui-kernel/ICS-kernel-SGS | triple-build.sh | Shell | gpl-2.0 | 554 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2008-2020 Mike Shal <marfey@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
#
# This program is distribu... | ppannuto/tup | test/t7002-rm-rf.sh | Shell | gpl-2.0 | 1,161 |
sudo gunzip ramdisk.gz
sudo mkdir -p ramdisk_mnt
sudo mount -o loop ramdisk ramdisk_mnt/
| neohung/am335 | ramdisk/unpack_mount_ramdisk.sh | Shell | gpl-2.0 | 89 |
#!/bin/bash
#
# config.sh
#
# Copyright (C) 2015, 2016 frnmst (Franco Masotti) <franco.masotti@live.com>
# <franco.masotti@student.unife.it>
#
# This file is part of GNUpot.
#
# GNUpot is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gen... | frnmst/gnupot | src/config.sh | Shell | gpl-3.0 | 8,939 |
#!/usr/bin/env sh
#
# passwrapper - Smoothly manage multiple password stores.
# Copyright © 2015-2017 Till Smejkal <till.smejkal+passwrapper@ossmail.de>
#
# 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 Fou... | l3nkz/passwrapper | passwrapper.sh | Shell | gpl-3.0 | 7,270 |
#!/bin/sh
unzip -o aobench-20180207.zip
cc ao.c -o ao -lm -O3 $CFLAGS
echo $? > ~/install-exit-status
echo "#!/bin/sh
./ao > \$LOG_FILE 2>&1
echo \$? > ~/test-exit-status" > aobench
chmod +x aobench
| phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/pts/aobench-1.0.1/install.sh | Shell | gpl-3.0 | 201 |
#!/bin/bash
#=======================================================================
# K_driver.sh
# To run the WRF-LETKF in the K computer.
# This scripts prepares all the data needed to run the letkf cycle
# then submmits the job to the K computer.
# Based on the script developed by Shigenori Otsuka
# Dife... | gustfrontar/LETKF_WRF | wrf/run/exp_post/K_verify_analysis512m.sh | Shell | gpl-3.0 | 4,716 |
#!/bin/sh
ndk-build -j4
| knro/build_kstarslite | android_libs_src/libraw/Android/jni/build.sh | Shell | gpl-3.0 | 24 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YBR191W --paralog2 YPL079W --simnum 95 > YBR191W_YPL079W_MG94_nonclock_Sim95_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YBR191W_YPL079W_sim95.sh | Shell | gpl-3.0 | 145 |
#!/bin/bash
aws s3 ls s3://ireland-leo-test/ --recursive | wc -l
exit 0
| iceflow/aws-demo | s3/s3-bucket-copy/existing-bucket-copy/solutions/2-different-account-same-region/s3_check.sh | Shell | gpl-3.0 | 77 |
#!/bin/sh
# Exercise du's new ability to handle bind-mount-induced dir cycles.
# Copyright (C) 2012-2019 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 v... | komh/coreutils-os2 | tests/du/bind-mount-dir-cycle.sh | Shell | gpl-3.0 | 1,184 |
#!/bin/dash
# This hook to allows dovecot to read new LDAP certificates
. /etc/homebox/main.cf
do_restart=0
for fqdn in $RENEWED_DOMAINS; do
# Get the subdomain
sub=$(expr "$fqdn" : '\([^.]*\)')
if [ "$sub" = "ldap" ]; then
cd "$RENEWED_LINEAGE"
setfacl -m u:dovecot:r -m m:r cert*pem *... | progmaticltd/homebox | install/roles/dovecot/files/renewal-hook.sh | Shell | gpl-3.0 | 490 |
#!/bin/sh
#
# This file is protected by Copyright. Please refer to the COPYRIGHT file
# distributed with this source distribution.
#
# This file is part of GNUHAWK.
#
# GNUHAWK is free software: you can redistribute it and/or modify is under the
# terms of the GNU General Public License as published by the Free Sof... | RedhawkSDR/integration-gnuhawk | components/argmax_is_1i/build.sh | Shell | gpl-3.0 | 1,551 |
sudo canonical-livepatch status --verbose | steveokard/stevset | scripts/kernel-stat.sh | Shell | gpl-3.0 | 41 |
#/bin/sh
eval `ssh-agent -s`
ssh-add ~/.ssh/github_rsa | n4af/TR4W | tr4w/src/gitadd.sh | Shell | gpl-3.0 | 54 |
#!/bin/bash
# Script to apply Sony Xperia patches
# Copyright (C) 2018 Adrien Bioteau - All Rights Reserved
# Permission to copy and modify is granted under the GPLv3 license
# Last revised 04/09/2018
relpath () {
[ $# -ge 1 ] && [ $# -le 2 ] || return 1
current="${2:+"$1"}"
target="${2:-"$1"}"
if [[ "... | abioteau/sony-aosp-repository | sonyxperiadev/marshmallow/6.0/apply_patch.sh | Shell | gpl-3.0 | 7,257 |
#!/bin/bash
if [[ -n "${GENERATION_DEBUG}" ]]; then set ${GENERATION_DEBUG}; fi
trap '. ${GENERATION_DIR}/cleanupContext.sh; exit ${RESULT:-1}' EXIT SIGHUP SIGINT SIGTERM
STACK_INITIATE_DEFAULT="true"
STACK_MONITOR_DEFAULT="true"
STACK_OPERATION_DEFAULT="update"
STACK_WAIT_DEFAULT=30
function usage() {
echo -e "\... | codeontap/gsgen3 | manageStack.sh | Shell | gpl-3.0 | 5,224 |
#!/bin/bash
if [ "$1" = "" ]
then
echo "Usage: $0 <number of iterations> [filesizeMB]"
exit
fi
FILE_SIZE_MB=1048576
if [ $2 ]
then
FILE_SIZE_MB=$2
fi
SYNCAPPNAME="syncRead.js"
ASYNCAPPNAME="asyncRead.js"
echo "Creating file 1..."
dd if=/dev/zero of=archivo1.txt bs=1048576 count=$FILE_SIZE_MB
echo "Creating fil... | angdanni/NodeJs | basicCourse/benchmark/benchmark.sh | Shell | gpl-3.0 | 781 |
#!/usr/bin/env bash
#
# This file is part of Emender.
#
# Emender 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 of the License.
#
# Emender is distributed in the hope that it will be useful,
# but... | emender/emender | examples/tagC_tagB.sh | Shell | gpl-3.0 | 670 |
#!/usr/bin/env php
<?php
/*
+-----------------------------------------------------------------------+
| bin/decrypt.sh |
| |
| This file is part of the Roundcube Webmail client ... | dmccubbing/Office.web | bin/decrypt.sh | Shell | gpl-3.0 | 2,890 |
#! /bin/bash
#$ -cwd
#$ -S /bin/bash
#$ -pe orte 8
#$ -j y
echo === environment info ===
echo node: $(hostname)
echo hostfile: $PE_HOSTFILE
echo === hostfile contents ===
test -n "$PE_HOSTFILE" && cat $PE_HOSTFILE
#echo === environment ===
#env | sort
echo === ulimit -a ===
ulimit -a
echo =========================
e... | riccardomurri/rheinfall | util/idgc3grid01/singlenode.ompi.sh | Shell | gpl-3.0 | 952 |
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Usage args: <Input Certificate filename>"
exit 1
fi
fd_crt=$1
if [ ! -f ${fd_crt} ]; then
echo "${fd_crt} not a file name"
exit 1
fi
openssl x509 -text -in ${fd_crt} -noout
exit 0
| michael-jones253/HelloBoostIoServices | examine_cert.sh | Shell | gpl-3.0 | 241 |
#!/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-08-A/20161207T230106+0000/00/00/analysisevent_0_ID0000015.sh | Shell | gpl-3.0 | 1,249 |
#!/bin/sh
echo 1..5
#########################################
INPUT_MATRIX=$srcdir/Matrix/medium.sms
./transpose 1 < $INPUT_MATRIX
#########################################
INPUT_MATRIX=$srcdir/Matrix/upper_trapeze.sms
./transpose 2 < $INPUT_MATRIX
#########################################
INPUT_MATRIX=$srcdir/Matr... | cbouilla/spasm | test/test_transpose.sh | Shell | gpl-3.0 | 587 |
#!/bin/bash
cd ${PBS_O_WORKDIR}
#rm -rf ~/.mellin
rm -rf ./qsub_xf1.sh.*
#make clean
cd ../
#make
#source ~/work/QCD/Mellin_current/setup.sh
cd ${PBS_O_WORKDIR}
#for ORD in LO NLO
#for ORD in LO
for ORD in NLO
do
time ./main --unpolPDF=../browser/compare_unpolPDF.xml \
--order=${ORD} --writeDB
done
| miyachi-yu/Mellin | unpolDISXsec/qsub_xf1.sh | Shell | gpl-3.0 | 304 |
# DESCRIPTION
# Creates cropped .bmp images with white borders and a black interior (I think) from all .png images in a directory tree. Useful for prepping art for conversion to a vector format without wasted border space. NOTE: this relies on one of Fred's ImageMagick scripts, which are not freely redistributable; you... | r-alex-hall/fontDevTools | scripts/imgAndVideo/cropAllPNG2BMP.sh | Shell | gpl-3.0 | 1,628 |
tput cnorm
| Turakar/pipresenter | material/cursorshow.sh | Shell | gpl-3.0 | 11 |
#!/bin/bash
iperf -c 192.168.0.1 -u -b 16k -l .8k -p 10001 -t 600
| openvlc/openvlc | Older_Versions/OpenVLC1.0/iperf_client.sh | Shell | gpl-3.0 | 67 |
echo "localhost/goatmospi/data/devices/temperature"
curl -H "Accept-Encoding: application/json" localhost/goatmospi/data/devices/temperature
sleep 0.5
echo "
localhost/goatmospi/data/devices/humidity"
curl localhost/goatmospi/data/devices/humidity
sleep 0.5
echo "
localhost/goatmospi/data/latest/temperature"
curl local... | kontza/goatmospi | data-tests.sh | Shell | gpl-3.0 | 464 |
#!/usr/bin/env bash
#
# This file (GPLv3 licensed) is based on `contrib/mkimage-arch.sh' (Apache 2.0
# licensed) from the Docker project [1]. A copy of Docker's licence [2] and
# attribution notice [3] is included in `Docker-LICENCE' and `Docker-NOTICE'
# respectively.
#
# [1]: https://github.com/docker/docker
# [2]: ... | ztombol/dockerfiles | arch-base/mkimage-arch.sh | Shell | gpl-3.0 | 3,366 |
#!/bin/sh
# split must fail when given length/count of zero.
# Copyright (C) 2003-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 3 of the Li... | pexip/os-coreutils | tests/split/fail.sh | Shell | gpl-3.0 | 2,809 |
#!/bin/bash
# Analyses the timestamps in the logfile
#
# usage : ./analyse.sh -m native,keen
#
# Copyright (C) 2014 Dieter Adriaenssens <ruleant@users.sourceforge.net>
#
# This file is part of buildtime-trend
# <https://github.com/ruleant/buildtime-trend/>
#
# This program is free software: you can redistribute it and/... | ruleant/buildtime-trend | analyse.sh | Shell | gpl-3.0 | 1,515 |
#!/bin/bash -e
fatal() { echo "FATAL [$(basename $0)]: $@" 1>&2; exit 1; }
info() { echo "INFO [$(basename $0)]: $@"; }
usage() {
cat<<EOF
Syntax: $0 key-email public-address virtual-subnet
Initialize OpenVPN easy-rsa, server keys and configuration
Arguments:
key-email Email address to use in server k... | aphexlog/ansible-playbooks | openvpn/overlay/usr/lib/inithooks/bin/openvpn-server-init.sh | Shell | gpl-3.0 | 3,894 |
IMAGES="download-declaranet"
IMAGE_VERSION="0.1"
DOCKER_REGISTRY="localhost:5000"
for IMAGE in ${IMAGES} ; do
docker build --tag ${DOCKER_REGISTRY}/compranet/${IMAGE}:${IMAGE_VERSION} --tag compranet/${IMAGES}:latest tasks/${IMAGE}
docker push ${DOCKER_REGISTRY}/dpa/${IMAGE}:${IMAGE_VERSION}
done
| rsanchezavalos/compranet | compranet/registrar.sh | Shell | gpl-3.0 | 304 |
#!/bin/bash -x
check_rc() {
if [ $1 -ne 0 ]; then
exit $1
fi
}
prepare() {
GITLAB_KEY=utils/puppet/modules/puppetvagrant/files/gitlab
vagrant destroy -f
echo 'moving fixtures settings.yaml into place'
cp spec/fixtures/settings.yaml .settings.yaml
git config --global user.email "jenkins@... | nosolutions/puppet-devel | utils/test_puppetdevel.sh | Shell | gpl-3.0 | 1,062 |
#!/bin/bash
# Install basics that are always needed
apt-get update
apt-get dist-upgrade
apt-get install screen ssh mc git aptitude
| SmilyBorg/RaspberryPi-scripts | scripts/basics.sh | Shell | gpl-3.0 | 135 |
#!/bin/bash
export MTOOLSRC=$1
DIR_BIN=$2
ARCH=$3
echo "GRUBADD kernel_$ARCH"
echo >> $DIR_BIN/boot/grub/menu.lst
echo "title Nuke, kernel5, $ARCH" >> $DIR_BIN/boot/grub/menu.lst
echo -e "\troot (fd0)" >> $DIR_BIN/boot/grub/menu.lst
echo -e "\tkernel /kernel_$ARCH" >> $DIR_BIN/boot/grub/menu.lst
echo -e "\tboot" >> ... | SHyx0rmZ/kernel5 | res/image_entry.sh | Shell | gpl-3.0 | 392 |
#!/bin/bash
# https://nmap.org/book/inst-source.html
# apt-get install autoconf -y; svn co https://svn.nmap.org/nmap/; cd nmap/; ./configure; make;
if [ -z $2 ]; then printf "\nSytnax: $0 <massscan.out> <client>\n\n"
else
FILE=$1; CLIENT=$2; for HOST in $(awk '{print $6}' $FILE|sort -u); do
PORTS=$(grep "$HOST " $F... | jnqpblc/Randomness | 3.mapping/masscan-to-heartbleed.sh | Shell | gpl-3.0 | 640 |
#!/bin/sh -ex
# brew install clang-format
CLANG_FORMAT_VERSION=`clang-format -version | awk '{ print $3 }'`
if [[ "$CLANG_FORMAT_VERSION" != "8.0.0" ]]; then
echo "Unsupported clang-format version"
exit 1
fi
find "GitUpKit/Components" -type f -iname *.h -o -iname *.m | xargs clang-format -style=file -i
find "Gi... | lapfelix/GitUp | format-source.sh | Shell | gpl-3.0 | 1,069 |
#!/bin/sh
#
# Undo the things nft_init.sh did
#
# Do not disturb other existing structures in nftables, e.g. those created by firewalld
#
nft --check list table nat > /dev/null 2>&1
if [ $? -eq "0" ]; then
{
# nat table exists, so first remove the chains we added
nft --check list chain nat MINIUPNPD > /dev/null 2>&1... | mupen64plus-ae/mupen64plus-ae | ndkLibs/miniupnp/miniupnpd/netfilter_nft/scripts/nft_removeall.sh | Shell | gpl-3.0 | 1,100 |
#!/bin/bash
ndk=~/bin/android-ndk
abi=armeabi
ver=4.9
bin=${ndk}/toolchains/arm-linux-androideabi-${ver}/prebuilt/darwin-x86_64/bin
#export PATH=${bin}:$PATH
flg=()
flg+=(--sysroot=${ndk}/platforms/android-9/arch-arm)
flg+=(-I${ndk}/sources/cxx-stl/gnu-libstdc++/${ver}/include)
flg+=(-I${ndk}/sources/cxx-stl/gnu-libstd... | JohnWong/cycript | android.sh | Shell | agpl-3.0 | 680 |
#!/bin/bash
# files are expanded under '~/srv/data/nf/vffmedia' and '~/srv/data/nf/maps'
BASE=/media/buffalo/dina-data/naturalist
ARTIFACT=test_nf-mediafiles.tgz
DST=srv/data
test -f ${DST}/${ARTIFACT} || cp ${BASE}/${ARTIFACT} ${DST} && tar xvfz $ARTIFACT --strip-components=2
#cd srv/data && tar xvfz $ARTIFACT --st... | DINA-Web/dw-system | get_fs_data.sh | Shell | agpl-3.0 | 337 |
#!/bin/sh
if [ -z "$NDK_MODULE_PATH" ]; then
echo "ERROR: NDK_MODULE_PATH is not set. Please set this variable to continue.\n";
exit;
fi
export LUAJIT_JNI=`pwd`/pluginlibs/patches/luajit-2.0/jni
echo "Using NDK_MODULE_PATH: $NDK_MODULE_PATH\n"
cd $NDK_MODULE_PATH
# LIBSNDFILE
LIBSNDFILE_REPO=http://bitbucke... | nikhilsinghmus/csound | Android/downloadDependencies.sh | Shell | lgpl-2.1 | 1,718 |
#!/bin/sh
PCORE_ARCHIVE=$1
if [ "x$PCORE_ARCHIVE" == "x" ]; then
echo "usage $0 pcore-\${timestamp}.tar.bz2"
exit 1
fi
if [ -f $PCORE_ARCHIVE ]; then
echo "Found $PCORE_ARCHIVE" 1>&2
else
echo "Not found $PCORE_ARCHIVE" 1>&2
exit 1
fi
PCORE_ARCHIVE_BASENAME=`basename $PCORE_ARCHIVE`
PCORE_ARCHIV... | hokuda/pcore | docker/rhel7/run_getdebuginfo_rhel7.sh | Shell | lgpl-2.1 | 1,920 |
#!/bin/sh
# Copyright (c) 2010-2018 The Open Source Geospatial Foundation and others.
# Licensed under the GNU LGPL version >= 2.1.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, eithe... | astroidex/OSGeoLive | bin/install_zoo-project.sh | Shell | lgpl-2.1 | 3,575 |
#!/bin/bash
set -x
set -e
DEBIAN_FRONTEND=noninteractive sudo apt-get update
# Remove existing MySQL to allow installation of MariaDB
sudo service mysql stop
sudo rm -rf /etc/mysql /var/lib/mysql /var/log/mysql
sudo apt purge -y mysql-server mysql-client mysql-common
sudo apt autoremove -y
echo "/usr/sbin/mysqld { }"... | MariaDB/mariadb-connector-odbc | .travis/s390x.sh | Shell | lgpl-2.1 | 1,585 |
curl -vX POST http://localhost:8080/rules -d '{"portName": "'$1'", "widgetName": "'$2'" }' --header "Content-Type: application/json"
| rodrigovilar/geneguis | rule.sh | Shell | lgpl-3.0 | 136 |
#!/bin/bash
IP="192.168.2.2"
JARS="target/aspectjrt-1.6.5.jar"
JARS=$JARS":target/jgroups-2.7.0.GA.jar"
JARS=$JARS":target/log4j-1.2.17.jar"
JARS=$JARS":target/slf4j-api-1.7.10.jar"
JARS=$JARS":target/slf4j-log4j12-1.7.10.jar"
JARS=$JARS":target/timingframework-1.0.jar"
JARS=$JARS":target/xercesImpl-2.8.1.jar"
JARS=$... | epietrig/FITS-OW | trunk/scripts/wilder_master_run.sh | Shell | lgpl-3.0 | 698 |
sed -i "s/pthread-stubs//" configure &&
./configure $XORG_CONFIG \
--enable-xinput \
--without-doxygen \
--docdir='${datadir}'/doc/libxcb-1.12 &&
make
make install
| pampa/cyberdeck | try4/usr/src/xorg/libxcb.sh | Shell | unlicense | 208 |
file_list="SR2_N0600_run000 SR2_N0600_run001"
selection="resid 41"
for x in $file_list; do
echo $x
vmd -dispdev text -e environ-polarity.tcl ../../local-run-output/${x}.* -args "$selection" > ${x}.txt
python environ-polarity.py ${x}.txt > ${x}-processed.txt
done
| harmsm/md-analysis-tools | environ-polarity/run-me.sh | Shell | unlicense | 281 |
#!/bin/sh -x
x=`cat /etc/os-release | grep stretch`
if [ "x$x" != "x" ] ; then
extras=""
else
extras="hardening-includes"
fi
sudo apt-get install \
build-essential dh-make fakeroot devscripts pbuilder cdbs \
at autotools-dev cdbs dctrl-tools debian-keyring debootstrap \
devscripts dh-make diffstat distro... | thortex/rpi3-webiopi | dev/01_setup-required-packages.sh | Shell | apache-2.0 | 1,762 |
#!/bin/bash -eu
# Copyright 2018 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... | google/fuzzbench | benchmarks/libpcap_fuzz_both/build.sh | Shell | apache-2.0 | 1,350 |
# Copyright 2022 The Google Research 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 agree... | google-research/google-research | graph_embedding/dmon/run.sh | Shell | apache-2.0 | 817 |
#!/bin/bash -e
echo '
### ######## ####### ########
## ## ## ## ## ## ## ##
## ## ## ## ## ## ## ##
## ## ## ## ## ## ########
######### ## ## ## ## ##
## ## ## ## ## ## ##
## ## ######## ####### ... | katrinazvaigzne/adop-docker-compose | quickstart.sh | Shell | apache-2.0 | 3,884 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.