Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am tml on github.
  • I am tml (https://keybase.io/tml) on keybase.
  • I have a public key whose fingerprint is 6A6F 1772 9604 4CEB 9AD1 B003 6757 45F0 8555 A11E

To claim this, I am signing this object:

set ts=4
set sm
set wraplen=150
set nowrapscan
[alias]
co = checkout
ci = commit -a
br = branch
me = merge --no-ff
undo = reset --hard ORIG_HEAD
st = status
stat = status
up = pull --rebase
unstage = reset HEAD --
@tml
tml / in vhost definition
Created March 12, 2018 06:25
Trivial solution
SetEnvIf User-Agent secret_sauce let_me_in
<Directory /srv/www/vhosts/SOMEDOMAIN.TLD>
Deny from all
Allow from env=let_me_in
</Directory>
if ($type == MAGIC_URL_EMAIL)
{
$html = "$whitespace<!-- $tag --><a$class href='$url'>$text</a><!-- $tag -->$append";
}
else
{
$html = "$whitespace<!-- $tag --><a$class href='$url' onclick='window.open(this.href);return false;'>$text</a><!-- $tag -->$append";
}
if ($type == MAGIC_URL_EMAIL)
{
$html = "$whitespace<!-- $tag --><a$class href='$url'>$text</a><!-- $tag -->$append";
}
else
{
$html = "$whitespace<!-- $tag --><a$class href='$url' onclick='window.open(this.href);return false;'>$text</a><!-- $tag -->$append";
}
return $html;
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
This is the gist used for the Adobe Summit labs
ex1 https://www.youtube.com/watch?v=mIlI2T_GXM8&feature=youtu.be
ex2 https://www.youtube.com/watch?v=TtP71cZ3zBo&feature=youtu.be
ex3 https://www.youtube.com/watch?v=Cemp0J34LTM&feature=youtu.be
locale/en/LC_MESSAGES:
-rw-rw-r-- 1 joey joey 67 May 20 10:38 template.mo
-rw-rw-r-- 1 joey joey 28 May 20 10:37 template.po
template.po:
msgid "foo"
msgstr "foobar"
locale/it/LC_MESSAGES:
https://blogs.msdn.microsoft.com/scottdensmore/2004/05/25/why-singletons-are-evil/
http://steve.yegge.googlepages.com/singleton-considered-stupid
http://googletesting.blogspot.com/2008/11/clean-code-talks-global-state-and.html
https://www.alainschlesser.com/singletons-shared-instances/
http://misko.hevery.com/2008/08/17/singletons-are-pathological-liars/