Skip to content

Instantly share code, notes, and snippets.

Joey Smith tml

Block or report user

Report or block tml

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 gettext example
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:
View summit-lab-notes
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
View gist:c17962c716e6f5d007ac1c7939ba93db
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
View functions_content.php Excerpt
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;
View functions_content.php Excerpt
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";
}
View in vhost definition
SetEnvIf User-Agent secret_sauce let_me_in
<Directory /srv/www/vhosts/SOMEDOMAIN.TLD>
Deny from all
Allow from env=let_me_in
</Directory>
View .gitconfig
[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 --
View .exrc
set ts=4
set sm
set wraplen=150
set nowrapscan
View keybase.md

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:

View visitor.js
function parse(str) {
var ir = Packages.jdk.nashorn.internal.ir;
var runtime = Packages.jdk.nashorn.internal.runtime;
var parser = Packages.jdk.nashorn.internal.parser;
var context = runtime.Context.getContext();
var source = new runtime.Source('test', str);
var node = new parser.Parser(context.getEnv(), source, new runtime.Context.ThrowErrorManager(), true).parse();
var lexContext = new ir.LexicalContext();
You can’t perform that action at this time.