blob_id stringlengths 40 40 | language stringclasses 1
value | repo_name stringlengths 4 115 | path stringlengths 2 970 | src_encoding stringclasses 28
values | length_bytes int64 31 5.38M | score float64 2.52 5.28 | int_score int64 3 5 | detected_licenses listlengths 0 161 | license_type stringclasses 2
values | text stringlengths 31 5.39M | download_success bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|
f4d977236ecdcd874ff7ef30b5ee8b9e88a04a18 | Shell | Celwood93/CSC360Assignment2 | /runner | UTF-8 | 486 | 2.90625 | 3 | [] | no_license | #!/bin/bash
make
for i in {1..1};
do
#to print to a command line
printf 'testfiles/test1.txt\ntestfiles/test2.txt\ntestfiles/test3.txt\ntestfiles/test4.txt\ntestfiles/test5.txt\ntestfiles/test6.txt\ntestfiles/test7.txt\ntestfiles/test8.txt\ntestfiles/test9.txt\nend\n' | ./ACS
#to print results to an output file
#prin... | true |
6f29bf09a173b5028cdf950659aea2444a949421 | Shell | benayang/H4K20me1 | /Signal/deeptools_computematrix.sh | UTF-8 | 1,756 | 2.671875 | 3 | [] | no_license | #!/usr/bin/env bash
pjdir="/nas/homes/benyang/H4K20me1"
#bwdir="$pjdir/SEACR_bw"
bwdir="$pjdir/anna_broadpeak"
overlapdir="$pjdir/Figures/Footprints/sets"
outdir="$pjdir/Figures/Footprints/Profiles"
logfile="$outdir/OldvsYoungCUTTAG_computematrix.log"
[ ! -f $logfile ] && touch $logfile
# echo Old Young overlap
# dt... | true |
939d9667b5f6d18adfa7f9b37e4f5c78e9cc0178 | Shell | jsrdzhk/captchappy | /src/sh/ty/build_gateway.sh | UTF-8 | 1,577 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
GATEWAY_HOME=$HOME/build/gateway/FIRSTApi
SWIG_HOME=$HOME/build/swig
TARGET_HOME=$GATEWAY_HOME/build
cpToSwig() {
cp "${GATEWAY_HOME}"/include/CrossPlatform.h "${SWIG_HOME}"
cp "${GATEWAY_HOME}"/include/ThostFtdcUserApiStruct.h "${SWIG_HOME}"
cp "${GATEWAY_HOME}"/include/ThostFtdcUserApiDataType... | true |
c88e07c903a7c06395117f77895848ef59914b19 | Shell | ssadler/aeson-quick | /manage.sh | UTF-8 | 287 | 3.3125 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
function publish () {
set -e
dir=$(mktemp -d dist-docs.XXXXXX)
trap 'rm -r "$dir"' EXIT
# assumes cabal 2.4 or later
cabal v2-haddock --builddir="$dir" --haddock-for-hackage --enable-doc
cabal upload -d --publish $dir/*-docs.tar.gz
}
cmd=$1
shift
eval $cmd
| true |
68b7d5eb25e975c0b34962a01600ec6aae8ad38c | Shell | jimy18/bash | /humano.sh | UTF-8 | 136 | 3 | 3 | [] | no_license |
funcion_nombre()
{
echo "
Hola como estas $2 mucho gusto"
}
edad()
{
ed=$((2021 - $a))
echo "
Tu edad es de: $ed años
"
}
| true |
25252e599e5a0fa8fcec9b901f034a467ba7acf4 | Shell | tabithabragg/scriptlets_n_bits | /scraper.sh | UTF-8 | 818 | 2.640625 | 3 | [] | no_license | #!/bin/bash
subscription-manager refresh
svrname=$(hostname)
svrip=$(ip addr | grep -i "inet " | grep -v "inet 127" | awk '{print $2}')
release=$(cat /etc/redhat-release)
motd=$(cat /etc/motd | grep -i "server")
svrup=$(uptime | awk '{print $3}')
satenv=$(subscription-manager identity | grep -i environment)
satprod=$... | true |
7a3e149d37365035b5145b0dc14c566f183b7eb6 | Shell | rvanweerd/developer-documentation | /generate.sh | UTF-8 | 1,095 | 3.453125 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
function generateDocs {
echo "generating $1 - $2"
git checkout docs/$2/generated
rm -rf docs/$2/cache
mkdir docs/$2/cache
rm -rf docs/$2/generated
mkdir docs/$2/generated
cd piwik
git rm --cached -r . > /dev/null
... | true |
0254cc406fd719c745e041fdde792eb35fa9e9c6 | Shell | ShaftHQ/SHAFT_ENGINE | /src/main/resources/docker-compose/start_emu_headless | UTF-8 | 4,310 | 3.546875 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | #!/bin/bash
BL='\033[0;34m'
G='\033[0;32m'
RED='\033[0;31m'
YE='\033[1;33m'
NC='\033[0m' # No Color
emulator_name=${EMULATOR_NAME}
function launch_emulator () {
adb devices | grep emulator | cut -f1 | while read line; do adb -s "$line" emu kill; done
if [ "$OSTYPE" == "macOS" ];
then
echo "Running: emulato... | true |
48b58da0f8be1659bb17e73568845c7a69c9da5b | Shell | opensciencegrid/docker-xrootd-standalone | /image-config.d/10-add-users.sh | UTF-8 | 453 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ -f '/usr/share/osg/voms-mapfile-default' ]; then
grep '".*" .*' /usr/share/osg/voms-mapfile-default | awk '{print $NF}' | xargs -n1 adduser
fi
if [ -f '/etc/grid-security/grid-mapfile' ]; then
grep '".*" .*' /etc/grid-security/grid-mapfile | awk '{print $NF}' | xargs -n1 adduser
fi
if [ -f '/e... | true |
5167cb0e971d7913a4ac1732e24979a7f66952f8 | Shell | uib/tk | /scripts/site-reset-prod-from-staging-branch | UTF-8 | 1,829 | 3.03125 | 3 | [] | no_license | #!/bin/bash
datetime=$(date -I)T$(date +%H%M%S)
echo "Reset origin/staging to prod!!! (y/n)?"
read x
if ! [ $x == "y" ];then
echo User abort...
exit
fi
#Check user
if ! [ $(whoami) == "app" ];then
echo wrong user Run as app >/dev/stderr
exit 1
fi
#Check hostname
if ! [ $(hostname|egrep '^(long|real|double)6'... | true |
584559da2f24394f4f784e5a64ecc43cc988c0a0 | Shell | daler/build-test | /travis-run.sh | UTF-8 | 333 | 2.65625 | 3 | [] | no_license | #!/bin/bash
export PATH=/anaconda/bin:$PATH
RECIPE=recipes/argh
if [[ $TRAVIS_OS_NAME = "linux" ]]
then
python conda_build_with_docker.py $RECIPE --host-conda-bld /anaconda/conda-bld
else
conda build $RECIPE
fi
conda install -y conda-build
anaconda -t $ANACONDA_TOKEN upload -u $CONDA_USER $(conda build --out... | true |
0a00ab16084d3054acc72d06436d3257fde3d76b | Shell | ithewei/libhv | /configure | UTF-8 | 6,567 | 3.84375 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
. "$(dirname "$0")/scripts/shini.sh"
print_help() {
shini_parse "config.ini"
cat << END
Usage: ./configure [--option] ...
options:
--prefix=PREFIX (DEFAULT: $PREFIX)
--incdir=INSTALL_INCDIR (DEFAULT: $PREFIX/include/hv)
--libdir=INSTALL_LIBDIR (DEFAULT: $PREFIX/lib)
--with-... | true |
74dbb97db1f97c6aef80dc6287140aad70848807 | Shell | cha63506/dev_git_started | /src/github-config.sh | UTF-8 | 1,897 | 4.0625 | 4 | [] | no_license | ############################ GITHUB SETUP ##########################
function signupGitHub() {
if (( "${#git_name}" > 0 )) && (( "${#git_email}" > 0 )) && (( "${#ssh_public_key}" > 0 )); then
have_github_account=$(askYesNo "Do you have a GitHub account")
fi
if [ "${have_github_account}" == "N" ]; ... | true |
1a8ff296c57398afe7edcab62860f2f489fc8c07 | Shell | michaelbub/MiSTer_Batch_Control | /build.sh | UTF-8 | 926 | 3.765625 | 4 | [] | no_license | #!/bin/sh
set -x
die(){
echo "ERROR"
exit -1
}
export DOWNLOAD_GCC_TOOLCHAIN="http://musl.cc/arm-linux-musleabihf-cross.tgz"
export PATH="$PWD/build/arm-linux-musleabihf-cross/bin:$PATH"
if [ "$(ls build/arm-linux-musle*)" = "" ] ; then
echo "downloading $DOWNLOAD_GCC_TOOLCHAIN"
mkdir -p build ||die
cd bu... | true |
b9e007ccf57c9056490701b16654bf6967fe4401 | Shell | Jbennett8/Genome-Annotation-Pipeline | /bin/alignment/hisat/align.sh | UTF-8 | 596 | 3.265625 | 3 | [] | no_license | #!/bin/bash
module load hisat2/2.2.1
# Input
sraName="$1" # etc SRR123775
sraDir="$PWD/$2"
outDir="$3"
readType="scythe" # Change if you want just trimmed, etc
r1=$sraDir/${readType}_${sraName}_1.fastq
r2=$sraDir/${readType}_${sraName}_2.fastq
# Parameters
cores=8
prefix="$PWD/index/hisat/hisat"
# Create sam
cd $... | true |
bbcf5edddc595f8718ef72bd027e126ce323a4d5 | Shell | chaxel/cartoprox | /scripts/util_GEOM/old/extractfondmet.sh | UTF-8 | 1,832 | 3.078125 | 3 | [] | no_license | #!/bin/ksh
#
# FTr
########################################################
grid=$1
ChemDisk=/mnt/mod2
ChemProg=$ChemDisk/appli/CARTOPROX/Util
. $ChemProg/include_path.sh
echo "===================================================="
echo "====== extraction WRF + Chimere pour $grid ========="
echo "===================... | true |
ea0eb2fde79807b0f167c7fd9c9092cbe5a1de83 | Shell | TobyHFerguson/cm_config | /bin/allow_laptop.sh | UTF-8 | 497 | 3 | 3 | [] | no_license | RESOURCE_GROUP=${1:?"No Resource Group specified"}
CM_URL=${2:?"No CM URL specified"}
PREFIX=$(echo ${CM_URL#*://} | sed -n 's/\(.*\)-[dm]n[0-2].*/\1/p')
for NSG in clouderaVnet-sg ${PREFIX}-dn-sg ${PREFIX}-mn-sg
do
az network nsg rule create --name cloudera_vpn --nsg-name $NSG --priority 120 --access Allow --des... | true |
460df02fef35417abef4c82795ee1b448a0d9a98 | Shell | antoniocosta/scriptsmisc | /encmovprores.sh | UTF-8 | 507 | 3.84375 | 4 | [] | no_license | #!/bin/sh
if [ $# -eq 0 ]; then
echo "Converts video to mov (ProRes)"
echo "usage: ./ench264.sh video [quality]"
echo "[quality] defaults to 3 (HQ). Accepted 0-3. Higher values are better quality."
echo " 0 is Proxy, 1 is LT, 2 is Standard and 3 is HQ"
exit 1
fi
# Use $2 if defined AND NOT EMPTY otherwi... | true |
94ab1ee57fdb1c763ddc9930a7f7964519fe7913 | Shell | johannesg/bubbla-dev | /image/build/setuser.sh | UTF-8 | 256 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# Set the nginx user and group to match the host user.
OWNER=$(stat -c '%u' /var/www)
GROUP=$(stat -c '%g' /var/www)
echo "Setting uid to $OWNER and gid to $GROUP for user www-data"
usermod -o -u $OWNER www-data
groupmod -o -g $GROUP www-data
| true |
4a2e259ed5174264088593ff549ce9c1baf9bdf6 | Shell | Azure/azure-cli-dev-tools | /scripts/ci/build_cli_diff_tool.sh | UTF-8 | 419 | 3.109375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -ev
: "${BUILD_STAGINGDIRECTORY:?BUILD_STAGINGDIRECTORY environment variable not set}"
: "${BUILD_SOURCESDIRECTORY:=$(cd $(dirname $0); cd ../../; pwd)}"
cd "${BUILD_SOURCESDIRECTORY}"
cd ./azure-cli-diff-tool
echo "Build azure cli diff tool"
pip install -U pip setuptools wheel
python setup.... | true |
ce4a381dd84fdb18e46856e7ad6016b7a0b06284 | Shell | SFML/CSFML | /tools/BuildMacOS.sh | UTF-8 | 14,367 | 3.546875 | 4 | [
"Zlib"
] | permissive | #!/bin/sh
VERSION="2.5.1"
VERSION_C="2.5.1"
# BUILD_CSFML=FALSE
BUILD_CSFML=TRUE
BUILD_SFML=FALSE
###
### Create packages for SFML $VERSION on OS X
###
### Author: Marco Antognini <antognini.marco@gmail.com>
### Date: 15/11/2014
###
##
## SETTINGS
##
## Edit $VERSION & $VERSION_C above
##
sfml_giturl='https://git... | true |
4b89c97e18c607353c85d84ec3362134db8a8530 | Shell | E4S-Project/testsuite | /validation_tests/ginkgo/setup.sh | UTF-8 | 958 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. ../../setup.sh
export THISDIR=`basename "$PWD"`
export GINKGO_DIRS=$(ls -d */ | grep -v cuda | grep -v par-ilu-convergence | grep -v preconditioner-export | grep -v nine-pt-stencil-solver | grep -v distributed-solver )
export ARG=""
if [ "$THISDIR" = "ginkgo-cuda" ];then
spackLoadUnique "ginkg... | true |
fa28d362d667f252279560f66368a9f9a836f630 | Shell | ns1/ns1-privatedns | /docker-exabgp/health.sh | UTF-8 | 812 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# count configured peers
configured_peers=`exabgpcli show neighbor configuration | grep -ce 'neighbor .* {'`
# count peers in established state
established_peers=`exabgpcli show neighbor summary | awk '{ print $4; }' | grep -c established`
# Check if exabgpcli had non-zero exit
if [ $? -ne 0 ]; then
echo ... | true |
0694b6924d0e49f0b840cceb6ef6fa24d8d898f6 | Shell | OverSkillers/COMP201920 | /meta2/build.sh | UTF-8 | 942 | 3.328125 | 3 | [] | no_license | # Start building commands
LEX="lex jucompiler.l"
YACC="yacc -d jucompiler.y"
CLANG="clang-3.9 -Wall -Wno-unused-function -o jucompiler lex.yy.c y.tab.c ast.c -lm"
# Check for any arguments
while getopts "vpo" OPTION; do
case $OPTION in
v)
CLANG=$CLANG" -g -v -DDEBUG=1"
LEX="lex -v jucompiler.l"... | true |
621ad656423880f103a0d3bb1e7f0a5ad68eb823 | Shell | josh-padnick/dotfiles | /bash.d/git | UTF-8 | 137 | 2.53125 | 3 | [] | no_license | #!/bin/bash
# Git bash completion
GIT_FILE="/usr/local/etc/bash_completion.d/git-completion.bash"
test -f $GIT_FILE && source $GIT_FILE
| true |
40872be056665857d3413e141435a9efc4e47e1b | Shell | yhfudev/bash-mrnative | /3rd/runcompile-bitcoin.sh | UTF-8 | 1,694 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
my_getpath () {
PARAM_DN="$1"
shift
#readlink -f
DN="${PARAM_DN}"
FN=
if [ ! -d "${DN}" ]; then
FN=$(basename "${DN}")
DN=$(dirname "${DN}")
fi
DNORIG=$(pwd)
cd "${DN}" > /dev/null 2>&1
DN=$(pwd)
cd "${DNORIG}"
if [ "${FN}" = "" ]; then
echo "${DN}"
else
echo "${DN... | true |
fe1771f27d59f458ea13624d8f82d3e001f9da1a | Shell | ethz-asl/maplab | /deploy/build_docker_with_rviz.sh | UTF-8 | 484 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env zsh
# Get the current directory.
script_source=$(readlink -f "$0")
script_dir=$(dirname "$script_source")
docker_ctx=${script_dir}/docker_ctx
echo "Creating build context in: ${docker_ctx}"
# Create the context we use for setting up the images.
mkdir -p "${docker_ctx}"
"$script_dir/copy_to_ctx.sh"
# ... | true |
cb835a9591c8c133ba960a8260eaa739a1e94f56 | Shell | mhfowler/notes-from-sfpc | /run.sh | UTF-8 | 202 | 2.8125 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
PROJECT_PATH=$( cd $(dirname $0) ; pwd -P )
CONFIG_FILE=$PROJECT_PATH/_config.yml
if [ -f $CONFIG_FILE ]; then rm $CONFIG_FILE; fi
cp _localconfig.yml $CONFIG_FILE
hexo server | true |
faea8892b9363b9599fcb1b5ac49765789db9ea8 | Shell | JLiangWaterloo/sat | /William-Scripts/CommunityOutputOnlyModularity | UTF-8 | 317 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
dir_name=$(dirname $0)
dir_name=${dir_name#"./"}
set -e
out=$("$dir_name"/../Haskell/Bcp | "$dir_name"/../Haskell/Graph variable | "$dir_name"/../Bin/community -i:"/dev/stdin" -o:"/dev/stdout")
modularity=$(echo "$out" | grep "Modularity" | cut -d: -f2 | "$dir_name"/../Bash/Trim)
echo -n "$modularity"
| true |
448c20974fba21892b0ff9fdb5372a8cde1fb95a | Shell | epandurski/swpt_debtors | /release_to_dockerhub.sh | UTF-8 | 426 | 2.96875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
if [ -z "$1" ]; then
echo "Usage: release.sh TAG"
return
fi
swpt_debtors="epandurski/swpt_debtors:$1"
swpt_debtors_swagger_ui="epandurski/swpt_debtors_swagger_ui:$1"
docker build -t "$swpt_debtors" --target app-image .
docker build -t "$swpt_debtors_swagger_ui" --target swagger-ui-image .
git tag "v... | true |
7ef9a5d74b80dcbbc74df453223089c287ae7cc0 | Shell | dffischer/xmms2-mlib-adapter | /PKGBUILD | UTF-8 | 550 | 2.5625 | 3 | [] | no_license | # Maintainer: XZS <d dot f dot fischer at web dot de>
pkgname=python-xmms2-mlib-adapter-git
pkgver=r0
pkgrel=1
pkgdesc="Export and import xmms2 playlists and song statistics to plaintext."
arch=('i686' 'x86_64')
url="https://github.com/dffischer/xmms2-mlib-adapter"
license=('GPL3')
depends=('python' 'python-progressbar... | true |
2a66c527b74b00920a8a86e87090c6c07458071a | Shell | l4rz/idrac-7-8-reverse-engineering | /squashfs-linux/Linux/usr/bin/discovery_gen_csr.sh | UTF-8 | 2,509 | 3.296875 | 3 | [] | no_license | # This script generates a CSR with a derived CN using the node id
# so it can be authenticated by a provisioning server for zero touch
# deployment.
#
# Files used:
# 1) d_h_ssl_manuf.cnf
#
# Files created:
# 1) STAG_iDRAC_d_h_req.pem (CSR request)
# 2) STAG_iDRAC_d_h_key.pem (private key for SSL handshake - clie... | true |
3bd72ca6826b44a5e3d89bd23b1f209b2bcf1d7c | Shell | cgpuglie/vagrant-development | /scripts/provision.sh | UTF-8 | 1,227 | 3.59375 | 4 | [] | no_license | #!/bin/bash
log() {
level=$1
message=$2
echo "$(date -Is) - [$level] $message"
}
log "INFO" "Adding package repos"
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packa... | true |
500dd97f51b2fddfcbc352d0cd30e5eeb1af99cd | Shell | CheetahTemplate3/cheetah3 | /devscripts/postrelease | UTF-8 | 784 | 2.953125 | 3 | [
"MIT"
] | permissive | #! /bin/sh
tag="`python setup.py --version`" &&
. `dirname $0`/split_tag.sh &&
split_tag $tag
if [ $micro -eq 0 -a \( $state = final -o $state = post \) ] &&
git branch --merged master | grep -Fqw maint; then
git checkout maint &&
git merge --ff-only master &&
git checkout master
else:
git checkout... | true |
3e3d38b2e11a2c648bdfef71a156c5a58e917824 | Shell | mjuszczak/mjuszczak.github.io | /lint.sh | UTF-8 | 599 | 3.453125 | 3 | [] | no_license | #!/bin/bash
pcregrep > /dev/null 2>&1
if [ $? -eq 127 ]; then
echo "ERROR: You must install pcregrep"
exit
fi
fail=0
directories="./_posts ./_pages"
echo "Annoying characters to fix:"
pcregrep -ir --color='auto' -n '[^\x00-\x7F]' ${directories}
if [ "$?" -eq 0 ]; then
fail=1
fi
echo "^M's:"
grep -ir $'\r' $... | true |
e8fe78308508afe5b0d7e65912b3887d2681b514 | Shell | caryatid/toolbox | /scripts/abduco.sh | UTF-8 | 648 | 2.78125 | 3 | [] | no_license | SRC="$1"; shift
INS="$1"; shift
TGT="$1"; shift
set -e
cd "$SRC"
echo 'PREFIX ?=' "$INS" >config.mk
echo 'TARGET ?=' "$TGT" >>config.mk
cat <<'EOF' >>config.mk
VERSION = 0.6
MANPREFIX = ${PREFIX}/share/man
INCS = -I. -I${PREFIX}/include -I${PREFIX}/${TARGET}/include -nostdinc
LIBS =
CPPFLAGS = -D_POSIX_C_SOURCE=2... | true |
f6f06d03696dc7d9926781d6a00eb5756b06d0ae | Shell | mblow/coverity-scripts | /upload_scan.sh | UTF-8 | 1,294 | 3.625 | 4 | [] | no_license | #!/bin/bash
set -e
project=$1
case $project in
asterixdb-hyracks)
project_name="Apache AsterixDB Hyracks"
;;
asterixdb)
project_name="Apache AsterixDB"
;;
*)
echo Unknown project: ${project}; exit 1;;
esac
project_key="$(echo $project_name | tr ' ' '+')"
archive_name="$(echo $project_name | t... | true |
c7a08382b812dddb40ec304f8b05d33d313c3a62 | Shell | CGA1123/heroku-buildpack-foo | /bin/compile | UTF-8 | 91 | 2.59375 | 3 | [] | no_license | #!/bin/bash
if [[ ${BAR} == "true" ]]; then
echo "Found BAR exported";
else
exit 1
fi
| true |
a251e8a630e0aa84781585b1eeb505673f54934d | Shell | GoogleCloudPlatform/anthos-samples | /.github/gh_runner_dependencies.sh | UTF-8 | 2,567 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2021 Google LLC
#
# 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 ... | true |
36a27df54ffe2beb227df45b49b9f815b4a61465 | Shell | chmstimoteo/CloningSystem | /drbl/sbin/select-drbl-clients | UTF-8 | 11,785 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Author: Steven Shiau <steven _at_ nchc org tw>
# License: GPL
# Description: To select the DRBL clients and show the results (IP or MAC)
# Load DRBL setting and functions
DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/opt/drbl/}"
. $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
MAX_DIALOG_HEIGHT="10"
#
ask_by_MAC... | true |
daf69e3bdfcf43bdb63e63acf4ed72a89c05ae63 | Shell | truth-zhenli/LinuxTools | /gpufans | UTF-8 | 2,160 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# This script modified the one from https://gist.github.com/squadbox/e5b5f7bcd86259d627ed
# It will enable or disable fixed gpu fan speed.
# You may have to run this as root or with sudo if the current user is not authorized to start X sessions.
#
# Two steps to execute it:
# Step 1: chmod +x gpufans
# Ste... | true |
f9b1412facf4f8484f0f8b8f2f2925b02bd34ba0 | Shell | xyc/salesforcedx-templates | /scripts/publish-workflow.sh | UTF-8 | 535 | 2.59375 | 3 | [] | permissive | #!/usr/bin/env bash
# For publishing a patch version, add the following parameter:
# "publish-type": "patch"
CircleCIToken=$1
PublishType=$2
curl -v -u ${CircleCIToken}: -X POST --header "Content-Type: application/json" -d '{
"branch": "main",
"parameters": {
"publish": true,
"publish-type": "'"${PublishT... | true |
1e82294cc0c602c13d9f7fb3021816ca18739910 | Shell | Loosefish/dostuff | /tests/default.sh | UTF-8 | 238 | 3.390625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# call default function
ds=$(realpath "$1")
dir=$(mktemp -d)
cd "${dir}"
cat > Dofile << EOF
#!/bin/sh
do_ () {
echo -n "6446"
}
EOF
out=$(${ds})
ret=$?
if [ "$out" != "6446" ]; then
ret=1
fi
rm -rf "${dir}"
exit ${ret}
| true |
c20108b5dd6a3255a49250e228fdce054de776c4 | Shell | Jalez/WebStore0.1 | /storeWebpage/vagrant/provision.sh | UTF-8 | 1,941 | 3.171875 | 3 | [] | no_license | #!/usr/bin/env bash
# Packages
NODE="nodejs"
BUILD_ESSENTIAL="build-essential"
MONGO="mongodb-org"
GIT="git"
# Prerequisites
GIT_INSTALLED=$(dpkg-query -W --showformat='${Status}\n' $GIT | grep "install ok installed")
echo "Checking for $GIT: $GIT_INSTALLED"
if [ "" == "$GIT_INSTALLED" ]; then
apt-get updat... | true |
11979407b1f43db4e750374b6db1ea062780360d | Shell | renan91300/Teste | /criarServidor.sh | UTF-8 | 1,332 | 3.65625 | 4 | [] | no_license | #!/bin/bash
x='s'
menu(){
while true $x != "s"
do
clear
echo "//--- Gerenciador FTP ---//";
echo "1)Instalar servidor FTP"
echo "2)Habilitar acesso anônimo"
echo "3)Desabilitar acesso anônimo"
echo "4)Habilitar envio/escrita de arquivos"
echo "5)Desabilitar envio/escrita de arquivos"
echo "6)Desintalar o servidor FTP... | true |
f04c58f4091e80fb21cde67bb0c2770bf11dcc4e | Shell | rafael-larrazolo/dockerized-hadoop | /docker/hadoop-master/run.sh | UTF-8 | 569 | 3.1875 | 3 | [] | no_license | #!/bin/bash
namedir=/hadoop/dfs/name
if [ ! -d $namedir ]; then
echo "Namenode name directory not found: $namedir"
exit 2
fi
if [ -z "$CLUSTER_NAME" ]; then
echo "Cluster name not specified"
exit 2
fi
[ "$(ls -A $namedir)" ] && echo "Not Empty" || echo 'Y' | $HADOOP_PREFIX/bin/hdfs --config $HADOOP_CONF_DIR ... | true |
a2bb7bfd150f3d3931b5819e54dff73bd699ef5c | Shell | amhiggin/LuceneInTheSkyWithDiamonds | /run_custom_search_engine.sh | UTF-8 | 1,101 | 3.1875 | 3 | [] | no_license | #/bin/bash
#######################################################
# When running this script, specify the RELATIVE path #
# of the qrels file. #
# For example, if the qrels file is located in #
# ./qrels/trec-qrels #
# then specify #
# qrels/trec-qrels #
# as the arg... | true |
49b3ea1588fc2edf7bae92c54710b3784def03ec | Shell | leskovsky1/FRI | /Bc/5.semester/OS/copy of OSko_skuska/OS/cv03/s3 | UTF-8 | 68 | 2.71875 | 3 | [] | no_license | #!/bin/bash
for arg in $(echo $PATH | tr ':' ' ')
do echo $arg
done | true |
7529ac94a8717ffa9c211527ebc119fa7ee7d030 | Shell | npr0n/bookmark-dl | /copyables/entrypoint.sh | UTF-8 | 2,355 | 3.4375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
PUID=${PUID:-911}
PGID=${PGID:-911}
# set uid and gid
groupmod -o -g "$PGID" chrome
usermod -o -u "$PUID" chrome
# redo permissions
chown -R chrome:chrome /output
chown -R chrome:chrome /home/chrome
chown chrome /var/spool/cron/crontabs/chrome
# start cron
service cron start
# if VNC is enabled,... | true |
3be44a9ef048914ab2b46cac7cb9b72ce1046364 | Shell | wmthu/Public_HBP | /Code/Analysis/Louisiana/Subsample/subsampling.sh | UTF-8 | 4,101 | 2.53125 | 3 | [] | no_license | #!/bin/sh
#-------------------------------------------------------------------------------
# Name: subsampling.sh
# Purpose: This file is a script for flagging sample restrictions and generating
# time series of well-level production data
#
# Author: Evan, Ryan, Eric
#
# ------------------------------... | true |
d0ca6cca40fddd5880793c014080a17f78bc9955 | Shell | OpenVnmrJ/OpenVnmrJ | /scripts/loglib.sh | UTF-8 | 4,525 | 3.96875 | 4 | [
"Apache-2.0",
"GPL-3.0-only"
] | permissive | #
# Copyright (C) 2018 Michael Tesch
#
# This file is a part of the OpenVnmrJ project. You may distribute it
# under the terms of either the GNU General Public License or the
# Apache 2.0 License, as specified in the LICENSE file.
#
# For more information, see the OpenVnmrJ LICENSE file.
#
# this is a shell-function... | true |
1306a593eebcfe5a1d609748aaec1bd7ea18102c | Shell | usmanghani/dotfiles | /.bash_profile | UTF-8 | 2,867 | 2.6875 | 3 | [] | no_license | export PATH=/usr/local/bin:/Applications/Cloud9.app/Contents/installs/c9local/bin:$PATH
alias proj='cd /Volumes/Data/Projects'
eval "$(hub alias -s)"
# Set git autocompletion and PS1 integration
if [ -f /usr/local/git/contrib/completion/git-completion.bash ]; then
. /usr/local/git/contrib/completion/git-completion.b... | true |
7ec16eab081646ca4998920122d09535c2547449 | Shell | shells-sh/TeaScript.sh | /lib/keywords/types/def.sh | UTF-8 | 614 | 3.3125 | 3 | [
"MIT"
] | permissive | def() {
local __T_typeName
local __T_methodName
# local __T_comment
if [[ "$1" = *"."* ]]
then
__T_typeName="${1%%.*}"
__T_methodName="${1#*.}"
shift
elif [ -n "$T_DO" ]
then
__T_typeName="$T_DO"
__T_methodName="$1"
shift
fi
local __T_safeTypeName
reflection safeName "$__T_... | true |
4cda249c855b992f79a4df99e64452d9768d9d65 | Shell | fivepiece/43_coinswap | /alice/tx4/tx4.sh | UTF-8 | 987 | 2.859375 | 3 | [] | no_license | #!/bin/bash
# TX4 :
# [ A1 && C0 ] -> [ C1 ]
TX4_inpoint=( "${TX0_txid}" "0" )
# tx_mkin_serialize ${TX4_inpoint[@]} "$((2**32-1))" "0x${spk_2_A1C0_2_hex}"
TX4_in="${TX2_in}"
TX4_out="$( tx_mkout_serialize "10.007" "$(spk_pay2pkhash $(key_pub2addr ${C1_pub}))" )"
TX4_uns="$( tx_build 1 "" "${TX4_in}" "${TX4_out}" 0... | true |
4c9f53e0dd116228e78132f74f554c68b75aec88 | Shell | Mikle-Bond/std.sh | /lib/macro.sh | UTF-8 | 1,485 | 3.671875 | 4 | [] | no_license | # @macro [ expr ... ] == eval "$(expr)"
use args
# The var-substitute solution (without additional variable).
# This approach is fail-prone if macro has pattern ' \#' in it.
# Pro: simple; Con: macro-command doesn't work
#alias @macro=$'eval "${BASH_COMMAND/*\\\#/eval \\\"\$( } )\\\" " \#'
#alias @macro-print=$'... | true |
0bd3026a64357306552f4f047f6525426ffd78ad | Shell | susy-contracts/susyufo-test-helpers | /test-integration/susybraid-core-2.1.x/susybraid-core-2.1.x/test.sh | UTF-8 | 1,184 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Delete the installed dependency
rm -rf node_modules/susyufo-test-helpers
# Replace it with the local package
mkdir -p node_modules/susyufo-test-helpers/src
cp -r ../../susyufo-test-helpers.js node_modules/susyufo-test-helpers/
cp -r ../../package.json node_modules/susyufo-test-helpers/
cp -r ../../src/* ... | true |
fba571e73372dc65efcba2b30bfb8f785fb9b3aa | Shell | gergme/cloudtunes | /docker-ices/etc/ices/update_songs.sh | UTF-8 | 267 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
set -o pipefail
SOURCE="/data"
# For the default station, you must have AT LEAST ONE to start the containers
printf "Generating STATION_0 playlist...\n"
find ${SOURCE}/station_0/ -type f -name '*.ogg' > /etc/ices2/playlist/default0.txt
| true |
775818994c1c77a2e7084fcf09cc3aaaae9a40c1 | Shell | kaihwang/TTD | /Preprocessing/run_preproc_and_localizer_analysis.sh | UTF-8 | 1,835 | 3.5 | 4 | [] | no_license | #!/bin/bash
# script to run preprocessing (fmriprep) and localizer modle (FIR) amd MTD regression
export DISPLAY=""
WD='/home/despoB/TRSEPPI/TTD'
SCRIPTS='/home/despoB/kaihwang/bin/TTD/Preprocessing'
Model='/home/despoB/kaihwang/bin/TTD/Models'
SUB_ID=$(echo ${SGE_TASK} | grep -Eo "^[[:digit:]]{1,}")
session=$(echo $... | true |
15784e98bc44111cca60a1eb6dd0463f80257f5b | Shell | jsegeren/ParallelMandelbox | /timer.sh | UTF-8 | 176 | 2.84375 | 3 | [] | no_license | #! /bin/bash
make all-parallel
list=( 1 2 4 8 12 16 20 24 28 32 )
for i in "${list[@]}"
do
echo "running on $i processes"
time make run-all-parallel NP=$i > /dev/null
done
| true |
635c888e5fba6b0c5801f8c4567de1d447077683 | Shell | permamodel/ILAMB | /CODES/ILAMB_Main.sh | UTF-8 | 1,440 | 3.65625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#
# An ILAMB execution script, useful for debugging.
#
# From this directory, run with:
# $ bash ILAMB_Main.sh /path/to/ILAMB_PARA_SETUP 1>stdout 2>stderr &
if [ -z "$1" ]; then
echo "Error: Must supply path to ILAMB parameter file"
exit 1
fi
export ILAMB_CODESDIR=`pwd`
cd ..
export ILAM... | true |
0099489af95e3a00f30dc0acc0b9334663e5ddd3 | Shell | dondropo/monty | /monty_bytecodes/color | UTF-8 | 565 | 4.15625 | 4 | [] | no_license | #!/bin/bash
if [ $1 == "--help" ] ; then
echo "Executes a command and colorizes all errors occured"
echo "Example: `basename ${0}` wget ..."
echo "(c) o_O Tync, ICQ# 1227-700, Enjoy!"
exit 0
fi
# Temp file to catch all errors
TMP_ERRS=$(mktemp)
# Execute command
"$@" 2> >(while read line; do echo... | true |
3c0bc27aa04cbff4f995d9f3e600d5b526e346c2 | Shell | unixfox/piwall-school | /piwall | UTF-8 | 447 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# Variables
NOMFICHIER="video.avi"
MASTER_COMMANDE="avconv -re -i /home/pi/Videos/$NOMFICHIER -vcodec copy -f avi -an udp://239.0.1.23:1234"
CLIENT_COMMANDE='sudo systemctl start piwallclient'
# Corps du script
for n in 1 2 3 4 5 6
do
while ! nc -w 5 -z 192.168.0."$n" 22 &> /dev/null; do echo; done
... | true |
92ae62b852961b8cace6eeea079ba16358f78923 | Shell | brentwpeterson/lighthouse | /lighthouse-base.sh | UTF-8 | 294 | 3.140625 | 3 | [] | no_license | INPUT=test.csv
OLDIFS=$IFS
MYPATH=/tmp/lighthouse/
IFS=','
[ ! -f $INPUT ] && { echo "$INPUT file not found"; exit 99; }
while read filename url
do
#echo $MYPATH$filename
lighthouse $url --output-path=$MYPATH$filename.html --output html --chrome-flags='--headless'
done < $INPUT
IFS=$OLDIFS
| true |
5eeb99a3a3cdb8bdc48c0ece4c2e9f71ca298a87 | Shell | kpdyer/dpi-test-suite | /classifiers/bro-2.1/aux/broctl/bin/helpers/cat-file | UTF-8 | 112 | 2.765625 | 3 | [
"BSD-2-Clause"
] | permissive | #! /usr/bin/env bash
#
# cat-file <file>
if [ -f $1 ]; then
echo 0
cat $1
else
echo 1
fi
echo ~~~
| true |
9e3a8f683b097aa460c908bef14c43bfacbe59be | Shell | mihneadb/dfs-bench | /reserve.sh | UTF-8 | 636 | 3.609375 | 4 | [] | no_license | #!/bin/bash
# Reserve script for DAS-4
# $1 - nr of nodes
user=`whoami`
# TODO: check that reusing is proper - user might have a smaller number of
# nodes reserved already
out=`preserve -llist | grep $user | grep node`
if [ $? -ne 0 ]; then
preserve -1 -# $1 -t 0:15:00
fi
out=`preserve -llist | grep $user | gre... | true |
64eb0cde47ca3817fb350e51a71ce7bab8dacda2 | Shell | jstarcher/jstarcher-public | /goodies/rename.sh | UTF-8 | 141 | 2.875 | 3 | [] | no_license | for i in `find . -name '*.*' -type f \( -iname "*.class" -or -iname "*.php" \)`
do
j=`echo $i | sed 's/old/new/g'`
mv "$i" "$j"
done
| true |
ae3b3ed3e5f43a75b986ae64023e1a422fa6bb48 | Shell | eBay/NuRaft | /prepare.sh | UTF-8 | 223 | 3.03125 | 3 | [
"Apache-2.0",
"Zlib",
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -ex
. manifest.sh
PROJECT_DIR=`pwd`
cd ${PROJECT_DIR}
if [ ! -d asio/asio ]; then
git clone https://github.com/chriskohlhoff/asio.git ./asio
cd asio
git checkout ${ASIO_RELEASE}
cd ..
fi
| true |
a46935a9b1c4d9c995049d5da810aabc500da307 | Shell | SliTaz-official/wok-next | /tramys-client/stuff/tramys2 | UTF-8 | 4,327 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# tramys - TRAnslate MY Slitaz. Client solution
# Tool for managing translation files for SliTaz GNU/Linux
# Aleksej Bobylev <al.bobylev@gmail.com>, 2014
. /etc/slitaz/slitaz.conf
. /lib/libtaz.sh
# Ask for root access in order to install the files in the system.
if [ $(id -u) != 0 ]; then
exec tazbox su $... | true |
058d9373e3c8df0e03131ad88c40ff16becf5e8c | Shell | eldog/man-up | /notld/setup.sh | UTF-8 | 2,469 | 3.359375 | 3 | [] | no_license | #!/bin/bash
set -o errexit
set -o nounset
readonly REPO="$(readlink -f -- "$(dirname -- "${0}")/..")"
readonly LIB="${REPO}/rock-bot/lib"
readonly USERNAME="`id -un`"
MIRROR='switch'
while (( "$#" )); do
shift
case "${1}" in
-m) shift; MIRROR="${1}" ;;
esac
done
readonly MIRROR
readonly ARTOOL... | true |
1dd0445c24b7314e1ff5dd81230ee5bd968800fc | Shell | acritox/kanotix | /config/chroot_local-includes/lib/live/config/0030-macbook | UTF-8 | 656 | 2.875 | 3 | [] | no_license | #!/bin/bash
if grep -q "Apple.*Keyboard" /proc/bus/input/devices; then
# set keyboard model to macbook79
echo "keyboard-configuration keyboard-configuration/modelcode select macbook79" | debconf-set-selections
sed -i -e "s|^XKBMODEL=.*$|XKBMODEL=\"macbook79\"|" /etc/default/keyboard
# reverse scro... | true |
b08afeadbac4e14435d0012385bfe03911d97128 | Shell | ValdemarGr/.dotfiles | /scripts/windowclient.sh | UTF-8 | 419 | 2.90625 | 3 | [] | no_license | #!/bin/bash
port=$1
cmd=$2
arg=$3
case "$cmd" in
("goto") printf "gotows,$arg" | nc 127.0.0.1 $port ;;
("rename") printf "renamews,$arg" | nc 127.0.0.1 $port ;;
("move") printf "movews,$arg" | nc 127.0.0.1 $port ;;
("icon") printf "iconws,$arg" | nc 127.0.0.1 $port ;;
("zenpad") print... | true |
51600a6a1dbfecf27b3aed4e0b9a539309d53df3 | Shell | fpalm/ownscripts | /countusr.sh | UTF-8 | 155 | 3.140625 | 3 | [] | no_license | #!/bin/bash
USRNUM=0
for dir in $( ls /home/); do
#echo $( ls /home/$dir | wc -w )
USRNUM=$(($USRNUM + $( ls /home/$dir | wc -w )))
done
echo $USRNUM
| true |
d8eb7f09102240869e9c64148161524f0e6862b6 | Shell | thejaspm/docker-spark | /scripts/spark-shell.sh | UTF-8 | 413 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
export SPARK_LOCAL_IP=`ifconfig eth0 | grep "inet " | awk -F'[: ]+' '{ print $4 }'`
/remove_alias.sh # problems with hostname alias, see https://issues.apache.org/jira/browse/SPARK-6680
cd /usr/local/spark
./bin/spark-shell \
--master spark://${SPARK_MASTER_PORT_7077_TCP_ADDR}:${SPARK_MASTER_ENV_SP... | true |
ede521078c35ab49a58f3a9ba4efea4baf7b67ea | Shell | jboss-openshift/cct_module | /jboss/container/java/singleton-jdk/configure.sh | UTF-8 | 543 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -u
set -e
if [ -z "$JAVA_VERSION" ]; then
echo "JAVA_VERSION needs to be defined to use this module" >&2
exit 1
fi
if [ -z "$JAVA_VENDOR" ]; then
echo "JAVA_VENDOR needs to be defined to use this module" >&2
exit 1
fi
# Clean up any java-* packages that have been installed that do not match
# ou... | true |
8d7b1c07a9da7d2f4583c8c990625a8c61ead9f7 | Shell | RohanChandavarkar/L3CubeCodes | /TextFS /TEXTFS/copy | UTF-8 | 280 | 3.546875 | 4 | [] | no_license | #!/bin/bash
if ! [ -e $1 ]; then
echo "Please enter correct name for source file as it doesn't exist"
else
if [ -e $2 ]; then
echo "Please enter correct name for destination file as it already exists"
else
cp $1 $2
stat $1 >> logfile.txt
stat $2 >> logfile.txt
fi
fi
| true |
ebc2a5b71830afd728a2fc4a8950134a62e72ac1 | Shell | Brettm12345/nixos-config | /modules/applications/shells/zsh/hoc.zsh | UTF-8 | 1,149 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env zsh
# Provide higer-order functions
# usage:
#
# $ foo(){print "x: $1"}
# $ map foo a b c d
# x: a
# x: b
# x: c
# x: d
function map {
local func_name=$1
shift
for elem in $@; print -- $(eval $func_name $elem)
}
# $ bar() { print $(($1 + $2)) }
# $ fold bar 0 1 2 3 4 5
# 15
# -- but also
#... | true |
6e798c18de59b584b5d55098b41eae3ea15b4c5d | Shell | RobertsGhostBusterFan/CustomBuilds | /script/copy_chromium-overlay-pkg.sh | EUC-JP | 2,314 | 3.21875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# BOARD̵᤹
if [ -z "${BOARD}" ]; then
echo Please set BOARD. Abort.
exit 1
fi
# ѥåХ쥤ǥ쥯ȥ˥ԡ
cd ~/trunk/src/overlays/overlay-${BOARD}
if [ ! -d sys-libs ]; then
mkdir sys-libs
if [ 0 -ne $? ]; then
echo Failed to mkdir sys-libs. Abort.
exit 1
fi
fi
cp -r ~/trunk/src/third_par... | true |
8d305289bc95007acd29252ce5f4ebaa02af9cb6 | Shell | getkub/SplunkScriplets | /thirdparty/preChecks/syslog_logger.sh | UTF-8 | 214 | 2.609375 | 3 | [] | no_license | # syslog simulation using logger or netcat (nc)
remoteIP="10.12.13.14"
remotePort="514"
sampleMessage="TEST_MSG"
# logger -n $remoteIP -P $remotePort $sampleMessage
echo $sampleMessage | nc $remoteIP $remotePort
| true |
f36a0ef68df3dc3c7b6789289dd83721c88a969f | Shell | orange-cloudfoundry/mdproxy4cs | /assets/pre-start.sh | UTF-8 | 163 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# add ip 169.254.169.254 to loopback interface
ip addr show dev lo | grep -q 'inet 169.254.169.254/32' || {
ip addr add 169.254.169.254/32 dev lo
}
| true |
dbecd7bad331975a567c237b2bd840380ee0029a | Shell | relaxdiego/cicd | /scripts/get_vault_password_path | UTF-8 | 345 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash -e
# NOTE: Any echos made here will not be displayed on the terminal since
# it will be captured by the parent process. If you want to check for
# the presence of $1, do the check in the parent process.
cluster_id="$1"
vault_passwords_dir=$HOME/.relaxdiego/cicd/vault-passwords
echo -n "${vault_passw... | true |
e418ec64126e0fef154b07f4405770f2ff453a02 | Shell | ptramsey/configs | /_bash/scripts/kube.sh | UTF-8 | 434 | 3.1875 | 3 | [] | no_license | #!/bin/bash
_get_pod() {
kubectl get pods -l app="$1" -o jsonpath='{.items[?(@.status.phase=="Running")].metadata.name}'
}
_local_shell() {
pod=$(_get_pod "$1")
container="$1${2:+-$2}"
kubectl exec -it "$pod" -c "$container" /bin/bash -i || kubectl exec -it "$pod" -c "$container" /bin/sh -i
}
receipt... | true |
d1a77e979f2729d7546de3a16c80def9b6208a83 | Shell | ionut-arm/parsec | /packaging_assets/package.sh | UTF-8 | 3,443 | 4.40625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2022 Contributors to the Parsec project.
# SPDX-License-Identifier: Apache-2.0
# Create a quickstart package
# Avoid silent failures
set -euf -o pipefail
ARCH="x86"
OS="linux"
PACKAGE_PATH=$(pwd)
WORK_DIR="/tmp/workdir-parsec/"
JOBS_NUMBER=1
SCRIPT_PATH=$(realpath $0)
ASSETS_DIR=$(dirname $S... | true |
9e837c10c7a96bbfb33d474bd97a2cb4abe76492 | Shell | djacobs24/dotfiles | /.brew | UTF-8 | 1,952 | 2.640625 | 3 | [] | no_license | #!/bin/bash
# Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Make sure we’re using the latest Homebrew
brew update
# Upgrade any already-installed formulae
brew upgrade
# Allow re-install of grep
brew tap homebrew/dupes
# Android Studio
brew cask install ... | true |
940a346d719698aba445e2d6327d7c8c4e532b33 | Shell | gacop/Caffe-PHAST | /test1.sh | UTF-8 | 1,144 | 2.890625 | 3 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | #!/bin/bash
if (( $# == 0 )); then
echo "please, provide a mode parameter: time, test, or train"
exit 1
fi
JOB=$1
if [ "$JOB" != "time" && "$JOB" != "test" && "$JOB" != "train" ]; then
echo "please, provide a mode parameter: time, test, or train"
exit 1
fi
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/build/lib/
if [ "... | true |
d44b506c16e4ce608e6fbb09573340937af8746e | Shell | GoogleCloudPlatform/php-docker | /package-builder/extensions/amqp/build.sh | UTF-8 | 397 | 2.90625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
set -ex
source ${DEB_BUILDER_DIR}/functions.sh
export PHP_LIBRABBITMQ_DIR="no"
echo "Building amqp for gcp-php${SHORT_VERSION}"
# Now build the extension
PNAME="gcp-php${SHORT_VERSION}-amqp"
# Install the packages for librabbitmq
install_last_package "librabbitmq"
install_last_package "librabbitmq-dev"
... | true |
3161c1e99291ada78cc620b1602249c6da77f1a0 | Shell | PatrickAuld/dotfiles | /aws/env.zsh | UTF-8 | 388 | 3.03125 | 3 | [
"MIT"
] | permissive | if [[ -z ~/.aws/credentials ]] then
echo "AWS Credentials File Not Found"
return 0
fi
DEFAULT_CREDS=`grep default ~/.aws/credentials -A 2`
key_id=`echo $DEFAULT_CREDS | grep aws_access_key_id | awk '{print $3}'`
access_id=`echo $DEFAULT_CREDS | grep aws_secret_access_key | awk '{print $3}'`
DEFAULT_CREDS=''
expor... | true |
4f0cbd3a0c0d1c16f2d9b352cfdf67873805200b | Shell | redcrossp/virtex | /scripts/runTestSuite | UTF-8 | 842 | 3.96875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# runTestSuite makes and runs the specified test suites
# Usage: runTestSuite [SUITE]...
# without SUITE, all test targets are made and run
#
# SUITE basename of a test template (e.g. "virtex", "format")
#
# suites are made in output test directory
TESTS_OUTDIR="out/test/"
TESTS_SRCDIR="test/"
... | true |
e4e425ccb0d09c2021c086fe6a144371b540658e | Shell | lamdevhs/miniml-compiler | /generate-all.sh | UTF-8 | 1,345 | 4.03125 | 4 | [] | no_license | #!/bin/bash
demo=demo
ocaml=ocaml
ccam=ccam
tmp=__tmp_folder_generate_all__
Msg ()
{
echo "generated-all.sh: $1"
}
Crash ()
{
Msg "unexpected error: $1 -- aborting"
exit 1
}
Done ()
{
Msg "done"
exit 0
}
if [ "$1" = "clean" ] ; then
echo rm ./$demo/*.c ./$demo/*.out
echo press enter to delete those f... | true |
9e42bfe4fa6f65dd66a24350b0d713a34baa7fdf | Shell | nguyenquangvn/workspace-setup | /bash-script/up.sh | UTF-8 | 105 | 3.3125 | 3 | [] | no_license | function up() {
times=$1
while [ "$times" -gt "0" ]; do
cd ..
times=$(($times - 1))
done
}
| true |
322eb36c30864a82b928a21caa40ec734f2b6b7d | Shell | g-bpg/k-and-r-chapter-1 | /1-08/devenblake/wc | UTF-8 | 1,242 | 3.640625 | 4 | [
"Unlicense"
] | permissive | #!/bin/sh
which nawk >/dev/null 2>&1 && awk="nawk" || awk="awk"
if [ -e "./counter" ]; then
counter="./counter"
else
printf "Either change the \$counter variable within this wc implementation or cd to the folder where you've built counter.\n" >/dev/null
exit 1
fi
usage() {
printf "Usage: $argv0 [ -h ] [ FILE ... ... | true |
4c3170d1b3466d69319e5aa4f21cb7daa1c17110 | Shell | liuzf1986/emacs | /bin/rtags/gcc-rtags-wrapper.sh | UTF-8 | 958 | 3.5 | 4 | [] | no_license | #!/bin/bash
function followSymlink()
{
python -c "import os, sys; print(os.path.realpath(\"$1\"))"
}
rc=`which rc`
for i in `which -a "\`basename $0\`"`; do
resolved=`followSymlink $i`
if [ `basename $resolved` != "gcc-rtags-wrapper.sh" ]; then
[ -n "$RTAGS_SERVER_FILE" ] && RTAGS_ARGS="$RTAGS_ARG... | true |
7d04912da60b7cdc38b619b3c3d8f698503dab6f | Shell | durlabhashok/OS-LAB | /Lab1/HelloWorld.sh | UTF-8 | 170 | 3.109375 | 3 | [] | no_license | #! /bin/bash
clear
echo"Enter 1st Number"
read a
echo"Enter 2nd Number"
read b
echo"a - addition, m - minus"
read op
if [ $op -eq a]
then
echo
else
echo "Welcome"
fi
| true |
f72f91841cc5ffa1cbf112c5a8ed5155491bb350 | Shell | ajayravindra/scripts | /shell/killbill | UTF-8 | 3,579 | 4 | 4 | [] | no_license | #!/usr/bin/env sh
DEBUG=0
ECHO ()
{
if [ "x$DEBUG" = "x1" ] ; then
echo $1
fi
}
unset rflag; unset kflag; unset nflag;
while getopts k:r:n:f:h opts
do
case "$opts" in
k) ECHO "khit"; kflag=1; wtime="$OPTARG";;
r) ECHO "rhit"; rflag=1; wtime="$OPTARG";;
n) ECHO "nhit"; nflag=1; mail... | true |
d8e43e4fd2420adc5bfb30f70153762088413af7 | Shell | possientis/Prog | /asm/64bits/mul/test.sh | UTF-8 | 1,289 | 2.765625 | 3 | [] | no_license | #!/bin/sh
set -e
DIR=${HOME}/Prog/asm/64bits/mul
cd ${DIR}
echo
option=$(sh ../option.sh)
echo "testing 8 bits unsigned multiplication..."
../yasm.sh test_mul_8bits.asm
gcc $option test_mul_8bits.c test_mul_8bits.o
./a.out; ./clean.sh
echo
echo "testing 16 bits unsigned multiplication..."
../yasm.sh test_mul_16... | true |
2f10d828d30f26640f3c39b1c8be6320400a1e41 | Shell | alfredocoj/terraform-azure-exemplos | /k8s/install-master.sh | UTF-8 | 1,648 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
useradd -s /bin/bash -m k8s-admin
passwd k8s-admin
usermod -aG sudo k8s-admin
usermod -aG docker k8s-admin
echo "k8s-admin ALL=(ALL) NOPASSWD:ALL" | tee /etc/sudoers.d/k8s-admin
apt-get update
apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common vim mcedit nfs-comm... | true |
a4b6584a122105f98e235128a6ca8c7a4bc0dbd8 | Shell | apache/brooklyn-dist | /release/clone-and-configure-repos.sh | UTF-8 | 1,921 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/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");... | true |
90eaeffd5f060669f55f0452a82f19508998f38c | Shell | yohlulz/docker-tcollector | /etc/bin/tsddrain.sh | UTF-8 | 327 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
PORT=${PORT-8888}
DIRECTORY=${DIRECTORY-"/opt/data/dump"}
function stop_drain {
echo "stopping tsd drain..."
pgrep -f tsddrain | xargs kill -9
exit
}
trap stop_drain HUP INT TERM EXIT SIGHUP SIGINT SIGTERM
echo "starting tsd drain..."
exec /usr/bin/python /opt/tcollector/bin/tsddrain.py ${PORT} ${DIRE... | true |
05b142a10228d93fcdde85d5a9934c6c5f2fe142 | Shell | Augustyniak/DrString | /Scripts/build-docker.sh | UTF-8 | 269 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
command -v docker &> /dev/null || { echo >&2 "Install docker https://www.docker.com"; exit 1; }
IMAGE=drstringbuilding
docker image rm -f "$IMAGE" &> /dev/null
docker build -t "$IMAGE" -f Scripts/Dockerfile-building . && docker run --rm "$IMAGE"
| true |
305f6b2cf2b7df1c3b7c8507ffee4d3a13329288 | Shell | gabriel-mao/cfddns | /cfddns/scripts/cfddns_update.sh | UTF-8 | 2,223 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
eval `dbus export cfddns_`
if [ "$cfddns_enable" != "1" ]; then
echo "not enable"
exit
fi
urlencode() {
# urlencode <string>
out=""
while read -n1 c; do
case $c in
[a-zA-Z0-9._-]) out="$out$c" ;;
*) out="$out`printf '%%%02X' "'$c"`" ;;
esac
do... | true |
42d4d5865ed59aaab376f3ff807e15c3789bf2f4 | Shell | nvm-sh/nvm | /test/fast/Unit tests/nvm_is_version_installed | UTF-8 | 1,511 | 3.96875 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/sh
cleanup () {
rm -rf "$NVM_DIR"
unset -f die cleanup nvm_get_os check_version
unset NVM_DIR NODE_PATH
}
die () { echo "$@" ; cleanup ; exit 1; }
\. ../../../nvm.sh
set -ex
NVM_DIR=$(mktemp -d)
NODE_PATH="$NVM_DIR/versions/node"
mkdir -p "$NODE_PATH"
if [ -z "$NODE_PATH" ]; then
die 'Unable to creat... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.