Merging git repositories to a monorepository

BFG-clean repository If you’ve had the bad habit of checking in binary data, this is your chance to clean it up. If so, then run these lines. Tweak the bfg command to your taste. cd git-repo # Optional. Will likely make you able to remove more files. You might want to remove remotes as well. git tag -d $(git tag -l) cd .. java -jar bfg-1.13.0.jar --strip-blobs-bigger-than 5M --delete-files "*.{class, jar, png, svg, ico, zip}" git-repo cd git-repo git reflog expire --expire=now --all && git gc --prune=now --aggressive Move the repository to a subfolder Replace subfolder below with the real subfolder name ...

November 8, 2018  |  🏷️Git 🏷️Bfg

Alternatives for a Grand Seiko

The Grand Seiko Snowflake One of my ideal watches to have would look be like a Grand Seiko Snowflake. The sweeping movement of Seiko’s Spring Drive, the snow-esque dial, dauphine hands, and the blued seconds hand look amazing to me. But since it will never be worth it for me to spend 50k SEK on a watch, I will have to find a cheaper alternative. Luckily, there are a lot of quite similar watches available. At the moment, this page only contains Seikos. Since there are Seiko alternatives in all price classes, there is not really any need to include other brand. ...

Wristwatch and stuff

Accessories Watches I am interested in Maen Hudson ~5k SEK Seiko SARX045 39.5x11.3mm x 48mm 6R15 / 100m WR / Sapphire / 20mm lugs / solid end-links ~5500 SEK Baltic MR01 ~6700 SEK Maen Skymaster 12k SEK Oris Divers Sixty-Five 01 733 7707 4354-07 8 20 18 40mm SW300? / 100 WR / Sapphire / 20mm lugs / solid end-link ~25k SEK MSRP ~17k SEK chrono24 Tag Heuer Carrera Calibre 17 CV2110 - White CV2111 - Black CV2113 - Black Silver Ring ~20-30k SEK chrono24 Tudor Black Bay 58 39mm ~37k SEK MSRP

Firefox on linux with a dark theme has black input fields

If you are using firefox on linux with a dark theme, unstyled input fields will have black background and white text. Sometimes just white text on white background. According to this bug report it has been this way for the last 17 years. To fix it, pop by about:config and add a new key-value (String): "widget.content.gtk-theme-override": "Adwaita:light". After restarting firefox, things will be as they should be.

Allowing access to programs in SELinux through modules

This page is compiled from my experiences of researching the bare minimum to make stuff work. Since SELinux is made to be secure, this approach might create security vulnerabilities if you don’t know what you are doing. Resources Introduction to SELinux (GitHub blog) Locate the problem In this example. My nginx installation is unable to access a file called test.txt. This is the journal log: Sep 22 20:01:32 hermes.iix.se audit[23928]: AVC avc: denied { read } for pid=23928 comm="nginx" name="test.txt" dev="vda1" ino=271350 scontext=system_u:system_r:httpd_t:s0 tcontext=unconfined_u:object_r:var_t:s0 tclass=file permissive=0 The first thing we do is to asking audit whats up. this is usually done by piping the audit log to audit2why. If you don’t have audit, the logs should be in the /var/log/messages instead. ...

Audio sounds crap on bluetooth headphones on Linux

So maybe sounds like crap is an overstatement, but compared to what it sounds like on windows / macos / my phone it’s not even a comparison. Apparently this is is caused by the pulseaudio-profile being set wrong. You can check available profiles by connecting to the bluetooth headphones and running pacmd list: profiles: headset_head_unit: Headset Head Unit (HSP/HFP) (priority 20, available: unknown) a2dp_sink: High Fidelity Playback (A2DP Sink) (priority 10, available: no) off: Off (priority 0, available: yes) When trying to set the profile, pacmd will refused (related to the available: no): ...

No wifi drivers on macbook running linux

I recently decided to dual boot linux my macbook air from 2014 (or maybe 2015). Apparently dual booting on macOS works really well, since you will enter GRUB on normal boots, but can enter macOS by holding the alt/option key during boot. However, there are no free wifi drivers available, so you will need to download extra non-free drivers, which can be really annoying if you only have wifi to connect by, and wifi doesn’t work. ...

Guests are offline

This is a very broad title, and will probably not help anyone except for me if this happens for me again. One day when I had to restart my KVM host, none of my guests had internet connection. The eth0 on the KVM host was attached to a bridge (br0) and that host had connectivity through the bridge. Here are some configs (which had not changed since it worked): # /etc/network/interfaces source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth0 iface eth0 inet manual #iface eth0 inet dhcp auto br0 iface br0 inet dhcp bridge_ports eth0 bridge_stp off bridge_fd 0 bridge_maxwait 0 Configuration seems good to me. I have never needed stp=on, so it should be alright. ...

Let's encrypt - Adding new/separate cert

sudo systemctl stop nginx sudo docker run --rm -it -p80:80 -p443:443 -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" certbot/certbot certonly --expand --standalone -d yolo.iix.se sudo systemctl start nginx

Getting root access to your Technicolor TG799vac Xtream (Crimson (15.4))

Intro Today, I received a free Technicolor TG799vac Xtream router from my ISP, which seems to have quite decent hardware according to my google-fu. I already have a router (two technically speaking), so I have no real need for it. But I have a way it might come to use. See, currently I have one router without any radio, which I use as my main gateway and router. This is a really nice machine for the most part, so I really like having it for that purpose. But since I also need WiFi at home, I have my old router which only runs as an access point, forwarding all traffic to my router. Since this AP is upstairs, it wouldn’t be too bad having another AP downstairs, maybe somewhere where it gives better WiFi to my garden or garage. This is the idea at least. ...

July 25, 2018  |