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 : Aditya Shakya
## Github : adi1090x
PDIR="$HOME/.config/polybar"
LAUNCH="polybar-msg cmd restart"
if [[ $1 = "-amber" ]]; then
# Replacing colors
sed -i -e 's/shade1 = .*/shade1 = #FF6F00/g' $PDIR/config.ini
sed -i -e 's/shade2 = .*/shade2 = #FF8F00/g' $PDIR/config.ini
sed -i -e 's/shade3 = ... | pemcconnell/.dotfiles | config/polybar/polybar-6/scripts/colors-light.sh | Shell | mit | 15,156 |
rosrun tf view_frames
evince frames.pdf
rm frames.gv
rm frames.pdf
| DTU-R3/ArloBot | scripts/tf2pdf.sh | Shell | mit | 69 |
# rm -rf build
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug ..
make
./src/plane
| arjanfrans/plane | build.sh | Shell | mit | 90 |
#!/bin/bash
#########################
# Purpose: install the necessary node dependencies for the specified usage
# Authors: Ankshit Jain
# Invocation: $bash npm_install.sh
# Date: 21-March-2018
# Previous Versions: -
#########################
# All local variables are in lower case convention. They are:
# usage : deci... | AnkshitJain/Autolab-Local | scripts/npm_install.sh | Shell | gpl-2.0 | 2,301 |
#!/bin/sh
# travelmate, a wlan connection manager for travel router
# Copyright (c) 2016-2020 Dirk Brenken (dev@brenken.org)
# This is free software, licensed under the GNU General Public License v3.
# set (s)hellcheck exceptions
# shellcheck disable=1091,2016,2039,2059,2086,2143,2181,2188
export LC_ALL=C
export PATH... | blogic/packages | net/travelmate/files/travelmate.sh | Shell | gpl-2.0 | 32,630 |
#!/bin/bash
# Disable the Leds
sys.setup.leds.red.off
sys.setup.leds.green.off
# Disable Display
sys.setup.hdmi.off
| ddbhatt/RPi2-AdminWeb | AIO/bin/low_power_mode.sh | Shell | gpl-2.0 | 118 |
platform_do_upgrade() {
local board=$(board_name)
case "$board" in
*)
default_do_upgrade "$1"
;;
esac
}
PART_NAME=firmware
platform_check_image() {
local board=$(board_name)
local magic="$(get_magic_long "$1")"
[ "$#" -gt 1 ] && return 1
case "$board" in
elecom,wrc-2533gent)
[ "$magic" != "d00dfeed"... | GreenTeaDev/Lede | target/linux/mediatek/mt7622/base-files/lib/upgrade/platform.sh | Shell | gpl-2.0 | 486 |
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ] ; do SOURCE="$(readlink "$SOURCE")"; done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
rm -f "$DIR/$TEST-pre.sql"
rm -f "$DIR/$TEST-post.sql"
| gravitystorm/postgis-1 | raster/test/regress/rt_utility-post.sh | Shell | gpl-2.0 | 197 |
#!/bin/bash
dak make-pkg-file-mapping | bzip2 -9 > /srv/security-master.debian.org/ftp/indices/package-file.map.bz2
| luther07/dak | config/debian-security/map.sh | Shell | gpl-2.0 | 117 |
#!/bin/sh.exe
# CHANGE THESE TO SUIT YOUR PROJECT
#all these get passed in by jenkins
#export OS_BUILD=64
#export PG_VER=9.2
#export PGHOST=localhost
#export PGPORT=8442
export PGUSER=postgres
#export PGROUTING_VER=2.1
#POSTGIS_VER=2.1.0SVN
#GCC_TYPE=
#export POSTIGS_VER=2.1.0beta3
#export GIT_COMMIT=whatever
export ... | Zia-/pgrouting | tools/winnie/build_pgrouting.sh | Shell | gpl-2.0 | 4,859 |
#!/bin/bash
echo "start cs144 buffer bloat experiment"
sudo sysctl -w net.ipv4.tcp_congestion_control=reno
python bufferbloat.py --bw-host 1000 \
--bw-net 1.5 \
--delay 10 \
--dir ./ \
--nflows 1 \
--maxq 20 \
-n 2 \
echo "... | TheArbiter/Networks | lab4/run-minq.sh | Shell | gpl-3.0 | 392 |
#!/bin/bash
TOOLROOT=${TOOLROOT:-.}
flash() {
echo "Building ${1}..."
jam -aq flash || ( echo "[BUILD FAILED] ${1}" && false )
}
run_tests() {
TESTDIR=projects/${1}/tests
flash ${PROJECT} || return
for tst in `ls ${TESTDIR}/`; do
echo "Project \"${1}\": Running test ${tst}..."
$... | benpicco/RIOT-old | tools/testsuite/run_tests.sh | Shell | gpl-3.0 | 984 |
#!/bin/bash
# this script relies on having a template copy of the full production
# database available first -- use the dump_restore.sh script
if [ -z "$1" ]
then
echo "Usage: $0 <output-dump-file>"
exit
fi
OUTPUT_DUMP="$1"
TEMPLATE_DB=proddb
TMP_DB=anondb
set -x -e
dropdb ${TMP_DB}
createdb --template=${TEM... | mwest1066/PrairieLearn | tools/dump_anonymize.sh | Shell | agpl-3.0 | 1,061 |
#!/bin/sh
# Test that changing the value of a node causes the function modified() to return true
root=$abs_top_builddir/build/test-function-modified
hosts=$root/etc/hosts
rm -rf $root
mkdir -p $(dirname $hosts)
cat <<EOF > $hosts
127.0.0.1 localhost
::1 localhost6
EOF
touch -r $0 $hosts
augtool --nostdinc -... | hercules-team/augeas | tests/test-function-modified.sh | Shell | lgpl-2.1 | 1,372 |
#!/bin/sh
source conf/drillTestConfig.properties
set -x
set -e
${DRILL_HOME}/bin/sqlline -n ${USERNAME} -p ${PASSWORD} -u "jdbc:drill:schema=dfs.drillTestDirP1;drillbit=${DRILL_STORAGE_PLUGIN_SERVER}" --run=${DRILL_TEST_DATA_DIR}/Datasources/limit0/p1tests/create_p1tests_csv_views.sql
set +x
| sudheeshkatkam/drill-test-framework | framework/resources/Datasources/limit0/p1tests/create_p1tests_csv_views.sh | Shell | apache-2.0 | 297 |
#!/bin/bash -ex
# 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"... | jeffknupp/arrow | python/manylinux1/scripts/build_zstd.sh | Shell | apache-2.0 | 1,204 |
#!/bin/sh
#2015.8.18 test ok
LOCAL_CONFIG=/etc/ipsec.d/ipsec.local.conf
awk '/^conn/&&$2{a=a (a?",":"")$2}END{print a}' ${LOCAL_CONFIG}
| hgqislub/hybird-orchard | etc/hybrid_cloud/scripts/vpn/list_tunnel.sh | Shell | apache-2.0 | 137 |
. $(dirname $(which $0))/test_common.sh
color_graph $1 $2 config/so_tfa_max.cfg | TheoryInPractice/CONCUSS | testing/test_single_coloring.sh | Shell | bsd-3-clause | 80 |
#!/bin/bash
fhicl-config_t issue_0923b.fcl >issue_0923_out.txt 2>&1
status=$?
(( $status == 0 )) || { echo "Unexpected exit code $status from exec invocation." 1>&2; exit 1; }
diff -u issue_0923_ref.txt issue_0923_out.txt
exit $?
| gartung/fnal-fhicl-cpp | fhiclcpp/test/issue_0923_t.sh | Shell | bsd-3-clause | 234 |
#!/bin/bash
echo "===== Initializing geth installation =====";
date;
############
# Parameters
############
# Validate that all arguments are supplied
if [ $# -lt 10 ]; then echo "Insufficient parameters supplied. Exiting"; exit 1; fi
AZUREUSER=$1;
PASSWD=$2;
PASSPHRASE=$3;
ARTIFACTS_URL_PREFIX=$4;
NETWORK_ID=$5;
MA... | arroyc/azure-quickstart-templates | ethereum-consortium-blockchain-network/scripts/configure-geth-azureuser.sh | Shell | mit | 7,037 |
##!/bin/bash
if [ -z $5 ]
then
echo "$0 <min_mapping_threshold> <back_distance> <tt> <read len> <pe bam> <e>"
exit
fi
MIN_MAP_T=$1
BACK=$2
TT=$3
READ_LENGTH=$4
PE_BAM=$5
E=$6
Z=4
WEIGHT=4
OUT_DIR=`dirname $PE_BAM`
OUT_FILE=`basename $PE_BAM .bam`
MEAN_STDEV=`samtools view $PE_BAM \
| ../scripts/pairend_distro... | arq5x/lumpy-sv | test/bp_pe_pl.sh | Shell | mit | 1,334 |
#!/bin/sh
exec 2>&1
exec /usr/local/bin/xkcd-pwgen.node.js | effello/cms | node_modules/apostrophe-people/node_modules/xkcd-pwgen/runit.sh | Shell | mit | 58 |
#!/bin/bash
FN="pd.mapping250k.nsp_3.12.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.12/data/annotation/src/contrib/pd.mapping250k.nsp_3.12.0.tar.gz"
"https://bioarchive.galaxyproject.org/pd.mapping250k.nsp_3.12.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-pd.mapping250k.nsp/bioconduc... | ostrokach/bioconda-recipes | recipes/bioconductor-pd.mapping250k.nsp/post-link.sh | Shell | mit | 1,473 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2012-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... | p2rkw/tup | test/t3058-group-partial-update.sh | Shell | gpl-2.0 | 1,244 |
#! /bin/sh -e
# tup - A file-based build system
#
# Copyright (C) 2010-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... | p2rkw/tup | test/t5080-skip-output-transitive.sh | Shell | gpl-2.0 | 1,148 |
#!/bin/bash
main()
{
CC=gcc
CXX=g++
if [[ "$*" =~ "--help" ]]; then
help
exit 0;
fi
n=0
args=()
for i in "$@"
do
case $i in
-j=*|--jobs=*)
jobs="-j${i#*=}"
shift
;;
-c=*|--compiler=*)
C="${i#*=}"
shift
;;
*)
args[$n]="$i"
((++n))
;;
esac
done
case "$C" in
("intel"|"icc"... | s1lentq/reapi | build.sh | Shell | gpl-3.0 | 882 |
#!/bin/bash
if ! type skydns &>/dev/null ; then
cp -a "${DOCKER_SRC}/skydns-linux-amd64" /usr/local/bin/skydns
chmod +x /usr/local/bin/skydns
fi
| inn1983/docker-builder | net-dns/skydns/2.0.1d/build.sh | Shell | lgpl-3.0 | 149 |
#!/bin/sh
#
# A simple RTP receiver
#
VIDEO_CAPS="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H263-1998"
AUDIO_CAPS="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)AMR,encoding-params=(string)1,octet-align=(string)1"
gst-launch -v gstrtpbin name... | cpopescu/whispermedialib | third-party/gstreamer/gst-plugins-good/tests/examples/rtp/client-H263p-AMR.sh | Shell | lgpl-3.0 | 1,028 |
#!/bin/sh
tmp=$1
file=${tmp:=VERSION}
gitver=$(git describe 2>/dev/null | tr - .)
filever=$(cat ${file} 2>/dev/null)
version=${gitver}
: ${version:=$filever}
echo "$version"
| TigerBSD/TigerBSD | FreeBSD/contrib/dma/get-version.sh | Shell | isc | 177 |
#!/usr/bin/env bash
#
# Generate all etcd protobuf bindings.
# Run from repository root.
#
set -e
if ! [[ "$0" =~ scripts/genproto.sh ]]; then
echo "must be run from repository root"
exit 255
fi
if [[ $(protoc --version | cut -f2 -d' ') != "3.3.0" ]]; then
echo "could not find protoc 3.3.0, is it installed + in PA... | luizbafilho/fusis | vendor/github.com/coreos/etcd/scripts/genproto.sh | Shell | mit | 5,776 |
#!/bin/bash -ex
# show what mode we are in
echo "$SNAP_SYSTEM_MODE"
# mark us as done using the env var
echo "done" >&"$SNAP_REPAIR_STATUS_FD"
| sergiocazzolato/snapd | tests/core/snap-repair/uc20-run.sh | Shell | gpl-3.0 | 145 |
#!/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 m... | cloudera/zookeeper | src/contrib/hedwig/scripts/hwServer.sh | Shell | apache-2.0 | 3,007 |
#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "You must pass in a JAVA_HOME path followed by the kylo home path"
exit 1
fi
JAVA_HOME=$1
KYLO_HOME=$2
echo "Adding Custom Java home to kylo-ui and kylo-services"
sed -i "/\#\!\/bin\/bash/a export JAVA_HOME=$JAVA_HOME\nexport PATH=\$JAVA_HOME\/bin\:\$PATH" $KYLO_HOME/... | peter-gergely-horvath/kylo | install/setup/java/change-kylo-java-home.sh | Shell | apache-2.0 | 788 |
python3 -m pytest --cov=. tests/
| chenjiancan/FeelUOwn | src/run_test.sh | Shell | mit | 33 |
#!/bin/bash
# Copyright 2015 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 ... | bparees/brokersdk | vendor/k8s.io/kubernetes/cluster/openstack-heat/util.sh | Shell | apache-2.0 | 8,922 |
#!/bin/bash
source ../../setup/setenv.sh
echo "Enter your password for the Apigee Enterprise organization $org, followed by [ENTER]:"
read -s password
echo Deploying $proxy to $env on $url using $username and $org
../../tools/deploy.py -n dynamic-endpoint -u $username:$password -o $org -h $url -e $env -p / -d ../d... | akoo1010/api-platform-samples | sample-proxies/dynamic-endpoint/deploy.sh | Shell | apache-2.0 | 433 |
#!/bin/bash
set -e
VERSION=2.1.8-stable
wget -O libevent-"$VERSION".tar.gz https://github.com/libevent/libevent/releases/download/release-"$VERSION"/libevent-"$VERSION".tar.gz
tar xf libevent-"$VERSION".tar.gz
cd libevent-"$VERSION"
./configure --prefix="$THIRDPARTY_BUILD" --enable-shared=no --disable-libevent-regre... | rlazarus/envoy | ci/build_container/build_recipes/libevent.sh | Shell | apache-2.0 | 358 |
#!/bin/bash
FN="AshkenazimSonChr21_1.24.0.tar.gz"
URLS=(
"https://bioconductor.org/packages/3.14/data/experiment/src/contrib/AshkenazimSonChr21_1.24.0.tar.gz"
"https://bioarchive.galaxyproject.org/AshkenazimSonChr21_1.24.0.tar.gz"
"https://depot.galaxyproject.org/software/bioconductor-ashkenazimsonchr21/bioconduc... | cokelaer/bioconda-recipes | recipes/bioconductor-ashkenazimsonchr21/post-link.sh | Shell | mit | 1,342 |
#!/bin/sh
#
# Copyright (c) 2002-2009 The Xfce development team. All rights reserved.
#
# This library 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... | Sidnioulz/SandboxXfce4Panel | autogen.sh | Shell | gpl-2.0 | 1,250 |
#!/bin/bash
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); ... | piiswrong/mxnet | prepare_mkl.sh | Shell | apache-2.0 | 5,027 |
#!/bin/bash
########### -n : number of tasks that will be used in parallel mode (default=1)
########### -N : number of nodes to allocate for parallel usage (default is chosen by the underlying system)
########### -c : number of cores per parallel task to allocate (default=1)
#MSUB -n 150 # Reservation des coeurs ... | Kerilk/specfem3d_globe | utils/Cluster/CEA_CCRT_Paris/script_MPI_150_solver_CEA_CCRT.sh | Shell | gpl-2.0 | 1,251 |
#!/bin/sh
./gen_section.sh vertx1x_docs/docs_md/manual.md vertx1x_docs/manual_templ.html vertx1x_docs/manual.html
./gen_section.sh vertx1x_docs/docs_md/mods_manual.md vertx1x_docs/mods_manual_templ.html vertx1x_docs/mods_manual.html
./gen_section.sh vertx1x_docs/docs_md/core_manual_js.md vertx1x_docs/core_manual_js_te... | cazacugmihai/vertx-web-site | src/main/vertx2/gen_site.sh | Shell | apache-2.0 | 3,482 |
#!/bin/sh
##############################################################################
# Author : Stephane Micheloud
##############################################################################
##############################################################################
# variables
# set any value to enable d... | jvican/scala | test/files/jvm/mkLibNatives.sh | Shell | bsd-3-clause | 1,680 |
#!/bin/bash -e
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Script to install everything needed to build chromium (well, ideally, anyway)
# See http://code.google.com/p/chromium/wiki/LinuxBuildIn... | Jonekee/chromium.src | build/install-build-deps.sh | Shell | bsd-3-clause | 16,366 |
#!/bin/sh
echo "Run wifi_unload.sh"
killall wscd
killall syslog-ng
cat /proc/meminfo | grep MemFree
| jhbsz/LC4 | package/goahead/src/cgi-src/wifi_unload.sh | Shell | gpl-2.0 | 100 |
set -e
yes "" | ./node_modules/.bin/vue init . test
cd test
npm install
npm run lint
npm test
npm run build
| shareitFE/vue-cli-custom-templates | webpack2/test.sh | Shell | mit | 110 |
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# This script validates that the Android environment is set up to run
# tests on a device or emulator (as opposed to a plain Java ... | hammerandchisel/react-native | scripts/validate-android-device-env.sh | Shell | bsd-3-clause | 1,417 |
#!/bin/bash
set -ex
cd ..
## Use sha (master@5cc1f1d) to download a particular commit to avoid breakages
## introduced by MediaWiki core
if [[ "$MW" == *@* ]]
then
arrMw=(${MW//@/ })
MW=${arrMw[0]}
SOURCE=${arrMw[1]}
else
MW=$MW
SOURCE=$MW
fi
if [ "$MW" != "" ]
then
wget https://github.com/wikimedia/mediaw... | owen-kellie-smith/mediawiki | wiki/vendor/onoi/cache/tests/travis/install-mediawiki.sh | Shell | mit | 985 |
#!/bin/bash -xe
# Licensed to Pioneers in Engineering under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Pioneers in Engineering licenses
# this file to you under the Apache License, Version 2.0 (the
# "Lice... | cduck/tenshi | lint-angel-player.sh | Shell | apache-2.0 | 1,142 |
source ${PHP_CONTAINER_SCRIPTS_PATH}/common.sh
# Copy SSL files provided in application source
process_ssl_certs
| sclorg/s2i-php-container | 7.4/root/usr/share/container-scripts/php/post-assemble/40-ssl-certs.sh | Shell | apache-2.0 | 114 |
#!/bin/bash
killall -9 task_server
killall -9 task_worker
| mrunix/streambase | tools/dump_data/kill.sh | Shell | gpl-2.0 | 61 |
#!/bin/sh
# This shell script tests ncdump and ncgen on netCDF-4 variables with multiple
# unlimited dimensions.
# $Id $
set -e
if test "x$srcdir" = "x"; then
srcdir=`dirname $0`;
fi
# add hack for sunos
export srcdir;
echo ""
echo "*** Testing ncdump output for multiple unlimited dimensions"
echo "*** creatin... | paulthulstrup/moose | libmesh/contrib/netcdf/4.3.1/ncdump/tst_mud.sh | Shell | lgpl-2.1 | 896 |
#!/bin/bash
TEMPDIR=`mktemp -d`
trap "rm -rf $TEMPDIR" EXIT
export HOME=$TEMPDIR
cd /opt/apps/osf
source /opt/data/envs/osf/bin/activate
python -m scripts.send_digest
| bdyetton/prettychart | scripts/send_digest.sh | Shell | apache-2.0 | 170 |
#!/bin/sh
#
# Copyright 2005-2015 Intel Corporation. All Rights Reserved.
#
# This file is part of Threading Building Blocks. Threading Building Blocks 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 Found... | gh2k/fractorium-win-build-deps | tbb/build/version_info_sunos.sh | Shell | gpl-2.0 | 1,912 |
. ${srcdir}/emulparams/extern_protected_data.sh
. ${srcdir}/emulparams/dynamic_undefined_weak.sh
. ${srcdir}/emulparams/call_nop.sh
SCRIPT_NAME=elf
OUTPUT_FORMAT="elf32-i386"
CHECK_RELOCS_AFTER_OPEN_INPUT=yes
NO_RELA_RELOCS=yes
TEXT_START_ADDR=0x80000000
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
ARCH=i386
MACHINE=
TEMPLATE_... | ccilab/binutils | ld/emulparams/elf_i386_be.sh | Shell | gpl-3.0 | 375 |
#!/bin/bash
# Invoked by the Xcode projects to build the protos needed for the unittests.
set -eu
readonly OUTPUT_DIR="${PROJECT_DERIVED_FILE_DIR}/protos"
# Helper for bailing.
die() {
echo "Error: $1"
exit 2
}
# What to do.
case "${ACTION}" in
"")
# Build, fall thru
;;
"clean")
rm -rf "${OUTPU... | danakj/chromium | third_party/protobuf/objectivec/DevTools/compile_testing_protos.sh | Shell | bsd-3-clause | 3,680 |
F=pkcs11-helper-1.06-beta1
OPENSSL_DIR=`pwd`/openssl-0.9.8h
PKCS11_HELPER_DIR=`pwd`/pkcs11-helper
rm -rf $PKCS11_HELPER_DIR
mkdir $PKCS11_HELPER_DIR
tbz=$F.tar.bz2
rm -rf $F
tar xfj $tbz
cd $F
./configure \
MAN2HTML=true \
--disable-crypto-engine-gnutls \
--disable-crypto-engine-nss \
PKG_CONFIG=tr... | durd07/4G | vpn/openvpn/openvpn-2.2.2/install-win32/build-pkcs11-helper.sh | Shell | gpl-2.0 | 543 |
VERT
DCL IN[0]
DCL IN[1]
DCL OUT[0], POSITION
DCL OUT[1], COLOR
IMM FLT32 { 0.5, 0.5, 0.5, 0.0 }
MOV OUT[0], IN[0]
MIN OUT[1], IN[1], IMM[0]
END
| execunix/vinos | xsrc/external/mit/MesaLib/dist/src/gallium/tests/graw/vertex-shader/vert-min.sh | Shell | apache-2.0 | 149 |
#!/usr/bin/env bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "Lice... | wangyum/spark | dev/tests/pr_merge_ability.sh | Shell | apache-2.0 | 1,364 |
#!/usr/bin/env bash
IFS=$'\n'
[ -n "$1" -a -n "$2" ] || {
echo "Usage: $0 <file> <directory>"
exit 1
}
[ -f "$1" -a -d "$2" ] || {
echo "File/directory not found"
exit 1
}
cat "$1" | (
cd "$2"
while read entry; do
[ -n "$entry" ] || break
[ ! -d "$entry" ] || [ -L "$entry" ] && rm -f "$entry"
done
)
sort -r ... | jszakmeister/openwrt | scripts/clean-package.sh | Shell | gpl-2.0 | 453 |
#!/bin/bash
ANT_HOME=$DBFLUTE_HOME/ant
NATIVE_PROPERTIES_PATH=$1
sh $DBFLUTE_HOME/etc/cmd/_df-copy-properties.sh $NATIVE_PROPERTIES_PATH
antReturnCode=0
sh $DBFLUTE_HOME/etc/cmd/_df-copy-extlib.sh
sh $DBFLUTE_HOME/ant/bin/ant -Ddfenv=$DBFLUTE_ENVIRONMENT_TYPE -Ddfans=$answer -f $DBFLUTE_HOME/build-torque.xml renewa... | bati11/otameshi-webapp | spring4+dbflute/mydbflute/dbflute-1.1.0-sp2/etc/cmd/_df-renewal.sh | Shell | mit | 446 |
#!/bin/bash
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Generates the following tree of certificates:
# root (self-signed root)
# \ \
# \ \--> l1_leaf (end-entity)
# \
# ... | hujiajie/chromium-crosswalk | chrome/test/data/extensions/api_test/platform_keys/create_test_certs.sh | Shell | bsd-3-clause | 1,934 |
. ${srcdir}/emulparams/bfin.sh
unset STACK_ADDR
OUTPUT_FORMAT="elf32-bfinfdpic"
MAXPAGESIZE="CONSTANT (MAXPAGESIZE)"
TEMPLATE_NAME=elf32
GENERATE_SHLIB_SCRIPT=yes
GENERATE_PIE_SCRIPT=yes
EMBEDDED= # This gets us program headers mapped as part of the text segment.
OTHER_GOT_SYMBOLS=
OTHER_READONLY_SECTIONS="
.rofixup ... | tuliom/binutils-gdb | ld/emulparams/elf32bfinfd.sh | Shell | gpl-2.0 | 928 |
#!/bin/bash
# Copyright 2015 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 ... | shawn-hurley/ansible-service-broker | vendor/k8s.io/kubernetes/hack/update-generated-swagger-docs.sh | Shell | apache-2.0 | 1,478 |
#!/bin/bash
SHA=$(curl -s http://download.redis.io/releases/redis-${1}.tar.gz | shasum | cut -f 1 -d' ')
ENTRY="hash redis-${1}.tar.gz sha1 $SHA http://download.redis.io/releases/redis-${1}.tar.gz"
echo $ENTRY >> ~/hack/redis-hashes/README
vi ~/hack/redis-hashes/README
echo "Press any key to commit, Ctrl-C to abort)."
... | gplessis/dotdeb-redis | utils/releasetools/04_release_hash.sh | Shell | bsd-3-clause | 395 |
#!/bin/bash
# Read from the file file.txt and print its transposed content to stdout.
awk '{
for (i = 1; i <= NF; i++) {
if(NR == 1) {
s[i] = $i;
} else {
s[i] = s[i] " " $i;
}
}
}
END {
for (i = 1; s[i] != ""; i++) {
print s[i];
}
}' file.txt
| hawkphantomnet/leetcode | TransposeFile/Solution.sh | Shell | mit | 316 |
#!/usr/bin/env bash
# Network manager
sudo pacman -S --noconfirm \
networkmanager \
networkmanager-openvpn \
&& sudo systemctl enable NetworkManager
# Package manager / AUR helper
sudo pacman -S --noconfirm git \
&& git clone https://aur.archlinux.org/yay.git \
&& cd yay \
&& makepkg -si --noconfirm \
&... | MrOutis/dotfiles | install-packages.sh | Shell | mit | 4,171 |
#!/bin/bash
set -e
if [[ $TRAVIS_OS_NAME = "linux" ]]
then
docker pull bioconda/bioconda-builder
else
# install conda
curl -O https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
sudo bash Miniconda3-latest-MacOSX-x86_64.sh -b -p /anaconda
sudo chown -R $USER /anaconda
mkdir ... | JingchaoZhang/bioconda-recipes | scripts/travis-setup.sh | Shell | mit | 826 |
#!/usr/bin/env bash
#
# Upgrade and/or fix an EPUB file using the Bookalope cloud service. Read the code for details 🤓
# Talk to the production server by default, or use -b/--beta to switch servers.
APIHOST="https://bookflow.bookalope.net"
APITOKEN=""
# Associate a credit with the conversion if one is available from... | jenstroeger/Bookalope | examples/epubdate.sh | Shell | mit | 15,699 |
#!/bin/bash
# You probably need to update only this link
ELECTRUM_GIT_URL=git://github.com/navcoindev/electrum-navcoin.git
BRANCH=master
NAME_ROOT=electrum
# These settings probably don't need any change
export WINEPREFIX=/opt/wine64
PYHOME=c:/python27
PYTHON="wine $PYHOME/python.exe -OO -B"
# Let's begin!
cd `di... | sherlockcoin/Electrum-NavCoin | contrib/build-wine/build-electrum-git.sh | Shell | mit | 2,089 |
#!/usr/bin/env bash
docker run -d --name customcaddy \
-v $HOME/caddy/srv:/srv \
-v $HOME/caddy/Caddyfiles:/etc/Caddyfiles \
-v $HOME/caddy/.caddy:/root/.caddy \
-p 80:80 -p 443:443 \
--log-driver journald \
prinsmike/customcaddy
| prinsmike/custom-caddy | run.sh | Shell | mit | 237 |
awk '$0=length($0)$0'|sort -n|tr -d 0-9|tail -1 | jmatsu/BashCoder | abc/015/a.sh | Shell | mit | 47 |
#!/bin/sh
rm -r doc # rd /s /y doc
mkdir doc # md doc
javadoc -d doc -sourcepath src toolkit | marciojrtorres/aps-2014-2 | toolkit/doc.sh | Shell | mit | 94 |
#!/bin/sh
# CYBERWATCH SAS - 2017
#
# Security fix for CESA-2016:2574
#
# Security announcement date: 2016-11-25 15:59:02 UTC
# Script generation date: 2017-01-20 21:18:39 UTC
#
# Operating System: CentOS 7
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - kernel.x86_64:3.10.0-514.el7
# - kerne... | Cyberwatch/cbw-security-fixes | CentOS_7/x86_64/2016/CESA-2016:2574.sh | Shell | mit | 2,685 |
sudo echo -e "\e[0;31m set repositories.\e[0m"
sudo sed -i 's/us.archive.ubuntu.com/ftp.daum.net/' /etc/apt/sources.list
cd ~
sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/... | finaleaf/Mint-package-installer | fil-mint-pi.sh | Shell | mit | 1,690 |
#!/bin/bash
#PBS -q workq
#PBS -l nodes=1:ppn=20
#PBS -l walltime=12:00:00
export OMP_NUM_THREADS=1
INPUT=$A
OUTDIR=$B
MATDIR=/home/pmotter/work/UF_Collection_Matrix-Market
EXEDIR=/home/pmotter/work/trilinos-prediction/tpetra_solvers
echo $INPUT
echo $OUTDIR
echo $MATDIR
echo $EXEDIR
mkdir -p $OUTDIR
OLDIFS=$IFS
I... | patemotter/trilinos-prediction | tpetra_solvers/batch_scripts/supermic/supermic_np20.sh | Shell | mit | 804 |
#!/usr/bin/env bash
pgsql_in_docker=false
pgsql_container=usql-pgsql
if [ "$pgsql_in_docker" != true ]; then
PGHOST="${PGHOST:-127.0.0.1}"
port=$(docker port "$pgsql_container" 5432/tcp)
PGPORT=${port##*:}
else
PGHOST="${PGHOST:-$pgsql_container}"
PGPORT=5432
fi
PGUSER="${PGUSER:-postgres}"
PGPASS... | knq/usql | drivers/testdata/gen-golden.sh | Shell | mit | 2,016 |
#!/bin/bash
. properties/configuration.properties
# docker exec -it $(docker ps | grep "cassandra" | rev | cut -d' ' -f1 | rev) cqlsh
# $(docker ps | grep "cassandra" | rev | cut -d' ' -f1 | rev)
docker run -it --rm --net=smartmeter logimethods/smart-meter:cassandra cqlsh "${CASSANDRA_MAIN_NAME}"
| Logimethods/smart-meter | cqlsh.sh | Shell | mit | 307 |
#!/usr/bin/env bash
## Restart the VM completely
set -e
require_cookie
if ! release_remote_ctl reboot; then
exit 1
fi
sleep 1
# Check to see if node is back, if not, restart it without heart
# Node needs to be brought back up without heart
if ! release_remote_ctl ping >/dev/null; then
. "$REL_DIR/libexec/... | bitwalker/distillery | priv/libexec/commands/reboot.sh | Shell | mit | 348 |
#!/usr/bin/bash
if [ ! -f config.txt ]; then
echo "Need a config.txt file"
exit
fi
source ./config.txt
if [ ! -d HMM/$HMM ]; then
echo "need a HMM defined in config.txt and this needs to be a folder in HMM/"
echo "usually you checkout / download https://github.com/1KFG/Phylogenomics_HMMs/releases/latest and th... | 1KFG/Phylogenomics | jobs/00_setup.sh | Shell | mit | 689 |
#!/bin/bash
isExistApp=`pgrep cp-events-service`
if [[ -n $isExistApp ]]; then
service cp-events-service stop
fi
| bmatthews68/cp-events-service | deploy/stop-server.sh | Shell | mit | 115 |
#!/usr/bin/env bash
#
# Configure dunst.
echo
echo "#################################"
echo "#"
echo "# Configuration: dunst"
echo "#"
echo "#################################"
echo
echo "Configuring dunst..."
mkdir -p ~/.config/dunst
ln -s ~/.dotfiles/dunst/dunstrc ~/.config/dunst/dunstrc
| albalitz/dotfiles | dunst/config.sh | Shell | mit | 292 |
#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks=18
#SBATCH --cpus-per-task=1
#SBATCH --nodes=1
#SBATCH --mem=18000
python_version=/exports/people/andersenlab/kml436/python2/bin/python
bam_surgeon=/lscr2/andersenlab/kml436/git_repos2/bamsurgeon
reference=/lscr2/andersenlab/kml436/sv_sim2/c_elegans.PRJNA13758.WS245.genom... | klaricch/Transposons2 | scripts/TRASH/WB_SIM_round2_TransposonBS_N2_SB_TTR.sh | Shell | mit | 13,057 |
#!/bin/sh
# CYBERWATCH SAS - 2016
#
# Security fix for RHSA-2011:0299
#
# Security announcement date: 2011-02-23 19:09:52 UTC
# Script generation date: 2016-05-12 18:10:08 UTC
#
# Operating System: Red Hat 6
# Architecture: x86_64
#
# Vulnerable packages fix on version:
# - java-1.4.2-ibm-sap.x86_64:1.4.2.13.8.sa... | Cyberwatch/cbw-security-fixes | Red_Hat_6/x86_64/2011/RHSA-2011:0299.sh | Shell | mit | 868 |
#!/usr/bin/env bash
# This file is part of The RetroPie Project
#
# The RetroPie Project is the legal property of its developers, whose names are
# too numerous to list here. Please refer to the COPYRIGHT.md file distributed with this source.
#
# See the LICENSE.md file at the top-level directory of this distribution ... | zerojay/RetroPie-Extra | scriptmodules/libretrocores/lr-mame2003_midway.sh | Shell | mit | 2,225 |
./setup.sh
cd android && ./gradlew assembleRelease
cp ./app/build/outputs/apk/app-release.apk ../
cd ../
| multunus/moveit-mobile | build_release.sh | Shell | mit | 105 |
#if hash just &>/dev/null; then
# just --completions zsh > $DOTFILES/just/just.zsh
#fi
| defrank/dotfiles | just/completion.zsh | Shell | mit | 90 |
#!/bin/sh
# Author: Vova Zaytsev <zaytsev@usc.edu>
PYTHON=python
THISDIR=`pwd`
WORKDIR=/Users/zvm/dev/nlcd_eval
${PYTHON} ${THISDIR}/pipelines/evaluate.py \
--pipeline-root ${THISDIR}/scripts/pipeline \
--app-root ${THISDIR}/husky \
--wo... | LucidAi/nlcd | pipelines/evaluate.sh | Shell | mit | 913 |
#!/usr/bin/env bash
set -e
my_dir="$( cd $(dirname $0) && pwd )"
release_dir="$( cd ${my_dir} && cd ../.. && pwd )"
workspace_dir="$( cd ${release_dir} && cd ../../../.. && pwd )"
export GOPATH=${workspace_dir}
export PATH=${GOPATH}/bin:${PATH}
: ${access_key_id:?}
: ${secret_access_key:?}
: ${bucket_name:?}
: ${s3... | pivotal-golang/s3cli | ci/tasks/run-integration-s3-compat.sh | Shell | mit | 689 |
#!/usr/bin/bash
MacriTable3=$1
MacriTable5=$2
# format lines from Macri14_Table_3
awk '
BEGIN {
OFS="\t"
}
NR>38 {
print "OGLE-LMC-CEP-"$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$15,$17
}' $MacriTable3
# format lines from Macri14_Table_5
sed 's/OGL-/OGLE-LMC-CEP-/' $MacriTable5 \
| awk '
BEGIN {
... | astroswego/leavitt | scripts/macri_table_format.sh | Shell | mit | 421 |
# GIT heart FZF
# -------------
unalias-safe() {
for a in $@; do
case $(type $a) in (*alias*) unalias $a; esac
done
}
unalias-safe gf gb gr gs
is_in_git_repo() {
git rev-parse HEAD > /dev/null 2>&1
}
fzf-down() {
fzf --height 50% "$@" --border
}
gf() {
is_in_git_repo || return
git -c color.status=a... | Neal/dotfiles | git/fzf.zsh | Shell | mit | 3,687 |
#!/bin/bash
cmd=$1
host=$2
shift 2
case ${cmd} in
update)
id=$1; shift
lat="39.18"$(shuf -i 0-9999 -n 1)
lon="-77.27"$(shuf -i 0-9999 -n 1)
following=""
whitelist=""
while (( $# > 0 )); do
key=${1%%:*}
val=${1##*:}
case ${key} in
lat) lat=${val} ;;
lon) ... | HokieGeek/donde-estas-daemon | scripts/person.sh | Shell | mit | 1,094 |
# some more ls aliases
if [ "$COLORSUPPORT" -eq 1 ]; then
alias ls='ls --color=auto'
fi
alias ll='ls -alF --group-directories-first'
alias la='ls -A'
alias l='ls -CF'
| Paulius-Maruska/dotfiles | ls/90-aliases.sh | Shell | mit | 171 |
echo
echo "Installing NodeJS"
brew install node
echo
echo "Installing global NodeJS Packages"
npm install --global yo
npm install --global webpack
npm install --global grunt-cli
npm install --global gulp-cli | professor/workstation-setup | scripts/node.sh | Shell | mit | 210 |
#!/bin/bash
cp A test/lc3bsim
cd test
# -----------------------------------------------
# -----------------------------------------------
# -----------------------------------------------
# Part A: Testing single instruction at a time
# -----------------------------------------------
# ------------------------------... | Zaydax/lc3bISAemulator | hw1_autograde/run.sh | Shell | mit | 2,034 |
#!/usr/bin/env bash
# Clone the repo
if [ ! -d "elixir" ]; then
git clone https://github.com/elixir-lang/elixir.git
cd elixir
else
cd elixir
git pull
fi
# Get our HEADs to test if an update is necessary
mkdir -p ../tmp
touch ../tmp/elixir-head
INSTALLED_HEAD=$(cat ../tmp/elixir-head)
REPO_HEAD=$(cat .... | slogsdon/vagrant-weber | provision/shell/install_elixir.sh | Shell | mit | 992 |
#!/bin/sh
set -e
set -u
set -o pipefail
function on_error {
echo "$(realpath -mq "${0}"):$1: error: Unexpected failure"
}
trap 'on_error $LINENO' ERR
if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then
# If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy
# frameworks to, so exit 0 (signalling the... | dvlproad/CJUIKit | CJUIKitDemo/Pods/Target Support Files/Pods-CJUIKitDemoTests/Pods-CJUIKitDemoTests-frameworks.sh | Shell | mit | 8,468 |
#!/bin/bash
# Connect to ULB VPN
echo $ULB_PASSWD | sudo openconnect --protocol=gp --background --user=$ULB_NETID --passwd-on-stdin vpn.ulb.ac.be
sleep 5
if ping -c 1 $FTP_HOSTNAME &> /dev/null
then
echo "Connection to $FTP_HOSTNAME successfull"
else
echo "Connection to $FTP_HOSTNAME failed"
fi
mkdir -p ~/.ssh
... | yannforget/spell-website | deploy.sh | Shell | mit | 772 |
# Simple calculator
function calc() {
local result="";
result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')";
# └─ default (when `--mathlib` is used) is 20
#
if [[ "$result" == *.* ]]; then
# improve the output for decimal numbers
printf "$result" |
sed -e 's/^\./0./' ... | weitingchou/dotfiles | init/oh-my-zsh/custom/functions.zsh | Shell | mit | 6,949 |
### Aliases
if [[ "$OSTYPE" == darwin* ]]; then
# Short-cuts for copy-paste.
alias c='pbcopy'
alias p='pbpaste'
# md5sum doesn't exist on osx
alias md5sum='md5'
# Remove all items safely, to Trash (`brew install trash`).
# alias rm='trash'
# Case-insensitive pgrep that outputs full path.
alias pgr... | asamasoma/dotfiles | osx/.zsh/osx.zsh | Shell | mit | 1,051 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.