Skip to content

Instantly share code, notes, and snippets.

Removing license for package 675
Removing license for package 849
Removing license for package 1006
Removing license for package 1193
Removing license for package 2297
Removing license for package 2696
Removing license for package 4819
Removing license for package 4829
Removing license for package 6253
Removing license for package 6517
@johndrinkwater
johndrinkwater / gist:9215418
Created February 25, 2014 19:06
config/DisplayOptions.xml
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<XnaContent>
<DisplayOptions>
<language guess="1" value="en"/>
<stretched value="0"/>
<fullscreen value="0"/>
<fullscreenWidth value="1920"/>
<fullscreenHeight value="1080"/>
<vsync value="1"/>
<framerate limit="0" limitframerate="60"/>
john@joran ~/code/hydden-tools git:master #%❯ ./embed.py http://flic.kr/p/kuaGxv
Using OEmbed cache location ./cache/oembed/
No cache for http://flic.kr/p/kuaGxv
Writing out http://flic.kr/p/kuaGxv to cache file ./cache/oembed/9c380af4d23d398c37501cb718b3ef293e3dbc77502d079e642a0bf6f69f4ab0
http://flic.kr/p/kuaGxv → http://farm8.staticflickr.com/7422/12789532875_c60ffd38b4_b.jpg
john@joran ~/code/hydden-tools git:master #%❯ ll ./cache/oembed/9c380af4d23d398c37501cb718b3ef293e3dbc77502d079e642a0bf6f69f4ab0
-rw-rw-r-- 1 john 689 2014-02-27 15:00 ./cache/oembed/9c380af4d23d398c37501cb718b3ef293e3dbc77502d079e642a0bf6f69f4ab0
john@joran ~/code/hydden-tools git:master #%❯ ./embed.py http://flic.kr/p/kuaGxv
Using OEmbed cache location ./cache/oembed/
Got cache for http://flic.kr/p/kuaGxv
@johndrinkwater
johndrinkwater / gist:9254519
Last active August 29, 2015 13:56
Imgur’s faulty oembed behaviour
john@joran ~/code/hydden-tools git:master #%❯ ./embed.py http://imgur.com/gallery/afnTUMC
OEmbed cache enabled, location ./cache/oembed/
No cache for http://imgur.com/gallery/afnTUMC
Writing out http://imgur.com/gallery/afnTUMC to cache file ./cache/oembed/300bd84b2845eff04b80d7193a7f9d1ad16f85098f2a295adaf1f3ee2d0ab696
http://imgur.com/gallery/afnTUMC → MRW I am the new lego movie at http://i.imgur.com/afnTUMC.gif
{u'author_name': u'IStealGIFSFromReddit',
u'author_url': u'http://imgur.com/user/IStealGIFSFromReddit',
u'height': 336,
u'provider_name': u'Imgur',
u'provider_url': u'http://imgur.com',
@johndrinkwater
johndrinkwater / gist:9505896
Created March 12, 2014 12:26
wondered why I was getting lots of duplicate inotify events; nautilus and __git_ps1 showing off their leet skills
# Just made a new document in nautilus and renamed it.
[2014-03-12 12:19:07,605 pyinotify DEBUG] Event queue size: 144
[2014-03-12 12:19:07,605 pyinotify DEBUG] <_RawEvent cookie=0 mask=0x100 name=Untitled Document wd=4 >
[2014-03-12 12:19:07,605 pyinotify DEBUG] <_RawEvent cookie=0 mask=0x20 name=Untitled Document wd=4 >
[2014-03-12 12:19:07,606 pyinotify DEBUG] <_RawEvent cookie=0 mask=0x8 name=Untitled Document wd=4 >
<Event dir=False mask=0x100 maskname=IN_CREATE name=Untitled Document path=Blog pathname=/home/john/code/NOPE/Blog/Untitled Document wd=4 >
<Event dir=False mask=0x20 maskname=IN_OPEN name=Untitled Document path=Blog pathname=/home/john/code/NOPE/Blog/Untitled Document wd=4 >
<Event dir=False mask=0x8 maskname=IN_CLOSE_WRITE name=Untitled Document path=Blog pathname=/home/john/code/NOPE/Blog/Untitled Document wd=4 >
[2014-03-12 12:19:07,606 pyinotify DEBUG] Event queue size: 192
@johndrinkwater
johndrinkwater / gist:9525981
Last active August 29, 2015 13:57
2014 BAFTA Video Game Awards
http://www.polygon.com/2014/3/12/5503058/the-last-of-us-leads-this-years-bafta-game-awards
http://www.bbc.com/news/technology-26549269
Full list of winners, with my annotations and picks.
Category Winner
Best action and adventure The Last of Us (Naughty Dog)
> Oh gosh yes.
@johndrinkwater
johndrinkwater / keybase.md
Created March 24, 2014 20:15
Publically claiming johndrinkwater as me, John Drinkwater.

Keybase proof

I hereby claim:

  • I am johndrinkwater on github.
  • I am johndrinkwater (https://keybase.io/johndrinkwater) on keybase.
  • I have a public key whose fingerprint is 851B EC7D E1CC 7350 ABC5 A978 2F24 7E86 93D8 CC73

To claim this, I am signing this object:

@johndrinkwater
johndrinkwater / gist:10532799
Created April 12, 2014 12:13
Crash on exit
Loading library: libPhysXCooking.so
Result of loading library libPhysXCooking.so: 0xcb42df8
Loading library: PhysXUpdateLoader.so
ERROR: PhysXUpdateLoader.so: cannot open shared object file: No such file or directory
Result of loading library PhysXUpdateLoader.so: 0x0
Loading library: libPhysXCore.so
Result of loading library libPhysXCore.so: 0xcb431b0
Warning, Material WP_Sanctum_Tesla.Materials.Tesla_Effects_Mat_01 missing bUsedWithStaticLighting=True!
Installing breakpad exception handler for appid(steam)/version(1397080338_client)
Installing breakpad exception handler for appid(steam)/version(1397080338_client)
@johndrinkwater
johndrinkwater / gist:11005984
Created April 17, 2014 19:20
cat ScummVM_Linux/launch_spyfox1.sh
#!/bin/bash
# Game launcher shell script by Saleck
FindPath()
{
X=`which "$1"`
Y=`readlink -e "$X"`
dirname "$Y"
}
@johndrinkwater
johndrinkwater / gist:11368939
Created April 28, 2014 11:29
Guess the game!
As announced at the Game Developers Conference in March, ___ will be coming to Xbox One, the all-in-one games and entertainment system from Microsoft. As an independent title from ID@Xbox, the self-publishing program for independent developers on Xbox One, you’ll be able to ___ right from the comfort of your living room.
___’s unique ___ work smoothly on gamepads as well as the traditional keyboard and mouse; at ___’s first showing at the Xbox One event in San Francisco, participants let us know constantly how natural the controls felt with a gamepad. The Xbox One also gives us unique opportunities to explore additional inputs such as Kinect and SmartGlass.