Skip to content

Instantly share code, notes, and snippets.

View jsjohnst's full-sized avatar

Jeremy Johnstone jsjohnst

View GitHub Profile
<h2>Apple Developer Program</h2>
<div class="bigwarning">
<img src="https://devimages.apple.com.edgekey.net/global/elements/registration/images/icon_alertwarningbig.png" class="left" width="58" height="59" alt="Big Warning">
<p>
</p><h2>We are unable to process your request.</h2>
<p></p>
<p>Please go back to the previous page, or quit your browser and try your request again.<br>
If you require assistance, please contact <a href="/contact/">Apple Developer Support</a>.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>Description</key>
<string>QuickTime MPEG2 [6748520]</string>
<key>Predicate</key>
<string>( SUBQUERY( packages, $p, $p.identifier BEGINSWITH &quot;com.apple.pkg.QuickTimeMPEG2&quot; &amp;&amp; $p.version BEGINSWITH &quot;6.4.1&quot; ).@count != 0 )</string>
</dict>
$ sudo dtrace -n 'io:::start /!(args[0]->b_flags & B_READ) && execname == "launchd"/ { trace(execname); stack(); }'
dtrace: description 'io:::start ' matched 1 probe
CPU ID FUNCTION:NAME
8 992 buf_strategy:start launchd
mach_kernel`buf_strategy+0x3a5
mach_kernel`VNOP_STRATEGY+0x2e
mach_kernel`buf_bwrite+0x1b6
mach_kernel`hfs_vnop_bwrite+0x131
mach_kernel`VNOP_BWRITE+0x2e
mach_kernel`journal_start_transaction+0xcbb
Your request is about like handing the keys to your home to a locksmith and saying
"why don't these open the lock?". They certainly look like good "keys" you have
above, but without seeing the lock I can't tell you why they don't work, if that makes sense.
@jsjohnst
jsjohnst / pecl_install_steps.txt
Created February 29, 2012 05:19
Steps for getting PECL OAuth (or any PECL package really) install on OS Lion 10.7.3 with Xcode 4.3+ (requires CLI tools to be installed already)
1) install PEAR / PECL
$ cd /usr/lib/php
$ sudo php install-pear-nozlib.phar
2) install autoconf 2.13 via homebrew
either pull from me here: https://github.com/jsjohnst/homebrew
or
$ cd /usr/local/Library/Formula/
$ vi autoconf.rb
$ brew install -v nmap
==> Downloading http://nmap.org/dist/nmap-5.51.tar.bz2
File already downloaded in /Users/jsjohnst/Library/Caches/Homebrew
/usr/bin/tar xf /Users/jsjohnst/Library/Caches/Homebrew/nmap-5.51.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/nmap/5.51 --without-zenmap
./configure --prefix=/usr/local/Cellar/nmap/5.51 --without-zenmap
checking whether NLS is requested... yes
checking build system type... x86_64-apple-darwin11.3.0
checking host system type... x86_64-apple-darwin11.3.0
checking for gcc... /usr/bin/clang
host:~ jsjohnst$ brew upgrade
==> Upgrading 12 outdated packages, with result:
libgcrypt 1.5.0, libtasn1 2.11, gnutls 2.12.16, jpeg 8d, libtiff 3.9.5, imagemagick 6.7.1-1, intltool 0.50.0, libidn 1.23, mongodb 2.0.2-x86_64, nmap 5.51, pcre 8.21, wget 1.13.4
==> Upgrading libgcrypt
==> Downloading ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2
File already downloaded in /Users/jsjohnst/Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/libgcrypt/1.5.0 --disable-asm --with-gpg-error-prefix=/usr/local
==> make
make all-recursive
Making all in compat
Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libmacfuse_i32.2.dylib
/usr/local/lib/libmacfuse_i64.2.dylib
/usr/local/lib/libosxfuse_i32.2.dylib
/usr/local/lib/libosxfuse_i64.2.dylib
@jsjohnst
jsjohnst / 99bottles.brainfuck
Created January 22, 2012 04:40
Imagine how much work went into making this?
##########################
###
### Severely updated version!
### (now says "1 bottle" and
### contains no extra "0" verse)
###
##########################
### 99 Bottles of Beer ###
### coded in Brainfuck ###
### with explanations ###
0000000100000f10 pushq %rbp
0000000100000f11 movq %rsp,%rbp
0000000100000f14 subq $0x20,%rsp
0000000100000f18 movl %edi,0xfc(%rbp)
0000000100000f1b movq %rsi,0xf0(%rbp)
0000000100000f1f xorb %al,%al
0000000100000f21 leaq 0x0000003c(%rip),%rcx
0000000100000f28 movq %rcx,%rdi
0000000100000f2b callq 0x100000f38 ; symbol stub for: _printf
0000000100000f30 jmp 0x100000f1f