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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
930499d4e4421ab01e681adfd994f002d83a9237 | Shell | steveyiyo/IRR-AS-SET-Grapher | /lookup.sh | UTF-8 | 658 | 3.34375 | 3 | [] | no_license | #!/bin/bash
function err(){
echo "$1" >&2
}
function asset(){
whois -h whois.radb.net "$1" | grep -oP 'members:\ +\KAS.*' | tr ',' '\n' | tr -d ' ' | while read line
do
echo "$(echo "$1" | sed 's/[-:]/_/g')->$(echo "$line" | sed 's/[-:]/_/g')"
[ -n "$(echo $2 | grep "$1")" ] && err "$1 Abort" && continue
"$0... | true |
1260788d38e2e355583a13733ca3f1766e353999 | Shell | softfire-eu/openimscore-packages | /compress.sh | UTF-8 | 487 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
dest="tars"
if [ ! -d $dest ]; then
echo "creating $dest folder"
mkdir -p $dest
fi
dest="../$dest"
pushd bind9
tar -cvf $dest/bind9.tar Metadata.yaml vnfd.json scripts
popd
pushd icscf
tar -cvf $dest/icscf.tar Metadata.yaml vnfd.json scripts
popd
pushd pcscf
tar -cvf $dest/pcscf.tar Metadata.yaml vnfd... | true |
1ac284f50c41d3e55ddad313ddf0209113ef181d | Shell | yohanakh/insightedge | /insightedge-integration-tests/tests/src/test/resources/docker/maven-install-libs/bootstrap.sh | UTF-8 | 76 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [[ $1 == "-d" ]]; then
while true; do sleep 1000; done
fi
| true |
71145bc004aea4faa8f28cbe4b2d63577a8c20ea | Shell | JasonLiu798/bashlib | /bin/bssh | UTF-8 | 671 | 3.328125 | 3 | [] | no_license | #!/bin/bash
source ~/bin/lib.sh
#SRVFILE=$1
CMD=$1
#dp113 192.168.143.113 22 work work
#0 1 2 3 4
if [ $# -lt 1 ]; then
echo "$0 must have two parameter
example:
$0 [server_file] [command] "
exit;
fi
SRVFILE=$UBIN/servers.dat
#UPPATH=/home/work
#LC_FILENAME=`get_filename $`
#echo "Filename $F... | true |
0023d94004398650e82f31982a2baab4a346f5ce | Shell | abx67/detectron2 | /docker/remove_container.sh | UTF-8 | 299 | 3.875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Remove a specified container by name
# Fail on first error.
set -e
. ./docker/config_docker.sh
CONTAINER_NAME=$1
if [ -z "$CONTAINER_NAME" ]
then
CONTAINER_NAME=${DEFAULT_CONTAINER_NAME}
fi
echo "Remove container ${CONTAINER_NAME}"
docker rm --force ${CONTAINER_NAME}
| true |
c09fb455d261fb08ac88ae263793ca38927af6db | Shell | Kimxons/django-project-template | /utils/web.sh | UTF-8 | 225 | 2.84375 | 3 | [] | no_license | #!/bin/bash
function postgres_ready(){
python3 $(dirname "$0")/is_postgres_ready.py
}
until postgres_ready; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done
python3 manage.py runserver 0.0.0.0:8000
| true |
5c89f94d26231ab73ebd52b601785f816879c2bf | Shell | bincker/Android-forensic-timeline | /jsonizer/convert_to_json.sh | UTF-8 | 470 | 4 | 4 | [] | no_license | #!/bin/bash
MASK="pjson"
if [ $# -lt 2 ]
then
echo 'Usage: '$0' input_path output_path'
exit -1
fi
IN_PATH=$1
OUT_PATH=$2
if [ ! -d $OUT_PATH ]
then
mkdir -p $OUT_PATH
fi
targets=`ls -l $IN_PATH | grep $MASK | awk '{print $NF}'`
for file in $targets
do
output=`echo $file | awk -F . '{print $1}'`".... | true |
0546e9d8d8b073eda992d319aae68e0c948ceb86 | Shell | emartineznunez/AutoMeKin | /scripts/HLscripts/IRC_ANALYSIS.sh | UTF-8 | 4,785 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#
source utils.sh
cwd=$PWD
sharedir=${AMK}/share
if [ -f amk.dat ];then
echo "amk.dat is in the current dir"
inputfile=amk.dat
else
echo "amk input file is missing. You sure you are in the right folder?"
exit
fi
echo "Input file" $inputfile
exe=$(basename $0)
##Reading HL stuff
read_input
##
#... | true |
b46de114f92669e5ba5fc49f3519495ef1d8dc93 | Shell | syoyo/oi-build | /components/ipmitool/test_ipmitool | UTF-8 | 12,253 | 3.546875 | 4 | [
"LicenseRef-scancode-bsd-3-clause-sun"
] | permissive | #!/bin/sh
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolar... | true |
67ed93f7734795b9af6ce061ad629f345b2c31b9 | Shell | isMTv/wget_linker | /wget_linker.sh | UTF-8 | 1,839 | 4 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# required applications: wget, tree
clear
PS3=" --- Wget URL's Linker:"
# Меню, постоянный цикл;
OPTIONS=("wget_link" "list_info" "create_dir" "quit")
select OPT in "${OPTIONS[@]}"
do
case $OPT in
"wget_link")
while [[ "$LINK_NAME" = "" ]]; do
echo "Как будет называться страница?"
read... | true |
599ce987869f0b19ac8b20ff452e3809765cb220 | Shell | cpmech/cloud | /scripts/git-pre-commit.sh | UTF-8 | 753 | 3.796875 | 4 | [] | no_license | #!/bin/sh
staged_files=$(git diff --cached --diff-filter=d --name-only | grep -E '\.(js|jsx|ts|tsx)$')
# skip if there are no js or ts files
if [ -z "$staged_files" ]; then
exit 0
fi
# run type-check
npm run --silent tsc
tsc_exit_code=$?
# check the tsc exit code
if [ $tsc_exit_code -ne 0 ]; then
echo "🥵 ... | true |
c8724e97335beba099353d8c0cf4b8086c12623e | Shell | pankajshrestha/Debian_on_Buffalo | /Stretch/installer_images/build/generate_images_armel-lowmem.sh | UTF-8 | 4,480 | 3.328125 | 3 | [] | no_license | #!/bin/bash
##requires uboot-tools, gzip, faketime, rsync, wget, cpio, libarchive-cpio-perl
dtb_dir="../../device_trees"
tools_dir="../../../Tools"
distro="stretch"
mkdir output 2>/dev/null
rm output/*
rm -r armel-payload/* 2>/dev/null
mkdir armel-files 2>/dev/null
mkdir -p armel-payload/source/ 2>/dev/null
cd armel-... | true |
dab5efffdc772b885b21283ef538fefcab495006 | Shell | zhenggangpku/network-testing | /tc/xps_info.sh | UTF-8 | 1,098 | 3.984375 | 4 | [] | no_license | #!/bin/bash
#
# Script to get an overview of how XPS mapping is configured
# Author: Jesper Dangaaard Brouer <netoptimizer@brouer.com>
# License: GPLv2
DEV=$1
if [[ -z "$DEV" ]]; then
err 1 "Must specify DEV as argument"
fi
# Convert a mask to a list of CPUs this cover
function mask_to_cpus() {
local mask=$1
... | true |
c0bdc3aa4cb78cecabfe524145488e0fb120d130 | Shell | JACKHAHA363/research | /diplomacy_research/scripts/update_proto.sh | UTF-8 | 2,676 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
TF_ARCHIVE="https://github.com/tensorflow/tensorflow/archive/6612da89516247503f03ef76e974b51a434fb52e.zip" # Tensorflow v1.13.1
TF_SERVING_ARCHIVE="https://github.com/tensorflow/serving/archive/f16e77783927353fca89dbb411fc01cbd3d42bda.zip" # Serving v1.13.0
PROTO_DIR="$( cd "$( dirname ... | true |
7294f8a00a490b5c9def9485d2d6070a226759e4 | Shell | jason-callaway/gluster-perf | /env.sh | UTF-8 | 1,302 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
echo "****************************************"
echo "Are you running bash from ssh-agent?"
echo "Have you loaded your ssh key?"
echo "And don't forget your secrets directory."
echo "See README.md for details."
echo "****************************************"
echo
# Use the correct PYTHONPATH on Ma... | true |
721975dcc3cb3ab94327f0a4d696c3b6ed4d96bc | Shell | d2s/dot | /scripts/install-suse.sh | UTF-8 | 3,522 | 4.09375 | 4 | [] | no_license | #!/usr/bin/env bash
#############################################################
# install-apt-packages.sh
# This script installs tools from openSUSE packages
#############################################################
#
# More details about openSUSE package management:
# - https://en.opensuse.org/Package_management... | true |
ece0bb434ebfe2ec069d981ca3fd1bcc58cfae9a | Shell | adrielb/DCell | /sims/SurfaceTensionAdhesion/render.sge | UTF-8 | 366 | 2.5625 | 3 | [] | no_license | #!/bin/bash
# request Bourne again shell as shell for job
#$ -S /bin/bash
# merge stderr with stdout
#$ -j y
# assign a name to submitted job
#$ -N render
# change output file name
#$ -o $HOME/output/$JOB_NAME.$JOB_ID.$TASK_ID
# export environment variables
#$ -V
echo $HOSTNAME
echo TASK_ID = $TASK_ID
echo GE_TASK ID ... | true |
8a22c8e1d5adaee663c1c0650aa329b962592dbb | Shell | RealOrko/bosh | /ci/tasks/utils.sh | UTF-8 | 1,632 | 4.125 | 4 | [
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"LGPL-2.1-or-later",
"LGPL-2.0-or-later",
"LicenseRef-scancode-unicode-mappings",
"Artistic-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-3.0-or-later",
"GPL-2.0-or-later",
"GPL-3.0-only",
"MPL-1.1",
"Artistic-... | permissive | #!/usr/bin/env bash
check_param() {
local name=$1
local value=$(eval echo '$'$name)
if [ "$value" == 'replace-me' ]; then
echo "environment variable $name must be set"
exit 1
fi
}
commit_bbl_state_dir() {
local input_dir=${1?'Input git repository absolute path is required.'}
local bbl_state_dir=${... | true |
79047beb10b9938218d4b38b2937eba8c4041d9f | Shell | shubhankar-mern/BashPracticeProblems | /array/sumofthree.sh | UTF-8 | 258 | 3.296875 | 3 | [] | no_license | read -p "Enter numbet of ele: " n
echo " Enter array elements : "
for (( i=0; i<n ; i++ ))
do
read a[$i]
done
sum=0;
for (( i=0 ;i<n ;i++ ))
do
sum=$(($sum+${a[$i]}))
done
if [ $sum -eq 0 ]
then
echo "is zero"
else
echo "is not zero"
fi
| true |
aefd38c86538c70980000ec981b196f70d65e0e6 | Shell | cxwn/summary-of-work-and-study | /ops-scripts/UserDel.sh | UTF-8 | 432 | 3.015625 | 3 | [] | no_license | #!/bin/bash
#批量删除用户脚本
USER1='payer'
UserName=('tangchanggen' 'wuyaxiong' 'lihui' 'wangyifeng' 'yanglongjun' 'liyunfeng' 'xiaoyongan' 'ivandu')
echo -e "\033[41;34m These account were deleting now! Please wait! \033[0m"
userdel -r $USER1
echo -e "\033[47;31m The account $USER1 had been deleted! \033[0m"
for U in ${User... | true |
d7e3d8deff04c87d3102d40af4603026c917ec2d | Shell | pr-martin/rcptt_ci | /runner.sh | UTF-8 | 1,276 | 2.765625 | 3 | [] | no_license | #! /bin/sh
# Set properties below
runnerPath=/usr/lfs/ssd_v0/opt/rcptt.runner-2.0.1/eclipse
autPath=./osate2-core/org.osate.build.product/target/products/osate2/linux/gtk/x86_64
project=./regressionSuite/rcpttSuite
# properties below configure all intermediate and result files
# to be put in "results" folder next to a... | true |
5675ddaa156d87347ead39ff8087885a86cac062 | Shell | fungs/taxator-tk | /core/build.sh | UTF-8 | 394 | 3.734375 | 4 | [] | no_license | #!/bin/sh
# This script will try to compile the source code in the bin subdirectory,
# using one processor core by default
set -o errexit
set -o nounset
compile_threads=${1:-1}
bdir='bin'
test -d "$bdir" || mkdir "$bdir"
echo 'Running cmake'
cd "$bdir"
cmake ../
echo "Compiling source code in $bdir"
make -j "$co... | true |
a5a440d40df93a2e11f31012c01b14ab3e94939f | Shell | birdming22/file_util | /mp3_split.sh | UTF-8 | 339 | 3.625 | 4 | [] | no_license | #!/bin/bash
# check if argument is empty
if [ -z $1 ]; then
echo "usage: bash mp3_split.sh src_dir dst_dir"
exit
fi
if [ -z $2 ]; then
echo "usage: bash mp3_split.sh src_dir dst_dir"
exit
fi
SRC_DIR=$1
cd $1
FILE_LIST=$(ls $SRC_DIR/*.mp3)
SPLIT_TIME=59.59
for file in $FILE_LIST; do
mp3splt -t $SPLIT_TIME... | true |
dce49183454c7eb715827c5b71177b8bdd1b7771 | Shell | lbnl-science-it/aws-sagemaker-keras-text-classification | /container/build_docker.sh | UTF-8 | 1,396 | 3.5625 | 4 | [] | no_license | #!/bin/sh
# The name of our algorithm
algorithm_name=sagemaker-keras-text-classification
chmod +x sagemaker_keras_text_classification/train
chmod +x sagemaker_keras_text_classification/serve
account=$(aws sts get-caller-identity --query Account --output text)
# Get the region defined in the current configuration (d... | true |
68f5293d02a1dd421e550b708121016e3b5a10a6 | Shell | KAVANABELAVADI/day1011problem3 | /flipCoinCombination.sh | UTF-8 | 3,744 | 3.65625 | 4 | [] | no_license | #!/bin/bash
declare -A singlet
declare -A doublet
declare -A tripplet
heads=0
tails=0;
doubletHead=0;
doubletHeadTail=0;
doubletTailHead=0;
doubletTail=0;
tHHH=0;
tHHT=0;
tHTH=0;
tHTT=0;
tTHH=0;
tTHT=0;
tTTH=0;
tTTT=0;
read -p "Enter Number of Trails - " trails
temp=$trails
while [ $temp -gt 0 ]
do
#singlet
res=$... | true |
605e4fe3c42b0e3a83ea84ea54916c6f2e89e96f | Shell | Chen-Gu/slp | /data/testbed/info/fitiotlab/aggregator.sh | UTF-8 | 1,065 | 3.890625 | 4 | [] | no_license | #!/bin/bash
echo "Starting Aggregator"
# Redirect all nodes serial output to a file
readonly OUTFILE="${HOME}/.iot-lab/${EXP_ID}/aggregator_log.stdout"
readonly ERRFILE="${HOME}/.iot-lab/${EXP_ID}/aggregator_log.stderr"
trap 'catch_signal; exit' SIGTERM
catch_signal()
{
echo "Catch SIGTERM signal" >&2
# Try to s... | true |
58ad3103f4a201a22fb1a54a8a44bb043183b920 | Shell | fyamvbf/example-chat | /.ci/build-frontend.sh | UTF-8 | 233 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -eux
# ここで指定している.npmディレクトリはGitLab CI/CDによってキャッシュされる
cat <<_EOF_>frontend/.npmrc
cache=$(pwd)/.npm
prefer-offline=true
_EOF_
cd frontend
npm ci
npm run build
| true |
19f61c37a0f31334a3c7c4fd779a5aec8cbd0732 | Shell | chrisbangun/release-scripts | /dump-collection.sh | UTF-8 | 689 | 4 | 4 | [] | no_license | #!/bin/bash
function dump_specific_table {
rm -r ./dump/$1
mongodump --db $1 --out ./dump
cd dump
for dir in */
do
base=$(basename "$dir")
if [ "$base" == "$1" ]; then
tar -czf "${base}.tar.gz" "$dir"
fi
done
}
function dump_all {
rm -r dump
mongodump --out ./dump
cd dump
for dir... | true |
f6dd9a998fb5568e62fbeb28745a6e49b59bbe26 | Shell | KerberosSec/KerberosSec | /install.sh | UTF-8 | 4,946 | 3.375 | 3 | [] | no_license | #!/bin/bash
#Developer: Diego333-ms
#Github: https://github.com/Diego333-ms/KerberosSec
#Copyright: Diego333-ms
#Todos os Direitos Reservados
instalacao() {
#Instalação das Dependências
cd ..
mv KerberosSec /data/data/com.termux/files/home
cd /data/data/com.termux/files/home/KerberosSec
chmod +x KerberosSec.sh
mkdi... | true |
4770044c83d6cbf83824a3ec95915ded06ff2d2c | Shell | thirdless/faculta | /sisteme-operare/lab4/p2.sh | UTF-8 | 1,183 | 3.5 | 4 | [] | no_license | proiect(){
cd ~/
mkdir -p $1
cd $1
mkdir -p bin
mkdir -p obj
mkdir -p src
mkdir -p inc
> "$1.c"
> "$1.h"
> build.sh
cd src
> "$1_src.c"
cd ../inc
> "$1_inc.h"
}
proiectbasic(){
cd ~/
mkdir -p $1
cd $1
mk... | true |
cd758ef9ffa207f6d8438a444c1e2492f921546c | Shell | rubyonracetracks/gatsby_neutrino | /mod/mod-03/mod-03.sh | UTF-8 | 284 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# AGENDA:
# * Add README.md
echo '###########################'
echo 'Chapter 3: Adding README.md'
echo '###########################'
cp README.md README-orig.md # Save the original README.md file
mv mod-03-README.md README.md
git add .
git commit -m "Added README.md"
| true |
b016d0a9e0e0871139c1cea1af8897862a98a71f | Shell | ariakh55/Excalibur | /lstage.sh | UTF-8 | 517 | 2.546875 | 3 | [
"MIT"
] | permissive | ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
STAGE=$ROOT/build-vscode/WebServer
PLUGINS=$STAGE/plugins
RUNTIME=$PLUGINS/runtime
mkdir -p $PLUGINS
mkdir -p $RUNTIME
cp $ROOT/build-vscode/WebServer/ChatRoomPlugin/libChatRoomPlugin.so $PLUGINS
cp $ROOT/build-vscode/WebServer/EchoPlugin/libEchoPlugin... | true |
a3040a2d064f628266021b6c8cf37b042b3df943 | Shell | kolaente/xgo | /docker/base/build.sh | UTF-8 | 36,341 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Contains the main cross compiler, that individually sets up each target build
# platform, compiles all the C dependencies, then build the requested executable
# itself.
#
# Usage: build.sh <import path>
#
# Needed environment variables:
# REPO_REMOTE - Optional VCS remote if not the primary reposit... | true |
5667bbcc19eba979feb73369601a716396a42dad | Shell | wdoucette/wayne | /qa/exe_test | UTF-8 | 498 | 3.640625 | 4 | [] | no_license | #!/bin/bash
# Executes command with arguments. Capturing stdout in $RESULT keeps
# stdout clean while maintaining the same performance bottleneck
# as dumping to stdout
# time measures return time
# Usage
# ./exit_test ./test_prog args
set -e
COMMAND="$1 $2 $3"
echo >&2
echo "exe_test command: $COMMAND" >&2
# Do... | true |
0c5def851252819256b007bb92e719558f0f6f7a | Shell | wvandertoorn/cmp_benchmarks | /cmp_benchmarks.sh | UTF-8 | 7,295 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
set -Eeuo pipefail
# default values
jobct=1
def_rel_perf_path="test/performance"
threshold=0.05
usage="Usage: ./cmp_bnchm.sh -m mode -n name_tag -b baseline -c contender \
[-s source/code/path] [-r relative/benchm/suite/path] [-t threshold] [-o results/path] [-g compiler] \n\
\n\
-m : 're... | true |
fca643bec7c963cb45f3c624b4ac8112ee831cd8 | Shell | foobar999/Wikipedia-Cluster-Analysis | /old/get_swapped_author_doc_contribs.sh | ISO-8859-3 | 399 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash -e
if (( $# != 1 )); then
echo "Usage: $0 DOC_AUTH_FILE"
exit 1
fi
DOC_AUTH_FILE=$1
head -n 1 $DOC_AUTH_FILE # bernehme erste Zeile
head -n 2 $DOC_AUTH_FILE | tail -n 1 | awk '{ print $2 " " $1 " " $3}' # tausche #dokumente,#autoren in zweiter zeile
tail -n +3 $DOC_AUTH_FILE | sort -k 2 -ns | awk ... | true |
6f83fd90338524fb55cb0ee7aad9e40eddc0a84d | Shell | s-hell/dotfiles | /configs/.bash.d/bashdreader | UTF-8 | 254 | 3.25 | 3 | [] | no_license | #!/bin/bash
# Source local definitions
if [ -d ~/.bash.d ]; then
for RC_FILE in ~/.bash.d/*.bash; do
# FILE exists and read permission is granted
if [ -r "$RC_FILE" ]
then
. "$RC_FILE"
fi
done
fi
# vim: set syntax=sh:ts=4:sw=4
| true |
ffa41d2f88d547d715ecded5f83ede77db17059b | Shell | tumayouzi/airi | /build.sh | UTF-8 | 1,818 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# for build arg
export LANG=C
export LC_ALL=C.UTF-8
export ALLOW_MISSING_DEPENDENCIES=true
export SOONG_ALLOW_MISSING_DEPENDENCIES=true
export CCACHE_DIR=${CCACHE_DIR}
export USE_CCACHE=1
#ccache
#CCACHE_CAP="50G"
# record the current dir.
workdir=`pwd`
# set log file name
filename="${BUILD_TIMESTAMP}_$... | true |
4d26729f645b03af7140408283b5c754a9ffacc0 | Shell | hamrogeet/stackfor | /_resources/crispy/crispy/bin/crispy-go | UTF-8 | 975 | 3.40625 | 3 | [] | no_license | #!/bin/bash
set -e
# FILENAME: crispy-go
# BUILD: 170830
# DESCRIPTION: Manages the "Go" language package for crispy
# AUTHORS: Christopher Banwarth (development@aprettycoolprogram.com)
# COPYRIGHT: 2017 A Pretty Cool Program
# LICENSE: Apache License, Version 2.0 [http://www.apache.org/... | true |
6934abf4355c328110e133bc15ee8deb1d01d20c | Shell | ingridHu/RobAirInterfaces | /launch.sh | UTF-8 | 219 | 2.765625 | 3 | [] | no_license | #! /bin/bash
echo -e "Lancement des serveurs"
cd server
nodejs server.js &
sleep 3
nodejs ../signalingserver/server.js &
echo -e "Serveur lancé"
namevariable=$(uname)
echo "$namevariable"
echo -e "Fin du programme"
| true |
0663ba29c76f955252f679aebfd9327c7a5722c9 | Shell | deanban/quoverflow | /bin/configure_db.sh | UTF-8 | 1,238 | 2.59375 | 3 | [] | no_license | #!/bin/bash
echo "Dropping QUOVERFLOW"
dropdb -U node_user quoverflow
echo "Creating QUOVERFLOW"
createdb -U node_user quoverflow
echo "Assigning People: Running account.sql"
psql -U node_user quoverflow < ./bin/sql/account.sql
echo "Creating Categories: Running category.sql"
psql -U node_user quoverflow < ./bin/sql/c... | true |
15bedcf72293b0aa790438d54805e70e8296a3f4 | Shell | openequella/openEQUELLA-Tools | /zk-poll-ensemble/zk-poll-ensemble.sh | UTF-8 | 898 | 2.703125 | 3 | [] | no_license | #!/bin/bash
# Gather information about a ZK ensemble.
date
echo Querying node 1...
echo Querying [[mntr]] on node 1:
echo mntr | nc zk_node_1_ip zk_node_1_port
echo Querying [[cons]] on node 1:
echo cons | nc zk_node_1_ip zk_node_1_port
echo Querying [[wchc]] on node 1:
echo wchc | nc zk_node_1_ip zk_node_1_port
ech... | true |
bed79bfef6568ed7b85f21c1a6a85c5d36626e0f | Shell | envato/bundle-update-buildkite-plugin | /unwrappr/annotate.sh | UTF-8 | 651 | 3.546875 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
echo "--- :bundler: Installing Unwrappr"
cat <<\GEMS > Gemfile
source 'https://rubygems.org/'
gem 'unwrappr'
GEMS
bundle install --jobs="$(nproc)"
echo "+++ :github: Annotating Github pull request"
repository=$1
pull_request=$2
gemfile_lock_files=("${@:3}")
if [[ ${#gemfile_lock... | true |
1d85a83970820e886c44b0e6a769fedc708f6047 | Shell | ark3/dotfiles | /bin/listening_on | UTF-8 | 193 | 3.46875 | 3 | [] | no_license | #!/bin/bash
function listening_on() {
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <port>"
return 1
fi
lsof -nP -i :"$1" | egrep '^COMMAND|LISTEN'
}
listening_on "$@"
| true |
06b044ed11280eecbca3c45063d3f10553d2c444 | Shell | Shanni/dht-kvstore | /gcp/bin/gcp-set-zone.sh | UTF-8 | 164 | 2.875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#set -x
set -e
ZONE="us-west1-b"
if [[ $1 -gt 7 && $1 -lt 24 ]]; then
ZONE="us-west2-b"
elif [[ $1 -ge 24 && $1 -lt 40 ]]; then
ZONE="us-west1-a"
fi
| true |
69d74f4a8a7110becc10bf5460b5a4dc0fa444f1 | Shell | wsicheng/CSCOfflineTiming | /CSCTimingAnalyzer/batch/mergeTrees.sh | UTF-8 | 136 | 2.59375 | 3 | [] | no_license | #!/bin/bash
INPUT_DIR=$1
OUTPUT_FILE=$2
input_files=(`ls -1 ${INPUT_DIR}/timingBaby*.root`)
hadd -f ${OUTPUT_FILE} ${input_files[*]}
| true |
4035ff3dae97f09cd63310c0b170b3a2c9306456 | Shell | puppetlabs-seteam/workshop_deploy | /scripts/generate_boltws_inventory.sh | UTF-8 | 1,502 | 3.90625 | 4 | [] | no_license | #! /bin/bash
# call this script with 3 arguments: <amount of targets> <AWS region> <AWS user>
# example:
# sh ./scripts/generate_boltws_targets_inventory.sh 15 eu-west-3 kevin
if [ $# -eq 0 ]; then
echo "No arguments supplied, must supply a count"
exit 1
fi
[ -n $1 ] && [ $1 -eq $1 ] 2>/dev/null
if [ $? -ne 0 ]; ... | true |
60f1e680b8c6f4841669470809f83f396965fbc2 | Shell | pramuditorh/iperf3-qos-measurement | /server.sh | UTF-8 | 624 | 3.84375 | 4 | [] | no_license | #!/bin/bash
while getopts p:i:f:l:h: flag
do
case "${flag}" in
p) port=${OPTARG};;
i) interval=${OPTARG};;
f) filename=${OPTARG};;
l) loops=${OPTARG};;
h) echo "Script to take QoS measurement using Iperf3"
echo "How to USE: ./server.sh -p [PORT] -i [INTERVAL] -f [FILENAME] -l [LO... | true |
ec89d175967e9c0f484023cf52678dc4d993f595 | Shell | skulbrane/dtconf | /.zshrc.d/01-init.zsh | UTF-8 | 1,328 | 3.375 | 3 | [] | no_license | # TODO: This file does not make much sense, most of this
# config should prob live in shlenv.zsh
#
export DATE=$(date +'20%y-%m-%d')
export TRUE=1
export FALSE=0
source "$HOME/dtconf/shlib/shlenv.zsh"
if [ ! "$(is_linux)" -eq 0 ]; then
# Required Environment Variables
#
# SYSTEMROOT - Windows Base D... | true |
fc841e40df8df029f9348ac5a212930cc56e10c3 | Shell | mowgli/ansible-firefox-addon | /tests/container-test.bats | UTF-8 | 3,680 | 3.359375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bats
# testing requirements: docker, ansible
# https://github.com/tutumcloud/tutum-fedora
readonly docker_image="tutum/fedora:21"
readonly docker_container_name="ansible-firefox-addon"
readonly addon_url=https://addons.mozilla.org/en-US/firefox/addon/adblock-plus
docker_exec() {
docker exec $docker_... | true |
c5dcaa7d6d7369106a9a9074f675f6234a8ec112 | Shell | JuanParker1/pr-noe | /crawlers/lanceUpdateFresh.sh | UTF-8 | 528 | 2.921875 | 3 | [] | no_license | while true; do
echo "Search crypto 1/2"
coffee ./updateNew2WithCrawl.coffee > tokens.json
ret=$?
cp ./tokens.json ../cryptos.json
if [[ $ret -gt 0 ]]; then
echo "Fin"
break
fi
echo "Search crypto 2/2"
coffee ./updateNew2WithCrawl.coffee > tokens.json
ret=$?
cp ./tokens.json ../cryptos.json... | true |
2bd547f587bf18e15b5ae1a4537b4c5d0d28e961 | Shell | elliott-davis/hab-image-export | /hab-image-system/plan.sh | UTF-8 | 444 | 2.515625 | 3 | [] | no_license | pkg_name=hab-image-system
pkg_origin=core
pkg_version="0.1.0"
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
pkg_license=('Apache-2.0')
pkg_deps=(
core/iproute2
core/busybox-static
core/util-linux
core/coreutils
core/hab
smacfarlane/kmod
)
pkg_bin_dirs=(bin)
do_build() {
return 0
}
do_inst... | true |
fd2618c262905e7539cea9d8ea93e03b696b116a | Shell | Lucas-Fan/shell | /if.sh | UTF-8 | 158 | 3.046875 | 3 | [] | no_license | #!/bin/bash
#by authors fzyt 2019
NUM1=100
NUM2=200
if [ $NUM1 -gt $NUM2 ];then
echo "This $NUM1 greate $NUM2 !"
else
echo "This $NUM2 greate $NUM1 !"
fi
| true |
cba06f10aac0b48786c788088aa98694da547b05 | Shell | kkbaranski/journey-planner | /client/uninstall | UTF-8 | 1,316 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#===============================================================
#
# [ author: Krzysztof Baranski ]
#
# CLIENT ( uninstall )
#
#===============================================================
setuplock='.setuplock'
project_name='client'
build='.build'
source='source'
main_class='Application'
commons_... | true |
bbd012e0f8683ee3ccf93d2f8621234b964c5991 | Shell | VladRyvkin/LPI-OS | /mediainst.sh | UTF-8 | 2,538 | 3.171875 | 3 | [] | no_license | #!/bin/bash
sleep 0.3s;
echo ""
sleep 0.3s;
echo "file: mediainst.sh"
echo ""
sleep 0.3s;
echo "In this file we have program for multimedia"
sleep 0.3s;
echo ""
echo "vlc, musescore"
echo ""
sleep 0.3s;
while true; do
read -p "Do you wish to install this programs?" yn
case $yn in
[Yy]* ) sleep 0.3s; e... | true |
d5d20a2274db27ac8974656aeab662c333236589 | Shell | maxiroellplenty/roellsh | /rsh.sh | UTF-8 | 874 | 3.375 | 3 | [
"MIT"
] | permissive | # Version
export VERSION="1.0"
# Global Vars
export _ROELLSH_DIR=~/rsh;
export _PLUGINS_DIR=$_ROELLSH_DIR/plugins;
# Config
export showQuote=false;
# Source all Plugins
for f in `ls $_PLUGINS_DIR`; do source $_PLUGINS_DIR/$f; done;
# Source core files
source $_ROELLSH_DIR/core/core.sh
function rsh()
{
# Show ... | true |
c764ea7c04fb124d8b70bc9398c8f52b1d6cd993 | Shell | HSchmale16/UsefulScripts | /bashrc | UTF-8 | 2,176 | 3.78125 | 4 | [
"MIT"
] | permissive | # Henry J Schmale
# October 11, 2015
#
# An extra bashrc file that contains various useful aliases and functions
# Add to your enviroment by adding the following lines to your regular
# .bashrc. It also does some other terminal magic like setting up my
# enviroment the way that I like it to be setup.
# I wrote this be... | true |
68dc4b7a884ee302361d7afbb491e9614d1fff9f | Shell | google/site-kit-wp | /bin/backstop | UTF-8 | 1,388 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# Site Kit by Google, Copyright 2022 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | true |
0233eed719beca599c945311f7dc771b77e34fb5 | Shell | pankajyadav23/xoriant-devops | /prometheus/1.8/Exporters/mysqld_exporter/mysqld_exporter-0.10.0.sh | UTF-8 | 925 | 3.015625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Author : Pankaj Yadav
# What does the script do:
# 1. Add user mysqld_exporter
# 2. Download mysqld_exporter-0.10.0 and intall it on local system
# 3. start mysqld_exporter as service
# 4. Perform a "./mysqld_exporter-0.10.0.sh" ->> This should succeed
sudo useradd --no-cr... | true |
2dfb5024ddb656deeac43ba3760413e5b66a1d5b | Shell | Tmark1022/shell-script | /util/find_jltx_db_backup_data/find_db_data_uid.sh | UTF-8 | 629 | 3.5 | 4 | [] | no_license | #!/bin/bash
#*************************************************************************
# > Author : tmark
# > Created Time : Wed 01 Jul 2020 09:41:04 AM CST
# > File Name : find_db_data_uid.sh
# > Description : 找uid对应的文件
#*************************************************************************
usage() {
echo "usage... | true |
d97fb9143a5c17e97528a562d29e7e093ca48c22 | Shell | hackclub/hack-as-a-service-v0 | /dokku_plugin/subcommands/letsencrypt-enabled.sh | UTF-8 | 198 | 2.984375 | 3 | [] | no_license | #!/bin/bash
source "$PLUGIN_AVAILABLE_PATH/letsencrypt/functions"
set +e
letsencrypt_is_active $2 > /dev/null
case $? in
"0")
# Enabled
echo "true"
;;
*)
# Wheeeeee
echo "false"
;;
esac
| true |
48080843a234f08cd3561d34d35de0adb0722c03 | Shell | thomastweets/kentron | /vars.sh | UTF-8 | 462 | 2.53125 | 3 | [] | no_license | # Set the IP address of the VPS
export VPS_IP=1.2.3.4
export VPS_NAME=kentron
# SSH credentials
export SSH_USER=deploy
export SSH_KEY=~/.ssh/server_deploy_rsa
# docker environment
alias de='env | grep DOCKER_'
alias dm='docker-machine'
eval "$(docker-machine env $VPS_NAME)"
# reverseProxy settings
export DEFAULT_HOS... | true |
7919b6a1342f52daef2a35f17b7e4dee2d7a7051 | Shell | kazi-nutanix/karbon-toolkit | /Pro SDK/get_KarbonK8sConfig.sh | UTF-8 | 2,635 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
# this script is test and verfied against karbon 2.2.1 only
set -e
now=$(date)
KUBECONFIG_PATH="$HOME/.kube"
mkdir -p ${KUBECONFIG_PATH}
source $SERVER_CONFIG/data.cfg
SVC_ACCOUNT_PASSWORD=$PRISM_PASSWD
function join { local IFS="$1"; shift; echo "$*"; }
rm -f clusters 2> /dev/null
echo "$now Fe... | true |
fdf8e39c0cf54c70231e03bd3bc57f36882b80fb | Shell | Fematich/EMall | /workflow.sh | UTF-8 | 372 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#hstnm=$(hostname)
#hostid=$(echo ${hstnm:0:18} | egrep -o '[[:digit:]]{1,2}')
#if [ $hostid -ne 1 ]
# then
# ./EMall.sh init /work/data/mediargus_2011_be/configs/config1520
# fi
for config in /work/configs/boostconfigs/config_boost*
do
./EMall.sh mine_bursts $config
done
for config in /work/configs/... | true |
ebe3c8b465adf261839c95ae3b1990b1d3e81790 | Shell | j3n660t/fiberhome-AN5506-04F- | /filesystem/fh/extend/upnp/upnp-run | UTF-8 | 1,119 | 2.515625 | 3 | [] | no_license | #!/bin/sh
if [ ! -d /etc/linuxigd ]
then
rm -rf /etc/linuxigd
mkdir /etc/linuxigd
fi
if [ ! -f /etc/linuxigd/dummy.xml ]
then
cp /fh/extend/upnp/dummy.xml /etc/linuxigd
fi
if [ ! -f /etc/linuxigd/gateconnSCPD.xml ]
then
cp /fh/extend/upnp/gateconnSCPD.xml /etc/linuxigd
fi
if [ ! -f /etc/linuxigd/gat... | true |
9450d4ee1cf26ffca359ee9d94ca9c4af309202c | Shell | vletroye/SynoPackages | /DSM 6.x/MODS phpMyAdmin 4.9.0/scripts/start-stop-status | UTF-8 | 441 | 3.015625 | 3 | [] | no_license | #!/bin/sh
. "$(dirname $0)"/common
case "$1" in
start)
rm -rf "${NGINX_CONF_DIR}/${NGINX_DISABLE_CONF}"
ln -sf "${PHPMYADMIN_NIGNX_CONF}/${NGINX_ENALBE_CONF}" "${NGINX_CONF_DIR}"
;;
stop)
rm -rf "${NGINX_CONF_DIR}/${NGINX_ENALBE_CONF}"
ln -sf "${PHPMYADMIN_NIGNX_CONF}/${NGINX_DISABLE_CONF}" "${NGINX_CONF_... | true |
8e1f36c62ee8f4a8e5211455986d71c2b7d6fbc7 | Shell | sam-hirsch/blender_updater | /blender_updater.sh | UTF-8 | 185 | 2.84375 | 3 | [
"MIT"
] | permissive | #!/bin/sh
BRANCH=$1
BASE_PATH=$2
FULL_PATH=$3/$1
cd ${BASE_PATH}
echo CHECKOUT
git checkout ${BRANCH}
echo UPDATE
make update
echo BUILD
make release BUILD_DIR=${FULL_PATH}
echo DONE
| true |
b748dabef75bc087e9da2331afbd7e3b2d2df8ab | Shell | marcelohmdias/dotfiles | /setup/tools/sdkman.sh | UTF-8 | 526 | 3.484375 | 3 | [] | no_license | #!/bin/bash
cd "$(dirname "${BASH_SOURCE[0]}")" && . "./../utils.sh"
# -----------------------------------------------------------------------------
main() {
local -a url="https://get.sdkman.io"
print_msg_sub_info "SDKMan"
if cmd_exists "sdk"; then
print_msg_success "SDKMan Installed"
else
execute ... | true |
ee52579bff738b9dad5d9a8e89fc15b87aab59ee | Shell | plume-design/opensync-platform-bcm | /rootfs/hooks/common/pre-install | UTF-8 | 746 | 3.234375 | 3 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | #!/bin/sh
# libopensync.so needs to be accessible from /lib or /usr/lib
# otherwise hostTools/libcreduction complains with error:
# *** Missing 32-bit libraries: libopensync.so. Stop.
#
# Create a symlink from /usr/lib/opensync to /usr/opensync/lib
ROOTFS="$1"
DEST_LIB_DIR="/usr/lib"
[ -z "$INSTALL_PREFIX" ] && INST... | true |
2ae6b4a96221d5b9a3c5214e990fba9d2cd78eb5 | Shell | jeff-brownlee/bisg | /public/build/build.sh | UTF-8 | 428 | 2.640625 | 3 | [] | no_license | rm -rf output
node r.js -o build.js
node r.js -o cssIn=../css/styles.css out=output/css/styles.css
cp ../index.html output/index.html
REQUIRE_VERSION='1.0.5'
SEDCMD='sed -i'
if [[ $OSTYPE == *"darwin"* ]]; then
SEDCMD=$SEDCMD' .tmp'
fi
SEDCMD=$SEDCMD' s/js\/libs\/require\/require.js/http:\/\/requirejs.org\... | true |
3bb0878736e5727bc240ad12b1ff3145e84a6f8d | Shell | lianarem/powscript | /.tools/compile | UTF-8 | 5,195 | 3.6875 | 4 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
set -E
Dir="$(readlink -m "$(dirname "${BASH_SOURCE[0]}")/..")"
PowscriptSourceDirectory="$Dir/src"
PowscriptLibDirectory="$Dir/lib"
if [ -f ./powscript ]; then
mv "$Dir/powscript" "$Dir/.powscript.backup"
trap '{ mv "$Dir/.powscript.backup" "$Dir/powscript"; exit; }' ERR
fi
source "$Powscri... | true |
681bb2125af38dec9bc8b874604198cb75d2ac06 | Shell | jeffgarrett/dotfiles | /old/install | UTF-8 | 1,557 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash -ex
function install {
url="$1"
dir="$2"
ext="$3"
arg="$4 $5"
tmp="$(mktemp -d)"
trap "rm -rf $tmp" EXIT
curl -s -L "$url" -o "$tmp/archive"
mkdir "$tmp/extract"
(
cd "$tmp/extract"
"$ext" $arg ../archive
mkdir -p "$dir/"
rsync --delete -av ./ "$dir/"
)
}
# rust-analy... | true |
e394ce963f54aa94b3fdf574e618c6156d150380 | Shell | anishchakka/misc_codes | /shell/do_these_files_exist.sh | UTF-8 | 264 | 3.5625 | 4 | [] | no_license | #! /bin/bash
# if transferring excel txt file to unix, use the below command
# sed -i sed 's/\r$//' input_file.txt
# file with list of file names
file=$1
while IFS= read -r line
do
if [ ! -f "$line" ]; then
echo "$line does not exist."
fi
done < "$file"
| true |
4b980944898ff96f28bfbc95fec0772813cc877f | Shell | hsondd/learn | /shell/sed_Highlight_First_char.sh | UTF-8 | 101 | 2.734375 | 3 | [] | no_license | #!/bin/bash
IFS= read -r -p "Enter sentence: " input
echo "$input" | sed 's/\(\b[A-Z]\)/\(\1\)/g'
| true |
07128155db1fdf84855efc44827a9483f8326633 | Shell | mmgaggle/hive-testbench | /tpcds-concurrent-run.sh | UTF-8 | 613 | 2.984375 | 3 | [] | no_license | #!/bin/bash
QUERY_DIR=$1
CONCURRENCY=$2
for x in `seq 1 $CONCURRENCY`
do
echo "query_set,run_id,engine,format,scale_factor,query,status,start,end,tot_time,query_time,rows" > $1/tpc_stats_$x.log
done
#for scale in 1000 10000 100000
for scale in 1000 10000
do
#for engine_format in "presto orc" "spark parquet"... | true |
08b332892b01ef8bbb657f8bd7daff888db8c23c | Shell | MitchRatquest/HackadaySynth | /configs/overlay/etc/network/if-up.d/wireguard_startup | UTF-8 | 536 | 2.625 | 3 | [] | no_license | #!/bin/sh
source /etc/wireguard/conf
#private key is generated via `wg genkey`
#public key is `echo $PRIVATEKEY | wp pubkey`
#the peer is the server's public key
#you put this computer's public key in the server's conf
#with the appropriate setup and routing information
#sets up the wireguard interface
ip link add ... | true |
c20ffdb4d4ca582b85985d1d5b17b896f4616f08 | Shell | Shengliang/language | /bash/lonely_int.sh | UTF-8 | 173 | 3.3125 | 3 | [] | no_license | #!/bin/bash
#Find the lonely int in an array.
# cat lonely_int.txt | ./lonely_int.sh
read -r LIMIT
x="0"
read -a arr
for n in ${arr[@]}
do
x=$(( $n ^ $x ))
done
echo $x
| true |
586f47bdcd08a85cf8cbbbff6cdfad5b3d1b63a1 | Shell | swordhui/xglibs | /stages/filedel.sh | UTF-8 | 246 | 3.546875 | 4 | [] | no_license | #!/bin/sh
# file system check tool
# check what's inside a directory
#generate file list
if [ -z "$1" ]; then
echo "No ext specified. filedel.sh exe"
exit 1
fi
echo "deleting *.$1..."
find -type f -iname "*.$1" -exec rm '{}' ';'
echo "done"
| true |
c850814a634f8894863e3a1f0e9e61fa7ba17982 | Shell | Anthony-Mattson/mini-project | /launch.sh | UTF-8 | 1,737 | 3.515625 | 4 | [] | no_license | #!/bin/bash
### USAGE:
# User calls `launch-app stack-name`
### REQUIREMENTS:
# * Valid AWS account (run aws configure)
# * Docker
###
CORE_STACK_NAME=$1
# Create the ECR repo.
echo "Creating ECR Stack..."
aws cloudformation create-stack \
--stack-name ${CORE_STACK_NAME}-ecr \
--template-body file://in... | true |
295ff30fa4c95c74bfd6752842d94ad694752d27 | Shell | OnGle/torrentserver | /conf.d/main | UTF-8 | 1,054 | 2.90625 | 3 | [] | no_license | #!/bin/sh -ex
STORAGE=/srv/storage
PASSWORD=turnkey
#SRC=/usr/local/src
#WEBROOT=/var/www/rutorrent
mkdir -p $STORAGE/incoming
mkdir -p $STORAGE/quarantine
mkdir -p $STORAGE/download
chown -R debian-transmission:users $STORAGE/incoming
chown -R debian-transmission:users $STORAGE/quarantine
chown -R debian-transmiss... | true |
61972f45203fd89e1022e119d2ca6698f6c1f923 | Shell | fizzed/jne | /setup/build-native-lib-linux-action.sh | UTF-8 | 556 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
BASEDIR=$(dirname "$0")
cd "$BASEDIR/.."
PROJECT_DIR=$PWD
BUILDOS=$1
BUILDARCH=$2
# Setup cross compile environment
if [ -f /opt/setup-cross-build-environment.sh ]; then
. /opt/setup-cross-build-environment.sh $BUILDOS $BUILDARCH
fi
. setup/setup-environment.sh
mkdir -p target
rsync -avrt --dele... | true |
89fd5b4bc4159a51aef5bc4f92b036a8f4b23cd5 | Shell | urbanmassage/gist | /octopus/push_package.sh | UTF-8 | 690 | 3.09375 | 3 | [
"MIT"
] | permissive | set -f
BASE_DIR=$(dirname $0)
RELEASE_DIR="${BASE_DIR}/deploy"
OCTOPUS_FULL_BASE="https://${OCTOPUS_BASE}/api"
OCTOPUS_PROJECTS_URL="${OCTOPUS_FULL_BASE}/projects/all"
CURRENT_BUILD_NO=$1
CURRENT_PROJECT_NAME=$2
PROJECT_NAME="${CURRENT_PROJECT_NAME}.${CURRENT_BUILD_NO}"
ZIP_FILE="${PROJECT_NAME}.zip"
zip -r "${BASE... | true |
98283e3055f755dc003012e0cf81e35330dc7536 | Shell | deathgrindfreak/dotfiles | /zsh/Library/bashrc.d/009.misc.sh | UTF-8 | 135 | 2.953125 | 3 | [] | no_license | #!/usr/bin/env bash
boop() (
local last="$?";
if [ $last -eq 0 ]; then
sfx good
else
sfx bad
fi
$(exit "$last")
)
| true |
975a9cb024fa0357941f67c030a5bf8e1c6d74b5 | Shell | redhat-cip/puppet-installserver | /install.sh | UTF-8 | 1,018 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#
# Deploy a SpinalStack Install Server Quickly
#
ORIG=$(cd $(dirname $0); pwd)
if [ -d /vagrant ]; then
ORIG="/vagrant"
fi
if [ -f /etc/redhat-release ]; then
OS=redhat
elif [ -f /etc/lsb-release ]; then
OS=ubuntu
elif [ -f /etc/debian_version ]; then
OS=debian
else
echo "Error - OS unknown"
exit ... | true |
f1e263d56448b6a5bbeb8d96c42e1c08a3da1a57 | Shell | darrenldl/oali-profiles | /laptop/scripts/usb_key_reset_loader_template.unused | UTF-8 | 1,375 | 4.09375 | 4 | [
"MIT",
"Unlicense"
] | permissive | #!/bin/bash
echo "This is the loader script for the main USB key resetting script"
echo ""
echo "Looking for main USB key resetting script over to live CD environment"
target_path="/root"
main_script_name=LLSH_USB_KEY_RESET_MAIN_DUMMY
main_script_path="$target_path"/"$main_script_name"
usb_key_unloader_name=LLSH_... | true |
5c5ef8abc95fd181e38bc406526025d411e4107b | Shell | willgage/git-scripts | /branch_gc | UTF-8 | 6,678 | 4.25 | 4 | [] | no_license | #!/bin/bash
usage() {
echo ""
echo "$0 [-D -m -r -h]";
echo ""
echo "DANGER: MAY DELETE MANY BRANCHES. This program tries to be careful, but a mistake in use could be costly."
echo ""
echo "Cleans up branches which have already been merged with respect to a master branch and a remote;"
echo "removing bo... | true |
8123cf7cd4b3668671d8bd142133bbd8fe97f26a | Shell | starlingx/config | /sysinv/sysinv/sysinv/etc/sysinv/sysinv_goenabled_check.sh | UTF-8 | 790 | 3.75 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#
# Copyright (c) 2013-2014 Wind River Systems, Inc.
#
# SPDX-License-Identifier: Apache-2.0
#
# SysInv "goenabled" check.
# Wait for sysinv information to be posted prior to allowing goenabled.
NAME=$(basename $0)
SYSINV_READY_FLAG=/var/run/.sysinv_ready
logfile=/var/log/platform.log
function LOG {
... | true |
c96dff8993bde5376e5435e85364e45c65573d44 | Shell | apache/bookkeeper | /tests/docker-images/all-versions-image/image_builder.sh | UTF-8 | 1,730 | 3.046875 | 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 (th... | true |
8cdc160aeee21a0cd0abe746c80d0cc0798aa7f3 | Shell | speechLabBcCuny/nnaAudiosetClassification | /bin/copyWav2Flac.sh | UTF-8 | 772 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Copy wav files in a directory tree to another directory tree of flac
# files. If third and fourth arguments (K and N) are provided, then
# take every Nth filename starting at position K (for parallelization
# across several simultaneous runs).
if [ $# -lt 3 -o $# -gt 5 ]; then
echo "Usage: `basename... | true |
5c426e1a7d17bcbb6ab96b620aa423dcaf50a24d | Shell | mixianghang/shellscripts | /bph/whoisData/format/addAsn2InetnumForOneRegistry.sh | UTF-8 | 1,045 | 3.59375 | 4 | [] | no_license | #!/bin/bash
formatBaseDir=/data/seclab/BPH/Uniform/
bgpBaseDir=/data/salrwais/BPH/Whois/API/BGP/
currDir=/data/seclab/BPH/Xianghang/bulkData/Scripts/format/
scriptDir=/data/seclab/BPH/Xianghang/bulkData/Scripts/format/
if [ $# -ge 3 ];then
startDate=$1
endDate=$2
registry=$3
else
echo "Usage startDate endDate r... | true |
0fcf080a0f40bbfe65fc8a5ae8d0fe22e550705f | Shell | andsmedeiros/uevloop | /scripts/publish.sh | UTF-8 | 3,062 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/env bash
function get_version() {
if [[ ! -e .version ]]; then
echo "No .version file found. Creating."
touch .version
echo "0.0.0" > .version
fi
current_version=`cat .version`
custom_version=""
new_version=""
replace_pat=""
echo "Current version is $current_version"
read -p "Sele... | true |
7e8988da0cc08c8ca626442187bc25c0e1be9c55 | Shell | shrikantb-tux/scripting | /python/wow_1.sh | UTF-8 | 1,424 | 3.890625 | 4 | [] | no_license | #! /bin/bash
# This is simple shell script with below exercises.
# for loop on array to give the colors
declare -a listnew=(yellow blue organge green)
# for loop with case
while listnew
do
echo $colors
done
# for loop
for colors in listnew
do
echo $colors
done
# conditional for file exists or not
if [[ -f next1... | true |
c4ccc30ac16d73e8b3c7ec29ff6d3a2f22d19f9e | Shell | oamg/leapp-repository | /repos/system_upgrade/common/tools/removerpmgpgkeys | UTF-8 | 233 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/sh
exit_code=0
for key in "$@"; do
echo >&2 "Info: Removing RPM GPG key: $key"
rpm --erase "$key" || {
exit_code=1
echo >&2 "Error: Failed to remove RPM GPG key: $key"
}
done
exit $exit_code
| true |
cb26a3e5e09dba872e134d640f3eebcef4878f99 | Shell | n3rd4n1/bitsNpieces | /tc-bfs/scripts/uclibc-stage2.sh | UTF-8 | 446 | 2.8125 | 3 | [] | no_license | #!/bin/bash
set -e
. ./env.sh
NAME=uclibc
SRC=${WORKDIR_SRC}/${NAME}
BLD=${WORKDIR_BLD}/${NAME}-stage2
FLAGS="V=1 ARCH_CFLAGS= CPU_CFLAGS= KERNEL_SOURCE=${SYSROOT}/usr/ KERNEL_HEADERS=${SYSROOT}/usr/include/ CROSS_COMPILER_PREFIX=${INSTALL}/bin/${CROSS_COMPILE} RUNTIME_PREFIX=/ DEVEL_PREFIX=/usr/"
rm -rf ${BLD}
mk... | true |
a23b15d8dc1b19f85c154039cb106bd3c39d9e90 | Shell | 4179e1/misc | /shell/bash/a.sh | UTF-8 | 139 | 2.796875 | 3 | [] | no_license | #!/bin/bash
func ()
{
echo $#
echo $*
echo $@
}
func $*
func $@
func "$*"
func "$@"
func "abc def"
func '"abc" "def"'
| true |
35d49e3d11e36c1bfa22e3a7d06a26de320c947f | Shell | Ascend/ModelZoo-PyTorch | /PyTorch/dev/cv/image_classification/CycleGAN_ID0521_for_PyTorch/weights/download_weights.sh | UTF-8 | 776 | 3.078125 | 3 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
FILE=$1
if [[ ${FILE} != "apple2orange" && ${FILE} != "summer2winter_yosemite" && ${FILE} != "horse2zebra" && ${FILE} != "monet2photo" && ${FILE} != "cezanne2photo" && ${FILE} != "ukiyoe2photo" && ${FILE} != "vangogh2photo" && ${FILE} != "maps" && ${FILE} != "facades" && ${FILE} != "iphone2dslr_flower" &... | true |
301010dbd4e1519a0f8315707c50708f6a2a6e94 | Shell | area3001/knixx-fez | /board/raspberrypi-fez/post-build.sh | UTF-8 | 594 | 3.390625 | 3 | [] | no_license | #!/bin/sh
set -u
set -e
# Add a console on tty1
if [ -e ${TARGET_DIR}/etc/inittab ]; then
grep -qE '^tty1::' ${TARGET_DIR}/etc/inittab || \
sed -i '/GENERIC_SERIAL/a\
tty1::respawn:/sbin/getty -L tty1 0 vt100 # HDMI console' ${TARGET_DIR}/etc/inittab
fi
# add release version to /etc/os-release
VERSION=$(git --... | true |
e16e95c56a45efcee4d222b69eade529f5ff429a | Shell | jfroment/seedbox | /tools/init-setup-nextcloud.sh | UTF-8 | 598 | 2.53125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
echo "[$0] Loading variables..."
source .env
echo "[$0] Installing nextcloud..."
docker exec -it -u abc -w /config/www/nextcloud \
nextcloud bash -c " \
php occ maintenance:install \
--database \"mysql\" \
--database-host \"nextcloud-db\" \
--database-name \"${MYSQL_DATABASE}\" \
... | true |
cfd113f5a609241b31142ba7d114dcfa7a068f9e | Shell | AnilKumarchunduri/Demo | /build.sh | UTF-8 | 1,053 | 3.03125 | 3 | [] | no_license | #!/bin/bash
COMPONENT_NAME=$1
BRANCH_NAME=$2
WORKSPACE=$3
RPM_DIR=${WORKSPACE}/${COMPONENT_NAME}/RPMs_${BRANCH_NAME}
mkdir -p ${WORKSPACE}/${COMPONENT_NAME}
mkdir -p ${RPM_DIR}
COMP=$(echo $COMPONENT_NAME | tr '[A-Z]' '[a-z]')
cd ${WORKSPACE}/${COMPONENT_NAME}
chmod -R 777 ${BRANCH_NAME}
if [ ${BRANCH_... | true |
11aac7b399cb938a551b2e04bee57396c34460a9 | Shell | mohamedafrid-lab/Python-UI | /cgi-bin/cpu-stress.sh | UTF-8 | 94 | 2.890625 | 3 | [] | no_license | #!/bin/bash
time=0
while [ $time -le 10 ]
do
uptime
sleep 1s
time=`expr $time + 1`
done
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.