Skip to content

Instantly share code, notes, and snippets.

john@joran ~/code/WaterOS/data-system/reference ❯ history | grep nss
157 2018-08-10 11:41≀19 la .pki/nssdb/
1046 2018-08-26 11:33≀52 ln -s ~/settings/data/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libnss3.so .
1047 2018-08-26 11:33≀58 ln -s ~/settings/data/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libnssutil3.so .
1049 2018-08-26 11:34≀28 ln -s ~/settings/data/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libnss3.so .
1050 2018-08-26 11:34≀30 ln -s ~/settings/data/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libnssutil3.so .
2222 2018-09-23 00:09≀49 find | grep nss
2225 2018-09-23 00:10≀44 ln -s ~/settings/data/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libnssutil3.so .
2227 2018-09-23 00:11≀12 ln -s ~/settings/data/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu/libnss3.so .
2229 2018-09-23 00:11≀28 ln -s ~/settings/data/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libns
Protesters calling for a referendum on the final Brexit deal are marching in London for what organisers say will be the "biggest, loudest and most important" demonstration of its kind.
They have gathered in Parliament Square, where a rally is being held.
Young voters have led the People's Vote march, which organisers say has attracted more than 600,000 people.
It is being held at the same time as a pro-Brexit rally in Harrogate, led by former UKIP leader Nigel Farage.
MPs from all the main political parties are supporting the demonstration in London calling for a fresh referendum - something which has already been ruled out by Prime Minister Theresa May.
@johndrinkwater
johndrinkwater / gist:ee8cd15a324754e4fca225c7cadb9c78
Last active October 13, 2018 17:15
Attempting to remove the superfluous .IX lines output from pod2man, with some merged macros. Bad idea?
.de SHX \" combine subheaders and indexing
.IX \\$1 "\\$2"
.SH "\\$2"
..
.de IPX \" combine items and indexing
.IP "\\$2" \\$3
.rn \fB \fB2
.rn \fR \fR2
.rn \fI \fI2
.IX \\$1 "\\$2"
Discovered.
4 3 8 | 7 9 6 | 2 1 5
6 5 9 | 1 3 2 | 4 7 8
2 7 1 | 4 5 8 | 6 9 3
7 4 5 | 6 8 1 | 9 3 2
8 2 3 | 5 4 9 | 7 6 1
1 9 6 | 2 7 3 | 8 5 4
9 8 7 | 3 2 5 | 1 4 6
3 1 4 | 8 6 7 | 5 2 9
5 6 2 | 9 1 4 | 3 8 7
@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