57c8fec3916177ad25b0f1587ea0cf245e1d08c7
compute/paywall.md
| ... | ... | @@ -1,4 +0,0 @@ |
| 1 | -# Paywall stuff |
|
| 2 | - |
|
| 3 | -## Re-enable scrolling |
|
| 4 | -Set `<body style="overflow: visible">` in dev tools. |
compute/tethering.md
| ... | ... | @@ -1,46 +0,0 @@ |
| 1 | -# Tethering |
|
| 2 | - |
|
| 3 | -# What? |
|
| 4 | -Let's say your mobile operator charges extra for, or caps, your wifi-sharing tethering data. That doesn't seem fair, now does it? Doesn't cost them any more just because the data's going to/from a laptop, so why should it cost you? |
|
| 5 | -Where there is a will, there is a way. |
|
| 6 | -# How? |
|
| 7 | -If you can send all your tether data through an app, then it's not tethering data any more, is it? |
|
| 8 | -No. |
|
| 9 | -No it is not. |
|
| 10 | -# So a VPN, right? |
|
| 11 | -If you run your own VPN service and you can find a phone VPN app that lets you connect to it from wifi tethered devices, then yeah, do that. |
|
| 12 | -Otherwise, don't - commercial VPN providers are [sketchy as fuck](https://medium.com/@derek./how-is-nordvpn-unblocking-disney-6c51045dbc30). |
|
| 13 | -# SSH |
|
| 14 | -As usual, SSH to the rescue. |
|
| 15 | -You're gonna need a machine you can ssh to from the internet, an android mobile, and a copy of [JuiceSSH](https://juicessh.com/) (other ssh clients may also work, but Juice is excellent). |
|
| 16 | -iOS mobiles ain't gonna work for this - Apple decided a long time ago that long-running backgrounded network apps aren't allowed. Why? Because battery life and fuck you, that's why. |
|
| 17 | -# Setup |
|
| 18 | -Nothing in particular on the phone or the SSH host - just set up a SOCKS port-forward in JuiceSSH, point it at your SSH machine and you're laughing. The SOCKS proxy will be listening on whatever port you specify (8080 is traditional), and will be reachable from wifi-tethered devices. The sshd defaults on Fedora, Debian, Ubuntu et al are fine. |
|
| 19 | -The setup on the tethered laptop's a bit more particular though... |
|
| 20 | -# Laptop |
|
| 21 | -Two options on OSX to stop stuff talking directly to the internet and racking up your tethering bill - Trip Mode, or some manual setup. |
|
| 22 | -## Trip Mode 2 |
|
| 23 | -[Trip Mode 2](https://www.tripmode.ch/) works as a selective app firewall - it'll deny network access to apps until you give them access through a menubar icon. |
|
| 24 | -Lovely stuff. Costs a few quid though. |
|
| 25 | -## Manual network setup |
|
| 26 | -To avoid sending any data through the phone that isn't going through the proxy, you can hobble the network a bit. This is on OSX, but similar should work elsewhere too. |
|
| 27 | -### Get IP adresses |
|
| 28 | -Connect to the phone wifi sharing, and run 'ifconfig' and 'netstat -rn' to get your IP and default route. The wifi sharing network range seems to be completely stable on android, so we can just set a static IP below, and the phone (the router) is always on the .1 address. |
|
| 29 | -Now disconnect. |
|
| 30 | -### Create a new Location |
|
| 31 | -Create a new Location in System Preferences -> Network -> Location -> Edit Locations |
|
| 32 | -Switch off DHCP, and set IPv6 to link-local only. |
|
| 33 | -Set the IP to whatever you got when you connected normally; subnet mask to 255.255.255.0; and most importantly, **leave the default route blank**. Leave DNS blank as well - we don't need it. |
|
| 34 | -# Browse |
|
| 35 | -Chrome and Safari use the system-set proxies, and that doesn't work - DNS has nowhere to go with the manual network setup, so the whole thing breaks, and leaking DNS queries is probably not a good idea if you're using Trip Mode. |
|
| 36 | -Firefox will happily use the SOCKS proxy for DNS, though, so that's what we're going to use. |
|
| 37 | -In Firefox -> Preferences -> Network set the SOCKS proxy to the default route IP you got above, port 8080, SOCKS v5, and select 'Proxy DNS when using SOCKS v5'. |
|
| 38 | -# SSH |
|
| 39 | -You can SSH through your tether proxy with: |
|
| 40 | -`ssh -o ProxyCommand='nc -x 192.168.xxx.1:8080 %h %p' ssh.target.host` |
|
| 41 | -# Other apps |
|
| 42 | -Probably not gonna work. Soz. |
|
| 43 | -# Relax |
|
| 44 | -That should be about it. When you want to browse tethered, fire up wifi sharing on the phone, start the port forward on JuiceSSH, and set the Location on the laptop to the one you set up above. |
|
| 45 | -In OSX, you'll get a '!' warning on the wifi icon, because it'll think your network's broken (which it kind of is with an unset default route), but that's OK. |
|
| 46 | -To unset the tethered config, just set your Location back to Default. |
compute/tools.md
| ... | ... | @@ -1,124 +0,0 @@ |
| 1 | -# Tools |
|
| 2 | - |
|
| 3 | -# Desktop |
|
| 4 | -## Emacs |
|
| 5 | -The editor to end all editors. Or the OS in need of a good editor, depending who you ask. |
|
| 6 | -Editing modes for every language, markup, conf file out there. |
|
| 7 | - |
|
| 8 | -### org-mode |
|
| 9 | -<https://www.youtube.com/watch?v=oJTwQvgfgMM> |
|
| 10 | -TODO lists, GTD, hierarchical notes, et al. |
|
| 11 | - |
|
| 12 | -### Improved puppet-mode |
|
| 13 | -<https://github.com/ilikejam/puppet-syntax-emacs/commit/133afcd48f4e7188561981072c19c57644c1eb0d> |
|
| 14 | -Now apparently superseded by a different module, but if you like the original Puppetlabs mode there might be some nice changes in my patch branch |
|
| 15 | - |
|
| 16 | -### rainbow-delimiters |
|
| 17 | -<https://github.com/Fanael/rainbow-delimiters> |
|
| 18 | -Subtle colour hints for brackets etc. |
|
| 19 | - |
|
| 20 | -## Shell |
|
| 21 | -### iTerm2 (OSX) |
|
| 22 | -The default terminal app on OSX is Just Fine, but there's no way to make text selections automatically go to the main clipboard, so that sucks. |
|
| 23 | -[iTerm2](https://www.iterm2.com/) can, and is better. |
|
| 24 | - |
|
| 25 | -### urxvt (Linux, Windows) |
|
| 26 | -<https://wiki.archlinux.org/index.php/Rxvt-unicode> |
|
| 27 | -Fast, unicode and TT font support, resizing works, [most of the time](https://twitter.com/thatcks/status/910970907971244032) |
|
| 28 | - |
|
| 29 | -### bash |
|
| 30 | -<https://github.com/git/git/blob/master/contrib/completion/git-completion.bash> |
|
| 31 | -<https://github.com/ilikejam/git/blob/master/contrib/completion/git-prompt.sh> |
|
| 32 | - |
|
| 33 | -### fonts |
|
| 34 | -Only one font is acceptable in a shell, and that font is misc-fixed. No antialiasing, at 6x13. |
|
| 35 | -<https://monkey.org/~marius/beautiful-fixed-width-fonts-for-osx.html> |
|
| 36 | - |
|
| 37 | -### csshi |
|
| 38 | -Open ssh connections to multiple hosts in one iTerm2 window and type in all of the shells at the same time. Dangerous, but very useful. |
|
| 39 | -<https://github.com/ilikejam/csshi> |
|
| 40 | - |
|
| 41 | -## Utils |
|
| 42 | -### Karabiner (OSX) |
|
| 43 | -<https://pqrs.org/osx/karabiner/> |
|
| 44 | -Keyboard remapping. |
|
| 45 | - |
|
| 46 | -### SensibleSideButtons (OSX) |
|
| 47 | -<https://sensible-side-buttons.archagon.net/> |
|
| 48 | -Make mouse back/forward buttons do what they're supposed to. |
|
| 49 | - |
|
| 50 | -### Rectangle (OSX) |
|
| 51 | -<https://rectangleapp.com/> |
|
| 52 | -Window management with keyboard shortcuts. |
|
| 53 | - |
|
| 54 | -### Middleclick (OSX) |
|
| 55 | -<https://github.com/DaFuqtor/MiddleClick-Catalina> |
|
| 56 | -Make trackpad triple-tap emulate middle-click. |
|
| 57 | - |
|
| 58 | -# Infra |
|
| 59 | -### goss (Linux) |
|
| 60 | -<https://github.com/aelsabbahy/goss> (original) |
|
| 61 | -<https://github.com/ilikejam/goss> (updated dgoss) |
|
| 62 | -Serverspec without the horrific syntax. |
|
| 63 | -Has a party trick - it can automatically analyse running systems and write a spec from what it finds. Very cool. |
|
| 64 | - |
|
| 65 | -# Unix |
|
| 66 | -### asciinema |
|
| 67 | -<https://asciinema.org/> |
|
| 68 | -Record terminal sessions to file, without messing up SIGWINCH like typescript does. |
|
| 69 | - |
|
| 70 | -### recode |
|
| 71 | -<https://linux.die.net/man/1/recode> |
|
| 72 | -Convert text streams between formats, e.g. de-escape strings in XML, convert utf8 to ascii. |
|
| 73 | - |
|
| 74 | -### jq |
|
| 75 | -<https://stedolan.github.io/jq/> |
|
| 76 | -sed for json. |
|
| 77 | - |
|
| 78 | -### jo |
|
| 79 | -<https://github.com/jpmens/jo> |
|
| 80 | -Create json from your shell. |
|
| 81 | - |
|
| 82 | -# Heavy lifting |
|
| 83 | -## XML |
|
| 84 | -### xmltodict |
|
| 85 | -<https://github.com/martinblech/xmltodict> |
|
| 86 | - |
|
| 87 | -# Audio |
|
| 88 | -### Airfoil (OSX) |
|
| 89 | -<https://rogueamoeba.com/airfoil/> |
|
| 90 | -Send audio to chromecast, airplay, and bluetooth from individual apps (or the system) to multiple sinks. |
|
| 91 | -Combine with Chromecast Audios (sadly discontinued now) for dirt cheap multi-room audio. |
|
| 92 | - |
|
| 93 | -### Headphones: Office / Loud environments |
|
| 94 | -#### Sennheiser HD25 |
|
| 95 | -My current general-purpose headphone. |
|
| 96 | -Excellent isolation, excellent sound, easy to drive, largely bombproof, replaceable parts, available everywhere. |
|
| 97 | -Only had these a few years, so I can't comment on their very-long-term use, but mine still look brand-new. |
|
| 98 | -Frequency response with decent amplification is very flat, but YMMV with high impedance sources. I've run them from phones, HP laptops, Macbooks, and dedicated amps, and they sound great in every case. |
|
| 99 | -I like these so much I own 3 pairs. |
|
| 100 | - |
|
| 101 | -#### Sony MDR-7506 / V6 |
|
| 102 | -My previous can of choice. |
|
| 103 | -Excellent isolation, sound great, will survive a nuclear holocaust, good value, available everywhere. |
|
| 104 | -My pair lasted 15 years of *terrible* abuse - if you need a headphone that will absolutely definitely work no matter what, get a pair of these. They sound genuinely good, but the bass response is a bit lumpy and loose in places - if you're listening to anything except house/techno/DnB, though, you probably won't notice it. |
|
| 105 | -Get the velour pads - the pleather standard ones fall apart in a few months of heavy use, and the velour ones are more comfy. You'll lose a bit of isolation, but they improve the lumpy bass response slightly. |
|
| 106 | -If the V6 are cheaper, get them - they're identical to the 7506's. (Well, the 3.5mm plug body's plastic on the V6, metal on the 7506. If you manage to break the V6 plug without the aid of a vice and sledgehammer, I'll buy you a pair of 7506's myself). |
|
| 107 | - |
|
| 108 | -### Headphones: Travel |
|
| 109 | -#### Beyerdynamic Byron |
|
| 110 | -The best sounding in-ear 'phones I've heard that I'd be willing to subject to the abuse of every-day travel. |
|
| 111 | -Reasonably flat response, lightweight, non-microphonic cable, not hugely expensive. Can't fault them at all. |
|
| 112 | - |
|
| 113 | -#### Soundmagic E10 |
|
| 114 | -My backup in-ear 'phones. |
|
| 115 | -Sound great most of the time, but bass can be overblown. Dirt cheap, though, and depending on what you're listening to the bass response might not be an issue. |
|
| 116 | - |
|
| 117 | -### Headphones: Home |
|
| 118 | -#### Sennheiser HD650 |
|
| 119 | -Incredible sounding headphones. Bass that goes all the way to the floor and extremely tight all the way down, very well balanced, airy, comfortable. Very expensive, though. |
|
| 120 | -These are very high impedance, so they **really** need decent amplification to make them work properly. |
|
| 121 | - |
|
| 122 | -### Headphones: Amplification |
|
| 123 | -My goto is Objective2 / ODAC stuff - JDS Labs and the now-defunct Epiphany Audio. I hear the Topping gear is also very good. |
|
| 124 | -There's a lot of snake oil in headphone amps, so be careful. Look for actual measurements in reviews. If your headphone amp has valves in it, then you need to have a word with yourself. Seriously. Stop. Get some help. |
cook/broccoli.md
| ... | ... | @@ -0,0 +1,4 @@ |
| 1 | +# How to cook broccilies |
|
| 2 | + |
|
| 3 | +1. Grease 'em up throroughly in a bowl with olive oil, salt, pepper. |
|
| 4 | +1. Chuck em in an air fryer at 180C for maybe 8 mins? |
cook/sausages.md
| ... | ... | @@ -0,0 +1,3 @@ |
| 1 | +# How to cook sausages |
|
| 2 | + |
|
| 3 | +Air fryer is king. 190C for 20 mins |
cook/sea-bass.md
| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | 1. Take them out of the plastic wrapper. |
| 6 | 6 | 1. Dry the skin side with some kitchen towel. |
| 7 | 7 | 1. Stick a decent glug of olive oil in a frying pan. Garlic infused olive oil works well. |
| 8 | -1. Get the frying pan hot. Medium heat. Should be smoking a bit. |
|
| 8 | +1. Get the frying pan hot. 12 on my induction out of 14. Should be smoking a bit. |
|
| 9 | 9 | 1. Lay the fish skin side down on the pan. The skin will stick instantly if you're using a steel pan. This is OK. Do not panic. Do not attempt to move the fish. Everything will be OK. |
| 10 | 10 | 1. Treat the minor burns you are receiving from the oil spitting everywhere. |
| 11 | 11 | 1. Spoon the hot oil over the fish. Keep doing this. All the time. |