Seiko Chronograph 7T42-7A5A

Recently I received a watch my dad used to wear - a Seiko Chronograph 7T42-7A5A. Since I’m curious about the history and details of the watch I decided to gather it on this page. I will update the page as I gather information, so it’s something of a perpetual work-in-progress. History When searching or the watch online, it’s usually called Seiko Olympic Chronograph, and with a reference to a year in the early 90s....

Powershell Cheatsheet

Collection of powershell stuff. Curl replacement Invoke-WebRequest -Uri http://localhost Invoke-WebRequest -Uri http://localhost -Method POST $cred = Get-Credential Invoke-WebRequest -Uri http://localhost -Method POST -Credential $cred -UseBasicParsing

Connecting to Meraki VPN with Ubuntu 20.04

I had some issues getting the Meraki VPN to work with Ubuntu, which uses L2TP over IPsec. There is an official guide, but it just says that it doesn’t work properly with xl2tp. I figured I might a well document how I got it working. Install L2TP Wasn’t installed on my computer, so probably the same for yours. If you don’t run gnome, you can remove the -gnome at the end....

July 31, 2020  |  🏷️Vpn

Configuring swap for dummies

A cheatsheet for modifying swap on a linux machine Cheatsheet # See attached swaps sudo swapon --show # Create/Attach/Resize swap sudo swapoff /swap.img sudo fallocate -l 8G /swap.img sudo chmod 600 /swap.img sudo mkswap /swap.img sudo swapon /swap.img # Quick and dirty add swap to fstab echo '/swap.img none swap sw 0 0' | sudo tee -a /etc/fstab Swappiness # See swappiness cat /proc/sys/vm/swappiness # Set swappiness=1 sudo sysctl vm.swappiness=1 # Before you tee, you should grep for it instead....

The quest for high quality sound on a Lenovo Yoga C940

Introduction I recently bought a new laptop, a Lenovo C940, and installed Ubuntu 20.04 on it. Everything works grand on it, except for the audio. When using Windows, the sound quality was great, however when in Linux, the sound is really tinny and can be harsh to listen to. It doesn’t matter if I use the speakers or the headphone-jack, both sound the same. The strange thing is that when I connect my bluetooth headphones (and use bluetooth A2DP), the sound is absolutely perfect....

Not all videos working on Firefox on Linux

Issue I recently installed Ubuntu minimal on a new computer, and noticed that sometimes Youtube-videos didn’t work. All “old” videos seemed to work, but newly uploaded videos usually claimed that my browser did not support HTML5. Basically, I could have a video in one tab which did work flawlessly, and a video in another tab which claimed I did not have HTML5 support in my browser. The error message was the something like the following:...

New Ultrabook (2020)

Notes for purchasing a new laptop in 2020 Need to have ~13-14" screen 256 GiB SSD Probably 8 GiB RAM Modern bluetooth Modern Wi-Fi USB-C slot 8+ hours of use Full HD, no more, no less Intel Iris Plus Graphics G4 Nice to have No bezels 512 GiB SSD Probably 16 GiB RAM USB-A slot 3.5mm headphone jack Intel Iris Plus Graphics G7 Possible buys Lenovo Yoga C940-14 Got most stuff....

June 2, 2020  | 

cURL Cheatsheet

Nice things you can do with cURL # Resolve a hostname with a given ip curl http://iix.se --resolve iix.se:80:206.189.18.126 # Run many queries in a loop (either for looping or load testing) curl 'http://localhost:8080/oauth/login?[1-10]' -d '{ "username": "[email protected]", "password": "secret" }' -vvv -H "Content-Type: application/json" # Light load testing an endpoint (Z=parallell, -s/-o removes output, -w sets new output) curl -Z -so /dev/null -w "%{time_total} %{http_code}\n" 'https://acme.system.com/api/endpoint?[1-20]'

May 25, 2020  |  🏷️Curl

A Hugo homepage workflow

Hugo is a framework for building static webpages. It pairs well with creating a git repository and creating a push-webhook which rebuilds the homepage every time you change it. This post is just documenting how to do just that for an existing hugo repository. Create a static repo with nginx pointing to it Clone a hugo repo and put it in /srv/hugo.iix.se Pop over to the folder and run hugo to generate a static page chown -R nginx:nginx /srv/hugo....

Iptables Cheatsheet

Various stuff I forget how I do it. View iptables # View iptables sudo iptables -nvL Add/Remove/Replace # Add a rule iptables -A INPUT -p tcp --dport 80 -j ACCEPT # Append to end of chain iptables -I INPUT 1 -p tcp --dport 80 -j ACCEPT # Insert at position 1 in chain # Delete a rule iptables -D INPUT 5 # 5 is index 5 in the INPUT-chain # Replace a rule iptables -R INPUT 1 -p tcp -s 192....