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 |
|---|---|---|---|---|---|
test_metrics() {
ensure_import_testimage
ensure_has_localhost_remote "${LXD_ADDR}"
lxc config set core.https_address "${LXD_ADDR}"
lxc launch testimage c1
lxc init testimage c2
# c1 metrics should show as the container is running
lxc query "/1.0/metrics" | grep "name=\"c1\""
# c2 metrics should not ... | lxc/lxd | test/suites/metrics.sh | Shell | apache-2.0 | 2,470 |
#!/usr/bin/bash -ex
jarfile=target/ledgerdb-server-1.0-SNAPSHOT.jar
if find target/classes/ -type f -name '*.class' -newer $jarfile | grep -q .
then
mvn package
fi
java -jar $jarfile server config.yml
| comme-il-faut/ledgerdb | server/ledgerdb-server.sh | Shell | bsd-2-clause | 208 |
#!/bin/bash
set -e
set -x
if [ "x$DB" = "xmysql" ]; then
dbuser=travis
mysql -u $dbuser -e 'create database ykval;'
mysql -u $dbuser ykval < ykval-db.sql
elif [ "x$DB" = "xpgsql" ]; then
set +e
sudo service postgresql status | grep -q 'online'
if [ $? != 0 ]; then
sudo service postgresql restart
fi
... | ahojjati/yubikey-val | travis/selftest.sh | Shell | bsd-2-clause | 2,350 |
#!/bin/bash
# configs/ntosd-dm320/nettest/setenv.sh
#
# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <gnutt@nuttx.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. R... | IUTInfoAix/terrarium_2015 | nuttx/configs/ntosd-dm320/nettest/setenv.sh | Shell | bsd-2-clause | 2,629 |
#!/bin/sh
# File: papi.c
# CVS: $Id$
# Author: Philip Mucci
# mucci@cs.utk.edu
# Mods: Kevin London
# london@cs.utk.edu
# Philip Mucci
# mucci@cs.utk.edu
AIXTHREAD_SCOPE=S
export AIXTHREAD_SCOPE
if [ "X$1" = "X-v" ]; then
shift ; TESTS_QUIET=""
else
# This should never... | tpatki/papi-rapl | src/run_tests.sh | Shell | bsd-3-clause | 3,559 |
#!/bin/bash
# Run the simple car demo with its allied apps:
#
# * steering_command_driver.py for interactive input
# * drake-visualizer to see things move
# * bot-spy to see LCM traffic of state and visualization
# * lcm-logger to capture LCM activity to disk
#
# To kill all the processes, just kill the script in ... | billhoffman/drake | drake/examples/Cars/simple_car_demo.sh | Shell | bsd-3-clause | 920 |
#!/bin/bash
# Script checks health of running container
if [ "$(cat /opt/scripts/.docker_config/.healthcheck)" == "starting" ]
then
echo 'Health status: OK - Startup script is still running.'
exit 0
elif [ "$(cat /opt/scripts/.docker_config/.healthcheck)" == "maintenance" ]
then
echo 'Health status: OK - Contai... | buanet/docker-iobroker | arm64v8/scripts/healthcheck.sh | Shell | mit | 678 |
#!/bin/bash
FN="geneLenDataBase_1.20.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.9/data/experiment/src/contrib/geneLenDataBase_1.20.0.tar.gz"
"https://bioarchive.galaxyproject.org/geneLenDataBase_1.20.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-genelendatabase/bioconductor-genelenda... | mdehollander/bioconda-recipes | recipes/bioconductor-genelendatabase/post-link.sh | Shell | mit | 1,326 |
python -m http.server
| MicahChambers/BrainCircle | runserver.sh | Shell | gpl-2.0 | 22 |
#! /bin/sh
# Copyright (C) 2011-2014 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 ... | kuym/openocd | tools/automake-1.15/t/yflags-cmdline-override.sh | Shell | gpl-2.0 | 1,945 |
#!/bin/bash
export LD_LIBRARY_PATH=/software/plink-ng/zlib-1.2.8
export PATH=~/Software/shellfish:~/Software/plink-ng:$PATH
DAT=data
~/Code/flashpca/flashpca --bfile ${DAT} \
--ndim 100 \
--numthreads 8 2>&1 | tee log
# smartpca won't accept missing phenotypes so make some up
awk '{print $1, $2, $3, $4, $5, "... | gabraham/flashpca | HapMap3/run.sh | Shell | gpl-3.0 | 828 |
#!/bin/sh
# share common function
. common.sh
LOG=${NIVIS_TMP}remote_debug.log
FOLDER_USB_STORAGE=/mnt/usbstorage/
DEBUG_WITH_NC=debug_with_nc
DEBUG_WITH_FTP=debug_with_ftp
DEBUG_WITH_SCRIPT=debug_with_script.sh
NC_IP=10.32.0.12
NC_PORT=27048
FTP_IP=10.32.0.12
FTP_USER=nivis
FTP_PASS=nivis
FTPDIR_BASE=/tmp/cla/
... | irares/WirelessHart-Gateway | AccessNode/config/FW_mesh_HW_any/remote_debug.sh | Shell | gpl-3.0 | 4,838 |
#!/bin/bash
# use sbatch to lauch script
BASE_DIR=/scratch/VR0052/ESA2014/surf/experiments
#SBATCH -p turpin
#SBATCH --job-name=nodes_evaluated.sh
#SBATCH --account="VR0280"
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --time=10-12:00:00
#SBATCH --mem=300GB
#SBATCH --mail-user simon.gog@unimelb.edu.au
#SBATCH --mail... | jlabeit/surf-offset | experiments/sbatch_nodes_evaluated.sh | Shell | gpl-3.0 | 447 |
#!/bin/zsh
DIR=target_release
function prepare_files() {
rm -rf $DIR
mkdir $DIR
find -name "*.asc" > $DIR/list
for i in $(cat $DIR/list); do
cp $i $DIR/
cp ${i:r} $DIR/
done
rm -f $DIR/list
}
function compress_files() {
find $DIR -name "*.pom" > $DIR/compress
for i in $(cat $DIR/compress... | px3/SilverWare | zip_release.sh | Shell | apache-2.0 | 485 |
#!/bin/sh
cd "$(dirname "$0")" || exit 1
AC_SEARCH_OPTS=""
# For those of us with pkg-config and other tools in /usr/local
PATH=$PATH:/usr/local/bin
# This is to make life easier for people who installed pkg-config in /usr/local
# but have autoconf/make/etc in /usr/. AKA most mac users
if [ -d "/usr/local/share/aclo... | godbyk/the_silver_searcher | build.sh | Shell | apache-2.0 | 529 |
#!/bin/bash
##
# Copyright 2015 Telefónica Investigación y Desarrollo, S.A.U.
# This file is part of openmano
# 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
#
# ... | nfvlabs/openmano | openmano/database_utils/init_mano_db.sh | Shell | apache-2.0 | 3,525 |
#!/usr/bin/env bash
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software... | StevenMPhillips/arrow | ci/travis_script_integration.sh | Shell | apache-2.0 | 1,238 |
#!/bin/bash -e
# Copyright 2020 The TensorFlow 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 requ... | annarev/tensorflow | tensorflow/lite/micro/testing/test_with_renode.sh | Shell | apache-2.0 | 3,954 |
#!/bin/sh
git pull node_modules/openbiz origin master
git pull node_modules/openbiz-ui origin master
git pull node_modules/openbiz-cubi origin master
git pull node_modules/openbiz-appbuilder origin master | sxyseo/openbiz | update-openbiz.sh | Shell | bsd-3-clause | 207 |
#!/bin/bash
python main.py
| ralekseenkov/launchpad-reporting | run_app.sh | Shell | mit | 27 |
#!/bin/bash
# Reading lines in /etc/fstab.
File=/etc/fstab
{
read line1
read line2
} < $File
echo "First line in $File is:"
echo "$line1"
echo
echo "Second line in $File is:"
echo "$line2"
exit 0
# Now, how do you parse the separate fields of each line?
# Hint: use awk, or . . .
# . . . Hans-Joerg Diers suggests u... | yimng/LEARN | abs/3/read_fstab.sh | Shell | mit | 349 |
#!/bin/bash
###########################################################################################
## Copyright 2003, 2015 IBM Corp ##
## ##
## Redistribution and use in s... | PoornimaNayak/autotest-client-tests | linux-tools/lsof/unpatched_lsof.sh | Shell | gpl-2.0 | 6,549 |
#!/bin/sh
# 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 Licens... | Distrotech/LVM2 | test/shell/orphan-ondisk.sh | Shell | gpl-2.0 | 542 |
#!/bin/sh
# Setup development environment on Debian and derivatives such as Ubuntu
#
# Wireshark - Network traffic analyzer
# By Gerald Combs <gerald@wireshark.org>
# Copyright 1998 Gerald Combs
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public Licen... | kynesim/wireshark | tools/debian-setup.sh | Shell | gpl-2.0 | 1,863 |
#!/bin/sh
# is $1 properly divisible by $2?
if [ $1 -gt $2 ]; then
echo $(( $1 % $2))
else
echo $1
fi
exit 0
# vim: set noexpandtab tabstop=4:
| isanwong/cctools | allpairs/test/divisible.sh | Shell | gpl-2.0 | 149 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2009-2015 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... | rmoorman/tup | test/t6035-broken-update16.sh | Shell | gpl-2.0 | 1,865 |
#!/bin/bash -e
utils/init.sh
. utils/functions
if [ $# -eq 0 ]; then
echo "Usage: $0 layer[:target]..."
echo
echo "Valid layers:"
ls layers | grep -v \@ | sed -e 's/^/ /'
echo
echo "Valid targets:"
ls targets | sed -e 's/^/ /'
echo
else
trap apiserver_stop EXIT
apiserver_start
for item in "... | ianmiell/demobuilder | build.sh | Shell | gpl-3.0 | 629 |
#!/bin/bash
if test "$#" -ne 0; then
echo "Usage: ./merlin_synthesis.sh"
exit 1
fi
PrintUsage () {
echo "Please first run either demo voice or full voice!!"
echo "To run:"
echo "Step 1: ./setup.sh nick_hurricane_demo"
echo " (or) "
echo " ./setup.sh ... | ligz07/merlin | egs/nick_hurricane/s1/03_merlin_synthesis.sh | Shell | apache-2.0 | 1,855 |
#!/bin/bash
# Copyright 2014 Yajie Miao Carnegie Mellon University
# Apache 2.0
# Decode the DNN model. The features are a concatenation of the original input
# features and additional features. These additional features can be on the
# speaker, utterance or frame level.
## Begin configuration section
stage=0... | weiwchu/kaldipdnn | steps_pdnn/sat/decode_dnn_concat.sh | Shell | apache-2.0 | 4,701 |
#!/bin/bash
# Copyright 2014 The Kubernetes 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 ... | JiangtianLi/kubernetes | hack/lib/etcd.sh | Shell | apache-2.0 | 4,109 |
#!/bin/sh
# This script is an EXAMPLE ONLY. You must copy this into your system's script
# execution framework (init.d, service etc) and run it as a daemon AFTER
# editing the relevant paths for your system roots.
SILVERSTRIPE_ROOT=/path/to/silverstripe
SILVERSTRIPE_CACHE=/path/to/silverstripe-cache
inotifywait --m... | open-sausages/silverstripe-queuedjobs | scripts/run-queued-jobs.sh | Shell | bsd-3-clause | 474 |
#! /bin/sh
# Copyright (C) 2010-2013 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 ... | DDTChen/CookieVLC | vlc/extras/tools/automake/t/backcompat.sh | Shell | gpl-2.0 | 1,929 |
#!/bin/sh
#
# Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2001 Internet Software Consortium.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permissi... | rhuitl/uClinux | user/bind/bin/tests/system/tkey/ns1/setup.sh | Shell | gpl-2.0 | 1,110 |
#!/bin/bash
remove_unk | \
java edu.stanford.nlp.process.Americanize | \
aren-postprocess-wb | \
#aren-postprocess-text | \
cat
| chrishokamp/phrasal | doc/michel_config/phrasal/GALE/post-wb.sh | Shell | gpl-3.0 | 129 |
#!/bin/bash
#
# run from the build subdir
#
echo
echo "----------------------------------------------"
echo "------- tests: h2spec"
echo
if [ ! -e h2spec ] ; then
wget https://github.com/summerwind/h2spec/releases/download/v2.1.0/h2spec_linux_amd64.tar.gz &&\
tar xf h2spec_linux_amd64.tar.gz
if [ ! -e h2spec ] ... | sartura/libwebsockets | scripts/h2spec.sh | Shell | lgpl-2.1 | 760 |
#!/bin/bash
# Copyright 2016 The Kubernetes 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 o... | grodrigues3/test-infra | kettle/runner.sh | Shell | apache-2.0 | 995 |
#! /bin/bash
if [[ $# < 3 ]] || [[ $# > 4 ]]; then
echo "Usage: ${0##*/} {libnss_resolver_version} {distro} {secret_key} [--clean_repo]"
exit 1
fi
if [[ $# == 4 ]] && [[ "$4" == "--clean_repo" ]]; then
CLEAN_REPO=true
fi
if [[ ! -e Azkfile.js ]]; then
echo "Run this script in the project root"
exit 2
fi
s... | agendor/azk | src/libexec/package-tools/ubuntu/generate.sh | Shell | apache-2.0 | 1,591 |
gawk '$2 ~ /(D|T|B)/ { print $3 }' | sed 1iEXPORTS
| siconos/siconos | cmake/export_filter.sh | Shell | apache-2.0 | 51 |
#!/usr/bin/env bash
set -e
set -x
# Set HOME to /root
export HOME=/root
# Switch to home directory
cd
# Cleanup function
cleanup() {
# Disable trap
trap - INT TERM EXIT
# Kill process group to catch jobs
kill 0
# Exit if we're keeping the build
[[ $BUILD_KEEP == "yes" ]] && exit
# Destroy cluster host... | hughsaunders/jenkins-rpc | dockerfiles/cloud-gate-job/job.sh | Shell | gpl-2.0 | 814 |
#!/bin/sh
# -*- Mode: Java; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4 -*-
# vi: set ts=4 sw=4 expandtab: (add to ~/.vimrc: set modeline modelines=5)
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can ... | adobe-flash/avmplus | utils/abcasm/abcasm.sh | Shell | mpl-2.0 | 1,328 |
#!/bin/bash
#
# Install Page Speed, using the Apache apxs tool to determine the
# installation locations.
#
# You can specify the path to apxs to install to a non-system-default
# Apache.
#
# APXS_BIN=/path/to/apxs ./install_apxs.sh
#
# To install to a location that does not require superuser access:
#
# NO_SUDO=1 ./... | patricmutwiri/mod_pagespeed | install/install_apxs.sh | Shell | apache-2.0 | 10,222 |
#!/bin/sh
# pr14265.sh -- test --gc-sections with KEEP
# Copyright (C) 2012-2016 Free Software Foundation, Inc.
# Written by Nick Clifton <nickc@redhat.com>
# This file is part of gold.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as ... | hexa00/binutils-gdb | gold/testsuite/pr14265.sh | Shell | gpl-2.0 | 1,168 |
#!/bin/bash
set -e
H2O_APP_PROFILE_PORT=54321
H2O_APP_PROFILE_URL="http://127.0.0.1:$H2O_APP_PROFILE_PORT"
SCRIPT_PATH=$(realpath "$0")
H2O_APP_SRC_ROOT=$(dirname "$SCRIPT_PATH")
H2O_APP_BUILD_DIR="${H2O_APP_SRC_ROOT}/build"
if [[ -z "$DBHOST" ]]; then
DBHOST=tfb-database
fi
if [[ -z "$H2O_APP_PREFIX" ]]; then
H2... | martin-g/FrameworkBenchmarks | frameworks/C/h2o/h2o.sh | Shell | bsd-3-clause | 2,195 |
#!/bin/bash
# Echo commands as they are executed, but don't allow errors to stop the script.
set -x
if [ -z "$TERMINUS_SITE" ] || [ -z "$TERMINUS_ENV" ]; then
echo "TERMINUS_SITE and TERMINUS_ENV environment variables must be set"
exit 1
fi
# Only delete old environments if there is a pattern defined to
# match ... | kreynen/civicrm-starterkit-drops-7 | .circleci/cleanup.sh | Shell | gpl-2.0 | 1,174 |
closure-library/closure/bin/build/depswriter.py \
--root_with_prefix="mediadrop/public/scripts/mcore ../mcore" \
> mediadrop/public/scripts/mcore/deps.js
| mattmccarthy11/vidly-development | bk/batch-scripts/closure/writedeps.sh | Shell | gpl-3.0 | 154 |
#!/bin/bash
function help_and_exit() {
echo "Usage: $0 [-go] [-verbose] [-force]"
echo
echo "Moves minified CSS and JS to distribution directories and"
echo "creates a branch in SVN."
echo
echo " -go: Run commands instead of just echoing them."
echo " -verbose: More verbose logging... | geekboxzone/lollipop_external_owasp_sanitizer | tools/upload_jars_to_googlecode_downloads.sh | Shell | bsd-3-clause | 2,323 |
#!/bin/bash
##
## Copyright (c) 2010 The WebM project authors. All Rights Reserved.
##
## Use of this source code is governed by a BSD-style license
## that can be found in the LICENSE file in the root of the source
## tree. An additional intellectual property rights grant can be found
## in the file PATENTS. All... | Teamxrtc/webrtc-streaming-node | third_party/webrtc/src/chromium/src/third_party/libvpx_new/source/libvpx/build/make/gen_msvs_proj.sh | Shell | mit | 16,843 |
#!/bin/bash
# This file is part of the rsyslog project, released under ASL 2.0
echo ===============================================================================
echo \[es-basic.sh\]: basic test for elasticsearch functionality
. $srcdir/diag.sh init
. $srcdir/diag.sh es-init
. $srcdir/diag.sh startup es-basic.conf
. ... | sematext/rsyslog | tests/es-basic.sh | Shell | gpl-3.0 | 520 |
#!/bin/bash
set -e -E -u -o pipefail; shopt -s failglob;
# set environment variables if available
[[ -s "adm_envrc" ]] && . "./adm_envrc"
# Given a new Virtualbox Guest
if [[ $# -ge 1 ]]; then
context_file="${1}"
else
context_file="adm_context.txt"
fi
# Each script is separate feature
# don't process comment... | wilas/vbkick | examples/SL6_provisioner/validate/adm_features.sh | Shell | mpl-2.0 | 526 |
R CMD REMOVE --library=$PREFIX/lib/R/library/ pd.soybean
| joachimwolff/bioconda-recipes | recipes/bioconductor-pd.soybean/pre-unlink.sh | Shell | mit | 57 |
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you... | afinka77/ignite | modules/cassandra/store/src/test/bootstrap/aws/ignite/ignite-start.sh | Shell | apache-2.0 | 8,839 |
#!/bin/sh
EXIT=0
OUTPUT="loop
loop
loop"
cat > t.r <<EOF
exit@syscall(1);
main();
main@global(128,128) {
.var0 = 0;
.var4 = &.var8;
.var8 = "helloworld";
while (*.var4:1) {
.var4 += 1;
.var0 += 1;
}
exit (.var0);
}
EOF
. ./t.sh
| h4ng3r/radare2-regressions | unit/legacy_unit/egg/t-strlen.sh | Shell | gpl-3.0 | 238 |
#!/bin/sh
# This script installs and verifies pkgsrc for OSX.
BOOTSTRAP_TAR="bootstrap-trunk-x86_64-20191204.tar.gz"
BOOTSTRAP_SHA="e4c585ca0d80ccac887824432e94e5715abc85ec"
######################################################
. funcs.sh
PKGSRC_SITE=https://pkgsrc.joyent.com/packages/Darwin/bootstrap/
DOWNLOADER=$... | Crosse/dotfiles | build/install_pkgsrc.sh | Shell | isc | 1,165 |
#!/bin/sh
set -e
host=$1
shift
cmd="$@"
until $(curl --output /dev/null --silent --head --fail http://$host/ping); do
sleep 1
done
$cmd
| InfraBox/infrabox | src/utils/wait-for-webserver.sh | Shell | mit | 141 |
export ORIGINAL_PATH=`pwd`
# check if we have builtin
if [ ! -d "builtin" ]; then
mkdir builtin
fi
cd builtin
# builtin panels
if [ ! -d "console" ]; then
git clone https://github.com/fireball-packages/console
fi
if [ ! -d "ipc-debugger" ]; then
git clone https://github.com/fireball-packages/ipc-debugger... | vevedh/editor-framework-app | install-builtin.sh | Shell | mit | 834 |
#!/bin/bash
# Fail if attempting to use a variable which hasn't been set.
set -u;
# Stop on first error.
set -e;
# We now distribute a skin with this repository.
# Symlink it into the skins directory.
ln -s -T "${STEEP_DIR}/steep-skin" "${NEW_DIR}/skins/Steep";
source "steep-settings-symlink.sh";
# Migrate from Mon... | cse-bristol/steep-mediawiki-gadgets | scripts/upgrades/REL1_25/upgrade.sh | Shell | mit | 513 |
#!/bin/bash
cd ~/repos/dotfiles
printf "\nCreating symlinks\n"
echo "------------------------------"
symlinks=$( find $PWD -name '*.symlink' )
for file in $symlinks ; do
fileDirectoryName=$( dirname $file )
symlinkDirectoryName=${fileDirectoryName/#$PWD/$HOME}
symlinkFileName=$( basename $file ".symlink" )
sym... | jimmay5469/dotfiles | install/symlinks.sh | Shell | mit | 767 |
#!/bin/bash
pushd ../target/install
. setenv.sh
popd
| arnauldvm/jpt-exercises | apps/setenv.sh | Shell | mit | 53 |
#!/bin/bash -xe
#
# A script to setup the Travis build environment with Miniconda
# and install the LSST stack into it
#
MINICONDA_VERSION=${MINICONDA_VERSION:-3.19.0} # you can use "latest" if you don't care
CHANNEL=${CHANNEL:-"http://conda.lsst.codes/sims"} # the URL to the conda channel where LSST conda packages... | rbiswas4/SNsims | continuous_integration/INSTALL_LSST_SIMS.sh | Shell | mit | 2,294 |
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
| brafales/dotfiles | zsh/nvm.zsh | Shell | mit | 62 |
#!/bin/sh
#
# VIM config files
#
# This installs VIM config files.
git clone git://github.com/isundaylee/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh | isundaylee/dotfiles | vim/install.sh | Shell | mit | 173 |
#!/bin/sh
DIR_ROOT=$(pwd)
DIR_NAME=${DIR_ROOT##*/}
echo "正在安装模块:$DIR_NAME"
| pangzhanbo/bashell | install_20160229/vim/install.sh | Shell | mit | 87 |
export PATH="/usr/local/sbin:$PATH"
export HOMEBREW_CASK_OPTS='--appdir=/Applications'
| mrk21/basic-dev | roles/base/homebrew/files/homebrew_profile.sh | Shell | mit | 87 |
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. $DIR/config.inc.sh
LIBDIR=$DIR/lib
if [ $(uname) != 'Linux' ]; then
echo "run this inside Ubuntu-Docker"
exit 1
fi
if [[ $OSMSRC -nt $WORKDIR/$NAME-clip.osm.pbf ]]; then
echo "Clipping pbf"
docker run --rm -i -v $(dirname $OSMSRC):/src -v $WO... | tajtiattila/map | osmdata.sh | Shell | mit | 706 |
#!/bin/bash
BASE=$HOME/normalized/
mkdir -p var
for file in `cat outstanding.complaints`
do
# convert file to the
IDX=$(./convert_filename_to_index.pl $file | awk '{print $NF}')
if [ "$IDX" != "=>" ]; then
echo "Processing $file"
./blast.pl ${BASE}/$IDX > var/blast.sig.$IDX
fi
done
| petermblair/libemail | complaintgroup/bin/compare_samples_to_database.sh | Shell | mit | 307 |
#!/bin/sh
# ****************************************************************************
# Visual Studio manages to mungle up the dsp->vcproj upgrade when it comes
# to custom build rules (Qt moc-file generation in our case). This small
# script is for fixing the problems VC7.1 introduces when doing the upgrade.
# 20... | berndhahnebach/IfcPlusPlus | external/SoWin/build/misc/fixvcproj.sh | Shell | mit | 648 |
check() {
if [ -d "~/.liquidprompt" ]; then
return 1
else
return 0
fi
}
install() {
git clone https://github.com/nojhan/liquidprompt.git ~/.liquidprompt
}
| nippysaurus/dotfiles | scripts/install-liquidprompt.sh | Shell | mit | 172 |
#!/usr/bin/env bash
set -v # Verbose on: echo all lines in this script
# WARNING: The Go node is *extremely* sluggish and may freeze up machine.
# If things don't work, then delete old block chain:
# rm -rf ~/.ethereum || rm -rf ~/.ethereal
#
# Full Node
#
# To get the node's address, run: ethereum address
#ether... | joelcan/tools-eth-contract-dev | launchGoEthNode.sh | Shell | mit | 528 |
# Download and install required files
git clone https://github.com/wwwg/retrocord-light.git
cd retrocord-light
# install
npm run install-nix
echo -n "Installed Retrocord light."
| wwwg/retrocord-light | nix-install.sh | Shell | mit | 178 |
#!/bin/zsh
printf '\033[0;34m%s\033[0m\n' "Upgrading Oh My Zsh"
cd "$ZSH"
if git pull --rebase --stat origin master
then
printf '\033[0;32m%s\033[0m\n' ' __ __ '
printf '\033[0;32m%s\033[0m\n' ' ____ / /_ ____ ___ __ __ ____ _____/ /_ '
printf '\033[0;32m... | westrope/.scripts | upgrade.sh | Shell | mit | 1,092 |
#!/bin/bash
## Target OS: Ubuntu Server (LTS)
echo "Setting up Django in virtualenv..."
echo "Installing dependencies..."
apt-get install python3 python3-pip
pip3 install --upgrade pip
pip3 install virtualenv
echo "Attempting to set up virtualenv..."
cd /opt
virtualenv --python=python3 project
echo "Entering virtuale... | Layer8Err/DjangSchedule | djangoSetup.sh | Shell | mit | 431 |
#!/usr/bin/env php
<?php
require_once __DIR__.'/../vendor/autoload.php';
use Nightengale\Command;
use Knp\Provider\ConsoleServiceProvider;
$app = require 'Bootstrap.php';
$app->register(new ConsoleServiceProvider(),
array('console.name' => 'Console',
'console.versi... | calevans/skeleton | app/console.sh | Shell | mit | 517 |
#!/bin/bash
cp ../../series-b/sheets/output/*.pdf .
for i in *.pdf; do
convert $i jpg:- | convert jpg:- -resize 420x -quality 30 -strip ${i/pdf/jpg}
done
| kristopolous/qr-project | www/pdf/tnail.sh | Shell | mit | 157 |
#!/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}"
# This protects against multiple targets copying the same framework dependency at the same time.... | EvanJq/JQNavigationController | Example/Pods/Target Support Files/Pods-JQNavigationController_Example/Pods-JQNavigationController_Example-frameworks.sh | Shell | mit | 4,718 |
database=empatix
echo "Db password"
stty -echo
read password
stty echo
/usr/bin/mysqldump -uroot -p$password $database -d --skip-add-drop-table > sql/intern_datastructure.sql
for table in role roleperson roletemplate roletemplateaccess setup menu language \
confdbfields confmenues confsql conftemplates templaterestri... | dodoas/lodo | db/dump_content.sh | Shell | mit | 455 |
#!/usr/bin/env bash
MSG_PREFIX="[DEPLOY] "
echo $MSG_PREFIX"------------------------"
echo $MSG_PREFIX"# Deploy Artifacts #"
echo $MSG_PREFIX"------------------------"
# Set target env
TARGET_ENV=${1:-"development"}
echo $MSG_PREFIX"Using deploy settings for env: $TARGET_ENV"
# Determine deploy settings for tar... | warebrained/basis | scripts/deploy.sh | Shell | mit | 1,096 |
#!/usr/bin/env bash
docker-compose ps -q | while read line ; do
docker network connect bridge "${line}"
done
| Turistforeningen/docker-proxy | bridge.sh | Shell | mit | 112 |
#!/usr/bin/env bash
DOTFILES=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
# For now the dotvim directory is empty and isn't tracked by git
mkdir $DOTFILES/vim/dotvim
# Create symlinks
ln -s $DOTFILES/vim/dotvim ~/.vim
ln -s $DOTFILES/vim/vimrc ~/.vimrc
ln -s $DOTFILES/screen/screenrc ~/.screenrc
ln -s $DOTFILES... | dingrouv/dotfiles | install.sh | Shell | mit | 777 |
#!/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}/SM-SPI-STMP01.X.${IMAGE_TYPE}.${OUTPUT_SUFFIX}
OUTPUT_BASENAME=SM-SPI-STMP01.X.${IMAGE_TYPE}.${OUT... | mzeitler/openstrom | firmware/testing - prototype/SM-SPI-STMP01.X/nbproject/Package-default.bash | Shell | mit | 1,405 |
#!/bin/sh
. ${BUILDPACK_TEST_RUNNER_HOME}/lib/test_utils.sh
testDetectWithConfFileDetectsPlayApp() {
mkdir -p ${BUILD_DIR}/play-app/conf
touch ${BUILD_DIR}/play-app/conf/application.conf
detect
assertAppDetected "Play!"
}
testDetectWithConfFileDetectsPlayApp() {
mkdir -p ${BUILD_DIR}/play-app/conf/appli... | jamesward/heroku-buildpack-play | test/detect_test.sh | Shell | mit | 678 |
#
# This is a forum post on :
# http://ubuntuforums.org/showthread.php?t=2195496
# by SeijiSensei
#
#!/bin/sh
BACKUPDIR=/root/backups
ROTATE=8
USER=root
HOST=localhost
mkdir -p $BACKUPDIR
# read in a hostname from the command line if it exists
if [ "$1" != "" ]
then
HOST=$1
fi
LOG="$BACKUPDIR/mysql-$HOST.`dat... | bovidiu/php-scripts | bash-script-dated-sql-backup.sh | Shell | mit | 1,065 |
#!/bin/bash
source ./image.sh
source ./bing.sh
source ./spotlight.sh
source ./chromecast.sh
cd `dirname $0`
store=wallpapers
mkdir -p "$store"
echo "Update wallpapers."
echo "Update Bing." && update-bing "$store"
echo "Update Spotlight." && update-spotlight "$store"
echo "Update Chromecast." && update-chromecast "$... | schmich/wallpapers | update-images.sh | Shell | mit | 483 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-3099-3
#
# Security announcement date: 2016-10-11 00:00:00 UTC
# Script generation date: 2017-01-01 21:05:38 UTC
#
# Operating System: Ubuntu 16.04 LTS
# Architecture: i386
#
# Vulnerable packages fix on version:
# - linux-image-4.4.0-1027-raspi2:4.4.0-10... | Cyberwatch/cbw-security-fixes | Ubuntu_16.04_LTS/i386/2016/USN-3099-3.sh | Shell | mit | 714 |
#!/bin/bash
USELINE='USE="bindist mmx sse sse2 libkms crypt dynamic symlink dir sqlite acl nls branding bash-completion smartcard syslog btrfs lvm ext4 usb gpg "'
XUSE=" xa X xkb gtk xcb xft apng"
# - Get some data before the display goes to sleep.
read -p "=> Enter hostname: " -r HOSTNAME
read -p "=> Enter usernam... | plastboks/Gentoo-scripts | chroot.sh | Shell | mit | 3,948 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for USN-1762-1
#
# Security announcement date: 2013-03-14 00:00:00 UTC
# Script generation date: 2017-01-01 21:03:12 UTC
#
# Operating System: Ubuntu 12.04 LTS
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - apt:0.8.16~exp12ubuntu10.10
#
# Last... | Cyberwatch/cbw-security-fixes | Ubuntu_12.04_LTS/x86_64/2013/USN-1762-1.sh | Shell | mit | 628 |
#!/bin/sh
# Check and delete broken symlinks
find -L /usr/local/bin -type l -exec rm -i {} +
# Create symlinks
PWD=$(pwd)
ln -sf ${PWD}/scripts/* /usr/local/bin
| supistar/localscripts | install.sh | Shell | mit | 163 |
#!/usr/bin/env bash
git add --force _site
git commit -m "Release `date '+%Y-%m-%d %H:%M'`"
git br -D gh-pages
git subtree split --prefix _site -b gh-pages
git push -f origin gh-pages:gh-pages
| CodeandoMexico/terremoto-cdmx | scripts/publish.sh | Shell | mit | 193 |
#!/usr/bin/env bash
# set -o pipefail
# set -o errexit
set -o nounset
# set -o xtrace
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
__root="$(cd "$(dirname "$(dirname "$(dirname "${__dir}")")")" && pwd)"
echo "ACCPTST:STDIO_REPLACE_DATETIMES"
(
env LOG_LEVEL=6 bash "${__root}/main.sh" -f dummy -i simple_in... | WarpEngineer/bash3boilerplate | test/scenario/main-repeated/run.sh | Shell | mit | 574 |
source /home/mattias/Projekte/git/TinyCrossLinux/stage0n_variables
source /home/mattias/Projekte/git/TinyCrossLinux/stage01_variables
# source /home/mattias/Projekte/git/TinyCrossLinux/stage02_variables
cd pkg-config-0.28
./configure --prefix=${CLFS}/cross-tools --target=${CLFS_TARGET} \
--with-sysroot=${CLFS}/cr... | mschlenker/TinyCrossLinux | notes/pkg-config.sh | Shell | mit | 424 |
#!/bin/bash
CXX=g++
CC=gcc
CXXFLAGS="-O3 -g -std=c++17 -Wall -Wextra -Wshadow -Wcast-qual -Wcast-align -Wswitch-enum -Wundef -pedantic"
CCFLAGS="-O3 -std=c99 -Wall -Wextra -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wstrict-aliasing=1 -Wswitch-enum -Wundef -pedantic"
$CC $CCFLAGS -c xxHash/xxhash.c
$CXX $... | meox/aggregate | compile.sh | Shell | mit | 458 |
#!/bin/bash
PS3="Choose(1-2):"
echo "Combine and Compress"
select name in "css" "js" "exit"
do
break
done
# TO INSTALL YUI COMPRESSOR
# mkdir /yui
# cd /yui
# wget http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.6.zip
# unzip yuicompressor-2.4.6.zip
# (check if java is installed and install if necess... | BlackCloudConcepts/titan | compressor.sh | Shell | mit | 1,208 |
#!/bin/sh
sudo apt install aptitude
sudo apt install net-tools
git config --global credential.helper "cache --timeout=3600"
git config --global push.default simple
git config --global user.email sam@samestep.com
git config --global user.name "Sam Estep"
git config --global user.signingkey 2B42037F
git config --globa... | samestep/env | env.sh | Shell | mit | 5,190 |
#!/bin/bash
WKSP=/home/nlg-05/xingshi/workspace
#WKSP=/Users/xingshi/Workspace
ROOT=/misc/pyPBMT #
#ROOT=/misc/pyPBMT
EXP=$WKSP$ROOT/exp/mosis-mert
INI=$EXP/moses.ini
DECODER=$WKSP/tools/mosesdecoder/bin/moses
TUNE=$WKSP/tools/mosesdecoder/scripts/training/mert-moses.pl
INPUT=$WKSP$ROOT/data/dev.clean.de
REF=$WKSP$... | shixing/pyPBMT | sh/tune.sh | Shell | mit | 431 |
#!/bin/sh
# Note: Entry point to birix container
# USE the trap if you need to also do manual cleanup after the service is stopped,
# or need to start multiple services in the one container
trap "shut_down" HUP INT QUIT KILL TERM
shut_down(){
# stop service and clean up here
if [[ $NOMYSQL == 1 ]];
then
echo... | constb/docker-bitrix-env | run.sh | Shell | mit | 937 |
#!/bin/bash
function cpad {
word="$1"
while [ ${#word} -lt $2 ]; do
word="$word$3";
if [ ${#word} -lt $2 ]; then
word="$3$word"
fi;
done;
echo "$word";
}
| klange/toaru-rpi | util/cpad.sh | Shell | mit | 208 |
# go.sh
#############################################################################
#
# Install Tomcat as a service.
#
#############################################################################
. ./assemblyLine.sh
chmod +x exec.sh
. ./exec.sh
| panopset/foundations | profiles/tomcat/go.sh | Shell | mit | 250 |
# Google Cloud SDK
BREW_PREFIX=$(brew --prefix)
source $BREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc
source $BREW_PREFIX/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc
gcp(){
local readonly g=( "gcloud" "config" "configurations" )
${g} activate ${1:-$(${g} l... | jsok/dotfiles | zsh/plugins/gcloud.zsh | Shell | mit | 380 |
#!/bin/bash
# this script is used to launch in an environment when you need to run pyenv.
# SupervisorD isn't really good at pyenv. Thus I am hacking this in to make
# launching with PyEnv possible.
export PYENV_ROOT="/usr/local/bin/pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
cd /home/pi/Magnus... | bbulkow/MagnusFlora | rest/jarvis.sh | Shell | mit | 409 |
#!/bin/sh
ovftool --acceptAllEulas --allowExtraConfig \
-dm=thin -ds=Datastore -n=lab-cPod-vra-iaas --network="VM Network" ./IAAS.ova \
vi://bdereims%40showroom.local@p-vc-paris01.showroom.local/Showroom/host/ClusterDell/d-esx04.showroom.local/
| bdereims/cPod | SDDC-Deploy/deploy_iaas.sh | Shell | mit | 246 |
# Make vim the default editor.
export EDITOR='vim';
# set history variables
export HISTSIZE=32768
export SAVEHIST=$HISTSIZE
HISTFILE="$HOME/.zsh_history"
# Prefer US English and use UTF-8.
export LANG='en_US.UTF-8';
export LC_ALL='en_US.UTF-8';
# Don’t clear the screen after quitting a manual page.
export MANPAGER='... | quimrstorres/dotfiles | .exports.zsh | Shell | mit | 718 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.