Skip to content

Instantly share code, notes, and snippets.

@johndrinkwater
johndrinkwater / gist:85e78dd353afda487a81c6a0e3903121
Created Nov 23, 2020
PlayStation(R)Camera adaptor, with PS4 camera plugged in.
View gist:85e78dd353afda487a81c6a0e3903121
dmesg
```
[9955406.126553] usb 1-2: new high-speed USB device number 46 using ehci-pci
[9955406.276182] usb 1-2: New USB device found, idVendor=054c, idProduct=0d0a
[9955406.276194] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[9955406.276202] usb 1-2: Product: PlayStation(R)Camera adaptor
[9955406.276209] usb 1-2: Manufacturer: Sony Interactive Entertainment
[9955406.277971] hub 1-2:1.0: USB hub found
[9955406.279259] hub 1-2:1.0: 2 ports detected
```
View dmesg >
[9014643] usb 1-1: new high-speed USB device number 32 using ehci-pci
[9014643] usb 1-1: New USB device found, idVendor=054c, idProduct=0ce6
[9014643] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[9014643] usb 1-1: Product: Wireless Controller
[9014643] usb 1-1: Manufacturer: Sony Interactive Entertainment
[9014643] input: Sony Interactive Entertainment Wireless Controller as /devices/pci0000:00/0000:00:12.2/usb1/1-1/1-1:1.3/0003:054C:0CE6.0006/input/input18
[9014643] hid-generic 0003:054C:0CE6.0006: input,hidraw5: USB HID v1.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-0000:00:12.2-1/input3
@johndrinkwater
johndrinkwater / gist:af0c81bb68a517d9e52db4d98af4d169
Created Feb 19, 2019
Does this make working vz files? probably not.
View gist:af0c81bb68a517d9e52db4d98af4d169
Using the scripts here https://gist.github.com/johndrinkwater/8944787
john@joran ~/code/vzencode/8944787 ±:master *% u= ❯ ./vzextract.py tenfoot_sounds_all.zip.vz.ffef2b2fc386819a842ea79484b966a937c2ca7e_1209792
Extracting tenfoot_sounds_all.zip.vz.ffef2b2fc386819a842ea79484b966a937c2ca7e_1209792 into tenfoot_sounds_all.zip
Extracting tenfoot_sounds_all.zip into .
john@joran ~/code/vzencode/8944787 ±:master *% u= ❯ la
total 1.3M
drwxrwxr-x 8 john 4.1k 2019-02-19 21:19 .git/
@johndrinkwater
johndrinkwater / gist:ab8359ddfb0e4e34498055531b80c592
Created Feb 1, 2019
Like https://gist.github.com/johndrinkwater/dae469baa3d63928a2d88dd8ee5da9fd, pulled out ‘Screens’ listed in the store files, these appear to be entirely Poster/Board related updates for scenes… which may help find scenes we missed?
View gist:ab8359ddfb0e4e34498055531b80c592
Action1_ScreenID
Action2_ScreenID
Action_Billboard_01
Activity_Board_Casual
Activity_Board_Casual_Old
Activity_board_Screen
Activity_board_screen_sports
Adventure1_ScreenID
Adventure2_ScreenID
Avd_activity_board_screen
@johndrinkwater
johndrinkwater / gist:dae469baa3d63928a2d88dd8ee5da9fd
Created Feb 1, 2019
Something I didn’t get around to looking at before Home closed, but AlphaZone4 had store update dumps ( git@github.com:AlphaZone4/PSHomeData.git ) that I just parsed to put out all the Web-accessible data. Need to compare to our PS Home dump to see what files are missing – a good chunk.
View gist:dae469baa3d63928a2d88dd8ee5da9fd
http://asia.playstation.com/home/hk/cht/event/d/39841
http://eu.playstation.com
http://promo.software.eu.playstation.com/en_GB/campaign/lynx-marvin
http://scea-home.playstation.net/a.home/hosted/CommercePoints/Thumbnails/056A1FB0-F72F42CE-AF5417A7-9DEEFB09.png
http://scea-home.playstation.net/a.home/hosted/CommercePoints/Thumbnails/1280x720_dw1_stars.png
http://scea-home.playstation.net/a.home/hosted/CommercePoints/Thumbnails/1280x720_dw2_stars_waveTwo.png
http://scea-home.playstation.net/a.home/hosted/CommercePoints/Thumbnails/128x128_Rogo.png
http://scea-home.playstation.net/a.home/hosted/CommercePoints/Thumbnails/1940sgal_scea.png
http://scea-home.playstation.net/a.home/hosted/CommercePoints/Thumbnails/3C7EB7E1-E40842E9-A3DAA1D4-84E8E60E.png
http://scea-home.playstation.net/a.home/hosted/CommercePoints/Thumbnails/3D09B184-16D645E6-98867D49-E888ACC7.png
@johndrinkwater
johndrinkwater / bashrc.sh
Created Dec 20, 2018
Testing wget version to avoid: wget: unrecognised option '--hsts-file=…
View bashrc.sh
wgetver="$(\wget -V | head -1 | cut -d' ' -f 3)"
wgetwant="1.17.0"
if [ "$(printf '%s\n' "$wgetwant" "$wgetver" | sort -V | head -n1)" = "$wgetwant" ]; then
alias wget="wget --hsts-file=~/settings/config/wget/wget-hsts"
fi
View gist:3b045d488e17e517882e364ad314b9b0
Before I realised recent-notifications had a denylist (dconf net.launchpad.indicator.notifications.blacklist ['indicator-sound']),
had created this patch to work around a bug in 15.10 indicator-sound:
bzr+ssh://bazaar.launchpad.net/+branch/recent-notifications/indicator/
```
--- src/notification.c 2015-10-23 21:51:59 +0000
+++ src/notification.c 2018-11-08 15:55:07 +0000
@@ -150,6 +150,10 @@
g_variant_unref(value);
value = NULL;
View gist:e61e227275f9938357fe79810953e993
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
View gist:344d7b7cf25fa362a477d366c97efd7a
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 Oct 13, 2018
Attempting to remove the superfluous .IX lines output from pod2man, with some merged macros. Bad idea?
View gist:ee8cd15a324754e4fca225c7cadb9c78
.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"