RSSAmplifier

Blog

Scratchpad

Recent content on Scratchpad

toor.suRSS feed ↗29 posts

Latest posts

Jails without pkg?!

This is interesting: I just created a new jail on my server. Solely operating from the base system I did the initial setup of tools like this: pkg -j jail install … Still from the base system I did that later on: jexec jail pkg install … At that moment the famous The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: message came up,…

Ping

It’s been a while since I’ve posted something here, so it’s time to write some update. A lot has happened (and still is going on) but regarding this site: You are reading this from my new server! The old server was a fine machine that ran stable for years (thanks to FreeBSD). On the other hand, hardware does not get any younger and tends to wear out over time. Also – as that…

Dateien, Ordner, Schmerzen

Nach über Tausend 1 Jahren “Computer” ist es noch immer ein ungelöstes Problem: Zwei Computer stehen einen halben Meter nebeneinander. Wie tauscht man jetzt Dateien aus?!? Ja, dafür gibt es doch Nullmodem-Kabel, Infrarot-Schnittstellen, oder dieses moderne “Ethernet”.. Schon gehört? Setz doch “einfach” einen Samba Server auf, oder schick dir doch selbst eine…

$> sl dc gti!!1!

So, I spend 98% of my life in the command line. It’s super effective and a lot of fun. But typos happen… A lot. I am well aware of external commands that annoy you when you type the wrong command: sl gti Having a steam locomotive or some gti car running through the terminal is fun! But there is the dc command - known as desk calculator . Preinstalled on most systems. This is…

Docker Purge

My relation with docker is … well mixed. Constantly I am oscillating between “I love docker” and “I hate docker”. This happens in a matter of seconds, many times per day. The containers I run are mostly locally, I do not use it on the server. My primary use case is during development of software: It’s nice to run your Unit-Tests against the real deal instead of…

Notizen, digital

Ach ja, Notizen in digitaler Form.. Ein Thema voller Missverständnisse. Es könnte ja so einfach sein - Macht man einfach ein C:\notizen.txt , schreibt alles rein, fertig ist der Karton. Stellt sich raus, Menschen haben mehr als ein Gerät am Start (vor allem kein Wintendo®), und den selben Inhalt darüber verteilen ist schon ein nettes Feature. Wenn es um die Sammlung von Schmierzettel geht, für…

Heiter bis wolkig

Habe das im Blog immer mal angestreift, nie direkt drüber geschrieben: Der Grund warum diese Seite hier existiert, ist die Domain toor.su . Dort antwortet mein eigener Server aus den Untiefen des Internets (Kiste, aus Blech, 2x Festplatte, Netzwerk, Speicher, Strom, usw. beim Hoster des geringsten Misstrauens). Keine Antwort auf HTTP oder nur statisch die Standard Seite von nginx ausliefern ist…

The struggle is real

Oh yeah, there is this box somewhere in the internet.. Minding it’s business and running a lot of services.. But the “blog” service hasn’t been updated for a while. Content wise. Nothing much, but something to have some regular activity (more then every x months/years)… Well, … So. Jetzt mal ernsthaft: Stimmt, hier auf dem Blog ist gar nichts los! Schade -…

Location aware config in git

Something you should know about, because it is really useful: It is possible to change the (global) git configuration depending on the folder you are in. For example - when mixing work-related and private projects on the same machine: ~/.gitconfig : 1 2 3 4 5 6 [user] name = Some Name email = my.personal.address@example.org [includeIf "gitdir:~/code/work/"] path = ~/code/work/.gitconfig And then…

Pylint magic

I am using pylint on most of my code to make sure nothing bad or too complicated sneaks in. So far it has helped me a lot in discovering stuff I would not notice, and if you are not using #pylint: disable=... too often it forces you to write better code. I just stumbled across this: I want to find the first element in a list of elements that is bigger than the specified one. For simplicity I am…

Fixed!

Again, there has been a long time since the last post. Somehow I lost motivation, because syntax highlighting did not really work. Black text on a very dark background is not much fun to read. In the previous post I thought this needs to be fixed inside Firefox. But no, it seems to be intended behaviour, because at some point Chrome also stopped working. And with that, all the Electron apps…

Can't fix

So after many many debugging sessions I finally found the real culprit for this issue here .. It has nothing to do with CSS, but with SVG. Who would have guessed?! I figured — it has something to do with the web-font, so there is this issue and also that issue . But in reality it is some regression in Firefox . Oh no. I have spent so many hours trying to figure out what’s going on. And now I…

Weird CSS

I am puzzled. My work laptop runs on macOS Catalina. Somehow it tricked me into updating, and here we are. After some pain in the beginning, now I can say I don’t have any issues with it. But I noticed something odd. Only on Catalina and only on Firefox, the syntax highlighting on this Website does not work. If I use any other Browser it is fine, and if I use Firefox on any other system…

Indentation

So, while digging around in some external library code I stumbled across this method: def format ( self , value ): if isinstance ( value , set ): value = list ( value ) return [ self . container . output ( idx , val if ( isinstance ( val , dict ) or ( self . container . attribute and hasattr ( val , self . container . attribute ))) and not isinstance ( self . container , Nested ) and not type (…

Updates

So, here are some updates. I am still alive, and I have not forgotten about that website. Originally I had the plan to write something new each month. It worked well in the beginning, but then stuff happened. Primarily: I have a new job! It’s a very good one, the company is pretty good, and I pretty much enjoy it there. Part of the company culture is the willingness to learn something new,…

Weird JavaScript

This is something I stumbled across a while ago. Someone on the internet said he was asked this question during an job interview: Can you think of a situation where this is true: a == 1 && a == 2 && a == 3 Well, yes. You have to ask the question, what a is. Is it a Number ? Obviously not. The solution is quite simple if you know how JavaScript works. You can define a to be an Object and overwrite…

Generate htpasswd entries with bcrypt

This week I was digging around in the configuration of my webserver. For some internal pages I am using Basic Auth . Looking at the password hashes I noticed they start with $apr1$ . What is that? The Apache documentation about password formats tells us that this is some kind of MD5 hash. Thanks, but no thanks (It’s a mystery to me why I decided to use this..). So let’s strengthen…

Fnord Day

Happy fnord day! 23 . 5

Live CSS editing on page

So, I just stumbled across something really cool! It is possible to edit CSS live on page! If you have some <style/> tag, you can add some style attribute to itself. First use display: block , so it shows up on page. And then the second trick: Add the contenteditable attribute, to make it changeable. < style style = "display: block;" contenteditable > /* ... */ </ style > That&rsquo;s it - new…

Calculate IPv6 link-local from MAC Address

While preparing for my final exams I stumbled across some question: Please calculate the IPv6 link-local Address from the following MAC Address&hellip; Good question. Well, it&rsquo;s pretty easy if you know how to do it. Let&rsquo;s say you have the following (hypothetical) MAC Address: 5f:4e:3d:2c:1b:0a First thing, you have to add some ff:fe in the middle: 5f:4e:3d:ff:fe:2c:1b:0a Now for the…

Catchall Mail

As a proud owner of a domain coupled with a mail server I have the freedom to use any mail address below that domain. So a long time ago I decided to use a catchall address. This is great, I can use it to track who is leaking my mail address (either by accident or on purpose - does not matter). So when I register somewhere using shabby-webshop@example.org and, after a certain period of time, spam…

Compound Words

In programming you always have the problem to join words together keeping the syntax intact and to keep at least some amount of readability. Those compound words got some names, so everyone knows what you are talking about. You might be familiar with: CamelCase - Maybe the most famous one, most people might know it from Wikipedia snake_case - Very popular in Python, but don&rsquo;t fall for that.…

Reading List

It&rsquo;s been a while since my last post.. Yes, I promised to write about my experiences of how I built this Hugo template , and yes, I haven&rsquo;t forgotten about it. FYI - it doesn&rsquo;t really look like it will get better in the near future: I can program quite well, but sometimes I have the impression, that I&rsquo;m not using the most optimal solution. Mostly I&rsquo;m lacking a general…

How light chains work

Every year, on Christmas I ask myself the same question: How does a light chain work? Why is it possible to blow a single light, but the others still work? Obviously they are connected in a row. I had the basic understanding that a light chain looks like this: This is how I thought a light chain would work&hellip; If you would open SW1A as depicted (= lamp is broken), all lamps would turn off,…

Hello Hugo

Say hello to my new site! You may have guessed it - I was not really happy with Ghost so I decided to use Hugo for this site now. The migration of the content was really a breeze. I wrote the entries in Markdown inside Ghost, so after all it was just copy pasting. It&rsquo;s great that Hugo supports aliases for URLs, so all the links should stay intact. You&rsquo;ll get redirected to the new…

Shortcuts on iOS - not even close!

I was very excited when Apple acquired Workflow , and I was more excited when iOS 12 finally came out with the all new Shortcuts app . I have the understanding that a platform can only be considered as a serious one, if it is possible to develop for it on itself. So any step to bring iOS closer to that goal is a good one. That&rsquo;s also why I was pretty excited. Shortcuts is of course a pretty…

Blog Template & the current state of JavaScript

I decided to recompile userland & kernel on the machine this blog is running on and naturally this will take a while. So why not use the time to write my first proper blog entry&hellip; In the last days I spend some time taking a closer look on the template for this blog. The reason why I decided to use Attila as theme is that it seems to care a little bit on privacy. If you click through the…

About

Welcome to my blog! I am a computer person currently living in Leipzig, Germany. This page is the place where I write about things I find interesting or I stumble upon. I like technology in general, that&rsquo;s also why I am currently working as backend software engineer and enjoy it very much. But I also can and often do system administration, frontend stuff, embedded development, know my way…

Hello World

What it is is beautiful. Update: This post was created as a test - after long hours of installing the server where this site runs on, writing configuration files and installing the blog software I was too tired to think of something more creative than that. Sorry about that, to see some more information, take a look at the about page .