one-liner to start a Concourse

helm upgrade --install --namespace concourse concourse --set imageTag=5.6.0,secrets.localUsers="leuser:lepass",web.ingress.enabled=true,web.ingress.hosts="{concourse.cluster.domain}",web.kubernetes.keepNamespace=true,rbac.create=true --set web.env[0].name="CONCOURSE_KUBERNETES_NAMESPACE_PREFIX",web.env[0].value="concourse-",web.env[1].name="CONCOURSE_MAIN_TEAM_LOCAL_USER",web.env[1].value="leuser",web.env[2].name="CONCOURSE_EXTERNAL_URL",web.env[2].value="https://concourse.cluster.domain" stable/concourse

hammer some resource via free proxies

#!/usr/bin/env python3
import sys,requests,time
from bs4 import BeautifulSoup

proxies = None
if(len(sys.argv)==2 and sys.argv[1]=='r'):
    temp = sys.stdout
    sys.stdout = open('proxies.txt','w')
    res = requests.get('', headers={'User-Agent': 'Mozilla/5.0 (Macintosh) Firefox', 'Referer': ''})
    soup = BeautifulSoup(res.text,"lxml")
    for items in"tbody tr"):
        proxies = ':'.join([item.text for item in"td")[:2]])
    sys.stdout = temp

url = ''
h = {'User-Agent': 'Mozilla/5.0', 'Cookie': 'PHPSESSID=blabla', 'X-Requested-With': 'XMLHttpRequest', 'Referer': ''}
d = {'somefield': 'somevalue', 'other': 'value'}

with open('proxies', 'r') as f:
    proxies =
for p in proxies:
        response =, headers=h, data=d, proxies={"http": p, "https": p}, timeout=5)
        print(response.status_code, response.text)
    except (requests.exceptions.RequestException, requests.exceptions.Timeout) as e:
        response =, headers=h, data=dd, proxies={"http": p, "https": p}, timeout=5)
        print(response.status_code, response.text)
    except (requests.exceptions.RequestException, requests.exceptions.Timeout) as e:

now that Yahoo is shutting down

Thought I’d check just how old my account is

#!/usr/bin/env python3
from yahoo_oauth import OAuth1
oauth = OAuth1(None, None, from_file='yahoo_credentials.json')
from myql import MYQL
yql = MYQL(format='xml', oauth=oauth)
response = yql.raw_query('select * from social.profile where guid=me')
import xml.etree.ElementTree as ET
r = ET.fromstring(response.content)
for a in r.iter('memberSince'):
print(a.tag, a.text)

memberSince 1998-08-24T17:51:40Z

Yahoo launched in 1998, I was probably user #3 or so

my .bash_profile

shopt -s checkwinsize
shopt -s histappend
shopt -s cmdhist
PROMPT_COMMAND='history -a'
alias mc='caffeinate -i mc -d'
export CLICOLOR=1
export EDITOR='/usr/local/bin/joe'
complete -C aws_completer aws
eval "$(~/repos/rakudobrew/bin/rakudobrew init -)"
eval "$(rbenv init -)"

find maxdepth

$ perl -e 'use File::Find; find (sub { $d=$File::Find::dir=~tr[/][]; return if $d>6; if (-f and /config.xml/) {open $f,"<",$_; @a=<$f>; close $f; @m = grep /some string/i @a; print "\nfound in ",$File::Find::name,"\n",@m if @m} },"/opt/hudson/work/jobs")'

reconf service using only cmd

Fixing Zabbix on a bunch of Windows machines with local accounts

for /F "tokens=1-3 delims=," %%A in (zz.list) do (
 echo %%A %%B %%C
 net use "\\\C$" %%C /user:%%A\%%B
 xcopy /q /y "\\\C$\Program Files (x86)\Zabbix Agent\zabbix_agentd.conf"
 net use "\\\C$" /delete
 net use "\\\IPC$" %%C /user:%%A\%%B
 sc \\ stop "Zabbix Agent"
 sc \\ start "Zabbix Agent"
 net use "\\\IPC$" /delete

and HostnameItem=system.hostname[host] in conf

throttle local e-mails (prevent alert floods)

thrttl unix - - n - - smtp -o syslog_name=smtp-throttled
thrttl_destination_rate_delay = 10s
thrttl_destination_concurrency_limit = 1
thrttl_destination_recipient_limit = 2
transport_maps = regexp:/etc/postfix/transport
/\@mydomain\.com$/ thrttl:

Bad Behavior has blocked 95 access attempts in the last 7 days.