Skip to content

Instantly share code, notes, and snippets.

@realpdm
realpdm / .zsh func psg
Created March 19, 2015 18:14
Making tmux find ssh agent on reattach
fixssh() {
for key in SSH_AUTH_SOCK SSH_CONNECTION SSH_CLIENT; do
if (tmux show-environment | grep "^${key}" > /dev/null); then
value=`tmux show-environment | grep "^${key}" | sed -e "s/^[A-Z_]*=//"`
export ${key}="${value}"
fi
done
}
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@realpdm
realpdm / gist:9c96260b70ade776f55526429fec658f
Created June 21, 2017 16:19
7.1.x docs build problems
Running Sphinx v1.3.1
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: 461 added, 0 changed, 0 removed
/home/pmoore/rpmbuild/BUILD/trafficserver-7.1.0/doc/ext/traffic-server.py:95: DeprecationWarning: docutils.nodes.Element.set_class deprecated; append to Element['classes'] list attribute directly
title.set_class('ts-cv-title')
/home/pmoore/rpmbuild/BUILD/trafficserver-7.1.0/doc/ext/traffic-server.py:221: DeprecationWarning: docutils.nodes.Element.set_class deprecated; append to Element['classes'] list attribute directly
title.set_class('ts-stat-title')
/usr/lib/python2.6/site-packages/sphinx/ext/todo.py:50: DeprecationWarning: make_admonition is deprecated, use docutils.parsers.rst.directives.admonitions.BaseAdmonition instead
@realpdm
realpdm / gist:605dcf48df231939a06c15b72eed7021
Created June 22, 2017 19:13
6.2.x options that 7.1.x doesn't recognize
'proxy.config.admin.autoconf_port'
'proxy.config.http.share_server_sessions'
'proxy.config.http.cache.when_to_add_no_cache_to_msie_requests
'proxy.config.log.custom_logs_enabled'
'proxy.config.log.squid_log_enabled'
'proxy.config.log.squid_log_is_ascii'
'proxy.config.log.squid_log_name'
'proxy.config.log.squid_log_header'
'proxy.config.log.common_log_enabled'
'proxy.config.log.common_log_is_ascii'
cat .zsh/func/fixssh
fixssh() {
for key in SSH_AUTH_SOCK SSH_CONNECTION SSH_CLIENT; do
if (tmux show-environment | grep "^${key}" > /dev/null); then
value=`tmux show-environment | grep "^${key}" | sed -e "s/^[A-Z_]*=//"`
export ${key}="${value}"
fi
done
remove_healthcheck = filter.reject('%<cquup> MATCH /healthcheck')
json_fmt = format {
Format = '{\"chi\":\"%<chi>\",\"chp\":\"%<chp>\",\"hii\":\"%<hii>\",\"caun\":\"%<caun>\",\"cqtn\":\"%<cqtn>\",\"cqhm\":\"%<cqhm>\",\"cquuc\":\"%<cquuc>\",\"cqtx\":\"%<cqtx>\",\"shi\":\"%<shi>\",\"php\":\"%<php>\",\"pqsi\":\"%<pqsi>\",\"pqsp\":\"%<pqsp>\",\"pssc\":\"%<pssc>\",\"pscl\":%<pscl>,\"sssc\":\"%<sssc>\",\"sscl\":%<sscl>,\"cqbl\":%<cqbl>,\"pqbl\":%<pqbl>,\"cqhl\":%<cqhl>,\"pshl\":%<pshl>,\"pqhl\":%<pqhl>,\"sshl\":%<sshl>,\"ttms\":%<ttms>,\"phr\":\"%<phr>\",\"cfsc\":\"%<cfsc>\",\"pfsc\":\"%<pfsc>\",\"crc\":\"%<crc>\",\"cquuh\":\"%<cquuh>\",\"sshcl\":\"%<{Content-Length}ssh>\",\"pshce\":\"%<{Content-Encoding}psh>\",\"cqhcl\":\"%<{Content-Length}cqh>\",\"via\":\"%<{Via}ssh>\"}'
}
log.ascii {
Format = json_fmt,
Filename = 'json.log' ,