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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ef73fe5548d44407ae1e1e098f02aba5e1a69c7b | Shell | ciffelia/heroku-buildpack-mod-perl | /bin/compile | UTF-8 | 484 | 3.171875 | 3 | [] | no_license | #!/bin/sh
set -eu
MOD_PERL_VERSION=2.0.9
BUILD_DIR=$1
cd $BUILD_DIR
echo "-----> Downloading mod_perl version $MOD_PERL_VERSION"
curl --location --fail --max-time 60 http://mirrors.sonic.net/apache/perl/mod_perl-$MOD_PERL_VERSION.tar.gz | tar xz
echo "-----> Building mod_perl version $MOD_PERL_VERSION"
cd mod_per... | true |
800b6e8eabf56dc6f622b2298622938a09561737 | Shell | Guardians-DSC/newbies | /respostas/savio.bezerra/questao_4/questao_4.sh | UTF-8 | 494 | 3.59375 | 4 | [] | no_license | #!/bin/bash
# Resposta do exercicio 4
# Lê a entrada
read -p "Entre com a senha: " senha
# Verifica se a senha possui pelo menos 8 caracteres
if [ ${#senha} -lt 8 ];
then
echo Senha insegura! Possui menos que 8 caracteres!
# Verifica se contem numeros
elif [[ !($senha =~ [0-9]) ]];
then
echo Senha insegura! Nao po... | true |
1dfcfebf142d3fc8a61ff08cb10127e17f13d75b | Shell | JeffersonLab/jlab-standard-chroma-build | /qdpxx/ib-9q/openmpi-double/build/configure.sh | UTF-8 | 1,007 | 2.703125 | 3 | [] | no_license | #!/bin/bash
ARCH=openmpi
QDPDIR=../../..
ROOTDIR=../../../..
pushd ${QDPDIR}/qdpxx
autoreconf -f
popd
. ${ROOTDIR}/functions.sh
PREFIX=`make_prefix ${QDPDIR}/PREFIX ${QDPDIR}/VERSION parscalar-${ARCH}-double`
clean_dir ${PREFIX}
export PATH=/dist/gcc-4.8.2/bin:$PATH
export LD_LIBRARY_PATH=/dist/gcc-4.8.2/lib64:/dis... | true |
21e686238e90d84aa56295cc05812a68b0b2e811 | Shell | e-zk/bin | /vid/vidtogif | UTF-8 | 1,487 | 4.125 | 4 | [] | no_license | #!/bin/sh
# convert a video to a .gif
#set -ex
SCALE=320
PALETTE=
usage() {
cat <<EOF
convert video clip to gif
usage: $(basename $0) <-i input_file> <-f fps> [-S scale] <-o output_file>
EOF
exit 1
}
check_opts() {
local FAIL=0 ERR="Error:"
test -z "$INPUT" && ERR="${ERR}\nNo input f... | true |
acba327e7ca162f6976ac747af6cca9055034b71 | Shell | Ruxton/shell_config | /.profile.d/maven.bash | UTF-8 | 4,010 | 3.890625 | 4 | [] | no_license | # mvn_push: Push resource to configured maven repo
function mvn_push() {
## Expects that you're serving http://$host/ as the entire maven repo from $remotepath
local host='maven.digitalignition.net' # change to a server you can SCP to
local remotepath='~/maven/' # change to a path
# No filename provided, send ... | true |
8c114bf7208165f5ac67e3f8af36aef86dcac242 | Shell | nrjpoddar/istio-build-server | /mount-volume.sh | UTF-8 | 184 | 3.109375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -eEx
sudo mkfs -t xfs /dev/xvdb
MOUNT_DIR=$HOME/work
mkdir -p $MOUNT_DIR
sudo mount /dev/xvdb $MOUNT_DIR
uid=$(id -u)
gid=$(id -g)
sudo chown $uid:$gid -R $MOUNT_DIR
| true |
0a9d52496640d3442dd53858f479c991d55f1dc2 | Shell | syuvivida/MonoHiggsSignal_13TeV | /Zp2HDM/scripts/Zprime_A0h_A0chichi_loop_gridpackProd.sh | UTF-8 | 1,350 | 3.78125 | 4 | [] | no_license | #!/bin/bash
scriptname=`basename $0`
EXPECTED_ARGS=2
if [ $# -ne $EXPECTED_ARGS ]
then
echo "Usage: $scriptname queue directoryName"
echo "Example: ./$scriptname 2nd cards/production/13TeV/monoHiggs"
exit 1
fi
# name of the run
queue=$1
CARDSDIR=$2
name=Zprime_A0h_A0chichi
Zpmassfile=inputs/input_zp... | true |
c7d181fc3b51a270bae03b25b672dd2f8702adf5 | Shell | JonasLeonhard/project-cold-way | /webRTCService/janus.sh | UTF-8 | 6,423 | 3.765625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This file build and installs a janus instance. To customize
# go to the main() function and comment out build_... functions
# inside setup, to have janus be build without
# this dependency and feature.
#? Janus build directory: '/opt/janus'
#? Janus main config: '/opt/janus/etc/janus/janus.jcfg'
#? Jan... | true |
a87ead5b893473a08fa1f2aa687b99f107cf94d4 | Shell | kristovanderflit/RSHA | /kasutaja | UTF-8 | 874 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#
# kasutaja lisamise skript
# kasutaja nimi tuleb anda skripti parameetrina
# skript peab antud nimega kasutajat lisama süsteemi
# ning looma kasutajale vastava sisuga kodukatalood
# ja pakkuma sobilik kooorik
#
# võime lisada ka kasutusjend
# käsurea kauda parameetrite arv on $# sees olev number, meie kor... | true |
1b4fdacf544c78b2ffd93d9f588deec90ce1b03e | Shell | bm9ib2r5/rpi-cam | /opt/custom/bin/check_internet.sh | UTF-8 | 241 | 3.0625 | 3 | [] | no_license | #!/bin/bash
if [ "$(ping -c 1 8.8.8.8 | grep '100% packet loss')" -a "$(ping -c 1 8.8.4.4 | grep '100% packet loss')" ]; then
echo "$(date) Internet connection is down. Rebooting..."
shutdown -r now
else
echo "$(date) Internet OK"
fi
| true |
feb5931a7b13f89c32138203c21ad69be8e78a77 | Shell | didicluber/boiteamanger | /vendor/phing/phing/bin/pear-phing | UTF-8 | 687 | 3.203125 | 3 | [
"MIT",
"LicenseRef-scancode-free-unknown",
"LGPL-3.0-only"
] | permissive | #!/bin/sh
# ------------------------------------------------------------------------
# The phing build script for Unix based systems
# $Id$
# ------------------------------------------------------------------------
# -------------------------------------------------------------------------
# Do not change anything be... | true |
a66ea92da2b2e057f6c0255ef5026802676710d9 | Shell | nick133371/voltha | /install/BuildVoltha.sh | UTF-8 | 2,905 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
uId=`id -u`
vmName="voltha_voltha${uId}"
# Voltha directory
cd ..
# Blow away the settings file, we're going to set all the settings below
rm -f settings.vagrant.yaml
# Rename voltha for multi-user support
echo "---" > settings.vagrant.yaml
echo "# The name to use for the server" >> settings.vagrant.yam... | true |
82e6073e9406fdc65ae4c14e653b549a580d1815 | Shell | otokunaga2/RMSSimulator | /conf/tiny_step_accuraccy_changer.sh | UTF-8 | 1,609 | 3.4375 | 3 | [] | no_license | #/bin/bash
declare -a country_list=("china" "russia" "africa" "ghana" "mexico" "india")
#declare -a country_list=("india" "china" "africa")
#_のあとには、国名をあとでくっつける
base_file_name="setting_"
BASE_DIR=/home/tokunaga/RMSSimulator
CONFIG_DIR=/conf
OUTPUT_DIR=/test
BEFORE_SETTING_HEALTY_RATIO=0.5
BEFORE_SETTING_ILL_RATIO=0.85
... | true |
9672a181ae7cc2acfdce8c6c6622afee891f6ed0 | Shell | grahamc/network | /intake.sh | UTF-8 | 450 | 2.984375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
rm -f ./intake/*.json
mkdir -p ./intake
echo '{' > ./intake/default.nix.next
nixops info --plain | awk '{ print $1; }' \
| while read -r node; do
echo "~> $node"
nixops scp --from "$node" /run/about.json "./intake/$node.json"
echo "\"${node}\" = builtins.fromJSON (builtins.readFile ./$node.... | true |
ff2b1d0f0551811442632548bed4b4e4e5c23161 | Shell | arenadata/ambari | /ambari-server/src/main/resources/common-services/JNBG/0.2.0/package/files/pyspark_configure.sh | UTF-8 | 3,119 | 3.5 | 4 | [
"Apache-2.0",
"MIT",
"GPL-2.0-only",
"OFL-1.1",
"GPL-2.0-or-later",
"BSD-2-Clause",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"Python-2.0",
"MS-PL",
"AFL-2.1"
] | permissive | #!/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
# "... | true |
a90955df50acaca4266b7ec04ddede668603db3a | Shell | strozw/dotfiles | /home/.zshrc | UTF-8 | 9,389 | 2.609375 | 3 | [] | no_license | # vim: set ft=zsh:
######################################################
# User PATH
#######################################################
# rust
if [ -e "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi
export PATH="$HOME/bin:$PATH"
export PATH="$HOME/go/bin:$PATH"
# Added by serverless binary installer
export... | true |
90b13a9649ad58ea4cb5bb65d15ea699527a295a | Shell | Synerty/synerty-peek | /scripts/linux/util/restart_peek.sh | UTF-8 | 402 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
for s in peek_agent peek_worker peek_client peek_server
do
echo "Stopping $s"
sudo systemctl stop ${s}.service
done
echo "Waiting for services to stop"
sleep 5s
echo "Killing anything left running"
pkill -9 -u $USER -f python || true
for s in peek_server peek_agent peek_worker peek_clien... | true |
ff7e9754f37b5c91da79e9c6e745f3ba2b0433a4 | Shell | rofl0r/irix-3.x-src | /etc/rc.getdate | UTF-8 | 314 | 3 | 3 | [] | no_license | #! /bin/sh
# This is a sample rc.getdate for those who wish to get the date over
# an XNS network from an IRIS designated as a date server.
# Replace "host" with its name.
echo "setenv TZ `cat /etc/TZ` ; date +%m%d%H%M.%S%y" | \
if xx host csh -tf
then
:
else
echo x # something to make date fail
fi
| true |
dbfd11be5364dcb6dfb26f425536447ed8c2a9ca | Shell | Praveen-Innocent/kitkat | /deploy-package.sh | UTF-8 | 4,001 | 3.828125 | 4 | [] | no_license | #!/bin/bash
set +e
##############################################################################
## Initialize
##############################################################################
rm -f /tmp/lego-failed-servers
##############################################################################
## Includes
####... | true |
9c3991d1cbcda02eee7974cae80beaa3958fe868 | Shell | will2therich/GamePanelX-V3-Remote | /bin/AutoInstall | UTF-8 | 3,495 | 3.984375 | 4 | [] | no_license | #!/bin/bash
#
# GamePanelX
# Remote scripts v3.0.15
#
# Auto installer - use given mirrors+cmd to install a gameserver, then being template process.
# This script should be sent to /dev/null 2>&1 & since it will take some time to complete
#
# Example usage:
# ./AutoInstall -m "http://example.com/gamefiles.gz,http://oth... | true |
d719da10a3637388dae5dc65a74e23d27917a7cb | Shell | yanghonggang/teuthology | /docs/docker-compose/teuthology/teuthology.sh | UTF-8 | 1,488 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/bash
set -e
# We don't want -x yet, in case the private key is sensitive
if [ -n "$SSH_PRIVKEY_FILE" ]; then
echo "$SSH_PRIVKEY" > $HOME/.ssh/$SSH_PRIVKEY_FILE
fi
source /teuthology/virtualenv/bin/activate
set -x
if [ -n "$TESTNODES" ]; then
for node in $(echo $TESTNODES | tr , ' '); do
teuth... | true |
46e8efba186166ade388926e2198c89ec6d34667 | Shell | davidrios/configs | /dot-local/bin/stickykeys | UTF-8 | 373 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
CTRL_FILE="$XDG_RUNTIME_DIR/sticky.on"
if test "$1" == "toggle"; then
if test -f "$CTRL_FILE"; then
rm -f "$CTRL_FILE"
swaymsg -- input '*' xkb_options 'ctrl:swapcaps'
else
touch "$CTRL_FILE"
swaymsg -- input '*' xkb_options 'sticky:latch'
fi
else
test -f "$C... | true |
62d7db5acd2ce852f598140764552c85af56176f | Shell | zakstar/Dotfiles | /.local/bin/info/nextappo | UTF-8 | 327 | 3.28125 | 3 | [] | no_license | #!/bin/bash
output="$(/usr/local/bin/calcurse -C $HOME/.config/calcurse -D $HOME/.local/share/calcurse -n | /usr/local/opt/gnu-sed/bin/gsed -n 's/^\s\s\s//; s/\[/\[+/; 2p')"
[ "${#output}" -lt 1 ] && exit
text=" | $output"
if [ "${#text}" -gt 40 ]
then
echo "$(echo "$text" | cut -c -37)"...
else
echo "$text... | true |
2525b06703a214d1e4ea92a7d6436e8d02f04e64 | Shell | drtamermansour/MPS | /scripts/gtfToBed.sh | UTF-8 | 429 | 3.796875 | 4 | [] | no_license | #!/bin/sh
if [ $# -lt 2 ]
then
printf "\nUsage gtfToBed.sh [GTF file] [script path]\n"
exit 0
fi
targetAss="$1"
script_path="$2"
module load ucscUtils/262 # UCSC_kent_commands
if [ -f $targetAss ]; then
filename=${targetAss%.gtf}
$script_path/UCSC_kent_commands/gtfToGenePred $targetAss ${filename}.gpred
cat... | true |
626511f1259d390e54b0653cdf140d029a952856 | Shell | alisw/AliPhysics | /PWGPP/QA/detectorQAscripts/HMP.sh | UTF-8 | 545 | 2.65625 | 3 | [] | permissive | #available variables:
# $dataType e.g. data or sim
# $year e.g. 2011
# $period e.g. LHC13g
# $runNumber e.g. 169123
# $pass e.g. cpass1, pass1, passMC
runLevelQA()
{
qaFile=$1
cp $ALICE_PHYSICS/PWGPP/HMPID/macros/makeHMPQA.C .
aliroot -b -q -l "Analyze_QA_run(\"$dataType\", ${ye... | true |
8007b88bbb945bddaf9e35098792ec56d5c6c551 | Shell | rscorrea/MontaServerWeb | /gera_backup_arquivos.sh | UTF-8 | 222 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
DATA=`date +%F`
INICIO=`date '+%d-%m-%Y %T'`
NOME=$(echo $1 | awk -F/ '{print $NF}')
echo "---Backup ARQUIVOS "$NOME". "$INICIO >> /var/log/backup/arquivos.log
tar -jc -T $1 -f ~/backup/bkp-$NOME-$DATA.tar.bz2 | true |
ae7a93d4635b4ba632bc647582191b3cc49d195b | Shell | shuttleopsGithub/golang-habitat-hello-world | /habitat/plan.sh | UTF-8 | 357 | 2.984375 | 3 | [] | no_license | #!/bin/bash
pkg_name=golang-habitat-hello-world
pkg_version=0.1.0
pkg_build_deps=(
core/go
core/git
)
pkg_deps=(
core/curl
)
pkg_bin_dirs=(
bin
)
do_build() {
export GOBIN="${GOPATH}/bin"
go get
go build -o "${pkg_name}"
}
do_install() {
mkdir -p "${pkg_prefix}/bin"
mv "${SRC_PATH... | true |
b83df277d2c46d2a8446075132cfe37038b6d2fa | Shell | habzy/profile | /bin/deploy_exe | UTF-8 | 1,730 | 4.03125 | 4 | [] | no_license | #!/bin/sh
#
# Helper script for delploy binary on M$ Windows.
#
# Copyright 2012 @ Kyan <kyan.ql.he@gmail.com>
#
# @author Kyan <kyan.ql.he@gmail.com>
# @date Fri, Jan 06, 2012 11:31:07 AM
#
# TODO: args: [dest_dir] support.
CP=""
DLLS=""
FULLPATH_DLLS=""
EXE=""
TEMP_DIR=""
PKG_NAME=""
USE_OBJDUMP=""
USAGE="Usage: de... | true |
223415b5e6fce7d8a92f58d1481e260ed833a0b1 | Shell | columbia/cr-tests | /ipc/runtests.sh | UTF-8 | 327 | 2.53125 | 3 | [] | no_license | #!/bin/bash
# Copyright 2009 IBM Corp.
# Author: Serge Hallyn
bash test-sem.sh
if [ $? -ne 0 ]; then
echo semaphores c/r test failed
exit 1
fi
bash test-shm.sh
if [ $? -ne 0 ]; then
echo shm c/r test failed
exit 1
fi
bash test-mq.sh
if [ $? -ne 0 ]; then
echo mq c/r test failed
exit 1
fi
echo 'all tests pa... | true |
3c7648e7da0d94adf3e4fcf99a9b74c30dca00dc | Shell | harbingerry/mc-dotcloud | /builder | UTF-8 | 517 | 3.171875 | 3 | [] | no_license | #!/bin/bash
MC_HOME="$HOME/minecraft"
JRE_URL="http://download.oracle.com/otn-pub/java/jdk/7u11-b21/jre-7u11-linux-x64.tar.gz"
JAVA_HOME="$HOME/java"
if [ -d $MC_HOME ]; then
echo "Minecraft already setup"
else
mv minecraft ~
mv crontab ~
mv run ~
mv startserver ~
mv world_backup_git ~
mkdir -p $JAVA... | true |
5b7dafcbcff7e735f766baa9fcd9aa112b57eade | Shell | scfcode/My-Scripts | /solaris.bin/vnc | UTF-8 | 7,944 | 3.828125 | 4 | [] | no_license | #!/bin/sh
### usage() shows correct usage and exits with failure status.
usage () {
cat 1>&2 <<-@@
/net/hestia.sfbay/u0/tools/bin/vnc
usage: vnc start [ -geometry Geometry ] [ -depth Depth ] [ ConfName ]
to start a conference
usage: vnc end [ ConfName ] to end a... | true |
6543cedb162cb256f990e2d3b888d86c99d40fe1 | Shell | javenschuetz/nathans-mean-bootstrapper | /scripts/start.sh | UTF-8 | 310 | 2.765625 | 3 | [] | no_license | #!/bin/bash
secret=$(head -c20 /dev/urandom | base64)
# if server restarts, all sessions get invalidated, but no risk of losing a secret to a hack though
export IS_DEV=1
export SESSION_SECRET=${secret}
node_modules/nodemon/bin/nodemon.js -L server.js # -L is for legacy mode, useful with vagrant apparently
| true |
8ebd1873a422c395326b98a890c8b6a4da22ea73 | Shell | w4kfu/Nanomites | /configure | UTF-8 | 359 | 2.734375 | 3 | [] | no_license | #! /bin/sh
FILES=$(ls -1 ./src/*.c | cut -d "/" -f 3 | tr "\n" " ")
NAME=$(basename `pwd`)
echo 'CC = gcc' > makefile.rules
echo 'CFLAGS = -Wall -W -Werror -pedantic -g -ggdb' >> makefile.rules
echo 'LFLAGS = -lz' >> makefile.rules
echo "NAME_PROJ = $NAME" >> makefile.rules
echo "FILES = $FILES" >> makefile.rules
ec... | true |
7d070a07537022de7722046c8cf71472dc75577d | Shell | j-yokoyama/jenkins-setuptool | /ansible-jenkins/maintenance/templates/backup_jenkins_job.sh.j2 | UTF-8 | 1,296 | 3.78125 | 4 | [] | no_license | #!/bin/bash
SCRIPT_DIR=$(cd $(dirname $0); pwd)
EXEC_NAME=$(basename $0 .sh)
JENKINS_DIR={{ jenkins_home }}
BACKUP_DIR={{ backup_dir }}
BACKUP_FILE_NAME=backup_jenkins_job_$(date '+%Y%m%d_%H%M%S')
LOG_FILE=${EXEC_NAME}.log
BACKUP_LIMIT_DAY={{ backup_limit_day }} # この値の日数を超えたバックアップファイルを削除
BACKUP_LIST_DIR=( \
"./user... | true |
25cf102a1c61794a694c7a48a00df4f1108d8905 | Shell | miriampl/Ultimate-Majaro-Linux-18.0.2-Illyria | /1-install-core-software-v2.sh | UTF-8 | 3,044 | 2.75 | 3 | [] | no_license | #!/bin/bash
set -e
##################################################################################################################
# Written to be used on 64 bits computers
# Author : Patrycjusz Różański
# Website : https://www.brnet.pl
# Mods by : Miriampl
######################################################... | true |
7db9e88ee71cf5c55553b92a36aef2c3ef16bce8 | Shell | Caleb68864/dotfiles | /Scripts/extract_pics.sh | UTF-8 | 439 | 3.390625 | 3 | [] | no_license | #!/bin/bash
sourcedir=$1
destdir=$2
iregex=".*\.\(jpeg\|jpg\|png\|mp4\|m4a\|mkv\|avi\)"
num=$(find "$sourcedir" -type f -iregex "$iregex" | wc -l)
echo "$num Files Found"
find "$sourcedir" -type f -iregex "$iregex" | while read file ; do
#cp -v "$file" "$d/$(md5sum "$file" | cut -d" " -f1).${file##*.}"
#cp... | true |
465167eccb413193a932aae73ddc97137045dfdc | Shell | HLD/ggrc-core | /bin/run_api_search | UTF-8 | 744 | 3.28125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
SCRIPTPATH=$( cd "$(dirname "$0")" ; pwd -P )
HOST=${GGRC_DATABASE_HOST-"127.0.0.1"}
DB_NAME="ggrcdevtest_apisearch"
DUMP_NAME="api_search.sql"
DUMP_PATH="${SCRIPTPATH}/../test/api_search... | true |
d9e64162e867878f3e5e68c717adabff63616bb0 | Shell | jlkeesey/jlkdots | /tools/common.sh | UTF-8 | 1,300 | 4.21875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Copyright (c) 2015-2016 James Keesey
#
# This script contains common code for the other scripts.
#
normal=$(tput sgr0)
red=$(tput setaf 1)
green=$(tput setaf 2)
yellow=$(tput setaf 3)
cyan=$(tput setaf 6)
colorReset=${normal}
colorText=${normal}
colorStatus=${green}
colorDebug=${cyan}
colorEr... | true |
fcab27e7f5118d3d04d4ed85f1658a4d977581db | Shell | nathanhh/Aerospace-Software | /Aerospace/Midterm/Submission/Part-2/pyramid.sh | UTF-8 | 499 | 3.9375 | 4 | [] | no_license | #!/bin/bash
# Ankit Hriday
# Bonus Question
# 29th March, 2018
# Check if Numbers are in range or not
if [ $1 -lt 1 ] || [ $1 -gt 10 ]
then
echo "Number is outside the given ange. Pick number between 1 and 9."
else
# Loop for each number in the row
for((row=1;row<=$1;row++))
do
# spaces required to be in the g... | true |
b92e21639601362543788b98006cfa97444fef72 | Shell | cloud-matic/docker-images | /yarn-packager/pack-n-upload.sh | UTF-8 | 857 | 3 | 3 | [] | no_license | #!/bin/bash
set -e
# export OUTPUT_FILE='package.zip'
export BITBUCKET_URL='https://bitbucket.org'
[ -z "$DEPLOY_BUCKET" ] && echo 'Missing varible DEPLOY_BUCKET' && exit 1
[ -z "$DEPLOY_KEYNAME" ] && echo 'Missing varible DEPLOY_KEYNAME' && exit 1
[ -z "$DEPLOY_PATH" ] && echo 'Missing varible DEPLOY_PATH' && exit ... | true |
4720f25bf01be1015c922c52f08f86bfb1350967 | Shell | kolyaskink/cloudformation | /scripts/infra-jenkins/GetJenkinsHomeFromS3AndGit.sh | UTF-8 | 375 | 2.8125 | 3 | [] | no_license | #!/bin/bash
dir="/var/lib"
url="git@bitbucket.org:gamehouse-dev/infrajenkins.git"
bucket="9181961191-infrajenkins"
region="us-west-2"
mkdir $dir/jenkins && chown jenkins:jenkins $dir/jenkins && ln -s $dir/jenkins $dir/infrajenkins
cd $dir && git clone $url
aws s3 sync s3://$bucket $dir/infrajenkins/ --region $region
... | true |
b4d5ef9bb7222284fbaf382d49df9492b91fbc53 | Shell | Mattin/graphp | /bin/build | UTF-8 | 699 | 3.21875 | 3 | [] | no_license | #!/bin/bash
DIR="$( cd "$(dirname ""$( dirname "${BASH_SOURCE[0]}" )"")" && pwd )"
cd $DIR
MODE=$1
COMPOSER_DEV_FLAG=
if [ "$MODE" == "production" ] || [ "$MODE" == "testing" ]; then
COMPOSER_DEV_FLAG=--no-dev
fi
echo -e '\033[33;32m Generating optimized autoload files\033[0m'
php composer.phar -o install ${CO... | true |
1a4f22abc78e0d912419125e2f66c62c68d39cff | Shell | JusticeBoi/dotfiles | /.local/bin/sound | UTF-8 | 822 | 3.4375 | 3 | [] | no_license | #!/bin/sh
case $BLOCK_BUTTON in
2) pactl set-sink-mute @DEFAULT_SINK@ toggle && pkill -RTMIN+5 dwmblocks;;
4) pactl set-sink-volume @DEFAULT_SINK@ +2000 && pkill -RTMIN+5 dwmblocks ;;
5) pactl set-sink-volume @DEFAULT_SINK@ -2000 && pkill -RTMIN+5 dwmblocks ;;
3) notify-send "📢 Volume module" "\- Shows volume 🔊,... | true |
3273d98c9ccdc772e0c1b11ed66a4acf44614d68 | Shell | fkanehiro/drcutil | /install.sh | UTF-8 | 1,490 | 2.734375 | 3 | [] | no_license | source config.sh
export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig
cmake_install_with_option() {
# check existence of the build directory
if [ ! -d "$SRC_DIR/$1/build" ]; then
mkdir "$SRC_DIR/$1/build"
fi
cd "$SRC_DIR/$1/build"
if [ $# = 1 ]; then
cmake -DCMAKE_INSTALL_PREFIX=$PREFIX .... | true |
7fb4a05b2d726a3838e0b653b5fb96e610186f7b | Shell | shaheen5/Programming-Constructs-Stage2 | /forLoop_Problems/primeNumberInRange.sh | UTF-8 | 547 | 3.65625 | 4 | [] | no_license | #!/bin/bash
read -p "Enter two number [Range]:-" num1 num2 # read two input values for range
echo "Prime numbers between $num1 and $num2 (including $num1,$num2) are:-"
for (( i=num1;i<=num2;i++ )) # loop from num1 to num2
do
flag=0; #set flag to 0
if [ $i -eq 0 ] ... | true |
31f440ab83cdd2c7af1acb3f121adf8661082826 | Shell | chengzhihui007/kubernetes | /createfile.sh | UTF-8 | 1,356 | 2.96875 | 3 | [] | no_license | #!/bin/bash
filepath=$(pwd)
#versions
KUBE_VERSION=v1.11.2
KUBE_PAUSE_VERSION=3.1
ETCD_VERSION=3.2.18
DNS_VERSION=1.14.8
#url
k8s=k8s.gcr.io
kubedirs=(kube-apiserver-amd64
kube-scheduler-amd64
kube-controller-manager-amd64
kube-proxy-amd64)
dnsdirs=(k8s-dns-dnsmasq-nanny-amd64
k8s-dns-sidecar-amd64
k8s-dns-kube... | true |
154698c6e8f00d1997a21c05ef370d7270337038 | Shell | ujjawalmisra/letsplay | /letsplay | UTF-8 | 3,908 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# [global]
# --------------------------------------------
T_SCRIPT="$0";
T_PROJECT="$1";
T_OPERATION="$2";
T_SCRIPT_NAME=`basename "$T_SCRIPT"`;
T_CONFIG="$HOME/.$T_SCRIPT_NAME.config";
# [functions]
# --------------------------------------------
function _usage_ {
echo "usage: $T_SCRIPT <project> <p... | true |
8775270bdefcdf6586fe0fb5075adaaa6d6315b3 | Shell | Kagee/make-clean-no-list | /sources/commoncrawl/verify-indexes.sh | UTF-8 | 252 | 2.984375 | 3 | [] | no_license | #! /bin/bash
find . -type d -name 'CC-MAIN*' | \
while read DIR;
do
#EXIT_STATUS=0;
echo $DIR
ls $DIR/* | grep ".gz" | \
while read FILE;
do gzip --test $FILE; # || EXIT_STATUS=$?;
done;
# echo $DIR: $EXIT_STATUS; # NO WORKY ?_?
done;
| true |
21d2539035c73daffd3ad203b4e4d26c42c34b59 | Shell | wenlizhe/shell_test | /functional_scripts/question12.sh | UTF-8 | 692 | 3.640625 | 4 | [] | no_license | #!/bin/bash
echo "1.[install lamp]"
echo "2.[install lnmp]"
echo "3.[exit]"
read -t 30 -p "pls input the num you want:" a
case $a in
1)
if
[ -f lamp.sh ];then
./lamp.sh
sleep 3
echo "lamp is installed!"
else
e... | true |
f8a673f306afe0647296c2ac8d69abbe02c5f644 | Shell | majutsushi/etc | /dotfiles/zsh/zsh/func/jump-target | UTF-8 | 1,858 | 3.5 | 4 | [] | no_license | # Jump to a character in the command line
# Based on https://github.com/scfrazer/zsh-jump-target
jump-target() {
typeset -g ZSH_JUMP_TARGET_CHOICES
typeset -g ZSH_JUMP_TARGET_STYLE
: ${ZSH_JUMP_TARGET_CHOICES:="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"}
: ${ZSH_JUMP_TARGET_STYLE:="fg=red,b... | true |
bc866abd69d646a1883b5c80e2fec27c58f2d746 | Shell | rickchen918/lab_builder | /terraform/flash_folder/flash_vesxprepa/local.sh | UTF-8 | 1,334 | 3.046875 | 3 | [] | no_license | ##### this file is to replace the esx template to overcome the limitation of esx clone info confliction
#!/bin/sh
# local configuration options
# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, speci... | true |
35330a585a9f94888fbfa2012104f35211234f7a | Shell | championshuttler/kubecf | /deploy/helm/kubecf/assets/scripts/jobs/pxc/seeder.sh | UTF-8 | 1,217 | 3.21875 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env bash
set -o errexit -o nounset -o pipefail
echo "Starting seeding..."
databases=(
"cloud_controller"
"diego"
"network_connectivity"
"network_policy"
"routing-api"
"uaa"
"locket"
"credhub"
)
echo "Waiting for database to be ready..."
until echo "SELECT 'Ready!'" | mysql --host="${DATABA... | true |
3fc7a448b93fc63032d299b81fde1f35a888cc8e | Shell | guillaume-lin/tsc | /tsc/dep/ncurses-5.4/misc/shlib | UTF-8 | 4,179 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
##############################################################################
# Copyright (c) 1998,2000 Free Software Foundation, Inc. #
# #
# Permission is hereby granted, free of charge, to any person obtaining a... | true |
2dd5a1a3c723d00dd6f43c397265763a10c84e7e | Shell | SoftNacho/Tools4LanguageProcessing | /SoftNacho-hw03-master/list_conf.sh | UTF-8 | 760 | 3.59375 | 4 | [] | no_license | #!/bin/bash
###############################################################################
# Instructions:
###############
#
# Modify this script so that it prints to standard output
# a listing of all files in the /etc directory that end in the suffix .conf
#
# NOTE:
#
# The listing:
# * must print the allocat... | true |
788b4c7b9e0f2a9f3f6045a801a264048bcf4ece | Shell | mirounga/gatk | /src/main/java/org/broadinstitute/hellbender/tools/validation/validate-reads-spark-pipeline.sh | UTF-8 | 4,341 | 3.65625 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | #!/usr/bin/env bash
# This script takes a bam (plus context), rolls back the effects of MarkDuplicates and BQSR, and runs the BAM
# through Picard/GATK 3 and GATK 4 and compares the legacy results with GATK 4.
#
# This requires that PICARD_JAR and GATK3_JAR be set.
#
# Example usage
# ./validate-reads-spark-pipeline.s... | true |
345dca2024e24547f59c5a12ef2fd462dc65825e | Shell | subhamproject/shell_script_repo | /create_ecr_repo.sh | UTF-8 | 339 | 2.71875 | 3 | [] | no_license | #!/bin/bash
aws ecr describe-repositories --repository-names $1 2>&1 > /dev/null
status=$?
if [[ ! "${status}" -eq 0 ]]; then
aws ecr create-repository --repository-name $1
fi
aws ecr describe-repositories --repository-names subham-prods > /dev/null 2>&1 || aws ecr create-repository --repository-name subham-prod... | true |
176b0768ab23b947f9b93e4209bdd4169c9955b3 | Shell | rezapx/public | /script_vps/squiddeb.sh | UTF-8 | 391 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | # initialisasi var
export DEBIAN_FRONTEND=noninteractive
OS=`uname -m`;
MYIP=`ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0'`;
MYIP2="s/xxxxxxxxx/$MYIP/g";
apt-get -y update
apt-get -y install squid3
wget -O /etc/squid3/squid.conf "http://ksdata.tk/debian7/sq... | true |
ddbe89d0006748f3570c029707c407b2435a0b6a | Shell | dbehnke/ubuntu-precise-scripts | /oracle11gR2-XE-prep.sh | UTF-8 | 3,412 | 3.65625 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/sh
#run script as root
#Oracle 11g Express Edition requires additional software that is not installed by default:
apt-get install alien libaio1 unixodbc
#make swapfile
dd if=/dev/zero of=/export/swapfile bs=1024 count=2097152
mkswap /export/swapfile
swapon /export/swapfile
swapon -a
#modify fstab
cp /etc/fst... | true |
c95b1416056fae38a4b005e634394a0dc4088f5d | Shell | stevenberg/dotfiles | /tag-desktop/config/bash/components/golang.bash | UTF-8 | 211 | 3.109375 | 3 | [
"MIT"
] | permissive | if [ -d "$HOMEBREW_PREFIX"/opt/go/libexec ] && [ -d "$HOME"/Developer/Go ]; then
export GOPATH="$HOME"/Developer/Go
export GOROOT=$HOMEBREW_PREFIX/opt/go/libexec
PATH=$HOME/Developer/Go/bin:$PATH
fi
| true |
cefa815834660bf83d949788aa4aebb0df2eae2e | Shell | thusoy/salt-states | /tools/nginx/get-hash-for-version.sh | UTF-8 | 1,124 | 4.09375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -eu
if [ $# -eq 1 ]; then
version="$1"
else
echo "Usage: $(basename $0) <version>"
exit 1
fi
source_uri="https://nginx.org/download/nginx-$version.tar.gz"
source_file=$(basename "$source_uri")
signature_uri="$source_uri.asc"
state_dir=$(dirname "$0")
temp_dir=$(mktemp -d)
cleanup () {
... | true |
5bdd18a3a39c269e78c6c9de2fb4870a4f14fcdf | Shell | Sarweswaran/terraform | /scripts/addToFamily/addToSalt.sh | UTF-8 | 1,613 | 3.546875 | 4 | [] | no_license | if [ -z "$1" ]
then
echo "$(date) No argument supplied" >> /myLogs.txt
exit 1
fi
echo "$(date) installing AWSCLI" >> /myLogs.txt
sudo apt update
sudo apt install -y awscli
echo "$(date) checking AWSCLI" >> /myLogs.txt
until [ -x "$(command -v aws)" ]
do
echo 'Error: aws is not installed.' >&2
sudo apt i... | true |
954e05e91fe824401c407ae8fd424de5b0cb1f3f | Shell | hacback17/shell-coding | /log.sh | UTF-8 | 252 | 2.828125 | 3 | [] | no_license | #!/usr/bin/bash
TIMESTAMP=$(date +%F)
echo "Auto Generate Log files"
find /home/osboxes/audios/ -name 'netstat' -mmin +2 -exec bash -c ' echo "{} - " date -r {} rm -rf {} ' \; | xargs > deleted-files-$TIMESTAMP.log
echo "Log Generated Successfully"
| true |
c5aa0be78713b9bd32e8daca009509c6aba9289b | Shell | VladimirNikiforov/linux_shell | /conditional.sh | UTF-8 | 1,639 | 3.171875 | 3 | [] | no_license | this_command_does_not_exist
echo $?
echo I will succeed.
echo $?
true
echo $?
false
echo $?
true && echo "Program 1 was executed."
false && echo "Program 2 was executed."
false && true && echo Hello
echo 1 && false && echo 3
echo Athos && echo Porthos && echo Aramis
true || echo "Program 1 was executed."
false || ec... | true |
48a3ad9769b13422b2cb7e3ce48b7ab9029c59c2 | Shell | coiouhkc/rundeck | /test/api/rundecklogin.sh | UTF-8 | 935 | 3.984375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#Utility to log into the RunDeck server and store cookie file for later use
errorMsg() {
echo "$*" 1>&2
}
DIR=$(cd `dirname $0` && pwd)
# accept url argument on commandline, if '-' use default
url="$1"
if [ "-" == "$1" ] ; then
url='http://localhost:4440'
fi
apiurl="${url}/api"
loginurl="${url}/j... | true |
c85cf6d800623d49baa109f3c99c6890eb1b5cf9 | Shell | CocoJr/api-platform-user-skeleton | /bin/build-dev.sh | UTF-8 | 632 | 2.96875 | 3 | [] | no_license | #!/bin/bash
CIDR="$( pwd )"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $DIR/../
composer install
mkdir -p config/jwt
if [[ ! -f config/jwt/private.pem ]]
then
openssl genrsa -passout env:JWT_PASSPHRASE -out config/jwt/private.pem -aes256 4096
openssl rsa -passin env:JWT_PASSPH... | true |
f79305805bf2b3d37a252d9002386d5e6a61c87b | Shell | vertizone/rudolf_dev | /Vzone Stuffs/jdk_fedora.sh | UTF-8 | 493 | 2.953125 | 3 | [] | no_license | #
# Shell script to install Sun Java, MySQL Server, Ruby, Make, Curl, Git, ZLib, RVM
# on Ubuntu 12.04 LTS OS
#
# Script below installs Sun Java JDK 7 from the Repo
echo "Installing CURL"
sudo yum install curl
echo "Installing Sun Java JDK 7..."
sudo rpm -ivh jdk-7u9-linux-x64.rpm.rpm
echo "Sun Java Instal... | true |
85c9f6428c305642614cdb1ad9be76c5dd80a1d1 | Shell | sheep/centos-xen-pkg | /lib/centosrepo.sh | UTF-8 | 15,589 | 3.5625 | 4 | [] | no_license | function sources-from-spec()
{
perl -ne 'if(/^Version.* ([0-9.]+)$/) { $version=$1; } if(/^Patch[0-9]+: (.*)$/ || /^Source[0-9]+: (.*)$/) { $f=$1; if($f=~/http:.*\/([^\/]+)$/) {$f=$1;} $f=~s/%{version}/$version/; print "$f\n"; }' $TOPDIR/SPECS/xen.spec
}
function clean-sources-find()
{
# Idea:
# - Pull all... | true |
5caf7a833919336290d1708bfd6670c26ea64d37 | Shell | okmatija/jai-imgui | /update_imgui_subrepo_and_rebuild_libs.sh | UTF-8 | 457 | 2.78125 | 3 | [] | no_license | #!/bin/bash
IMGUI_BRANCH=docking
COMMON_IMPL=jai-imgui.cpp
git submodule update --init
(cd imgui; git checkout $IMGUI_BRANCH && git pull origin $IMGUI_BRANCH ) || exit 1
g++ -fPIC -fno-threadsafe-statics -fno-exceptions -DJAI_IMGUI_BUILDING_IMPLEMENTATION -Iimgui -c $COMMON_IMPL -o imgui.o || exit 1
g++ imgui.o -sha... | true |
fb52c36e37d1100994e04078dca30e4a98a47db4 | Shell | snail123815/chipseq_pipeline | /sbatch_align.slurm | UTF-8 | 3,209 | 3.328125 | 3 | [] | no_license | #!/bin/bash
#SBATCH --job-name=align
#SBATCH --output=align.out
#SBATCH --error=align.err
#SBATCH --ntasks=16
#SBATCH --mem=8G
#SBATCH --partition=cpu-short
#SBATCH --time=03:00:00
# ============================================================================================
CONDA=micromamba # use CONDA=conda when you... | true |
46ac27f33250235603ea0600d1bc2025ca7fab4b | Shell | InsightSoftwareConsortium/ITKPythonPackage | /scripts/macpython-build-tarball.sh | UTF-8 | 764 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# This script creates a tarball of the ITK Python package build tree. It is
# downloaded by the external module build scripts and used to build their
# Python package on GitHub CI services.
#tbb_contents="ITKPythonPackage/oneTBB*"
tbb_contents=""
arch_postfix=""
if test $(arch) == "arm64"; then
... | true |
9255740e451b21411f96bca1b11013d71740b53b | Shell | m0cchi/emacsenv | /bin/emacsenv.d/import.sh | UTF-8 | 212 | 3.28125 | 3 | [] | no_license | ENV_FILE=$(search_envfile)
if [ "$ENV_FILE" = "" ]; then
exit 1
fi
EMACS_HOME=""
. $ENV_FILE
if [ "$EMACS_HOME" = "" ]; then
exit 1
fi
import_file=$1
shift 1
cp -rf $import_file $EMACS_HOME/profiles
| true |
fa399f1cf92e026a6916348ceda2c629b039b45b | Shell | nya3jp/tast | /tools/import_infra_proto.sh | UTF-8 | 1,890 | 3.8125 | 4 | [
"CC-BY-3.0",
"BSD-3-Clause"
] | permissive | #!/bin/bash -e
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Convenience script to import infra proto snapshot into tast repository.
#
# This script takes the commit hash of chromiumos/infra/proto repository
# as an argu... | true |
e30032baf211a224d832ad11a201efbdeb4f86d3 | Shell | qubixes/mc-polymer-simulation | /scripts/plot_dist_rec.sh | UTF-8 | 940 | 3 | 3 | [
"MIT"
] | permissive | #!/bin/bash
. util.sh
REC_DIR=$1
PAS_DIR=$REC_DIR/../../long/
REC_FILE=$REC_DIR/`get_last_tfile $REC_DIR`
BIN_FILE=$PAS_DIR/bins*
CONFIG_FILE=$PAS_DIR/config*
OUT_FILE="$REC_DIR/rec_comparison.dat"
PAS_HIST_FILE="$REC_DIR/exp_hist.dat"
SIM_HIST_FILE="$REC_DIR/sim_hist.dat"
if [ ! -f $OUT_FILE ]; then
../bin/deta... | true |
e44bba97f2a47840cb7055a6f74d5d16974b9ed3 | Shell | Cupermind/docker-db-backup | /backup.sh | UTF-8 | 5,590 | 4.09375 | 4 | [] | no_license | #!/bin/bash
source_it() {
while read -r line; do
if [[ -n "$line" ]] && [[ $line != \#* ]]; then
export "$line"
fi
done < $1
}
# This script can work as standalone script. Normally it reads all environment variables
# from OpenShift, but if .env is present it will override it.
if [ -f .env ]; then
... | true |
88c971216b9e10b2e8bf438ca46eba1d7e7303c8 | Shell | sharma-arpita/PractiseProblem | /parking_lot.sh | UTF-8 | 395 | 2.84375 | 3 | [] | no_license | #!/bin/bash
JAVA_OPTS="-server -Xms32m -Xmx200m -Dfile.encoding=UTF-8"
#JAVA_OPTS="$JAVA_OPTS -Djava.ext.dirs=~/Documents/lib/"
export JAVA_OPTS
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Building Parking lot"
mvn clean package
echo "ENTER INPUT TO EXECUTE THE PROJECT:"
eval "java $JAVA_OPTS -jar ... | true |
54539eb5b410fe38063d6658d08484870fab865f | Shell | ndeciancio/tp-sisop-1c-2016 | /dev/binarios/LanzarProceso | UTF-8 | 1,298 | 4.03125 | 4 | [] | no_license | #!/bin/bash
PROC=proc
function echoerr {
$BINDIR/GrabarBitacora LanzarProceso "$1" ERR
}
if [ ! -v AMBIENTE_INICIALIZADO ]; then
echoerr "El ambiente no ha sido inicializado."
exit 1
fi
# Limpiar temporario de procesos.
if [ -f $TEMPDIR/$PROC ]; then
for proceso in `cat $TEMPDIR/$PROC`; do
PID=`echo $pr... | true |
9740a5538fee986a0b02865570b5377c42939997 | Shell | axelhodler/dotfiles | /scripts/git_status_helper.sh | UTF-8 | 212 | 3.34375 | 3 | [] | no_license | #!/bin/sh
COUNT=-1
git status -sb |
while read line;
do
if [ "$COUNT" -ge 0 ]; then
echo $line | sed -e "s#^#[$COUNT] #g"
else
echo $line
fi
(( COUNT++ ))
done
| true |
4e2fd2d5e9e8d6efef75b92b04af7d19cafda745 | Shell | vitalinux/vx-migasfree-launcher | /usr/share/migasfree-launcher/prerun.d/02-remove_sources.list.sh | UTF-8 | 136 | 2.796875 | 3 | [] | no_license | if [ -f $_FIRST ] ; then
# remove /etc/apt/sources.list
if [ -f /etc/apt/sources.list ] ; then
rm /etc/apt/sources.list
fi
fi
| true |
dfc9826eafa009bf427fded3529353e1ba31b7e2 | Shell | gamemaker1/registry-cli | /scripts/release.sh | UTF-8 | 141 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
# Configuration
export PNPX="$(command -v pnpx)"
export NP="np"
# Build the CLI
sh scripts/build.sh
# Create a release
$PNPX $NP
| true |
01c3e18425acf4f75e38670f7d45691747642fd4 | Shell | nuagenetworks/nuage-ospdirector | /nuage-tripleo-heat-templates/scripts/create_roles/create_compute_avrs_role.sh | UTF-8 | 1,213 | 3.640625 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o errexit
set -o nounset
if [ "${USER}" != "stack" ]; then
echo "ERROR: Run the script as \"stack\" user."
exit 1
fi
CURRENT_DIR=$(basename $(pwd))
if [ "${CURRENT_DIR}" != "create_roles" ]; then
echo "ERROR: Run the script from create_roles directory please."
exit 1
fi
sou... | true |
a59f0d2acc17d7237abd7317d361076a996b7c2f | Shell | razvand/snippets | /geo-ip/get_geo_location.sh | UTF-8 | 2,622 | 3.609375 | 4 | [] | no_license | #!/bin/sh
#
###
### For assistance, please visit forum.ipinfodb.com
#
# Small updates by Razvan Deaconescu 2010-07-01
# - use IPinfoDB API v3
# Created by Eric Gamache on 2009-05-26
# Version 1.0 by Eric Gamache -- 2009-06-04
# Version 1.1 updated by Marc-Andre Caron -- 2009-06-08 .. Added timezone
# Version 1.2 upda... | true |
ee24140793d09b5ba539381fb2096d4a2c919b72 | Shell | gatsbyjs/gatsby | /scripts/assert-changed-files.sh | UTF-8 | 1,266 | 3.859375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
IS_CI="${CI:-false}"
GREP_PATTERN=$1
if [ "$IS_CI" = true ]; then
git config --local url."https://github.com/".insteadOf git@github.com:
git config --local user.name "GatsbyJS Bot"
git config --local user.email "core-team@gatsbyjs.com"
git fetch origin
git merge --no-edit origin/master
if [ ... | true |
244a38c8a647f5efc6e29efe22f658999a4fcb77 | Shell | podhmo/individual-sandbox | /daily/20201021/example_go2/06aws/completion.bash | UTF-8 | 1,191 | 3.21875 | 3 | [] | no_license | # complete -C "$(which aws_completer)" aws
function _aws_completion(){
local first profile datapath
profile="default"
cmdname="${COMP_WORDS[0]}"
datapath="$HOME/.config/compgen/${profile}/${cmdname}"
local st
st="$(gdate +%N)"
local filepath
case ${COMP_CWORD} in
1)
... | true |
bb4110c9130960d2192a5f59273809d839599041 | Shell | coreos/coreos-assembler | /mantle/test | UTF-8 | 1,040 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#
# Run all tests
# ./test
# ./test -v
#
# Run tests for one package
# PKG=./foo ./test
#
set -e
cd $(dirname $0)
source ./env
# Use an alternate bin to avoid clobbering output from ./build
export GOBIN="$(pwd)/_testbin"
trap "rm -rf _testbin/" EXIT
# PKG may be passed in from ./cover
[[ -... | true |
3e86ab927a325dc79c3ba98adf9f1a4d55f59808 | Shell | jameshwang2289/.bashrc-PS1-Config | /ps1_bashconfig.sh | UTF-8 | 1,246 | 3.03125 | 3 | [] | no_license | count="$(ls /dev/pts/ | wc -l)"
if [ "$count" -le 2 ]; then
screenfetch
fi
source /etc/bash_completion.d/git-prompt
#makes a clock and puts $ on next line
if [ $(($count % 6)) -eq 2 ]; then
export PS1='\[\033[38;5;135m\]\e[1m\u@\h\[\033[1;34m\]\[\033[38;5;45m\]$(__git_ps1) \[\033[1;37m\]\w\n\[\033[38;5;45m\]... | true |
f65e2a3c171d315b9c55402e0ae0bb3340de86dc | Shell | pdamoune/dotfiles | /scripts/config.sh | UTF-8 | 3,439 | 3.4375 | 3 | [] | no_license | #!/bin/sh
GITHUB="https://github.com/pdamoune"
CONFIG_REPO="$HOME/Documents/dev/config"
CONFIG_SRC="$GITHUB/dotfiles.git"
DATE=`date '+%Y_%m_%d'`
TIME=`date '+%H:%M:%S'`
BAK=$HOME/.backup/$DATE\_$TIME
###############################################################################
# Create repository ~/Documents/dev ... | true |
87013d78f6c172a62b0636ba7d5eb2e238bd35ac | Shell | intel-secl/skc-tools | /skc_library/build_scripts/install_ctk.sh | UTF-8 | 1,163 | 3.53125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
SKCLIB_DIR=$PWD/skc_library
SGX_INSTALL_DIR=/opt/intel
GIT_CLONE_PATH=/tmp/sgx
GIT_CLONE_SGX_CTK=$GIT_CLONE_PATH/crypto-api-toolkit
CTK_REPO="https://github.com/intel-secl/crypto-api-toolkit.git"
CTK_BRANCH="v3.0.0"
CTK_INSTALL=$SGX_INSTALL_DIR/cryptoapitoolkit
P11_KIT_PATH=/usr/include/p11-kit-1/p11-kit/
C... | true |
46665e1941876e24c8fa06ac8872384a06c49388 | Shell | david-imagr/bart-scripts | /download_datasets/download_UTE.sh | UTF-8 | 995 | 4 | 4 | [] | no_license | #!/bin/bash
# download script for UT Egocentric Dataset
# http://vision.cs.utexas.edu/projects/egocentric/download_register.html
# you can replace DATADIR with anything
# MAKE SURE YOU ARE NOT OVERWRITING SOMEONE ELSE'S DIRECTORY
readonly DATADIR="/scratch/datasets"
# other global variables
readonly SCRIPT_NAME=$0
re... | true |
59d80f2b7d7ffbf5874fc14a7e62bd084b062ae3 | Shell | wildlyinaccurate/lishp | /test/equality.sh | UTF-8 | 1,552 | 2.71875 | 3 | [
"MIT"
] | permissive | describe "Cross-type equality"
it_can_check_multiple_values() {
test "$($LISHP '(= 2)')" = '#t'
test "$($LISHP '(= 2 2 2 2)')" = '#t'
}
it_checks_numeric_equality() {
test "$($LISHP '(= 2 2)')" = '#t'
test "$($LISHP '(= 2.0 2)')" = '#t'
test "$($LISHP '(= 2 1)')" = '#f'
test "$($LISHP '(= 2.0... | true |
25a3456a42bac8d55400411a6ab1eef32087230a | Shell | Chalmiller/LinuxShellScripting | /lu_v2.sh | UTF-8 | 445 | 3.8125 | 4 | [] | no_license | #!/usr/bin/env bash
#!/bin/sh
#
# Look someone up in the phone book
#
name=$1
grep -i "$name" $PHONEBOOK > /tmp/matches$$
if [ ! -s /tmp/matches$$ ]
then
echo "I can't find $name in the phone book"
else
#
# Display each of the matching entries
#
while read line
do
first_field=$(cut -f1 -d"\t" "$line")
... | true |
1f18af8d0f7dcf4af9c0b5a2d61b0375f9e15b80 | Shell | wpomori/correlacao_no_R | /copy.sh | UTF-8 | 508 | 3.46875 | 3 | [] | no_license | #!/bin/bash
path_to_copy="/home/pine/Workspace/correlacao_no_R"
dir_data="1_Importando_dados"
file1="${path_to_copy}/cor.html"
file2="${path_to_copy}/cor.Rmd"
base_dir="."
if [ -d "${dir_data}" ] ; then
echo " Removendo diretório ${dir_data} ... "
rm -rf ${dir_data}
fi;
if [ -f "${file1}" ] | [ -f ${file2} ] ; ... | true |
9af73fa2b33d65a92042a4add08d8225160c372f | Shell | zhanglei/ticdc | /tests/cdc/run.sh | UTF-8 | 787 | 3.3125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
CUR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
source $CUR/../_utils/test_prepare
WORK_DIR=$OUT_DIR/$TEST_NAME
CDC_BINARY=cdc.test
function prepare() {
rm -rf $WORK_DIR && mkdir -p $WORK_DIR
stop_tidb_cluster
killall -9 $WORK_DIR || true
start_tidb_cluster $WORK_DIR
cd... | true |
516f039053417bab7469ea28123358f398740e6e | Shell | rocky2015aaa/hyperledger_fabric | /configurations/network-setting/ca-server/fixtures/scripts/start-rca.sh | UTF-8 | 777 | 2.578125 | 3 | [] | no_license | #!/bin/bash
# Initialize the root CA
fabric-ca-server init -b $BOOTSTRAP_USER_PASS
# Copy the root CA's signing certificate to the data directory to be used by others
cp $FABRIC_CA_SERVER_HOME/ca-cert.pem $TARGET_CERTFILE
# Add the custom orgs
sed -i "/ org1:/,+2 d" $FABRIC_CA_SERVER_HOME/fabric-ca-server-config.y... | true |
9bc79ea853358bc8e6f60d921778f3ee2c33fa2b | Shell | Jinhao0113/contest | /5-30/rand.sh | UTF-8 | 224 | 2.8125 | 3 | [] | no_license | rm -rf "data/$1"
mkdir "data/$1"
g++ "$1_std.cpp" -o "$1_std"
g++ "$1_rand.cpp" -o "$1_rand"
for((i=1;i<=$2;i++))
do
./"$1_rand" > "data/$1/t$i.in"
./"$1_std" < "data/$1/t$i.in" > "data/$1/t$i.out"
sleep 1
done
| true |
5230947dac8fdb5469ef17fc6c17acbb4bc3531d | Shell | JohnnyMa314/MP-Edit | /scripts/pretrain-bart-mnli.sh | UTF-8 | 1,802 | 2.671875 | 3 | [] | no_license | #!/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.
echo "Formating data..."
TASK=denoise
for SPLIT in train val
do
for LANG in source target
do
python -m examples.roberta... | true |
3668d1f88cb828a462891aa2f05797ad8720e2ca | Shell | lapesd/PSkel-MPPA-Async | /tests/mppaPlotExercise/GenerateTimesDP.sh | UTF-8 | 1,825 | 2.84375 | 3 | [
"BSD-3-Clause"
] | permissive | SOURCEPATH=$1
DATADIR=$2
PLOTDIR=$3
label=$4
scale=$5
tp=$6
qnt=$7
yformat="%1.1f"
for app in fur gol jacobi
do
#---------------------------MPPA--------------------------------------
# for file in ~/$SOURCEPATH/${app}Experiments/spec/12288/32/*.txt
# do
# $DATADIR/getMPPATime.sh $file $DATADIR "${a... | true |
8f16da3a3c4cb960ec10ed24a86b5f42e8a94775 | Shell | huyhoang8398/CertifPlus | /init.sh | UTF-8 | 1,860 | 2.765625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
PATH_TO_CA_KEY="CA/ecc.ca.key.pem"
PATH_TO_CA_CERT="CA/ecc.ca.cert.pem"
PATH_TO_SERVER_KEY="CA/ecc.server.key.pem"
PATH_TO_SERVER_CERT="CA/ecc.server.cert.pem"
PATH_TO_SERVER_CSR="CA/ecc.server.csr.pem"
PATH_TO_SERVER_PUBKEY="CA/ecc.server.pubkey.pem"
PATH_TO_BUNDLE_SERVER="CA/bundle_server.pem"
if [[ ! -... | true |
1c2811efbaff45df7c51b2f482ea674dbe854a31 | Shell | bi-ran/pages | /athena/_atlrun | UTF-8 | 716 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
ARGS=()
fwargs=()
while [ $# -gt 0 ]; do
case "$1" in
-f|--fd) fwargs+="$2"; shift 2 ;;
--fwd=*) fwargs+="${1#*=}"; shift ;;
-o|--out) out="$2"; shift 2 ;;
--out=*) out="${1#*=}"; shift ;;
-*) echo -e "invalid opti... | true |
c3ee20db62fb4f783c690d4421318545b78b05aa | Shell | 980venkat/costing | /tags/add_tag_elb.sh | UTF-8 | 466 | 3.1875 | 3 | [] | no_license | #!/bin/bash
for region in `aws ec2 describe-regions --output text | cut -f3`
do
echo -e "\nListing Instances in region:'$region'..."
aws elb describe-load-balancers --region $region --query 'LoadBalancerDescriptions[*].{ID:LoadBalancerName}' > $region-elb.json
jq -c '.[]' $region-elb.json | while read i... | true |
c22918f4f7425f52b42f1eed6b33a6aa68a8a55e | Shell | dheeraj510/love-und-panzer | /server.sh | UTF-8 | 131 | 2.546875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [[ -f server/main.lua ]]; then
love server
else
echo "main.lua not found. are you in the wrong folder?"
fi | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.