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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
2b81d83c2531644a3e71dcbe4e1b18f403909a7e | Shell | gndowns/SceneSymmetryCNNs | /data/toronto_split_data.sh | UTF-8 | 2,439 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# Gabriel Downs, 2018
# Example script for splitting toronto datasets into 'train' and 'test' groups
# This script assumes the following directory structure:
# .
# |-- unsplit/
# | toronto_rgb/
# | toronto_line_drawings/
# | (etc. directories of raw, ungrouped data)
# |-- toronto/
# | rgb/... | true |
f9a3ec43351b44b8295ed606b8833fd65125bdac | Shell | la4okurs/rpi | /repeaters.bash | UTF-8 | 2,366 | 3.5625 | 4 | [] | no_license | #!/bin/bash
#
# A simple script to listen at the Norwegian VHF ham repeaters in South of Norway
#
# Stop rendering audio with typing Ctrl C (^C)
#
# Author: Made by Steinar/LA7XQ
#
# INFO:
# '>/dev/null 2>&1' below means: ignore any printout(s) from the statement in front
#
# NOTICE: be sure first to install alsa-utils... | true |
1e0dc44aa0471d731b6d99b077aec34da0cf9dc5 | Shell | psifive/WebApi-Curl-Testing | /Templates/get_application_documentrequest.template | UTF-8 | 815 | 3.078125 | 3 | [] | no_license | #!/bin/bash
URL=$(cat url.txt)
TOKEN=$(cat token.txt)
echo "curl -s -H \"Accept:application/json;version=1\" -H \"Content-Type: application/json\" -H \"Authorization: Bearer ${TOKEN}\" ${URL}/application/%APPLICATIONID%/documentrequest/%DOCUMENTREQUESTID%?get_file=true"
JSON=$(curl -s -H "Accept:application/json;ver... | true |
b7b921b6616fb1479cc6ff9d83f443e2eddcde8b | Shell | tomkod/wasm-cpp | /emscripten_build.sh | UTF-8 | 1,184 | 3.140625 | 3 | [] | no_license | source emscripten_base.inc
say ''
say '****************'
say '*** Building ***'
say '****************'
cd "$EMSDK_ROOT"
# Build in release mode to not run out of memory
# https://github.com/kripken/emscripten/issues/4667
say '* Emscripten: setup'; {
./emsdk update
./emsdk install $EMSCRIPT_RELEASE --build=R... | true |
be892dee1ad2483dc8cf0faa95938c20f2fca9d3 | Shell | YSShih/centos_laravel_env_installer_bash | /os_repo_download.sh | UTF-8 | 662 | 3.328125 | 3 | [] | no_license | #!/bin/bash
sleep_time=3
###################################install repo###############################
yum install --downloadonly --downloaddir=./package/epel-release epel-release
DIR_remi_release="package/remi-release"
if [ -f $DIR_remi_release ]; then
echo "File $DIR_remi_release exists."
else
echo "... | true |
c60fb1ee25831aeda132e52e480a96c39494b324 | Shell | jermspeaks/useful-bash-scripts | /zip-parts.sh | UTF-8 | 409 | 3.234375 | 3 | [] | no_license | #/bin/bash
# Reference: https://apple.stackexchange.com/questions/12371/how-can-i-compress-a-folder-into-multiple-zip-files
zip -r -s 64 archive.zip FolderName/
# 64 is the size of the split (in this case 64Mb).
# Use -s to set the split size and create a split archive.
# The size is given as a number followed... | true |
3f9633c8e4f878194f0c4e70c8e1205b421ba7fa | Shell | kensniper/triton2 | /triton2/server/logserver/config/data/imp_logdb.sh | GB18030 | 938 | 3.640625 | 4 | [] | no_license | #!/bin/bash
#
# - UMS_ROLE_DETAIL_XX֮б PART_YYYYMMDDHH24MISS.SQL
# - 仯 UMS_ROLE_DETAIL_XX PART_UMS_ROLE_DETAIL.SQL
#
USERNAME=root
PASSWD=game
DBNAME=LogDB
if [ $# != 2 ]; then
echo "Usage: $0 path table_header"
exit;
fi;
HOST_NAME=$1
TABLE_HEAD=$2
MYSQL_HOME=/usr/local/mysql/
MYSQL_BIN=$MYSQL_HOME/bin/m... | true |
89e5e0f0bc17faca0b7232cb25a689a7c29bbe61 | Shell | Yahayawebmaster/vpsmanager | /stunnel.sh | MacCentralEurope | 2,148 | 2.96875 | 3 | [] | no_license | #/bin/bash
sleep 2
apt-get update -y
clear
yum update -y
apt-get install openssh-server -y
clear
apt-get install curl -y
clear
yum install openssh-server -y
clear
apt-get install openssh-client -y
clear
yum install openssh-client -y
clear
apt-get install stunnel4 -y
clear
yum install stunnel4 -y
c... | true |
eb61ce5c5a02f70a934951d36306befe0a8f9863 | Shell | Tucker459/terraform-k8s-modules | /modules/aws/aws-node-termination-handler/extract.sh | UTF-8 | 512 | 2.65625 | 3 | [] | no_license | #!/usr/bin/env bash
function tfextract() {
go run /go/src/github.com/mingfang/terraform-provider-k8s/cmd/extractor/*go $@
}
export DIR=modules/aws/aws-node-termination-handler
mkdir -p ${DIR}
tfextract -dir ${DIR} -url https://github.com/aws/aws-node-termination-handler/releases/download/v1.6.1/all-resources.yam... | true |
01bd9ed9bff99ead9e0a7bee54356151c42c7301 | Shell | scarfacedeb/dotfiles | /zsh/zsh.d/init.zsh | UTF-8 | 316 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env zsh
# Load all submodules
DIR="$HOME/.zsh.d/"
source "$DIR/setopt.zsh"
source "$DIR/autoload.zsh"
source "$DIR/bindings.zsh"
source "$DIR/prompt.zsh"
source "$DIR/env.zsh"
source "$DIR/aliases.zsh"
source "$DIR/git.zsh"
source "$DIR/fzf.zsh"
[ -f "$DIR/catawiki.zsh" ] && source "$DIR/catawiki.zsh"
| true |
f44e0b135bff84de8db883883e7b47bc27384d6c | Shell | rekren/workshop-reproducible-research | /tutorials/conda/code/run_qc.sh | UTF-8 | 765 | 2.671875 | 3 | [
"MIT"
] | permissive | # Make needed directories
mkdir -p data/raw_internal
mkdir -p intermediate/fastqc
mkdir -p results/fastqc
# Download fastq files using sra-tools and put in data/raw_internal/:
fastq-dump SRR935090 -X 12000 --gzip -Z > data/raw_internal/SRR935090.fastq.gz
fastq-dump SRR935091 -X 12000 --gzip -Z > data/raw_internal/SRR9... | true |
5169de22bb2c21aa7838feaeddd60f827716e7b5 | Shell | zyberzero/secure-videoconference | /scripts/webStop.sh | UTF-8 | 344 | 3.1875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
APP_DIR=$(cd `dirname $0`/../; pwd)
PID=`cat $APP_DIR/configs/node.pid`
if [ ! -n "$PID" ]; then
echo "pid not exist"
exit 1;
fi
SUB_PIDS=`pgrep -P $PID`
if [ -n "$SUB_PIDS" ]; then
GRANDSON_PIDS=`pgrep -P $SUB_PIDS`
fi
echo "kill $PID $SUB_PIDS $GRANDSON_PIDS"
kill $PID $SUB_PIDS $GRANDSON_P... | true |
a96b2bea33ea9a2bb02cf7b371bd56eec35da6c1 | Shell | iharosi/dotfiles | /custom/functions.zsh | UTF-8 | 2,638 | 4.09375 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | # Find node_modules folder recursively and print reserved space
function nmls() {
find . -name "node_modules" -type d -prune -print | xargs du -chs
}
# Delete node_modules folder recursively
function nmrm() {
find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \;
}
# Generate a random password... | true |
ba07ea6fa2597190297156fc803cbd131d1ad312 | Shell | iAudioSWE2011/iAudio | /docs/deploy_iAudio.sh | UTF-8 | 988 | 3.046875 | 3 | [] | no_license | #
# Deployment of iAudio
#
#
base=/var/www/iAudio
backup=/var/www/tmp
application=/var/www/iAudio/application
public=/var/www/iAudio/public
tmp=/var/www/iAudio/public/tmp
echo "Start deployment.."
echo ""
#Backup tmp structure
echo -n "Backup up tmp structure..."
cp -r $tmp $backup
echo "DONE"
#d... | true |
c987e95f9c9a28c85a09955c9977993c5c36eb07 | Shell | yusiwen/myConfigs | /change_theme.sh | UTF-8 | 2,971 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
I3_THEME_DIR="$HOME/myConfigs/i3/colors"
I3_THEME_FILE="$HOME/.i3/config.colors"
VIM_THEME_DIR="$HOME/myConfigs/vim/themes"
VIM_THEME_FILE="$HOME/.vim/vimrc.colortheme"
X11_THEME_DIR="$HOME/myConfigs/X11/themes/color-schemes"
X11_THEME_FILE="$HOME/.Xresources.theme"
BASE16_THEME_SHELL="$HOME/.base16rc"
MU... | true |
04ba05b73c22b5bd36f5a6663c5f6954dbf4764a | Shell | openube/xubuntu-setup | /system/virtualbox | UTF-8 | 1,215 | 3.578125 | 4 | [] | no_license | #!/bin/bash -eu
. `dirname $0`/../library/script
repository_url=http://download.virtualbox.org/virtualbox/debian
list_path=/etc/apt/sources.list.d/virtualbox.list
if [[ ! -f $list_path ]]; then
# add repository URL to source list
write-file $list_path <<EOF
deb $repository_url quantal contrib non-free
EOF
# im... | true |
8ca3a8140c6f7c15abf8d2a623774327519a37ba | Shell | n0rad/rkt-images | /aci/OLD/aci-arch-prometheus-exporter/runlevels/builder/06.getHAProxyExporter.sh | UTF-8 | 363 | 2.953125 | 3 | [] | no_license | #!/bin/bash
set -x
EXPORTER_VERSION=0.6.0
url="https://github.com/prometheus/haproxy_exporter/releases/download/${EXPORTER_VERSION}/haproxy_exporter-${EXPORTER_VERSION}.linux-amd64.tar.gz"
PROGRAM_PATH="$ROOTFS/etc/prometheus/exporter"
mkdir -p ${PROGRAM_PATH}
curl -Ls ${url} | tar --strip 1 -C ${PROGRAM_PATH} -xzvf -... | true |
fbaad4b2b89f5226cf101735c05c685af501a9e1 | Shell | Kenzu/DockSTARTer | /.scripts/pm_zypper_remove_docker.sh | UTF-8 | 375 | 3.015625 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
pm_zypper_remove_docker() {
# https://docs.docker.com/install/linux/docker-ce/fedora/
info "Removing conflicting Docker packages."
#dnf -y remove docker > /dev/null 2>&1 || true
}
test_pm_zypper_remove_docker() {
# run_script 'pm_zypper_remove_docker'
... | true |
e284691ff9175da64dcd66f8eb4dac6b3a181c6c | Shell | pmidford/arachadmin | /modules/test.sh | UTF-8 | 77 | 2.53125 | 3 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | for f in *.py
do
echo "Testing module: "${f}
python ${f} --test
done
| true |
e8e509a997519a1f6501d8c3b6bff40e1611a275 | Shell | Mikor-mkr/robotics_setup | /vrep.sh | UTF-8 | 1,368 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# source: https://gist.github.com/phatblat/1713458
# Save script's current directory
DIR=$(pwd)
set -e
set -u
set -x
echo "############################"
echo "# V-REP Robot Simulator #"
echo "############################"
echo ""
echo "http://www.coppeliarobotics.com/downloads.html"
echo ""
echo "TO R... | true |
15f290875229f5032d0ff2bc5d06865526702798 | Shell | waelby/application-Shell-Sujet-17- | /temps.sh | UTF-8 | 1,088 | 3.3125 | 3 | [] | no_license | #! /bin/bash
while :
do
echo "-------------------------------------------------------"
echo "*************************menu Temps**************************"
echo "tapez 0 pour quitter"
echo "-day"
echo "-week"
echo "-before-week"
echo "-month"
echo "-year"
echo "-help"
echo "veuillez saisir votre commande"
echo "-------... | true |
79da48e64729d67456b7e42b105d6b2c4eee6155 | Shell | connext/indra | /ops/deploy-indra.sh | UTF-8 | 3,361 | 3.890625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
set -e
root="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." >/dev/null 2>&1 && pwd )"
project="`cat $root/package.json | grep '"name":' | head -n 1 | cut -d '"' -f 4`"
registry="`cat $root/package.json | grep '"registry":' | head -n 1 | cut -d '"' -f 4`"
registry_url="https://index.docker.io/v1/repos... | true |
71f45bccc8066b4f5bbc03e799a1dbef7d8d5116 | Shell | dalanlan/my-kube-in-docker | /image/release.sh | UTF-8 | 1,472 | 2.65625 | 3 | [] | no_license | #!/bin/bash
set -ex
export MASTER_IP=10.10.103.100
export CLUSTER_NAME=100-server
export USER=100-emma
export CONTEXT_NAME=100-context
#now we have v1.0.1 available
export VERSION=v1.0.3-dir
#strogly recomand to be MASTER_IP:5000
export REPO=dalanlan
#Seems that we should run as root
sudo ./make-ca-cert.sh ${MASTER... | true |
714ae40340cd8fb5ba8884063fb8d693c763aaf1 | Shell | trail-of-forks/cabotage-app | /docker-compose/vault/entry.sh | UTF-8 | 2,161 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
export VAULT_ADDR=http://127.0.0.1:8200
if [ -f /vault/file/unseal ]; then
echo "starting vault!"
vault server -dev -dev-skip-init -dev-listen-address=$VAULT_DEV_LISTEN_ADDRESS -dev-root-token-id=$VAULT_DEV_ROOT_TOKEN_ID -config /etc/vault/config.hcl &
echo "unsealing!"
while true; do
... | true |
d5c4df9696404c4b5417a03c3c158082a004fa9e | Shell | frankhoff/xictools | /xt_base/packages/util/MPbuild | UTF-8 | 2,795 | 3.90625 | 4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #! /bin/bash
#### Apple OS X setup script
#
# Create the gtk2 libraries and applications for building xictools
# with gtk2 support.
#
# See README at the top of the xictools source tree for info.
# Procedure:
# Go to macports.org and download the installer source file. This will
# have a name like "Macports-2.7.1.t... | true |
923bb8a5315d10a60523a57d6f19729cf3992aec | Shell | kentaxinus/source.openwrt.melmac.net | /nebula/files/nebula.proto | UTF-8 | 2,522 | 3.546875 | 4 | [] | no_license | #!/bin/sh
# Copyright 2021 Stan Grishin (stangri@melmac.net)
# shellcheck disable=SC1091,SC2039,SC2034,SC3043
PKG_VERSION='dev-test'
readonly PROG=/usr/sbin/nebula
[ -x "$PROG" ] || exit 0
[ -n "$INCLUDE_ONLY" ] || {
. /lib/functions.sh
. /lib/functions/network.sh
. ../netifd-proto.sh
init_proto "$@"
}
version()... | true |
bc8c89d15fccbe6274872bb0c9c00c69e6bf3c0a | Shell | Appdynamics/AppD-Cloud9-Lambda-Lab | /bashUtilities.sh | UTF-8 | 604 | 3.359375 | 3 | [] | no_license | #!/bin/bash
#
# Copyright (c) AppDynamics Inc
# All rights reserved
#
# Maintainer: David Ryder, david.ryder@appdynamics.com
#
# Requires: jq (brew install jq)
#
#
_awsCloud9ListEnvironments() {
LIST1=$(aws cloud9 list-environments --query environmentIds[*] --output text)
for ENV_ID in $LIST1; do
aws cloud9 de... | true |
815b6f26fd7fb862ef882ba8d8e772366f7f4728 | Shell | aleksandrgilfanov/rotate-image | /video-to-imgdir | UTF-8 | 225 | 3.5625 | 4 | [] | no_license | #!/bin/sh -e
INPUT_VIDEO="$1"
OUTPUT_DIR="$2"
if [ $# -ne 2 ]
then
echo "Usage:"
echo "$0 {input-video} {output-images-directory}"
exit
fi
mkdir -p $OUTPUT_DIR
ffmpeg -i $INPUT_VIDEO $OUTPUT_DIR/frame-%04d.png
| true |
ae4a7b0120134c501e779f00e393e54aaaabc61f | Shell | ArthurManz/thrust-id | /eth-network/artifacts/entrypoint.sh | UTF-8 | 1,338 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
OPTIONS="--nodiscover --networkid $NETWORKID --port $NETWORKPORT --rpc --rpcport $MINERPORT --etherbase 0x57e25703aba36bd2575e9027de2cb9ac187dc6da --verbosity 6"
HELP="This is a help page. \
Available modes are: miner node1 node2 ethstats ethstatsclient help."
case $1 in
miner)
cp /root/key.miner /root/.et... | true |
e183f2bfa979e666ceb3711909ff0985009ef26c | Shell | openwfm/wrfxpy | /forecast.sh | UTF-8 | 167 | 2.9375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
if [ $# -eq 0 ]
then
echo usage: ./forecast.sh input.json
exit 1
fi
cd $(dirname "$0")
export PYTHONPATH=src
python src/forecast.py $1
| true |
14eef22b381bb06b90b3a7967aaaa992d2a6fe53 | Shell | erikwilson/CactusCon7 | /badge/data/genspiffs.sh | UTF-8 | 434 | 2.609375 | 3 | [] | no_license | #!/bin/bash
mkdir pub
mkdir fs
mkdir spiffs
for i in {1..542}; do
echo badge$i
mkdir fs/badge$i
openssl genrsa -out fs/badge$i/private.pem 768
openssl rsa -in fs/badge$i/private.pem -pubout > pub/$i
echo $i > fs/badge$i/my.id
cp cactuscoinapi.pem fs/badge$i/
~/Downloads/mkspiffs/mkspiffs-0... | true |
9637e5cb1a3e4e25cef25a4f046de65bf8018a6e | Shell | kellerli/mycat_haproxy_keepalive-docker-swarm- | /xinetd_config/mycat_status.sh | UTF-8 | 233 | 2.765625 | 3 | [] | no_license | #!/bin/bash
mycat=`/usr/local/mycat/bin/mycat status | grep 'not running' | wc -l`
if [ "$mycat" = "0" ];
then
/bin/echo -e "HTTP/1.1 200 OK\r\n"
exit 0
else
/bin/echo -e "HTTP/1.1 503 Service Unavailable\r\n"a
exit 1
fi | true |
b280be9ad099215d971cd4500c3b2791d638208f | Shell | StefanHeimberg/ee7-ejb-cdi-scopemix | /run-weblogic.sh | UTF-8 | 727 | 3.015625 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
__dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd ${__dir}
if [ -f "logs/example.log" ]; then
ts=$(date "+%Y%m%d-%H%M%S")
mv -v logs/example.log logs/example-$ts.log
fi
if [ -d "deployments/" ]; then
find deployments/ ! -name 'ee7-ejb-cdi-scopemix-ear.ear' -type f -exec... | true |
b7ed8b377b58998644f413affac27677f6a5f344 | Shell | stevleibelt/shell_script | /propel/checkRelease.sh | UTF-8 | 457 | 3.296875 | 3 | [] | no_license | #!/bin/bash
####
#
####
# @author artodeto
# @since 2013-04-23
####
URL_FEED='https://raw.github.com/propelorm/Propel/master/CHANGELOG'
DIR_SELF=$(cd $(dirname "$0"); pwd);
FILE_TO_DIFF='.PROPEL_RELEASE_CHANGELOG_TO_DIFF'
$(wget -q $URL_FEED)
if [ -f "$FILE_TO_DIFF" ]; then
$(diff CHANGELOG $FILE_TO_DIFF)
$(... | true |
67fbc72017f5043ccc153701306cba331fe3d53b | Shell | nikzasel/GOES | /omovie.sh | UTF-8 | 939 | 3.03125 | 3 | [] | no_license | #!/bin/bash
export CYGWIN="winsymlinks:nativestrict"
for GOES in 17 16;
do
date
echo "Link GOES-${GOES} source images"
mkdir /cygdrive/S/NASA/overlay-${GOES}
x=0; for i in `find S:/NASA/GOES-${GOES}_03_geocolor/overlay -name "*.png"`; do counter=$(printf %04d $x); ln -s "$i" /cygdrive/S/NASA/overlay-${GO... | true |
ad618b4836efc0d05fb5da884a36474b16503eb7 | Shell | abdxxw/2i010 | /TP3/ensemble_calculs3.sh | UTF-8 | 530 | 3.75 | 4 | [] | no_license | #! /bin/bash
# ensemble_calculs3.sh
if [ $# -eq 0 ]
then
echo "Il faut des parametres"
exit 1
fi
if [ -d $1 ]
then
echo "Dossier $1 existant"
exit 1
elif [ -d $2 ]
then
echo "Dossier $2 existant"
exit 1
else
s=""
s1=""
name=$1
name1=$2
shift 2
for x in "$@"
do
... | true |
4fb2e41320ba14333bc2a532aa94b45c7b1dbd96 | Shell | jelledebock/bestii | /Bash opl/92a.sh | UTF-8 | 899 | 3.828125 | 4 | [] | no_license | #!/bin/bash
(( $# >= 1 )) || { echo Gebruik: "$0" bestandsnaam aantal >&2 ; exit 1 ; }
[[ -f "$1" ]] || { echo $1 is geen bestand >&2 ; exit 1 ; }
exec 3< "$1"
aantal=${2-10} #${parameter-value}: gebruik parameter $2 als die bestaat, zoniet gebruik value 10
tel=0
while IFS='' read -u3 lijn ; do # while... | true |
a336db18e02a2fbfbeb24606d41f6d200796e967 | Shell | gc-ss/Raft-Membership-Service | /network_partition_demo.sh | UTF-8 | 528 | 2.6875 | 3 | [] | no_license | #!/bin/bash
# Create directory for writing logs to, if it does not already exist
mkdir -p MemberLogs;
echo "Launching $NUM_SERVERS nodes"
for i in $(seq 2 3)
do
python3 "$(pwd)"/member/Member.py False 0 &
#python3 member/Member.py False 0 &
done
for i in $(seq 4 5)
do
python3 "$(pwd)"/member... | true |
e546f170102cc3968f93dd9aa180c61a6f0ee130 | Shell | hak5/sharkjack-payloads | /payloads/library/util/Backup-and-Restore-scripts-with-logging-and-notification/restore.sh | UTF-8 | 10,611 | 3.8125 | 4 | [] | no_license | #!/bin/bash
#
# Title: restore.sh
# Description: Restore backed-up date and install packages on SharkJack
# Execute with: bash ./restore.sh /path/to/backup.zip (e.g. "bash ./restore.sh /tmp/1-20200101-SharkJack-backup.zip")
# Copy the backup file to the Shark Jack's /tmp directory via SCP (e.g. "scp 1-20200101... | true |
8cacf9e9ebd1b70fc6c193ecb5fa39aad296f2b4 | Shell | bcourbon/h2gglobe | /Reduction/check_jobs.sh | UTF-8 | 554 | 3.21875 | 3 | [] | no_license | #!/bin/bash
if [[ -z $1 ]]; then
echo "usage: $0 <directory with log files>"
exit 1
fi
tail -n 100 $1/*.log | egrep -B 2 '=>|cmsStage|rfcp|Red|Break|Disk quota exceeded' | egrep '=>|cmsStage|rfcp|[Rr]ed|Break|Disk quota exceeded' |
#COLOR RED
sed "s:Disk quota exceeded:\x1b\[01;31m&\x1b\[00m:g" |
s... | true |
5ad24f8aba5ee9f89736f5cf35526ee8ebb97c8b | Shell | FazioNico/node-micro | /scripts/install.sh | UTF-8 | 937 | 3.703125 | 4 | [] | no_license | #!/bin/bash
source $(pwd)/scripts/findpackages.sh
echo $packages | sed 's#.*/##'
# defin project rootDirectory
rootDirectory=$(pwd)
# create docker-cache Workspace Directory
mkdir docker-cache
# do loop for each microservice updated into packages folder
for dir in $packages; do
# go to microservice folder
cd $d... | true |
a8ca13247aeb72e1e00a6d0400e4ae81cb6c2e2d | Shell | mikechau/xmind | /docker/build.sh | UTF-8 | 322 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -euxo pipefail
DIST_DIR="/build/RPMs/x86_64"
VERSION=$1
TARGET=$2
docker build . -f "docker/${VERSION}/${TARGET}/Dockerfile" --rm --tag "xmind-rpm-${VERSION}-${TARGET}"
mkdir -p docker/dist
docker run --rm -v `pwd`/docker/dist:"${DIST_DIR}" -e LOCAL_USER_ID=`id -u $USER` xmind-rpm-${VERSION}-${TARGET... | true |
6af11bd5f222e70e722f8ffa617fdc7af51ebf18 | Shell | VapeShoppe/vapeshoppe.github.io | /tester.sh | UTF-8 | 1,338 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
#colors
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
reset=`tput sgr0`
echo "${green} _____ __ _____ _____"
echo "| | | | | | __|"
echo "| --| |__| | | | |"
echo "|_____|_____|_____|_____|${reset}"
echo "${yellow}Exporting path${reset}"
rversion=`ruby --vers... | true |
7f2333d26f3b4f45e0776441c1c4b8c1eaf01dc2 | Shell | Cloudxtreme/platform-hostapd | /buildimg.sh | UTF-8 | 1,113 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -eu
# e.g. 'platform-dokku'
REPONAME=$(echo $TRAVIS_REPO_SLUG | cut -f2 -d '/')
# e.g. 'dokku'
SERVICENAME=$(echo $REPONAME | sed 's/^platform-//')
docker build -t experimentalplatform/$SERVICENAME:$TRAVIS_BRANCH .
if [ "${TRAVIS_BRANCH}" == "master" ]; then
echo -e "\n\nWe're not uploadin... | true |
b93c56a4c670b5e345c1782a4adbadf06fb2173d | Shell | OnGle/plone | /conf.d/downloads | UTF-8 | 260 | 2.859375 | 3 | [] | no_license | #!/bin/bash -ex
dl() {
[ "$FAB_HTTP_PROXY" ] && PROXY="--proxy $FAB_HTTP_PROXY"
cd $2; curl -L -f -O $PROXY $1; cd -
}
VERSION="5.0/5.0.8/+download/Plone-5.0.8-UnifiedInstaller.tgz"
URL="https://launchpad.net/plone/$VERSION"
dl $URL /usr/local/src
| true |
99e55368dac94ebb61a55a22d12d05e3497a58b1 | Shell | sym3tri/dotfiles | /bash/.bashrc | UTF-8 | 2,092 | 2.96875 | 3 | [] | no_license | #!/bin/bash -e
# Source global definitions
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
export HISTFILESIZE=3000
# Homebrew Software
PATH=/opt/homebrew/bin:$PATH
PATH=/opt/homebrew/opt/python@3.11/libexec/bin:$PATH
# Python
PYTHONPATH="$(brew --prefix)/lib/python@3.11/site-packages"
export PYTHONPATH
#e... | true |
53296bf65cd6bb7e3e337d6502c07defcb64b158 | Shell | numbnet/wordpress-vm | /static/change_db_pass.sh | UTF-8 | 956 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# shellcheck disable=2034,2059
true
SCRIPT_NAME="Change Database Password"
# shellcheck source=lib.sh
source /var/scripts/fetch_lib.sh || source <(curl -sL https://raw.githubusercontent.com/techandme/wordpress-vm/master/lib.sh)
# T&M Hansson IT AB © - 2020, https://www.hanssonit.se/
# Check for errors + d... | true |
8b7977566d44737263f241b7a4d76ffc76b24dbf | Shell | MORTAL2000/oglplu2 | /config/tools/run_test-oglplus | UTF-8 | 808 | 3.59375 | 4 | [
"BSL-1.0"
] | permissive | #!/bin/bash
# Copyright Matus Chochlik.
# Distributed under the Boost Software License, Version 1.0.
# See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt
kind=${1}
shift
library=${1}
shift
test_src_dir="$(<SOURCE_DIR)/test/${kind}/${library}"
test_bin_dir="$(dirname ${0})/test/${k... | true |
3ce88dada6113744dd85378cf81bf6a2680187c7 | Shell | anviar/scripts | /filename_process.sh | UTF-8 | 2,581 | 4.4375 | 4 | [] | no_license | #!/bin/bash
USAGE="Usage:\n\t$0 [-e] [action] required_strings files
Here is:
-e Process considering file extensions, optional.
Actions can be:
-a|--add string add string at the end of filenames
-p|--prefix string add string at the begining of filenames
-d|--delete string delete string from filename
-r|--repl... | true |
2d41d6664acb98c3705945a1518bfef4d5dbfd7b | Shell | vnwildman/myutils | /src/irs | UTF-8 | 355 | 3.734375 | 4 | [] | no_license | #!/bin/bash
usage() {
echo "Image resize"
echo "Usage: $0 FILE"
exit -1
}
if [ $# -eq 0 ] ; then
usage
fi
# Name of resize file will append .jpg. It can't prepend because
# it false if filename contain dir
resizefile="$1.jpg"
if [[ -f "$resizefile" ]]; then
echo "Ready resize! Ignore."
else
convert "$1" -resize... | true |
dc0b1d907602ee7cf20c6753a23aa2e1ed5326f0 | Shell | IBMCloudDevOps/bluemix-python-deploy-sample | /bin/downloadArtifacts.sh | UTF-8 | 2,157 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
GH_BASE_URL=$OCTOKIT_API_ENDPOINT
# Check if GHE url is set, if not fall back to public GH
if [ -z $OCTOKIT_API_ENDPOINT ]; then
#If we are running in travis, try using OCTOKIT_API_ENDPOINT instead
GH_BASE_URL="https://api.github.com/"
echo "No GitHub url specified, using: $GH_BASE_URL"
fi
#Get the ... | true |
18384af3c58cc69079a26d5205a6d385cfa59455 | Shell | henrybw/dotfiles | /bin/devenv | UTF-8 | 681 | 2.984375 | 3 | [] | no_license | #!/bin/sh
#
# devenv
#
# Script that sets up a specific layout with gvim, a mini ranger browser, and a
# shell. This is designed around the gvim instance being used as a singleton;
# the ranger browser is also configured with this setup in mind. You can open
# files with the singleton gvim instance by using the 'gvim1'... | true |
af42b3e1e0dbf8f91e529de472d0de25a86bdc65 | Shell | babywyrm/sysadmin | /aws/find_unsafe_.sh | UTF-8 | 2,693 | 3.984375 | 4 | [] | no_license | #!/bin/sh
# Script finds AWS Security Groups with potentially unsafe rules and lists instances that use such security groups.
#
# Unsafe security group rules are:
# 1. open to the world (0.0.0.0/0),
# 2. not restricted to another security group,
# 3. not use safe ports (22,80,443; you can set SAFE_PORTS environment va... | true |
79c1a214d61fe3b74396a2221f0ee7175288222a | Shell | noseka1/ansible-base | /roles/openshift_openebs/files/create-openebs-lvm.sh | UTF-8 | 520 | 3.15625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash -x
# Create loop device and LVM volume group
device_name=loop0
device_path=/dev/$device_name
data_path=/var/local/${device_name}-device-data.img
data_size=2048G
if [ ! -f $data_path ]; then
truncate --size $data_size $data_path
losetup --partscan --show $device_path $data_path
pvcreate $device_pat... | true |
1f05cb4a46820cd48c507d52f8ca01fb9ab1583f | Shell | regro-cf-autotick-bot/cycamore-feedstock | /recipe/run_test.sh | UTF-8 | 626 | 3.046875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# setup env for tests
cd "${SRC_DIR}/tests"
export PATH="${PREFIX}/bin:${PATH}"
export CYCLUS_PATH="${PREFIX}/lib/cyclus"
if [ -z "$CYCLUS_NUC_DATA" ]; then
export CYCLUS_NUC_DATA="${PREFIX}/share/cyclus/cyclus_nuc_data.h5"
fi
UNAME="$(uname)"
if [ "${UNAME}" == "Darwin" ]; then
export DYLD_FALLBACK_LIBR... | true |
fb0d4bebf8eb870fa50def13f3ce6f5c9c3e58ee | Shell | IgorBoyarshin/dotfiles | /scripts/lfub | UTF-8 | 424 | 3.359375 | 3 | [] | no_license | #!/bin/sh
set -e
cleanup() {
exec 3>&-
rm "$FIFO_UEBERZUG"
}
if [ -n "SSH_CLIENT" ] || [ -n "SSH_TTY" ]; then
lf "$@"
else
[ ! -d "$HOME/.cache/lf" ] && mkdir -p "$HOME/.cache/lf"
export FIFO_UEBERZUG="$HOME/.cache/lf/ueberzug-$$"
mkfifo "$FIFO_UEBERZUG"
ueberzug layer -s <"$FIFO_UEBERZUG... | true |
0412895ec18ef196a7745f495c30398136c26fb4 | Shell | BruceZhanKai/LinuxFaceDetectionCLM | /execute/Setup-expect.sh | UTF-8 | 2,640 | 2.859375 | 3 | [] | no_license | #!/bin/bash
###!/usr/bin/expect
set PASS = NKG
set USR = nkg-1f-6001
echo "Start install expect."
sudo apt-get update
sudo apt-get install expect
echo "Finish install expect."
echo "Start Copy File."
#cp ./flycapture2-2.11.3.121-amd64-pkg.tgz ~/Downloads
#cp ./LinuxLocalPredict.7z /home/$USER
#cd ~/Downloads
tar zxvf... | true |
7fd7630b05d9f38b493260149f17b9be714009f9 | Shell | clemsonbds/cloud-latency | /benchmarks/iperf/run.sh | UTF-8 | 1,948 | 3.828125 | 4 | [
"BSD-2-Clause"
] | permissive | #!/bin/bash
REPO=$(cd "$(dirname "$(realpath "${BASH_SOURCE[0]}")")" && git rev-parse --show-toplevel)
UTIL=${REPO}/util
resultName=none
seconds=10
hostfile="/nfs/mpi.hosts"
groupClass=none
nodeClasses=none
msgBytes=1
POSITIONAL=()
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
--resultDir)
resultDir="$2"
sh... | true |
aa47540f8b9af48a8ee70cfb8e5d1c760726c1a6 | Shell | CarlosDiogo01/NUMA_Aware_Thesis | /c_src/__jobs_LUFACT/job_LUFACT_C_OriginalMatrix_TimeTest_ICC.sh | UTF-8 | 5,419 | 2.890625 | 3 | [] | no_license | #PBS -N LUFACT_C_OriginalMatrix_TimeTest_ICC
#PBS -l walltime=20:00:00
#PBS -q mei
#PBS -m abe
#PBS -M carlos.sa01@gmail.com
#PBS -lnodes=1:r641:ppn=32
# Machine USED
read -r node_info<$PBS_NODEFILE
############ Information about algorithm to run ################
alg="LUFACT_C_OriginalMatrix_ICC"
exeICC="$HOME/... | true |
2250d9d9d0941805bc77be153fad4980955a028a | Shell | MaxwellShih/akutils | /strip_primers_parallel.sh | UTF-8 | 3,605 | 4.1875 | 4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | #!/bin/bash
set -e
# check whether user had supplied -h or --help . If yes display help
if [[ "$1" == "--help" ]] || [[ "$1" == "-h" ]]; then
echo "
Usage (order is important!):
strip_primers_parallel <fastq1> <fastq2> <rev/comp primers as fasta> <threads to use>
Resulting files will be output to a subdirec... | true |
e17da62c13048cda3daa43beabf9fe710d85017b | Shell | hemant19cse/git-changelog-generator | /Scripts/genchangelog.sh | UTF-8 | 3,316 | 4.28125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#Read the config properties
. ./config.props
startTag=""
endTag=""
#outputFormat="md"
if [ $# -eq 0 ];
then
echo "USAGE: sh $0 tag1 tag2"
exit -1
elif [ -z "$1" ] || [ -z "$2" ]
then
echo "USAGE: sh $0 tag1 tag2"
exit -1
fi
startTag=$1
endTag=$2
#If the user provides the output format as... | true |
bf4b041bdc068b1306f1d8e600962fee46ec8a97 | Shell | jasonmimick/product-service | /app/app.curl-tester-CHNGEDB.sh | UTF-8 | 1,057 | 3.09375 | 3 | [] | no_license | set -x
USERNAME=""
APIKEY=""
BASEURL="http://localhost:5000"
#BASEURL="http://product-service"
METHOD=$1
shift;
DB=$1
shift
COLL=$1
shift
HEADERS="--header \"X-MongoDB-Database: ${DB}\" --header \"X-MongoDB-Collection: ${COLL}\""
echo "testing method (with): ${METHOD} $@"
echo "Sending additional HTTP Headers: ${HEAD... | true |
e6057b6d86ebb4796ea1b867f9cd7e819553d06c | Shell | seshendranath/Grpn | /NewCerebro_Replicator/opswise_run_script.sh | UTF-8 | 11,175 | 3.796875 | 4 | [] | no_license | ###############Variable Description################
### hdfs -> namenode of the hadoop cluster where the copy should happen
### script_host -> The Util Box where the Cerebro Copy scropt is stored
### schema -> Database of the table being copied
### table -> Table being copied
### inc_key -> partition key of the ta... | true |
dc49e5ff0fd531a5a276828e2e1bc329d0820c63 | Shell | bricewge/dotfiles | /bin/.local/bin/monitor | UTF-8 | 407 | 3.015625 | 3 | [
"CC0-1.0"
] | permissive | #!/usr/bin/env sh
#
# Toogle between input sources for BenQ GW2765HT monitor
# TODO rename file
model="BenQ GW2765"
dp="x0f"
hdmi="x11"
current_source=$(sudo ddcutil getvcp 0x60 --model "${model}" --terse | cut -d' ' -f4)
if [[ $current_source == $dp ]]; then
new_source=$hdmi
elif [[ $current_source == $hdmi ]]... | true |
adc7a97ea140d02d0fc70a748aa69274de526666 | Shell | CyberHolmes/CSCI5607 | /Project2/shellScripts/crop.sh | UTF-8 | 568 | 3.09375 | 3 | [] | no_license | #! /usr/bin/bash
#-----------------------------------------------------------------------------
# # Crop
CurProc=crop
echo Processing ${CurProc}...
OUTDIR=$OUTROOT/$NAME/${CurProc}
if [ ! -d $OUTDIR ];
then
mkdir -p $OUTDIR;
fi
./image -input ${INNAME} -${CurProc} -1 -1 150 150 -output ${OUTDIR}/${NAME}_${CurProc}_-1_... | true |
61b6fd8978b1833e8d99a7665958165058633236 | Shell | mauriceliddy/junk | /jankgradle | UTF-8 | 398 | 2.703125 | 3 | [] | no_license | #!/bin/bash
case $1 in
clean)
rm Servertest.jar Servertest.class
;;
build)
javac Servertest.java
;;
package)
jar -cfe Servertest.jar Servertest Servertest.class
;;
run)
java Servertest
;;
*)
rm Servertest.jar Servertest.class
javac Servertest.java
jar -cfe Servertest.jar Servertest Servertest.class
java Serverte... | true |
b8bc9230c4e2d10ec9478c30c33d3e16b7994d1e | Shell | TOLDOTECHNIK/buildroot-webkit | /board/toldotechnik_rpi/rootfs-overlay/etc/init.d/S22resize_rootpart | UTF-8 | 959 | 3.5625 | 4 | [] | no_license | #! /bin/sh
case "$1" in
start)
echo "Expanding the root partition..."
if [ -x "$(command -v psplash-write)" ]; then
/usr/bin/psplash-write "MSG RESIZING PARTITION - REBOOT"
fi
PART_START=$(parted /dev/mmcblk0 -ms unit chs p | grep ^2: | cut -f 2 -d:)
DISK_SIZE=$(parted /dev/mmcblk0 -ms unit... | true |
5b186673455a7de0fca3394aca1524e2268b3bca | Shell | meldafrawi/longhorn-tests | /test_framework/scripts/longhorn-setup.sh | UTF-8 | 14,855 | 3.59375 | 4 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -x
# create and clean tmpdir
TMPDIR="/tmp/longhorn"
mkdir -p ${TMPDIR}
rm -rf "${TMPDIR}/"
LONGHORN_NAMESPACE="longhorn-system"
# Longhorn version tag (e.g v1.1.0), use "master" for latest stable
# we will use this version as the base for upgrade
LONGHORN_STABLE_VERSION=${LONGHORN_STABLE_VER... | true |
01cea7436d7cdeba075d3256115d658d3d082461 | Shell | Frogdong/kp1 | /star/star_alignment_kp1.sh | UTF-8 | 771 | 2.671875 | 3 | [] | no_license | #!/bin/bash
#LF
#STAR_2.4.0j
set -o nounset -o pipefail
# read command line arguments:
read1=$1
read2=$2
prefix=$3
INDEX_DIRECTORY=$4 #~/projects/mapping/star/star_index/Mus_musculus.GRCm38.92.vM17.overhang74.index
cmd=\
"STAR \
--genomeDir $INDEX_DIRECTORY \
--readFilesIn $read1 $read2 \
--outFileNamePre... | true |
ee5fcaa250a69744b20bc07d6915f7336e5403b4 | Shell | goodnewday/UsefulTools | /MemAndCPUMonitor/format_data | UTF-8 | 452 | 3.15625 | 3 | [] | no_license | #!/bin/bash
input_file_name=$1
output_file_name=$2
grep "VmSize" $input_file_name > VmSize.txt
grep "VmRSS" $input_file_name > VmRSS.txt
grep "Cpu" $input_file_name > Cpu.txt
awk '{
if(NR==FNR)
{a[FNR]=$2;}
else
{a[FNR]=a[FNR]"\t"$2;}
}
END {print "" >"'"$output_file_name"'"; len=length(a); f... | true |
bb33e73f2afb9fe7e97ee0b7883d5fc3de6cc0ac | Shell | fabriziogaliano/docker-ansible-server | /ansible_conf/aws/ec2_script_boot | UTF-8 | 589 | 2.921875 | 3 | [] | no_license | #!/bin/bash
#Creation of Ansible User
sudo adduser --quiet --home /home/ansible --shell /bin/bash --disabled-password ansible
sudo mkdir -p /home/ansible/.ssh
sudo chmod 700 /home/ansible/.ssh
#Make Ansible User Sudoers
sudo usermod -aG sudo ansible
sudo echo "ansible ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/000-an... | true |
4fd5caa9570eb531298065ad4f2cc824b3f85786 | Shell | jvandyke/yui-assetcompressor | /scripts/assetcompressor.sh | UTF-8 | 416 | 3.140625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/sh
# Find out where we're starting
baseDir=$(dirname $_)
baseDir="${baseDir}/.."
buildDir="${baseDir}/build"
yuiBootClassPath="${baseDir}/lib/yuicompressor-2.4.2.jar"
args="$*"
# Options
minSuffix="-min";
# Command used on both JS and CSS files to minify content
minifyCommand="java -Xbootclasspath/p:${yuiBoot... | true |
fbda33ac52846bb396c94f9c11460f85ec6278d5 | Shell | JagwarWest/lab-ebpf-based-tracing-for-packer-analysis-public | /misc/install_open_gapps_pico.sh | UTF-8 | 3,993 | 2.796875 | 3 | [] | no_license | #!/bin/sh
adb root
sleep 1
adb shell mount -o rw,remount /
mkdir tmp/
if [ -f "open_gapps-x86_64-7.1-pico-20201218.zip" ]
then
echo "File open_gapps-x86_64-7.1-pico-20201218.zip already downloaded!"
else
echo "Downloading houdini64.sfs"
curl "https://uni-bonn.sciebo.de/s/s2z65Xs8eN4DHQc/download?path=%2F... | true |
358b843597ec2f94e0ab8abe4586509bf482faf9 | Shell | NASA-PDS/roundup-action | /support/run-roundup.sh | UTF-8 | 4,488 | 3.65625 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
#
#
# Convenience script to run the Roundup outside of Docker or GitHub Action.
# This assumes that the `roundup` executable is on your PATH. Run this inside of a
# checked-out project directory, whether it's Python or Java.
#
# Typical usage:
#
# cd roundup-action
# python3 -m venv venv
# venv/bin/pip instal... | true |
697fb53f70b05ae070bf142864d98ef7a4fb7767 | Shell | hooray1998/dotfiles | /shell/prompt.sh | UTF-8 | 407 | 3.078125 | 3 | [] | no_license | #!/bin/bash
export RPROMPT="%F{red}%(?..%?)%f"
if [ -n "$BASH_VERSION" ]; then
export PS1='\[\e[38;5;135m\]加油呀\u\[\e[0m\] \[\e[38;5;118m\]\w\[\e[0m\] > '
else
if [ "$UID" -eq 0 ]; then
export PROMPT="%F{135}%n%f@%F{166}%m%f %F{118}%~%f %# "
else
export PROMPT="%F{045}加油呀%n%f %F{118}%c%f > "
... | true |
6dd8f48e7a8a03e48f1fbf6ee0fdb844ef5db1f7 | Shell | vincent-zurczak/roboconf-docker-compliant-lamp | /src/main/model/graph/Tomcat/scripts/deploy.sh | UTF-8 | 1,041 | 2.828125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# Install required packages
apt-get update
apt-get -y install wget
apt-get -y install unzip
apt-get -y install default-jre-headless
# Download and unzip Tomcat
cd ~
wget http://central.maven.org/maven2/org/apache/tomcat/tomcat/7.0.64/tomcat-7.0.64.zip
unzip tomcat-7.0.64.zip
mv apache-tomcat-7.0.64 tomcat... | true |
4c50d170fa1aaf13bf5516edb9750877c19a1b76 | Shell | johnycao988/cloud-deployment | /01-env-setup/01-git.install.sh | UTF-8 | 462 | 2.75 | 3 | [] | no_license | ## Master server ,first need to run "chmod +x *.sh" in command line
#!/bin/sh
### step1: install git
echo "Installing git..."
yum install git
### step2: config
echo "Configing git..."
git config --global user.name "Johnny Cao"
git config --global user.email "johnnycao@chinasystems.com"
## No password for git comm... | true |
e846e60373966edfdb8d8fa2ca5d6198aafb24cf | Shell | HellenicMilsim/serverconfig | /jobs/server-restart-job.sh | UTF-8 | 793 | 3.65625 | 4 | [
"MIT"
] | permissive | #! /usr/bin/env bash
# This script force-restarts the server and moves old missions out of the way
echo "${TS} - Starting job: server-restart"
source "job-config.sh"
cd "~"
# Raise maintenance flag and kill the server
touch $MAINTENANCE_FILE
server_stop($1)
age_threshold=$(date -d 'now - $MISSION_MAX_AGE_DAYS days... | true |
e7064484340496c990e166ca1700853fdfff417f | Shell | sc2xos/letkf | /roms/letkf/run/init.sh | UTF-8 | 1,872 | 3.171875 | 3 | [] | no_license | #!/bin/sh
#=======================================================================
# init.sh
# This script prepares for new LETKF cycle-run experiment
#=======================================================================
set -e
#-----------------------------------------------------------------------
# Modify below... | true |
f3c6e852925d6dab5aefa744df918d3434087f0d | Shell | epfl-vlsc/persona-system | /compile.sh | UTF-8 | 1,277 | 3.34375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
# unofficial "bash strict mode"
# http://redsymbol.net/articles/unofficial-bash-strict-mode/
# Commented out 'u' because the `activate` script has some unassignment issues
set -u
set -eo pipefail
IFS=$'\n\t'
build_type="opt"
DIR=$(dirname $(realpath $0))
process_args() {
case "$#" in
0)
... | true |
bff5809b6cb167b0d4f611db4833bd9ae9d44f1d | Shell | petronny/aur3-mirror | /craft-fogleman-git/PKGBUILD | UTF-8 | 1,590 | 2.703125 | 3 | [] | no_license | # Maintainer: Martin C. Doege <mdoege at compuserve dot com>
pkgname=craft-fogleman-git
_gitname=Craft
pkgver=736.fe3e7b3
pkgrel=6
pkgdesc="A Minecraft clone in C and Python with multiplayer support"
arch=('i686' 'x86_64')
url="http://www.michaelfogleman.com/craft/"
license=('MIT')
depends=('glew' 'curl' 'python2-req... | true |
88134cc26e7d6b133fb59fdb53e5d988fc1d1ab3 | Shell | devopstoday11/consensas-ansible | /k8s/Kubernetes-KubeConfig.sh | UTF-8 | 684 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #
# ansible/Kubernetes-KubeConfig.sh
#
# David Janes
# Consensas
# 2018-12-23
#
FOLDER=$(dirname $0)
ANSIBLE_HOSTS=$1
ANSIBLE_HOSTS=${ANSIBLE_HOSTS:=master}
ANSIBLE_INVENTORY=$FOLDER/../inventory.yaml
export ANSIBLE_HOST_KEY_CHECKING=False
set -x
ansible-playbook \
--inventory "${ANSIBLE_INVENTORY}" \
... | true |
e235487b0a1e54803724029ec35deae31ba13729 | Shell | rbmarliere/stakemine.contracts | /build.sh | UTF-8 | 133 | 2.609375 | 3 | [
"MIT"
] | permissive | #! /bin/bash
CORES=`getconf _NPROCESSORS_ONLN`
mkdir -p build
pushd build &> /dev/null
cmake ../
make -j${CORES}
popd &> /dev/null
| true |
890f0cd949b0f621979c005820b9292f42bf5c67 | Shell | ksanjeev/Scripts | /Kamal_Sunquest_Backups/shell scripting/sources/app_a/exercise_05_02 | UTF-8 | 547 | 4.1875 | 4 | [] | no_license | #! /bin/sh
Then, mark the script with execute permissions.
$ chmod a+x lockdown
The full script then appears as follows:
#!/bin/sh
# Locks down file permissions.
for filename in *
do
# Initialize all permissions.
r=""
w=""
x=""
# Check to preserve existing permissions.
if [ -r $filename ]
... | true |
5a89c8d0c54cf4f5b8a7e242d5ccbc546a237965 | Shell | ktsitsikas-signal/SignalSDK | /release.sh | UTF-8 | 860 | 3.609375 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash -e
while [[ "$#" -gt 0 ]]
do
case $1 in
--repository-url)
repository_url="$2"
shift 2
;;
--username)
username="$2"
shift 2
;;
--password)
password="$2"
shift 2
;;
... | true |
3b12047601db69aa87fd48f9aa9883d7f6c40275 | Shell | bayvictor/distributed-polling-system | /bin/kill_ps_has_keyword.sh | UTF-8 | 494 | 2.984375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | echo "usage:$0 <kill_keyword_in_ps_ef>"
echo ".e.g.: $0 firefox"
echo "^C to break, anykey to continue...";read readline
echo "below ps -ef results will be killing...";read readline2
ps -ef | grep $1
echo "^C to break, anykey to continue...";read readline
#ps -ef|grep wget |tr '\b' ' '|cut -d" " -f4-9|sed 's/^ *//g'... | true |
72008c1f388520a4ea62a4e16d4028936886b3e0 | Shell | AminTaheri1/uwc3x | /addons/amxmodx/scripting/compile.sh | UTF-8 | 491 | 3.03125 | 3 | [] | no_license | #!/bin/bash
# AMX Mod X
#
# by the AMX Mod X Development Team
# originally developed by OLO
#
# This file is part of AMX Mod X.
# new code contributed by \malex\
test -e compiled || mkdir compiled
rm -f temp.txt
for sourcefile in *.sma
do
amxxfile="`echo $sourcefile | sed -e 's/\.sma$/.amxx... | true |
e972556b17f30e492c8ea243733f83c79dae4904 | Shell | t-ubukata/dotfiles | /.zshrc | UTF-8 | 2,734 | 2.546875 | 3 | [] | no_license | if [[ ! "$PATH" == *"$HOME"/.local/bin* ]]; then
export PATH="$HOME/.local/bin${PATH:+:${PATH}}"
fi
export LESSCHARSET=utf-8
export VISUAL=vi
export EDITOR=vi
export LESSEDIT="vi %f"
export FZF_DEFAULT_COMMAND=fd
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=100000
bindkey -e
autoload -Uz colors
colors
autoload ... | true |
8803f101047db9e7ce36f51bff3f905dcc7851cc | Shell | fsinfuhh/mafiasi | /scripts/start_db.sh | UTF-8 | 304 | 2.59375 | 3 | [] | no_license | #!/usr/bin/env sh
D=$(realpath $(dirname $0)/..)
mkdir -p "$D/db-data"
exec podman run \
--rm \
-e POSTGRES_DB=mafiasi-dashboard \
-e POSTGRES_USER=mafiasi-dashboard \
-e POSTGRES_PASSWORD=mafiasi-dashboard \
-v "$D/db-data:/var/lib/postgresql/data" \
-p 5432:5432 \
$@ \
docker.io/postgres:15
| true |
6ce47cff7ea19cffeba09586fbe6b919d843f7ab | Shell | count0ru/redis-cluster | /create_cluster.sh | UTF-8 | 684 | 3.140625 | 3 | [] | no_license | #!/bin/bash
#install redis tools (for deb based linux)
apt-get update && apt-get install ruby wget redis-tools -y
#download and install redis cluster tool
wget http://download.redis.io/redis-stable/src/redis-trib.rb -O ./redis-trib.rb
chmod +x redis-trib.rb
gem install redis
./redis-trib.rb create --replicas 1 $(ech... | true |
11d8b91bce4fc86aef5164d9e1c5bc9b7ba8ec62 | Shell | OceanMixingGroup/chipod_gust | /driver/monitorMatlab.sh | UTF-8 | 502 | 2.71875 | 3 | [] | no_license | #!/bin/bash
if [[ $(hostname) == matlab* ]]
then
watch -n 5 "echo 'matlab1';echo; ssh matlab1 'ps aux | grep matlab | grep -v grep';echo;echo 'matlab2';echo;ssh matlab2 'ps aux | grep matlab | grep -v grep';echo; echo 'matlab3';echo;ssh matlab3 'ps aux | grep matlab | grep -v grep';echo;echo 'matlab4';echo;ssh matl... | true |
6ce2007d8ad0d4888345226cda06986efd6a0c63 | Shell | plus3it/LxEBSbackups | /AutoTag.sh | UTF-8 | 4,279 | 3.703125 | 4 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | #!/bin/bash
# shellcheck disable=SC1090,SC2207
#
# This script is designed to make it easy to capture useful
# information about attached EBS volumes and save that
# information to the volumes' tag-sets
#
#################################################################
PVS=/sbin/pvs
INSTANCEMETADOC="http://169.254.... | true |
5deb096df630cea6915babdffb2bed55ff957555 | Shell | EugeneSqr/dotfiles | /setup/setup-xfce4-terminal.sh | UTF-8 | 165 | 2.796875 | 3 | [] | no_license | #!/bin/bash
if [ ! -f "$XDG_CONFIG_HOME/xfce4/terminal/terminalrc" ]; then
ln -s "$dotfiles_dir/xfce4-terminal/terminalrc" "$XDG_CONFIG_HOME/xfce4/terminal/"
fi
| true |
f8c2250dae42889e06bb7a59315088cd10a175f3 | Shell | skypexu/csup | /cpasswd.sh | UTF-8 | 2,971 | 4.09375 | 4 | [
"BSD-2-Clause"
] | permissive | #! /bin/sh
#
# Copyright 2007. Petar Zhivkov Petrov
# pesho.petrov@gmail.com
#
usage() {
echo "Usage: $0 clientName serverName"
echo " $0 -v"
}
countChars() {
_count="`echo "$1" | sed -e "s/[^$2]//g" | tr -d "\n" | wc -c`"
return 0
}
readPassword() {
while [ true ]; do
stty -echo
read -p "$1" _pass... | true |
a2c84a8137759edc53140e60b9e6974b7f905c95 | Shell | parallelworks/welding | /utils/genAnimation.sh | UTF-8 | 830 | 3.03125 | 3 | [] | no_license | #!/bin/bash
dir=/core/
rm pngs -R > /dev/null 2>&1
mkdir -p pngs
timestep=0.1
simtime=0.5
timesteps=$(echo $simtime/$timestep | bc)
#timesteps=1
startDS=2 # specific to NDTEMP
numElements=4
maxDatasets=$(echo $numElements*$timesteps | bc)
element=1
frame=1
for ds in $(seq 2 $numElements $maxDatasets);do
echo $... | true |
4496fb5f290ae9a68996dcc7f28573688cdfcef9 | Shell | Kron610/Bash-lab | /5.23.sh | UTF-8 | 249 | 3.703125 | 4 | [] | no_license | echo "Do you want to see content of current catalog (Yes/No)?"
read ANS
if [ $ANS == "Yes" ]
then
ls
fi
if [ $ANS == "No" ]
then
echo "Enter catalog"
read CAT
if [ -e $CAT ]
then
echo $(ls ${CAT})
else
echo "Catalog doesn't exist"
fi
fi
| true |
5f0bf7d16d0a85980efb3f270ec1564965c37d7d | Shell | clooney2007/Dev | /College projects/Sistemas Operativos Avanzados (C++)/Distributed BackUp Mejorado/distributed-backup-server | UTF-8 | 1,941 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/sh
#
# Distributed-Backup-Server /etc/init.d initscript para Distributed-Backup-Server
#
### BEGIN INIT INFO
# Provides: Distributed-Backup-Server
# Required-Start: $network $local_fs $remote_fs
# Required-Stop: $network $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0... | true |
fed7e14dbf77756376e8df4cef9783f6b9e93ee6 | Shell | zhaozhihua2008/deploy-service | /scripts/dservice.sh | UTF-8 | 1,554 | 2.84375 | 3 | [] | no_license | #!/bin/sh
# edit by zzh
# ./
APP_BIN=`dirname $0`
APP_HOME=$APP_BIN/..
export APP_HOME
echo $APP_HOME
JARS="${APP_HOME}/conf:${APP_HOME}/devConf:"
LIB=$APP_HOME/libs
if [ -d $LIB ]; then
for i in $LIB/*.jar; do
JARS="$JARS":$i
done
fi
PLUGIN=$APP_HOME/plugins
if [ -d $PLUGIN ]; then
for i in $PLUGIN/*.jar; ... | true |
d2c6fa883fc22c0f9ffbca64ac2ab2e58b3ebd14 | Shell | Scalingo/java-war-buildpack | /bin/compile | UTF-8 | 2,694 | 4.15625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir> <env-dir>
set -eo pipefail
if [[ -n "${BUILDPACK_DEBUG}" ]]; then
set -x
fi
readonly build_dir="${1}"
readonly cache_dir="${2}"
env_dir="${3}"
readonly java_version="${JAVA_VERSION:-1.8}"
readonly webapp_runner_version="${JAVA_WEBAPP_RUNNER_VERSION:-${WEBA... | true |
ed3d365df7e4c4f39236f969c73d0f80248e6a10 | Shell | 3bars/ghostlab | /ghost/wait-for-it.sh | UTF-8 | 320 | 3.125 | 3 | [] | no_license | #!/bin/bash
set -e
host="$1"
shift
cmd="$@"
until mysql -hmysql -p"3306" -u"${database__connection__user}" -p"${database__connection__password}" -D"${database__connection__database}" ; do
>&2 echo "MySQL is unavailable - sleeping"
sleep 1
done
>&2 echo "MySQL is up - executing command"
exec "$@"
# Fake Programmer
| true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.