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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
054c42ee24555c0014bc48094987cc02a64bc832 | Shell | xavileon/mast | /bin/testcontinuous | UTF-8 | 351 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | #!/usr/bin/env bash
set -o pipefail
cd "$(dirname $0)/.." || exit 1
echo "Waiting for filesystem changes. Hit Ctrl+C to exit."
fswatch -e '.*' -i '.*\.py$' --event=Updated --event=Created --event=MovedTo --event=Renamed --event=MovedFrom --event=Removed -o -r . | while read line; do python setup.py test '--addopts="-... | true |
4cda89fba97cdf91ce597b375b269812be012758 | Shell | srcc-msu/octotron | /scripts/single_mail.sh | UTF-8 | 324 | 3.34375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# sends a single mail
# $1 - recipient
# $2 - subject
# $3 - msg, if $3 not specified - stdin will be used
NEW_SUBJ=`echo $2 | sed 's/Subject: //'` # TODO: wtf?
if [ $# -eq 3 ]
then
echo -e "$3" | mail -s "$NEW_SUBJ" "$1"
elif [ $# -eq 2 ]
then
mail -s "$NEW_SUBJ" "$1" <&0
else
echo "wrong params count... | true |
04dc369bccd8951ca7a785bc605306136adf4511 | Shell | jaseg/scripts | /harddisk | UTF-8 | 1,186 | 3.796875 | 4 | [] | no_license | #!/bin/bash
#This script has been written to mount and dismount an luks-encrypted hard drive. I needed it because back then on my ubuntu the hard drive would not properly survive a suspend, with the links in /dev/mapper being unreadable as well as undeletable. Although it is *not* the most elegant solution at the time ... | true |
18f01fefc4612ab1f90815937220d00b8dfd0a4d | Shell | warrenlp/2015VisionCode | /cascade_training/mergevec/make/replace_vcproj.sh | UTF-8 | 580 | 3.078125 | 3 | [
"MIT"
] | permissive | #!/bin/sh
file=$1.vcproj
sed 's!../../../bin!../bin!g' $file > tmp; mv tmp $file # escape . as \. if it does not work well because of them.
sed 's!../../../_temp!../_temp!g' $file > tmp; mv tmp $file
sed 's!../../../lib/cvhaartraining!../lib/cvhaartraining!g' $file > tmp; mv tmp $file
sed 's!../../../lib!../lib,C:/Pro... | true |
ad09cebbbea62c7f6d8c3df029222588d07f3d9d | Shell | linuxmuster/linuxmuster-client-adsso | /etc/scripts/onboot.sh | UTF-8 | 1,843 | 3.65625 | 4 | [] | no_license | #!/bin/bash
#
# do onboot stuff
#
# thomas@linuxmuster.net
# 20181127
#
# read setup values
source /etc/linuxmuster-client/scripts/readvars.sh || exit 1
if [ ! -s "$sssd_conf" ]; then
echo "$sssd_conf does not exist or is not valid!"
exit 1
fi
# test ad connection
host "$servername.$ad_domain" | grep -q "$server... | true |
92b76be16fced81ef4b38ebc687fa5564b7bd71f | Shell | lmammino/dotfiles | /shell/python.sh | UTF-8 | 905 | 2.875 | 3 | [
"MIT"
] | permissive | # Python
# Pip3 installed binaries
if test -d "$HOME/Library/Python/"
for p in (ls -d $HOME/Library/Python/*)
set -x PATH "$p/bin" $PATH
end
end
# Gives priority to brew installed python
if test -d "/usr/local/opt/python/libexec/bin"
set -x PATH "/usr/local/opt/python/libexec/bin" $PATH
end
# Gives prior... | true |
3c0b2d75d033bd37f84c458dd46f020f7108e4cf | Shell | aravindkukku/kukku | /fol.sh | UTF-8 | 264 | 2.828125 | 3 | [] | no_license | read -p "enter the name of file" ex
mkdir /home/aravind/$ex;
for i in range $(seq 3)
do
nano /home/aravind/$ex/file$i
done
tar -cf /home/aravind/$ex/$ex.tar /home/aravind/$ex
git pull origin master
git add -A
git commit -m "$ex commited"
git push origin master
| true |
04a605d026494a1b2787bad64525f646dfd3fff8 | Shell | wantonsolutions/bully | /test/test.sh | UTF-8 | 235 | 2.703125 | 3 | [] | no_license | #!/bin/bash
#args grouplistFileName Timeout AYA SendFailure
bool=0
while read line
do
for word in $line
do
if [ $bool == 0 ]
then
bool=1
else
echo $word
`../node $word $1 - $2 $3 $4` &
bool=0
fi
done
done < $1
| true |
1c83923829f169e671788e114b0ac829b28464d5 | Shell | DalavanCloud/tools | /perf/istio/allconfig/setup.sh | UTF-8 | 796 | 3.734375 | 4 | [
"Apache-2.0"
] | permissive | #/bin/bash
set -ex
DNS_DOMAIN=${DNS_DOMAIN:?"DNS_DOMAIN like v104.qualistio.org"}
GATEWAY_URL=$(kubectl -n istio-system get service istio-ingressgateway -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
function install_all_config() {
local DIRNAME="${1:?"output dir"}"
local domain=${DNS_DOMAIN:-qualistio.org}... | true |
a5e0554aecec5779f3f1af806ce963c41d46a64e | Shell | CS5331-GROUP-7/as3 | /benchmarks/ssl/genInsecureKey.sh | UTF-8 | 128 | 2.8125 | 3 | [] | no_license | #!/bin/sh
a=2
while [ "$a" -lt 21 ]; # this is loop1
do
openssl rsa -in app$a.key -out app$a-insecure.key
a=$((a+1))
done
| true |
2d0a4b70838b6f1b591d89602f2b418feccc395b | Shell | torchbox/k8s-ts-ingress | /tests/e2erun.sh | UTF-8 | 7,527 | 3.421875 | 3 | [] | no_license | #! /bin/sh
# vim:set sw=8 ts=8 noet:
set -e
# We can't use 127.0.0.1 for test endpoints because the apiserver won't let us
# created an Endpoints with that address. Pick up the first reasonable-looking
# address from the host instead; it doesn't need Internet connectivity, it just
# needs to exist.
TEST_IP_ADDRESS=$... | true |
78c672edbf58236edb8ed5d6aaa3a50d072ab0f7 | Shell | jameskbride/nuforc-search | /elasticsearch/load-elasticsearch.sh | UTF-8 | 260 | 3 | 3 | [] | no_license | #!/bin/bash
# $1 - The directory containing the encounter json files.
# $2 - The server location (http://localhost:9200 for development).
for file in $1/*.json
do
curl -X POST -H "Content-Type: application/json" -T "$file" $2/encounters/encounter;
done;
| true |
1c47481c7355b2a1ef51b305c49cb39458bc4243 | Shell | xavier506/eosio-network-bootstrap | /services/validator3/start.sh | UTF-8 | 969 | 3.609375 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
echo "Starting VALIDATOR Node...";
set -e;
ulimit -n 65535
ulimit -s 64000
mkdir -p $CONFIG_DIR
cp $WORK_DIR/config.ini $CONFIG_DIR/config.ini
pid=0;
nodeos=$"nodeos \
--config-dir $CONFIG_DIR \
--data-dir $DATA_DIR \
--blocks-dir $DATA_DIR/blocks \
--signature-provider $EOS_PUB_KEY=KEY:$... | true |
599f3e491a9372356ec74641b78c858eeabe1867 | Shell | emgunn/Tesseract-Training-Automation | /finetune.sh | UTF-8 | 1,256 | 3.53125 | 4 | [
"MIT"
] | permissive | # This script trains/fine-tunes our existing LSTM model.
# --continue_from should point to the extracted .lstm model of the model we want to continue fine-tuning from. This should be extracted by a call to extract_lstm.sh.
# --model_output should point to where we want our output to be
# --traineddata should point t... | true |
971a8b022453b74a83099e327cb79bae3e545e21 | Shell | malston/tanzu-pipelines | /concourse/setup.sh | UTF-8 | 1,889 | 3.6875 | 4 | [] | no_license | #!/usr/bin/env bash
function die() {
2>&1 echo "$@"
exit 1
}
function login_harbor() {
echo "${REGISTRY_PASSWORD}" | docker login -u admin "${REGISTRY}" --password-stdin
}
function create_harbor_projects() {
for p in {concourse-images,kpack,tanzu}; do
echo "Creating '${p}' in Harbor."
curl -... | true |
23d91f3e4e2b75891e678dd806b9499f592df68d | Shell | liuping001/deploy | /d.sh | UTF-8 | 491 | 3.640625 | 4 | [] | no_license | #!/bin/sh
usage()
{
echo "Usage: $0 [server_define.yml] [host.txt] [start] [server_name]... "
echo "example:"
echo " $0 server_define.yml host.txt push server1 server2"
}
if [ $# -lt 4 ];then
usage
exit
fi
for server in ${@:4};
do
# echo $server
export ANSIBLE_FORCE_COLOR=true
expor... | true |
5089f7e4eebd3d7391b508444cbd9b3fba3c3cc6 | Shell | basile-parent/impro-photo | /launchImpro.sh | UTF-8 | 560 | 3.203125 | 3 | [] | no_license | #!/bin/bash
java -fullversion
version=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
if [[ "$version" < "1.8" ]]; then
>&2 echo
>&2 echo "ERREUR : La version de installée de Java est inférieure à la version minimale requise (1.8+)"
exit 1;
fi
cd /var/www/impro-photo
lastJar="$(ls -tr target | grep '\.... | true |
bcc6ecf4921ab0f3e5228cf16476cbbaddf252df | Shell | mateuszmidor/KubernetesStudy | /KubernetesPoPolsku/s01/e10-helm-2/chart-museum/run_all.sh | UTF-8 | 2,416 | 4.125 | 4 | [] | no_license | #!/usr/bin/env bash
trap tearDown SIGINT
CHARTMUSEUM_NAME="mychartmuseum"
CHARTMUSEUM_URL="http://charts.127.0.0.1.nip.io" # configured in chart-museum-values.yaml
function stage() {
GREEN="\e[92m"
RESET="\e[0m"
msg="$1"
echo
echo -e "$GREEN$msg$RESET"
}
function waitUrlAvailable() {
ur... | true |
150d5da8b97828023eaf831170925ceaae9858ea | Shell | USDA-ARS-GBRU/gbru_fy19_candis | /runall.sh | UTF-8 | 8,853 | 2.78125 | 3 | [] | no_license | #!/bin/bash
module load bbtools
# Use BBtools to demultiplex files based on the headers
for file in *_R1.fastq.gz
do
bname=`basename $file _R1.fastq.gz`
demuxbyname.sh in=$file in2=${bname}_R2.fastq.gz delimiter=colon column=10 out=${bname}_%_R1.fastq.gz out2=${bname}_%_R2.fastq.gz
done
# cpy origio... | true |
3e602741048e7c0bc2697e038dff8de777c4f5c5 | Shell | jakewendt/nrl_solar_physics | /Software/RawLZCD/CopyRawCDFiles | UTF-8 | 1,364 | 3.578125 | 4 | [] | no_license | #! /bin/sh -a
#
#
# begin script CopyRawCDFiles
#
# author: the Jake
# born: 000705
#
# modifications:
# 000719 - the Jake - including jget technique
# 011114 - the jake - began trying to link file instead of copy them
#
#
# CopyCDFiles 1266
#
# Need to set CDLTS, CDROOT before running manually
#
# part of RawLZCD
#
... | true |
31504583a3eba35088331d19132fd27fe138f40d | Shell | hype-moment/Dotfiles | /rofi/scripts/power.sh | UTF-8 | 629 | 3.09375 | 3 | [] | no_license | #!/usr/bin/env bash
rofi_theme="rofi -theme ~/.config/rofi/Power-Menus/Power2.rasi"
# Options
shutdown="襤"
reboot="ﰇ"
lock=""
suspend="鈴"
logout=""
# Variable passed to rofi
options="$shutdown\n$reboot\n$lock\n$suspend\n$logout"
chosen="$(echo -e "$options" | $rofi_theme -p " " -dmenu -selected-row 1)"
case $chos... | true |
96838c0877c051285251f567d4eb90acd3c3fae0 | Shell | Schwib225/Bash-Scripts | /basics/for_do_done.sh | UTF-8 | 118 | 3.265625 | 3 | [] | no_license | #!/bin/bash
COUNT=0
for LETTER in {A..Z}
do
COUNT=`/usr/bin/expr $COUNT + 1`
echo "Letter $COUNT is [$LETTER]"
done
| true |
c9167176670d04617be276ec9c98ca85c55e1e26 | Shell | ShenXiaoxue/acoustic-sources | /1_4Cavity_monopole/Allclean | UTF-8 | 1,630 | 2.703125 | 3 | [] | no_license | #!/bin/sh
#------------------------------------------------------------------------------
# ========= |
# \\ / F ield | foam-extend: Open Source CFD
# \\ / O peration |
# \\ / A nd | For copyright notice see file Copyright
# \\/ M anipulation |
#----------... | true |
7a0a8fd7d2231a65706925690f99e175f04182ba | Shell | AlexDikelsky/dotfiles | /.profile | UTF-8 | 1,360 | 2.875 | 3 | [] | no_license | # ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting t... | true |
d9c9dbc9d11d6e11386c223ebeca3e08d2df881d | Shell | cod-developers/qchem-converters | /codes/quantum-espresso/examples/ESM_example/reference/esm_data.sh | UTF-8 | 498 | 2.90625 | 3 | [] | no_license | #!/bin/sh
# Prints the ESM summary data (charge and potentials) to stdout
# Usage: esm_data.sh {pw output filename}
#
# Original version by Brandon Wood and Minoru Otani
#
echo '# z (A) rho (e) Avg v_hartree Avg v_local Avg v_hart+v_loc'
echo '# (eV/A) (... | true |
96f545d94dffe4704dca24ffe31393347ca726e2 | Shell | aviau/dotfiles | /macos/.bashrc | UTF-8 | 2,178 | 3.625 | 4 | [] | no_license | #Set variables
export EDITOR="vim"
export GOPATH=$HOME/go
export GPG_TTY=$(tty)
export PINENTRY_USER_DATA="USE_TTY=1"
# Enable completion
eval $(/opt/homebrew/bin/brew shellenv)
if [[ -f ${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh ]]; then
. ${HOMEBREW_PREFIX}/etc/profile.d/bash_completion.sh
fi
# GPG+SSH... | true |
a6fbd5280b1cbd6963a5728052c9273ed255499f | Shell | demsheng/wxWidgets-example | /chap20/install/makeinno.sh | UTF-8 | 3,282 | 4.3125 | 4 | [] | no_license | #! /bin/sh
# Make an Inno Setup distribution list, where files and dirs are represented by
# sections like this:
# [Dirs]
# Name: {app}\backgrounds
#
# [Files]
# Source: C:\program\setup\about.htm; DestDir: {app}\; DestName: about.htm
#
#
# Usage: makeinno.sh sourcedir inno-topfile inno-bottomfile de... | true |
cc494d17b9778d0bd69f8910db36a5952ffc11b4 | Shell | adkinsjd/compactor | /vagrant/provision.sh | UTF-8 | 1,435 | 3.234375 | 3 | [
"Apache-2.0"
] | permissive | apt-get update
apt-get -y install \
autoconf \
git \
libapr1 \
libapr1-dev \
libaprutil1 \
libaprutil1-dev \
libcurl4-openssl-dev \
libsasl2-dev \
libsvn-dev \
libtool \
maven \
openjdk-7-jdk \
python-dev \
python-pip \
zookeeper
# Ensure java 7 is the defaul... | true |
3e5eca07935c95c80afcdcb0c6fc94bdc6f7a477 | Shell | chi0tzp/bin-dir | /se7endb | UTF-8 | 7,523 | 4.21875 | 4 | [] | no_license | #!/bin/bash
################################################################################
## se7endb.sh <flag> ##
## A bash script for mounting/unmounting the following SevenDB remote ##
## directories (hosted on pi7db) using sshfs / fusermount: ... | true |
36b9c2961ae17b69ce1cc0c43f661a82046b9567 | Shell | ernestchu/java-compiler-front-end | /src/utils/ListTokens.sh | UTF-8 | 148 | 2.953125 | 3 | [] | no_license | #!/bin/sh
if [ $# != 1 ]
then
echo "Usage: $0 file (e.g. Scanner.l)"
exit 1
fi
sed -n 's/.*return *\(.*\) *;.*/\1/p' $1 | tr '\n' ' '
echo
| true |
8f3399291f584b7b84713a71cb9a36f722fb8b0c | Shell | fov42550564/command | /xffmpeg | UTF-8 | 9,027 | 3.03125 | 3 | [] | no_license | #!/bin/bash
#############################################
# author:fang
# version : v1.0
# name : xffmpeg
# dispcripe: use of ffmpeg
# CopyRight@fangyunjiang[42550564@qq.com]
#############################################
source ~/command/common
_oper=0
function show_full_help() {
echo "缩放视频"
echo "ffmpeg -i 1.mp4 -... | true |
6a61bffea673b33920a34b3f5d323dfc75e12b82 | Shell | imos/imosh | /library/60-constants/flag.sh | UTF-8 | 781 | 3.296875 | 3 | [
"MIT"
] | permissive | readonly IMOSH_PARSE_ARGUMENTS='
local IMOSH_ARGV IMOSH_ARGS
imosh::internal::parse_args arg "$@"
if [ "${#IMOSH_ARGS[*]}" -ne 0 ]; then
local __imosh_parse_arguments_arg=""
for __imosh_parse_arguments_arg in "${IMOSH_ARGS[@]}"; do
eval "local ${__imosh_parse_arguments_arg}"
done
... | true |
fd0d19791c3a2e34b47985930d08fab8e624eee8 | Shell | SnailCpp/shell | /tool/menu.sh | UTF-8 | 1,082 | 3.71875 | 4 | [] | no_license | #!/bin/bash
function ShowDiskSpace {
clear;
df -k;
}
function WhoseOnline {
clear;
who;
}
function MemeryUsage {
clear;
cat /proc/meminfo | more;
}
function Menu {
clear;
echo -e "\t\t\tSys Admin Menu\n";
echo -e "\t1. Display disk space";
... | true |
a99555799f96dc5f9f77c94b9371b400890d6fbe | Shell | Trietptm-on-Coding-Algorithms/dotfiles-39 | /.zshrc | UTF-8 | 1,076 | 2.890625 | 3 | [] | no_license | export ZSH=~/.oh-my-zsh
ZSH_THEME="avit"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh
export EDITOR=emacs
export VIRTUALENVWRAPPER_PYTHON=$(which python3)
export VIRTUAL_ENV_DISABLE_PROMPT=true
export PIP_REQUIRE_VIRTUALENV=true
source /usr/local/bin/virtualenvwrapper.sh
if (tt... | true |
3a6ab12921061d8948049dcd13988ded79832ce1 | Shell | wudidatao/docker | /graylog/docker.sh | UTF-8 | 371 | 2.671875 | 3 | [] | no_license | #首次启动,创建容器
docker-compose up -d
#初始化容器
docker cp 9414e701e6b2:/usr/share/graylog /data/
#容器写入时会有权限问题,暂设777解决
chmod -R 777 /data/graylog
#二次启动,映射配置
docker-compose up -d
#如果需要重建容器的数据文件,可以把数据目录改个名
mv -r /usr/share/graylog /usr/share/graylog_bak
| true |
8feca1f252e9918d03d640834a7ac40daa48d874 | Shell | checkcheckzach/coding | /src/Leetcode/Q195_Tenth_Line.sh | UTF-8 | 360 | 3.390625 | 3 | [] | no_license | #!/usr/bin/env bash
# Given a text file file.txt, print just the 10th line of the file.
#
# Example:
#
# Assume that file.txt has the following content:
#
# Line 1
# Line 2
# Line 3
# Line 4
# Line 5
# Line 6
# Line 7
# Line 8
# Line 9
# Line 10
# Your script should output the tenth line, which is:
#... | true |
6608d18e3599738e8eb01595c80cd67a7f9eddf8 | Shell | marcusbotacin/ELF.Classifier | /tests/compile_tests.sh | UTF-8 | 74 | 2.625 | 3 | [
"MIT"
] | permissive | for j in `ls *.c`; do
echo "Compiling "$j;
gcc $j -o ${j%.*}.bin;
done
| true |
be92610eea4c054334d679238ebc158c22b989f3 | Shell | xinxiamu/MuStudy | /doc/shell-study/par.sh | UTF-8 | 227 | 2.78125 | 3 | [] | no_license | #!/bin/bash
# shell传递参数实例
echo "执行的文件名:$0"
echo "第一个参数:$1"
echo "第二个参数:$2"
td=$3
echo "第三个参数:${td}"
echo "参数个数:$#"
echo "参数作为字符串显示:$*"
| true |
f7c09bf57666dd7584bc9ca2ecc7cf273c98d4c8 | Shell | kakabomba/nicescripts | /linux/.proxmox-host-v-4/usr/local/bin/ntaxa-mount-worker.sh | UTF-8 | 671 | 3.4375 | 3 | [] | no_license | #!/bin/bash
mkdir /mnt/workers/
mkdir /mnt/workers/$1
echo "umounting kvm"
/usr/local/bin/ntaxa-umount-worker.sh $1
sleep 3
losetup /dev/loop6 /images/images/$1/vm-$1-disk-1.raw
kpartx -a /dev/loop6
vg=$(vgscan | grep 'Found volume group "main" using metadata type lvm2' | sed -e 's/^.*"\([^"]*\)".*$/\1/g')
echo "Foun... | true |
1751d581c11855274e67f8665b855f9e3a1098ca | Shell | edwinkost/process_era5-land | /unify_mergegrid/etc/merge_grid_africa.sh | UTF-8 | 5,864 | 2.640625 | 3 | [] | no_license |
printf "$0"
for arg in "$@"
do
printf " $arg"
done
echo
echo "Arg 0: $0"
echo "Arg 1: $1"
echo "Arg 2: $2"
echo "Arg 3: $3"
set -x
#~ esutanud@login-7:/rds/general/user/esutanud/ephemeral/meteo_arise/africa_example$ ls -lah Africa-box1/daily_after_remapcon/test_all_variables/150_arcsec/era5-land_daily*/*daily.... | true |
a197e11310ad8f5fda3655dfa55386c1a5a1479e | Shell | libcommon/template-repo-py | /build-support/docker/adduser.sh | UTF-8 | 642 | 3.703125 | 4 | [] | no_license | #!/usr/bin/env bash
set -e
. /build-support/shell/common/log.sh
if [ -z "${UID}" ]
then
error "Must set the UID environment variable"
exit 1
fi
if [ -z "${USERNAME}" ]
then
error "Must set the USERNAME environment variable"
exit 1
fi
apk add --no-cache sudo
if ! ( getent passwd "${USERNAME}" )
t... | true |
4f4866b2c635de51e4ab40b01bd375e04483d13a | Shell | mmoneib/shell-playground | /turn_based__sourced.sh | UTF-8 | 7,337 | 3.609375 | 4 | [] | no_license | #!/bin/bash
################################################################################
# Turned-Based Game Engine
#
# A backend endgine which facilitates developing turn-based games using Bash.
# The engine allows rapid development of new games by allowing the developer
# to focus on the development of the game's... | true |
a3e6b8766708f6e81e0ccb0e26d487ff61934f05 | Shell | hreese/dotfiles | /.profile | UTF-8 | 1,835 | 2.890625 | 3 | [] | no_license | # .profile
# According to bash(1), interactive login shells read and execute
# /etc/profile
# ~/.bash_profile
# ~/.bash_login
# ~/.profile
#
# Interactive shells that are note login shells, bash reads and executes
# ~/.bashrc,
# Get the aliases and functions
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it... | true |
ea1593325401ad87f4f60e08e9dc30edf6333361 | Shell | salmon4973/federatednode_build | /dist/linux/runit/mongod/run | UTF-8 | 981 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/sh
exec 2>&1
#SET LIMITS
#limit fsize unlimited unlimited
ulimit -f unlimited
#limit cpu unlimited unlimited
ulimit -t unlimited
#limit as unlimited unlimited
#limit nofile 64000 64000
ulimit -n 64000
#limit rss unlimited unlimited
ulimit -m unlimited
#limit nproc 32000 32000
ulimit -u 32000
mkdir -p /va... | true |
38bbe9ea48b387e6b33561818dca83284cefa9ea | Shell | jlanga/oari_paper | /bin/mapping.sh | UTF-8 | 1,978 | 3.90625 | 4 | [] | no_license | #!/bin/bash
set -o nounset # Prevent using undefined variables
set -o errexit # Stop the entire script if an error found
# ENV
referenceWD=data/reference # Folder with the downloaded fasta reference
indexWD=data/index # Folder with bowtie2's reference files
mappingWD=data/mapping # Folder w... | true |
22f9a22f1773b74424ff5dd43f1881857623c87d | Shell | e1399579/chat | /tests/test_connections.js | UTF-8 | 2,955 | 2.859375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
// node test_connections.js
// npm install -g ws msgpackr
// linux: export NODE_PATH=/usr/lib/node_modules/
// windows: NODE_PATH=%AppData%\npm\node_modules
const ws = require('ws');
const WebSocket = ws.WebSocket;
const msgpack = require('msgpackr');
let success = 0, fail = 0, closed = 0;
let test_num = ... | true |
30196ae1561c9b284bbe89204773364c9060c000 | Shell | gitter-badger/chos | /utils/mkchos | UTF-8 | 1,775 | 3.328125 | 3 | [
"BSD-3-Clause-LBNL"
] | permissive | #!/bin/sh
#
#
# CHOS (c) 2004, The Regents of the University of California, through
# Lawrence Berkeley National Laboratory (subject to receipt of any
# required approvals from the U.S. Dept. of Energy). All rights
# reserved.
#
# If you have questions about your rights to use or distribute this
# software, please con... | true |
6501b7c9a8c2fd55d3ffc43ae9e5e76103cd98f4 | Shell | silvijah/rackspace_api_tool | /dns.sh | UTF-8 | 2,369 | 3.5 | 4 | [] | no_license | #!/bin/bash
function dns()
{
echo -e -n "\n\n\t1 Limits
\t2 Domains
\t3 Subdomains
\t4 Records
\t5 Reverse DNS
\t----------
\t99 Main Products Menu
\t0 Exit\n\n>>>>\t"
while true
do
read DNSMENU
case $DNSMENU in
1|limits)
source ./dns.sh
limits
;;
2|domains)
source ./dns.sh
domains
;;
3|subdomai... | true |
662b51339a3bc790b2f714399576b8099bcd46b9 | Shell | andras-tim/installer-scripts | /noip2/install.sh | UTF-8 | 596 | 3.5625 | 4 | [] | no_license | #!/bin/bash -e
function cout()
{
echo -e "\n### $1..."
}
######
# MAIN
#
DIR="`pwd`"
TMP="`mktemp -d`"
cd "$TMP"
cout 'Getting source'
wget 'http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz' -O 'noip-duc-linux.tar.gz'
tar xzf 'noip-duc-linux.tar.gz'
cd `find . -type d -name 'noip-*'`
cout 'Building'
make... | true |
bd3e1ad7339b942db97335710970f9c2a97fe1c8 | Shell | BIitzkrieg/randomBash | /parseIOC | UTF-8 | 1,339 | 3.953125 | 4 | [] | no_license | #!/bin/bash
# 11/7/18
# Converts PDF's to a text file then grabs all IPs, URLs, Filenames, and Hashes it sees
echo "Checking for dependency poppler-utils, installing if not installed."
sleep 1s
rpm -qa | grep -qw poppler-utils || yum install -y poppler-utils
echo ""
echo -e "Enter the full path that contains the PDF f... | true |
ff10ead6fadaa4ce7e644cec0611489dfb947297 | Shell | mfonville/pa_gapps | /make_installerdata.sh | UTF-8 | 11,807 | 2.640625 | 3 | [] | no_license | #!/bin/sh
#This file is part of The PA GApps script of @mfonville.
#
# The PA GApps scripts are 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, either version 3 of the License, or
# (at your option) a... | true |
d7e8416d0255c311eb024764e2851bd780588562 | Shell | barclaysteven/bash-sandbox | /user-mgmt-operations | UTF-8 | 1,253 | 3.5625 | 4 | [] | no_license | #!/bin/bash
usage() {
echo "user-mgmt-operations [COMMAND] [OPTIONS]"
echo " Commands:"
echo " add-operator-admin"
echo " Options:"
echo " --username {username}"
echo " --accountName {AWS Account Name}"
echo ""
echo " remove-operator-admin"
echo " Options:"
echo " ... | true |
6c2873382d5a26a62c849f01e7d9b344e64226b3 | Shell | richRemer/gzen | /lib/repo.sh | UTF-8 | 233 | 3.171875 | 3 | [] | no_license | #!/bin/bash -e
[ -z "$GZEN" ] && echo "use gzen to run this script" 1>&2 && exit 100
[ -z "$REPO" ] && $GZEN error "Use 'gzen here' first"
[ ! -d "$REPO/.git" ] && $GZEN error "REPO '$REPO' is not a git repository"
cd "$REPO"
"$@"
| true |
ee990936a9f0aae406f691421ecf6d1c5b68d003 | Shell | Ianneo/FIA | /1503322H/LAB3BRemediation.sh | UTF-8 | 5,681 | 3.59375 | 4 | [] | no_license | #!/bin/bash
#7.1
#Set the PASS_MAX_DAYS parameter to 90 in /etc/login.defs
sudo nano /etc/login.defs
PASS_MAX_DAYS 90
#Modify user parameters for all users with a password set to match
chage --maxdays 90 <user>
#7.2
#Set the PASS_MIN_DAYS parameter to 7 in /etc/login.defs
sudo nano /etc/login.defs
#Modify user par... | true |
ef0f435134a3ed5802ca0e76d2d4dbddd252f1c5 | Shell | npmaile/GH-Actions-ShellCheck | /entrypoint.sh | UTF-8 | 354 | 3.703125 | 4 | [] | no_license | #!/bin/sh -l
EXCLUSIONS=${INPUT_EXCLUSIONS:-'^$'}
REGEX=${INPUT_FIND_REGEX:-'.*\.sh'}
pwd
echo "checking files:"
files="$(find . -regex "${REGEX}" -not -regex "${EXCLUSIONS}")"
returncode=0
for file in $files; do
echo "testing ${file}"
shellcheck "$file"
status="$?"
if [ ${status} != 0 ] ; then
returncode=${statu... | true |
7c5dd9908935e04631389a764f5eae52bbc0f954 | Shell | nathanwbrei/epsci-spack | /admin/make_new_platform_centos8.sh | UTF-8 | 1,004 | 3 | 3 | [] | no_license | #!/bin/bash
#
# This script is used to setup a singularity container and then run
# the mnp.sh script in it. The heavy lifing is done in mnp.sh.
#
# Here you can specify a compiler version that will be needed. The
# compiler should be specified here so it can be built by the
# mnp.sh script if necessary.
#
# If you wis... | true |
f0ed93107fde944c2151425c562fd596d19a439e | Shell | adsva/dotfiles | /font-scale/set-font-scale | UTF-8 | 990 | 3.625 | 4 | [] | no_license | #!/bin/bash
#Detect the name of the display in use
display=":$(ls /tmp/.X11-unix/* | sed 's#/tmp/.X11-unix/X##' | head -n 1)"
#Detect the user using such display
user="adsva"
#Detect the id of the user
uid=$(id -u $user)
# Get Current Scaling factor
SCALE=$(sudo -H -u $user DISPLAY=$display DBUS_SESSION_BUS_ADDRESS=... | true |
f269606386ec2e71b9dabe9c118721e8ce71b933 | Shell | sgalella/BashScripts | /scripts/format_text.sh | UTF-8 | 315 | 3.953125 | 4 | [
"MIT"
] | permissive | #!/bin/bash
# Get filename
IN=$1
# Check if output file exists
OUT="out.txt"
if [ -d $OUT ]
then
rm "out.txt"
fi
# Add additional newline at the end (for reading purposes)
printf "\n" >> $IN
# Append newline to output file
s=""
while IFS= read -r line
do
printf "%s " $line | tr -d '\n' >> $OUT
done < $IN
| true |
e260cac4b8e121c5c8fd28b274a6dcf36c8606de | Shell | Funlik/UNIX-Homework | /29.04.2020/configs/backup.sh | UTF-8 | 176 | 2.53125 | 3 | [
"WTFPL"
] | permissive | #!/bin/bash
if ! (curl -s wttr.in | head -n 3 | grep -i -q rain); then
killall -TSTP smbd
tar zcf /files/backup-$(date +%Y-%m-%d).tar.gz /files/*.html
killall -CONT smbd
fi
| true |
0ca843769439b9a598de56803cabe86233c834a9 | Shell | ratnaIS/Containers-on-Azure-demo | /DockerizedEncoder/Image/dockerizedencoder/docker-entrypoint.sh | UTF-8 | 2,489 | 4 | 4 | [
"MIT"
] | permissive | #!/bin/bash
if [ "$5" = '' ]; then
echo "Usage:"
echo " $0 SourceUrl StorageAccount StorageKey ContainerName TargetGUID ExpirationEpoch"
echo " SourceUrl: URI from the source file will be downloaded"
echo " StorageAccount: storage account name to store a results"
echo " StorageKey: ... | true |
4af58ef233b0f8747e91dbea90d6776a390f6089 | Shell | reeson46/Planner-reactified | /app/bin/gunicorn_start | UTF-8 | 649 | 3.125 | 3 | [] | no_license | #!/bin/bash
python manage.py collectstatic --noinput
python manage.py migrate
NAME="core"
DJANGODIR=/usr/src/app/
SOCKFILE=/usr/src/app/run/gunicorn.sock
USER=root
GROUP=root
NUM_WORKERS=3
DJANGO_SETTINGS_MODULE=core.settings
DJANGO_WSGI_MODULE=core.wsgi
echo "Starting $NAME as `whoami`"
cd $DJANGODIR
export DJA... | true |
390c34ef7cc9819f15f315473a49fca38e2e296b | Shell | Snakemake-Profiles/slurm | /tests/deploystack.sh | UTF-8 | 5,914 | 3.515625 | 4 | [
"MIT"
] | permissive | #! /bin/bash
#
# Deploy docker stack
#
# Compose file
DOCKER_COMPOSE=${DOCKER_COMPOSE:=docker-compose.yaml}
# Images
SNAKEMAKE_IMAGE=${SNAKEMAKE_IMAGE:=quay.io/biocontainers/snakemake:7.30.1--hdfd78af_0}
SLURM_IMAGE=${SLURM_IMAGE:=giovtorres/docker-centos7-slurm:20.11.8}
docker pull $SNAKEMAKE_IMAGE
docker pull $SLUR... | true |
a8f1a39fd45efa12859d7887dc68226b1219f404 | Shell | gudiandian/ElasticFlow | /ElasticFlow/scheduler/run_fig8a.sh | UTF-8 | 1,775 | 2.90625 | 3 | [
"Apache-2.0"
] | permissive | #!/bin/bash
# Figure 8(a)
schedule=("edf" "gandiva" "dlas-gpu" "themis" "ef-accessctrl" )
#placement=("elastic" "gandiva" "elastic" "elastic" "elastic")
setups=("n16g4")
jobs=("elasticVpollux_e")
echo "running..."
for setup in ${setups[@]};do
cluster_spec="cluster_specs/${setup}.csv"
for job in ${jobs[@]};do
... | true |
1b3dfc8c661bc826ba4c6a8d5bd8559bd6c03041 | Shell | prashilbhimani/PlugNSearch | /SetupScripts/archiveBashScripts/archivedScript.sh | UTF-8 | 1,056 | 3.234375 | 3 | [] | no_license |
# Step 6: Set up kafka
sudo chmod 755 kafka/kafka_main.sh
./kafka/kafka_main.sh 1
for i in `seq 1 $1`;do
kafka+=($(gcloud compute instances describe "kafka$i" |sed -n "/networkIP\:\ /s/networkIP\:\ //p"))
done
kafka_ips="$(IFS=, ; echo "${kafka[*]}")"
# Setp 7 : Set up storm
sudo chmod 755 storm/create.sh
./storm/... | true |
0e4b484699656b184302a6b30e5bd53eee8863e6 | Shell | john-aws/backendjs | /tools/bkjs-monit | UTF-8 | 5,791 | 3.34375 | 3 | [
"MIT",
"BSD-3-Clause"
] | permissive | #!/bin/bash
#
# Author: Vlad Seryakov vseryakov@gmail.com
# Sep 2013
#
case "$BKJS_CMD" in
init-monit-system)
find_bkjsbin
$ECHO "set daemon 30 with start delay 60" > /etc/monit.d/system.conf
$ECHO "check system localhost if loadavg(1min) > 5 for 10 cycles then exec \"$BKJS_BIN send-alert\"" >> /etc/m... | true |
e852ad10afa8c0377c60e5d31ae9191de91ecaf9 | Shell | hanghang2333/news-recommendation | /bin/v2.0/merge.sh | UTF-8 | 692 | 3.140625 | 3 | [] | no_license | #########################################################################
# File Name: merge.sh
# Author: HouJP
# mail: houjp1992@gmail.com
# Created Time: Wed Mar 16 17:18:21 2016
#########################################################################
#! /bin/bash
PATH_PRE="`pwd`"
PATH_NOW="`dirname $0`"
cd ${PATH_... | true |
d12ff11b1ec4ac5b38419208586ca9d10f6384d5 | Shell | diegosanchezstrange/mydotfiles | /.zshrc | UTF-8 | 1,060 | 2.53125 | 3 | [] | no_license | # If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/diego/.oh-my-zsh"
export JAVA_HOME="/usr/jdk/jdk1.8.0_191"
PATH=$HOME/mydotfiles/tmux-spotify-info:$PATH
PATH="$JAVA_HOME/bin:$PATH"
ZSH_THEME="robbyrusse... | true |
4b31e252df8c42b75fa2359682b05aaa4799fea7 | Shell | subash98/subash | /7 | UTF-8 | 189 | 3.546875 | 4 | [] | no_license | #!/bin/bash
file=$2
if test -f $file
then echo "file exist"
if grep -Fq "$1" $2
then
echo The string was found
else
echo The string was not found
fi
else
echo "file doesn't exist"
fi
| true |
c887ddd7d5271b9936b14f8928f4bc7efdd8cb40 | Shell | mgperez/spring-cloud | /spring-boot-docker/cleaning_images.sh | UTF-8 | 651 | 2.671875 | 3 | [] | no_license | #!/bin/bash
# https://gist.github.com/bastman/5b57ddb3c11942094f8d0a97d461b430
# https://linuxize.com/post/how-to-remove-docker-images-containers-volumes-and-networks/
# To remove all docker containers based on servidor:latest
# docker ps -a | awk '{ print $1,$2 }' | grep servidor | awk '{print $1 }' | xargs -I {} doc... | true |
d903446bc730eddd0bc868706a5c8c16a9803fa1 | Shell | Link-Start/Tools | /__AutoPackageScript | UTF-8 | 7,418 | 3.75 | 4 | [
"MIT"
] | permissive | #!/bin/sh
# 使用方法:
# step1: 将该脚本放在工程的根目录下(跟.xcworkspace文件or .xcodeproj文件同目录)
# step2: 根据情况修改下面的参数
# step3: 打开终端,执行脚本。(输入sh ,然后将脚本文件拉到终端,会生成文件路径,然后enter就可)
# =============项目自定义部分(自定义好下列参数后再执行该脚本)=================== #
#APP名称 导出的ipa包名称
app_name="app__nmae_测试"
# 是否编译工作空间 (例:若是用Cocopods管理的.xcworkspace项目,赋值true;用Xcode默认创建... | true |
38cf6c2469722870f756a4eca34154d9fa0da36b | Shell | stajichlab/Afum_popgenome | /variantcall/pipeline/01_aln_evol20.sh | UTF-8 | 1,472 | 3.265625 | 3 | [] | no_license | #!/usr/bin/bash
#SBATCH --mem 8G --ntasks 8 --nodes 1 -J evol20.Afum --out logs/Afum_Evol20.bwa.%a.log --time 8:00:00
module load bwa/0.7.17
module unload java
module load java/8
module load picard
CENTER=UCR
GENOME=genome/Af293
GENOMESTRAIN=Af293
INDIR=input/UCR_FC548
TOPOUTDIR=aln
mkdir -p $TOPOUTDIR
TEMP=/scratc... | true |
d91c66ba7546d31cda02a95c988a846ec553151d | Shell | whisshe/workshell | /config/cron_dep/cron_shell/cron_status.sh | UTF-8 | 225 | 2.921875 | 3 | [] | no_license | #!/bin/bash
status=$(cat /tmp/cron-st)
if [ $status -lt 1 ];then
echo "*/15 * * * * /tmp/mem_free.sh" >> /var/spool/cron/crontabs/root
exit 0
else
echo -e "\033[31mcrontab is already added\033[0m"
exit 0
fi
| true |
7357fa225a1173542e109816696fbb5f92c2fc26 | Shell | jsonn/pkgsrc | /lang/openjdk8/patches/patch-common_autoconf_generated-configure.sh | UTF-8 | 9,534 | 2.9375 | 3 | [] | no_license | $NetBSD: patch-common_autoconf_generated-configure.sh,v 1.12 2017/05/10 13:59:57 ryoon Exp $
BOOT_JDK_VERSION part: pkg/51221 (Build error with OpenJDK8 and i386)
--- common/autoconf/generated-configure.sh.orig 2016-10-26 22:56:42.000000000 +0000
+++ common/autoconf/generated-configure.sh
@@ -8454,9 +8454,9 @@ done
... | true |
05685822a3e8dc1960627d875930e9d72a29df25 | Shell | rbarzic/MAGICAL | /test/run.sh | UTF-8 | 2,667 | 3.109375 | 3 | [
"BSD-3-Clause"
] | permissive | ##
# @file run.sh
# @author Yibo Lin
# @date Dec 2018
#
#!/bin/bash
# get script directory instead of execution directory
TOP_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
if [ -e "${TOP_SCRIPT_DIR}/color.sh" ]; then
source ${TOP_SCRIPT_DIR}/color.sh
fi
if [ ! -n "$1" ]
then
ec... | true |
83630b369882d1d8f50b24438f0aebd0f8daeb36 | Shell | bioconda/bioconda-recipes | /recipes/mmult/build.sh | UTF-8 | 301 | 2.625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
export CFLAGS="-I$PREFIX/include -I$PREFIX/include/eigen3"
export LDFLAGS="-L$PREFIX/lib"
export CPATH=${PREFIX}/include
cd "$SRC_DIR"
autoreconf -i
./configure CPPFLAGS="-I${PREFIX}/include -I${PREFIX}/include/eigen3" LDFLAGS="-L${PREFIX}/lib" --prefix=$PREFIX
make
make install -C src
| true |
5745e5acbac8ae0b68bd693a4f3b87df5f0d358a | Shell | gummi-stack/gummi-git-hook | /pre-receive | UTF-8 | 2,897 | 3.53125 | 4 | [] | no_license | #!/bin/bash
# flush STDIN coming from git; we have no use for that info in this hook but
# if you don't do this, git-shell sometimes dies of a signal 13 (SIGPIPE)
#[ -t 0 ] || cat >/dev/null
PATH=/usb/bin/:$PATH
APIURL="http://192.168.13.7:9001"
APIKEY="cM7I84LFT9s29u0tnxrvZaMze677ZE60" #test only
set -e
status() {
... | true |
2e7b037222b1b69828178b84d38e8c48765cabd0 | Shell | jdotw/Lithium | /util/checkin_all.sh | UTF-8 | 286 | 3.296875 | 3 | [] | no_license | #! /bin/sh
echo "=============================================================="
for i in *
do
if test -d $i; then
cd $i
echo "Checking in $i (Message: $1)"
svn commit -m "$1"
echo "=============================================================="
cd ..
fi
done
| true |
6c001aa3ce5b198492823a30142b490231fbe98e | Shell | andtherand/dotfiles | /system/.function_network | UTF-8 | 717 | 3.734375 | 4 | [] | no_license | #!/usr/bin/env bash
# Webserver
srv() {
local DIR=${1:-.}
local AVAILABLE_PORT=$(get-port)
local PORT=${2:-$AVAILABLE_PORT}
if [ "$PORT" -le "1024" ]; then
sudo -v
fi
open "http://localhost:$PORT"
superstatic "$DIR" -p "$PORT"
}
# Get IP from hostname
hostname2ip() {
ping -c 1 "$1" | egrep -m1 -... | true |
88bcca3085b6391c2fccb613862aa7bd49d2fc31 | Shell | BigNerd95/Grandstream-Firmware-HT802 | /FirmwareDumps/HT802-1.0.10.6/etc/rc.common | UTF-8 | 657 | 3.4375 | 3 | [] | no_license | #!/bin/sh
NFS=0
if [ "`grep \"\/dev\/root\" /etc/mtab | grep nfs`" ]; then
NFS=1
fi
FACTORY_MODE=0
DEV_MAC="`cat /proc/gxp/dev_info/dev_mac 2>/dev/null|tr '[A-Z]' '[a-z]' |tr -d ':'|cut -c7-12`"
if [ "${DEV_MAC}" = "000000" ]; then
# :factorymac enables the ate built into the aplication
#nvram... | true |
836b8e88d6cde0602029177ac0f7600338cbc31d | Shell | Keyang/openadv | /Infrastructure/bin/waitPodReady.sh | UTF-8 | 282 | 3.203125 | 3 | [] | no_license | #!/bin/bash
echo "Wait Pod with name ${1} in Project ${2}"
sleep 5
while : ; do
echo "Checking if ${1} is Ready..."
oc get pod -n $2 | grep $1 | grep -v build | grep -v deploy |grep "1/1.*Running"
[[ "$?" == "1" ]] || break
echo "...no. Sleeping 10 seconds."
sleep 10
done | true |
56279dc135c75772624031623adae259f618e076 | Shell | jht0664/Utility_python_gromacs | /python/dnum-avg-lj.sh | UTF-8 | 728 | 3.265625 | 3 | [
"MIT"
] | permissive | #!/bin/bash
# make average 1d-number profile from .dnums file
# $1 : begin frame
# $2 : tolerance for block avg
i1="a"
i2="b"
inputgen=".dnums.align"
avggen=".dnums"
input1=$i1$inputgen
avg1=$i1$avggen
output1=$i1$outputgen
input2=$i2$inputgen
output2=$i2$outputgen
avg2=$i2$avggen
if [ -f "$input1" ]
then
ec... | true |
fc49de1e6ffbf3f4a2897af747ea8a854f6f5a35 | Shell | Chromico/zip-uitility-GCI | /zip-utility.sh | UTF-8 | 933 | 3.484375 | 3 | [] | no_license | #!/bin/bash
clear
figlet ZIP-UTILITY
echo "Version 1.0"
echo "Press Enter to continue or Press CTRL-C to exit"
read al
echo 'Installing Requirements....'
echo .
echo .
apt install python3
apt install python3-pip
echo Requirements Installed....
echo Press Enter To Continue...
read upd
clear
figlet ZIP-UTILITY
echo "Vers... | true |
fb7b43484dd0d2f13c9c965d06dedffc09cb24b0 | Shell | dunnkers/roosters-api | /.openshift/cron/daily/update | UTF-8 | 166 | 2.703125 | 3 | [] | no_license | #!/bin/bash
if [[ $(date +%u) -eq 6 ]]; then
echo "`date +%A`. Updating...";
/usr/bin/node $OPENSHIFT_REPO_DIR/update.js
else
echo "`date +%A`. Not updating.";
fi | true |
f0c49448b91a0e7ec997e19627e8554efeea4d66 | Shell | pfernandez/Stardisks | /public_html/cgi-bin/getKojiValues.bk | UTF-8 | 14,471 | 3.640625 | 4 | [] | no_license | #!/bin/bash
#
# Returns values based on input arguments. The first argument is the absolute
# /path/to/folder of the pertinient data, the second is the name of a function below.
#
# NOTE: not all of the functions below have been tested to work, because all of the
# references to the 'fact' and 'polyout' file were chang... | true |
3d90cb3831cf9278cd069710795e4a3543e06d61 | Shell | trodemaster/timelapse-tools | /archive_webcam | UTF-8 | 1,386 | 2.9375 | 3 | [] | no_license | #!/usr/bin/env bash
#set -euo pipefail
#IFS=$'\n\t'
#shopt -s nullglob
#shopt -s nocaseglob
dl_verify_jpeg () {
curl -s $1 -o $2
until [[ $(/usr/bin/jpeginfo -c $2 | grep -e OK) ]]; do
if [[ $RETRY_COUNT -eq 5 ]]; then
echo "Failed to download after 5 tries..."
fi
echo bad jpeg found $2 attempting redownload... | true |
8e1cf475bd8a8945ba90bb6854c7adecbbf30813 | Shell | kqwyf/ScriptsForWork | /completions/cancel-completion.bash | UTF-8 | 478 | 2.890625 | 3 | [] | no_license | #!/bin/bash
_cancel_completions() {
local truncated_line=(${COMP_LINE:0:$COMP_POINT})
local job_name_list=$(squeue -o '%64j' -u $(whoami) | tail -n +2 | awk '{print $1;}')
local job_id_list=$(squeue -o '%64i' -u $(whoami) | tail -n +2 | awk '{print $1;}')
local completion_list=$(echo ${job_name_list} $... | true |
9c98a45ed90bb300f3c13d136c212b60dbbf0b52 | Shell | ARM64Darwin1820/BetterRes | /install.sh | UTF-8 | 5,406 | 3 | 3 | [] | no_license | MODEL=$(uname -m)
case ${MODEL} in
iPhone6,1 | iPhone6,2 | iPhone8,4)
X=640 Y=1136;;
iPhone7,2 | iPhone8,1 | iPhone9,1 | iPhone9,3 | iPhone10,1 | iPhone10,4)
X=750 Y=1334;;
iPhone7,1 | iPhone8,2 | iPhone9,2 | iPhone9,4 | iPhone10,2 | iPhone10,5)
X=1242 Y=2208;;
iPhone10,3 | iPhone10,6 | iPhone11,2)
... | true |
d04b84ef06f39973b0bb8bad98845951a0e13f47 | Shell | rankun203/ModernWebStudy | /shell/max.sh | UTF-8 | 291 | 3.8125 | 4 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# 创建一个 shell 脚本, 它从用户那里接收 10 个数, 并显示已输入的最大的数
read max
i=1
while [ ${i} -lt 10 ]; do
read val
if [ ${val} -gt ${max} ]; then
max=${val}
fi
i=`expr ${i} + 1`
done
echo "Max number is ${max}"
| true |
915e4bd59143537d88e3a6eb306535f08665ec4e | Shell | apollo-black/dev-vm | /setup.sh | UTF-8 | 8,036 | 3.09375 | 3 | [
"MIT"
] | permissive | #!/bin/bash
echo "# -------------------------------- #"
echo "# Apollo Ruby VM Install #"
echo "# -------------------------------- #"
mkdir /home/vagrant/downloads
sudo su -c "echo \"vagrant ALL=(ALL) NOPASSWD:ALL\" > /etc/sudoers.d/vagrant"
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get -y inst... | true |
a32126a62d7b9261cb3582aa3abe0c2952c19465 | Shell | AlixBernard/DST | /reducer.sh | UTF-8 | 384 | 3.296875 | 3 | [
"MIT"
] | permissive | #!/bin/bash
lastkey=""
count=0
while read line; do
this_key="$(echo ${line} | awk '{print $1}')"
value="$(echo ${line} | awk '{print $2}')"
count="$(expr ${count} + 1)"
if [ "${last_key}" != "${this_key}" ]; then
if [ "${last_key}" != "" ]; then
echo "${last_key} ${count}"
... | true |
2fd967c3f6fcae74af129def1f136b6e988f35ab | Shell | RyanTech/yueji | /tools/study/linux/script/yueji/switch.datasource.connection.info.sh | UTF-8 | 2,035 | 3.359375 | 3 | [] | no_license | #!/bin/bash
export LANG=en_US.UTF-8
base='/yueji'
#base='/home/tianliang/workspace'
cd $base
echo `pwd`
echo "找到含有master的配置文件:"
find . -maxdepth 3 -name '*.datasource.properties*' |xargs grep master -l
echo ""
echo "找到含有slave的配置文件:"
find . -maxdepth 3 -name '*.datasource.properties*' |xargs grep slave -l
echo ""
echo... | true |
3d6e4dbba90fc51e0bb532dd5f1fa682bcccda45 | Shell | Twitter-R01/TwitterR01 | /generatemodel.sb | UTF-8 | 690 | 2.515625 | 3 | [] | no_license | #!/bin/bash
#SBATCH -N 2
#SBATCH -p RM
#SBATCH -t 48:00:00
#SBATCH -J model_gen
echo Start time:
date +"%D %T"
# Load the correct version of python
module load anaconda3
source activate bertweet
# Navigate to your TwitterR01 directory, the folder with generate_model.py in it
cd /jet/home/bakerw/thesis_research/Twitt... | true |
8a1da3f40809a059e95ce7546e83b3ae442be3bd | Shell | jopmas/scripts | /zip_plots.sh | UTF-8 | 253 | 2.78125 | 3 | [] | no_license | dirout=${PWD##*/}
echo $dirout
cd ../
# DIRNAME=${PWD##*/}
# cd $dirout
# echo "Zipping $DIRNAME directory..."
# zip $DIRNAME'_imgs.zip' *.png
# zip $DIRNAME'_videos.zip' *.mp4
# zip $DIRNAME'_gifs.zip' *.gif
# # rm *.png
# echo "Zipping completed!" | true |
25873b01725a6379c26d4d480bcdac56585399c4 | Shell | happy-bubbles/ble_button | /nrf_sdk/gcc/build_with_softdevice | UTF-8 | 697 | 3.203125 | 3 | [] | no_license | #!/bin/sh
make
res=$?
if [ "$res" -ne "0" ]
then
echo "BAD MAKE"
exit 5
fi
serial=$1
size=${#serial}
if [ "$size" -ne "8" ]
then
echo "bad serial"
exit 5
fi
s1=${serial:0:2}
s2=${serial:2:2}
s3=${serial:4:2}
s4=${serial:6:2}
printf \\x$s1\\x$s2\\x$s3\\x$s4 > serial
# take off last newline char fro... | true |
950c13e042681ad952e710f4e3e74cd207dc2830 | Shell | hypnoglow/macOS-bootstrap | /scripts/defaults.sh | UTF-8 | 2,205 | 2.71875 | 3 | [
"MIT"
] | permissive | #!/usr/bin/env bash
# This file contains automated macOS system preferences configuration.
# TODO: make it conditional, and execute `killal {Dock/Finder}` only if there
# were changes.
#
# Also see: https://macos-defaults.com
#
# System Preferences
#
# System Preferences > General
# Ask to keep changes when closing ... | true |
a1622c5ce942819782bc1344515b81a355ec355d | Shell | stickpro/dots | /scripts/polybar/btc_price_coinm.sh | UTF-8 | 162 | 2.609375 | 3 | [] | no_license | #!/bin/sh
DATA=$(curl -s 'https://api.coinmarketcap.com/v2/ticker/' | jq -r '.data ."1" .quotes .USD .price' | cut -c 1-9)
echo $DATA
#printf '%0.3f\n' $DATA
| true |
7bcc76813176a4c80ff52c906f396cb23ff7b7a3 | Shell | Undomyr/aryalinux | /applications/linux-pam.sh | UTF-8 | 5,107 | 2.921875 | 3 | [] | no_license | #!/bin/bash
set -e
set +h
. /etc/alps/alps.conf
. /var/lib/alps/functions
SOURCE_ONLY=n
DESCRIPTION="br3ak The Linux PAM package containsbr3ak Pluggable Authentication Modules used to enable the local systembr3ak administrator to choose how applications authenticate users.br3ak"
SECTION="postlfs"
VERSION=1.3.0
NAME=... | true |
c62356764fbe279dea21f6b4db4641afa9ff5819 | Shell | paulgalow/CreateOSXSystemReport | /Create OS X System Report.app/Contents/Resources/script | UTF-8 | 417 | 2.796875 | 3 | [] | no_license | #!/bin/bash -l
echo "OS X System Report is being created..."
cd $TMPDIR
system_profiler -xml > System\ Report.spx
echo "Compressing report..."
tar -czf System\ Report.tar.gz System\ Report.spx
mv System\ Report.tar.gz ~/Desktop/
rm System\ Report.spx
echo "PROGRESS:100"
echo "System Report.tar.gz has been created on yo... | true |
338eec7395c1df3fd69a52bbcfd1276b16515954 | Shell | mikelh/oyo-hacking | /rootfs/mnt/etc/apmd_proxy | UTF-8 | 9,685 | 3.453125 | 3 | [] | no_license | #!/bin/sh
#
# apmd_proxy - program dispatcher for APM daemon
# Craig Markwardt (craigm@lheamail.gsfc.nasa.gov) 21 May 1999
# David Brownell (db@post.harvard.edu) 9 June 1999
#
# This shell script is called by the APM daemon (apmd) when the state
# of any power management function has changed. The exact events that
# ... | true |
115314f73bbfdb14918bc6cb84006514f52c8253 | Shell | ishtiaque05/dotfiles | /recipes/ruby.sh | UTF-8 | 1,498 | 3.21875 | 3 | [] | no_license | #!/usr/bin/env bash
set -e
set -o pipefail
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install g... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.