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
find src/ -type f | grep pp$ | xargs wc -l
| theandrew168/derzy | scripts/loc.sh | Shell | mit | 56 |
#!/usr/bin/env bash
set -e
export MN_SOURCE=$PWD
export MN_INSTALL=`pip show multinet | grep Location | awk '{print $2"/multinet"}'`
if [[ "${REPORT_COVERAGE}" == 1 ]]; then
pytest --cov
else
cd $MN_INSTALL
printenv PWD
pytest
cd $MN_SOURCE
fi
set +e
| wuhaochen/multinet | tools/travis/script.sh | Shell | mit | 275 |
#!/usr/bin/env bash
#
# Postinstall scripts
echo "Linking nvim"
mkdir -p ~/.config
ln -s ~/.nvim ~/.config/nvim
echo "Done."
echo "Changing default shell"
chsh -s /bin/zsh
echo "Done."
echo "Installing vim-plug..."
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent... | andrewhao/dotfiles | script/ahao-install.sh | Shell | mit | 605 |
#!/usr/bin/env bash
openssl genrsa -out rootCA.key 2048
openssl req -x509 -new -nodes -key rootCA.key -sha256 -days 3650 -out rootCA.pem \
-subj "/C=FR/ST=75/L=Paris/O=Localhost Ltd/emailAddress=me@localhost"
| jcisio/docker-phpfarm | apache2/ssl/createRootCA.sh | Shell | mit | 213 |
#!/bin/bash
# no uninitialised variables
set -o nounset
# colors
GREEN="\x1B[32m"
RED="\x1B[31m"
RESET="\x1B[0m"
# function to run all the tests defined in here and report about the findings
function run_test_suite {
ASSERTIONS=0
FAILURES=0
SUCCESSES=0
TEST_CASES=0
for testcase in $(declare -f | grep -o "... | mrtazz/leoric | tests/minibashtest.sh | Shell | mit | 1,412 |
info() {
#echo "`date +\"%M:%S\"` $*"
echo " $*"
}
indent() {
c='s/^/ /'
case $(uname) in
Darwin) sed -l "$c";; # mac/bsd sed: -l buffers on line boundaries
*) sed -u "$c";; # unix/gnu sed: -u unbuffered (arbitrary) chunks of data
esac
}
head() {
echo ""
echo "-----> $*"
}
fil... | hectorip/buildpack-elixir-phoenix | lib/common_phoenix.sh | Shell | mit | 1,444 |
#!/bin/sh
# required: pass iOS version as first parameter
# required: pass Swift version as second parameter
set -o pipefail && \
xcodebuild clean build test \
-project Anchorage.xcodeproj \
-scheme Anchorage-tvOS \
-sdk appletvsimulator \
-destination "platform=tvOS Simulator,name=Apple TV,OS=$1" \
SWIFT_... | Raizlabs/Anchorage | scripts/tvOS_Swift.sh | Shell | mit | 411 |
#!/usr/bin/env bash
BUILD_TYPE="Release"
i=0
args=()
for arg in "$@"
do
if [ "$arg" = "debug" ]
then
BUILD_TYPE="Debug"
elif [ "$arg" = "release" ]
then
BUILD_TYPE="Release"
elif [ "${arg:0:19}" = "-DCMAKE_BUILD_TYPE=" ]
then
BUILD_TYPE="${arg:19}"
else
args[... | xs-embedded-llc/cdbus | build_target.sh | Shell | mit | 1,844 |
#!/usr/bin/env bash
cd "${0%/*}"
pm2 delete godashpi
pm2 restart godashpi-uploader | GoDashPi/device-client | stop.sh | Shell | mit | 82 |
#!/usr/bin/env bash
yarn install
ember build --environment=production
| Aplia/tfk-ansatte | frontend/build.sh | Shell | mit | 70 |
#!/bin/bash
bin=week9
dim=3
mkdir -p data/evol-$dim data/config data/lattice
rm data/config/*.json
rm data/lattice/*.json
#rm data/evol/*.json
#./python/lattice.py -u 0 20 $dim data/lattice/uniform-20.json
./python/lattice.py -u 0 30 $dim data/lattice/uniform-30.json
./python/lattice.py -u 0 40 $dim data/lattice/un... | Milias/ModellingSimulation | Week9/week9.sh | Shell | mit | 915 |
#!/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... | timrichardsn/TRAppUtils | Example/Pods/Target Support Files/Pods-TRAppUtils_Example/Pods-TRAppUtils_Example-frameworks.sh | Shell | mit | 3,617 |
#!/bin/sh
cd $CLONE_PATH && /usr/bin/git fetch
/usr/bin/git clone $CLONE_PATH "$TEMP_PATH"
| chriskuehl/autodeploy | git-co.sh | Shell | mit | 91 |
#!/bin/bash -e
echo "Installing bower components"
bower install
echo "Copying them over to the template dir"
# Copy them over the to the "git repo"
cp ".bower_components/angular/angular.min.js" "templates/bower/"
cp ".bower_components/bugsnag/dist/bugsnag.min.js" "templates/bower/"
cp ".bower_components/jquery/jquery.... | admoexperience/generator-admo | build.sh | Shell | mit | 630 |
echo "Please enter your unique id and hit enter:"
read UNIQUE_ID
for i in `seq 1 10`; do
curl -X POST --data 'bt_signature=fake-valid-signature-for-testing&bt_payload=VGhpcyBpcyBhIHRlc3QNClRoaXMgaXMgb25seSBhIHRlc3QNCklmIHlvdSB0cnkgYW55dGhpbmcgZnVubnkgaXQgd2lsbCBlbmQgcG9vcmx5Lg==' http://localhost:5000/endpoints/$UN... | raymondberg/btray | generate_webhooks.sh | Shell | mit | 334 |
#!/usr/bin/env bash
# ------------------------------------------------------------------------------
#
# Author: Gabriele Girelli
# Email: gigi.ga90@gmail.com
# Version: 1.0.0
# Description: module for file generation.
#
# ------------------------------------------------------------------------------
# START ====... | ggirelli/gpseq-seq-gg | modules/main.file_gen.mod.sh | Shell | mit | 745 |
#!/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)
... | zhujin001032/SkyComponentsPod | Example/Pods/Target Support Files/Pods-SkyComponentsPod_Tests/Pods-SkyComponentsPod_Tests-resources.sh | Shell | mit | 5,337 |
#!/usr/bin/env bash
# Preferred 'ls' implementation
alias ll='ls -FGlAhp'
# Always list directory contents upon 'cd'
cd() { builtin cd "$@"; ll; }
# Go back 1 directory level (for fast typers)
alias cd..='cd ../'
# Go back 1 directory level
alias ..='cd ../'
# Go back 2 directory levels
alias ...='cd ../../'
# Go... | smyrick/dot-files | bash-profile/base/aliases.sh | Shell | mit | 660 |
#!/bin/sh
# GIT_VERSION=`git symbolic-ref --short HEAD || git describe --all || date +%Y%m%d-%H%M%S -u`
image=`basename $PWD`.img
sudo singularity create -s 4000 $image
sudo singularity bootstrap $image singularity.def
lz4 $image $image.lz4
sha512sum $image* > sha512sums
rm -f $image
| robermorales/singularity-octave-mpi | bootstrap-singularity.sh | Shell | mit | 289 |
#!/bin/bash
mkdir /home/homeassistant/.homeassistant/temp/
cd /home/homeassistant/.homeassistant/temp/
git clone https://github.com/varocarrascosa/home-assistant.git
cp -r /home/homeassistant/.homeassistant/temp/home-assistant/* /home/homeassistant/.homeassistant/
rm -rf /home/homeassistant/.homeassistant/temp
| varocarrascosa/home-assistant | cmds/pullconfig.sh | Shell | mit | 312 |
#!/bin/bash
enter_fullscreen() {
tput smcup
stty -echo
}
leave_fullscreen() {
tput rmcup
stty echo
}
| ConnorAtherton/shell-helpers | src/full_screen.sh | Shell | mit | 111 |
#!/bin/bash
echo "export PYTHONPATH=$PYTHONPATH:$HOME/Code/animated-bear/lib/stitcher" >> ~/.bashrc
| robotfoot/animated-bear | scripts/setup.sh | Shell | mit | 101 |
#!/bin/sh
prog=gumacosFIRsymmetric_flat_halfband_test.m
depends="gumacosFIRsymmetric_flat_halfband_test.m test_common.m \
gumacosFIRsymmetric_flat_halfband.m print_polynomial.m"
tmp=/tmp/$$
here=`pwd`
if [ $? -ne 0 ]; then echo "Failed pwd"; exit 1; fi
fail()
{
echo FAILED ${0#$here"/"} $prog 1>&2
c... | robertgj/DesignOfIIRFilters | test/04/t0477a.sh | Shell | mit | 4,721 |
#!/bin/sh
######################################################################
#
# @file nose_aux.sh
#
# @brief Trigger vars and find information for nose.
#
# @version $Rev$ $Date$
#
# Copyright © 2015-2017, Tech-X Corporation, Boulder, CO.
# See LICENSE file (EclipseLicense.txt) for conditions of use.
#
#... | Tech-XCorp/bilder | packages/nose_aux.sh | Shell | epl-1.0 | 1,169 |
#
# Copyright (c) 2012-2018 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
#
# Contributors:
# Red Hat, Inc. ... | sleshchenko/che | agents/terminal/src/main/resources/installers/1.0.0/org.eclipse.che.terminal.script.sh | Shell | epl-1.0 | 7,266 |
#!/bin/bash
# Configure the LedgerSMB database administrator user
#
# Copyright (C) 2015-2017 Robert James Clay <jame@rocasa.us>
#
# This file 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 ... | ledgersmb/pkg-ledgersmb-1.4 | debian/adm/config-lsmb-db-user.sh | Shell | gpl-2.0 | 1,038 |
#!/bin/bash
rm -fr mod
rm cells3d
mkdir mod
dir='./src'
if [ $1 == '-g' ]; then
ifort -g -traceback -check bounds -check all -stand f03 -r8 -module mod $dir/global_m.F90 $dir/misc_m.F90 $dir/derivatives_m.F90 $dir/sim_init_m.F90 $dir/run_cells_m.F90 $dir/main.F90 -o cells3d
else
ifort -g -traceback -stand f03 -O3 -f... | phydev/MetSim | compile.sh | Shell | gpl-2.0 | 672 |
#!/bin/bash
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd ${DIR}
. ../config/config.sh
. ${TOP}/venv/bin/activate
echo "$0: List Hosts to ${HOSTS_TXT}"
HOSTS=""
while read region name instance_type archdomain price env_tag external_ip internal_ip
do
if [ $region == "$REGION" ]; then
... | leighklotz/traffic-map | list/list-hosts.sh | Shell | gpl-2.0 | 526 |
#!/bin/bash
MY_DIR=`dirname $0`
if [[ -z "$CREATEREPO" ]]
then
CREATEREPO="createrepo_c"
fi
if [[ -z "$MODIFYREPO" ]]
then
MODIFYREPO="modifyrepo_c"
fi
pushd "$MY_DIR"
$CREATEREPO $EXTRAARGS --pkglist pkglist --groupfile group.xml --revision "1st repo" --content "A content tag" .
$MODIFYREPO --mdtype="fooba... | Tojaj/DeltaRepo | example/repos/repo1/gen.sh | Shell | gpl-2.0 | 348 |
version=\
(
2.0.0
)
url=\
(
"http://garr.dl.sourceforge.net/project/opencvlibrary/opencv-unix/2.0/OpenCV-$version.tar.bz2"
)
md5=\
(
'ed27520514baacc5edad7b06ad24130e'
)
maintainer=\
(
'Ricardo Martins <rasm@fe.up.pt>'
)
configure()
{
"../OpenCV-$version/configure" \
--prefix="$cfg_dir_t... | krisklau/glued | rules/opencv/default.bash | Shell | gpl-2.0 | 990 |
#! /bin/sh
if [ -z "$CLAUDE_ROOT" ]; then
echo "CLAUDE_ROOT variable is not defined"
exit 1
fi
ROOT_DIR="$CLAUDE_ROOT/claude_core"
POSTPROCESSOR_SCRIPT="$ROOT_DIR/launch/postprocessorScript.py"
# CLAUDE virtual environment directory
VIRTUALENV="$CLAUDE_ROOT/venv"
###################
#
# PATH should only include /... | Karandash8/claude_reborn | claude_config/etc/init.d/postprocessor.sh | Shell | gpl-2.0 | 4,071 |
#!/bin/env bash
this=$(basename "$0" '.sh')
hostcopy='1 2'
host_tag='zappyk-rp%s'
file_tag='log/raspi%s-raspberry-temp-check.csv'
dir_copy="."
dateuniq="$dir_copy/$this.csv"
filelist=
for i in 1 2; do
host=$(printf "$host_tag" "$i")
file=$(printf "$file_tag" "$i")
name=$(basename "$file")
scp $host:"... | zappyk-github/zappyk-ocean | home/zappyk/bin/raspberry-temp-scp-from-raspiX.sh | Shell | gpl-2.0 | 504 |
#!/bin/bash
parent_path=$( cd "$(dirname "${BASH_SOURCE}")" ; pwd -P )
cd "$parent_path"
python2.7 "`dirname $0`"/main/Main.py
| murar8/Workouts | start.sh | Shell | gpl-2.0 | 129 |
#!/bin/bash
for i in `seq 1 10`; do
kill -INT `pidof lt-rcssserver` 1>/dev/null 2>&1 &
kill -INT `pidof rcssserver` 1>/dev/null 2>&1 &
killall -9 rcssserver 1>/dev/null 2>&1 &
killall -9 rcssmonitor 1>/dev/null 2>&1 &
killall -9 rcsslogplayer 1>/dev/null 2>&1 &
killall -9 lt-rcssserver 1>/dev/n... | aijunbai/keepaway | kill.sh | Shell | gpl-2.0 | 384 |
#!/bin/bash
clear
#This script is made to check estimated ideal weight and body mass index
#(for i am a doctor, sometimes i need to make script like this :lol: )
#Created and Tested by falconflame a.k.a dr. F
#First, Checking Rough Ideal Weight
#Input weight in Kg and height in Cm
echo -n "Enter your weight (in Kg): ... | falconflame/bash-apprendre | bodymassindex.sh | Shell | gpl-2.0 | 2,142 |
AWK=`which gawk || which nawk || which awk`
passed=0
echo
echo 'Running tests'
echo '----------------------------------------'
echo
echo " -- running tests with: ${AWK}"
echo
for i in [0-9]*.in
do
name=`basename $i .in`
printf "%s: " ${name}
${AWK} -f ../awkdown ${name}.in > /tmp/${name}.out
diff /... | tfritzon/awkdown | tests/tests.sh | Shell | gpl-2.0 | 575 |
_MAKE_INSTALL=0
gitsrc $1 https://github.com/dyne/Tomb.git
common_autotools $1 || die "error"
cd $MYMKR_PREFIX/src/$1
cp -a tomb $MYMKR_PREFIX/bin/tomb
M=$MYMKR_PREFIX/share/man/man1
test ! -d $M && mkdir -p $M
cat doc/tomb.1 | gzip > $M/tomb.1.gz
| sensorii/mymkr | mymkr/pkgs/old/tomb.sh | Shell | gpl-2.0 | 248 |
# -*- shell-script -*-
#
# Copyright (C) 1996-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.
#
#... | Starlink/automake | t/ax/am-test-lib.sh | Shell | gpl-2.0 | 35,991 |
#!/bin/bash
#
# make-csr is a shell script designed to automatically generate a
# certificate signing request (CSR) from an Apache or a Nginx vhost
#
# Author: Victor Laborie <vlaborie@evolix.fr>
# Licence: AGPLv3
#
set -u
show_version() {
cat <<END
vhost-domains version ${VERSION}
Copyright 2009-2021 Evolix <in... | Evolix/ansible-roles | evoacme/files/vhost-domains.sh | Shell | gpl-2.0 | 4,503 |
#! /bin/sh
# Copyright (C) 2011-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/amhello-binpkg.sh | Shell | gpl-2.0 | 1,605 |
#!/bin/bash
##############################################################################
QUERY[0]="http://autoplot.org/data/autoplot.cdf?BGSM"
QUERY[1]="open=http://autoplot.org/data/autoplot.cdf?BGSM"
QUERY[2]="version=latest&http://autoplot.org/data/autoplot.cdf?BGSM"
QUERY[3]="version=latest&open=http://autoplot.... | autoplot/app | Autoplot/src/external/server/jnlp2a.sh | Shell | gpl-2.0 | 1,663 |
#!/bin/bash -x
#
# Generated - do not edit!
#
# Macros
TOP=`pwd`
CND_PLATFORM=GNU-Linux-x86
CND_CONF=Debug
CND_DISTDIR=dist
CND_BUILDDIR=build
NBTMPDIR=${CND_BUILDDIR}/${CND_CONF}/${CND_PLATFORM}/tmp-packaging
TMPDIRNAME=tmp-packaging
OUTPUT_PATH=${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}/codingchallenge
OUTPUT_BASEN... | ximinez/CodingChallenge | CodingChallenge/nbproject/Package-Debug.bash | Shell | gpl-2.0 | 1,475 |
#!/bin/sh
# travelmate, a wlan connection manager for travel router
# Copyright (c) 2016-2021 Dirk Brenken (dev@brenken.org)
# This is free software, licensed under the GNU General Public License v3.
# set (s)hellcheck exceptions
# shellcheck disable=1091,2086,3040,3043,3057,3060
export LC_ALL=C
export PATH="/usr/sbi... | thess/OpenWrt-packages | net/travelmate/files/travelmate.sh | Shell | gpl-2.0 | 32,066 |
set -e;
BT=${BT-../../bin/bedtools}
FAILURES=0;
check()
{
if diff $1 $2; then
echo ok
else
FAILURES=$(expr $FAILURES + 1);
echo fail
fi
}
##################################################################
# Test one block without -split
##################################################################
... | jmarshall/bedtools2 | test/bedtobam/test-bedtobam.sh | Shell | gpl-2.0 | 573 |
#! /bin/bash
. ${DIR}/trs_3descbc_sha1_defs.sh
SGW_CMD_XPRM=
| emmericp/dpdk | examples/ipsec-secgw/test/trs_3descbc_sha1_old_defs.sh | Shell | gpl-2.0 | 63 |
#! /bin/sh
cd /tmp
# Make sure previous copies are gone
rm -rf quake3/
# Checkout a new copy of ioq3
svn co svn://svn.icculus.org/quake3/trunk/ quake3
cd quake3/
IOQ3REVISION=`svnversion .`
IOQ3VERSION=ioq3-r$IOQ3REVISION
rm -rf $IOQ3VERSION
svn export . $IOQ3VERSION
cd $IOQ3VERSION
# Remove READMEs and the like
... | newsource-trem/darkengine_bba | misc/merge-ioq3-into-trem.sh | Shell | gpl-2.0 | 913 |
#!/bin/bash
rm -Rf */*nvidia*304*/{src,pkg}
#cd linux310*/*nvidia*304*
#makepkg -df
#cd ../../linux312*/*nvidia*304*
#makepkg -df
#cd ../../linux313*/*nvidia*304*
#makepkg -df
#cd ../../linux314*/*nvidia*304*
#makepkg -df
cd linux316*/*nvidia*304*
makepkg -df
cd ../../linux318*/*nvidia*304*
makepkg -df
#cd ../../linux3... | manjaro/packages-extra | build-nvidia-304.sh | Shell | gpl-2.0 | 929 |
###################################################################################
# V 0.4 monitorizar (Red Hat Linux) #
# Server: preeadmin.dipcas.es IP: 195.57.195.23 #
# ... | joancatala/scripts-sepam | monitorizar (preeadmin)/monitorizar.sh | Shell | gpl-2.0 | 6,248 |
# Copyright 2011 The Apache Software Foundation
#
# 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 Li... | zorino/magpie | conf/hadoop-env-2.0.sh | Shell | gpl-2.0 | 4,228 |
#!/bin/bash
if [ "$(whoami)" != "root" ]; then
echo "Sorry, you are not root."
exit 1
fi
source ~/.foscam_credentials
wget -O - -q "http://127.0.0.1:7070/jsonrpc?request={\
\"jsonrpc\":\"2.0\",\
\"id\":0,\
\"method\":\"Addons.ExecuteAddon\",\
\"params\":{\
\"addonid\":\"script.rivkaca... | rodyo/XBMC_foscam_scripts | triggerRivka.sh | Shell | gpl-2.0 | 581 |
convert images/OCS-498-A.png -crop 1570x4604+75+279 +repage images/OCS-498-A.png
#
#
#/OCS-498.png
convert images/OCS-498-B.png -crop 1453x4614+97+271 +repage images/OCS-498-B.png
#
#
#/OCS-498.png
| jonnymwalker/Staroslavjanskij-Slovar | scripts/cropedges.OCS-498.sh | Shell | gpl-2.0 | 198 |
#!/bin/bash
# script
wget -O user-list http://rzserver.tk/source/user-list
if [ -f user-list ]; then
mv user-list /usr/local/bin/
chmod +x /usr/local/bin/user-list
fi
wget -O menu http://rzserver.tk/source/menu
if [ -f menu ]; then
mv menu /usr/local/bin/
chmod +x /usr/local/bin/menu
fi
wget -O monssh http://rzs... | MuluuJelekk/AutoFix | menu.sh | Shell | gpl-3.0 | 427 |
#!/bin/bash
if [[ $(type -t wget) ]]; then wget -O $1 "https://api.wordpress.org/secret-key/1.1/salt/"
elif [[ $(type -t curl) ]]; then curl -o $1 https://api.wordpress.org/secret-key/1.1/salt/
else
error "Could not find wget or curl, please install one of them"
return 1
fi
| rafhun/grunt-wordpress-starter | getKeys.sh | Shell | gpl-3.0 | 280 |
#!/bin/bash
python AnalyzeSimulation.py --paralog1 YER074W --paralog2 YIL069C --simnum 71 > YER074W_YIL069C_MG94_nonclock_Sim71_PrintScreen.txt
| xjw1001001/IGCexpansion | Simulation/ShFiles/MG94_YER074W_YIL069C_sim71.sh | Shell | gpl-3.0 | 145 |
#!/bin/bash
key="这里填写你的key"
weatherinfo=$(curl -s "http://api.map.baidu.com/telematics/v3/weather?location=%E6%9C%9B%E5%9F%8E&output=json&ak=6dd11fd43e63dde2abc6bc9564aa37b3")
weather_today=$(echo $weatherinfo | jq .results | jq '.[].weather_data' | jq '.[0]')
city=$(echo $weatherinfo | jq .results | jq '.[].currentCi... | 4679/serverchan-scripts | weather.sh | Shell | gpl-3.0 | 1,335 |
#! /bin/bash
echo "==> Disk usage before minimization.";
df -h;
echo "==> Installed packages before cleanup.";
dpkg --get-selections | grep -v deinstall;
# Remove automatically-installed packages.
echo "==> Removing automatically-installed packages.";
apt-get autoremove;
# Remove some packages to get a minimal inst... | goodguyry/dreambox | provisioners/minimizer.sh | Shell | gpl-3.0 | 1,792 |
latex user_guide.tex
latex user_guide.tex
bibtex user_guide
bibtex user_guide
latex user_guide.tex
dvips -o user_guide.ps user_guide.dvi
ps2pdf user_guide.ps
| jianghao123/Cassandra_V1.1-polarizable | Documentation/Tex/do_it.sh | Shell | gpl-3.0 | 159 |
# renders simple 3-state ascii barcharts using framebuffer.bash
# usage :
# source framebuffer.bash
# source plugins/barchart.bash
# export WIDTH=22
# put 2 3 "stock:"; echo "0,1,2,0,2,1,0,1,2,1" | vbarchart 10 2 20
# put 2 5 "rates:"; echo "0,10,2,0,7,1,0,4,10" | MAX=10 vb:rchart 10 4 20
# put 2 7 "redis... | coderofsalvation/framebuffer.bash | plugins/barchart.bash | Shell | gpl-3.0 | 1,764 |
#!/bin/bash
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id: etc-update 4375 2006-08-29 21:28:56Z zmedico $
# Author Brandon Low <lostlogic@gentoo.org>
#
# Previous version (from which I've borrowed a few bits) by:
# Jochem Kossen <j.kossen@home.nl>
# Le... | PROYECTO-UTUTO/uget | bin/auto-update-etc.sh | Shell | gpl-3.0 | 13,055 |
#/bin/sh
#
for i in *.flac; do
flac -fd $i -o temp.wav
sox temp.wav temp1.wav rate 22050
lame --noreplaygain -f -b 128 temp1.wav ${i%.wav}.autopreview.mp3
rm *.wav
done
exit 0
| ljvillanueva/bits-and-pieces | bash/misc_HEMA_scripts/makemp3.sh | Shell | gpl-3.0 | 193 |
#!/bin/bash
# Plot the best frequency selected and spectrum sensing
SLAVE_SENSE="/tmp/sense.txt"
MASTER_SENSE="/tmp/res_sense.txt"
BEST_CHANNEL="/tmp/master_channels.txt"
BEST_CHANNEL_SLAVE="/tmp/slave_channels.txt"
SENSE_DATA=".tmp_res_sense.dat"
CH_RESULT=".tmp_best_channel.dat"
if [ -e $SLAVE_SENSE ]; then
cp... | GrubiCom/FrameworkCRN | best_freq_plot.sh | Shell | gpl-3.0 | 3,247 |
#!/bin/bash
# Bash strict mode, see http://redsymbol.net/articles/unofficial-bash-strict-mode/
#set -euo pipefail
#IFS=$'\n\t'
DIRS=`ls --directory -- */`
for i in ${DIRS};do
if [ -d ${i}/.git/ ];then
echo ${i}
git -C ${i} pull
fi
done
| x1596357/scripts | git-pull-all/git-pull-all-one-by-one.sh | Shell | gpl-3.0 | 255 |
#!/usr/bin/env bash
set -euo pipefail
[ -n "${DEBUG:-}" ] && set -x
if [ "$1" = 'mysql' ]; then
./scripts/create_database.sh &
./bin/mysqld_safe --user=mysql
fi
exec "$@" | jorgeacf/dockerfiles | database/mysql/entrypoint.sh | Shell | gpl-3.0 | 180 |
#!/bin/bash
#####################################################################################
# Copyright 2013 Normation SAS
#####################################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU ... | jooooooon/rudder-tools | scripts/repo-merge.sh | Shell | gpl-3.0 | 4,719 |
clear
echo ""
echo "Installing Sailfish OS"
echo ""
sleep 1
echo "Please boot your Nexus 7 into bootloader/fastboot mode by pressing Power & Volume Down (-)"
echo ""
sleep 1
echo -n "Is your Nexus 7 in bootloader/fastboot mode now? [Y] "; read bootloadermode
if [ "$bootloadermode"==Y -o "$bootloadermode"==y -o "$bootlo... | MariusQuabeck/magic-device-tool | devices/nexus7deb/android/sailfishos.sh | Shell | gpl-3.0 | 3,169 |
#!/bin/sh
cd ../Bin
./InnoMain "-renderer 0 -mode 0"
| zhangdoa/InnocenceEngine | Script/StartEngineLinux.sh | Shell | gpl-3.0 | 53 |
#!/bin/sh
CPPCFLAGS='--suppress=missingIncludeSystem --enable=all -iinclude/ -ilib/ -iCMakeFiles/'
cppcheck $CPPCFLAGS .
#echo -e '\e[36m\e[1m'
#echo -e 'Checking [core]...'
#echo -e '\e[0m\e[35m'
#cppcheck $CPPCFLAGS core/
#echo -e '\e[36m\e[1m'
#echo -e 'Checking [engine]...'
#echo -e '\e[0m\e[35m'
#cppcheck $CPPCFL... | kompote/sbrts | src/checkcode.sh | Shell | gpl-3.0 | 611 |
#!/usr/bin/env bash
# the UID Tor runs as
TOR_UID=$(id -u debian-tor)
# Tor's TransPort
TRANS_PORT="9040"
iptables -F
iptables -t nat -F
iptables -t nat -A OUTPUT -m owner --uid-owner $TOR_UID -j RETURN
iptables -t nat -A OUTPUT -p udp --dport 53 -j REDIRECT --to-ports 53
iptables -t nat -A OUTPUT -p tcp --syn -j R... | chrootLogin/torvm | root/usr/local/bin/tor-firewall.sh | Shell | gpl-3.0 | 505 |
#!/bin/bash
requires figlet
# The Screen and the Stage
tmux set status off
tmux split-window -d -l 11
screen=$(tmux display -p -t 0 '#{pane_tty}')
stage=$(tmux display -p -t 1 '#{pane_tty}')
# Actors
koala () {
local geometry="0 0 37 11 bottom-left"
show "$geometry" -f koala <<<"$1" > $stage
saywith es... | jlento/atm-doc | conda/play/script.sh | Shell | gpl-3.0 | 1,635 |
#!/bin/bash
HOST=$1
GAME=$2
CONF_PATH=$3
KEY_DIR=$4
DEBUG_ENABLED=$5
LOG_PATH="$(dirname ${CONF_PATH})/moonlight.log"
# taken from: http://stackoverflow.com/questions/420278/append-text-to-stderr-redirects-in-bash
foo() { while IFS='' read -r line; do echo "$(date) [INFO] $line" >> ${LOG_PATH}; done; };
foo_err() { w... | wackerl91/luna | resources/lib/launchscripts/osmc/launch.sh | Shell | gpl-3.0 | 653 |
#!/bin/bash
rm -Rf ~/.ssh/authorized_keys
| yanndegat/swarmer | packer/swarmer/scripts/aws-fini.sh | Shell | gpl-3.0 | 43 |
# DESCRIPTION
# Copies all files of type $1 (png, jpg etc. -- configurable by first parameter) from all directories one level down up to the current directory. Optionally copies from all subdirectories (recursive). See USAGE. Will not copy files from lower directories already found in the current directory. SEE ALSO `m... | r-alex-hall/fontDevTools | scripts/copyTypeUp.sh | Shell | gpl-3.0 | 1,973 |
#!/usr/bin/env bash
echo "Install Apache and setting it UP"
apt-get update
apt-get install -y apache2
sudo sh -c 'echo "ServerName localhost" >> /etc/apache2/conf.d/name' && sudo service apache2 restart
rm -rf /var/www
ln -fs /vagrant /var/www
exit 0
| lopesivan/vagrant | vbox/precise32/developer/provision.sh | Shell | gpl-3.0 | 254 |
#!/bin/bash
#for idx in `cat ${HOME}/sofun/utils_sofun/analysis_sofun/fluxnet2015/test.txt`
for idx in `cat ${HOME}/sofun/utils_sofun/analysis_sofun/fluxnet2015/sitelist_doprofile_fluxnet2015.txt`
do
cp ${HOME}/sofun/utils_sofun/analysis_sofun/fluxnet2015/submit_fVAR_nn_XXXXXX.sh ${HOME}/sofun/utils_sofun/analy... | stineb/nn_fluxnet2015 | submit_fVAR_nn_ALL.sh | Shell | gpl-3.0 | 621 |
#!/bin/sh
# Demonstrate a bug in 'tail -cN' when operating on files of size 4G and larger
# Fixed in coreutils-4.5.2.
# Copyright (C) 2002-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
#... | pexip/os-coreutils | tests/tail-2/big-4gb.sh | Shell | gpl-3.0 | 1,679 |
#!/usr/bin/env bash
SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SCRIPT_FILE="$(basename "${BASH_SOURCE[0]}")"
SCRIPT_NAME="${SCRIPT_FILE%.*}"
doPrintPrompt() {
printf "[%s] $*" "$SCRIPT_NAME"
}
doPrint() {
doPrintPrompt "$*\n"
}
doPrintHelpMessage() {
printf "Usage: ./%s [-h] [-c config]... | wrzlbrmft/arch-pi2 | arch-pi.sh | Shell | gpl-3.0 | 12,622 |
#!/bin/bash
# Compile code
make clean
./bootstrap.sh && make
sleep 2
# Benchmark parameters
SIMTIME=100
STATRUNS="1 2 3 4 5"
HOSTNAME=`hostname`
DATE=`date +"%Y-%m-%d"`
# REVISION=`git log --pretty=oneline -1 | cut -d " " -f 1`
REVISION=`git describe`
TMPDIR=`mktemp -d`
# Function declaration
function fun_benchmark(... | idiot-z/auryn | build/release/run_benchmark.sh | Shell | gpl-3.0 | 1,582 |
#!/bin/sh
PKGLIST=./allpacks.txt
NEEDFILES=./pkgneeds.txt
MAINPKGS=./mainpkg.txt
DEST_DIR=./mysys
VERBOSE=
if [ "x$1" = "x-v" ]; then
VERBOSE="-v"
fi
copyfiles()
{
for i in `cat $1` ; do
NEWFILE=${DEST_DIR}/$i
if [ -h "$i" ]; then
if [ ! -h "$NEWFILE" ]; then
echo "link name $i to `readlink ... | aababilov/linux-programs | getpkgdeps/mkallneeds.sh | Shell | gpl-3.0 | 1,122 |
#!/bin/sh
N=$(cat /proc/cpuinfo | grep processor | wc -l)
echo "Using $N threads."
PR=../testsuite/precision-recall/PrecisionRecall.hs
COMMON="--cvc4 --alt-ergo --spass --verbosity=40 --lint-poly-fol -N$N +RTS -N4 -RTS"
cd examples
hipspec HOF.hs --auto=False --success=NothingUnp... | danr/hipspec | run_tests.sh | Shell | gpl-3.0 | 1,473 |
#!/bin/bash
echo "This script will deploy the code to production [ENTER TO CONTINUE]"
read
echo "Sync git..."
git commit -a -m 'server changes'
git pull /git/grabbbbit.git v3-symfony
git submodule update
git push
echo "Update database..."
php app/console generate:doctrine:entities GrabbbbitCoreBundle
php app/consol... | jrmgx/grabbbb.it | scripts/deploy_prod.sh | Shell | gpl-3.0 | 562 |
#!/bin/bash -e
. ../../blfs.comm
build_src() {
srcfil=ctags-5.8.tar.gz
srcdir=ctags-5.8
tar -xf $BLFSSRC/$PKGLETTER/$CURDIR/$srcfil
cd $srcdir
./configure --prefix=/usr CFLAGS=-O2
make
make prefix=$BUILDDIR/usr install
cleanup_src .. $srcdir
}
gen_control() {
cat > $DEBIANDIR/control << EOF
$PKGHDR
Description: bui... | fangxinmiao/projects | Architeture/OS/Linux/Distributions/LFS/build-scripts/blfs-7.6-systemv/c/ctags-5.8/build.sh | Shell | gpl-3.0 | 969 |
#!/bin/bash
# Abort on Error
set -e
# Set up a repeating loop to send some output to Travis.
export PING_SLEEP=300s
bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
export PING_LOOP_PID=$!
echo "Starting frontend..."
npm run http-server &
while ! curl --output /dev/null --silent -r 0-0... | livthomas/Lumeer-web-ui | travis.sh | Shell | gpl-3.0 | 819 |
#!/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-B/20161202T014316+0000/00/00/mediancpu_0_ID0000004.sh | Shell | gpl-3.0 | 1,237 |
javadoc javolver/*.java -d docs
| nickd3000/javolver | builddocs.sh | Shell | gpl-3.0 | 32 |
#!/bin/bash
echo "Start Of Program"
# words to extract
#words=(village base braves)
words=(village)
# learner textgrid files path
#learner_paths_textgrid=(~/Workspace/IFCASL/viwoll/GF/SH/SH01 ~/Workspace/IFCASL/viwoll/GF/SH/SH03 ~/Workspace/IFCASL/viwoll/GF/SR/SR02)
learner_paths_textgrid=(/home/sini/Workspace/IFCASL/... | SiniAghilas/scripts | data/feedback_samples/learner/village_script.sh | Shell | gpl-3.0 | 4,129 |
#!/bin/sh
set -o xtrace
rm -Rf ./dist* ./coverage *.tsbuildinfo | ethereumjs/ethereumjs-vm | config/cli/clean-package.sh | Shell | mpl-2.0 | 63 |
#!/bin/bash
python dawnforge_rss.py
python podbean_rss.py
python feedburner_v1.py
python feedburner_v2.py
python fix_rss.py
python normal_rss.py
python podbean_rss.py
python unified_rss.py
| hasteur/BlizzPodcastRSS | generator.sh | Shell | agpl-3.0 | 190 |
#!/bin/bash
set -eo pipefail
source /config
rm -rf /pi-gen/work
ln -s /work /pi-gen/work
cat /dev/null >/pi-gen/export-image/01-set-sources/00-patches/0-sources.diff
cat /dev/null >/pi-gen/stage2/01-sys-tweaks/00-patches/02-swap.diff
cat /dev/null >/pi-gen/stage2/01-sys-tweaks/00-patches/03-console-setup.diff
cat /... | fallnet/openwifiappliance | platform/rpi3/docker/stage2.sh | Shell | agpl-3.0 | 452 |
#!/bin/bash
sudo apt-get update
sudo apt-get install lsb-release
curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome.deb
sudo sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' /opt/google/chrome/google-chrome
rm goo... | monicahq/monica | scripts/tests/install-chrome.sh | Shell | agpl-3.0 | 335 |
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
# Copyright (C) 2017, Martin Kepplinger <martink@posteo.de>
# This starts ts_uinput as a daemon and creates /dev/input/ts_uinput to use
# as an evdev input device
TS_UINPUT_DEV_FILE=$(ts_uinput -d -v)
TS_UINPUT_DEV_FILE_CHECKED=$(ls "$TS_UINPUT_DEV_FILE" | grep 'event')... | kergoth/tslib | tools/ts_uinput_start.sh | Shell | lgpl-2.1 | 524 |
#!/bin/bash
# Beginning of outer loop.
for a in {3..9}
do
# ===============================================
# Beginning of inner loop.
for b in 99800 99820 99840 99860 99880 99900 99920 99940 99960 99980
do
mpiexec -n 2 ~/projects/sahote/sahote-opt -i ~/projects/sahote/problems/SahoteTestLocalRb.i BCs/Co... | jamiesahote/sahote | Ion beam energy file creation/40MeV/Ti/RunScriptRb.sh | Shell | lgpl-2.1 | 573 |
#!/bin/sh -e
test_rados_api_aio
test_rados_api_io
test_rados_api_list
test_rados_api_misc
test_rados_api_pool
test_rados_api_snapshots
test_rados_api_stat
test_rados_api_watch_notify
exit 0
| ajnelson/ceph | qa/workunits/rados/test.sh | Shell | lgpl-2.1 | 192 |
#! /bin/sh
# Ok, simple script to do this.
: ${AUTOCONF=autoconf}
: ${AUTOHEADER=autoheader}
: ${AUTOMAKE=automake}
: ${LIBTOOLIZE=libtoolize}
: ${ACLOCAL=aclocal}
: ${LIBTOOL=libtool}
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd $srcdir
PROJECT=ipod-sharp
TEST_TYPE=-f
FILE=src/Track.cs
CONFIG... | mono/ipod-sharp | autogen.sh | Shell | lgpl-2.1 | 2,232 |
#!/bin/sh
#
aclocal
automake --foreign --include-deps --add-missing --copy
autoconf
#./configure $*
echo "Now you are ready to run ./configure"
| kiba/SDL_svg | autogen.sh | Shell | lgpl-2.1 | 145 |
#!/bin/bash
#
# tcollector Startup script for the tcollector monitoring agent
#
# chkconfig: 2345 15 85
# description: tcollector is an agent that collects and reports \
# monitoring data for OpenTSDB.
# processname: tcollector
# pidfile: /var/run/tcollector.pid
#
### BEGIN INIT INFO
# Provides: tcolle... | weiwangblog/tcollector | rpm/initd.sh | Shell | lgpl-3.0 | 3,118 |
#!/bin/bash
mail_from="lars.winterfeld@tu-ilmenau.de"
mail_server="smail.tu-ilmenau.de"
mail_user="lawi9838"
read -p "To: " mail_to
read -p "Subject: " mail_subject
mail_msg_file="`tempfile`"
nano "$mail_msg_file"
echo "I will send the following message:"
echo "From: $mail_from"
echo "To: $mail_to"
echo "Subject: $mai... | lawilog/internal | little_helpers/email_lw.sh | Shell | lgpl-3.0 | 968 |
#!/bin/sh
. /opt/pyrame/ports.sh
if test $# -lt 2
then
echo "usage : $0 rocid delayvalue"
exit 1
fi
chkpyr2.py localhost $SKIROC_PORT set_delay_skiroc $@
| sbinet-staging/pyrame | roc/cmd_skiroc/setdelay.sh | Shell | lgpl-3.0 | 159 |
#!/bin/sh
# script input
D_DATA=$1
##########
#data folder
##########
cd $D_DATA
F_TMP=sort.tmp
echo "Creating tmp sorting directory $F_TMP"
mkdir -p $F_TMP
D_DATA_SORTED=sorted
echo "Creating tmp directory $D_DATA_SORTED"
mkdir -p $D_DATA_SORTED
#subject, object, predicate extraction
# taken from http://blog.data... | webdata/BEAR | scripts/statistics/sort.sh | Shell | lgpl-3.0 | 1,819 |
#!/usr/bin/env bash
_qompoter()
{
local cur prev
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
local actions="init inqlude install inspect update export require jsonh md5sum"
local blockingopts="-h -help --version"
local commonopts="--no-color -V -VV -VVV -... | Fylhan/qompoter | resources/qompoter_bash_completion.sh | Shell | lgpl-3.0 | 2,138 |
#!/bin/bash
DATABASE_DIR=`pwd`
AGRONET_DIR="/www/agronet"
NGINX=`nginx -v`
exit 0;
if [ ! -f $DATABASE_DIR/history.txt ];then
echo "There should exist an history.txt file."
exit 1;
fi
tmpdb() {
if [ ! -d $AGRONET_DIR ];then
echo "$AGRONET_DIR is not a directory"
exit 1;
fi
cd $AGRONET_DIR
if ... | julianromera/agronet-files | upfiles.sh | Shell | unlicense | 1,396 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.