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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
c508ce4de61427b72fe86b818f5e61bdaedb9706 | Shell | Dallinger/Dallinger | /scripts/update_experiments_constraints.sh | UTF-8 | 1,249 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd $dir/..
# Command to calculate md5sum of a file. Since BSD (Mac OS) has an `md5` binary and Linux has `md5sum`
# we salomonically decide to ditch both and implement them as a python one liner.
function md5_cmd () {
python3 -c "import hashlib as h;from... | true |
0c0c3932c2705e9c2ff0c0e5f1e1a31e2773111c | Shell | buwilliams/dotfiles_old | /vim/install.sh | UTF-8 | 211 | 2.546875 | 3 | [] | no_license | #!/bin/sh
VUNDLE_REPO="https://github.com/gmarik/Vundle.vim.git"
VUNDLE_DIR="$HOME/.vim/bundle/Vundle.vim"
if [ ! -d "$VUNDLE_DIR" ]; then
git clone "$VUNDLE_REPO" "$VUNDLE_DIR"
fi
vim +PluginInstall +qall
| true |
ff792b3f0c6c60ec7f46caff8f324584f73e14db | Shell | marasteiger/functional_genomics | /mapping/RNA_mapping.sh | UTF-8 | 664 | 2.65625 | 3 | [] | no_license | #!/bin/bash
cd /project/functional-genomics/2019/data/sra/48hMEF/RNASeq/
for file in *.fastq
do
first=$(echo "$file")
first=${first:0:10}
cd /project/functional-genomics/2019/group1/mapping/48hMEF/RNASeq/
STAR --runThreadN 10 \
--runMode alignReads \
--genomeDir /project/functional-genomics/2019/data/genome... | true |
c57116e1e843db3ea90370270162a0e9526ac557 | Shell | schwarz84/dotfiles | /bin/scripts/dmenu-explore | UTF-8 | 1,471 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright [2019] andreasl
# Copyright [2020] SqrtMinusOne
define_standard_settings() {
selected_path="$HOME"
history_file="${HOME}/.config/.edm_history"
max_history_entries=3
choices=(
'<open terminal here>'
'.'
'..'
"$(ls "$selected_path")"
"$(cat... | true |
949fadade9d94d1c3026f5c1490b1b5bec3ef3ac | Shell | arrjay/packer | /kam/files/save.sh | UTF-8 | 340 | 3.453125 | 3 | [] | no_license | #!/bin/sh
OIFS=IFS
IFS=,
mydev=''
for disk in $(sysctl -n hw.disknames) ; do
topdev=${disk%%:*}
for dev in /dev/$topdev? ; do
label=$(e2label $dev 2> /dev/null)
if [[ $label == "black" ]] ; then
mydev=$dev
break
fi
done
if [ ! -z "${mydev}" ] ; then
break
fi
done
IFS=$OIFS
set ... | true |
7cc016bbeab2b1bf7ff917b61b2936216a1be6c6 | Shell | rahulredde9/disk-encryption | /encrypt_disks.sh | UTF-8 | 3,752 | 4.15625 | 4 | [] | no_license | #!/bin/bash
#####################
# Author: RahulReddy
# Description:
# This script encrypts all attached drives except the first drive. It was tested in AWS but for other environments
# you may need to modify num_extra_drives and dev_label variables to make sure it gets the right variables
# NB: This script will e... | true |
19649653fa4cb6cc5d0a4e23466731093724e37e | Shell | t-lin/ece361-vm | /vnc/ece361-vnc | UTF-8 | 749 | 3.359375 | 3 | [] | no_license | #!/bin/bash
source /usr/local/ece361-wrapper-prints
if [[ $# != 1 ]]; then
bold_red -n "ERROR: "
echo "Expecting at least one parameter: 'start' or 'stop'"
exit 1
fi
if [[ $1 == "start" ]]; then
if [[ -n `ps aux | grep Xvnc4 | grep 5901` ]]; then
bold_red -n "ERROR: "
echo "A VNC serve... | true |
8ebbb3dec7730bdf45fbe942d3094b7531a62956 | Shell | xuewenhaoby/fnl | /test/change_link.sh | UTF-8 | 211 | 2.796875 | 3 | [] | no_license | if [ "help" = $1 ];then
echo "change_link.sh {HOSTNAME} {SBRNAME}"
else
HOST=$1
PORT=${HOST}p1
SBR=$2
ovs-vsctl del-port $PORT
ovs-vsctl add-port $SBR $PORT
ip netns exec $HOST ./../bin/send register
fi
| true |
17d0078ba61b37f76f9268df9d58f3c6996bf897 | Shell | greyson/aur-cctool | /PKGBUILD | UTF-8 | 544 | 2.75 | 3 | [] | no_license | pkgname=cc-tool
pkgver=0.24
pkgrel=1
pkgdesc="Support for Texas Instruments CC Debugger"
arch=('x86_64')
url='http://sourceforge.net/projects/cctool/'
license=('GPL')
depends=('boost>=1.34.0')
source=( "http://downloads.sourceforge.net/project/cctool/$pkgname-$pkgver-src.tgz" )
md5sums=('4b95889a60aa8162d1f41ed19bf14f7... | true |
46c966b75af300795c158aee3330133a50af3571 | Shell | unt-libraries/catalog-api | /clear_index.sh | UTF-8 | 466 | 3.015625 | 3 | [
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
if [ $1 ]
then
curl http://localhost:8983/solr/$1/update --data '<delete><query>*:*</query></delete>' -H 'Content-type:text/xml; charset=utf-8'
wait ${!}
curl http://localhost:8983/solr/$1/update --data '<commit />' -H 'Content-type:text/xml; charset=utf-8'
wait ${!}
... | true |
bffffb99d3034ce43ac5f73b84f5b675ee1bd51f | Shell | AlibiMourad/easycwmp | /fichier model | UTF-8 | 1,665 | 3.25 | 3 | [] | no_license | #!/bin/sh
#############################
# Entry point functuons #
#############################
prefix_list="$prefix_list $DMROOT.PID."
entry_execute_method_list="$entry_execute_method_list entry_execute_method_root_PID"
entry_execute_method_list_forcedinform="$entry_execute_method_list_forcedinform entry_execu... | true |
9a5bb1692333c0711be7fc19571f40dd229a7c40 | Shell | Jauresk/kafkaEisDemo | /seeds/kafka-sample-generator.sh | UTF-8 | 1,179 | 3.421875 | 3 | [] | no_license | #!/bin/sh
IFS=', ' read -r -a TOPICS_ARRAY <<< "$TOPIC_LIST"
IFS=', ' read -r -a PARTITIONS_ARRAY <<< "$PARTITIONS"
IFS=', ' read -r -a FACTORS_ARRAY <<< "$REPLICATION_FACTORS"
if [ "${#TOPICS_ARRAY[@]}" -ne "${#PARTITIONS_ARRAY[@]}" ] || [ "${#TOPICS_ARRAY[@]}" -ne "${#FACTORS_ARRAY[@]}" ] || [ "${#PARTITIONS_ARRA... | true |
2c55a475e04a86009a1fe2ca8c520d5e51d7606b | Shell | rathrio/concurrency-multi-core-programming-and-data-processing | /examples/lists/run-graph.sh | UTF-8 | 547 | 3.125 | 3 | [] | no_license | #!/bin/sh
initial=2048
update=20
mkdir -p data
for class in CoarseList FineList OptimisticList LazyList LockFreeList
do
echo "0 0" > data/${class}.dat
done
for class in CoarseList FineList OptimisticList LazyList LockFreeList
do
for threads in 1 2 4 8 16 24 32 48
do
echo "#########################################... | true |
19fe6e534e261bf62cdc5d2a43a7c38b09952a4c | Shell | amwill04/Packer-LAMP-Python-PhantomJS-WebScrapping-Build | /scripts/zerodisk.sh | UTF-8 | 2,056 | 2.734375 | 3 | [] | no_license | #!/bin/bash
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted... | true |
798ff395f1e9b38bafdc1f13f8c4fa9657dca3f7 | Shell | elasti-guyr/gcp-automation | /create_vheads.sh | UTF-8 | 13,624 | 3.46875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
#create vheads.sh, Andrew Renz, Sept 2017, June 2018
#Script to configure Elastifile EManage (EMS) Server, and deploy cluster of ECFS virtual controllers (vheads) in Google Compute Platform (GCE)
#Requires terraform to determine EMS address and name (Set EMS_ADDRESS and EMS_NAME to use standalone)
set -ux
... | true |
c8bdaf933344a7bbf8edb175bf51941c57c89775 | Shell | davidjohnplatt/sh | /moveCanonDropboxPics.sh | UTF-8 | 1,825 | 4.09375 | 4 | [] | no_license | #!/bin/bash
#
# script to zip one month work of pictures
#
#if [ $# -ne 1 ]
#then
# echo "Usage: unzipMonth.sh Month"
# exit 1
#fi
pictureDir=/home/david/Pictures
cd ~/Dropbox/Camera\ Uploads/
pwd
#
# find jpg files and replace the blank with an underscore
#
find . -name "* *.jpg" -print | while read file
do
... | true |
9b8455612c741c9220c3cdd62effcc84fa0bd986 | Shell | justinbloomfield/dotfiles | /scripts/bin/timer | UTF-8 | 303 | 3.296875 | 3 | [] | no_license | #!/bin/sh
#NTFY_FIFO_PATH=/tmp/ntfy.fifo
usage() {
echo "Usage: timer <hour>:<minute> [message]"
exit 1
}
{
while [ "$(date +%H:%M)" != $1 ]; do
sleep 1
done
mpv ~/etc/alarm.wav
message=${2:-"DING DONG"}
echo "$message" > "${NTFY_FIFO_PATH}"
echo "$message" > "${DVTM_FIFO}"
sleep 3
} &
| true |
2ffe45a5050ae1e1055ab43b4d374be2f0985c44 | Shell | 0x0916/lfs | /02-build-lfs/03-glibc.sh | UTF-8 | 3,209 | 3.09375 | 3 | [] | no_license | #!/bin/sh
set -e
NAME=glibc-2.28
TAR=tar.xz
SOURCE=/sources
cd $SOURCE
rm -fr $SOURCE/$NAME
tar -xf $NAME.$TAR
cd $SOURCE/$NAME
#From LFS
patch -Np1 -i ../glibc-2.28-fhs-1.patch
ln -sfv /tools/lib/gcc /usr/lib
case $(uname -m) in
i?86) GCC_INCDIR=/usr/lib/gcc/$(uname -m)-pc-linux-gnu/8.2.0/include
... | true |
0b86925cc415e106c37d2dc65aa7ae05e539c0f7 | Shell | peterhel/proxmox-utils | /shrink-disk | UTF-8 | 528 | 3.546875 | 4 | [] | no_license | #!/usr/bin/env bash
echo "For further instructions: https://pve.proxmox.com/wiki/Shrink_Qcow2_Disk_Files"
echo "Prepare the linux guest"
echo "dd if=/dev/zero of=/mytempfile"
echo "# that could take a some time"
echo "rm -f /mytempfile"
echo
USAGE="usage: $0 image.qcow2 image.qcow_backup"
echo
if [ -z "$1" ]; the... | true |
cdb77882dcd475325cb58a8a3feb5d3ce6aa1ea7 | Shell | ArchonAmon/Labosi | /Bash/zadatak2.sh | UTF-8 | 536 | 2.578125 | 3 | [] | no_license | #a)
grep -i "banana\|jabuka\|jagoda\|dinja\|lubenica" "/projekti(2.zadatak)/namirnice.txt"
#b)
grep -i -v "banana\|jabuka\|jagoda\|dinja\|lubenica" "/projekti(2.zadatak)/namirnice.txt" > "/projekti(2.zadatak)/ne-voce.txt"
#c)
grep -r -E "\<[A-Z]{3}[0-9]{6}\>" "C:\\Programiranje\\Bash_playground\\projekti(2.zadatak)" ... | true |
2bf6c8896742ff381c061e9d1aa4b353ec1cd95c | Shell | fabianonunes/sony-t13-fnkeys | /package/usr/bin/brightnessup | UTF-8 | 542 | 3.046875 | 3 | [] | no_license | #!/bin/bash
b=`head -1 /sys/class/backlight/intel_backlight/brightness`
max=`head -1 /sys/class/backlight/intel_backlight/max_brightness`
step=$(expr $max / 20)
if [ $b -lt $(expr $max - $step) ]
then
nb=`expr $b + $step`
else
nb=$max
fi
echo $nb | sudo tee /sys/class/backlight/intel_backlight/brightness
percentage=`... | true |
17404e74a5eedaea552de1a78de1f6f80bff31b0 | Shell | wing-888/MOR_X5_FROM_VM | /x5/helpers/.svn/text-base/elunia_stats_install.sh.svn-base | UTF-8 | 20,804 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#==== Includes=====================================
. /usr/src/mor/sh_scripts/install_configs.sh
. /usr/src/mor/sh_scripts/mor_install_functions.sh
#====end of Includes===========================
. /usr/src/mor/x5/framework/bash_functions.sh
if [ ! -f "/usr/bin/rrdtool" ]; then
yum -y install ... | true |
2a1154e4d10f3b92dc4cfffda360f1c41fba1c62 | Shell | mpotr/heroku-buildpack-c | /bin/detect | UTF-8 | 159 | 2.90625 | 3 | [] | no_license | #!/bin/sh
# bin/detect <build-dir>
BUILD_DIR=$1
cd $BUILD_DIR
# echo 'CPP'; exit 0
(ls -R | grep '\.c$' > /dev/null 2>&1) && (echo "CPP" && exit 0) || exit 1 | true |
eae019ee382c32229db5af3f5f12ad60467b63fa | Shell | kyktommy/dotfiles | /.bashrc | UTF-8 | 2,529 | 2.75 | 3 | [] | no_license | # JAVA
export PATH=$PATH:/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/bin
export PATH=$PATH:/usr/local/apache-maven/apache-maven-3.0.4/bin:$HOME/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/texbin:/usr/texbin/
#### Play
export PATH=$PATH:~/workspace/RunableX/play-2.1.1
#### Go
export G... | true |
7eb6736871bd906b62de228b74dd3f368dc39a2d | Shell | TinyTheBrontosaurus/rosbug_latched_singlecore | /launch/nominal_run.sh | UTF-8 | 214 | 2.953125 | 3 | [] | no_license | #! /bin/bash
# Run it, nothing special
rosrun latched_singlecore repro&
# Make it easy to kill this
cr=`echo $'\n.'`
cr=${cr%.}
read -p "Press enter to kill $cr"
echo -n "Killing..."
pkill -9 repro
echo "Killed"
| true |
9ff180909cf28b864e46a9fc1715966b6f3fdffa | Shell | studiometa/create-wordpress-project | /template/bin/db-export.sh | UTF-8 | 926 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Config
PROJECT_ROOT=$( cd "$(dirname "${BASH_SOURCE[0]}")/.." ; pwd -P )
source $PROJECT_ROOT/bin/utils/colors.sh
DATE=$(date +"%Y%m%d-%H%M")
FILENAME="$DATE.sql.gz"
# Output result
echo ""
echo -e " ${BLACK}#####################################################${COLOR_OFF}"
echo -e " ${BLACK}####### ... | true |
ee0abf11255b69f6d3521d9cc4c27f075724b58d | Shell | kampsj/shell_scripts | /restore_ubuntu.sh | UTF-8 | 6,273 | 3.703125 | 4 | [] | no_license | #!/bin/bash
clear
################################################################################
# Written By: "Jesse"
# Last update: 16-01-2020.
#===============================================================================
# Purpose:
# This script is used to get a fresh (x)ubuntu install up to speed.
# Useage... | true |
5d6f7b19d986d82aa3c4c33f4fb6df567679f792 | Shell | lucyxiang/COMP206 | /exam/midterm/midterm1v2.sh | UTF-8 | 153 | 3.203125 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 1 ];
then
exit
fi
#for var in "$@"
while [ $# -gt 0 ];
do
for f in $(ls $1)
do
cp $f ./backup
done
shift
done
exit
| true |
5aad638b8d310234cd89453b4d5088cb403b0e25 | Shell | johnmolloy/cloudwatchdns | /launch_script.sh | UTF-8 | 1,694 | 2.875 | 3 | [] | no_license | #!/bin/bash
yum install -y httpd
cd /var/www/html/
wget http://i.imgur.com/VuofKvO.jpg
echo "<html><div align="center"><h1>Webpage Test</h1></div>
<img src="VuofKvO.jpg" alt="Lord Buckethead"></html>" > /var/www/html/index.html
cat >>/etc/httpd/conf/httpd.conf <<EOL
<Location /server-status>
SetHandler server-stat... | true |
991157754d311d7efa830e87286253e45302a0cd | Shell | theGreenJedi/Path | /Python Books/Athena/training/demo/demo/performance_python/c-vs-cpp/time-all.sh | UTF-8 | 260 | 2.796875 | 3 | [] | no_license | #!/bin/sh
PROGS=(
./count-distinct.py
./count-distinct.c.x
./count-distinct.cpp.x
./count-distinct-v1.cpp.x
./count-distinct-v2.cpp.x
./count-distinct-v3.cpp.x )
for prog in "${PROGS[@]}" ; do
echo "Program: " $prog
time $prog < words.txt
done
| true |
eff466cc18a824a185cc05cbcc67a119220291e2 | Shell | duyquangou1989/MyScript | /Others/install_zabbix_centos.sh | UTF-8 | 1,032 | 2.75 | 3 | [] | no_license | #!/bin/sh
#echo "Enter HOSTNAME of this server here (This hostname must be the same as hostname which is created on Zabbix Server): "
HostName=`hostname`
yum -y install tcpdump rsyslog nc sysstat net-tools wget
yum -y group install 'Development Tools'
cd /etc/yum.repos.d/
wget http://10.30.10.11/download/zabbix.repo... | true |
a61ffe0bf8ce6aaafb61a60cd308e99329b2c051 | Shell | jinalsalvi/Halifax_Library | /DataCleaning/data2mongo.sh | UTF-8 | 1,175 | 3.484375 | 3 | [] | no_license | #!/bin/bash
# reads each ".txt" file in the given folder, where the 1st line of
# each file is the title; for each file, it makes a json object with
# three fields: "file_name", "title", "content", where it replaces
# any double quotes and \n's in the title/content with spaces
if [ $# -ne 3 ]
then
printf "\nUs... | true |
cbb0c9c84b8c0d2d0873b11552341772d4832d11 | Shell | tenllado/dotfiles | /.config/rofi/scripts/rofi_i3_msg.sh | UTF-8 | 838 | 4.25 | 4 | [] | no_license | #!/bin/bash
# Use rofi to send commands to i3, using i3-msg underneath. It manages a history
# file offered to the user in the rofi list window.
#
# Author: Christian Tenllado
# e-mail: ctenllado@gmail.com
HISTORY_FILE=~/.local/share/rofi/rofi_i3_history
MAX_HISTORY_SIZE=20
history_trunc() {
history_len=$(cat ${HIS... | true |
5c96bfe734dfbe132f929fec67546ccae0dd6393 | Shell | mpaya/epigenomics_scripts | /scripts/aux/manorm.sbatch | UTF-8 | 5,228 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#SBATCH -n 1
#SBATCH -c 1
#SBATCH -t 5:00:00
#SBATCH --job-name=manorm
#SBATCH --mem-per-cpu=10GB
module load gcc/6.4.0 samtools/1.9 picard/2.18.14 R/3.6.0
PATH=$EBROOTPICARD/:$PATH
source config.txt
outdir="$1"
bamdir="$2"
beddir="$3"
s=${bamdir##*/}
pattern_bed=*"$s"_"$epic2_gap".bed
cpus=1
compare_bat... | true |
267279f3aa68f88115be7fb2a94c330dcebf0a6d | Shell | slamdev/catalog | /etc/cluster-configuration/create-backend-project.sh | UTF-8 | 2,489 | 3.125 | 3 | [] | no_license | #!/bin/sh
set -euo pipefail
TERRAFORM_BACKEND_PROJECT="catalog-tf-backend"
REGION="australia-southeast1"
ORGANIZATION_ID=`gcloud organizations list --format="get(name)" | grep -oE "[^/]+$"`
BILLING_ACCOUNT_ID=`gcloud beta billing accounts list --format="get(name)" | grep -oE "[^/]+$"`
RANDOM_ID=`openssl rand -hex 3`... | true |
4cda613fbf838537c0a56a0f583c20eb129c45f8 | Shell | TrungNguyenBa/bug_fix_minimization | /scripts/Fault_localization/get_buggy_lines.sh | UTF-8 | 5,518 | 4.03125 | 4 | [] | no_license | #!/usr/bin/env bash
#
################################################################################
# This script determines all buggy source code lines in a buggy Defects4J project
# version. It writes the result to a file in the provided output directory; the
# file name is: <project_id>-<bug_id>.buggy.lines
#
# C... | true |
f56ee3fab1a5dcecab1948f7d0581cee3664111f | Shell | mkozinski/MRAdata_py | /prepareData.sh | UTF-8 | 3,416 | 3.453125 | 3 | [] | no_license | DNAME="download"
DN='ITKTubeTK - Bullitt - Healthy MR Database'
DD="${DN}/Designed Database of MR Brain Images of Healthy Volunteers"
LBL_SUBDIR="AuxillaryData/VascularNetwork.tre"
OUT_DIR="orig_data"
OUT_LBLDIR="$OUT_DIR"/lbl
OUT_IMGDIR="$OUT_DIR"/img
if [ ! -d "$OUT_DIR" ]; then
NEW_DOWNLOAD=true
if [ ! -d "$... | true |
70b4cd98d75ad9154da7b286e65d83f584566bb6 | Shell | ofalk/Nagios | /eventhandler_dispatcher | UTF-8 | 387 | 3.078125 | 3 | [] | no_license | #!/bin/bash
#
# Forward to all our eventhandlers
#
# In case you have several event handlers, this can be used
# to dispatch the events to all your eventhandlers
# There is no configuration file, just adapt the script.
dir=$(dirname $0)
#$dir/nag2tec $@
$dir/nag2pan $@
# Debugging
#echo "`comm -3 <(declare | sort) <... | true |
d9d45fd2082b7cf50f0e98b5eb47cdead3840b13 | Shell | kyubeom21c/kosta_iot_study | /shellPro/sh09until2.sh | UTF-8 | 145 | 2.984375 | 3 | [] | no_license | #!/bin/bash
echo $0
echo "args length:" $#
until [ $# = 0 ]
do
echo $1
sum=$(($sum+$1))
shift
echo $#
done
echo "sum:$sum"
exit 0
| true |
f87d4a7687ae2933ef34f0ee98c889b1e9d86936 | Shell | maxiroellplenty/web-template | /deploy.sh | UTF-8 | 907 | 3.40625 | 3 | [] | no_license | RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
SET='\033[0m'
# change your branch name
gitBranch="master"
sshConnection="yourUser@yourServer.de:httpdocs"
function uploadToWebServer()
{
echo "${YELLOW} ### Upload to Webserver with ssh ### ${SET}"
scp -r dist/* $sshConnection
echo "${YELLOW} ### D... | true |
f744c8638dcc9602abfb34fd71ba84a8afeaf7ca | Shell | whitwhittle/homeseer-tools | /HomeSeer-manager/run | UTF-8 | 1,076 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
HOMESEER_DIR=/opt/HomeSeer
PID_FILE=/run/homeseer.pid
START_PID_FILE=/run/homeseer-start.pid
STOP_PID_FILE=/run/homeseer-stop.pid
TIMEOUT=60
echo $$ > "$PID_FILE"
cd "$HOMESEER_DIR"
mono HSConsole.exe --log
EXIT=$?
echo "HomeSeer exited with code $EXIT."
# Homeseer forks shutdown and restart scripts. I... | true |
a99fa816e8466217523f61d25ae189632b00b5a8 | Shell | chenke225/bash_shell | /windows利用git通过ssh连接github.sh | UTF-8 | 3,552 | 2.96875 | 3 | [] | no_license | windows下免除每次连接github要输入密码之烦恼
打开~/.bash_profile,将以下内容粘贴到该文件,保存。当你初次运行git_bash时,将提示输入密码(SSH建立密钥时的密码),此时ssh-agent进程将持续运行,知道关闭git_bash。如此,连接github时将无需输入密码。
VScode中利用git通过ssh连接github
1 初始化
git config --global user.name chenke225 #设定连接用户名
git config --global user.email chenke225@gmail.com #建立github的用户邮箱
2 建立git仓库
... | true |
448ea0fa638874fd9330f6d7cc0b1f397b4347cb | Shell | ronioncloud/cloud-media-scripts | /config.template | UTF-8 | 4,145 | 3.15625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# shellcheck disable=SC2034
###############################################################################
# OPTIONS
###############################################################################
# Pool choice , 0 = unionfs, 1 = mergerfs mergerfs allows deletions for radarr/sonarr to prevent duplication o... | true |
b6afe0005b40ae074602f1842ce923b646c6df27 | Shell | dx0eu/v2rew | /v2ray_package_crew.sh | UTF-8 | 6,490 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/bin/sh
BIN_PATH=$(dirname $(readlink -f $0))
USER=dx0eu
REPO=v2rew
V2RAY_VERSION=$(curl -sL https://github.com/v2ray/v2ray-core/releases/latest | pup '.release-header:first-child .f1 a text{}')
_V2REW_VERSION=$(curl -sL https://github.com/$USER/$REPO/releases/latest | pup '.release-header:first-child .f1 a text{... | true |
a76403880ae7652e5934a413ff2c2258708dd264 | Shell | shang766/multiview | /doc/build.sh | UTF-8 | 1,028 | 3.578125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
PPWD="$(cd "$(dirname "$0")" ; pwd)"
ARCH_D=$(cat /opt/multiview/etc/arch)
CONFIG_F="doxy.config"
EXEC=/opt/multiview/$ARCH_D/opt/cc/bin/doxygen
# ! [ -x "LD_LIBRARY_PATH=$LLVM_D/lib $EXEC" ] \
# && echo "Failed to find $EXEC. Please build with: " \
# && echo "build/install-files/scripts/bui... | true |
d185bb7855f9bc2a5d7098cb8cf03d82708d7d31 | Shell | mehulsbhatt/docker-mariadb-backup | /backup-mysqldump | UTF-8 | 1,674 | 4.125 | 4 | [] | no_license | #!/bin/bash
MYSQL_USER=
MYSQL_PASSWORD=
MYSQL_HOST=
MYSQL_PORT=3306
while getopts ":u:p:h:P:d" opt; do
case $opt in
d)
BACKUP_FILE=$OPTARG
;;
u)
MYSQL_USER=$OPTARG
;;
p)
MYSQL_PASSWORD=$OPTARG
;;
P)
MYSQL_PORT=$OPTARG
;;
h)
MYSQL_HOST=$OPTARG... | true |
1d3598af926319006648d1b861c081c87d23bedb | Shell | KazAoyama/KaigoSystem | /E-LIFE/KEIRI/CGI/back/._KOJINATESEIKYUSHO_SAKUSEI.KEISAN.NORMAL_HIWARI.20140414.163044 | UTF-8 | 35,125 | 3.296875 | 3 | [] | no_license | #!/bin/bash
#
# KOJINATESEIKYUSHO_SAKUSEI.KEISAN.NORMAL_HIWARI 施設請求計算部分のCGI
#
# Written by S.Otsubo
# 設定ファイル読込
source /home/hands/.bashrc &> /dev/null
source /home/hands/E-LIFE/KEIRI/CGI/KOJINATESEIKYUSHO_SAKUSEI.INI &> /dev/null
# ログ
[ ! -e /home/hands/E-LIFE/KEIRI/TRACE_LOG/${today} ] && mkdir /home/hands/E-LIFE/KE... | true |
800754956238bb1d170b25bcfa6d63f1421b62cf | Shell | CocoaLumberjack/CocoaLumberjack | /Demos/PerUserLogLevels/Scripts/LumberjackUser.bash | UTF-8 | 743 | 3.9375 | 4 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Get full user name of current user
# E.g. "Robbie Hanson"
full1=$(osascript -e "tell application \"System Events\"" -e "get the full name of the current user" -e "end tell")
#echo $full1
# Convert to lower case
# E.g. "robbie hanson"
full2=$(echo $full1 | awk '{print tolower($0)}')
#echo $full2
# Repla... | true |
05d388845bc9f04aff00066f12cfd54164b49a82 | Shell | generalist/wikidata-hop | /hopextract-educated | UTF-8 | 4,737 | 3.46875 | 3 | [] | no_license | #!/bin/bash
# script for extracting various metadata from HoP HTML pages and preparing for Wikidata
# nb this needs them all in a handy directory at eg 1386-1421/member/xyz.html
# the old one was quite clunky - essentially ran once for each matching item
# version 2 runs backwards and takes a known item, then pulls ... | true |
e4b7941aac50af1ebd77d820035231449edd6d69 | Shell | huabingood/dayDayUp | /Bash/src/businessServiceDemand/functionFiles/functions.sh | UTF-8 | 2,108 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env bash
#######################################################
## 所有执行的函数
## @author huabingood
#######################################################
## 获取hqlLists中数组中所有需要执行的HQL脚本,并判断该脚本是否存在,如果存在就执行
function runDaily(){
for hqlFile in ${sqlLists[@]}
do
fileIsExist
hqlName=${... | true |
1ed16ee63c928b975ebc284e654214ebcc82da58 | Shell | jjevans/tools | /bin/findcwd | UTF-8 | 1,188 | 3.90625 | 4 | [] | no_license | #!/usr/bin/env sh
#find inputted filename (direct or with wc (*))
# from the cwd
#uses unix find
# ex. find . -iname 'input_from_arg0' -ls
# input is a word to search for as a filename
# (or part of it, substring with wc)
#all searches are without respect to case (-iname)
1&>2
echo "####" 1>&2
echo "#findcwd, 102120... | true |
d6494daafe453e7fc6e03bf272df137b6676be03 | Shell | earthobservatory/slcp2pm | /script/create_lar.sh | UTF-8 | 548 | 3.375 | 3 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | #!/bin/bash
BASE_PATH=$(dirname "${BASH_SOURCE}")
BASE_PATH=$(cd "${BASE_PATH}"; pwd)
SLCP_PROD=$1
SWATH=$2
echo "##########################################" 1>&2
echo -n "Running S1 log amp ratio generation: " 1>&2
date 1>&2
source /opt/isce2/isce_env.sh && python3 $BASE_PATH/create_lar.py $SLCP_PROD > create_lar.log... | true |
b496149f316104de3f560bdb9828843ce71a6396 | Shell | Meshl-555/FrameworkBenchmarks | /toolset/setup/linux/languages/elixir.sh | UTF-8 | 344 | 2.734375 | 3 | [] | permissive | #!/bin/bash
# TODO seems to be broken installation
echo "WARN: Elixir does not install"
return 1
# fw_exists v0.13.3.tar.gz
# [ $? -ne 0 ] || { return 0; }
# fw_get https://github.com/elixir-lang/elixir/archive/v0.13.3.tar.gz
# fw_untar v0.13.3.tar.gz
# cd elixir-0.13.3
# bash -c -i 'sudo make install'
# sudo make... | true |
06b0ac17cf41acbf5397bfa0eb28a8361bafb298 | Shell | Fatdrunk1/avtse-iiotg-upgrade-exp | /ble5/opt/avnet-iot/services/ble5lr-uart | UTF-8 | 1,268 | 3.578125 | 4 | [] | no_license | #!/bin/sh
BTATTACH=/usr/bin/btattach
BTMGMT=/usr/bin/btmgmt
HCIATTACH=/usr/bin/hciattach
HCITOOL=/usr/bin/hcitool
HCICONFIG=/bin/hciconfig
ble5lr_hat="/dev/serial0"
bd_prefix="FF:02:"
# Set static BD ADDR based on cpu serial
SERIAL=`cat /proc/device-tree/serial-number | cut -c9-`
B0=`echo $SERIAL | cut -c1-2`
B1=`e... | true |
4975034955af864697267d34c2b63ea9d8339ff8 | Shell | 4U6U57/dotfiles | /bin/git-sortmodules.sh | UTF-8 | 514 | 3.234375 | 3 | [] | no_license | #!/bin/bash
# Sorts the .gitmodules file in the current directory
# Taken from https://gist.github.com/jaytaylor/fad7bc69e5f12fc2331e2c6330bd8419
TempModules=$(mktemp)
awk 'BEGIN { I=0 ; J=0 ; K="" } ; /^\[submodule/{ N+=1 ; J=1 ; K=$2 ; gsub(/("vendor\/|["\]])/, "", K) } ; { print K, N, J, $0 } ; { J+=1 }' .gitmodul... | true |
ac6bca700b0a6aa11a93d5cba86c783f8068e59a | Shell | sdothum/dotfiles | /build/build/arch/post_install/passenger | UTF-8 | 1,008 | 2.65625 | 3 | [
"MIT"
] | permissive | # sdothum - 2016 (c) wtfpl
# Post_install
# ══════════════════════════════════════════════════════════════════════════════
# ........................................................................ nginx
# Usage: post_install passenger [<rubyver>]
# manual ruby version install
[ $2 ] && vsn=$2 || vsn=$(ls -1 $HOME/... | true |
e401c288e0100c4286b8691ea4582458efd21487 | Shell | MortenHe/wss-install | /install-powerblock.sh | UTF-8 | 248 | 2.515625 | 3 | [] | no_license | #!/bin/bash
echo 'get and install POWERBLOCK power button script'
cd ..
wget -O - https://raw.githubusercontent.com/petrockblog/PowerBlock/master/install.sh | sudo bash
echo 'edit config shutdownpin 18 -> 14'
echo 'nano /etc/powerblockconfig.cfg' | true |
7acdb85a3b60f58d014675f064a6917e8e4995a0 | Shell | dreydean/nudgepad | /system/createOwnerFile.sh | UTF-8 | 612 | 3.25 | 3 | [
"MIT"
] | permissive | # Generate owner user file
createOwnerFile ()
{
domain=$1
ownerEmail=$2
OWNERKEY=$(echo $ownerEmail$RANDOM$RANDOM | shasum -a 256 | sed "s/ -//g")
OWNERNAME=$(echo $ownerEmail | sed "s/@.*//g" | sed "s/[0-9]//g" | sed "s/\./ /g")
OWNERLINK=$(echo "http://$domain/nudgepad.login?email=$ownerEmail&key=$OWNERKEY... | true |
50fb5d4b4530c2eda39fd3bd779869fa57f1dad3 | Shell | staticdev/88x2bu | /dkms-install.sh | UTF-8 | 1,138 | 3.65625 | 4 | [] | no_license | #!/bin/bash
DRV_NAME=rtl88x2bu
DRV_VERSION=5.8.7.4
if [ $EUID -ne 0 ]
then
echo "You must run dkms-install.sh with superuser priviliges."
echo "Try: \"sudo ./dkms-install.sh\""
exit 1
fi
if [ -d "/usr/lib/dkms" ]
then
echo "dkms appears to be installed."
else
echo "dkms does not appear to be installed."
echo "... | true |
9e63c027dd711ab652c344d29b08fdf3e6fa88c7 | Shell | geekgit/linux_scripts_meta | /bash.sh | UTF-8 | 978 | 2.53125 | 3 | [] | no_license | #!/bin/bash
wget --secure-protocol=TLSv1_2 --https-only "https://raw.githubusercontent.com/geekgit/linux_configs/master/home/username/simple.bashrc" -O "simple.bashrc"
wget --secure-protocol=TLSv1_2 --https-only "https://raw.githubusercontent.com/geekgit/linux_configs/master/home/username/bash.sh" -O "simple_bash.sh"
c... | true |
5bb7db10973fa76d725ee04a76cc4541a32de0ad | Shell | filwie/dotfiles | /docker/build_images.sh | UTF-8 | 1,235 | 4.09375 | 4 | [] | no_license | #!/usr/bin/env bash
set -eu
REPO_ROOT="$(git rev-parse --show-toplevel)"
BUILD_DIR="${REPO_ROOT}"
DOCKER_DIR="${REPO_ROOT}/docker"
IMAGE_TAG="${IMAGE_TAG:-latest}"
IMAGE_PREFIX="${IMAGE_PREFIX:-dotfiles-}"
IMAGE_SUFFIX="${IMAGE_SUFFIX:-""}"
function cprintf () {
[ $# -lt 2 ] && return
tput setaf "${1}"; shif... | true |
09a534b9dbf5d6b0a1bcc0f8c03f1fe857a0183f | Shell | kellyuw/RoalfQA | /qa_clipcount_example.sh | UTF-8 | 937 | 3.5 | 4 | [] | no_license | #!/bin/bash
# ---------------------------------------------------------------
# QA_CLIPCOUNT.sh - find number of voxels with clipped amplitude (i.e. >= 4095)
#
# M. Elliott - 5/2013
# Edited by K. Sambrook - 1/2017
# --------------------------
Usage() {
echo "usage: `basename $0` [-append] [-keep] <4Dinput> [<maskfil... | true |
8b8534dbe93ab29395eb3605db9f7f65415d4f77 | Shell | straitm/neutronfit | /stage_four.sh | UTF-8 | 452 | 3.015625 | 3 | [] | no_license | #!/bin/bash
# Make sure we fail if root fails at the beginning of a pipeline
set -o pipefail
if [ $1 == compile ]; then
root -b -q rhc_stage_four.C++'(NULL, false)'
exit
fi
name=$1
dim=$2
shift 2
cat $@ | \
grep Probdensity | \
awk '{print $2, $3}' > stage_four.$name.$dim.tmp
root -n -l -b -q rhc_stage_four.C+... | true |
dd8f26baaca5429c29dd4c8efa531bad9439d3c3 | Shell | nuclewall/dev-tools | /pfPorts/squid/files/squid.in | UTF-8 | 2,702 | 3.5625 | 4 | [] | no_license | #!/bin/sh
#
# $FreeBSD: ports/www/squid/files/squid.in,v 1.11 2012/11/18 16:55:52 svnexp Exp $
#
# PROVIDE: squid
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Note:
# Set "squid_enable=yes" in either /etc/rc.conf, /etc/rc.conf.local or
# /etc/rc.conf.d/squid to activate Squid.
#
# Additional variables you can define in one... | true |
74cc6cf24fc45f4199a69d8c8d57b1a47e2e058f | Shell | orocos/orocos-docker-images | /ros2/ubuntu/orocos_entrypoint.sh | UTF-8 | 853 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
# Setup ros2 and orocos environment
source "/opt/ros/$ROS_DISTRO/setup.sh"
[ -d "/opt/orocos/$ROS_DISTRO" ] && source "/opt/orocos/$ROS_DISTRO/local_setup.sh"
# Append commands to setup ros2 and orocos environment to ~/.bashrc.
# This is only relevant if the command to be executed ("$@") is an inte... | true |
bd6cf0013df4536b5352d2db1d522643cdc530f8 | Shell | godatadriven-dockerhub/spark | /tests/run_tests.sh | UTF-8 | 118 | 2.796875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
for f in /tests/[0-9]*.sh; do
echo "Running $f"
bash "$f" -H || (echo "FAILED" && exit 1)
done | true |
c77b7bd555be6fcf335ea82b1b90dcf1c54dd7af | Shell | TLINDEN/dotfiles | /.xmonad/.xprofile | UTF-8 | 727 | 2.546875 | 3 | [] | no_license | # -*-sh-*-
Setup some extra PATH variables
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH
XDG_DATA_DIRS="/share:/usr/share:/usr/local/share"
export XDG_DATA_DIRS
XDG_CONFIG_DIRS="/usr/local/etc/xdg"
export XDG_CONFIG_DIRS
# Check for any specific PC-BSD apps we ne... | true |
6c64510e682b63c8e8aaa606e7b8d3e6e5e2c48e | Shell | caadar/paludis-config | /etc/paludis/hooks/auto/70.update-search-index.hook | UTF-8 | 3,055 | 3.390625 | 3 | [] | no_license | #!/bin/bash
##
## Automatically update the cave search index in the background.
##
## IMPORTANT: this hook requires sys-apps/paludis to be built with the
## "search-index" option, and "--index /PATH/FILE" (with existing writable
## PATH) to be specified in the global CAVE_SEARCH_OPTIONS variable.
##
## Copyright (C) 20... | true |
f8428fce6b639b172de3e52d2c4f87f58bb12031 | Shell | ymattw/profiles | /alacritty/install.sh | UTF-8 | 243 | 3.34375 | 3 | [] | no_license | #!/bin/bash
set -o errexit
set -o nounset
readonly SELF_DIR=$(cd $(dirname $0) && pwd)
[[ $(uname -s) == Darwin ]] || {
echo "Skipped (not on macOS)"
exit 0
}
mkdir -p ~/.config/alacritty
cp -a $SELF_DIR/*.yml ~/.config/alacritty/
| true |
7c3df3fdcf887085fa44f5dcec0c20d6acf213de | Shell | ecator/domain-list | /convert.sh | UTF-8 | 1,394 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# 转换Charles导出的csv文件到domains下的csv文件,自动去除重复
# 输出用法信息并结束
function echo_usage(){
echo "usage: $0 charles_csv target_csv"
exit
}
# 查找目标csv中是否已经存在指定的记录
# $1:需要查找的记录
function find_in_target(){
lines=`cat $target_csv`
for line in $lines; do
if [[ $line == $1 ]]; then
echo $1
break
fi
done
}
#自动... | true |
1a2dd0be1421e91ebce5e6742e594c7960177328 | Shell | uhulinux/ub-ubk4 | /rkhunter/install | UTF-8 | 924 | 2.5625 | 3 | [] | no_license | #!/bin/sh -eux
./installer.sh \
--layout custom \
${UB_INSTALLDIR}/usr \
--striproot \
${UB_INSTALLDIR} \
--install
cp ${UB_INSTALLDIR}/usr/etc/* ${UB_INSTALLDIR}/etc/
rm -rf ${UB_INSTALLDIR}/usr/etc
mv ${UB_INSTALLDIR}/usr/var ${UB_INSTALLDIR}/
sed -i -e "s#/usr/etc/rkhunter.conf#/etc/rkhunter.conf#g" "${UB_INST... | true |
1de2734460022ee9495a14e6dd5e3d76f2819514 | Shell | pepijndevos/pepijndevos.github.com | /_includes/code/multipygmentize.sh | UTF-8 | 209 | 2.609375 | 3 | [] | no_license | for f in $@
do
mkdir -p `dirname "output/$f.html"`
~/hg/pygments/pygmentize -f html -O anchorlinenos,linenos,full,urlformat=/{path}/{fname}{fext}.html,lineanchors=L,tagsfile=tags -o "output/$f.html" "$f"
done
| true |
6d8dc30175b60629c7a3f6fd35e35371763a99fc | Shell | GaelReinaudi/Cache-Bot | /lambda/updateLambda.sh | UTF-8 | 961 | 2.75 | 3 | [] | no_license | #!/bin/sh
VV=$(git --git-dir ../.git --work-tree $$PWD describe --always --tags | tr "-" "_" | tr "." "-")
NAME=$1-$VV
echo $NAME
#rm -f $NAME.zip
zip -r $NAME index.js ../bin ../expressjs/extraCash.sh ../expressjs/fullAnalysis.sh ../expressjs/evo.sh ../cache_categories.json
aws s3 cp $NAME.zip s3://cache.ai
rm -f $N... | true |
80080b1b55218e292f9af3ec4f002268b25f16a0 | Shell | alabuel/hardening.amazon.linux | /sections/5.1-configure-cron.sh | UTF-8 | 2,254 | 2.703125 | 3 | [] | no_license | # Author: Ariel Abuel
# Benchmark: CIS
# --------------------------------------------
# 5 Access, Authentication and Authorization
# 5.1 Configure cron
# --------------------------------------------
# 5.1.1 Ensure cron daemon is enabled (Scored)
log "CIS" "5.1.1 Ensure cron daemon is enabled (Scored)"
service_enable ... | true |
be427905b863c0291cd878c0f1df22597c5e5352 | Shell | miho/kernal64 | /Kernal64/build/k64.sh | UTF-8 | 709 | 3.03125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
HOME=`dirname "$0"`
HOME=`cd "$HOME"; pwd -P`
LIB=$HOME/lib
ROMS=$HOME/roms
CP=$ROMS:$LIB/kernal64.jar:$LIB/jinput.jar:$LIB/scala-library.jar:$LIB/scala-parser-combinators_2.12-1.0.5.jar:$LIB/commons-net-3.3.jar
if [ ! -x $JAVA_HOME/bin/java ]; then
JAVA=java
else
JAVA=$JAVA_HOME/bin/java
f... | true |
753cdce41a11745c23c73225d7885a2b33bf4563 | Shell | mpdn/unthread | /posixtestsuite/conformance/interfaces/clock_settime/18-1.sh | UTF-8 | 626 | 2.75 | 3 | [
"GPL-1.0-or-later",
"GPL-2.0-only",
"MIT"
] | permissive | #!/bin/sh
# Copyright (c) 2002, Intel Corporation. All rights reserved.
# Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com
# This file is licensed under the GPL license. For the full content
# of this license, see the COPYING file at the top level of this
# source tree.
#
# Test that clock_settime() set... | true |
77c57c0af19b35c97be6fb91d91bfe061145d809 | Shell | CarloWood/cwm4 | /scripts/depcomp.sh | UTF-8 | 2,825 | 3.453125 | 3 | [] | no_license | #! /bin/sh
# depcomp - compile a program generating dependencies as side-effects
# Copyright 1999, 2000, 2003 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; eit... | true |
053493ab8844508693d91bc63433b11630b57424 | Shell | opium-sh/rl-game-recording | /recording-bash/f1-2017-runme.sh | UTF-8 | 2,061 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
QUALITY=15 # change recoding quality 0-25, 0 - perfect and large file , 25 and small file
APP_WINDOW_NAME="F1™ 2017" #part of the game window name, use xwininfo -tree to find it
SCALE_TO="1024:768"
##############################################################################################
OUT_FILENAME=... | true |
283531208f509124e27fba864b56b11c3a73ed27 | Shell | RoshanS21/bashScripting | /learningBash.sh | UTF-8 | 2,022 | 3.96875 | 4 | [] | no_license | # Roshan Shrestha
#!/usr/bin/bash
# This is a comment
# The one on Line 2 is a shebang
function NewLine {
echo " "
}
function TotalFiles {
find -type f | wc -l
}
function TotalDirectories {
find -type d | wc -l
}
echo $SHELL
NewLine
cal
NewLine
date
NewLine
echo "Hello World!"
NewLine
greeting="Welc... | true |
607908fa80c71290498439a684a7afbd674aa3d6 | Shell | MarcelRaschke/docker | /versions.sh | UTF-8 | 7,889 | 3.4375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -Eeuo pipefail
# bashbrew arch to docker-release-arch
declare -A dockerArches=(
['amd64']='x86_64'
['arm32v6']='armel'
['arm32v7']='armhf'
['arm64v8']='aarch64'
['ppc64le']='ppc64le'
['s390x']='s390x'
['windows-amd64']='x86_64'
)
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
versions... | true |
1eace990a917a8c85a8c707d1576976ec20f585e | Shell | ericminio/learning-oracle | /tests/python/test_instance_is_ready.sh | UTF-8 | 557 | 3.046875 | 3 | [] | no_license | #!/usr/bin/env bash
DIR=/tmp/learning-oracle
ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
OUTPUT=$(docker exec oracle /bin/bash -c "export ORACLE_HOME=$ORACLE_HOME ; pytest $DIR/tests/python/test_instance_is_ready.py")
if [[ $OUTPUT == *"ERROR"* ]]; then
echo "FAILURE"
echo "OUTPUT WAS: $OUTPUT"
exit 1
f... | true |
34c2097b76772c4767d1d2c5f379d2db6dbf7a89 | Shell | moetunes/Schedule-dvb | /tv-record | UTF-8 | 3,483 | 3.734375 | 4 | [] | no_license | #!/bin/bash
set -o nounset
shopt -s huponexit
# User defines
declare -i DVB_DEVICE_NUM="0"
declare CHANNELS_CONF="${HOME}/Mychannels.conf"
declare SAVE_FOLDER="${HOME}/TV/tele"
declare SCHED_FILE="$HOME/.sched-tv"
declare ZAP_COMMAND="tzap"
declare -i SLEEP=15
# Program defines
declare -i DAY="0"
declare -i START="0... | true |
923045cf5e2bb99ce606a6b352c14f0c1dec62ce | Shell | richiefreedom/edit | /scripts/fontfinder.sh | UTF-8 | 440 | 3.78125 | 4 | [] | no_license | #!/bin/sh
defPath="default.ttf"
HandleError() {
echo $defPath
exit 1
}
command -v "fc-match" > /dev/null || HandleError
command -v "fc-list" > /dev/null || HandleError
fontMatch=`fc-match monospace`
[ $? -eq 0 ] || HandleError
fontFile=${fontMatch%%:*}
fontDesc=`fc-list | grep $fontFile`
[ $? -eq 0 ] || Hand... | true |
f6053e5e1c46cbc29f76fdad02dbe4bcbbb23059 | Shell | MenkeTechnologies/zpwr | /install/zpwrInstall.sh | UTF-8 | 32,252 | 3.46875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
#{{{ MARK:Header
#**************************************************************
##### Author: JACOBMENKE
##### Date: Wed May 31 22:54:32 EDT 2017
##### Purpose: bash script for custom terminal setup
##### Notes: goal - work on mac and linux
##### Notes: this script shou... | true |
51d51cf70f4f4ed298ebbe2ecbf097b47b262fb3 | Shell | rabahi/epel-scripts | /Production/srv-monitoring/centreon.bash | UTF-8 | 6,659 | 3.28125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
##################################################
# DEFINES
##################################################
# all version are available here : https://download.centreon.com/
# tab "Centreon Core"
CENTREON_ENGINE_VERSION=1.5.1
CENTREON_BROKER_VERSION=2.11.5
CENTREON_CONNECTOR_VERSION=1.1.... | true |
843819d25ab37ddc499631de857a805a03b0d7af | Shell | sbenthall/cda-workshop | /cda.sh | UTF-8 | 1,348 | 2.515625 | 3 | [
"MIT"
] | permissive | # This script assumes the python packages and libraries installed in BCE-0.1
# However, we avoid using the more straightforward approach using the ubuntu
# package for pydot (which avoids the pyparsing issue), this way we document the
# issue for other platforms
mkdir communications-data-analysis
cd communications-dat... | true |
c8e472b09931b587731c55283e9326bdf91d7e72 | Shell | NHS-digital-website/build | /packer/vagrant/scripts/cleanup.sh | UTF-8 | 711 | 3.328125 | 3 | [] | no_license | #!/bin/bash -eux
# Delete unneeded files.
rm -f /home/vagrant/*.sh
rm -f /home/vagrant/VBoxGuestAdditions_5.0.32.iso
# Download vagrant ssh key
apt-get install -y curl
mkdir -p /home/vagrant/.ssh
chmod 0700 /home/vagrant/.ssh
curl -so /home/vagrant/.ssh/authorized_keys \
https://raw.githubusercontent.com/mitchell... | true |
b3eab82606def92c471dba796fc7b4b242de0419 | Shell | abhishekbalam/bin-server | /gpush | UTF-8 | 532 | 3.34375 | 3 | [] | no_license | #!/bin/bash
if [ "$#" -eq "0" ]
then
echo -e "\e[38;5;222m---------------------------------------------";
echo -e "Commit Message:\"$(date)\"" ;
echo -e "---------------------------------------------\e[0m";
git add .;
git commit -m "$(date)";
git push -u origin master;
else
echo -e "\e[38;5;222m-----... | true |
75dd543979de452ee97dfa9c4bca10a125c5e8cf | Shell | hk6an6/jobladder | /IDE_setup_scripts/03_fix_heroku_aws_keyx.sh | UTF-8 | 944 | 3.515625 | 4 | [] | no_license | #!/bin/bash
#takes two positional arguments: <exit status> and a <tag>. Aborts process if $? isn't zero
#<exit status>: stands for the last process execution status. Zero means everything worked. This can be queried by using $?
#<tag>: a tag to identify the process. Just use any text that suits you
abortOnFailure(){
... | true |
50da872659dd3c9104cab07f0a3751c7cee0100f | Shell | 123FLO321/mongo-swift-driver | /.evergreen/run-atlas-tests.sh | UTF-8 | 903 | 3.046875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -o errexit # Exit the script with error if any of the commands fail
# variables
PROJECT_DIRECTORY=${PROJECT_DIRECTORY:-$PWD}
SWIFT_VERSION=${SWIFT_VERSION:-4.2}
INSTALL_DIR="${PROJECT_DIRECTORY}/opt"
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
EXTRA_FLAGS="-Xlinker -rpath -Xlinker ${INSTALL_DIR}/lib"
#... | true |
ad0d3758ef1fb4f167db21a85ac4cf2d4c578182 | Shell | jack1869/linux-auto-script | /autocp/remote_1.sh | UTF-8 | 633 | 3.125 | 3 | [] | no_license | #!/bin/bash
#./main.sh a.conf
base=/root/autocp
curhost=$base/conf/host.conf
confpath=$base/conf
cat $curhost | while read line
do
hostip=`echo $line|awk '{print $1}'`
password=`echo $line|awk '{print $2}'`
copyconf=`echo $line|awk '{print $3}'`
copyconff=${confpath}/$copyconf
cat $copyconff | while read line
d... | true |
f2ca26de22b5e72ea2dd4ff28130fef05d2c186c | Shell | aprato/dotfiles | /osx/set-defaults.sh | UTF-8 | 4,429 | 2.5625 | 3 | [] | no_license | # Sets reasonable OS X defaults.
#
# Or, in other words, how I like it
#
# The original idea (and a couple settings) were grabbed from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# This script was lifted from:
# https://github.com/holman/dotfiles/blob/master/osx/set-defaults.sh
#
# Run ./set-defau... | true |
d4e66efb8d6a1175817262bad68553b3e7c151c0 | Shell | lib-crash/lib-teeworlds | /bin/tw_split_logs | UTF-8 | 3,576 | 4.34375 | 4 | [] | no_license | #!/bin/bash
# tw_split_logs - by ChillerDragon
# splits teeworlds logfiles into smaller chunks
# and adds proper timestamps to all of the files
MAX_LINES=100000
LOGFILE=invalid.txt
mkdir -p /tmp/tw_split_"$USER" || exit 1
function bold() {
tput bold
echo "$*"
tput sgr0
}
function show_help() {
echo ... | true |
059c61ab92f4fd849fc545f281d8dba24be7d5ce | Shell | ttarczynski/kubernetes-101-workshop | /manifests/05_Pods/05-05_resource_management.sh | UTF-8 | 1,537 | 2.953125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -x
# what's changed in the kuard pod manifest:
# kuard: 0.5 CPU / 128 Mi Mem
diff 05-04_kuard-pod-health.yaml 05-05_kuard-pod-reqreq.yaml
read -p "Continue?"
# apply the pod manifest
kubectl apply -f 05-05_kuard-pod-reqreq.yaml
read -p "Continue?"
# observe effects of resources request
kubectl descr... | true |
ed07ccbc05f60ff6c931895812fadd607e1563d4 | Shell | iCodeIN/kernel-ml | /ml-models-analyses/readahead-mixed-workload/spawn-workloads.sh | UTF-8 | 1,723 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/local/bin/bash
#
# Copyright (c) 2019-2021 Ibrahim Umit Akgun
# Copyright (c) 2021-2021 Andrew Burford
# Copyright (c) 2021-2021 Mike McNeill
# Copyright (c) 2021-2021 Michael Arkhangelskiy
# Copyright (c) 2020-2021 Aadil Shaikh
# Copyright (c) 2020-2021 Lukas Velikov
# Copyright (c) 2019-2021 Erez Zadok
# Copy... | true |
b0a4d3f3c3ac56ceece28922acabe89a35c21ff7 | Shell | chilakagit/chilakasible | /nfstest/shellclasses/section1/commandscript.sh | UTF-8 | 539 | 3.328125 | 3 | [] | no_license | #!/bin/bash -x
#This script explain about the dedug mode which is (-x in #!/bin/bash) if i remove -x then it will give normal output
#This script also explains about the commands in echo command,whatever we put in $(cat /etc/profile) it will execute and same like $(utime) $(ls -l)
#$(ls -ltr) $(date) and in the same wa... | true |
dc5bdb2cb41ce9875789b556ee82fe018f4c6dd3 | Shell | isoundy000/ipa_re_sign | /shell/Resign_en.sh | UTF-8 | 4,179 | 3.25 | 3 | [
"Apache-2.0"
] | permissive | #! /bin/bash
# Program :
# This program re-sign an ipa with 'Apple Enterprise Certificate'
# History :
# 2019/07/05 GuoFeng First release
## TODO : check command result
echo "Start Signing"
# absolute path :
work_path=$(dirname $0)
cd ${work_path}
# temp path
rm -rf tmp target
mkdir tmp target
CURRENT_PA... | true |
69493ead3e85dbfd4a77a4571feeb569914839f8 | Shell | DarcyChang/MyProjects | /Gemtek/diagmon/diagmon/src/modules/manufacture/mf-builder.sh | UTF-8 | 609 | 3.125 | 3 | [] | no_license | #! /bin/sh
if [ $# != 3 ]; then
echo "Usage mf-builder.sh add [feature name] [backdoor string]"
elif [ -n $2 ]; then
mkdir feature/$2;
cp Sample/Sample.c feature/$2/$2.c;
cp Sample/Sample.h feature/$2/$2.h;
cp Sample/rule.mk feature/$2/rule.mk;
sed -i s/Sample/$2/g feature/$2/$2.c;
sed -i s/Sample/$2/g feature/... | true |
f619ec90754571a0389cb1731a81fa1da35edba4 | Shell | akhepcat/Miscellaneous | /ipt_or_nft.sh | UTF-8 | 891 | 3.453125 | 3 | [] | no_license | #!/bin/bash
if [ "$USER" != "root" ]
then
echo "Must be run as root"
exit 1
fi
if [ -n "$(which nft)" ]
then
NFTL=$(nft -s -nnn list ruleset | wc -l)
fi
if [ -n "$(which iptables-save-legacy)" ]
then
IPTLL=$(iptables-legacy-save | grep -vE '^[:#*]|COMMIT' | wc -l )
fi
if [ -n "$(which... | true |
0d63bfb639cfaa7154d9131920e7488c17541c72 | Shell | tharangni/LSHTC-2019 | /starspace/with_hierarchy.sh | UTF-8 | 2,237 | 2.71875 | 3 | [] | no_license |
MODELNAME=oms
MODELDIR=/home/harshasivajit/sspace/model/${MODELNAME}
DATADIR=/home/harshasivajit/sspace/data/${MODELNAME}
PREDDIR=/home/harshasivajit/sspace/pred/${MODELNAME}
hneg=5
neg=40
echo "making directories"
mkdir -p "${MODELDIR}"
mkdir -p "${DATADIR}"
mkdir -p "${PREDDIR}"
echo "Compiling StarSpace"
make
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.