Skip to content

Instantly share code, notes, and snippets.

View gist:50357
<?php
$snowboardtime = mktime(0, 0, 0, 2, 1, 2009) - (7*24*3600);
$diff = $snowboardtime - time();
if($diff > 0) {
echo "<center><b>No</b>";
echo "<br /><br /><i>Still need to wait $diff seconds (aka: ".intval($diff / (24*60*60)). " days)</i></center>";
} else {
echo "<center>Yes</center>";
View gist:60a7172800c9ab362105
bash-3.2$ cat plexlog
2014-08-26 23:23:35,725 (10de4c000) : DEBUG (networking:172) - Requesting 'http://dl.opensubtitles.org/en/download/filead/src-api/vrf-8e6668e470/1953313379.gz'
2014-08-26 23:23:35,944 (10de4c000) : CRITICAL (agentkit:983) - Exception in the update function of agent named 'OpenSubtitles.org', called with guid 'com.plexapp.agents.thetvdb://82459?lang=en' (most recent call last):
File "/Users/USERNAME/Library/Application Support/Plex Media Server/Plug-ins/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 981, in _update
agent.update(obj, media, lang)
File "/Users/USERNAME/Library/Application Support/Plex Media Server/Plug-ins/OpenSubtitles.bundle/Contents/Code/__init__.py", line 108, in update
fetchSubtitles(proxy, token, part)
File "/Users/USERNAME/Library/Application Support/Plex Media Server/Plug-ins/OpenSubtitles.bundle/Contents/Code/__init__.py", line 63, in fetchSubtitles
subData = Archive.GzipDecompress(subGz)
File "/Users/US
@ojilles
ojilles / Description of usage
Created Aug 18, 2014
Adding 'invisible' function to Graphite Web
View Description of usage
Ran on current version of `synthesize`:
https://localhost:8443/render/?width=941&height=542&_salt=1408374478.348&from=-1hours&fontSize=16&target=invisible(legendValue(integral(collectd.graphite.apache-graphite-web.apache_requests)%2C%22max%22))&target=legendValue(collectd.graphite.apache-graphite-web.apache_requests%2C%22total%22)
And a little more clear:
https://localhost:8443/render/?width=941&height=542&_salt=1408374478.348&from=-1hours&fontSize=16&
target=invisible(legendValue(integral(collectd.graphite.apache-graphite-web.apache_requests),"max"))
&target=legendValue(collectd.graphite.apache-graphite-web.apache_requests,"total")
View keybase.md

Keybase proof

I hereby claim:

  • I am ojilles on github.
  • I am ojilles (https://keybase.io/ojilles) on keybase.
  • I have a public key whose fingerprint is 9A22 F759 D4BB 0290 FFD4 B17F 243E B257 5A2B 5700

To claim this, I am signing this object:

View coordinator.properties
# Properties for the Coordinator flow
# Should contain settings that:
# a) personalize your deployment, or
# b) settings to connect to the correct Hadoop cluster
# Your username (Kerberos!). Needs to be done twice, didn't find a way around that
user.name=joldenbeuving
applicationPath=hdfs:///user/joldenbeuving/oozie-test2/
# Pinpoint the location of the application: it will delete
You can’t perform that action at this time.