Skip to content

Instantly share code, notes, and snippets.

john@joran ~/bin/gfxbench ❯ gdb ./gfxbench_gl
GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
john@joran ~ ❯ la ~/.config/unity3d/
total 17k
drwxr-xr-x 3 john 4.1k 2015-12-26 10:14 E_Line Media/
drwx------ 3 john 4.1k 2015-12-26 10:14 E-Line Media/
-rw-rw-r-- 1 john 124 2015-12-26 10:14 global.prefs
-rw-rw-r-- 1 john 163 2015-12-27 21:40 Player.log
john@joran ~ ❯ la ~/.config/unity3d/E*/N*
/home/john/.config/unity3d/E_Line Media/Never Alone:
total 0
@johndrinkwater
johndrinkwater / gist:b8cf0494d35639312bfe
Created January 16, 2016 22:55
Puhlease! I have a github account, my sshconfig is even foolishly hosted in a repo too.
john@joran ~ ❯ ssh whoami.filippo.io
+---[RSA 2048]----+
| .oE |
| +.. |
| . = . |
| = * . |
| . * S . |
| + B . o |
| . * + . |
| . + |
@johndrinkwater
johndrinkwater / gist:068b9d16cbcdb126a23c
Created January 12, 2016 18:11
This is my local patch to let yaml.load() import some metadata and pass the timestamps through with their TZ offset maintained. This relies on pytz as well, to use timezone data
import yaml
import pytz
# Monkey Patching pyyaml so it doesn’t auto-UTC all our timestamps
class FixedOffset(tzinfo):
"""Fixed offset in minutes east from UTC."""
def __init__(self, offset):
self.__offset = offset
self.__name = 'Fixed Offset: ' + str(offset)
@johndrinkwater
johndrinkwater / gist:1af5cca3b392f6cb558c
Last active January 11, 2016 16:45
Kinda confused on how messed Python datetime handling is, as I am importing strings and wanting to convert them to UTC, before potentially then outputting to users local tz
# mydate is loaded via yaml.load() from a blob of yaml on the next line
# Date: 2011-02-11 14:23:01
print mydate, 'offset: ', mydate.utcoffset()
# astimezone() called here outputs ValueError: astimezone() cannot be applied to a naive datetime
mydate = mydate.replace( tzinfo=pytz.timezone( 'Europe/London' ) )
print mydate, 'offset: ', mydate.utcoffset()
print mydate.astimezone(pytz.utc)
# outputs
#!/usr/bin/env php
<?php
exec("git diff-index --cached HEAD GAMES.json", $output, $returnCode );
if ( $returnCode !== 0 ) {
printf( "Stop `git commit`, something went wrong: %s\n", implode( "\n", $output ) );
exit( 1 );
} elseif ( empty( $output ) ) {
20151120 16:37:49 < DerRidda> Adminds discuss: We should probably change the main channel's mode to only allow registered users.
20151120 16:38:57 < beansmyname> I'm comfortable with that. How will that affect the webchat?
20151120 16:40:24 < DerRidda> beansmyname: It has a checkbox to use authorization.
20151120 16:40:40 < DerRidda> so it would work and the text above the chat could tell users to do just that.
20151120 16:44:59 < DerRidda> I will try it out.
20151120 16:45:06 < beansmyname> Are there more idiots arriving than usual?
20151120 16:45:37 < DerRidda> Yes.
20151120 16:45:50 < DerRidda> And frankly, the web client is part of the problem.
20151120 16:45:59 < beansmyname> We must be ranking higher in "Steam IRC" searches. :)
20151120 16:46:19 < DerRidda> Obscurity keeps at least the lazy and/or stupid shitbags out.
{
"age_limit": 12,
"bucket": "games",
"cloud_only_platform": [
"NONE"
],
"container_type": "product",
"content_descriptors": [
{
"description": "Violence",
@johndrinkwater
johndrinkwater / gist:8b702037e828d742da1e
Last active November 9, 2015 15:03
Fallout 4. Highly rated bugginess.
Gaming industry - Why accept this shit?
These exact quotes could have been lifted from reviews for Skyrim, Fallout 3,
or hell, even the oldest game on this same engine lineage, Morrowind.
http://www.pcgamer.com/fallout-4-review/
It was mostly bug free, and I only encountered a couple of mysterious
crashes-to-desktop in over 50 hours of play.
http://www.pushsquare.com/reviews/ps4/fallout_4
the title hasn't crashed on us once … but with regular dips and some
john@joran ~/code/steamdb.info ±:master❯ la /lib/udev/rules.d/99-steam-controller-perms.rules
-rw-r--r-- 1 root 190 2014-06-16 19:58 /lib/udev/rules.d/99-steam-controller-perms.rules
john@joran ~/code/steamdb.info ±:master❯ cat /lib/udev/rules.d/99-steam-controller-perms.rules
#USB devices
SUBSYSTEM=="usb", ATTRS{idVendor}=="28de", MODE="0666"
# Oculus HID Sensor naming and permissioning
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2833", MODE="0666"