Skip to content

Instantly share code, notes, and snippets.

@johndrinkwater
johndrinkwater / every-contributor
Created August 27, 2018 20:41
steamdb.info/linux named contributors
john@joran ~/code/SteamLinux ±:master %❯ git shortlog -s -n
328 John Drinkwater
323 xPaw
262 frostwork
238 Max E. Aubery
197 Stefano Angeleri
167 [GOL] LiamD
145 Daniel Scharrer
144 BlaXpirit
134 Andreas Struller
[2018-06-25T00:46:04] Waiting 110 seconds for this round to end...
[2018-06-25T00:47:58] >> Score: 3,595,295 XP => 3,597,695 XP - Current level: 11 (99.94%)
[2018-06-25T00:47:58] >> Next level: 3,600,000 XP - Remaining: 2,305 XP - ETA: 0h 1m
[2018-06-25T00:47:59] -- Current pace for Zone 77 is +7.68% ETA: 6m 43s
[2018-06-25T00:48:00] >> Planet 15 - Captured: 36.92% - Hard: 20 - Medium: 21 - Easy: 31 - Players: 238,168 (Planet of Under-Water Exploration I)
[2018-06-25T00:48:00] >> Zone 77 - Captured: 71.88% - Difficulty: Hard
[2018-06-25T00:48:00] -- Top clans: SteamDB, summersaliens, steamuniverse, hentaii, SteamCN
[2018-06-25T00:48:00] Waiting 110 seconds for this round to end...
[2018-06-25T00:49:52] >> Score: 3,597,695 XP => 3,600,095 XP - Current level: 12 (75.00%)
@johndrinkwater
johndrinkwater / gist:7dd36456744d0f2fe191aab18fd52a10
Created June 9, 2018 23:15
pulse-audio sinks for left/right channels, for use for when I want to listen to two streams at once >.>
pactl load-module module-remap-sink sink_name=use-left-mono sink_properties="device.description='Left\ Headphone\ Channel'" master=alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1 channels=2 master_channel_map=front-left,front-left channel_map=front-left,front-right
pactl load-module module-remap-sink sink_name=use-right-mono sink_properties="device.description='Right\ Headphone\ Channel'" master=alsa_output.pci-0000_01_00.1.hdmi-stereo-extra1 channels=2 master_channel_map=front-right,front-right channel_map=front-left,front-right
@johndrinkwater
johndrinkwater / gist:1f753ff1e64a842e7d233893db9c1eb2
Created January 8, 2018 11:32
disney infinity, playing with some C code that needed improving…
john@joran ~/code/Disney-Infinity-and-Skylanders-Lighting ±:master *%❯ make && ./infinitylights
rm -f infinitylights
g++ -I/usr/include/libusb-1.0 -lusb-1.0 main.cpp InfinityPortal.cpp SkylandersPortal.cpp -o infinitylights -lusb-1.0
Found 11 USB devices.
Found infinity portal at 8
- Portal serial number: 48E750913433 Performance Designed Products
Found infinity portal at 9
- Portal serial number: 48EA32A33834 Performance Designed Products
Device id: 8
BOOT
@johndrinkwater
johndrinkwater / magic.bash
Created November 22, 2017 15:14
What I do when I want a cruft-free merge that requires a rebase and edit due to a conflict.
john@joran ~/code/SteamLinux ±:master❯ git pull
remote: Counting objects: 385, done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 385 (delta 248), reused 253 (delta 248), pack-reused 132
Receiving objects: 100% (385/385), 82.41 KiB | 0 bytes/s, done.
Resolving deltas: 100% (250/250), completed with 4 local objects.
From github.com:SteamDatabase/SteamLinux
bd6f35b1e552..76f7006185dc master -> origin/master
* [new ref] refs/pull/606/head -> origin/pr/606
@johndrinkwater
johndrinkwater / gist:4299ffdfb19a3a80083c8859ad608f57
Created November 16, 2017 20:02
‘Some games have shipped with a Steamworks SDK redistributable older than 1.23’ → How to help with that
* Ask SteamDB for list of depots with hashes containing libsteam_api.so that they have access to (though they don’t own all games!)
* Pull down SteamworksSDK and filter the hashes by SDK release:
for commit in $(git rev-list master)
do
echo `git log -1 --pretty=format:"%s" $commit` ","
git show $commit:redistributable_bin/linux32/libsteam_api.so | sha1sum | tr '[a-z]' '[A-Z]'
git show $commit:redistributable_bin/linux64/libsteam_api.so | sha1sum | tr '[a-z]' '[A-Z]'
done > libsteam_api-versions
X-This: is a header, as email passes through servers, it gets prepended
Received: from email.server [IP.AD.DRE.SS]
by other.server with POP3 (fetchmail-6.3.20)
for <user@localhost> (single-drop); Wed, 09 Aug 2017 18:07:16 +0100 (BST)
DKIM-Signature: s=ecurity; i=nformation
From: "John Drinkwater’s name" <johns@email.address>
To: "You, the reader" <you@tutori.al>
Date: Wed, 9 Aug 2017 17:03:44 +0000
Message-ID: <typically.a.sexy.hash@your.isp.mailer>
X-Mailer: Typical Header Junk Here 1.0.30
```terminal
john@joran /mnt/media/Steam/steamapps/common/WayOut ❯ gdb ./WayOut.x86_64
GNU gdb (Ubuntu 7.10-1ubuntu2) 7.10
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.
@johndrinkwater
johndrinkwater / memberstats.csv
Last active May 18, 2017 15:07
SteamLUG group membership details
date countpublic count min max comment
2013-01-28 0 5000 0 0 <Cheeseness> But with 5,000+ members, it seems like a gift horse to worthy of not having its mouth examined
2014-01-17 0 5729 0 0 <kisak> how the heck do we have 5729 members?
2014-08-03 0 5956 0 0 <HER0_01> 5956 members
2014-08-13 0 6000 0 0 <norbert> so close to 6000 members <Cheeseness> Oh. We've busted over 6,000 members in the steam group \o/ <norbert> Cheeseness: SteamLUG group on Steam passed 6000 members in the last 2 weeks
2014-08-29 4913 0 0 0 Nemo script
2014-10-03 4988 0 0 0 Nemo script
2014-12-30 4940 0 0 0 Nemo script
2015-02-25 5030 0 0 0 Nemo script
2015-03-10 5052 0 0 0 Nemo script
# SteamLUG .styleci.yml WIP
preset: recommended
risky: false
disabled:
- no_tab_indentation
- no_spaces_inside_parenthesis
- include