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/bash
# Author: Andrey Dibrov (andry at inbox dot ru)
# Bash file library, supports common file functions.
# Script can be ONLY included by "source" command.
[[ -z "$BASH" || (-n "$BASH_LINENO" && BASH_LINENO[0] -le 0) || (-n "$SOURCE_CONTOOLS_FILELIB_SH" && SOURCE_CONTOOLS_FILELIB_SH -ne 0) ]] && return
SO... | andry81/contools | Scripts/Tools/bash/filelib.sh | Shell | mit | 40,016 |
#!/bin/bash
create_conf_dir() {
mkdir -p ${SQUID_DIR}
if [ ! -d ${SQUID_DIR}/conf ]; then
mv /etc/squid ${SQUID_DIR}/conf
else
rm -rf /etc/squid
fi
ln -s ${SQUID_DIR}/conf /etc/squid
}
create_cache_dir() {
if [ ! -d ${SQUID_DIR}/cache ]; then
mv /var/spool/squid ${SQUID_DIR}/cache
else
rm -rf /var/spoo... | renebarbosafl/Docker-Squid | entrypoint.sh | Shell | mit | 807 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2754-1
#
# Security announcement date: 2015-10-05 00:00:00 UTC
# Script generation date: 2017-01-27 21:06:07 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - thunderbird:1:38.3.0+build1-0ubuntu0.1... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/i386/2015/USN-2754-1.sh | Shell | mit | 937 |
#!/bin/bash
set +e
module="scull"
device="scull"
if grep -q '^staff:' /etc/group; then
group="staff"
else
group="wheel"
fi
# Remove the module if already existing
/sbin/rmmod $module
# Install the module
/sbin/insmod ./$module.ko $* || exit 1
major=$(awk -v module="$module" '{if ($2==module) {print $1}}' /proc/d... | ChidambaramR/scull | scull_load.sh | Shell | mit | 532 |
#!/bin/sh
TARGET=target_linux_fsl
rm -fr $TARGET
mkdir $TARGET
cd $TARGET
cmake ../../ -DCMAKE_TOOLCHAIN_FILE=../linux_arm-fsl.cmake
make --trace
ls -l -h ../../target/
| jxfengzi/tiny | cmake/build_linux_arm_fsl.sh | Shell | mit | 170 |
#!/bin/bash
ssh -t phzfi@ric.phz.fi 'sudo sh ~/go/src/github.com/phzfi/RIC/scripts/clear_cache.sh'
ssh phzfi@ric.phz.fi 'sh ~/go/src/github.com/phzfi/RIC/scripts/start_thumbor_stop_rest.sh'
echo "Waiting 10s for thumbor to boot"
sleep 10s
| phzfi/RIC | report_generator/start_thumbor_stop_rest.sh | Shell | mit | 239 |
#! /bin/sh
#this is installing script use ./xxx.sh or nohup xxx.sh &
#set trap
trap 'install finish' 0
trap 'install interapted' 2
#install essential-tools
apt-get update
apt-get install -y build-essential emacs24 vim
apt-get install -y git curl
#install docker
curl -sSL https://get.docker.com/ | sh
#docker pull... | fvi-att/SecuritylearnSystemLauncher | Build.sh | Shell | mit | 1,356 |
#!/bin/bash
java -jar /workspace/sys-stack-serv-customer/target/serv-customer-0.0.1-SNAPSHOT.war | gspanoae/sys-stack-serv-customer | docker-entrypoint.sh | Shell | mit | 97 |
#!/bin/sh
set -e
echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}"
SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
install_framework()
{
if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then
local source="${BUILT_PRO... | naddison36/book-review-ios | Pods/Target Support Files/Pods/Pods-frameworks.sh | Shell | mit | 3,042 |
#!/usr/bin/env bash
# Verify that no non-test files import Ginkgo or Gomega.
set -e
HAS_TESTING=false
cd ..
for f in $(find . -name "*.go" ! -name "*_test.go" ! -name "tools.go"); do
if grep -q "github.com/onsi/ginkgo" $f; then
echo "$f imports github.com/onsi/ginkgo"
HAS_TESTING=true
fi
if grep -q "gith... | lucas-clemente/quic-go | .github/workflows/no_ginkgo.sh | Shell | mit | 467 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-2594-1
#
# Security announcement date: 2015-05-05 00:00:00 UTC
# Script generation date: 2017-01-01 21:04:31 UTC
#
# Operating System: Ubuntu 15.04
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - clamav:0.98.7+dfsg-0ubuntu0.15.04.1
#
# ... | Cyberwatch/cbw-security-fixes | Ubuntu_15.04/x86_64/2015/USN-2594-1.sh | Shell | mit | 728 |
#!/bin/bash
cd "$(dirname "$BASH_SOURCE")" \
&& source 'utils.sh'
declare -a FILES_TO_SYMLINK=(
'shell/bash_aliases'
'shell/bash_autocomplete'
'shell/bash_exports'
'shell/bash_functions'
'shell/bash_logout'
'shell/bash_options'
'shell/bash_profile'
'shell/bash_prompt'
'shell/b... | danmelton/dotfiles | os/create_symbolic_links.sh | Shell | mit | 1,557 |
#!/bin/bash
# Basics
sudo yum install -y git
sudo yum install -y emacs
# Node
sudo curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
sudo yum install -y nodejs
# NPM
npm install -g bower
npm install -g grunt-cli
# npm install -g gulp ???
npm install
node server.js
| cshey15/ProGear | setup.sh | Shell | mit | 292 |
#!/bin/sh
xrandr --output DVI-1 --auto --rotate right
xrandr --output DVI-0 --auto --primary --right-of DVI-1
xrandr --output DisplayPort-0 --auto --right-of DVI-0
| ErikBjare/dotfiles | home/.xrandr/erb-main-kubuntu.sh | Shell | mit | 166 |
#!/usr/bin/env bash
echo "Undo hello world"
| moee/shellprovisioner | tasks/samples/helloworld/undo.sh | Shell | mit | 45 |
#!/usr/bin/env bash
prefetchExtensionZip() {
declare publisher="${1?}"
declare name="${2?}"
declare version="${3?}"
1>&2 echo
1>&2 echo "------------- Downloading extension ---------------"
declare extZipStoreName="${publisher}-${name}.zip"
declare extUrl="https://${publisher}.gallery.vsassets.io/_apis... | NixOS/nixpkgs | pkgs/applications/editors/vscode/extensions/_maintainers/update-bin-srcs-lib.sh | Shell | mit | 4,677 |
#!/bin/bash
pushd site/
python -m SimpleHTTPServer 9001
popd
| lukevenediger/jsinsa-firebase-2015 | serve.sh | Shell | mit | 61 |
#!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: $0 OUTPUTDIR"
exit 1
fi
find $1 -iname '*.gz' -delete
find $1 -iname '*.br' -delete
find $1 -iname '*.html' | xargs sed -i 's|https://kura.io|http://omgkuraio276g5wo.onion|g'
find $1 -iname '*.js' | xargs sed -i 's|https://kura.io|http://omgkuraio276g5wo.onion|g'... | kura/kura.io | scripts/tor.sh | Shell | mit | 591 |
#!/bin/bash
if ! patch -R -p1 --dry-run <$1; then
patch -p1 <$1
fi
| roscopecoltran/scraper | shared/docker/templates/deepdetect/patches/test_patch.sh | Shell | mit | 69 |
#!/bin/sh
BIN=bin
${BIN}/pair node0 &
${BIN}/pair node1 &
sleep 3
killall pair
| begeekmyfriend/nanomsg-tutorial | pair.sh | Shell | cc0-1.0 | 82 |
#!/usr/bin/env bash
for f in required/*.json; do ./node_modules/.bin/jsonlint -q $f; done
for f in optional/*.json; do ./node_modules/.bin/jsonlint -q $f; done
| cmderdev/vendors | testjson.sh | Shell | cc0-1.0 | 160 |
#!/bin/bash
export LEIN="/usr/local/bin/lein"
export APP_NAME="etcd-experiment"
export APP_DIR="/var/www/${APP_NAME}/current"
export APP_ENV="production"
export APP_SHARED_DIR="/var/www/${APP_NAME}/shared"
cd $APP_DIR && java -jar $APP_DIR/target/${APP_NAME}-0.1.0-SNAPSHOT-standalone.jar >> $APP_SHARED_DIR/log/${APP_N... | uswitch/etcd-experiment | bin/run.sh | Shell | epl-1.0 | 334 |
#!/bin/sh
# Copyright (c) 2012-2016 Codenvy, S.A., Red Hat, Inc
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributo... | gazarenkov/che-sketch | dockerfiles/launcher/launcher_funcs.sh | Shell | epl-1.0 | 11,269 |
#!/bin/bash
## check-submodules.sh
##
##
## # Usage
##
## This script represents an 'update' hook for Git.
##
##
## ## Installation
##
## This script should be installed by the developer, such that the
## file would be installed with 'exec' permissions, to a file
##
## ${SOURCE_TREE}/.git/hooks/update
##
## within... | GazeboHub/gproj-project-manage | src/main/resources/git/hooks/update.sh | Shell | epl-1.0 | 3,056 |
#! /bin/sh
#Test dump feature WS IN (default port) -> FILE OUT
# Stores value from 1 to 100 into cache, with a 16.6 ms pause between 2 attempts
# (to simulate 60 req/s from a game)
echo *Flushing redis...
/home/avsp/applications/redis-2.6.14/src/redis-cli "FLUSHDB"
echo
echo *Starting dump...
curl -X GET http://local... | djey47/metrics.blackbox | test/file/dump.sh | Shell | gpl-2.0 | 617 |
# Copyright (C) 2010 Red Hat, Inc. All rights reserved.
#
# This copyrighted material is made available to anyone wishing to use,
# modify, copy, or redistribute it subject to the terms and conditions
# of the GNU General Public License v.2.
#
# You should have received a copy of the GNU General Public License
# along ... | SteamMOD/android_bootable_steam_device-mapper | test/t-activate-partial.sh | Shell | gpl-2.0 | 872 |
#!/bin/bash
#
# MacPorts, Apache 2, MySQL 5, PHP 5.3 and phpMyAdmin 3.5.4 installation script for Mac OS X
#
# Author: enekochan
# URL: http://tech.enekochan.com
#
# It is mandatory to have installed:
# - Apple Xcode Developer Tools
# - Apple Command Line Developer Tools
# Download them from http://connect.apple.com/ ... | almc/ar_tracker | scripts/installMacPorts-Apache-MySQL-PHP-phpMyAdmin-OSX.sh | Shell | gpl-2.0 | 12,372 |
#!/bin/sh
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope t... | alejandroliu/dotfiles | libsrc/mptcl/edled.sh | Shell | gpl-2.0 | 1,053 |
#!/sbin/busybox sh
#
## Create the kernel data directory
mkdir /data/.agat
chmod 777 /data/.agat
## Enable "post-init" Logging do not enable if /sbin/init is already logging ...
mv /data/.agat/post-init.log /data/.agat/post-init.log.bak
busybox date >/data/.agat/post-init.log
exec >>/data/.agat/post-init.log 2>&1
ccx... | agat63/AGAT_FI27_kernel | initramfs/sbin/ext/post-init.sh | Shell | gpl-2.0 | 3,468 |
#!/bin/bash
if [ $1 -gt 0 ]
then
echo "$1 is positive"
elif [ $1 -lt 0 ]
then
echo "$1 is negative"
elif [ $1 -eq 0 ]
then
echo "$1 is zero"
else
echo "$1 is not a number"
fi
| Furzoom/demo-C | src/shell/condition_if_elif_else_fi.sh | Shell | gpl-2.0 | 191 |
#!/bin/sh
#
# Copyright 2005-2008 Sun Microsystems, Inc. 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 Software... | TheTypoMaster/Scaper | openjdk/jdk/test/sun/tools/jrunscript/jrunscript-eTest.sh | Shell | gpl-2.0 | 2,099 |
#/bin/sh
docker build --tag=build-vkquake docker
docker run --rm --privileged -e VERSION=`./get-version.sh` -v ${PWD}/..:/usr/src/vkQuake build-vkquake /usr/src/vkQuake/AppImage/run-in-docker.sh
| Novum/vkQuake | AppImage/build-appimage.sh | Shell | gpl-2.0 | 195 |
#!/bin/bash
#set -x
# if no arguments given, start with interactive terminal
if test $# -lt 1; then
args="-t -i flixr/pprz-dev"
else
# Use this script with derived images, and pass your 'docker run' args
args="$@"
fi
# check if running on Linux or OSX
UNAME=$(uname -s)
#################################... | LodewijkSikkel/paparazzi | docker/run.sh | Shell | gpl-2.0 | 3,900 |
#!/bin/bash
# =====================================================================================================
# Copyright (C) steady.sh v1.2 2016 iicc (@iicc1)
# =====================================================================================================
# This program is free software: you can redistrib... | Tele-Sped/Spam | steady.sh | Shell | gpl-2.0 | 22,252 |
# Copyright (C) 2009 The Android Open Source Project
#
# 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 ... | rex-xxx/mt6572_x201 | ndk/build/core/ndk-common.sh | Shell | gpl-2.0 | 19,715 |
# load with: . ipython-completion.bash
if [[ -n ${ZSH_VERSION-} ]]; then
autoload -Uz bashcompinit && bashcompinit
fi
_ipython_get_flags()
{
local url=$1
local var=$2
local dash=$3
if [[ "$url $var" == $__ipython_complete_last ]]; then
opts=$__ipython_complete_last_res
return
f... | pacoqueen/ginn | extra/install/ipython2/ipython-5.10.0/examples/IPython Kernel/ipython-completion.bash | Shell | gpl-2.0 | 4,271 |
#!/bin/sh
#2007 Lesser GPL licence v2 (http://www.fsf.org/licensing/licenses/lgpl.html)
#make the pup_save.2fs file bigger.
#v412 /etc/DISTRO_SPECS, renamed pup_xxx.sfs, pup_save.2fs etc.
#v555 pup files renamed to woofr555.sfs, woofsave.2fs.
#100913 simplified filenames, minor update of comments.
#120202 rodin.s: inte... | dimkr/woof-CE-libre | woof-code/rootfs-skeleton/usr/sbin/resizepfile.sh | Shell | gpl-2.0 | 7,396 |
#!/bin/sh
PATH=/bin:/sbin
SQUASH_IMG=/squash/root.img
SQUASH_MNT=/squash/root
SQUASH_MNT_REC=/squash/mounts
echo $SQUASH_MNT > $SQUASH_MNT_REC
# Following mount points are neccessary for mounting a squash image
[ ! -d /proc/self ] && \
mount -t proc -o nosuid,noexec,nodev proc /proc
[ ! -d /sys/kernel ] && \
... | yuwata/dracut | modules.d/99squash/setup-squash.sh | Shell | gpl-2.0 | 1,349 |
#!/bin/bash
# get paths and jvm settings:
source ./env.sh
# get marlin settings and boot class path:
source ./env_marlin.sh
# Enable stats
CHECK=true
STATS=false
JAVA_OPTS="-DPNGImageWriter.level=4 -Dsun.java2d.renderer.doChecks=$CHECK -Dsun.java2d.renderer.doStats=$STATS $JAVA_OPTS"
echo "CLASSPATH: $CLASSPATH"
e... | bourgesl/mapbench | bin/reg_marlin.sh | Shell | gpl-2.0 | 1,610 |
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
# returns OK if $1 contains $2
strstr() {
[ "${1#*$2*}" != "$1" ]
}
# returns OK if $1 contains $2 at the beginning
str_starts() {
[ "${1#$2*}" != "$1" ]
}
# replaces all occurrences of 'se... | congwang/dracut | modules.d/99base/dracut-lib.sh | Shell | gpl-2.0 | 14,988 |
# Test for qemu on ARM
# Copyright (C) 2015 Red Hat 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 of the License, or
# (at your option) any later version.
#
# This prog... | pexip/os-virt-what | tests/test-qemu-smbios.sh | Shell | gpl-2.0 | 1,282 |
#!/bin/bash
MAINVER="0.0.1"
Extra="-1"
if [ -d "source" ]
then
cd source
git pull
cd ..
else
git clone https://github.com/AndroidTamer/YADD ./source
fi
rm -rf usr
#Get commit hash
cd source
SVER=`git log --pretty=format:'%h' -n 1`
cd ..
VERSION=$MAINVER"-SNAPSHOT-"$SVER$Extra
# Build
cd source
./clean.py --rebuil... | AndroidTamer/Packaging_Tools | Build/YADD/build.sh | Shell | gpl-2.0 | 1,291 |
CROSS_TOOL_CHAIN=/home/wonfee/environment/android-kitkat/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.6/bin
export PATH=$PATH:$CROSS_TOOL_CHAIN
export CROSS_COMPILE=arm-linux-androideabi-
export ARCH=arm
if [ "$1" ] && [ "$1" == "distclean" ]
then
make distclean
else
make hisi_k3v2oem1_defconfig
make... | Wonfee/huawei_u9508_kernel | mk.sh | Shell | gpl-2.0 | 332 |
#!/usr/bin/env bash
set -e
PACKAGES="cmake pkg-config fftw libogg libvorbis libsndfile libsamplerate jack sdl stk portaudio node fltk"
if [ "$QT5" ]; then
PACKAGES="$PACKAGES qt@5.5"
else
PACKAGES="$PACKAGES cartr/qt4/qt@4"
fi
if "${TRAVIS}"; then
PACKAGES="$PACKAGES ccache"
fi
# removing already installed pa... | mamins1376/lmms | .travis/osx..install.sh | Shell | gpl-2.0 | 974 |
#!/bin/bash
make VARIANT_DEFCONFIG=msm8916_sec_j53g_eur_defconfig msm8916_sec_h_defconfig SELINUX_DEFCONFIG=selinux_defconfig
make -j9
tools/dtbTool -s 2048 -o arch/arm/boot/dt.img -p scripts/dtc/ arch/arm/boot/dts/ -v
| DJSteve/kernel_j5nlte_mm | build_kernel-h.sh | Shell | gpl-2.0 | 221 |
#!/bin/sh
# llcolor.sh
T='RGB'
fgs_a=(' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' '1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' ' 36m' '1;36m' ' 37m' '1;37m')
echo
echo -e "01234567012345670123456701234567012345670123456701234567012345670123456701234567"
echo -e "-------------------------------... | tcler/bkr-client-improved | utils/lscolor.sh | Shell | gpl-2.0 | 1,811 |
#!/system/bin/sh
# *****************************
# i9300 Samsung 4.4.4 version
#
# V0.1
# *****************************
# define basic kernel configuration
# path to internal sd memory
SD_PATH="/data/media/0"
# block devices
SYSTEM_DEVICE="/dev/block/mmcblk0p9"
CACHE_DEVICE="/dev/block/mmcblk0p8"
DATA_DEVICE="... | ea4862/boeffla | ramdisk_boeffla/fs/sbin/boeffla-init.sh | Shell | gpl-2.0 | 11,475 |
#!/bin/bash
# Check wich machines were wrongly configured on production instances on production servers
#
# 2015-11-21 - by s3cur3n3t
#
##########################################################################################################
############
# MAIN #
############
# Should be used with source file che... | s3cur3n3t/DevOps | devoops/check_ip.sh | Shell | gpl-2.0 | 405 |
#!/bin/bash
# Global variables:
# ${GV_LOG}: Prefix this variable in echo to log echoed string.
SCRIPT_NAME="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")"
echo "${GV_LOG}>>>>>>>>> Running ${SCRIPT_NAME} ..."
# Install galculator
apt-get -y --force-yes install calcoo
# Log
echo "${GV_LOG} * Install ca... | limelime/cust-live-deb | scripts-rejected/inst-std-accessories-calc-calcoo/inst-std-accessories-calc-calcoo.sh | Shell | gpl-2.0 | 2,024 |
#!/bin/bash
# Example for running
docker run -e HOME=/root -t -i imiell/sd_gdk_pixbuf /bin/bash
| ianmiell/shutit-distro | gdk_pixbuf/bin/run.sh | Shell | gpl-2.0 | 96 |
#!/bin/bash
lessc tapasG.less > tapasG.css
lessc tapasGdiplo.less > tapasGdiplo.css
lessc tapasGnormal.less > tapasGnormal.css
#lessc sleepy.less > sleepy.css
#lessc terminal.less > terminal.css
| NEU-DSG-archive/tapas | sites/all/modules/tapas_transform/transforms/tapas/css/makecss.bash | Shell | gpl-2.0 | 205 |
#!/usr/bin/env bats
# Created by Shahriyar Rzayev from Percona
WORKDIR="${PWD}"
DIRNAME="$BATS_TEST_DIRNAME"
DIRNAME=$(dirname "$0")
# Preparing test env
function clone_and_build() {
git clone --recursive --depth=1 https://github.com/percona/percona-server.git -b 5.7 PS-5.7-trunk
cd $1/PS-5.7-trunk
# from per... | ShahriyarR/percona-qa | myrocks-tests/myrocks-testsuite.sh | Shell | gpl-2.0 | 3,474 |
#!/bin/bash
docker build -t=graphlab --build-arg "USER_EMAIL=genius@example.edu" --build-arg "USER_KEY=ABCD-0123-EF45-6789-9876-54FE-3210-DCBA" .
| curtiszimmerman/docker-ipython-graphlab-create | build.sh | Shell | gpl-3.0 | 147 |
#!/bin/bash
[[ -z $SEEDS ]] && SEEDS=`seq 1 10`
[[ -z $CYCLES ]] && CYCLES=100
RHO=0.98
SEEDS=($SEEDS)
N=${#SEEDS[@]}
printf "value"
for SEED in ${SEEDS[@]}
do
printf ",$SEED"
done
printf ",mean,sd\n"
getkey() {
KEY="$1"
printf "$KEY"
VALS=()
ACC=0
for SEED in ${SEEDS[@]}
do
VAL=$(bin/simulator -f data/ca... | cabul/smde-qt | utils/table.sh | Shell | gpl-3.0 | 753 |
#!/bin/bash
# to get rid of MSDOS format do this to this file: sudo sed -i s/\\r//g ./filename
# or, open in nano, control-o and then then alt-M a few times to toggle msdos format off and then save
# updated the list of installed gear so this works if we also use it : https://github.com/DeadSix27/python_cross_compile_... | hydra3333/ffmpeg-windows-build-helpers-withOpenCL | archive/rm-v7.sh | Shell | gpl-3.0 | 3,679 |
#!/usr/bin/env bash
# Start the development server locally. The code is served from the src/ directory.
ROOT=$(cd "$(dirname "$0")"; pwd)
source ${ROOT}/common.sh || exit 1
cd ${ROOT} || error "Could not change to directory $ROOT"
checkDeps gae
log "Starting development server"
python $(get_appengine_path)/dev_appse... | yozw/lio-ng | devserver.sh | Shell | gpl-3.0 | 395 |
#!/bin/bash
python /home/pi/scripts/bme280.py | grep Temperature | awk '{print $3}' | cut -c1-4
| HestiaPi/hestia-touch-openhab | home/pi/scripts/getBMEtemp.sh | Shell | gpl-3.0 | 97 |
#!/usr/bin/env bash
#!/bin/sh
DIR=$(dirname "$0")
if [[ $(git status -s) ]]
then
echo "The working directory is dirty. Please commit any pending changes."
exit 1;
fi
echo "Deleting old publication"
rm -rf public
mkdir public
git worktree prune
rm -rf .git/worktrees/public/
echo "Checking out gh-pages branc... | JointBox/docs | publish.sh | Shell | gpl-3.0 | 645 |
mvn dependency:sources
| pablodanielrey/phone | descargar-sources.sh | Shell | gpl-3.0 | 24 |
#!/bin/bash
### This script uses atomsk (and some bash scripting)
### to create a screw 1/2 <111> dislocation in iron
### using anisotropic elasticity. In addition a cylinder
### is defined around the dislocation core; atoms inside
### this cylinder are mobile, those outside are fixed.
rm -f Fe_dislo*
### Define a f... | shigueru/atomsk | examples/Fe_disloc_screw111_anisotropy/build_disloc.sh | Shell | gpl-3.0 | 1,859 |
#!/bin/sh
pkgname=pkg-config
pkgver=0.29.2
vcs=git
gittag=pkg-config-${pkgver}
relmon_id=3649
kiin_make() {
rm -rf glib
mkdir glib
./autogen.sh --prefix=/usr \
--with-internal-glib=no \
--docdir=/usr/share/doc/${pkgname} \
--disable-host-tool
make
}
kiin_install() {
make D... | alekseyrybalkin/kiin-repo | base/pkg-config/package.sh | Shell | gpl-3.0 | 347 |
#!/bin/sh
BASE="/media/${USER}/disk/DCIM"
MARKER="${BASE}/.last_imported"
if ! [ -r "$MARKER" ] ; then
echo "Can't find '$MARKER', doing nothing!"
exit 1
fi
TGT="/scratch/pictures/$(date +%Y)/INCOMING"
if ! [ -d "$TGT" ] ; then
echo "Can't find target directory '$TGT', stopping."
exit 2
fi
LAST=$(ca... | ehrenfeu/simplify | misc/import_photos.sh | Shell | gpl-3.0 | 479 |
#!/bin/bash
set -e
export CC="gcc"
export CFLAGS="-O2 -flto"
export LDFLAGS="-lm -flto -pthread"
./autogen.sh
./configure \
--disable-shared \
--enable-static \
--disable-sse4.1 \
\
--disable-gl \
--disable-sdl \
--disable-png \
--disable-jpeg \
--disable-tiff \
--disable-gif \
--disable-wic \
\
--disab... | TrueCat17/Ren-Engine | libs/scripts/conf/libwebp.sh | Shell | gpl-3.0 | 427 |
cd $ZYNTHIAN_SW_DIR/mod-host
git pull | grep -q -v 'Already up.to.date.' && changed=1
if [[ "$changed" -eq 1 ]]; then
make -j 4
make install
make clean
cd ..
fi
cd $ZYNTHIAN_SW_DIR/mod-ui
git remote remove origin
git remote add origin https://github.com/zynthian/mod-ui.git
git fetch origin zyn-mod-merge
git check... | zynthian/zynthian-sys | scripts/recipes.update/update_modui.sh | Shell | gpl-3.0 | 583 |
#!/bin/sh
set -x # Output executed commands
set -e # Make script fail as soon as one command fails
# Testing main program by sending a bunch of commands via testclient.
# If working correctly the commands should be queued up and performed chronologically.
./testclient 4 0 2 | eivinwi/EurobotUiO | TestClient/lift_up.sh | Shell | gpl-3.0 | 278 |
#!/usr/bin/ksh
##############################################################################
###
### MLC Gold Image Provisioning
### Created by Cliff Ching
### Date Created: 10 March 2015
###
### Updated by Cliff Ching
### Date Modified: 10 March 2015
### Description: To automate the MLC gold image provisioning which... | cliffusion/script | mlc_provision.sh | Shell | gpl-3.0 | 44,015 |
:
# $APPASERVER_HOME/utility/sed_data_directory.sh
# ----------------------------------------------
# Freely available software: see Appaserver.org
# ----------------------------------------------
if [ "$#" -lt 1 ]
then
echo "Usage: $0 data_directory [index_directory]" 1>&2
exit 1
fi
data_directory=$1
if [ "$#" -e... | timhriley/appaserver | utility/sed_data_directory.sh | Shell | gpl-3.0 | 622 |
#!/bin/sh
set -e
# Find uncertainty (position x momentum) for wells of varying width
#
# This script is part of the QWWAD software suite. Any use of this code
# or its derivatives in published work must be accompanied by a citation
# of:
# P. Harrison and A. Valavanis, Quantum Wells, Wires and Dots, 4th ed.
# Chi... | QWWAD/qwwad | examples/numerical-solutions/uncertainty-principle-finite-well.sh | Shell | gpl-3.0 | 1,933 |
if [ ! -d "$1" ]; then
echo "Must pass git directory as the first argument."
exit 2;
fi
cd $1
echo -e "Enter new version (Current `git describe --abbrev=0 --tags`): \c "
while read ver; do
if ([[ ! -z "$ver" ]]) && ([ "$ver" == "`echo $ver | grep "^[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}$"`" ])
then
... | necrose99/qt4-fsarchiver | bump.sh | Shell | gpl-3.0 | 1,583 |
#!/bin/bash
echo "Note: you need to be in nios2_command_shell to run this script"
sof2flash --input=recon_1.sof --output=recon_1.flash --epcs --programmingmode=as
nios2-elf-objcopy -I srec -O ihex recon_1.flash recon_1.hex
| jefflieu/recon | hw/recon_1/civ10/output_files/convert_sof_to_hex.sh | Shell | gpl-3.0 | 225 |
#!/bin/bash
#version 3
#Copyright 2011 George Anastasiou
#This file is part of XAMPPadmin.
#
# XAMPPadmin 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
# (a... | gsiou/XAMPPadmin | wordpress_installer.sh | Shell | gpl-3.0 | 1,281 |
#!/bin/bash
source ~/.bash_profile
# LOAD_USER_FUNTION
#gnash는 일부 파일 경로에서 정상적으로 파일을 찾아 오지 못합니다. 이를 해결하기 위해, 불러올 파일에 대한 심볼릭 링크를 생성시킨뒤, 원본 대신 링크에 접근합니다.
temp=/tmp/.swfopen
mkdir -- "$temp"
link=$temp/$RANDOM$RANDOM$RANDOM.swf
ln -s "$1" "$link"
gnash -- "$link"
#gnash-gtk-launcher
exit | Thestar3Preservation/ScriptPack | Bash Shell Script/swfopen.sh | Shell | gpl-3.0 | 415 |
#!/bin/bash
set -ev
SCRIPTDIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $SCRIPTDIR/../funcs.sh
VERSION="$(get_version .)"
#Only build if the commit we are building is for the last tag
if [ "$(git rev-list -n 1 $VERSION)" != "$(git rev-parse HEAD)" ]; then
echo "Not uploading package"
exit 0
f... | mooltipass/moolticute | scripts/ci/linux/after_success.sh | Shell | gpl-3.0 | 3,381 |
#!/usr/bin/env bash
##########################################################
#
# Copyright (C) 2015 Eduardo Dimas (https://github.com/eddimas/nagios-plugins)
# Copyright (C) 2009 Mike Adolphs (http://www.matejunkie.com/)
#
# This program is free software: you can redistribute it and/or modify
# it under the term... | eddimas/nagios-plugins | check_cpu.sh | Shell | gpl-3.0 | 5,816 |
#!/bin/bash
#cpan must be install, otherwise download the Date::Business package, cd to directory, and do next section.
cpan get Date::Business
cpan make Date::Business
cpan install Date::Business
#perl Makefile.PL
#make
#make install
| ecjbosu/energyScrapes | perlBusinessDayInstall.sh | Shell | gpl-3.0 | 238 |
#!/bin/bash
hadoop dfs -mkdir sim
hadoop dfs -rmr sim/d_lst
hadoop dfs -rmr sim/d_num
hadoop dfs -rmr sim/d_sim
hadoop jar $HADOOP_HOME/contrib/streaming/hadoop-streaming-*.jar -D mapred.reduce.tasks=40\
-D mapred.job.name='sim_d:num'\
-input twitter/triples/* -output sim/d_num\
-mapper 'python d_num_mappe... | plagree/TOPKS | dbscripts/similarity/hadoop_similarity_d.sh | Shell | gpl-3.0 | 969 |
#!/bin/bash
export LANG="en_US.UTF-8"
export LANGUAGE="en_US:"
xjc -p com.soapboxrace.jaxb.http -npa -no-header \
Main.xsd
cp -r com ../src/main/java
rm -rf com
| SoapboxRaceWorld/soapbox-race-core | xsd-final/xjc.sh | Shell | gpl-3.0 | 165 |
#!/bin/bash
#From http://richelbilderbeek.nl/CppHelloBoostQtCreatorLubuntuToWindows.htm
echo "Cross compiling to Windows"
myfile="i686-pc-mingw32-qmake"
mytarget="CppLinkErrorUndefinedReferenceToWebCore"
myprofile=$mytarget.pro
if [ -e $myfile ]
then
echo "MXE crosscompiler '$myfile' found"
else
echo "MXE crossc... | richelbilderbeek/CppTests | CppLinkErrorUndefinedReferenceToWebCore/CppLinkErrorUndefinedReferenceToWebCore.sh | Shell | gpl-3.0 | 976 |
#!/bin/bash
# Generate sized icon images from 512x512 masters
for s in 16 24 32 48 64 128 256
do
[ -d ${s}x${s} ] || mkdir ${s}x${s}
done
for n in PyAuth PyAuth-white PyAuth-grey PyAuth-dark
do
for s in 16 24 32 48 64 128 256
do
convert ${n}.png -scale ${s}x${s} ${s}x${s}/${n}.png
done
i=... | tknarr/PyAuth | pyauth/images/genicons.sh | Shell | gpl-3.0 | 451 |
rm dc.log
rm dc.json
scrapy runspider dc_scrap.py -o dc.json --logfile=dc.log
grep log_count dc.log
| fparrel/wwsupdb | dc_scrap.sh | Shell | gpl-3.0 | 100 |
#!/bin/sh
SERVICE=$1
kill -9 $(pidof $SERVICE)
| pmanwatkar/puppetModules | actions/files/ProcessHandlingLinux/KillProcess.sh | Shell | gpl-3.0 | 48 |
#!/bin/bash
DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
RETURN=0
cd $DIR
echo ""
echo "ISORT"
echo "############################"
isort -rc --check --diff karaage
if [ "$?" -ne 0 ]
then
exit 1
fi
echo ""
echo "FLAKE8"
echo "############################"
flake8 karaage
if [ "$?" -ne 0 ]
then
exit 1
fi
con... | brianmay/karaage | run_tests.sh | Shell | gpl-3.0 | 864 |
CONF_FILE=./etc/git-conf-sync.cfg
. $CONF_FILE
(cd $GCS_WORK ; gpg --homedir $GCS_GNUPGHOME --decrypt $GCS_REPO/curiass.gpg | tar xvz)
| lizard-era/git-conf-sync | bin/6.decode.sh | Shell | gpl-3.0 | 137 |
#!/bin/sh
tar -xf c-blosc2-2.0.0.beta.5.tar.gz
cd c-blosc2-2.0.0.beta.5
mkdir build
cd build
cmake ..
make -j $NUM_CPU_CORES
echo $? > ~/install-exit-status
cd ~
echo "#!/bin/sh
cd c-blosc2-2.0.0.beta.5/build/bench
./b2bench \$1 noshuffle suite \$NUM_CPU_CORES > \$LOG_FILE
echo \$? > ~/test-exit-status" > blosc
chmo... | phoronix-test-suite/phoronix-test-suite | ob-cache/test-profiles/pts/blosc-1.0.0/install.sh | Shell | gpl-3.0 | 331 |
#!/usr/bin/env bash
#
# This script builds the application from source for multiple platforms.
set -e
# Get the parent directory of where this script is.
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )/.." && pwd )"
# Change into that d... | sepiroth887/vault | scripts/build.sh | Shell | mpl-2.0 | 1,942 |
#!/bin/bash
source utils/robot
function info {
echo "[INFO]" $*
}
function error {
echo "[ERROR]" $*
}
BASEDIR=$(pwd)
failures=0
errors=0
oks=0
function lsTestCases {
for dir in $(lsTestDirectories)
do
# Retains directories containing an executable run.sh file
[ -x $dir/run.sh ] && echo $dir;
done
}
fun... | ptitfred/magrit | robot/run.sh | Shell | agpl-3.0 | 1,991 |
#!/bin/bash
tilepath="0003"
#fastj2cgflib -o $tilepath.cglf -t <( ./verbose_tagset $tilepath ) -f <( find ./data -name $tilepath.fj.gz | head -n10 | xargs zcat )
#fastj2cgflib -V -o $tilepath.cglf -t $tilepath.verbose_tagset -f <( find ./data -name $tilepath.fj.gz | xargs zcat )
fastj2cgflib -V -t $tilepath.verbos... | curoverse/l7g | sandbox/tilelib/cglf_test.sh | Shell | agpl-3.0 | 385 |
VERSION=`cat ../drivnal/__init__.py | grep __version__ | cut -d\' -f2`
gpg --import private_key.asc
mkdir -p /vagrant/build/debian
cd /vagrant/build/debian
wget https://github.com/drivnal/drivnal/archive/$VERSION.tar.gz
tar xfz $VERSION.tar.gz
rm -rf drivnal-$VERSION/debian
tar cfz drivnal_$VERSION.orig.tar.gz driv... | drivnal/drivnal | tools/vagrant_build_ubuntu.sh | Shell | agpl-3.0 | 1,131 |
#!/bin/sh
cd electron
npm start
| johansten/stargazer | run.sh | Shell | agpl-3.0 | 32 |
#!/bin/bash
set -e
set +h
function postinstall()
{
echo ca-directory=/etc/ssl/certs >> /etc/wgetrc
}
preinstall()
{
echo "#"
}
$1
| FluidIdeas/parsers | blfs-resources/extrascripts/wget-appconfig.sh | Shell | lgpl-2.1 | 137 |
#!/bin/bash
PROG="${GRINS_TEST_DIR}/generic_solution_regression"
INPUT="${GRINS_TEST_INPUT_DIR}/reacting_low_mach_antioch_cea_constant_regression.in"
DATA="${GRINS_TEST_DATA_DIR}/reacting_low_mach_antioch_cea_constant_regression.xdr"
# A MOAB preconditioner
PETSC_OPTIONS="-pc_type asm -pc_asm_overlap 10 -sub_pc_type... | nicholasmalaya/grins | test/regression/reacting_low_mach_antioch_cea_constant.sh | Shell | lgpl-2.1 | 542 |
#!/bin/bash
# rename_column.sh username password host port dbname tblname oldcolumn newcolumn
exec 1>/dev/null
exec 2>/dev/null
. error_codes
definition=`echo -e \`echo "SHOW CREATE TABLE $5.$6" | mysql -h $3 -P $4 -u $1 --password=$2\` | grep $7 | head -n 1 | awk -F\\\` '{ print $3 }' | sed s/,//`
if [ $? -ne 0 ]... | pubmed2ensembl/MartScript | scripts/rename_column.sh | Shell | lgpl-2.1 | 797 |
JAVA_OPTS="-Djava.awt.headless=true -Xms512m -Xmx4096m -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:MaxPermSize=512m -XX:+UseConcMarkSweepGC"
| cytomine/Cytomine-IMS | scripts/docker/ims/setenv.sh | Shell | lgpl-2.1 | 162 |
function _send.this () {
DIST_DIR="/Users/ademir/dist"
DIST_SRV=basic.ami
ARCHIVE_NAME=$1
FROM_DIR=$2
export COPY_EXTENDED_ATTRIBUTES_DISABLE=true
export COPYFILE_DISABLE=true
#COPYFILE_DISABLE=true
mkdir -p "$DIST_DIR"
tar -c --exclude-from=$SETUP_ROOT_PATH/.tarignore -vzf "$DIST_DIR"/$ARCHIVE_NAME.t... | escribano/old-setup | lib/data.sh | Shell | lgpl-3.0 | 1,794 |
mkdir ./build
pushd ./build
#TODO: 32 bit build
#echo building 32 bit version...
echo building 64-bit version...
mkdir ./x64
pushd ./x64
g++ -c -I../../src ../../src/cogmem/cogmem.cxx -o ./cogmem.o
ar rcs ./libcogmem.a ./cogmem.o
rm ./cogmem.o
popd
popd
| krakencalamari/cogfw | build.sh | Shell | unlicense | 261 |
#!/bin/sh
if test $# -lt 2; then echo "Usage: $0 confdir target"; exit 1; fi;
confdir=$1;
targetdir=$2;
| thetaepsilon/nftfirewall | scripts/template.sh | Shell | unlicense | 105 |
#!/bin/bash
echo ""
echo "******************************************"
echo "PcapPlusPlus Android configuration script "
echo "******************************************"
echo ""
# set Script Name variable
SCRIPT=`basename ${BASH_SOURCE[0]}`
# help function
function HELP {
echo -e \\n"Help documentation for ${SCR... | seladb/PcapPlusPlus | configure-android.sh | Shell | unlicense | 5,645 |
#!/bin/bash
# Copyright 2015 The QingYuan Authors All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required ... | qingyuancloud/qingyuan | cluster/gce/debian/helper.sh | Shell | apache-2.0 | 4,994 |
#!/bin/sh
set -o xtrace
pumba netem delay --help
read -p "Press enter to continue"
pumba --log-level=info --interval=20s netem --tc-image=gaiadocker/iproute2 --duration=10s delay --time=3000 --jitter=20 ping
| gaia-adm/pumba | examples/pumba_delay.sh | Shell | apache-2.0 | 211 |
#!/bin/bash
set -e
SOURCE_PATH="$(realpath "${BASH_SOURCE[0]}")"
PROJECT_DIR="$(dirname $SOURCE_PATH)/../.."
function regen() {
saved_dir="$PWD"
cd "$PROJECT_DIR"
./go-build.sh
# regen CLI partials, pages and sidebar
HOME='~' werf docs --log-terminal-width=100
cd "$saved_dir"
}
function create_documen... | flant/dapp | docs/documentation/regen.sh | Shell | apache-2.0 | 1,012 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.