I hereby claim:
- I am DanBennettUK on github.
- I am danbennett (https://keybase.io/danbennett) on keybase.
- I have a public key whose fingerprint is CE96 EF85 FDB5 482E EB00 3BD8 910D 8561 C851 00C4
To claim this, I am signing this object:
#!/bin/bash | |
IP_LOOKUP="$(ip route get 8.8.8.8 | awk '{ print $NF; exit }')" # May not work for VPN / tun0 | |
IPv6_LOOKUP="$(ip -6 route get 2001:4860:4860::8888 | awk '{ print $10; exit }')" # May not work for VPN / tun0 | |
IP="${IP:-$IP_LOOKUP}" # use $IP, if set, otherwise IP_LOOKUP | |
IPv6="${IPv6:-$IPv6_LOOKUP}" # use $IPv6, if set, otherwise IP_LOOKUP | |
DOCKER_CONFIGS="/home/pi/pihole/config" # Default of directory you run this from, update to where ever. | |
echo "IP: ${IP} - IPv6: ${IPv6}" | |
# Remove current if exists (for use in updating Pihole) |
#!/bin/bash | |
urlsFile=/tmp/urls.txt | |
resultsFile=/tmp/results.csv | |
urlAppend="theme/upgrade.txt" | |
# Remove results file if already exists | |
if [ -f $resultsFile ] ; then | |
rm $resultsFile | |
fi |
source $VIMRUNTIME/vimrc_example.vim | |
source $VIMRUNTIME/mswin.vim | |
behave mswin | |
set diffexpr=MyDiff() | |
function MyDiff() | |
let opt = '-a --binary ' | |
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif | |
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif | |
let arg1 = v:fname_in |
ZSH_THEME="gentoo" | |
# Speed up GIT | |
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}${ZSH_THEME_GIT_PROMPT_CLEAN}${ZSH_THEME_GIT_PROMPT_SUFFIX}" | |
} |
public static function type_config_form($mform, $classname = 'repository') { | |
parent::type_config_form($mform); | |
$strrequired = get_string('required'); | |
$mform->addElement('text', 'access_key', get_string('access_key', 'repository_s3')); | |
$mform->setType('access_key', PARAM_RAW_TRIMMED); | |
$mform->addElement('text', 'secret_key', get_string('secret_key', 'repository_s3')); | |
$mform->setType('secret_key', PARAM_RAW_TRIMMED); | |
$mform->addElement('text', 'endpoint', get_string('endpoint', 'repository_s3')); | |
$mform->setType('endpoint', PARAM_RAW_TRIMMED); | |
$mform->setDefault('endpoint', 's3.amazonaws.com'); |
I hereby claim:
To claim this, I am signing this object: