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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
4089bcdc2178c91e6f808fbc30438d3b59003a1b | Shell | Zirpon/hero | /shell/runclient.sh | UTF-8 | 361 | 3.3125 | 3 | [] | no_license |
dirs=`ls | grep "dev"`
#echo "ddddd ${dirs}"
maxnum=100
if [ $# -gt 0 ]; then
maxnum=$1
fi
echo "maxnum $maxnum"
num=0
for i in ${dirs}; do
if [ $num -eq $maxnum ]; then
break
fi
exedir=./$i
if [ -d $exedir ]; then
echo $exedir
exepath=$exedir/dev.exe
start $exepath
let num=num+... | true |
2495149b06d8e406ba11dbb0a442bfe3a18b28dc | Shell | chendotjs/snippets | /crosscorrelation/test/convert_gray.sh | UTF-8 | 173 | 3.046875 | 3 | [] | no_license | #!/bin/bash
imgs=`ls *.png`
for file in $imgs
do
echo $file
newfile=${file%".png"}-gray.png
convert $file -fx '(r+g+b)/3' -colorspace Gray $newfile
echo $newfile
done
| true |
0629ce73704858e056246c57957cf63a9280fd73 | Shell | mafintosh/tabalot | /template.sh | UTF-8 | 998 | 3.6875 | 4 | [
"MIT"
] | permissive | # Tab completion for {cmd}
#
# Auto install to bash by doing:
# {install} --save
#
# Which similar to
# {install} > {completionDir}/{cmd}
#
# Remember to source {profile} or restart your terminal afterwards
# Manual install by adding the following to {profile} {zshrc-help}
if type complete &>/dev/null; then
_{cmd}_... | true |
67443e2354556994d56833e1c17d44135e01d845 | Shell | speedwing/cardano-auth | /build-api.sh | UTF-8 | 310 | 2.6875 | 3 | [] | no_license | #!/usr/bin/env bash
sbt "project api" stage
VERSION=$(git describe --tags)
DOCKER_IMAGE="gimbalabs/balcony-api:${VERSION}"
echo "Building image: ${DOCKER_IMAGE}"
docker buildx use x86
docker buildx build --platform linux/amd64 --load -t "${DOCKER_IMAGE}" -f api/Dockerfile .
docker push "${DOCKER_IMAGE}"
| true |
636036d016b19c7aed6115d4dbc555cd0a4015b8 | Shell | danilozano413/ionic-capacitor-release | /src/rename_directories.bash | UTF-8 | 401 | 3.421875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "Rename folders and directories ${2} -> ${3}";
# Rename directories
find ${1} -type d -name "${2}*" | while read FILE ; do
newfile="$(echo ${FILE} |sed -e "s/${2}/${3}/")" ;
mv "${FILE}" "${newfile}" ;
done
# Rename files
find ${1} -type f -name "${2}*" | while read FILE ; do
newfile=... | true |
f5b7108396402c8ed5d0df0175c22909c5ee577a | Shell | RonieGSS/bz_infra_design | /ops/docker/mkdocs/bin/logs | UTF-8 | 212 | 3.078125 | 3 | [] | no_license | #! /bin/bash
container_name='biz_mkdocs'
if docker ps -f name=$container_name | grep 'mkdocs' -o;
then
# Show container logs
docker logs --tail -f $container_name
else
echo "Mkdocs container not running!"
fi | true |
2b0c29be7880b19569c854aa03e655fa23a18e81 | Shell | harbaum/RPI-BLE-toy-control | /python-gatt-install.sh | UTF-8 | 927 | 3.453125 | 3 | [] | no_license | #!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "Dieses Script muss vom Root-User oder per sudo gestartet werden!" 1>&2
exit 1
fi
echo "Installiere python-gatt und bluez-5.44 ..."
systemctl stop bluetooth
apt-get update
apt-get -y install python3-pip python3-dbus
pip3 install gatt
apt-get -y install libusb-dev l... | true |
f237ad76f128ff6b5a71db0c36b8309fd4c5d069 | Shell | anubhavmishra/consul-service-mesh-gateways-demo | /vms/templates/consul-gateway.tpl | UTF-8 | 1,578 | 2.859375 | 3 | [] | no_license | #!/bin/bash
apt-get update && apt-get install -y unzip
# Fetch Consul
cd /tmp
wget https://releases.hashicorp.com/consul/1.6.0/consul_1.6.0_linux_amd64.zip -O ./consul.zip
unzip ./consul.zip
mv ./consul /usr/local/bin
# Fetch Envoy
wget https://github.com/nicholasjackson/cloud-pong/releases/download/v0.1.1/envoy -O ... | true |
e3245768bf6f0e908542e0b146200cf6b4d27daa | Shell | blakehull/medium-app | /docker-build.sh | UTF-8 | 432 | 2.734375 | 3 | [] | no_license | #!/bin/sh
docker build -t mltag:latest .
docker run -it -d -P mltag:latest
docker ps --format "{{.Ports}}"
url=$(docker ps --format "{{.Ports}}{{.Image}}" | grep mltag | cut -d- -f1 | tr -d '[:space:]')
container=$(docker ps --format "{{.ID}}->{{.Image}}" | grep mltag | cut -d- -f1 | tr -d '[:space:]')
echo "RUNNING O... | true |
bff427197d0715acae80f6f3d6482cef228e7111 | Shell | hugoShaka/pushjet-docker | /pushjet/pushjet.sh | UTF-8 | 1,347 | 3.515625 | 4 | [] | no_license | #!/bin/sh
# Need a lockfile so we dont try to initilize the database if we restart
LOCKFILE="/root/db_init_done"
PUSHJET_DIR="/srv/http/api.pushjet.io"
echo "Database settings are:"
echo "MYSQL_USER: ${MYSQL_USER}"
echo "MYSQL_PASS: ${MYSQL_PASS}"
echo "MYSQL_HOST: ${MYSQL_HOST}"
echo "MYSQL_PORT: ${MYSQL_PORT}"
ech... | true |
527c59e6e0b54502a256ee04ee4e2d3de3eb1513 | Shell | IBM-Security/performance | /IAM/scripts/SDS_tuning_scripts/db2perf.sh | UTF-8 | 2,237 | 3.78125 | 4 | [] | no_license | #!/bin/sh
##############################################################################
#
# Licensed Materials - Property of IBM
#
# Restricted Materials of IBM
#
# (C) COPYRIGHT IBM CORP. 2006. All Rights Reserved.
#
# US Government Users Restricted Rights - Use, duplication or
# disclosure restricted by GSA ADP ... | true |
3afb07461da392f17b2111bcc1822b3262ebea9f | Shell | MarounMaroun/shell-checker | /entrypoint.sh | UTF-8 | 774 | 3.328125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
GITHUB_API_URI="https://api.github.com"
GITHUB_API_HEADER="Accept: application/vnd.github.v3+json"
token="$1"
severity="$2"
exclude="$3"
echo "---= Excluded params: [$exclude] =---"
echo "---= Severity: $severity =---"
pr_num=$(jq -r .pull_request.number "$GITHUB_EVENT_PATH")
echo "---= Running on PR #$... | true |
75bd4e3f53ff68251bc86afd44e495e9072d14ba | Shell | truedays/desktop | /rfind.sh | UTF-8 | 5,637 | 3.828125 | 4 | [] | no_license | #!/bin/bash
#
# July 23, 2017 version 0.1
# Standardizing the way I organize with find.
# /tank == path to index
# -xdev == do not traverse other filesystems
#find /tank -xdev -printf "$(uname -n)\t%f\t%s\t%Cs\t%Ts\t%p\t%F\t%D\t%y\t%#m\t%i\t%u\t%U\t%g\t%G\n"; }
# %.10A@ == %A@ == unix time with high precission .10A@ =... | true |
1085931edfeb6964ce246e6e8bb28364b6a738ae | Shell | ninthdrug/doom | /script/main/sync_doom_user | UTF-8 | 296 | 2.59375 | 3 | [] | no_license | #!/bin/sh
LIBS=""
for JAR in $DOOMHOME/lib/*.jar
do
LIBS=$LIBS:$JAR
done
exec scala -save -cp "$LIBS" $0 $@
!#
import doom._
import ninthdrug.command._
val userid = prompt(args, 0, "userid")
for (domain <- ConfigCache.domains) {
Sh("sync_domain_user " + domain.name + " " + userid).print
}
| true |
26bd385630ff3da97b25a5033dfdaef293060126 | Shell | thomas-maurice/promulgator | /promulgate.sh | UTF-8 | 421 | 2.734375 | 3 | [] | no_license | #!/bin/sh
if [ -z "${1}" ]; then
echo "You need to promulgate something !"
exit 1
fi;
convert \
-background '#0000' \
-fill black \
-geometry +665+250 \
-size 210x290 caption:"${1}" \
-rotate -354 \
static/trump.jpg ... | true |
5e9ce82f2bd0e3e9591f80913c8f64a13867514f | Shell | Jeket/dotfiles-3 | /.bin/notsodeep.load | UTF-8 | 1,492 | 2.578125 | 3 | [] | no_license | #!/usr/bin/env bash
# https://github.com/farukuzun/notsodeep
# https://home.regit.org/netfilter-en/using-nfqueue-and-libnetfilter_queue/
# https://wiki.nftables.org/wiki-nftables/index.php/Moving_from_iptables_to_nftables
# remove if exist
sudo iptables -D INPUT -p tcp --tcp-flags SYN,ACK SYN,ACK --sport 443 -j NFQUE... | true |
a518d856114cb2a098eac0ddf8870446177d05d6 | Shell | Martiusweb/YaPhpDoc | /YaPhpDoc | UTF-8 | 381 | 3.4375 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# Configurable vars
script_name=YaPhpDoc.php
# Where is PHP binary ?
exe=`which php`
if [ ! -x "$exe" ]
then
echo 'Unable to find or run PHP, aborting'
exit 1
fi
# echo 'Found PHP Binary : '$exe
# Where am I ?
script_path=$(dirname `which $0`)
# echo 'Script path is : '$script_path
# Ready !
# echo ... | true |
66d0cb51662a285d8027727a9164803b0fdd74b3 | Shell | fr34k8/gentoo-cloud-image-builder | /config.sh | UTF-8 | 2,793 | 3.28125 | 3 | [] | no_license | #!/bin/bash
BASE_URL="http://distfiles.gentoo.org/releases/amd64/autobuilds/"
#IMG="gentoo.img"
#ISO="install-amd64-minimal-20150430.iso"
#STAGE=stage3-amd64-20150507.tar.bz2
#PORTAGE=portage-20150511.tar.bz2
#QEMU_MEMORY="512"
#QEMU_NET_TYPE="user"
#KERNEL_CONFIGURE="0"
#KERNEL_MAKE_OPTS=""
#EMERGE_EXTRA_PACKAGES
E... | true |
cb384033215c9d7c103774a21f945421ea96bfdf | Shell | Aranjan21/ec2-list | /elbservicerestart.sh | UTF-8 | 1,424 | 3.390625 | 3 | [] | no_license | arn=$(aws elbv2 describe-target-groups --names "internal-data-api" --query TargetGroups[].TargetGroupArn --output text)
instances=($(aws elbv2 describe-target-health --target-group-arn "${arn}" --query TargetHealthDescriptions[].Target.Id --output text))
instanceid=${instances[0]}
for instanceid in "${instances[@]}";... | true |
84f0e8677cb089974d80e134ac60421ac5f79211 | Shell | ncsa/GenomicsCortextVarNextflow | /nextflow_scripts/templates/PDVariantCallingInd.sh | UTF-8 | 1,725 | 3.671875 | 4 | [] | no_license | #!/bin/bash
######################################################################################################################################################################################
# Script to run PATH DIVERGENCE Cortex #
###################################################################################... | true |
bfa1982cbbbaca2128b79cb96a031db7f264e117 | Shell | PrakashYNWA/GO-JEK | /ParkingLot/parking_lot.sh | UTF-8 | 229 | 2.59375 | 3 | [] | no_license | #!/bin/bash
chmod 777 parking_lot.sh
PASSED=$1
if [[ -f $PASSED ]]
then
mvn package
java -jar target/ParkingLot-0.0.1-SNAPSHOT.jar file_inputs.txt
else
mvn package
java -jar target/ParkingLot-0.0.1-SNAPSHOT.jar
fi | true |
2c5b7d616b8b55f5b05dd51f66bcf40124dc8ac0 | Shell | crails-framework/puppeteer-recipe-wordpress | /setup/03_mariadb.sh | UTF-8 | 765 | 3.359375 | 3 | [] | no_license | #!/bin/bash -ex
source ./variables 2> /dev/null
apt-get install -y mariadb-server
systemctl enable mariadb.service
if [[ -z "$APP_SQL_DATABASE" ]] ; then
export APP_SQL_DATABASE="$INSTANCE_NAME"
fi
if [[ -z "$APP_SQL_USER" ]] ; then
export APP_SQL_USER="$APP_USER"
fi
user_exists=`mysql -e "SELECT COUNT(User) ... | true |
54e197c9f63beedf82239143e2a266a69054e845 | Shell | kubedge/kubedge-operator-ansible | /manualbuild.sh | UTF-8 | 613 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
export BASE_IMAGE=quay.io/water-hole/ansible-operator
export COMPONENT=kubedge-operator-ansible
export VERSION=0.0.1
export DHUBREPO="hack4easy/$COMPONENT-dev"
export DOCKER_NAMESPACE="hack4easy"
export DOCKER_USERNAME="kubedgedevops"
export DOCKER_PASSWORD=$KUBEDGEDEVOPSPWD
# cp $HOME/bin/arpscan .
ec... | true |
1b5c12172153ada8184ae2d87293513e21788b69 | Shell | chrmorais/device-custom | /common/mke2img.sh | UTF-8 | 260 | 3 | 3 | [] | no_license | #!/bin/bash
SRC=$1
DST=$2
SIZE=$(du -h -BM --max-depth=1 $SRC | awk '{print int($1)}')
# echo "create image size=${SIZE}M"
dd if=/dev/zero of=$DST bs=1M count=$SIZE >/dev/null 2>&1
mke2fs -F -t ext2 $DST >/dev/null 2>&1
mke2fs -F -d $SRC $DST >/dev/null 2>&1
| true |
78db1410ab5cdb9dcab3ffdfc0fb03e05c2d6281 | Shell | ViBiOh/scripts | /release | UTF-8 | 8,428 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -o nounset -o pipefail -o errexit
if [[ ${TRACE:-0} == "1" ]]; then
set -o xtrace
fi
release_clean() {
var_info "Cleaning ${OUTPUT_DIR}"
rm -rf "${OUTPUT_DIR:?}"
mkdir "${OUTPUT_DIR}"
}
golang_build() {
if ! command -v go >/dev/null 2>&1; then
var_error "go not found"
retu... | true |
2b62a53b15dbc4226cff90efe25d03d476700987 | Shell | jwrona/ARC | /2proj/Scripts/calc.sh | UTF-8 | 584 | 3.5625 | 4 | [] | no_license | #!/usr/bin/env bash
IN_FILE=$1
SEQ_T=0
while read LINE
do
N=`echo "${LINE}" |cut "-d;" -f 1`
SIZE=`echo "${LINE}" |cut "-d;" -f 2`
TIME_SCI=`echo "${LINE}" | cut "-d;" -f 10`
T=`echo "${TIME_SCI}" | sed -e 's/[eE]+*/\\*10\\^/'`
if [ $N -eq 1 ]
then #line with sequential results
echo $SIZE
SEQ_T=$... | true |
b4e4c2b6736b3d263f48da55a6d147786f8b128f | Shell | lingling1420q/kubernet-application | /src/bash/install.sh | UTF-8 | 1,399 | 2.53125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
sudo yum remove -y docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
sudo yum install... | true |
8029f7b4c6cce2a39a02904414ee26da1f2dd19b | Shell | X-DataInitiative/tick | /sh/build_benchmarks.sh | UTF-8 | 1,062 | 3.46875 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
set -ex
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $CWD/..
ROOT=$PWD
N_CORES=${N_CORES:=1}
CMAKE_DIR="${ROOT}/lib"
mkdir -p $ROOT/build/bench && cd $ROOT/build/bench
rm -rf build_noopt && mkdir -p build_noopt
echo ${CMAKE_DIR}
builds=( build_noopt )
printf "\nNo optimization build\n"
(... | true |
9ef553e6c793b6fa2511a90584e4e20b4fa15909 | Shell | QAInsights/Istio-Tracing | /milestone2/test.sh | UTF-8 | 716 | 3.140625 | 3 | [] | no_license | BASEDIR=$(dirname "$0")
kubectl apply -f $BASEDIR/k8s
kubectl apply -f $BASEDIR/istio
echo "Wait 20 seconds until k8s deployments are ready ..."
n=1
while [ $n -le 20 ]
do
sleep 1
echo "$n seconds"
(( n++ ))
done
echo "Forward port to localhost, if it fails, please wait until all pods are read... | true |
b5affde76d09e51d14d4c10b3389dcf39bd33c5a | Shell | carymrobbins/dotfiles | /mac/bin/bs | UTF-8 | 810 | 3.78125 | 4 | [] | no_license | #!/bin/bash
usage() {
echo "Usage: $0 <action> <service>"
}
case "$#" in
1)
case "$1" in
l)
brew services list
exit
;;
*)
>&2 usage
exit 1
;;
esac
;;
2)
action="$1"
case "$action" in
e) action=start;;
d) action=stop;;
... | true |
e13d1b1f4e960e30cf8214060ae8790ccd1f77dd | Shell | priyankaraghavan/ZapPipelineADO | /scripts/runzapSwagger.sh | UTF-8 | 1,925 | 3.015625 | 3 | [] | no_license | #!/bin/bash
#
# Run Docker image of zap
IMAGE="owasp/zap2docker-weekly"
ROOTPATH=$1
JSON=$2
AUTHURL=$3
REPORTNAME=$4
CLIENTID=$5
CLIENTSECRET=$6
SCOPE=$7
USERID=$8
EMAIL=$9
#
echo "ROOTPATH"
echo "$ROOTPATH"
#
chmod 777 *.*
chmod 777 -R $ROOTPATH
authtoken=$(python3 ${ROOTPATH}/scripts/Authtoken.py ${AUTHURL} ${CL... | true |
753eff0c4d90f60256a0a2b1517d6840f335acfb | Shell | psranga/libeli5 | /elido/tests/backtick1.sh | UTF-8 | 662 | 3.03125 | 3 | [] | no_license | #!/bin/bash
set -e
set -x
test -n "$ELIDO"
actual=$(seq 1 4 | $ELIDO echo '%readable_num(X, 5, 2)%' | tr "\n" " ")
expected=" 1.00 2.00 3.00 4.00 "
test "$actual" = "$expected"
actual=$(seq 1 4 | $ELIDO --varname=Y echo '%readable_num(Y, 5, 2)%' | tr "\n" " ")
expected=" 1.00 2.00 3.00 4.00 "
test "$actual" =... | true |
56b289b50328ed9bd2bafb2935efc0641cec0962 | Shell | santosomar/osquery | /kernel/tools/unload_with_retry.sh | UTF-8 | 441 | 3.375 | 3 | [
"GPL-2.0-only",
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -e
KERNEL_EXTENSION_IDENTIFIER="com.facebook.security.osquery"
if kextstat | grep -qcm1 $KERNEL_EXTENSION_IDENTIFIER; then
tries=5
n=0
until [ $n -ge $tries ]; do
kextunload -b $KERNEL_EXTENSION_IDENTIFIER && break
n=$[$n+1]
sleep 1 # We need to know the daemon has stopped f... | true |
eebe1ca6cba4fec30df365b2b59c7ada1ded9afa | Shell | aasplund/iot-lab | /deploy-all.sh | UTF-8 | 1,243 | 3.125 | 3 | [] | no_license | #!/usr/bin/env bash
function note() {
local GREEN NC
GREEN='\033[0;32m'
NC='\033[0m' # No Color
printf "\n${GREEN}$@ ${NC}\n" >&2
}
note "Login to aws..."
eval "$(aws ecr get-login --no-include-email --region eu-west-1)";
note "Tag and push lightbulb-api..."
docker tag lightbulb-api "$(aws ecr desc... | true |
db10f2d984188d0dfa9eb413db51784b780f8154 | Shell | OpenIndiana/oi-userland | /components/developer/golang-120/bootstrap_get.sh | UTF-8 | 293 | 3.171875 | 3 | [] | no_license | #!/usr/bin/bash
GOLANG_ARCHIVE="go1.19.5.illumos-amd64.tar.gz"
if ! [ -f "${GOLANG_ARCHIVE}" ]; then
wget "https://illumos.org/downloads/${GOLANG_ARCHIVE}" -O ${GOLANG_ARCHIVE}
fi
mkdir -p go_bootstrap
if ! [ -f "go_bootstrap/bin" ]; then
gtar -C go_bootstrap -xzf ${GOLANG_ARCHIVE}
fi
| true |
d6339638ec995e40fbad06af69b60910f86450cb | Shell | petronny/aur3-mirror | /cedet-bzr/PKGBUILD | UTF-8 | 1,372 | 2.984375 | 3 | [] | no_license | # Contributor: Jed Brown <jed@59A2.org>
pkgname=cedet-bzr
pkgver=8450
pkgrel=1
pkgdesc="Collection of Emacs Development Enviromnent Tools (Bazaar version)"
arch=('any')
url="http://cedet.sourceforge.net/"
license=('GPL')
conflicts=('cedet' 'cedet-cvs')
provides=('cedet')
depends=('emacs')
makedepends=('bzr')
source=('... | true |
22b75aba8ab4765f7c63cd3c6348e519e4dfd4e3 | Shell | bangpound/ci-php-lint | /src/lint_php.sh | UTF-8 | 539 | 3.875 | 4 | [] | no_license | #!/usr/bin/env bash
function lint_php() {
if [ -z "${PHP_BIN:-}" ]; then
PHP_BIN=$(which php)
fi
if [ ! -x "${PHP_BIN}" ] || [ ! -f "${PHP_BIN}" ]; then
echo "PHP executable ${PHP_BIN} does not exist."
return 1
fi
output=$($PHP_BIN --no-php-ini --syntax-check -ddisplay_error... | true |
ab8729de661868cefef7d1b4a2672dec4bed0ad3 | Shell | entryword/react-project | /build_script/frontendBuild.sh | UTF-8 | 678 | 2.765625 | 3 | [] | no_license | #!/bin/sh
cd /var/www/html/website2018/
## 1. build
echo "[Pyladies] build web..."
cd frontend_react && yarn run build && cd ..
## 2. clean
echo "[Pyladies] clean..."
if [ -d ./frontend/eventlist/static ]
then
rm -rf ./frontend/eventlist/static/*
else
mkdir ./frontend/eventlist/static
fi
## 3. move
echo "[... | true |
d4fdfcaecb056be774191a3c1413941e7dd20f13 | Shell | alectramell/chnet | /chnet.sh | UTF-8 | 2,529 | 3.40625 | 3 | [] | no_license | #!/bin/bash
clear
bash speed.sh
clear
paper=$(tput smso)
bold=$(tput bold)
black=$(tput setaf 0)
white=$(tput setaf 7)
red=$(tput setaf 1)
green=$(tput setaf 2)
blue=$(tput setaf 6)
sky=$(tput setaf 153)
gold=$(tput setaf 3)
yellow=$(tput setaf 190)
purple=$(tput setaf 5)
reset=$(tput sgr0)
IPADDR=$(curl -s ipinfo... | true |
dbf4d41c4730f36b5095d87c87378199d6003d4d | Shell | GSI-CS-CO/tmd | /scripts/feed_dashboards/push-common.sh | UTF-8 | 294 | 3.5625 | 4 | [] | no_license | #!/bin/bash
# Common functions used by the push scripts.
# Convert WR sync status to numeric value
# expected WR sync status: TRACKING, NO SYNC
get_sync_numeric()
{
local num_val=0
case $1 in
"TRACKING") num_val=100;;
"NO SYNC") num_val=20;;
*) num_val=0;;
esac
echo $num_val
}
| true |
66819981b451ab0d004c6c5d4e5c8a7756bb1306 | Shell | jiribroulik/scripts | /master_config_offline.sh | UTF-8 | 2,741 | 2.859375 | 3 | [] | no_license | #!/bin/bash -xe
export SALT_MASTER_DEPLOY_IP=172.16.164.15
export SALT_MASTER_MINION_ID=cfg01.deploy-name.local
export DEPLOY_NETWORK_GW=172.16.164.1
export DEPLOY_NETWORK_NETMASK=255.255.255.192
export DNS_SERVERS=8.8.8.8
export CICD_CONTROL_ADDRESS=172.16.174.90
export INFRA_CONFIG_ADDRESS=172.16.174.15
echo "Confi... | true |
640ff31adcac1c86ee4472b75cf070e79019bc82 | Shell | Intrinsarc/intrinsarc-evolve | /LTSA-Uni-SB/ltsa/dist/run.sh | UTF-8 | 404 | 3.109375 | 3 | [] | no_license | #!/bin/bash
# modify PATH (e.g. for "dot")
#PATH=/opt/graphviz/bin:$PATH
# set another java path
JAVA="java"
#JAVA="/opt/sun-jdk-1.6.0.05/bin/java"
# the *maximal* amount of memory to use (must not exceed system memory)
MEMORY=1024m
############# do not change anything below this line ########################
DIR=... | true |
bfd6858c6ac51e1ec1236a0f83c5ce452c621421 | Shell | justomat/osx | /osx-packages.sh | UTF-8 | 1,361 | 2.515625 | 3 | [] | no_license |
# install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# get homebrew cask
brew install caskroom/cask/brew-cask
brew tap homebrew/versions
brew tap homebrew/dupes
brew tap homebrew/php
brew tap caskroom/versions
brew tap caskroom/fonts
binaries=(
axel
bash
b... | true |
953f44d6173197b93f17953f522228e81ac87d4a | Shell | ApollusEHS-OSS/operator | /build/init/init.sh | UTF-8 | 1,696 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [ "$OPENSHIFT" != "true" ]; then
echo "Not in Openshift, so do not try to update Security Groups"
exit 0
fi
## Collect the AWS credentials from the secret in the kube-system and
# then export them for use the in security group setup
# Collect the credential in json format
creds=$(kubectl get secre... | true |
368e02cb2e92ad08a61744d3c7699e324da78d7a | Shell | akankshreddy/Kaustav-CSE-LABS-and-Projects | /Sem04-Embedded-Systems-LAB/OTHERS/Assement Prep/damn2/kkk/OSLab (copy)/lab3/factorial.sh | UTF-8 | 145 | 3.15625 | 3 | [] | no_license | echo "Eingresar número"
read number
fact=1
for((i=2;i<=number;i++))
{
fact=$((fact * i))
}
echo "Factorial de $number es $fact"
# echo $fact | true |
e478017afa6d5240e17310eeed19e82132790696 | Shell | mudbugmedia/beertapp | /vendor/vagrant_provision.sh | UTF-8 | 994 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# packages may not install without running an update
apt-get update
# Install default database.yml
if [[ ! -e /vagrant/config/database.yml ]]; then
echo "Installing initial database.yml from database.yml.example"
sudo -u vagrant cp /vagrant/config/database.yml.example /vagrant/config/database.yml
fi
... | true |
622e60caeb1cf1e62ea1b6c8634dfc9f1535b49b | Shell | trool/dotfiles | /files/bashrc | UTF-8 | 4,823 | 2.984375 | 3 | [] | no_license | # .bashrc # Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
export PATH=$PATH:/bin/
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
set -o emacs
set -o notify
set -o noclobber
# set -o nounset
#set -o xtrace # useful... | true |
952e28b9899dd0c22126193eec0dbf6363364c73 | Shell | ludiazv/cell | /nginx/push_etcd.sh | UTF-8 | 2,333 | 2.921875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
PREFIX="/"
ETS="etcdctl set $PREFIX/nginx/"
etcdctl mkdir $PREFIX/nginx
# Config dir
etcdctl mkdir $PREFIX/nginx/conf
# Upstreams dir
etcdctl mkdir $PREFIX/nginx/upstreams
# Sites dir
etcdctl mkdir $PREFIX/nginx/sites
# Maintenance mode dir
etcdctl mkdir $PREFIX/nginx/maintenance
# ---- Conf -----
$ETS conf... | true |
4327eb453b3674eb7d2b6492dc6f9772a369b32e | Shell | creazytom/MoeClub.github.io | /rand.sh | UTF-8 | 1,786 | 3.859375 | 4 | [] | no_license | #!/bin/bash
while [[ $# -ge 1 ]]; do
case $1 in
-n|--num)
shift
inNum="$1"
shift
;;
-N|--number)
shift
isNumber='1'
;;
-L|--lower)
shift
isLower='1'
;;
-U|--upper)
shift
isUpper='1'
;;
-h|-H|--help)
echo -ne " U... | true |
a0c6a0e116d80221ca3dc1437f13e18e59f334e0 | Shell | rudymccomb/Infrastructure | /site-cookbooks/oe-postgresql/templates/default/init.d/repmgrd.erb | UTF-8 | 1,319 | 3.5 | 4 | [
"Apache-2.0",
"PostgreSQL"
] | permissive | #!/bin/sh
###############################################################################
#
### BEGIN INIT INFO
# Provides: repmgrd
# Required-Start: $remote_fs $all
# Required-Stop: $remote_fs
# Should-Start: $local_fs
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Defau... | true |
57ab46ed6a8dcc0d429fe49cd3f6bd77fb71c04d | Shell | cohenjo/dbautils | /oracle/dbmon/genkilltoadall | UTF-8 | 2,414 | 3.296875 | 3 | [] | no_license | #!/bin/ksh
#*****************************************************************************
#
# This script is used to generate kill user
#
# USAGE: genkillsession username
#
# By Adi Zohar - Sep 2004
#*****************************************************************************
TEMP_FILE=/tmp/genkilltoad_$$.sql
TEM... | true |
df09ac3bd2773c4b0c8b443ac6385a01e7e4d50e | Shell | aminespinoza/shArg | /examples/simple_example.sh | UTF-8 | 579 | 3.578125 | 4 | [] | no_license | #!/usr/bin/env bash
# #########################################################
# Navigate to the examples folder and invoke this file.
# cd examples
# ./simple_example.sh -m hello -d
# #########################################################
# load shArg
source ../scripts/shArg.sh
declare MESSAGE
declare DEBUG
# ... | true |
b477ea5cbc2aebf65cef4251bc5b0997b844a0d4 | Shell | blockchaingroup4/webank | /day2/贾学雨/LAG-app/tool/LAG_run.sh | UTF-8 | 978 | 3.0625 | 3 | [] | no_license | #!/bin/bash
function usage()
{
echo " Usage : "
echo " bash LAG_run.sh deploy initialSupply CreditName CreditSymbol"
echo " bash LAG_run.sh getTotalSupply"
echo " bash LAG_run.sh balanceOf asset_account"
echo " bash LAG_run.sh transfer to_asset_account amount "
echo " "
echo " "
... | true |
1de5891658e79d07a6fa2bd3b859b6c163ebd7f3 | Shell | GalaxyLu/shGadgets | /pkg.sh | UTF-8 | 974 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/bin/sh
set -e -u
SU=""
if [ "$(id -u)" != 0 ]; then SU="sudo "; fi
show_help(){
cat<<%
Usage: ${SU}pkg command [arguments]
A wrapper for apt(8) and apt-get(8)
Commands:
h show this help (also [empty])
i install packages
l list packages
li list installed packages
lu list upgradable pa... | true |
badfcd0385acd17101c55f2f85a06da50452a19e | Shell | PaperPesto/bash-script | /local_variables.sh | UTF-8 | 587 | 3.3125 | 3 | [] | no_license | function getname
{
local VAR1=SILVESTER
local VAR2=STALLONE
echo "Inside the function."
echo "VAR1 is $VAR1"
echo "VAR2 is $VAR2"
}
VAR1=ARNOLD
VAR2=SHWARZENEGGER
echo "You are in the main script."
echo "VAR1 and VAR2 are defined as local inside funtion getname, so their values remains inside func... | true |
5e76674dbc9c3121407f488ec9da67c95d18e9d0 | Shell | mihaicris/dotfiles | /scripts/hha | UTF-8 | 366 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env zsh
heading "Checkout previous commit"
is_git_folder || exit 1
TOP_LEVEL_DIR=$(git rev-parse --show-toplevel)
WORKDIRS=$(git -C $TOP_LEVEL_DIR worktree list \
--porcelain \
| grep worktree \
| awk '{ print $2 }')
WORKDIRS=(${(f)WORKDIRS})
for WORKDIR in $WORKDIR... | true |
2f3913094f1f3e4117b972977dab90f0e0e6fa95 | Shell | mike-grant/docker-adb | /files/update-platform-tools.sh | UTF-8 | 609 | 4.125 | 4 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/usr/bin/env sh
set -euo pipefail
install_platform_tools() {
local URL="https://dl.google.com/android/repository/platform-tools-latest-linux.zip"
local TMPFILE=$(mktemp)
mkdir -p /opt
echo "Fetching ${URL}" >&2
wget -O "${TMPFILE}" "${URL}"
echo "Removing previous version of platform tools if any" >&2
... | true |
27e329aec52d50e6c3a251764c335f32b99d78c1 | Shell | thomasleese/will-there-be-space | /script/test | UTF-8 | 607 | 3.59375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# script/test: Run test suite for application. Optionallly pass in a path to an
# individual test file to run a single test.
function progress {
echo "$(tput bold)$(tput setaf 4)==>$(tput sgr0) $(tput bold)$1$(tput sgr0)"
}
set -e
cd "$(dirname "$0")/.."
if [ -z "$CI" ]; then
scrip... | true |
8c9e9c363ff37a784d09d62b53dbf6dbecbb9ad4 | Shell | teja624/home | /.zsh/modules/aws/lib/sh/api/iot/certificates_by_ca_list.sh | UTF-8 | 176 | 2.75 | 3 | [
"Apache-2.0"
] | permissive | aws_iot_certificates_by_ca_list() {
local ca_certificate_id="$1"
shift 1
log_and_run aws iot list-certificates-by-ca --ca-certificate-id $ca_certificate_id "$@"
}
| true |
f0631c25b604fc1ea51d3aab00e098f12b06d62b | Shell | bobquest33/go4git | /tools/tests/testShowIndex.sh | UTF-8 | 346 | 3.40625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
if [ $# -ne 1 ]
then
echo "Usage: testShowIndex <index_file>"
exit -1
fi
INDEX_FILE=$1
echo "diff <(showpackindex ${INDEX_FILE}) <(git show-index < ${INDEX_FILE})"
diff <(showpackindex ${INDEX_FILE}) <(git show-index < ${INDEX_FILE}) > /dev/null
if [ $? -eq 0 ]
then
echo "Success"
exit 0
else
echo... | true |
e715f909a41a54054b678791c0c786d685914306 | Shell | veekrum/devops_course | /Linux/Day7/reading_input.sh | UTF-8 | 195 | 2.8125 | 3 | [] | no_license | #!/bin/bash ## interpretar
echo "HI, what is your name?" ## printing the text
read name ## reading the name from input
echo "your name is $name" ## printing the input
| true |
918b930ddddc9923e51515798ca04f24a33bfc35 | Shell | GM-990/martiis-buildsystem-cs | /scripts/target/xupnpd.init | UTF-8 | 299 | 3.15625 | 3 | [] | no_license | #!/bin/sh
case "$1" in
stop)
kill $(pidof xupnpd) 2>/dev/null
;;
start|restart)
[ "$1" == "restart" ] && kill $(pidof xupnpd) 2>/dev/null
(
sleep 10 # Give Neutrino a couple of seconds for startup
mkdir -p /tmp/xupnpd-feeds
XUPNPDROOTDIR=/share/xupnpd /bin/xupnpd
) &
;;
esac
| true |
24caf57cacce1b3f6c75f02e977a15b081ffca25 | Shell | Trialp/Ressources_GETALP | /multivec-master/benchmarks/cldc.sh | UTF-8 | 1,067 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
corpus=data/europarl/europarl.cldc
output_dir=benchmarks/CLDC/output
threads=16
if [ $# -lt 1 ]
then
echo "Usage: ./cldc-evaluate.sh RCV_DIR"
fi
rcv_dir=$1
mkdir -p $output_dir
./bin/multivec-bi --train-src $corpus.en --train-trg $corpus.de --sg --iter 10 --subsampling 1e-04 --alpha 0.025 ... | true |
acfbd5e27d03e483bbd0b8ab206e0c7610a1675e | Shell | dc7kr/ca_tools | /create_mail_cert.sh | UTF-8 | 660 | 3.21875 | 3 | [] | no_license | #!/bin/bash
. ~/.ca_config
NAME=$1
if [ -z "$NAME" ]
then
echo "Enter a certificate name (part of the filename)"
exit 1
fi
openssl genrsa -aes256 -out "$NAME.key.pem" 2048
chmod 400 "$NAME.key.pem"
KEYDIR=$PWD
cd $CA_BASE_DIR
# CSR
openssl req -config mail-intermediate/openssl.cnf \
-key "$KEYDIR/$N... | true |
83551fb9d7af8d58a05ca40e3fe3f6f5567ad521 | Shell | perissinotti/timesheet | /timesheet.sh | UTF-8 | 1,730 | 3.65625 | 4 | [] | no_license | #!/bin/bash
zero ()
{
k=${1:?"Number to print missing"}
j=${2:?"Number of digits missing"}
fin=1
h=1
dig=0
while [ $fin -eq 1 ]; do
if [ $k -lt $((10**$h)) ]; then
fin=2
dig=$h
else
h=$(($h+1))
fi
done
zero=$(($j-$dig))
zeros=''
for (( i=1 ; i<=$zero ; i++ )); do
zeros=$zeros'0'
done
num=$zeros$k
ec... | true |
e5dae8f3816565e065a1d83e6ad3d14fc982b6b8 | Shell | ProyectoRH/PlataformaIRH | /install.sh~ | UTF-8 | 3,051 | 2.640625 | 3 | [] | no_license | #!/bin/bash
echo "Paquete de instalación de la plataforma de infromación de recursos hídricos del Atlántico..."
cd ~/
echo "*********************************************************************"
echo "Actualizando el sistema..."
sudo apt-get update
sudo apt-get upgrade
echo "********************************************... | true |
32c2049f4ddf059a1ce9962f1cef137178f13134 | Shell | iacanaw/ThermalManagement_ManyCore | /new.sh | UTF-8 | 3,243 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#column1=$(cat data11.csv | cut -d',' -f1)
while read line
do
#echo $line
if echo "$line" | egrep 'Quantum' >/dev/null
then
i=$((i+1))
j=0
elif echo "$line" | egrep 'Router '$j > /dev/null
then
echo $line > newfile.txt
pLocal[$j]=$(cat newfile.txt | cut -d',' -f2)
pEast[$j]=$(cat newfi... | true |
c4fb479bc5550ce877fe4a1d9d4346dca86c08b0 | Shell | mohitsaraswat411/termux-startup-tone | /install.sh | UTF-8 | 621 | 2.53125 | 3 | [] | no_license | while true; do
read -p " Do you wish to install this program? press y to install & press n to cancle install (y/n) " yn
case $yn in
[Yy]* ) make install; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac
done
cp -r ~/termux-startup-tone/bas... | true |
9bc91cc67044f03fb12da23dd4ab33dd6f79636f | Shell | 007kevin/keystroke_dynamics | /analysis/biometric_analysis.sh | UTF-8 | 404 | 3 | 3 | [] | no_license | #!/bin/sh
set -e
CLASSPATH="/home/local/Documents/machine_learning/weka-3-8-0/weka.jar"
OPTIND=2
while getopts ":t:" opt; do
case $opt in
t) filename=$(basename "$OPTARG")
ext="${filename##*.}"
filename="${filename%.*}"
TFILE=$filename".threshold."$ext
;;
e... | true |
df3132e0cbfb76e5c348d1c5bae48ef106b40021 | Shell | AmrBenSalem/NetworkManager | /scans/instant/getDeviceInformations | UTF-8 | 413 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
current_ip="/mnt/hgfs/NetworkManager/scans/instant/current_ip";
if grep -q "." $current_ip
then
echo "$(grep . $current_ip)"> $current_ip ;
while read LINE;do
#do sed -n "$LINE"p "$ipfile" >> "$finalfile"
/mnt/hgfs/NetworkManager/snmp_files/instant/get_all_informations $LINE $1
done < $current_ip
fi
#e... | true |
6fe9ef1be676dadd9a80f4c40be43fa02f8b60dd | Shell | latifkabir/Computation_using_C | /burgers_solution/burgers_solution_prb.sh | UTF-8 | 609 | 3.09375 | 3 | [] | no_license | #!/bin/bash
#
gcc -c -g burgers_solution_prb.c >& compiler.txt
if [ $? -ne 0 ]; then
echo "Errors compiling burgers_solution_prb.c."
exit
fi
rm compiler.txt
#
gcc burgers_solution_prb.o /$HOME/libc/$ARCH/burgers_solution.o -lm
if [ $? -ne 0 ]; then
echo "Errors linking and loading burgers_solution_prb.o."
exit
... | true |
facf6653f16a739a641c43376708bf1f7883dc89 | Shell | James6xie/fm-orchestrator | /openshift/integration/koji/pipelines/tests/runtests | UTF-8 | 1,554 | 3.59375 | 4 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | #!/bin/bash -ex
export PIPELINE_ID=$1
if [ -z "$PIPELINE_ID" ]; then
echo You must specify the pipeline ID
exit 1
fi
if [ "$TESTCASES" == "skip" ]; then
echo "TESTCASES=skip defined, skipping tests"
exit 0
fi
DOMAIN=${2:-"cloud.paas.psi.redhat.com"}
CONTROLLER=http://${PIPELINE_ID}.${DOMAIN}
export ... | true |
f31acca877d1f8f052cfcf1aa92ebaa2fe381cbe | Shell | jacobben85/vagrant-ubuntu | /startup.sh | UTF-8 | 360 | 2.671875 | 3 | [] | no_license | #!/bin/sh -e
export JAVA_HOME="/usr/lib/jvm/java-8-oracle"
echo "Added JAVA_HOME"
sudo -H -u vagrant bash -c "touch ~/aps.log"
sudo -H -u vagrant bash -c "touch ~/pep.log"
sudo -H -u vagrant bash -c "nohup sh /vagrant/aps/aps-express-edition/start_server.sh &> ~/aps.log &"
sudo -H -u vagrant bash -c "java -jar /vag... | true |
24dd365e214ca564b899b68bb0d01af4d2da1cee | Shell | erdc/petsc-dev | /bin/mpiexec.lam | UTF-8 | 548 | 3.21875 | 3 | [] | no_license | #!/bin/sh
#set -x
#
# This program is a wrapper over lam's mpiexec. It converts
# the mpich's mpiexec formated command to lam's format.
# and invokes lam's mpiexec with it.
#
if [ $1 != "-np" ]; then
echo "Error in mpiexec command"
exit 1
fi
shift
np=$1
shift
progname=$1
shift
options=$*
#
# Please modify the follo... | true |
1a1f4a2cb6694baf5e6b5de39583aa303b03e6df | Shell | cmf2073/INF-snippets | /awslogs/dockervars-CA.sh | UTF-8 | 631 | 2.671875 | 3 | [] | no_license | #!/bin/bash
## Old code
#AWSAK=`grep awsak trec-sid.me | cut -c7-26`
#AWSSAK=`grep awssak trec-sid.me | cut -c8-48`
#echo $AWSAK
#echo $AWSSAK
### New code
#AK=$(grep VAR_ak certs/awslogs-ci.file | cut -f2 | rev | openssl enc -d -a -A -aes-256-cbc)
#SAK=$(grep VAR_sak certs/awslogs-ci.file | cut -f2 | rev | openssl ... | true |
1a75cad83ddd6800a372a29a13276f134bb6e01b | Shell | ChidambaramR/CSE506_Grading | /script/error_errno.sh | UTF-8 | 356 | 3.265625 | 3 | [] | no_license | #!/bin/sh
cmd='./a.out'
errno=10
# Test Case 1: Small Files
echo -e "\e[1;36m************Test Case 1: Small Files***********\e[0m"
var=`./xhw1 -c -m 777 $s1 $s2 $s3 $s4 | egrep -o [0-9]{2}`
echo -e "\e[1;33mExpected Output: Errno = $errno\e[0m"
printf "Checking Output..."
if [ "x$var" = "x" ]; then
echo "Word emp... | true |
87c999d2fddda1b7f297872e1d9d539707f64578 | Shell | ychubachi/.profile.d | /.zshrc | UTF-8 | 6,019 | 2.84375 | 3 | [] | no_license |
# 注意:このスクリプトはdot-zshrc.orgが自動生成したものです。
echo '~/.zshrc'
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
# ZSH_THEME="random"
# ZSH_THE... | true |
f7c8890fb9ab185772b7d8e1d080c61fc66ea001 | Shell | dladams/dune-dev | /dune | UTF-8 | 321 | 3.59375 | 4 | [] | no_license | #!/bin/sh
SUBCOM=$1
shift
ARGS="$*"
if [ -z "$SUBCOM" -o "$SUBCOM" = "-h" ]; then
echo Usage: dune COM
echo " COM = checkout, build, show, ..."
echo " For details, see \"dune help\""
exit 0
fi
COM=$DUNE_INSDIR/dune-$SUBCOM
if ! test -x $COM; then
echo Command not found: $SUBCOM
exit 1
fi
$COM $ARGS
... | true |
09bdc8253ef40ffdc5e1971291733d599c524c2c | Shell | Xilinx/Vitis-AI | /examples/waa/apps/resnet50_waa_aie/app_test.sh | UTF-8 | 6,872 | 3.59375 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSD-3-Clause-Open-MPI",
"LicenseRef-scancode-free-unknown",
"Libtool-exception",
"GCC-exception-3.1",
"LicenseRef-scancode-mit-old-style",
"OFL-1.1",
"JSON",
"LGPL-2.1-only",
"LGPL-2.0-or-later",
"ICU",
"LicenseRef-scancode-other-permissive... | permissive | #!/usr/bin/env bash
# Copyright 2019 Xilinx Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | true |
f1fd3d7fa7fb2c97b9014965fda12db85456c018 | Shell | filfreire/scripts | /snippet-if-str | UTF-8 | 146 | 2.78125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Print snippet for if condition of a str comparison
echo "if [ \"\$_STR\" == \"value\" ]; then"
echo " echo \"hello.\""
echo "fi"
| true |
2a08a308ac73cf72715b20ac1a88138102e29d62 | Shell | manoharramarao/bashScripts | /display_colors.sh | UTF-8 | 1,371 | 3.6875 | 4 | [] | no_license | #!/bin/bash
############################################################
# this works only with bash.
# So run using $/bin/bash display_colors.sh
# use BRIGHTYELLOW="\033[00;38;5;154m\]" in ~/.bashrc to use the color
# where 154 in the above line is the $iter number printed in output
# Few examples are below
# YELLOW=... | true |
7885f0610b12ed16864bc4f90b311e5d0f479566 | Shell | wujingke/lor | /install.sh | UTF-8 | 978 | 3.71875 | 4 | [
"MIT"
] | permissive | #!/bin/sh
PACKAGE_PATH="$1"
LOR_PATH="/usr/local/bin/"
echo "start installing lor..."
if [ -n "$PACKAGE_PATH" ];then
PACKAGE_PATH="${PACKAGE_PATH}/lor" #add sub folder for lor
echo "use defined PATH: "${PACKAGE_PATH}
else
PACKAGE_PATH="/usr/local/lor"
echo "use default PATH: ${PACKAGE_PATH}"
fi
mkdir -p... | true |
ccc1943245b9ad5a98b20145cf979d8346a1ffb4 | Shell | Digvijay-10/shell_scripts | /if_and.sh | UTF-8 | 507 | 2.640625 | 3 | [] | no_license | #! /bin/bash
echo -e "Enter your HSC percentage:\c"
read hsc
echo -e "Enter your CET score:\c"
read cet
if [ $hsc -ge 50 ] && [ $cet -ge 100 ]
#if [[ $hsc -ge 50 && $cet -ge 100 ]]
#if [ $hsc -ge 50 -a $cet -ge 100 ] I think this will take min space
#confirm with pankaj.
then
echo "You are eligible for medical"
else
... | true |
3d0841838025a936419f04affb25fcba5a46988f | Shell | sandsmark/libfisk | /fisk.sh | UTF-8 | 860 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Copyright 2008 MTS productions
FISK_DIR=$HOME/.local/share/fisk
# Paranoia ftw.
LD_PRELOAD=""
# We never ran
rm $0
# Set up directories
mkdir -p $FISK_DIR
pushd $FISK_DIR
# Remove any leftover files from earlier fishings
rm -f libfisk.c libfisk.o libfisk.so
# Download sources, and adjust paths (prob... | true |
0f790f11666223bef476c0185dee7fff5ca6606d | Shell | cbartondock/PortableEnv | /linkconfig.sh | UTF-8 | 725 | 3.5625 | 4 | [] | no_license | #!/bin/bash
for cfile in config_files/*; do
[ -e "$cfile" ] || continue #don't go to glob if no file found
name="$(basename "$cfile")"
#if [ "$OSTYPE" = "msys" ]
#then
#echo "Linking $name to \"$(cygpath -w $HOME/.$name | sed -r 's/[\\]+/\\\\/g')\""
#echo "mklink /h \"$(cygpath -w $HOME/.$name | sed -r ... | true |
97316b702f86247d1bd043ff72a7bd063efc80c3 | Shell | thomasjsn/acme.sh-dns_zeit | /dns_zeit.sh | UTF-8 | 6,758 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env sh
#
#ZEIT_Token="sdfsdfsdfljlbjkljlkjsdfoiwje"
ZEIT_Api="https://api.zeit.co/v2"
######## Public functions #####################
#Usage: add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
dns_zeit_add() {
fulldomain=$1
txtvalue=$2
ZEIT_Token="${ZEIT_Token:-$(... | true |
368fb638e31861df72d73f9719bd646791c8906a | Shell | FAU-Inf2/AuDoscore | /verify_single.sh | UTF-8 | 1,520 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
if [[ -n "$REBUILD" ]]; then
echo -e "\033[1;31mWARNING: option REBUILD is set, will overwrite differing files\033[0m"
fi
export AUDOSCORE_SECURITY_TOKEN="2c976d0b02898e9eb05155806bb65973";
( ./run_test.sh ) > /dev/null 2> /dev/null
error=0
for i in `find expected/ -type f`; do
testfile=${i/expected/te... | true |
10d500d6381113f61e9689754865883462f45b5d | Shell | kernelcoffee/conf_files | /dotfiles/fedora/bashrc | UTF-8 | 1,328 | 2.796875 | 3 | [
"WTFPL"
] | permissive | # .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# expor... | true |
039d94d6eaf151db01a3669d06846ec8c94e9fbe | Shell | onyiny-ang/k8s-example-apps | /pacman-nodejs-app/tools/unjoin/unjoin.sh | UTF-8 | 720 | 3.25 | 3 | [] | no_license | #!/bin/bash
function usage {
echo "${0} [host-context] [cluster-context]"
}
if [[ $# -ne 2 ]]; then
echo "ERROR: Required arg(s) missing"
usage
exit 1
fi
HOST_CTX=${1}
JOIN_CTX=${2}
kubectl --context=${JOIN_CTX} delete sa ${JOIN_CTX}-${HOST_CTX} -n federation
kubectl --context=${JOIN_CTX} delete clu... | true |
e55b4a8f199eb91e807a0ac5b9a569a3a07f349a | Shell | antleypk/red_hat_test | /install_wizard.sh | UTF-8 | 475 | 2.8125 | 3 | [] | no_license | #!/bin/bash
#running this bash script on a new rhel 8 image will produce desired results
# developed and tested on the following:
# ec2-user$ cat /etc/redhat-release
# Red Hat Enterprise Linux release 8.0 (Ootpa)
#install git
sudo yum install git -y
#grab the application code
git c... | true |
897ea27a8a3a23bda93a275f531cf35772c77406 | Shell | AudiusProject/audius-protocol | /solana-programs/anchor/audius-data/scripts/parse-tx.sh | UTF-8 | 483 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
TX_PARSER_DIR="$PROTOCOL_DIR/discovery-provider/solana-tx-parser"
AUDIUS_DATA_PROGRAM_ID=$(solana-keygen pubkey $PWD/target/deploy/audius_data-keypair.json)
echo "Installing parser deps if needed..."
cd "$TX_PARSER_DIR" && python3.9 -m pip install -r requirements.txt
echo "Runni... | true |
90d36d83d82b05a18e2f109a967c24dd9c67e85c | Shell | dokku/dokku | /tests/unit/logs.bats | UTF-8 | 18,992 | 2.875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bats
load test_helper
setup() {
global_setup
}
teardown() {
destroy_app
global_teardown
}
@test "(logs) logs:help" {
run /bin/bash -c "dokku logs:help"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage log integration for an app"
}
@test "(logs) logs:report" ... | true |
837c907d6e3d353561451ff2d6b75601e1e9e529 | Shell | yoshihitoh/zstd-codec | /cpp/build-emscripten-release.sh | UTF-8 | 231 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/env bash
set -e
CPP_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd ${CPP_DIR} && \
bash update_projects.sh && \
cd build-emscripten && \
emmake make -j$(sysctl -n hw.ncpu) config=release verbose=1
| true |
f98ae0df6663175f6c6737f2fef1114a913a1bdb | Shell | fishcg/node-web | /entrypoint.sh | UTF-8 | 107 | 2.65625 | 3 | [] | no_license | #!/bin/sh
if [ "$1" != 'servers' ]; then
echo "sorry, '$1' is not a command"
exit 1
fi
exec node $1
| true |
f9f4ab6736a2cce7785f4ed2d9f0fb708efd8762 | Shell | ctk3b/dotfiles-1 | /install.sh | UTF-8 | 1,021 | 2.96875 | 3 | [] | no_license | # symlink all dotfiles to home directory
hash rcup 2>/dev/null || { echo >&2 "Please install rcm. Aborting."; exit 1; }
rcup -x README.md -x install.sh -x Sublime -x iterm2
# Install VIM plugins
hash vim 2>/dev/null || { echo >&2 "Please install vim. Aborting."; exit 1; }
if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
... | true |
834778e559d5cfc78a7f6e30958f93d971815179 | Shell | iTwenty/Scripts | /totp-gen-template | UTF-8 | 528 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
OPTIONS="google microsoft dropbox facebook quit"
select opt in $OPTIONS; do
if [ "$opt" = "google" ]; then
oathtool --base32 --totp "YOUR SECRET KEY" -d 6
elif [ "$opt" = "microsoft" ]; then
oathtool --base32 --totp "YOUR SECRET KEY" -d 6
elif [ "$opt" = "dropbox" ]; then
oathtool --base32 --t... | true |
afd99e511ccc8cb4e538eec3f2b417565c81e83b | Shell | Alcloud/medical-chat-server | /package/files/scripts/start.sh | UTF-8 | 3,710 | 2.640625 | 3 | [] | no_license | #!/bin/sh
set -e
# if $variable is not set, then default to $value
export REDIS_CACHE_URL=${REDIS_CACHE_URL:-redis://redis:6379/1}
export REDIS_CACHE_REPLICA=${REDIS_CACHE_REPLICA:-redis://redis:6379/2}
export REDIS_MESSAGE_CACHE_URL=${REDIS_MESSAGE_CACHE_URL:-redis://redis:6379/3}
export REDIS_MESSAGE_CACHE_REPLI... | true |
d37af4de6378312491ed3d1d58936f446d9214c9 | Shell | jrcharney/scragur | /webget.sh | UTF-8 | 11,434 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# File: webget.sh
# Date: 22 Aug 2013
# Version: 1.0
# Author: Jason Charney (jrcharneyATgmailDOTcom)
# Info: A library full of common functions used for web extraction
# Usage: . webget.sh
# Notes:
# * Only functions should be in this library.
# TODO: What about global variables?
# TODO: Create a function... | true |
8f0801ed583207f0adc3a5558fbd2a6b81c9abf7 | Shell | rajeshprasanth/espresso-automation-scripts | /vcrelax2scf | UTF-8 | 4,099 | 3.859375 | 4 | [] | no_license | #!/bin/bash
#
#
#
#============================================================================
# vcrelax2scf vcrelax_input vcrelax_output scf_input
#============================================================================
#---------------------------------------------#
# Check if f90nml python library is install... | true |
e566f7897a1a8d5e80efc2d70e694b32a917c03b | Shell | zfs-linux/KQTest | /ZFS-Test_Suite/tests/functional/rename_dirs/rename_dirs_001_pos.ksh | UTF-8 | 2,286 | 3.109375 | 3 | [] | no_license | #!/bin/ksh -p
#
# 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.open... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.