This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
MAINTAINER Callum Jones <callum@callumj.com> | |
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list | |
RUN apt-get -y update | |
# prep for downloading and installing ruby | |
RUN mkdir -p /temp/ruby | |
RUN apt-get install -y build-essential libssl-dev zlib1g-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)reflectNowPlaying | |
{ | |
if (_activeTrack == nil) | |
return; | |
NSMutableDictionary *activeInfo = [[NSMutableDictionary alloc] initWithDictionary:[[MPNowPlayingInfoCenter defaultCenter] nowPlayingInfo]]; | |
if (artworkNeedsReflecting || metaNeedsReflecting) | |
{ | |
[activeInfo setObject:[_activeTrack title] forKey:MPMediaItemPropertyTitle]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tcpdump -i eth0 -s 0 -l -w - dst port 3306 | strings | perl -e ' | |
while(<>) { chomp; next if /^[^ ]+[ ]*$/; | |
if(/^(INSERT|UPDATE)/) { | |
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time); | |
$time = "$hour:$min"; | |
if (defined $q) { | |
if ($q =~ /INSERT\s+INTO\s+`(\w+)`/) { | |
print "$time,insert,$1\n"; | |
} | |
if ($q =~ /UPDATE\s+`(\w+)`/) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--1be8c94f995d47bb81e298f853aba9c0 | |
Content-Disposition: form-data; name="avatar"; filename="FSQ-Scr1.png" | |
Content-Type: image/png | |
âPNG | |