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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
67815396fd22cd8021a01f99d1f8a931e60c7cca | Shell | HectorAnadon/SeaLionsDetectionClassification | /run.sh | UTF-8 | 915 | 2.703125 | 3 | [] | no_license | #!/bin/bash -l
# The -l above is required to get the full environment with modules
# Set the allocation to be charged for this job
# not required if you have set a default allocation
#SBATCH -A edu17.DD2438
# The name of the script
#SBATCH -J combine
# Email
#SBATCH --mail-type=BEGIN,END
# Only 1 hour wall-clock ti... | true |
cba6b61e694b88644aea628313dfd8eca62cfe7e | Shell | blakwurm/blakwurm-site-builder | /publish.sh | UTF-8 | 428 | 2.59375 | 3 | [] | no_license | #!/bin/bash
echo Committing this repo
git add .
git commit
git push
echo copying to blakwurm.github.com repo
rm -rf ../blakwurm.github.com/*
cp CNAME ../blakwurm.github.com
cd resources/public
cp -r * ../../../blakwurm.github.com
cd ../../
echo commiting blakwurm.github.com
cd ../blakwurm.github.com
git add .
git c... | true |
4088ed2e6b1e8930e2b6be2b5ea1e2b7092833e9 | Shell | lgarreta/puj-lnxing | /clases/07-Scripts/code/while.sh | UTF-8 | 60 | 2.75 | 3 | [] | no_license | i=0
while [ $i -lt 10 ]
do
echo i is $i
let i=$i+1
done
| true |
79870852ba65cb5d1416a9719b49c90a1ced5abe | Shell | ryjen/dotfiles | /collections/ansible_collections/ryjen/dotfiles/roles/git/files/dotfiles/.local/share/git/hooks/scripts/functions | UTF-8 | 646 | 3.765625 | 4 | [] | no_license | #!/usr/bin/env sh
exec 1>&2
function h1() {
printf "\n\x1B[1;39m> %s\n" "$@"
}
function pass() {
printf "\x1B[1;33m✔\x1B[0m %s\n" "$@"
}
function fail() {
printf "\x1B[1;31m✖\x1B[0m %s\n" "$@"
exit 1
}
function failsafe() {
printf "\x1B[1;31m✖\x1B[0m %s\n" "$@"
}
commit_files() {
if [ $# -eq 0 ] ; th... | true |
f7639f703a26a34fefa534fc2922386e36b83797 | Shell | cms-sw/cmssw | /DPGAnalysis/Skims/python/archiveold | UTF-8 | 840 | 3.78125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/sh
if [ "$1" == "" ]; then
echo "Usage: $0 <older than (sec)>"
exit 1
fi
ARCHDIR=archive
current=`date +%s`
olderthan=`expr $current - $1`
echo $current $olderthan
for file in `ls *SM*.root`
do
time=`echo $file | awk -F _ '{print $2}' | cut -c 1-10`
if [ $time -le $olderthan ]; then
echo "Moving... | true |
2e086f7da28b772fcb34be745e98e285b91aafca | Shell | XiaYi1002/luci-app-b-wool | /root/usr/share/b-wool/update_client.sh | UTF-8 | 1,614 | 3.203125 | 3 | [] | no_license | #!/bin/bash
#
NAME=b-wool
LOG_HTM=/www/b-wool.htm
uci_get_by_name() {
local ret=$(uci get $NAME.$1.$2 2>/dev/null)
echo ${ret:=$3}
}
uci_get_by_type() {
local ret=$(uci get $NAME.@$1[0].$2 2>/dev/null)
echo ${ret:=$3}
}
cancel() {
if [ $# -gt 0 ]; then
echo "$1"
fi
exit 1
}
# 更新程序... | true |
2afefcded50cf536be3c73eaa45d18cedbc30335 | Shell | HMBSbige/kms-server | /hotbird64-mass-build/make_hurd | UTF-8 | 1,491 | 2.6875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
export VLMCSD_VERSION=$(git describe)
export VERBOSE=3
export DNS_PARSER=OS
cd "$( dirname "$0" )"
make -C .. clean
BINDIR="../bin"
MANDIR="../man"
cd ../src
MAKEFLAGS="-B -j1"
export CC=gcc
CF="-flto=jobserver -pipe -fwhole-program -fno-common -fno-exceptions -fno-stack-protector -fno-unwind-tables -f... | true |
afa9735da16f62aa19305ffe3881561f5ef0bc01 | Shell | nadflop/ece364-prelabs | /Prelab09/getProjectsByStudent.bash | UTF-8 | 719 | 2.890625 | 3 | [] | no_license | #! /bin/bash
########################################################
# Author: Nur Nadhira Aqilah Binti Mohd Shah
# Email: mohdshah@purdue.edu
# ID: ee364g02
# Date: 3/16/2019
########################################################
base=~ee364/DataFolder/Prelab09
ProjPath=${base}/maps/projects.dat
CircPath=${b... | true |
de02f21ba66566c6088e62b6582999bc94fbd871 | Shell | italobrito19/sh | /script-tbs.txt | UTF-8 | 2,010 | 2.875 | 3 | [] | no_license | #!/bin/bash
SID=$1
TBS=$2
if [ -z "$SID" ]
then
echo "Inserir SID do banco"
exit 2
elif [ -z "$TBS" ]
then
echo "Inserir o nome da tablespace"
exit 2
else
USO=(`ca... | true |
704d9cdaac2c536a37298c9953468747e4791865 | Shell | carlblomqvist/dotfiles | /system/etc/acpi/handler.sh | UTF-8 | 3,686 | 2.90625 | 3 | [] | no_license | #!/bin/bash
# Default acpi script that takes an entry for all actions
case "$1" in
cd/play)
case "$2" in
CDPLAY)
logger 'PlayPauseButton pressed'
# /usr/bin/sudo -u carlb playerctl play-pause
#/usr/bin/amixer set Speaker on
#/usr/b... | true |
6d9da592a7876a2a346a060e31a5a01cd414d1f3 | Shell | calllivecn/testing | /move_cursur.sh | UTF-8 | 617 | 3.265625 | 3 | [] | no_license | #!/bin/bash
getch(){
stty -icanon -echo
dd if=$(tty) bs=8 count=1 2> /dev/null
stty icanon echo
}
move(){
if [ "$1"x = "j"x -o "$1"x = "[B"x ];then
echo -en "\033[B"
elif [ "$1"x = "k"x -o "$1"x = "[A"x ];then
echo -en "\033[A"
elif [ "$1"x = "h"x -o "$1"x = "[D"x ];then
echo -en "\033[D"... | true |
a159ae05f75f9da0503c2db2d5d18b7ac0a301f2 | Shell | schmaun/ad-blocker.sh | /ad-blocker.sh | UTF-8 | 3,433 | 3.625 | 4 | [] | no_license | #!/bin/sh
#================================================================================
# (C)2013 dMajo
# Title : ad-blocker.sh
# Version : V1.02.0018
# Author : dMajo (http://forum.synology.com/enu/memberlist.php?mode=viewprofile&u=69661)
# Description : Script to block add-banner servers, dns based... | true |
336767443faaa720f5e4aa98ad6d434ae3e9361c | Shell | ericavonb/clever-helper-scripts | /mgo.sh | UTF-8 | 1,170 | 3.625 | 4 | [] | no_license | #! /bin/bash
DB='clever'
VPN="true"
while getopts ":l:wrc:" OPTION; do
case "$OPTION" in
"l")
if eval [[ "$"$(($OPTIND-1))"" = "$OPTARG" ]]; then
URL="localhost"
((--OPTIND))
else
URL="--port $OPTARG localhost"
fi
... | true |
87aa4956bf9aeb867eea48641cf7a55b8dfeff82 | Shell | DavorKandic/sh_scripting_practice | /f-looping.sh | UTF-8 | 898 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# Various ways for writing for-loops
clear
echo "First way (for i in 1 2 3 4 5):"
for i in 1 2 3 4 5
do
echo "Hello!"
done
echo
echo "Second way (for i in {1..5}):"
for i in {1..5}
do
echo "Holla!"
done
echo
echo "Third way (with step/increment):"
for i in {0..20..2} # {start..end..step}
do
echo $i
... | true |
36fa499a54f0cb58147f96aa0e6737d88e5379a2 | Shell | eightpigs/dotfiles | /profiles.d/zsh | UTF-8 | 7,023 | 3.1875 | 3 | [] | no_license | #!/bin/zsh
# plugin manager
# unplugged: https://github.com/mattmc3/zsh_unplugged
# -----------------------------------------------------------------------------
ZPLUGINDIR=$HOME/.zsh/plugins
# clone a plugin, find an init.zsh, source it, and add it to your fpath
function plugin-load () {
local giturl="$1"
local... | true |
2ec91fa94233b8bd6c321ef360f0c84052edaeae | Shell | AramisLi/MovieGetter-Server | /src/test/test1.sh | UTF-8 | 163 | 2.609375 | 3 | [] | no_license | #!/usr/bin/env bash
array=(a b c d)
echo ${#array[@]}
echo ${#array[*]}
echo `expr 2 + 5`
echo `date`
for i in array
do
echo ${i}
done
curl www.baidu.com | true |
5be4da22776ce4d4dab15d5cbf14f8fb6401be5e | Shell | fluffypony/monerodo | /setup_pool_wallet.sh | UTF-8 | 3,849 | 3.765625 | 4 | [] | no_license | #!/bin/bash
#MONERODO script to setup pool wallet
echo "This script configures your Monerodo with a new pool wallet."
echo "In order for your Monerodo to work properly, your pool wallet password is stored in a configuration file"
echo "It is HIGHLY recommended that your pool wallet is different than your primary wal... | true |
b23d37907a575435067acf1a8c2016a51ab25290 | Shell | bgoonz/UsefulResourceRepo2.0 | /MY_REPOS/WEB-DEV-TOOLS-HUB/MAIN/3_bash-utilities/dotfiles-master/dotfiles-master/chromium.sh | UTF-8 | 2,065 | 3.21875 | 3 | [
"MIT"
] | permissive | # usage:
# after `git pull`, a full build is now `depsbcr`
# and after changes.. a `bcr` will recompile and relaunch chrome.
function deps () {
# --reset drops local changes. often great, but if making changes inside v8, you don't want to use --reset
env GYP_DEFINES=disable_nacl=1 gclient sync --delete_unversi... | true |
c402cda2b52a97d220d11b2a2527b189f07b6a05 | Shell | kawish1/site | /source/friends/maktab/scripting/prevnext.sh | UTF-8 | 761 | 3.453125 | 3 | [] | no_license | #!/usr/bin/env bash
infile=$1;
outfile=$2
#The first column of input file is the videoid.
awk '{print $1}' $infile > videoid.txt
# The second and third columns contain chapter and lecture numbers.
awk '{print $2 " " $3} ' $infile > chapcol.txt
awk '{$1=$2=$3=""; print $0}' $infile > description.txt
# now put the fir... | true |
1d853bd5ea88ecb34b2274caa32e39f95feba9d0 | Shell | ryantanaka/pegasus | /release-tools/tutorial_vm/scripts/aws/cloud-init.sh | UTF-8 | 2,342 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
set -e
yum -y install cloud-init
cat > /etc/cloud/cloud.cfg << EOT
users:
- default
disable_root: 1
ssh_pwauth: 0
locale_configfile: /etc/sysconfig/i18n
mount_default_fields: [~, ~, 'auto', 'defaults,nofail', '0', '2']
resize_rootfs_tmp: /dev
ssh_deletekeys: 0
ssh_genkeytypes: ~
syslog_fix_perms... | true |
24391a813234402a1b99c8aca2eb2669c60405fc | Shell | simhaonline/le-cms | /verify-http.sh | UTF-8 | 2,101 | 3.859375 | 4 | [
"MIT"
] | permissive | #!/bin/bash
printf "\nReady to check HTTP and HTTPS sites.\n\n"
read -p "Please enter the domain name, then press enter: " DOMAIN
## Format DOMAIN in all lowercase
DOMAIN=$(printf $DOMAIN | tr "{A-Z}" "{a-z}")
## Confirm domain name
printf "\n"
read -n1 -rsp "Is this the correct domain? $DOMAIN [Y|N] " CONFIRM
## F... | true |
87cb90c410a4b2e835fb06e0352682e0e55b304b | Shell | Amund211/dotfiles | /scripts/audiostream_discord.sh | UTF-8 | 1,867 | 2.921875 | 3 | [] | no_license | #!/bin/sh
set -eu
# Front jack
output_sink='alsa_output.pci-0000_09_00.4.analog-stereo'
# Screen speakers
#output_sink='alsa_output.pci-0000_07_00.1.hdmi-stereo-extra2'
# Denoised mic
mic_source='denoised'
# Raw mic
# Briste atm, need to make it a sink
# mic_sink='alsa_input.usb-Razer_Inc_Razer_Seiren_Mini_UC2045... | true |
f70705edb326dc934ff51589c3bf67520c269d81 | Shell | bywen/shell | /user_count.sh | UTF-8 | 353 | 3.640625 | 4 | [] | no_license | #!/bin/bash
#统计系统里有多少个普通用户
#user=`cat /etc/passwd |awk -F ':' '{print $3}'`
#n=0
#for i in $user;do
# if [ $i -ge 1000 ];then
# n=$[$n+1]
# fi
#done
#echo $n
#简化版:
n=`awk -F ':' '$3>=1000' /etc/passwd |wc -l`
if [ $n -gt 0 ];then
echo "普通用户有:$n"
else
echo "没有普通用户"
fi
| true |
7988b50f6109270ce3e62a26bae8bd2e3881526c | Shell | JASalorte/TFG---Emergiendo-con-el-Sol---Docker | /BackupFiles.sh | UTF-8 | 525 | 3.6875 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
IDCONTAINER=$1
SAVEDIRECTORY=$2
CONTAINEREXIST=$(docker ps -q | grep $IDCONTAINER)
if [ "$CONTAINEREXIST" == "" ]; then
echo El contenedor no existe.
exit
fi
if [ ! -d "$SAVEDIRECTORY" ]; then
echo El directorio debe existir.
exit
fi
if [ ! -r "$SAVEDIRECTORY" ] || [ ! -w "$SAVEDIRECTORY" ]; then
... | true |
6b71a9bf19fa918c6a3f8cb20a41f81045538858 | Shell | hornet-gt/hornet | /compiler-util/uf_graph_dowload.sh | UTF-8 | 797 | 4.03125 | 4 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
function error {
if [ $? -ne 0 ]; then
echo "! Error: "$@
exit $?;
fi
}
if [ "$1" = "--help" ]; then
echo -e "\n./uf_graph_download <directory to download> <market graph link 1> <market graph link 2> ...\n"
exit
fi
dataset_dir=$1
for link in $@; do
if [ $link == $1 ]; then... | true |
83f4a05cc183f5fb2818e8dc7321e1b83ac0c363 | Shell | ignisphaseone/aporeto | /samples/problem1/bash_example.sh | UTF-8 | 2,465 | 3.90625 | 4 | [] | no_license | #!/bin/bash
# If we don't have any args, or if we have help args, print the help message.
if [ -z $1 ] || [ "$1" == '-h' ] || [ "$1" == '--help' ]; then
echo 'usage: bash_example.sh --create-file=<filename> [--no-prompt] [--verbose]'
exit 1
fi
# Check every argument. If any of them match what we're looking fo... | true |
2f33287367340c4658ee9820fba4ac8ab08cd857 | Shell | VPlusJetsAnalyzers/VPlusJets | /test/Limits/hwwcrabmylimit.sh | UTF-8 | 860 | 3.40625 | 3 | [] | no_license | #!/bin/bash
if [ $# -lt 2 ]
then
DIR=.
else
DIR=$2
fi
if stat -t ${DIR}/datacard_${1}[-_]M=??0.txt >/dev/null 2>&1
then
for datacard in ${DIR}/datacard_${1}[-_]M=??0.txt
do
DIR=`dirname $datacard`
file=`basename $datacard .txt`
suffix=${file##datacard_}
mass=`ls $datacard | eg... | true |
8020bcafb3eb0487133325b6cd6bcde75120e6f9 | Shell | jxsr713/coding | /tools/ddt_gen_json.sh | UTF-8 | 2,411 | 3.828125 | 4 | [] | no_license | #########################################################################
# File Name:.sh
# Author: jxsr713
# mail: jxsr713@163.com
# Created Time: 2021年06月09日 星期三 15时10分45秒
#########################################################################
#!/bin/bash
#get current path
path=`pwd`
echo "current path:$path"
py_pa... | true |
fadc8ed0c19fe6d960698d6d24de83ce5c8385f7 | Shell | cytoscape/cytoscape-admin-scripts | /release-generator/workflow-build-upload.sh | UTF-8 | 543 | 2.890625 | 3 | [] | no_license | #!/bin/sh
BUILD_DIR="build"
# New branch for release
BRANCH="release/3.5.0"
start_dir=`pwd`
./prepare.sh $BUILD_DIR
./build-all-core-apps.sh $BUILD_DIR $BRANCH
cd ./${BUILD_DIR}/cytoscape
./cy.sh switch $BRANCH || { echo Failed to switch; exit 1; }
./cy.sh pull || { echo Failed to pull; exit 1; }
mvn clean install... | true |
b9fa75c97c138c68666817192e22e82aa25336c9 | Shell | commonsense-org/scanner | /shim.sh | UTF-8 | 232 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
pushd `dirname $0` > /dev/null
SCRIPTPATH=`pwd`
popd > /dev/null
# This might not work so well on messy csv's
path=`echo $2 | awk -v x=${1} -F ',|"' '{print $x}'`
echo -n $2,
${SCRIPTPATH}/check.sh -c "${path}" && echo
| true |
b1412589216bb2347b265c31330335eee95d078b | Shell | asylum119/my-scripts | /Bluetooth Scanner/Bluetooth Scanner.sh | UTF-8 | 2,590 | 3.8125 | 4 | [] | no_license | #!/bin/bash
####### Shell script by Brett Peters #######
####### - asylum119@hotmail.com #######
####### #######
############# #############
########### ###########
######### ... | true |
3bc3e238de3d9ab61406838e834ce0fc531ff007 | Shell | 3l-d1abl0/bash-playground | /h4x/subbruter.sh | UTF-8 | 284 | 2.5625 | 3 | [] | no_license | #! /bin/bash
dir=~/Recon/$1
echo $1 | ~/go/bin/shuffledns -w ~/go/bin/subdomains.txt -r ~/dnsvalidator/resolvers.txt -v -silent -o $1_brute;
mv $1_brute $dir/$1_brute;
cat $dir/$1_brute >> $dir/$1_unfilter_subdomains;
cat $dir/$1_unfilter_subdomains | sort -u > $dir/$1_subdmains;
| true |
4b98d1d9886c0e736caa0754aca5fbc4218e12c2 | Shell | rtfb/rtfblog | /scripts/run-sqlite-tests.sh | UTF-8 | 338 | 2.515625 | 3 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | #!/bin/bash
export RTFBLOG_DB_DRIVER=sqlite3
export RTFBLOG_DB_TEST_URL="test.db"
migrate -path=db/sqlite/migrations -database="sqlite3://$RTFBLOG_DB_TEST_URL" up
echo "Running tests on $RTFBLOG_DB_DRIVER..."
go test -covermode=count -coverprofile=profile.cov -v ./src/...
exit_status=$?
rm -r $RTFBLOG_DB_TEST_URL
... | true |
65938b423dfcda73b6c7899035909d4eba7425ae | Shell | calvinchengx/bashbuildingblocks | /loop.sh | UTF-8 | 888 | 4.0625 | 4 | [] | no_license | # A simple for loop
sum=0
for i in 1 2 3 4
do
sum=$(($sum+$i))
done
echo "The sum of $i numbers is: $sum"
# Combine the use of a for-loop with a case statement
for filename in $(ls)
do
# Take extension available in a filename
ext=${filename##*\.}
case "$ext" in
c) echo "$filename : C source fil... | true |
7b8263334c4c0bb2108d316184e14c7ac3e78d0a | Shell | regen-network/regen-ledger | /images/regen-sandbox/setup/data.sh | UTF-8 | 1,248 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | source $(dirname $0)/utils.sh
TX_FLAGS="--from $ADDR1 --yes --fees 5000uregen"
echo "INFO: Anchoring dataset: regen:13toVgf5UjYBz6J29x28pLQyjKz5FpcW3f4bT5uRKGxGREWGKjEdXYG.rdf"
regen tx data anchor regen:13toVgf5UjYBz6J29x28pLQyjKz5FpcW3f4bT5uRKGxGREWGKjEdXYG.rdf $TX_FLAGS | log_response
echo "INFO: Attesting datase... | true |
48c41d4d2f99528c0c5df53da4c1a39c74f7f060 | Shell | testcurry/shellCases | /testCase.sh | UTF-8 | 209 | 2.625 | 3 | [] | no_license | #!/bin/bash
case $1 in
"1")
echo "周一"
;;
"2")
echo "周二"
;;
"3")
echo "周三"
;;
"4")
echo "周四"
;;
"5")
echo "周五"
;;
"6")
echo "周六"
;;
"7")
echo "周日"
;;
*)
echo "输入非法"
esac
| true |
0193b55a125c4498f22814f64b57e4071da778be | Shell | mishamx/docker-yii2-app-advanced | /builder | UTF-8 | 1,272 | 3.640625 | 4 | [
"BSD-3-Clause"
] | permissive | #!/usr/bin/env bash
LINE="========================================================================="
PROJECT="mishamx/docker-yii2-app-advanced"
MODE="FBA"
STABILITY="dev"
function basecopy {
APP_PATH="/app/*"
echo ""
echo "Copy files"
for f in $APP_PATH;
do
if [[ $f = '/app/environments' ]... | true |
0554e3adc00cd80890aaa8f4ed05374b0e95b2f6 | Shell | mrbitsdcf/mrbits.com.br | /publish.sh | UTF-8 | 232 | 2.53125 | 3 | [] | no_license | #!/bin/bash
get_date () {
echo "[$(date +%Y-%m-%d\ %H:%M:%S)] - $1"
}
get_date "Generating pages"
hugo
get_date "Publishing pages"
rsync -vae ssh public/* ps-web-1:/var/www/html/mrbits.com.br/
get_date "Enjoy your new site"
| true |
c8432d7b04b06ad7f9ba6bc68a00dda908685585 | Shell | petronny/aur3-mirror | /hcfpcimodem-utils/PKGBUILD | UTF-8 | 929 | 2.828125 | 3 | [] | no_license | # Contributor: Giovanni Scafora <giovanni@archlinux.org>
pkgname=hcfpcimodem-utils
pkgver=1.20full
pkgrel=1
pkgdesc="Linux drivers for the Conexant HCF Softmodem family (userspace tools and libraries)"
arch=('i686')
url="http://www.linuxant.com/drivers/hcf/"
license=('GPL' 'custom')
install=hcfpcimodem-utils.install
d... | true |
55ab03b1424cb6089b20e9bcdb94dc088c1fbc8c | Shell | termux/termux-packages | /packages/clamav/build.sh | UTF-8 | 1,808 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | TERMUX_PKG_HOMEPAGE=https://www.clamav.net/
TERMUX_PKG_DESCRIPTION="Anti-virus toolkit for Unix"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.1.0
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://www.clamav.net/downloads/production/clamav-$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=a... | true |
33a4b522f6fda84c33e9812d541fe45e97272825 | Shell | jitsi/libjitsi | /resources/gpg-wrap.sh | UTF-8 | 164 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
if [ "$1" == "--version" ]; then
gpg $@
else
gpg --pinentry-mode loopback --batch --passphrase-fd 0 --no-tty $@ <<< $GPG_PASSPHRASE
fi;
| true |
205a3c7ee1bdb197f58cad48b398ac6f1df6b406 | Shell | ascander/old-dotfiles | /bin/git-rank-loc | UTF-8 | 231 | 3.046875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#
# Print a ranked list of contributor names, based on lines of code
git ls-files | \
xargs -n1 git blame --line-porcelain | \
grep '^author' | \
sed -n 's/^author //p' | \
sort -f | \
uniq -ic | \
sort -nr
| true |
13dd0731c688a60e0dd07187942674126c9152de | Shell | szepeviktor/debian-server-tools | /tools/ghurl | UTF-8 | 832 | 3.6875 | 4 | [
"MIT"
] | permissive | #!/bin/bash
#
# Display GitHub download URL for a local file.
#
# VERSION :1.0.0
# DATE :2018-05-18
# AUTHOR :Viktor Szépe <viktor@szepe.net>
# URL :https://github.com/szepeviktor/debian-server-tools
# LICENSE :The MIT License (MIT)
# BASH-VERSION :4.2+
# DEPENDS :apt-get in... | true |
0138cea3af14747005ab5e0b968a43bf894d855e | Shell | cytrus77/Debian_Stuff | /linux/networkMonitor | UTF-8 | 280 | 2.9375 | 3 | [] | no_license | #!/bin/bash
#
# netmonitor
#
echo "network monitoring script started"
while true
do
ping www.wp.pl -c 1
if [ $? -ne 0 ]
then
echo "Ping failed."
systemctl daemon-reload
systemctl restart networking.service
fi
sleep 10m
done
exit 0
| true |
f77dc0c3650de2b0cca8dd5c3196d02dfe76785b | Shell | samupl/misc | /encoding_detect.sh | UTF-8 | 544 | 3.40625 | 3 | [] | no_license | #!/usr/bin/env bash
#
# bash encoding detection.
# author: samu
# irc: samu @ irc.pirc.pl
#
# This should basically detect users terminal encoding.
# NOTE: I did this for a test. Then I've written it in python, for my needs, so I am not going to develop this script anymore.
echo -ne "\nżółćżółć"
oldstty=$(stty -... | true |
3b80e990851a81c69eab203251b1c071c0a09095 | Shell | bcsedlon/growmat | /garchive | UTF-8 | 704 | 3.4375 | 3 | [] | no_license | #!/bin/sh
sync
d="$(date +'%Y%m%d')"
files=/home/pi/growmat/growmat/ramdisk/*.csv
for file in $files
do
filename="${file##*/}"
if [ $filename != "*.csv" ]; then
#echo expression evaluated as true
#else
#echo expression evaluated as false
#echo $filename
newfil... | true |
a3bddefefcd6fd2c4df6e97e4cf8304e306de7be | Shell | siglabsoss/prototype | /simulink/continuous_rx.sh | UTF-8 | 369 | 2.671875 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
while true; do
cd ../gnuradio
cp drive_test_200.raw drive_test_200_previous.raw
cp drive_test_202.raw drive_test_202_previous.raw
echo "file copied"
./dual_drive_test.py &
GR_PID=$!
cd ../simulink
octave --eval 'o_dual_drive_test' &
O_PID=$!
echo $GR_PID
echo $O_PID
wait $GR_PID
echo "Gnuradio is finish... | true |
9f945ecd63e872280044d3ca0013aa8be183213c | Shell | tyamahori/laravel-docker-env | /docker/formac/formac | UTF-8 | 2,217 | 3.40625 | 3 | [] | no_license | #!/bin/bash
# プロジェクト名定義
COMPOSE_PROJECT_NAME="laravel-docker-for-mac"
# コンテナ名定義
NGINX_NAME="${COMPOSE_PROJECT_NAME}-nginx"
APP_NAME="${COMPOSE_PROJECT_NAME}-php"
# 実行コマンド定義
RUN_NGINX="docker exec -it ${NGINX_NAME}"
RUN_APP="docker exec -it ${APP_NAME}"
# コンテナ内のパス定義
REMOTE_LARAVEL_DIR="/opt/laravel"
REMOTE_VENDOR_DI... | true |
1ce1e7a657eff0d44b6aa3cd8b008ce4e29b923e | Shell | ivoszbg/chrootlinux | /scripts/chroot/install.sh | UTF-8 | 355 | 2.515625 | 3 | [] | no_license | sd_part="/dev/block/vold/179:1"
kit=$sd_part/linux
img=$kit/linux.img
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
export TERM=screen
export HOME=/root
export bin=/system/bin
echo "Installing script ..."
mount -o remount, rw /
busybox mount -o rw,remount /system
cd /sdcard/linux/
cp linux /system/bin
chmod 777 /... | true |
f7e215b8478318f0db71db8cba4bbe4084b96f55 | Shell | Seegnify/EAGLE | /src/examples/mnist/download.sh | UTF-8 | 487 | 3.03125 | 3 | [
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Copyright (c) 2019 Greg Padiasek
# Distributed under the terms of the the 3-Clause BSD License.
# See the accompanying file LICENSE or the copy at
# https://opensource.org/licenses/BSD-3-Clause
#
get_mnist()
{
if [ ! -f "$1" ]; then
wget "http://yann.lecun.com/exdb/mnist/$1.gz"
gunzip "$1.g... | true |
0aa39b75800a7b09fd4b5927b8acaeae0843a941 | Shell | saturnism/kubernetes | /hack/update-api-reference-docs.sh | UTF-8 | 1,736 | 3.453125 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Copyright 2015 The Kubernetes Authors All rights reserved.
#
# 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 require... | true |
724189723b19384e9635b9e31ef881efa2b3b903 | Shell | toshke/ci-cd-code-demo | /codedeploy/scripts/stop_server | UTF-8 | 141 | 3.0625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
container=$(docker ps | grep demo-container)
if [ ! -z "$container" ]; then
# stop container
docker stop demo-container
fi
| true |
ffc2292776a9c6777a4bea91602976bc64a89757 | Shell | Anaconda-Platform/ae5-tini | /install_tini.sh | UTF-8 | 967 | 3.546875 | 4 | [] | no_license | #!/bin/bash
set -e
if [ ! -f tini ]; then
echo "tini must be downloaded first."
echo "please run download_tini.sh or download manually."
exit 1
fi
chmod +x tini
for pod in workspace deploy; do
if [ $pod == workspace ]; then
istring=/ae-editor:
var=ANACONDA_PLATFORM_IMAGES_EDITOR
else... | true |
57dd1e471d9ae05a582b7694eedaf54ab56f63ed | Shell | RichW1/Cybersecurity-Bootcamp | /1-Lesson-Plans/06-Bash-Scripting-and-Programming/Day 2/Activities/06_STU_Lists_and_Loops/Solved/for_loops.sh | UTF-8 | 810 | 3.859375 | 4 | [] | no_license | #!/bin/bash
# Create Variables
nums=$(echo {0..9})
states=('Nebraska' 'California' 'Texas' 'Hawaii' 'Washington')
ls_out=$(ls)
execs=$(find /home -type f -perm 777 2>/dev/null)
# Create For Loops
# Create a loop that prints only 3, 5 and 7
for num in ${nums[@]}; do
if [ $num = 3 ] || [ $num = 5 ] || [ $num = 7 ]; ... | true |
8beb1481d67cb94137f87481a369b30e41f890b0 | Shell | ManuInNZ/iot-edge-image-cleanup | /module/run.sh | UTF-8 | 1,479 | 3.75 | 4 | [
"MIT"
] | permissive | echo 'starting module'
# sleep time provided in environment variables. If not provided, pick reasonable defaults
SleepTime="${SleepTime:=24}"
SleepUnit="${SleepUnit:=h}"
# ensure sleep unit is a valid value, otherwise default to hours
case $SleepUnit in
s|h|m|d)
;;
*)
echo '********** Invalid or Missing S... | true |
95f1b2f37cf9fe1120ff5addbf5795598307f508 | Shell | jsonn/pkgsrc | /mail/gld/files/gld.sh | UTF-8 | 646 | 3.21875 | 3 | [] | no_license | #!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: gld.sh,v 1.5 2005/01/19 15:48:41 xtraeme Exp $
#
# PROVIDE: gld
# BEFORE: mail
# REQUIRE: DAEMON LOGIN mysqld
. /etc/rc.subr
name="gld"
rcvar=$name
command="@PREFIX@/bin/${name}"
required_files="@PKG_SYSCONFDIR@/$name.conf"
pidfile="@VARBASE@/run/${name}.pid"
extra_commands="gld_wa... | true |
d75ce64b85421401dd7dfa8ef7dadf7a17c03851 | Shell | delkyd/alfheim_linux-PKGBUILDS | /afx2usb-linux-git/PKGBUILD | UTF-8 | 1,077 | 2.734375 | 3 | [] | no_license | # Maintainer: sekret, mail=$(echo c2VrcmV0QHBvc3Rlby5zZQo= | base64 -d)
_pkgname=afx2usb-linux
pkgname=$_pkgname-git
pkgver=0.r4.9f2ef7d
pkgrel=1
pkgdesc="Install or uninstall USB bootloader firmware for Fractal Audio Systems Axe-FX II audio processor."
arch=('any')
url="https://github.com/TieDyedDevil/afx2usb-linux"
l... | true |
0cb8faf12aefcf26bd8183aac9dd746cd9b568da | Shell | ballock/btrfs-backup | /btrfs-backup | UTF-8 | 1,268 | 3.1875 | 3 | [] | no_license | #!/bin/sh
export PATH=${PATH}:/usr/local/bin:/usr/local/sbin
umount /btrfs >/dev/null 2>&1 || true
umount /mnt >/dev/null 2>&1 || true
mount -t btrfs LABEL=sp6-backup /mnt || exit 1
if ! mount -t btrfs UUID=76c2d8f7-278d-428c-9a42-571216cc0773 /btrfs; then
umount /mnt
exit 1
fi
cd /btrfs
btrfs-subvolume-backup ... | true |
991c57820bce577055ab93de21bb1fc78098c7d0 | Shell | DevKhaira/docker-android | /src/utils.sh | UTF-8 | 964 | 2.921875 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
BOOT ()
{
A=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r')
while [[ $A != "1" ]]; do
sleep 1;
A=$(adb wait-for-device shell getprop sys.boot_completed | tr -d '\r')
done;
}
Get_Google_Play_Services ()
{
wget "https://www.apklinker.com/wp-content/uploads/upl... | true |
1efd5171542d15a7068011e9c3df55c64281a237 | Shell | viyoriya/lfs_9 | /lfs/pkgscripts/gcc | UTF-8 | 1,663 | 3.28125 | 3 | [] | no_license | #!/bin/bash
set -e
. /etc/pkg/pkg.conf
. /var/lib/pkg/functions
name=$(basename $0)
version=$GCC_VER
url=http://ftp.gnu.org/gnu/gcc/gcc-$version/gcc-$version.tar.xz
fetch $url
rm -fr $WORK_DIR/$name-$version
tar -xvf $SOURCE_DIR/$(basename $url) -C $WORK_DIR
cd $WORK_DIR/$name-$version
{ time \
{
case $(una... | true |
77ec5b95e440bdf46b6847355235d08fb9e6c867 | Shell | DanWilkerson/rcs | /.bashrc | UTF-8 | 222 | 2.78125 | 3 | [] | no_license | alias vim="nvim"
alias watch_and=$HOME/watch_and/watch_and.sh
function ws {
tmux new -d -s $1 &&
# tmux doesn't really seem to care what is passed in
tmux split-window -p 10 -t ${1}.0;
tmux attach -t $1;
}
| true |
653ea320056e346448211d3ecca18cb74b22528f | Shell | cs2dsb/rust-web-deploy-scripts | /deployments/test_deployment/apps/user-apps.sh | UTF-8 | 606 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
# Exit when any command fails
set -o errexit
# Exit when an undeclared variable is used
set -o nounset
# Exit when a piped command returns a non-zero exit code
set -o pipefail
# Check we have have root privs
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
exit 1
fi
... | true |
783a8f470dfe7fd8ec5c9cd2c683a88ac5e0aae1 | Shell | NavarreteLeandro/Cartesian-Robot | /ardup | UTF-8 | 881 | 3.125 | 3 | [
"MIT"
] | permissive | #!/bin/zsh
files=(uart uartInterpreter interrupts GPIO timers stepper i2c i2c_interpreter)
#files=(uart uartInterpreter interrupts GPIO timers stepper)
if [ ! -d build ]; then
echo "Creating build/ dir..."
mkdir build
fi
if [ -d build ]; then
echo 'Cleaning previous build files...'
rm -rf build/*
fi
avr-gcc -s... | true |
716e884245891ea876a76087dc16ca090b753ad5 | Shell | derpferpmerp/astroUNLCustom | /main.sh | UTF-8 | 852 | 2.875 | 3 | [] | no_license | rm -rf rfflsrc
rm -rf astrosrc
mkdir astrosrc
cd astrosrc
git clone "https://github.com/derpferpmerp/astroUNL.git"
cd ../
mkdir rfflsrc
cd rfflsrc
curl -O -L "https://github.com/ruffle-rs/ruffle/releases/download/nightly-2021-06-08/ruffle-nightly-2021_06_08-web-selfhosted.zip"
unzip "ruffle-nightly-2021_06_08-web-sel... | true |
27a6a9d82cca6d30d1b3ad2d106581050ccb06c2 | Shell | IoT-Ken/bworkshop | /dockerinstall/dockerinstall.sh | UTF-8 | 1,876 | 3.484375 | 3 | [] | no_license | #!/bin/sh
# _______ ______ ______ __ ___ _______ .______ __ .__ __. _______.___________. ___ __ __
# | \ / __ \ / || |/ / | ____|| _ \ | | | \ | | / | | / \ | | | |
# | .--. | | | | | ,----'| ' / | |__ ... | true |
c683374c49ef810f6ece2309640ce40c9c6f2ed0 | Shell | devdavidkarlsson/CEFExtensionSample | /build-linux.sh | UTF-8 | 1,210 | 2.90625 | 3 | [
"MIT-0"
] | permissive | #!/usr/bin/env bash
mkdir -p bin # for silencing the next line, in case the folder does not exist
rm -r bin
mkdir -p build
touch build/touched # for silencing the next line, in case the folder was just created
rm -r build/*
cd build
echo "Building CEF3SimpleSample::Independente"
g++ -c ../CEF3SimpleSample/Independent... | true |
c3b1eeb99470c807b99e2e47c655bcd8bc2aee9d | Shell | G7495x/CSE-VTU-Labs-2010-Syllabus | /(10CSL77) Networks Lab/01/1.sh | UTF-8 | 296 | 2.671875 | 3 | [] | no_license | #!/bin/bash
echo 'TitleText: "Bandwidth vs Packets Dropped"'>1.xg
echo 'XUnitText: "Bandwidth"'>>1.xg
echo 'YUnitText: "Packets Dropped"'>>1.xg
echo ''>>1.xg
for i in {1..10}
do
a=$(echo "$i*0.2"|bc -l)
ns 1.tcl $a
echo $a $(awk -f 1.awk 1.tr)>>1.xg
done
xgraph -lw 2 -bg white 1.xg &
nam 1
| true |
386a4bef3bdd02d37537d72b1ee85999bbd63aeb | Shell | alamandor/Scripts | /get-site | UTF-8 | 160 | 2.953125 | 3 | [] | no_license | #!/bin/bash
# Alec Greenaway
# Script to download offline html version of supplied url
if [[ $# -eq 0 ]]
then
echo "Need to supply a URL"
exit 1
fi
wget -p -k $1
| true |
536bd01382167c5d45df1f2e4a391a6435de86d4 | Shell | NutiNaguti/order-management.containerize | /build.command | UTF-8 | 329 | 2.578125 | 3 | [] | no_license | #!/bin/bash
brew install coreutils
BASEDIR=$(dirname $(realpath "$0"))
echo $BASEDIR
cd $BASEDIR/order-management
docker build -t order-management.back -f Dockerfile .
cd $BASEDIR/order-management/order-management.front
docker build -t order-management.front -f Dockerfile .
cd $BASEDIR/order-management
docker-compo... | true |
58ea96e8e030e75d41cab5ca50a7b97576f9d993 | Shell | ShalokShalom/apps | /rssguard/PKGBUILD | UTF-8 | 935 | 2.828125 | 3 | [] | no_license |
pkgname=rssguard
pkgver=3.9.2
pkgrel=1
pkgdesc="Simple (yet powerful) feed reader, able to fetch the most known feed formats, including RSS/RDF and ATOM."
arch=('x86_64')
url="https://github.com/martinrotter/rssguard"
license=('GPL')
depends=('qtwebengine')
makedepends=('qt5-tools')
source=("https://github.com/martinr... | true |
6f91808199ee602eeeec02ea1b1d5e61baa962df | Shell | devinit/ddw-r-scripts | /shell-scripts/crs-to-postgres/create.crs.schema.and.grant.privilege.to.user.sh | UTF-8 | 1,142 | 3.625 | 4 | [] | no_license | #!/usr/bin/env bash
database_name=$1
# Loop through all the database names in the file 'database.txt'
echo "Database name: "$database_name""
#sleep 2
# Create the database
echo "Attempting to create database: "$database_name
echo "CREATE DATABASE "$database_name";"
echo "CREATE DATABASE "$database_name";" | psql -d... | true |
f481a85217979f792aaac0d64beb80856da9d051 | Shell | DOSSANTOSDaniel/X2GO_Server_install | /inst_x2go.sh | UTF-8 | 1,678 | 3.6875 | 4 | [] | no_license | #!/bin/bash
#Script permettant l'installation de:
# X2GO serveur
# L'environnement de bureau XFCE4
# Le navigateur Iceweasel
# Le terminal xfce4-terminal
#
#"HALHOUL Billel" halhoul.billel.pro@gmail.com
#"DOS SANTOS Daniel" daniel.massy91@gmail.com
#Source: https://wiki.x2go.org/doku.php/doc:installation:x2goserver
cle... | true |
3e253528ef3df3947c0b30c3d2ad6cea80734297 | Shell | adrianshort/planningalerts | /python_scrapers/createCGI.sh | UTF-8 | 294 | 2.5625 | 3 | [] | no_license | #!/bin/bash
#echo Removing contents of directory cgi-bin
#svn rm --force ../cgi-bin/*
echo Running generateCGIScripts
python generateCGIScripts.py
svn add ../cgi-bin/*
#echo Committing changes to svn
#(cd ../cgi-bin ; svn commit -m "Removing and regenerating directory cgi-bin")
echo Done
| true |
bb9ceea8a9ef34e1dc61de9d8c3b3483c71bff3e | Shell | Attamusc/dotfiles-legacy | /system/aliases.zsh | UTF-8 | 1,443 | 2.828125 | 3 | [
"MIT"
] | permissive | # Easier navigation
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ~="cd ~"
alias -- -="cd -"
alias cdot="cd $HOME/.dotfiles"
# Shortcuts
alias m="mvim"
alias v="vim"
alias o="open"
alias oo="open ."
# Open Mou from the command line
alias md="open -a Mou"
# ls
alias... | true |
50d3001cae835f29da60f363b0a091d11cdff7cf | Shell | mtask/duplicity-ansible | /files/backup.sh | UTF-8 | 1,345 | 3.140625 | 3 | [] | no_license | #!/bin/bash
## Remote backup script. Requires duplicity.
. /etc/backups/backup.config
dest_local_path=${destination##*://}
backend=${destination%://*}
for src in "${sources[@]}"
do
full_dest="$dest_local_path"/"$src"
mkdir -p "$full_dest"
if [[ "$encrypt" == 1 ]]
then
duplicity --gpg-options="--homedir... | true |
a32b5bca7bd9752cbbae6878fa798edbba76329d | Shell | oracle/bosh-oracle-cpi-release | /ci/tasks/download-cpi.sh | UTF-8 | 707 | 3.34375 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
#Inputs
version=`cat dev-version-semver/number`
#Outputs
mkdir -p ${pwd}/candidate
# Create OCI config
echo "Creating oci config..."
OCI_DIR="$HOME/.oci"
OCI_API_KEY="$OCI_DIR/oci_api_key.pem"
OCI_CONFIG="$OCI_DIR/config"
mkdir -p ${OCI_DIR}
cat > ${OCI_API_KEY} <<EOF
${oracle_apikey}
EO... | true |
55a9715d2e75e6d788e993950606a135f14f1fec | Shell | Ljj12345678/X-MOL | /FT_to_generation/slurm/pack_model.sh | GB18030 | 965 | 3.953125 | 4 | [
"Apache-2.0"
] | permissive | #!/bin/bash
###############################
#FileName:backupLogTimer.sh
#Function:ʱ־ļ
#Version:0.1
#Authon:xueya
#Date:2014.06.26
###############################
if [[ $# != 1 ]];then
echo "output"
exit -1
fi
#ȡǰ·
path=`pwd`/$1
echo "current1 path :${path}"
#ѭִ
while true
do
#鿴ļµļ
fileList=`ls ${path} 2... | true |
bdce72a34fe7f7be056e940205dcea766f1a4616 | Shell | Andrei1911/CEPSparker | /Mac/zxpBuild.command | UTF-8 | 2,424 | 3.328125 | 3 | [
"MIT"
] | permissive | #
# Build a code-signed ZXP file
#
export scriptDir=`dirname "$0"`
cd "$scriptDir"
export timestampServer="http://timestamp.globalsign.com/scripts/timstamp.dll"
export scriptDir=`pwd`
export projectHomeDir=`dirname "$scriptDir"`
export devtoolsDir="$projectHomeDir/devtools"
export buildDir="$projectHomeDir/build"
ex... | true |
235df33dffb74e85926f827c0cd12d16b710dbd7 | Shell | martinandrovich/hric-system | /assets/scripts/setup-opensim.bash | UTF-8 | 2,144 | 4.125 | 4 | [] | no_license | #!/bin/bash
# > opensim installation script
# version: 1.0.0
# last modified: 08/05/2020
# -------------------------------------------------------------------------------------------------------
# > sudo test
if [ "$EUID" -eq 0 ]
then echo "This script should NOT be run as root; run as current user and onl... | true |
3af5b4f10f068f844f2d7476df5c21aa0c00c886 | Shell | AnrDaemon/samba4-ads | /home/git/git-shell-commands/list-commands | UTF-8 | 200 | 2.578125 | 3 | [] | no_license | #!/bin/sh
### list-commands
##+ - List available commands
find "$HOME/git-shell-commands" -xdev -mindepth 1 -maxdepth 1 -type f -execdir grep -E '^##[+#] (.+)$' "{}" \; | sed -Ee 's/^##[+#] //;'
| true |
6af93b932954758baba4e3bf83cc4bd142e0eb51 | Shell | iAlbertTran/GithubActivity | /HW4/doswap.sh | UTF-8 | 925 | 3.578125 | 4 | [] | no_license | #/bin/bash
#a script to bring up web2, swap web1 with web2, then kills the old web1 container.
#Brings up web2, which is the new activity image to be swapped in place of the old one.
#It is passed as an argument into the script, and inserted where "$1" is at the end
echo "Bringing up the new image $1..."
... | true |
6ea0758c4681aee84a2f331f34878eeca7ecefe0 | Shell | bmwiedemann/openSUSE | /packages/l/logrotate/logrotate-all | UTF-8 | 736 | 3.671875 | 4 | [] | no_license | #!/bin/sh
set -eu
configs=
# Only read /usr/etc/logrotate.conf if /etc/logrotate.conf does not exist
if ! [ -e /etc/logrotate.conf ]; then
configs="$configs /usr/etc/logrotate.conf"
else
configs="$configs /etc/logrotate.conf"
fi
# Then read in all of {/usr,}/etc/logrotate.d/*, with /etc/ overriding /usr/etc/.
dirs... | true |
606c1712511385d346321f1b3994f6dc3f6522d8 | Shell | pcingola/SnpEff | /scripts_build/genesTxtColumnNames.sh | UTF-8 | 1,015 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
#-------------------------------------------------------------------------------
# Convert the gene names in order to be used in an R script
#
# Usage: cat snpEff_genes.txt | ./scripts/genesTxtColumnNames.sh > genes.txt
#
# Once in R, you can:
# - Load this table:
# data <- read.csv("genes.txt", sep= "\t",... | true |
5fe62bf0b7ef7bf0a8d74c43749cd33dbddf8503 | Shell | cCurses/alpharepo | /testing/pipe-vs-redirect | UTF-8 | 7,626 | 3.9375 | 4 | [] | no_license | #!/bin/bash
#+ marker sof +#
# concept:
# - test rig to get running times of scanning directory hierarchies
# - the nested find loops are fed by sorted lists using pipes or redirects
# - the overall purpose of this test is to discover which is faster
# results:
# - counter to what I expected, the pipe form is *always... | true |
5d197fe562d74e27be7aefb1376e889b4536dcbf | Shell | thouters/scriptbox | /perhaps.sh | UTF-8 | 70 | 3.015625 | 3 | [] | no_license | #!/bin/bash
IN="`cat`"
if [[ ! -z "$IN" ]]
then
echo "$IN"|$@
fi
| true |
47410f961e9de2da60b68996a1f10891a9b204d9 | Shell | jklafka/language-modeling | /Analysis/EM/em_optimization.sh | UTF-8 | 424 | 2.75 | 3 | [] | no_license | #!/bin/bash
python3 get_all_costs.py $1 $2 $3 > all_costs.txt
## grep commands that wrangle the final cost for each barycenter into costs.txt
## find every line that's just a number: get that line and the one before it
## now take only the final decimal number and the following integer
cat all_costs.txt |
grep -B ... | true |
dd999cf09352bebd8092aa8d953e4c9cd35d75b3 | Shell | liquanzhou/ops_doc | /Service/puppet/puppet-server.txt | ISO-8859-13 | 1,192 | 2.75 | 3 | [] | no_license | #!/bin/bash
### before installmust modify the hostname and reboot the machine ###
############### attention #################
#######################################################################
### install ruby
groupadd puppet
useradd -g puppet -s /bin/false -M puppet
yum install -y ruby
### time sync... | true |
94de2510e5eadd0cddcc839ff76349788c8f89be | Shell | mapbox/mason | /scripts/minjur/a2c9dc871369432c7978718834dac487c0591bd6/script.sh | UTF-8 | 1,893 | 3.34375 | 3 | [
"BSD-2-Clause"
] | permissive | #!/usr/bin/env bash
MASON_NAME=minjur
MASON_VERSION=a2c9dc871369432c7978718834dac487c0591bd6
MASON_LIB_FILE=bin/minjur
. ${MASON_DIR}/mason.sh
function mason_load_source {
mason_download \
https://github.com/mapbox/minjur/tarball/a2c9dc871369432c7978718834dac487c0591bd6 \
b24a45f64ae0b75e2fbcbb6b... | true |
e13e6b344f7f960532b1498bcaf4f13444123edd | Shell | liushuchun/TensorRTClassifier | /app/trt_gen_tool/run_docker.sh | UTF-8 | 237 | 2.640625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
name=trt_gen_tool
image=dev/tensorrt
docker rm -f ${name}
params=$@
nvidia-docker run -ti \
--name ${name} \
-v `pwd`/../../:/work \
${image} \
/bin/bash -c "cd /work/app/trt_gen_tool && ./run_locally.sh ${params}"
| true |
c21ddd622ca49b0fb9bead0d80bf6109962da3d8 | Shell | ASzot/Dot-Files | /cron/daily.sh | UTF-8 | 699 | 2.59375 | 3 | [] | no_license | #!/bin/sh
# Push wiki
cd ~/me && git add -A && git commit -m "Daily update" && git push
# Clean up downloads folder.
find ~/Downloads/* -maxdepth 1 -mtime +1 -exec rm -rf {} \;
# rm -f ~/Downloads/BeFocused.csv
# Fetch the BeFocused data
# open -n /Users/andrewszot/Library/Mobile\ Documents/com\~apple\~Automator/Doc... | true |
6eb1a59cdb7783e986b0585df9ca382b8f8b5a9e | Shell | thirdorderharmonic/jamf-extensions | /ard_field1.sh | UTF-8 | 331 | 2.6875 | 3 | [] | no_license | #!/bin/sh
# This attribute returns the ARD Computer Info field 1 from the Computer Information attributes in the Apple Remote Desktop settings of a machine.
if [ -f "/Library/Preferences/com.apple.RemoteDesktop.plist" ]; then
echo "<result>`/usr/bin/defaults read /Library/Preferences/com.apple.RemoteDesktop Text1`</r... | true |
b12ea9d4f241327a21e0ff73241cd84aa0fdc368 | Shell | an2e9ingC/linux_env_settings | /py_install.sh | UTF-8 | 768 | 3.359375 | 3 | [] | no_license | #!/bin/bash
# Set Python version to be installed
export python_version=3.8.7
# Install dependency package
sudo apt install libffi-dev
# Download Python tarball
wget -P/tmp https://www.python.org/ftp/python/${python_version}/Python-${python_version}.tgz
# Build and install Python
cd /tmp
tar xvf Python-${python_vers... | true |
c558a7db3336a1147c4b0c7f53969ac137f969ff | Shell | danpawlik/openstack-helm-deployment | /scripts/check-service-replication.sh | UTF-8 | 1,052 | 3.359375 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
NAMESPACE=${NAMESPACE:-'openstack'}
SCALE_SERVICES=${SCALE_SERVICES:-'true'}
OS_SERVICES="glance-api keystone-api neutron-server nova-api-metadata nova-api-osapi"
REPLICATION_COUNT=${REPLICATION_COUNT:-''}
if [ -z "${REPLICATION_COUNT}" ]; then
REPLICATION_COUNT=$(kubectl get nodes --no-headers | wc -... | true |
68ad18c29293ec353875ff595425a73e18785e81 | Shell | devonpmack/cli-github-repo-creator | /git-create | UTF-8 | 1,410 | 3.6875 | 4 | [] | no_license | #!/bin/bash
# originally made by https://gist.github.com/robwierzbowski/5430952/
# Updated to work in 2019 by devonpmack
# Create and push to a new github repo from the command line.
# generate a personal access token here: https://github.com/settings/tokens
GTOKEN="ACCESS_TOKEN_HERE"
# Gather constant vars
CURREN... | true |
3c244902c1f50e2ec5eac3e4a349cfc03a748703 | Shell | raza-naqui/sql-load-runner | /runSqlFile.sh | UTF-8 | 632 | 3.953125 | 4 | [] | no_license | #!/bin/bash
if [ "$#" -ne 4 ]; then
echo "Incorrect Syntax!"
echo "Please pass the required parameters DB_CONFIG_PROPERTIES_FILE, SQL_FILE, LOG_FILE, CUST_NUM"
exit
fi
dbConfigFile=$1
sqlFile=$2
logFile=$3
custName=$4
if [ -f "$dbConfigFile" ]
then
while IFS='=' read -r key value
do
key=$(echo $ke... | true |
d9e94225c9a9aa502a1dabf78568a9c1197c41ef | Shell | wrideout/dotzsh | /zshrc | UTF-8 | 4,007 | 2.765625 | 3 | [
"MIT"
] | permissive | #
# zshrc
#
# In order to work, be sure to make a hard link from this file to ~/.zshrc.
# This link allows for the .zsh directory to be used as a git repository, for
# easy changes and updates. Alternatively, if you don't care to use git, you
# could just make this file your ~/.zshrc.
#
# See git log for changes.
#
... | true |
0eefd87ec8c560a830d9f238059bfd1b51faf317 | Shell | webclinic017/MLServices | /bin/start.sh | UTF-8 | 374 | 3.359375 | 3 | [] | no_license | #!/bin/sh
BASEPATH=$(pwd)
LIB_PYTHON=${BASEPATH}/lib
LIB_REDIS=${BASEPATH}/etc/redis
CONF_REDIS=ml_service.conf
# Export PYTHONPATH
export PYTHONPATH=$PYTHONPATH:${LIB_PYTHON}
# Start the redis server
PID_FILE_REDIS=$(grep "pidfile" ${LIB_REDIS}/${CONF_REDIS} | awk '{print $2}')
if [ ! -e ${PID_FILE_REDIS} ]; then
... | true |
74ab1a860f124e499dc662bd61315095635c3f0d | Shell | m0420/MeridianJB | /Meridian/Meridian/bootstrap/create-meridian-bootstrap.sh | UTF-8 | 521 | 2.90625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
currDir=$(dirname $0)
spongebobDir=$currDir/../..
baseDir=$currDir/spongebob-bootstrap
# amfid_payload.dylib
cp $spongebobDir/amfid/bin/* $baseDir/spongebob/
# pspawn_hook.dylib
cp $spongebobDir/pspawn_hook/bin/* $baseDir/usr/lib/
# jailbreakd
cp $spongebobDir/jailbreakd/bin/* $baseDir/spongebob/jailbr... | true |
e4b203ee76d8d64209cae03b08a8e85f9427de40 | Shell | kulpree/ops-pipeline | /test/integration/jenkins/bats/sonar_works.bats | UTF-8 | 646 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bats
@test "sonarqube is installed" {
run which sonarqube
[ "$status" -eq 0 ]
}
@test "sonarqube is working" {
dir=$( mktemp -d )
cd $dir
wget -q https://github.com/SonarSource/sonar-examples/archive/master.zip
unzip -q master.zip
wget -q http://repo1.maven.org/maven2/org/codehaus/sonar/r... | true |
bb75cf1850028fd7cc29755b39d03c76f4aef7f3 | Shell | raulbcs/vagrant-template | /provision/shell/bootstrap.sh | UTF-8 | 1,412 | 3.65625 | 4 | [] | no_license | #!/bin/sh
# Directory in which librarian-puppet should manage its modules directory
# Windows Virtual Box has 260 character limit on the file path length; we need to run puppet from
# the non-mapped directory, or we'll hit this limit when librarin builds its cache.
PUPPET_SRC='/vagrant/provision/puppet'
PUPPET... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.