Skip to content

Instantly share code, notes, and snippets.

Phillip Moore realpdm

Block or report user

Report or block realpdm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View logging.config
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' ,
View fixssh
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
@realpdm
realpdm / gist:605dcf48df231939a06c15b72eed7021
Created Jun 22, 2017
6.2.x options that 7.1.x doesn't recognize
View gist:605dcf48df231939a06c15b72eed7021
'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'
View gist:9c96260b70ade776f55526429fec658f
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
View Has weird right-to-left characters.txt
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶
@realpdm
realpdm / .zsh func psg
Created Mar 19, 2015
Making tmux find ssh agent on reattach
View .zsh func psg
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
}
You can’t perform that action at this time.