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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f3bf1bd42d29b82f4c98592c6d12bb69413479d8 | Shell | intel-analytics/analytics-zoo | /pyzoo/zoo/examples/run-example-tests-pip.sh | UTF-8 | 21,862 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
clear_up() {
echo "Clearing up environment. Uninstalling analytics-zoo"
pip uninstall -y analytics-zoo
pip uninstall -y bigdl
pip uninstall -y pyspark
}
echo "#1 start example test for textclassification"
start=$(date "+%s")
# Data preparation
if [ -f analytics-zoo-data/data/glove.6B.zip ]... | true |
e85df1649fe063cddf66807bd7f0b7d49147f449 | Shell | wildfly/dep-tree-diff | /reporters/github-labels/src/main/resources/ci-script.sh | UTF-8 | 3,402 | 3.796875 | 4 | [] | no_license | #!/bin/sh
# The intent is for this to be kicked off from the folder containing a git clone that we want to check the deps for
echo "===== Dep Tree analyser ====="
originalDir=$PWD
script=$0
toolRelativeUrl=$1
mvnCmd=$2
orgAndRepo=$3
targetBranch=$4
modules=$5
prNumber=$6
depsOkLabel=$7
depsChangedLabel=$8
token=$9
e... | true |
77103b45d630901d74f375821158b11023875a77 | Shell | andrewhood125/establish | /mac/ctags.sh | UTF-8 | 202 | 2.75 | 3 | [
"MIT"
] | permissive | # Install ctags
_ctags_up() {
brew install ctags > /dev/null
}
# Upgrade ctags
_ctags_upgrade() {
brew upgrade ctags > /dev/null
}
# Remove ctags
_ctags_down() {
brew remove ctags > /dev/null
}
| true |
0fb1b787025204e2c5c9b29d209e15f5fafc3fdc | Shell | cffionn/GDJ | /setEnv.sh | UTF-8 | 1,048 | 2.953125 | 3 | [] | no_license | #!/bin/bash
GDJDIR=/usatlas/u/cfmcginn/Projects/GDJ/
GDJDIRLIB="$GDJDIR"lib
ROOUNFOLDDIR=$GDJDIR
HEPMCLIB=/home/cfm/Packages/HepMC2/hepmc-install/lib/
#THIS IS A DUMMY FOR MAKE - UNFOLD HAPPENS OFFLINE
#ROOUNFOLDDIR=$GDJDIR
if [[ $GDJDIR == *"usatlas/u/cfmcginn"* ]]
then
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/c... | true |
ac7b3bb17dc23faa00e5acc579609ba59e78d617 | Shell | jsh/electricsheep | /sysadmin/beaglebone-env-setup/bring-up-eth0 | UTF-8 | 224 | 2.578125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
adb shell 'netcfg eth0 up'
adb shell 'ifconfig eth0 192.168.1.1 netmask 255.255.255.0'
if ! grep -q beaglebone /etc/hosts; then
sudo sh -c 'echo 192.168.1.1 beaglebone.localdomain beaglebone >> /etc/hosts'
fi
| true |
6db4fed99a6432e9da160d42518c1ebcaf129eb4 | Shell | bmigunov/mpd-fnscroller | /sparse/usr/share/i3blocks/mpd-repeat | UTF-8 | 274 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
case $BLOCK_BUTTON in
1) mpc -q repeat ;;
esac
MPC_REPEAT_STATE="$(mpc status | awk '{for(i=1; i<=NF; i++) if($i=="repeat:") print $(i+1)}')";
if [ "$MPC_REPEAT_STATE" == 'on' ]; then
echo ;
else
echo ;
echo ;
echo \#131619;
fi
| true |
65ea1866ce2b670ed853c9bd0bbd143e616a6ff8 | Shell | maurosabatino/dotfiles-1 | /nvim/all.sh | UTF-8 | 314 | 3.703125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# nvim
#
# Installs nvim configurations and dependencies
set -e
basepath="$(dirname $0)"
cd "$basepath" || exit
mkdir -p ~/.config/nvim
for f in $(ls -d *.vim)
do
if [ ! -L ~/.config/nvim/$f ]
then
echo " Installing $f"
ln -s "$(pwd $basepath)/$f" ~/.config/nvim
fi
done
exit 0
| true |
ad5d75f59a7c0d6c1cc4603afa711b42a411a824 | Shell | q12321q/linuxConfig | /config/symlink.sh | UTF-8 | 684 | 2.6875 | 3 | [] | no_license | #!/bin/bash
GIT_CONFIG="$HOME/dev/linuxConfig/config"
ln -s -f $GIT_CONFIG/.tmux.conf ~/.tmux.conf
ln -s -f $GIT_CONFIG/.gdbinit ~/.gdbinit
ln -s -f $GIT_CONFIG/.bashrc ~/.bashrc
if [ ! -d ~/.config/termite ]
then
mkdir -p ~/.config/termite
fi
ln -s -f $GIT_CONFIG/.config/termite/config ~/.config/termite/config
# Z... | true |
133d3db2cce0dcab1d741567d9b08b8779f78360 | Shell | polambert/create-java-project | /create | UTF-8 | 2,052 | 3.921875 | 4 | [] | no_license | #!/bin/bash
# This is a bash script to create java projects.
# After running the script, and choosing the name of your
# project, change into the directory and you'll be able
# to run these commands:
# make - Compile, delete, and run.
# make keep - Compile and run.
# make compile - Compile.
# make unpack - Unpack co... | true |
d09538184f604750a68217218666c03af30a9053 | Shell | microsounds/atelier | /Scripts/xwin_webm.sh | UTF-8 | 1,404 | 3.75 | 4 | [] | no_license | #!/usr/bin/env sh
## xwin_webm.sh v0.5
## Press Ctrl+C to stop recording, press Ctrl+C again to cancel.
# simple screen recorder, edit settings to suit
# outputs soundless vp8 webm as required by certain anime imageboards
# colors
INFO=37
OK=32
ERR=31
# quality settings
SIZE=2.8M
CONSTQ=31
BITRATE=3M # 4M
SCALE=-1:... | true |
100fc8e66587b1ae0eb39265d64644fbe2bcfbaa | Shell | unisonweb/unison-dependencies | /common-setup.sh | UTF-8 | 2,334 | 3.65625 | 4 | [
"BSD-3-Clause"
] | permissive | # This file should not be run directly; it exists to share setup code between the various scripts in try-reflex
# Before running this script, DIR should be defined equal to the directory containing this script
REPO="https://github.com/ryantrinkle/try-reflex"
NIXOPTS="--option extra-binary-caches https://ryantrinkle.c... | true |
dbf2fe7d061915b7f02a2331deeb76e834478b7b | Shell | Kage0x3B/backup-scripts | /backupserver/mainserver.sh | UTF-8 | 1,073 | 3 | 3 | [] | no_license | #!/usr/bin/env bash
function backup_mainserver() {
echo Updating remote backup scripts - $(date +%d.%m.%Y-%H:%M:%S)
ssh vs '~/backup-scripts/update.sh'
echo Backing up syscy.de files - $(date +%d.%m.%Y-%H:%M:%S)
rdiff-backup -v4 vs::/var/www/syscy.de /mnt/backupdata/mainserver/syscy.de
echo Preparing NextCloud ... | true |
1951971bc66c1aed0689c1d391bacf5594ffd695 | Shell | Marwa-Medhat/apache-web-server-administration | /checkerdb.sh | UTF-8 | 3,478 | 3.484375 | 3 | [] | no_license | #!/bin/bash
##this script to have fns
# "1-checkApache"
# "2-check_if_virtualhost_exist_or_not"
# "3- check_if_authorized_or_not"
# "4-check_if_enable_authorized_or_not"
# "5-check_if_directory_Exist_or_not"
# "6-check_if_passwd_already_exist"
##############################################3
function checkApach... | true |
939128ea03910134aafceaf504bf24fcdf3850fb | Shell | kneeraj825/gittest | /Array/factaor.sh | UTF-8 | 265 | 3.171875 | 3 | [] | no_license | #!/bin/bash -x
read -p "enter the number" n1
function least() {
n=$1
lcm=0
v=0
for (( i=2; i<n; i++))
do
if (( $n%$i==0 ))
then
lcm=$i
lcm1=$((( $n)/lcm))
arr[v]=$(($lcm1))
((v++))
echo "$lcm1"
(( ++$lcm ))
fi
done
echo ${arr[@]}
}
res1=$(least $n1 )
echo "$res1"
| true |
f7e2d502ca2dfc74441475f797f5f0e31deaffe7 | Shell | AlexSysadmin/backup | /backup.sh | UTF-8 | 10,996 | 4.0625 | 4 | [] | no_license | #!/bin/bash
#################################################################
# You need megatools in order to upload your backup file to MEGA
# Download megatools from http://megatools.megous.com/
#################################################################
# Simple backup script for GNU/Linux servers
# Main feat... | true |
83133675971b0c40dd8ee3e4e4c484bc064f0b81 | Shell | 253765620/xuzhibo_work | /hlrfw/scripts/platform_service_script/upload_extra_addr | UTF-8 | 744 | 3.4375 | 3 | [] | no_license | #!/bin/bash
# /etc/init.d/upload_extra_addr
### BEGIN INIT INFO
# Provides: thingsboard
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: thingsboard initscript
# Description: This service is used to manage a led
### END INIT IN... | true |
a419764230298f41382fbf747e1a5cc007e1b000 | Shell | dominikschulz/dotfiles | /.aliases | UTF-8 | 7,290 | 3 | 3 | [] | no_license | # Easier navigation: .., ..., ...., ....., ~ and -
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~" # `cd` is probably faster to type though
alias -- -="cd -"
# Shortcuts
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias g="git"
alias h="history"
alias j=... | true |
889fe79973143530efa68c52b600020c758bec1a | Shell | DBombard3254/Final-Pack | /Week 12 Scripts | UTF-8 | 113 | 2.71875 | 3 | [] | no_license | #! /bin/bash
echo "Examples below that show the difference between ' and ".
echo $100
echo "$100"
echo '$100'
| true |
61812c97f4fb489a3c93e3d414a35cd0e954b0bf | Shell | BioDynaMo/biodynamo | /util/build-third-party/paraview/checkout-code.sh | UTF-8 | 1,343 | 3.1875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# -----------------------------------------------------------------------------
#
# Copyright (C) 2021 CERN & University of Surrey for the benefit of the
# BioDynaMo collaboration. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in ... | true |
e3a79372bc54c88eaad2faba3c6d51e3fbbcc347 | Shell | jcupitt/visual_qc | /previews/libpipe.sh | UTF-8 | 3,684 | 3.890625 | 4 | [] | no_license | # some useful utility things for writing image processing pipelines in bash
# set -x
# set -e
dollar_zero="$0"
ignore_errors=no
log_output=/dev/stdout
set_log=no
err_output=/dev/stderr
set_err=no
quiet=no
verbose=no
err() {
echo "$*" >> "$err_output"
if [ x"$verbose" = x"yes" ]; then
echo "$*"
fi
if [... | true |
c061b81b41eefad492c94fa189a943bec1a2c69e | Shell | jananib-huawei/mep-deploy | /scripts/pgsql_kong_deploy.sh | UTF-8 | 4,558 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# initial variable
export CertName=mepserver
CertDir=/tmp/${CertName}
PGDataDir=/data/mep/postgres
KongDataDir=/data/mep/kong
cat > ${CertDir}/init.sql << EOF
CREATE USER kong WITH PASSWORD 'kong';
CREATE USER mepauth WITH PASSWORD 'mepauth';
CREATE DATABASE mepauth;
REVOKE connect ON DATABASE kong FROM ... | true |
ca0737d59747f0241db0d0ae1d08bdd7ed24dce3 | Shell | cakefm/crowd_task_manager | /bash_scripts/docker_test_start.sh | UTF-8 | 1,185 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
echo "Starting modules..."
declare -a modules=(
"project_manager/omr_planner.py"
"pdf_to_mei/pdf_to_mei.py"
"aligner/aligner_mq.py"
"slicer/slicer_mq.py"
"task_scheduler/task_scheduler_new.py"
"aggregator/aggregator_xml_mq.py"
"aggregator/aggregator_form_mq.py"
"score_reb... | true |
016d111f381393a5aadbd8dc83ae1170ef21d65e | Shell | andalex/dotfiles | /install.sh | UTF-8 | 990 | 3.90625 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
NVM_VERSION="v0.34.0"
if [ ! -d '~/dotfiles' ]; then
echo -e "\nDownloading from github...\n"
git clone git@github.com:andalex/dotfiles.git
fi
cd dotfiles
echo -e "\nCreating symlinks...\n"
dotfiles=(
"$PWD/.tmux.conf"
"$PWD/.vimrc"
"$PWD/git/.gitconfig"
"$PWD/git/.gitig... | true |
c0d1617b8a15bd6c17cae4d9257ee24e707a9ffe | Shell | Mark-Kovalyov/mtn-meta-collector | /sparql/query | UTF-8 | 241 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
for i in *.rq; do
tdbquery \
--verbose \
--time \
--loc /bigdata/semantic/tdb/music-2021-03-05 \
--explain \
--optimize=on \
--results=CSV \
--base="http://file.org#" \
--file="$i" | tr -d '\r' > "$i.csv"
done;
| true |
3f1728a2fa9e5184a6c2d848450aebdcaf9fed21 | Shell | ranja-ionut/APD_Labs | /Lab02/test.sh | UTF-8 | 830 | 3 | 3 | [] | no_license | #!/bin/bash
N=1000
P=2
if [ ! -f "multiply_seq" ]
then
echo "Nu exista binarul multiply_seq"
exit
fi
if [ ! -f "multiply" ]
then
echo "Nu exista binarul multiply"
exit
fi
if [ ! -f "multiply2" ]
then
echo "Nu exista binarul multiply2"
exit
fi
if [ ! -f "multiply3" ]
then
echo "Nu exista... | true |
bb36b4de0afc30342e1baf10240c97a413749a86 | Shell | CameraRick/natron-plugins | /Resources/setup.sh | UTF-8 | 1,952 | 3.140625 | 3 | [] | no_license | #!/bin/sh
VERSION=1.0beta1
DATE=`date +%Y-%m-%d`
BIT=${1:-}
OS=`uname -s`
CWD=`pwd`
TMP="$CWD/tmp"
RESOURCES="$CWD/Resources"
PACKAGES="$TMP/packages"
DOMAIN="natron.community.plugins"
BINARY="NCP-${VERSION}-${OS}-${BIT}"
if [ "$OS" != "Linux" ] && [ "$OS" != "Darwin" ]; then
BINARY="${BINARY}.exe"
OS="Windows"
fi... | true |
2bb992a154ca0fc5d6dc0624c0d6f412800f6e8e | Shell | neocliff/my-config | /ghidra/ghidra-docs.sh | UTF-8 | 6,203 | 3 | 3 | [
"BSD-2-Clause"
] | permissive | #!/bin/sh
if [ $# -ne 1 ] || [ ! -d $1 ]; then
echo "usage: $0 <path/to/ghidra>"
exit 1
fi
if [ ! -w $1 ]; then
echo "the directory \"$1\" exists but you do not appear to have write"
echo "access. do you need to use \"sudo $0 $1\" instead?"
exit 1
fi
ghidra_dir=$1
echo "starting to download manu... | true |
7ee74171fcf8d6c8e338810fd217d3bb068778e0 | Shell | yukiisbored/dotfiles-2017 | /.zshrc | UTF-8 | 2,541 | 2.90625 | 3 | [] | no_license | # Yuki's zshrc
# ------------
export ZPLUG_HOME="$HOME/.zplug"
if ! which git > /dev/null 2>&1; then
echo "Git is not installed. Please install git."
return
fi
if [ ! -d "$ZPLUG_HOME" ]; then
echo "Installing zplug ..."
git clone https://github.com/zplug/zplug "$ZPLUG_HOME"
fi
# General configuratio... | true |
f468293346b9333e099ab361470592e218e17aed | Shell | WarrenLab/batch_GATK_workflow | /tasks/cp_files.sh | UTF-8 | 3,813 | 3.359375 | 3 | [] | no_license | #!/bin/bash
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in
--sample )
shift; SM=$1
;;
--bam )
shift; BAM=$1
;;
--log )
shift; LOG=$1
;;
--metrics )
shift; METRICS=$1
;;
--gvcf )
shift; GVCF=$1
;;
--workdir )
shift; CWD=$1
;;
--bqsr )
shift; BQSR=$1
;;
esac; shift; done
if [[ "$1" == '--' ]]; then shift; fi
ec... | true |
e8aaeca461fe5f80b4ba1cf250c64ff5017d01fe | Shell | YumaInaura/api | /exe/twitter-blog/twitter-to-markdown-samurai.sh | UTF-8 | 466 | 2.875 | 3 | [] | no_license | #!/usr/bin/env bash
set -eu
export LC_CTYPE=en_US.UTF-8
base_dir=$(dirname "$0")
source "${base_dir}/../../setting.sh"
jst_date=$(TZ=Asia/Tokyo date --date='1 days ago' +'%y-%m-%d')
mkdir -p "$log_dir"
cat "$log_dir"/timeline-jst-yesterday.json \
| "$api_dir"/twitter/filter.py \
--end-with=j \
--match='エ... | true |
23f761bb85421148ed269e1545058b3d3b8c4f87 | Shell | amoraide/vm-utils | /vmon | UTF-8 | 1,093 | 3.828125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
args=("$@")
FILE_PATH=$(readlink -f "$0")
FILE_DIR=$(dirname "$FILE_PATH")
FUNC_FILE=$FILE_DIR"/vm.functions"
. $FUNC_FILE
function turn_on {
if $2 ; then
echo "Turning on \"${1}\""
vboxmanage startvm "$1" --type headless 2>>$LOG_FILE
else
echo "Launching \"${1}\""
... | true |
320e64f0bc9d4e1fb25b298da28010e3af50a21c | Shell | uha0001/bio_scripting_homework_5 | /sysinfo_altindag.sh | UTF-8 | 290 | 3.21875 | 3 | [] | no_license | #!/bin/bash
#it is written in shell
#allows us to learn about the system, who's logged in.
function line(){
echo "****************************************"
}
echo "The time is $(date)"
line #call function
echo "currently logged users:"
who
line
echo "system has been running:"
uptime
| true |
be8266df70ae70b3a101a5f9d63d5958dad9d4e7 | Shell | Alfian878787/homedir | /bin/heroku | UTF-8 | 342 | 3.203125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
set -e
TGZ=heroku-client.tgz
URL=http://assets.heroku.com.s3.amazonaws.com/heroku-client/$TGZ
if [ ! -d $HOME/usr/heroku ]
then
pushd /tmp
wget $URL
popd
mkdir -p $HOME/usr/heroku
pushd $HOME/usr/heroku
tar xzf /tmp/$TGZ
popd
rm /tmp/$TGZ
fi
exec $HOME/usr/heroku/heroku-c... | true |
6409654f382919b9661119310f3a49158cf0af96 | Shell | GoogleCloudPlatform/selkies | /setup/scripts/selkies_cli.sh | UTF-8 | 1,829 | 3.375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to ... | true |
e02276e24ffd9d727d2f80a46d69f09e98373423 | Shell | MarsonShine/Books | /ShellScript/19-pingip.sh | UTF-8 | 344 | 3.421875 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | #!/bin/bash
network="192.168.1"
# for sitenu in $(seq 1 100)
for sitenu in {1..100}
do
# 取回环地址
ping -c 1 -w 1 ${network}.${sitenu} &> /dev/null && result=0 || result=1
if [ "${result}" == 0 ]; then
echo "Server ${network}.${sitenu} is UP."
else
echo "Server ${network}.${sitenu} is DOWN... | true |
017c2609a0f2fb95b8f146d7da40e38f8d1cf95c | Shell | cajanssen/connectcheck | /testconfig.sh | UTF-8 | 867 | 3.515625 | 4 | [] | no_license | #!/bin/bash
echo "number of arguments " $#
if [ $# -eq 1 ]
then
echo $1
else
echo "more or less than one param"
fi
basesleeptime=10
failuresleeptime=5
failurepivot=5
locationlist="google.com bing.com"
if [ $# -eq 1 ]
then
if [ -r $1 ]
then
. $1
fi
fi
sleeptime=$basesleeptime
echo "base sleeptime" $sleeptime
... | true |
5983ccf7deac251eb4daf6b1dda6c6598b334f63 | Shell | diginfo/utils | /config.sh | UTF-8 | 753 | 2.734375 | 3 | [] | no_license | ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $ROOT
NODE="/usr/share/nodejs";
REPO="https://github.com/diginfo/utils.git";
BASHDIS="/etc/bashrc.dis";
LINE='alias pm2-logs="/usr/share/nodejs/utils/pm2-logs.js"';
grep -q -F "$LINE" $BASHDIS || echo "$LINE" >> $BASHDIS;
LINE='alias pm2-events="/usr/share/... | true |
28a9cada36e4c79ec0389795b30fe0270e9b93c4 | Shell | archoncap/SSR2 | /SSRi | UTF-8 | 1,006 | 2.90625 | 3 | [] | no_license | #!/bin/bash
yum install git
cd /root
git clone -b manyuser https://github.com/shadowsocksr/shadowsocksr.git
cd ~/shadowsocksr
bash initcfg.sh
cd ~/shadowsocksr/shadowsocks
python server.py -p 8070 -k Gq19940507+ -m aes-256-cfb -O origin -o http_simple -d star
IP=$(ip addr | egrep -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\... | true |
61452df10bad65cc2b048f40dfd1892f475312ba | Shell | githubgossin/IaC-heat | /lib/ubuntu_boot.bash | UTF-8 | 613 | 2.59375 | 3 | [] | no_license | #!/bin/bash -v
tempdeb=$(mktemp /tmp/debpackage.XXXXXXXXXXXXXXXXXX) || exit 1
wget -O "$tempdeb" https://apt.puppetlabs.com/puppet6-release-bionic.deb
dpkg -i "$tempdeb"
apt-get update
apt-get -y install puppet-agent
echo "$(/opt/puppetlabs/bin/facter networking.ip) $(hostname).node.consul $(hostname)" >> /etc/hosts
ec... | true |
d769e3fc09151eb7e5821904050e67cfc90fe5ce | Shell | Toblerity/rtree | /ci/install_libspatialindex.bash | UTF-8 | 1,680 | 4.03125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -xe
# A simple script to install libspatialindex from a Github Release
VERSION=1.9.3
SHA256=63a03bfb26aa65cf0159f925f6c3491b6ef79bc0e3db5a631d96772d6541187e
# where to copy resulting files
# this has to be run before `cd`-ing anywhere
gentarget() {
OURPWD=$PWD
cd "$(dirname "$0")"
mkdir -p ../rt... | true |
268cd706a25716aed0aeb97b4cb4328f2377589d | Shell | ShahbajShaikh/Day6-Repetition-Function | /PrimeNumber.sh | UTF-8 | 205 | 3.640625 | 4 | [] | no_license | #!/bin/bash -x
read -p "Enter a number: " number
for((i=2;i<=number/2;i++))
do
if [ $((number%i)) -eq 0 ]
then
echo "$num is not a prime number."
exit
fi
done
echo "$num is a prime."
| true |
6fde74c941e502c09043a9b82534527fe0a011ef | Shell | RotemAmergi/linux-image-extra-script | /Update-linux-image-extra.sh | UTF-8 | 613 | 3.25 | 3 | [] | no_license | #!/bin/bash
#Var
#!/bin/bash
var=$(< kernel.txt);
file="kernel.txt"
if [ -f "$file" ]
then
echo "$file found."
else
echo "$file not found."
echo "script run - uname -r "
uname -r >> kernel.txt
fi
rm -f umame.txt
uname -r >> umame.txt
u=$(<umame.txt);
#echo "$u."
if [ "$var" == "$u" ]
then
echo "Same var."
echo "Same va... | true |
cd829a82d7826dddb21838e864b8d71f0ad3bf8d | Shell | XingyuXu-cuhk/Landuse_DL | /sentinelScripts/to_8bit.sh | UTF-8 | 1,035 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# conver to 8bit, file by file
# authors: Huang Lingcao
# email:huanglingcao@gmail.com
# add time: 6 July, 2019
# run this script in /home/hlc/Data/Qinghai-Tibet/entire_QTP_images/sentinel-2
# note: gdalsrsinfo require GDAL >= 2.3
dir_s2=/home/hlc/Data/Qinghai-Tibet/entire_QTP_images/sentinel-2
# get o... | true |
91cdfdb3a4753e126de9878f97670f98e8cc522d | Shell | ZhuY0606/myPage | /deploy.sh | UTF-8 | 438 | 2.53125 | 3 | [] | no_license | # 确保脚本抛出遇到的错误
set -e
# 生成静态文件
npm run docs:build
# 进入生成的文件夹
cd docs/.vuepress/dist
git init
git add -A
git commit -m 'update'
# 如果你想要部署到 https://USERNAME.github.io
git push -f git@github.com:ZhuY0606/ZhuY0606.github.io.git master
# 如果发布到 https://USERNAME.github.io/<REPO> REPO=github上的项目
#git push -f git@github.com:... | true |
7f0dff96eeb8ed2bbbddefe8931ba825c142623c | Shell | huangnauh/learn_sh | /ping.sh | UTF-8 | 287 | 3.0625 | 3 | [] | no_license | #!/usr/bin/env bash
ADDR="10.0.0.1"
INTERVAL=1
while True
do
while ping -c 1 $ADDR &> /dev/null
do
sleep $INTERVAL
done
echo "$ADDR ping error" 1>&2
until ping -c 1 $ADDR &> /dev/null
do
sleep $INTERVAL
done
echo "$ADDR ping ok!"
done | true |
f9fbb29cb542788cc621ea4c337f4810ca1ab2ff | Shell | Vinotha16/WIN_ROLLBACK | /templates/linux_audit/centos8/updates_19_audit.fact | UTF-8 | 309 | 3.015625 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
# ** AUTO GENERATED **
# 1.9 - Ensure updates, patches, and additional security software are installed (Scored)
if [ $(yum check-update 2> /dev/null | grep 'No packages' | wc -l) -eq "0" ]; then
echo "{\"updates_19_audit\" : \"FAILED\"}"
else
echo "{\"updates_19_audit\" : \"PASSED\"}"
fi
| true |
0fc07b4ae6b334399128748a9afd53b5b36aeade | Shell | dwtcourses/devops-course-activity1 | /scripts/aws-lambda/func1/test.sh | UTF-8 | 2,524 | 4.34375 | 4 | [] | no_license | #!/bin/bash
###########################################################################
#
# Script : test.sh
# Purpose : Test a deployed AWS Lambda function
# Authors : Steve Robinson - The MiddlewareShop (http://www.themiddlewareshop.com)
# Created : April 2016 for DevOps course
#
# History
#... | true |
61ac7dd7dc2ea1b984994e27824b0fed68094425 | Shell | andrewn/radiotag-radio | /init.d/radio | UTF-8 | 908 | 3.40625 | 3 | [] | no_license | #!/bin/sh
### BEGIN INIT INFO
# Provides: radio
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start radiotag-radio components
### END INIT INFO
# Quick start-stop-daemon example, derived from Debian /... | true |
2db3dfecdb7d48c1c088980851402aaa4c2b1685 | Shell | NetBSD/pkgsrc | /regress/infra-unittests/test.subr | UTF-8 | 8,620 | 4 | 4 | [] | no_license | #! /bin/sh
# $NetBSD: test.subr,v 1.18 2021/09/09 18:23:44 rillig Exp $
#
# This file defines utilities for testing Makefile fragments and shell
# programs from the pkgsrc infrastructure. While testing one part of the
# infrastructure, other parts can be mocked away.
#
# A test case is defined by the following function... | true |
95835858026391b9c2739bd4f77a946d3561397f | Shell | davidmfoley/estk | /bin/run-for-all | UTF-8 | 392 | 3.171875 | 3 | [] | no_license | #! /bin/bash
DIR=$( cd "$( dirname "$0" )" && pwd )
cd $DIR/..
set -e
DIRS=(
estk-pg \
estk-events \
estk-events-in-memory \
estk-events-pg \
estk-snapshots \
estk-snapshots-pg \
estk-read-models \
estk-read-models-pg \
estk-amqp-connector \
)
for dir in ${DIRS[@]}
do
echo
echo "**** $dir"
ec... | true |
f043b84ab9c71ae0124edc762ec39261929f1651 | Shell | songdongsheng/docker-image | /centos/build-docker-centos.sh | UTF-8 | 4,621 | 2.828125 | 3 | [] | no_license | vi /etc/yum/yum.conf or /etc/yum.conf
multilib_policy=best
vi /etc/systemd/journald.conf
# systemctl restart systemd-journald
SystemMaxUse=4GB
SystemKeepFree=1GB
SystemMaxFileSize=64M
MaxRetentionSec=31day
#ForwardToSyslog=yes
#MaxLevelStore=debug
#MaxLevelSyslog=debug
systemd-journal... | true |
18152f4c073a6192cf1efbd5b678b67373fbd2d4 | Shell | concordgit/cmgsite-php-buildpack | /bin/compile | UTF-8 | 2,942 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
# bin/compile <build-dir> <cache-dir>
indent() {
sed -u 's/^/ /'
}
# fail fast
set -e
# Heroku Revision.
#
# Affixed to all vendored binary output to represent changes to the
# compilation environment without a change to the upstream version,
# e.g. PHP 5.3.27 without, and then subsequentl... | true |
13ce37459cf643031b1477165dc6905477894fb5 | Shell | dc3671/lkp-tests | /tests/glbenchmark | UTF-8 | 516 | 2.65625 | 3 | [] | no_license | #!/bin/sh
# - test
# - width
# - height
## GFXBench is a free, cross-platform and cross-API 3D graphics benchmark
## that measures graphics performance,long-term performance stability,
## render quality and power consumption with a single, easy-to-use application.
[ -n "$width" ] || width=1366
[ -n "$height" ] || hei... | true |
4063f311c9d7eabe6d666daa4e0363fc73f3ece9 | Shell | sohama4/chat | /docker/scripts/cassandra-entrypoint.sh | UTF-8 | 814 | 3.421875 | 3 | [] | no_license | #!/bin/bash
# initialized in docker-compose.yml
#if [[ ! -z "$CASSANDRA_KEYSPACE" && $1 = 'cassandra' ]]; then
# # Create default keyspace for single node cluster
# CQL="CREATE KEYSPACE $CASSANDRA_KEYSPACE WITH REPLICATION = {'class': 'SimpleStrategy', 'replication_factor': 1};"
# until echo $CQL | cqlsh; do
# ec... | true |
fa622e3d78686617d1cb44a898c8355e6f416c13 | Shell | jojimt/misc | /vbox_clean.sh | UTF-8 | 176 | 2.609375 | 3 | [] | no_license | #!/bin/bash
VMs=$(VBoxManage list runningvms | awk '{print $2}' | sed 's/[{,}]//g')
for uuid in $VMs
do
VBoxManage controlvm $uuid poweroff
VBoxManage unregistervm $uuid
done
| true |
3b3941125baec1c685de4b490d4fb17b314cc016 | Shell | ericmjl/balena-sound | /core/multiroom/server/start.sh | UTF-8 | 1,276 | 3.796875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
set -e
SOUND_SUPERVISOR_PORT=${SOUND_SUPERVISOR_PORT:-80}
SOUND_SUPERVISOR="$(ip route | awk '/default / { print $3 }'):$SOUND_SUPERVISOR_PORT"
# Wait for sound supervisor to start
while ! curl --silent --output /dev/null "$SOUND_SUPERVISOR/ping"; do sleep 5; echo "Waiting for sound supervisor to start at ... | true |
6dac035f253566fc3e229a74adb4e35623baef35 | Shell | mtalexan/emacs-settings | /global_install.sh | UTF-8 | 6,547 | 4.21875 | 4 | [] | no_license | #!/bin/bash
set -o pipefail
# Minimum version needed, also the version of the source downloaded if no package is available
FILE_VERSION=6.5.6
APTITUDE=0
YUM=0
PACMAN=0
AURPAC=""
if command -v aptitude >/dev/null ; then
APTITUDE=1
APTGET=aptitude
APTMARK=aptitude
APTCACHE=aptitude
elif command -v apt... | true |
ac4ba211284252c4969d8ebd2ba187aba90fce2a | Shell | GPC-debug/Panoptes_Repos | /docker/overlay2/6b06e2f7818c56a3055af406a4c1572de266c94f11fb254b5ce7ef3e8d98150a/diff/opt/conda/bin/pocs | UTF-8 | 1,071 | 3.765625 | 4 | [] | no_license | #!/bin/bash -ie
usage() {
echo -n "##################################################
# Start POCS via Docker.
#
##################################################
$ $(basename $0) [COMMAND]
Options:
COMMAND These options are passed at the end of the docker-compose command.
To start all service simply pa... | true |
190d8d0236611e4f06aaf5a2c620ad30653c4e7d | Shell | ning/killbill | /server/src/deb/control/prerm | UTF-8 | 192 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/sh
set -e
# Automatically added by dh_installinit
if [ -e "/etc/init/killbill-server.conf" ]; then
invoke-rc.d killbill-server stop || exit $?
fi
# End automatically added section
| true |
c237e46e405251747487ed0deb85c84a9cffa475 | Shell | delkyd/alfheim_linux-PKGBUILDS | /doxyparse/PKGBUILD | UTF-8 | 818 | 2.9375 | 3 | [] | no_license | #PKGBUILD Maintainer: Rafael Reggiani Manzo <rr.manzo#gmail.com>
pkgname=doxyparse
_actual_ver=1.8.11
_extra_ver=20090622
pkgver=${_actual_ver}_${_extra_ver}
pkgrel=1
pkgdesc="Parses source code and dumps the dependencies between the code elements."
groups=('analizo')
arch=('any')
url="http://analizo.org"
license=('GP... | true |
ceb86220c5df07310f2b1b27d9c88c14b02ed5dc | Shell | StonyBoy/linux-config | /bashrc | UTF-8 | 1,055 | 3.296875 | 3 | [] | no_license | if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -x /usr/local/bin/brew ]; then
# If brew exists
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --pr... | true |
1828d5f5ae98e6ace8289f87e50f0d5507b43503 | Shell | cheongil-hyun/bin | /crash_64/do_crash.sh | UTF-8 | 1,443 | 3.421875 | 3 | [] | no_license | #!/bin/bash
LOAD_CMM=load.cmm
KCONFIG_FILE=kconfig.txt
CRASH_SH=doraw.sh
PHYS_BASE=0x0
CMD=
#DUMP_INFO=$(grep 'd.load.binary' ${LOAD_CMM} | gawk '{print $2, $3}')
DUMP_INFO=$(grep 'd.load.binary DDRCS' ${LOAD_CMM} | gawk '{print $2, $3}')
# echo $DUMP_INFO
function show_info() {
echo "do_crash.sh"
echo " - version ... | true |
d9efb0bec577dda6f8d596799a57b33e8e79c62f | Shell | macathena/macathena | /source/openafs-conf-update/postinstall | UTF-8 | 462 | 2.53125 | 3 | [] | no_license | #!/bin/bash
cd /var/db/openafs/etc
rm -f config/afsd.options.old
echo '-afsdb -stat 2000 -dcache 800 -daemons 3 -volumes 70 -dynroot -fakestat-all' > config/afsd.options.old
if cmp -s config/afsd.options.old config/afsd.options ; then
rm -f config/afsd.options
fi
rm -f config/afsd.options.broken
if [ ! -f config/af... | true |
d8a347bc981d9960f3448076b062112cf1fa8c8a | Shell | ejheuvel/cpp-travis | /test | UTF-8 | 419 | 3.359375 | 3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | #!/bin/bash
# Travis example for C++ by Rafał Pocztarski
# For more languages and info see:
# https://github.com/rsp/travis-hello#readme
tn=1
t() {
echo Test $tn $@
}
pass() {
echo Test $tn OK
tn=$(($tn+1))
}
fail() {
echo Test $tn FAILED
exit 1
}
t program should run
./hello >/dev/null 2>&1 && p... | true |
ab547791a7cf37c0221caded7d6fecdd397d6403 | Shell | telmich/nsbin | /eth/ftpmirror.sh | UTF-8 | 291 | 3.3125 | 3 | [] | no_license | #!/bin/sh
# Nico Schottelius
# Mirror some ftp site and record changes
# Run before:
# cd "${dir}" && git init
set -e
set -x
dir=/home/users/nico/ethz/ftp
site=ftp://ftp.ethz.ch/ETH
date="$(date)"
cd "${dir}"
wget --quiet -m ${site}
git add . && git c -m "Import of ${site} at ${date}" > /dev/null
| true |
5da7ba0a4af4f83489031bf8c2fd8e83e328c7bc | Shell | SpongeClubDrive402946429/RDP | /RDP.sh | UTF-8 | 1,807 | 2.921875 | 3 | [] | no_license | #! /bin/bash
printf "Installing RDP Be Patience... " >&2
sudo useradd -m USER
sudo adduser USER sudo
echo 'USER:1234' | sudo chpasswd
sed -i 's/\/bin\/sh/\/bin\/bash/g' /etc/passwd
sudo apt-get update
wget https://dl.google.com/linux/direct/chrome-remote-desktop_current_amd64.deb
sudo dpkg --install chrome-remote-deskt... | true |
533f7fc4c1ee5db7dc5319e7c2a909ba7a1cda49 | Shell | cuulee/mapboard-server | /run-tests-docker | UTF-8 | 669 | 3.1875 | 3 | [] | no_license | #!/bin/bash -e
# This startup script should probably be integrated into the application itself
dbname="mapboard_test"
export MAPBOARD_SRID=32733
export POSTGRES_DB="$dbname"
export MAPBOARD_DB_PORT=54322
dbargs="-h localhost -p ${MAPBOARD_DB_PORT} -U postgres"
docker-compose up --build -d db
while ! pg_isready $dbarg... | true |
88c9eef90366d280a86a8e32dc5d25e557bde684 | Shell | stites/hapture | /.bin/build | UTF-8 | 209 | 2.546875 | 3 | [] | no_license | #!/usr/bin/env bash
case "$1" in
"") stack --install-ghc runghc --package shake exec ./_shake/buildshake
;;
*) stack --install-ghc runghc --package shake exec ./_shake/buildshake -- "$@"
esac
| true |
84837a15709530f58e8070a2d7b8638964bdf4d9 | Shell | jimmy0916/dp7 | /config/drupal_setup.sh | UTF-8 | 1,545 | 3.0625 | 3 | [] | no_license | #!/bin/bash
set -e
FILE=sites/default/settings.php
if [ -f $FILE ];
then
echo "File $FILE exists."
else
#chown -Rcf www-data:www-data /var/www/html/sites
#chmod 777 -Rcf /var/www/html/sites
echo "File $FILE do not exist."
echo "install to database $DRUPAL_DB_NAME to $DRUPAL_DB_HOST"
drush si ... | true |
dcdb71cc2c0a17279042c9099c3a8f4955535b7d | Shell | jkulesza/MyFiles_bin | /convert_pdf_png.sh | UTF-8 | 282 | 2.578125 | 3 | [] | no_license | #!/bin/bash
convert -density 144 $1 \
-background white -alpha remove -bordercolor black -border 5 \
$1.png
for file in $1-*.png
do
convert $file \
\( +clone -background black -shadow 30x10+15+15 \) \
+swap -background white -layers merge +repage $file
done
| true |
e4133c6f891a244ef153a4814f61efe83b5a10e5 | Shell | dmitry12/dotfiles-old | /zshrc | UTF-8 | 3,726 | 2.578125 | 3 | [] | no_license | eval `keychain --eval id_rsa`
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
fpath=(~/.zsh/comp $fpath)
autoload -U compinit
compinit
if [ -f ~/.zsh/includes.zsh ]; then
source ~/.zsh/includes.zsh
fi
if [ -f ~/.zsh/startup.zsh ]; then
so... | true |
1592d00610d5f87f1784a939102e22c5e6ae5514 | Shell | lgv2018/myClock | /update.sh | UTF-8 | 2,720 | 4.0625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# update myClock, ESP core, and required libraries
# under Windows use git bash in git for Windows https://gitforwindows.org/
# MacOS requires GNU 'coreutils' for this script to function
SCRIPT=`realpath $0`
SCRIPTPATH=`dirname $SCRIPT`
ARDUINO=`realpath $SCRIPTPATH/..`
BOLD='\033[1;34m'
NC='\033[0m'
whil... | true |
ef9333e9332f709974c860d0fc97e99e7399b0b6 | Shell | axcentique/Real-Time-fMRI | /Take 2/Responses/scripts/dmn_coordinates_transform.sh | UTF-8 | 1,423 | 2.609375 | 3 | [] | no_license | data_folder="/Users/george/Data/rtfMRI/August/subjects"
trans_folder="transformations"
output_folder="intermediary"
subjid=(1 2 3 4 5 6 7 8 9 10)
rests=(1 2)
runs=(1 2 3 4 5)
cd $data_folder
for s in "${subjid[@]}"
do
# T1 to MNI
flirt -in subject${s}_t1_bet -ref /usr/local/fsl/data/standard/MNI152_T1_2mm_bra... | true |
326626a27e710f7217614282fd51ce2ea997e409 | Shell | cfabrizio-gig/Ansible | /roles/common/files/custom_bin/freeram_h | UTF-8 | 211 | 2.765625 | 3 | [] | no_license | #! /bin/bash
#
# freeram_h.sh
# Copyright (C) 2017 Stefano Stella <mprenditore@gmail.com>
#
# Distributed under terms of the MIT license.
#
# freeram_h - print free ram in human redeable form
free -h | grep Mem | awk '{print $7}'
| true |
e0118a8ba161ff8dae632fdb24608b5e30c0f620 | Shell | laurentcarrie/fantastic-palm-tree | /f-p-t.txt | UTF-8 | 1,893 | 3.28125 | 3 | [] | no_license | #!/bin/sh
set -e
set -x
export HOME=/home/ubuntu
export SHORT_HOSTNAME=ubuntu
export HOSTNAME=ubuntu
export LOGNAME=xxx
srcdir=/home/ubuntu/fantastic-palm-tree
builddir=/home/ubuntu/build
omfile=$HOME/.omake/hosts/`hostname`.om
function install_cots {
packages="\
omake \
ocaml \
g++ \
liblablgtk-extras-ocaml-dev \... | true |
f72c3acfa2d870de250c2fe575ff978b8c6fa4f0 | Shell | harmonsoftwaresolutions/hss-jenkins | /docker-login.sh | UTF-8 | 547 | 3.140625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
## REQUIREMENTS
# profiles configured in your ~/.aws/config and aws-cli installed
## ENVIRONMENT VARIABLES REQUIRED
# example: export AWS_ACCOUNT="1234343"
# example: export AWS_PROFILE="myprofile"
# example: export AWS_DEFAULT_REGION="us-east-1"
## USAGE
# ./docker-login.sh repo
echo "$(aws ecr get-author... | true |
927887570ba7379b9243d6ce0a72fff2e738ffcf | Shell | apache/couchdb-admin | /release/check_docs.sh | UTF-8 | 2,691 | 3.96875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh -e
# Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy of
# the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distribu... | true |
3cc9f0211b6b6fa937b5e74b73a14c98abff2eae | Shell | jackodsteel/Plex-Server-Setup | /cron_files/fuse-rename-tv.sh | UTF-8 | 562 | 3.40625 | 3 | [] | no_license | #!/bin/bash
logfile="/home/scripts/logs/fuse-rename-tv.sh.log"
if pidof -o %PPID -x "fuse-rename-tv.sh"; then
echo "$(date "+%d.%m.%Y %T") EXIT: fuse-rename-tv.sh already running."
exit 1
fi
find /home/plex/fuse-tv/ -type f ! -name '*p.*' | while read line; do
oldPath=tv-gd:${line#/home/plex/fuse-tv}
if ! res="`exif... | true |
7c584703e85eb355416b65aa2cc6fd5f6ba52402 | Shell | ymendel/dotfiles | /script/bootstrap | UTF-8 | 3,095 | 4.3125 | 4 | [] | no_license | #!/usr/bin/env bash
# ensuring bash for this, in case we're not on a bash shell (new MacOS defaults to zsh)
#
# bootstrap the entire dotfiles experience on this computer
# but safe to run periodically
set -e
cd "$(dirname "$0")/.."
DOTFILES_ROOT=$(pwd -P)
echo ''
source "$DOTFILES_ROOT/script/helpers/printing.sh"
s... | true |
0dff26904b076e580dc677692bef7dca5d989ea2 | Shell | abhisheksinha89/scripts | /mssql-conf-credentials | UTF-8 | 491 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#README: This script sets the username and password to use for a single shell session of mssql-conf.
#Run this script as "source mssql-conf-credentials" or ". mssql-conf-credentials" if you don't want mssql-conf to remember your credentials
echo -n "Enter your SQL Server Username and press [ENTER]: "
read ... | true |
7f3983d51e5d865613029a9041f7c987493ca63e | Shell | lavabit/robox | /scripts/alma8/network.sh | UTF-8 | 2,391 | 3.46875 | 3 | [] | no_license | #!/bin/bash -eux
# Ensure a nameserver is being used that won't return an IP for non-existent domain names.
printf "nameserver 4.2.2.1\nnameserver 4.2.2.2\nnameserver 208.67.220.220\n"> /etc/resolv.conf
# Set the hostname, and then ensure it will resolve properly.
if [[ "$PACKER_BUILD_NAME" =~ ^generic-alma8-(vmware|... | true |
71694f6526e21c9f1ce3bd2878900ddf6da5ce79 | Shell | falconray0704/bak_sysCfg | /ubt/docker/registryLoginTLS/run.sh | UTF-8 | 4,065 | 3.671875 | 4 | [] | no_license | #!/bin/bash
set -o nounset
set -o errexit
set -x
REGISTRY_VERSION="2.7"
DOCKER_REG_ROOT="/opt/dockerRegs"
DOCKER_REG_ADMIN="admin"
DOCKER_REG_ADMIN_PWD="admin"
REGISTRY_NAME="myRegistry"
REGISTRY_DOMAIN="${REGISTRY_NAME}.com"
DOCKER_REG_CERTS_SRC_PATH="${HOME}/.acme.sh/${REGISTRY_DOMAIN}"
REGISTRY_HTTP_TLS_CERTI... | true |
fef293e600aba8943c7c94e04613f65259dc9dfc | Shell | sooraj7m/bash_scripts | /qa_starter | UTF-8 | 1,186 | 3.484375 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 2 ]; then
echo Usage: qa_starter \<filename\> \<ge\|gt\>
exit 1
fi
filename=$1
echo testing git on onedrive
if [ $2 == 'ge' ] || [ $2 == 'GE' ]; then
echo expected counts from filename
myvar=`echo $filename`
echo $myvar | cut -f4 -d'_'
echo
echo count total lines
cnt=`w... | true |
9458dc486184dd81150e01c4a087b0f9b0a0f877 | Shell | GuaraciNeto/SuperMesh | /private/system_scripts/read_wlan0.sh | UTF-8 | 1,574 | 3.3125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
#if [ "$1" = "addr" ]; then
# awk ' f && NR==f+1; /iface wlan0/ {f=NR}' ./interfaces | awk '{print $2}'
#elif [ "$1" = "netmask" ]; then
# awk ' f && NR==f+2; /iface wlan0/ {f=NR}' ./interfaces | awk '{print $2}'
#elif [ "$1" = "gateway" ]; then
# awk ' f && NR==f+3; /iface wlan0/ {f=NR}' ./interfa... | true |
23fa675880feadf6dcc8b1ce92de0f378125fa78 | Shell | bbrks/dotfiles | /stow.sh | UTF-8 | 424 | 3.5625 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [[ "$CONFIGURE_DOTFILES" != true ]]; then
echo "Skipping dotfiles configuration"
exit 0
fi
run_cmd git submodule init
run_cmd git submodule update
source ./stow-install.sh
# Iterate over directories, run init script, and then stow it
for f in */; do
dir="${f/\//}"
if [[ -x "./$dir/ini... | true |
3f9d9680931cc69db63df786ace7b8617f4fad84 | Shell | zregvart/syndesis-release-test | /tools/bin/commands/kamel | UTF-8 | 2,590 | 3.828125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
LOCAL_MAVEN_REPOSITORY=~/.m2/repository
OPERATOR_MAVEN_REPOSITORY=/tmp/artifacts/m2
kamel::description() {
echo "Tools for developing integrations using Camel K"
}
kamel::usage() {
cat <<EOT
--sync-runtime Synchronize runtime snapshot libraries with the camel k operator.
--sync-l... | true |
2a254db43c49f16316ce14d52429deb8e7b0f6f9 | Shell | voldyman/e-stats | /cron.sh | UTF-8 | 457 | 2.609375 | 3 | [] | no_license | #!/bin/sh
cd /home/voldyman/code/e-stats/
python ppastats.py
echo "PPA stats updated" >> /tmp/email-data
echo "New Records: " `sqlite3 prod.db 'SELECT COUNT(*) FROM data WHERE rev=(SELECT MAX(rev) FROM dates)'` >> /tmp/email-data
echo "Most Downloaded: " `sqlite3 prod.db 'SELECT name, MAX(downloads) FROM data WHERE... | true |
a7ea41f6d7dc7944b75693fd286cc7f891fe9ca1 | Shell | wslee/ChiselBench | /benchmark/buthead/test.sh | UTF-8 | 747 | 2.859375 | 3 | [] | no_license | #!/bin/bash
export BENCHMARK_NAME=buthead # TODO
export BENCHMARK_DIR=$CHISEL_BENCHMARK_HOME/benchmark/$BENCHMARK_NAME
export SRC=$BENCHMARK_DIR/$BENCHMARK_NAME.c
export ORIGIN_BIN=$BENCHMARK_DIR/$BENCHMARK_NAME.origin
export REDUCED_BIN=$BENCHMARK_DIR/$BENCHMARK_NAME.reduced
export TIMEOUT=0.1 # TODO: properly modify... | true |
efacd9e02e8c46534f8973a86a10cca4dc75a915 | Shell | vichango/ressources-lsf | /scripts/resize-encode.sh | UTF-8 | 224 | 3.28125 | 3 | [] | no_license | #!/bin/bash
cd videos
FILES=*.m4v
for f in $FILES
do
name=$(basename "$f" ".m4v")
echo "Processing $name file..."
ffmpeg -i "$f" -loglevel quiet -an -filter:v scale=-1:240 -y "$name.mp4"
mv "$f" done/
done
| true |
13f07e371d33bcc1cea992c01d6ae084912b6c80 | Shell | nsdi2017-ddn/ddn | /spark/spark_deploy.sh | UTF-8 | 931 | 3.21875 | 3 | [] | no_license | #!/bin/bash
# Auto install Spark Streaming and configure the environment
if [[ $UID != 0 ]]; then
echo "Please run this script with sudo:"
echo "sudo $0 $*"
exit 1
fi
# Install editor and jre
sudo apt-get update
sudo apt-get install -y vim tmux
sudo apt-get install -y default-jdk maven
JAVA_HOME=$(sudo ... | true |
42eeed2122056b3f2a0cb1230e72f8867eeedaba | Shell | niveditapatel/operatingsystemscodes | /headoffile.sh | UTF-8 | 85 | 3.09375 | 3 | [] | no_license |
n=0
while read t
do
if [ $n -ne $1 ]
then echo $t
n=$(expr $n + 1)
fi
done < $2
| true |
8d1926e43e85ff8be59369283deb12d2cc6fd947 | Shell | kaori02/SoalShiftSISOP20_modul1_F01 | /soal3/soal3_c.sh | UTF-8 | 436 | 2.953125 | 3 | [] | no_license | #!/bin/bash
mkdir duplicate kenangan
grep "Location: " wget.log > location.log
awk '
{
printf("%s %03d\n", $2, a + 1)
a++
}' location.log | sort -g > test
awk '
{
idx = $2 + 0
if(loc == $1)
call = "mv pdkt_kusuma_"idx " duplicate/duplicate_"idx
else
{
loc = $1
call = " mv pdkt_kusuma_"idx " k... | true |
33c50621397058f4493e595a151a82616fe6b42a | Shell | NascentMaker/dotfiles | /dot_config/sway/scripts/executable_bluetooth.sh | UTF-8 | 230 | 2.984375 | 3 | [] | no_license | #!/bin/sh
state="disabled"
if [ $(bluetooth | grep -o 'bluetooth = on' | wc -l) -gt 0 ]; then
state="enabled"
fi
printf '{"text":"%s", "class":"%s", "alt":"%s", "tooltip":"%s"}\n' "$state" "$state" "$state" "Bluetooth $state"
| true |
ec300b7b21162c3184560032369f99b547e04509 | Shell | jmmercadom/crawler-camara | /descarregar/resultados_busca | UTF-8 | 785 | 3.484375 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# Descarregar os resultados da pesquisa do site da camara de deputados com as
# remunerações do funcionario para um certo periodo.
#
# Entrada:
# - periodo: Ano e mes pra presquisa. No formato: YYYYMM
# - nome: Nome completo do funcionario, cercado de aspas duplas.
#
# Saída:
# Resultado (HTML) da ... | true |
b2ed655754591031e23de351011291438982f91d | Shell | minfwk/min-bower | /build.sh | UTF-8 | 694 | 2.8125 | 3 | [
"MIT"
] | permissive | #!/bin/bash
mkdir compiled -p
subtypes=(general buttons grid headings icons iehacks inputs messages navbar tables)
rm -f compiledcss.js
rm -f entireframework.js
i="0"
echo "var css = {" >> compiledcss.js
for item in ${subtypes[*]}
do
lessc "less/"$item".less" > "compiled/"$item".css"
java -jar yuicompressor-2.4.8.jar ... | true |
a27220d607bc7f7cf812f77f62b13341b410350e | Shell | ykefella/rnaSeq-1 | /pre-process/runMultiQC.sh | UTF-8 | 1,964 | 3.71875 | 4 | [] | no_license | #!/usr/bin/env bash
inDir=$1;
outDir=$2;
stage=$3;
layout=$4;
function qcPESamples() {
leftSuffix="R1.fastq.gz";
rightSuffix="R2.fastq.gz";
for leftInFile in $2*$leftSuffix
do
# Remove the path from the filename and assign to pathRemoved
pathRemoved="${leftInFile/$2/}"
# Remove the left... | true |
ffe4437dec43a07bcc677a839af1161469ba924e | Shell | M4RC0Sx/Flake8Checker | /Flake8Checker.sh | UTF-8 | 787 | 4.3125 | 4 | [] | no_license | #!/bin/bash
# A simple script to make our lives easier while checking Flake8 syntax in .py files.
# Code by: M4RC0Sx
# GitHub: https://github.com/M4RC0Sx/Flake8Checker
DIR=""
if [ $# -ne 1 ]
then
echo -ne "\e[1mFlake8Checker - Usage:\e[0m ./Flake8Checker.sh <directory to check>\n"
exit 1
fi
if [[ $1 == *... | true |
1f345f079ac350905b83ffecc9ad1f17975d8aa4 | Shell | jcihain/securityonion-sguil-db-purge | /bin/sguil-db-purge | UTF-8 | 5,996 | 4.09375 | 4 | [] | no_license | #!/bin/bash
# This script came from:
# http://nsmwiki.org/Sguil_FAQ#How_do_I_expire_.28purge.29_old_information_from_the_database.3F
# with additions by sa_zh and Doug Burks
# Version:
# 20110915
# Changelog:
# 20110914 - Initial version.
# 20110915 - Check to see if there is a DB. If not, exit silently.
#########... | true |
07847323e4f384794b5b2cb00421ce9714db0877 | Shell | mklinik/clean-dev-tools | /profile.sh | UTF-8 | 719 | 3.78125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# This script filters memory profiling output of clean programs and transforms it into gnuplot data
# files.
# Usage:
# 1. Compile your clean executable with ShowGC: True and ShowStackSize: True
# 2. Run your clean executable
# $ ./myCleanProg 2> memory.txt
# 3. Filter output with this script
# ... | true |
cd8831e7f2dd5961d8a521f7b10612bc09b76fe9 | Shell | sureshvarman/azureswarm | /postgres-install.sh | UTF-8 | 3,390 | 3.296875 | 3 | [] | no_license | #!/bin/bash
DATACENTER=$1
MASTERVMNAME=$2
POSTGRES_PW=$4
echo "datacenter=$1"
echo "masterVmName=$2"
echo "adminUserName=$3"
#install docker
echo "updating apt" && sudo apt-get update
echo "loading key from p80.pool.sks-keyservers.net"
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.