Notes Notes about different stuff


  1. microlight.js
    Created: — modified: — tags: javascript links

    a 2.2k library to hilight any coderead more

  2. MacOS autologin password
    Created: — modified: — tags:

    If you need to set it programmaticallyread more

  3. totp
    Created: — modified: — tags: bash

    A small shell script to generate one-time passwords, in bash, using oathtoolread more

  4. rss
    Created: — modified: — tags: links

    If someone wants to be notified about new posts in my blog via RSS, they can use a simple RSS generatorread more

  5. This is spam
    Created: — modified: — tags: logs

    These are e-mail addresses that sent spam/scam/phishing emails to me.read more

  6. Login attempts
    Created: — modified: — tags: logs

    These are logins and passwords of last 10k login attempts into my server.read more

  7. Relay attempts
    Created: — modified: — tags: logs

    These are spammers (or hackers) trying to send email from my serverread more

  8. Wrong users
    Created: — modified: — tags: logs

    Here you can find attempts to send messages to users who do not exist on this serverread more

  9. Block users in sendmail
    Created: — modified: — tags: sendmail

    How to disable mail receiving by local users without deleting their accountsread more

  10. Whitelisting emails with sendmail
    Created: — modified: — tags: sendmail

    So they weren't rejected by dnsbl spam filterread more

  11. Sendmail DKIM
    Created: — modified: — tags: e-mail

    Signing sendmail messages with DKIM using OpenDKIM is easier then you think!read more

  12. SMTP authentication in sendmail
    Created: — modified: — tags: sendmail

    By default sendmail is configured in such a way that any program running on localhost can send an email without password, and none from another computer can do that. But what if you want to change that?read more

  13. Reasonable spam filter in Postfix
    Created: — modified: — tags: postfix

    One of reasons why people switch from sendmail to postfix is ease of configuration.read more

  14. How to merge subtitles
    Created: — modified: — tags: ffmpeg links

    for example, to see them both in original and in your native languageread more

  15. Clear terminal scrollback on mac
    Created: — modified: — tags: mac

    TL;DR: printf 'e[3J'read more

  16. blog posts in grafana
    Created: — modified: — tags: grafana fun

    in case you missed RSS, you might enjoy another way of reading blog postsread more

  17. Decoding certificate inside Mac provisioning profile
    Created: — modified: — tags: mac bash

    Small script to help you debug this crypting xcodebuild error: exportArchive: Provisioning profile "XXX" doesn't include signing certificate "YYY"read more

  18. using public key cryptography to send a message
    Created: — modified: — tags: security

    How to send a message to your friend over insecure lines and be sure that only they can read itread more

  19. Burying an old friend
    Created: — modified: — tags: life

    Today I've accompanied my old friend on his last journey.read more

  20. textarea
    Created: — modified: — tags: html

    If you need a quick place to write down your thoughts and you find yourself in front of a web browser, then instead of launching notepad.exe you might want to type data:text/html,<textarea> in the address barread more

  21. How to make dark theme follow system theme on some websites
    Created: — modified: — tags: javascript

    If you happen to often switch between "dark" and "light" color themes on your system, you might be lucky enough that your browser picks it up properly and conveys to web sitesread more

  22. Change Konsole theme from command-line
    Created: — modified: — tags: linux

    If you happen to often switch KDE desktop themes and work in konsole (KDE terminal emulator) a lot, you might want to switch konsole color schemes, too. Instead of messing with "Manage Profiles" dialog and changing profile for each open konsole tab every time, you might want to automate it a bitread more

  23. Free Microsoft Windows IE/Edge VMs
    Created: — modified: — tags: links windows

    If you missed missed themread more

  24. git split commit
    Created: — modified: — tags: git

    TL;DR: git rebase -i, edit, git reset HEAD~ and create new commitsread more

  25. Space 9: collision decection on grid
    Created: — modified: — tags: space3d

    Unlike sector-based one, this uses more complex logic, but simpler mapsread more

  26. space2d3 7: colors and interceptions
    Created: — modified: — tags: space2d3

    Now you can intercept other ships! They can intercept you, and each others, too!read more

  27. expand * in bash prompt
    Created: — modified: — tags: bash

    TL;DR: ls <Esc>*read more

  28. space2d3 6: autosave and missions
    Created: — modified: — tags: space2d3

    Now your game doesn't disappear as soon as you reload the page, and also you can complete missions!read more

  29. space2d3 4: Flying from planet to planet
    Created: — modified: — tags: space2d3

    Now you can participate in "useless activity" together with outher shipsread more

  30. space2d3 5: Trading stuff
    Created: — modified: — tags: space2d3

    Ok, it's actually barter, but now you have a reason to travel.read more

  31. space2d3 3: radar, planets, and other ships
    Created: — modified: — tags: space2d3

    Now your ship can have a "radar" component, where you can look at a star systemread more

  32. space2d3 2: walking and (de)taching
    Created: — modified: — tags: space2d3

    Now you can walk on your ship... And others, tooread more

  33. space2d3 1: a bigger game about flat space
    Created: — modified: — tags: space2d3

    Idea it to make a mix of space1d and space2d2 games (I'm not very good at naming things)read more

  34. Preserving your Linux laptop battery health
    Created: — modified: — tags: linux

    by limiting its charge to 90%read more

  35. How I started working at reMarkable
    Created: — modified: — tags: life remarkable

    Due to reorganisation at my previous place of work, several people were offered to leave, including me.read more

  36. csv2vcf (or rather tsv2vcf)
    Created: — modified: — tags: bash

    If you're (un)lucky and your employer stores all employees' contact data in a spreadsheet (instead of vcards or not giving you easy access to it at all), you can easily convert it to VCF (VCard Format file) and upload to your private WebDAV server! How? Pretty easyread more

  37. Un-busting GRUB with arch-chroot
    Created: — modified: — tags: linux

    properly this timeread more

  38. Fun with webdav
    Created: — modified: — tags: nginx

    Playing with a fancy old technologyread more

  39. How to add custom keyboard layout on Linux
    Created: — modified: — tags: linux

    I accidentally ᚦᛖ᛫ᚱᚢᚾᛖᛋread more

  40. "Dulles' Plan" and "Com­mu­nist Rules for Rev­o­lu­tion"
    Created: — modified: — tags: fun

    Mirror conspiracy theoriesread more

  41. Windows 93
    Created: — modified: — tags: fun links windows

    HTML parody of an OS which was popular when we were young and Internet was newread more

  42. space2d2 4: modes, animation, and github
    Created: — modified: — tags: space2d2

    this game got its own (sub)domain!read more

  43. random
    Created: — modified: — tags:

    Click this link to visit a random noteread more

  44. space 2d 2: first UI with a view on horribly unbalanced economy
    Created: — modified: — tags: space2d

    It's playable now… if you can call it that :-)read more

  45. space2d2 3: the finished game
    Created: — modified: — tags: space2d2

    A space trading game without moneyread more

  46. space2d2 2: Portals
    Created: — modified: — tags: space2d2

    One star is good, but more stars is betterread more

  47. space2d2 1: a simple game about flat space
    Created: — modified: — tags: space2d2

    Making a properly balanced economy simulator is pretty hard, as it turns out. But can I make a simpler 2d game?read more

  48. Flickr background for a webpage
    Created: — modified: — tags: javascript

    Another attempt to add something nice to this blogread more

  49. Defrag SSD in VM on HDD
    Created: — modified: — tags: windows

    Even if OS sees a storage device as SSD and refuses to defrag it - you might know betterread more

  50. How I started working for Opera Software
    Created: — modified: — tags: opera life

    My first experience in getting a jobread more

  51. Sorting sent email
    Created: — modified: — tags: e-mail

    How to automate it if you host your mail yourselfread more

  52. Space 8: collision detection
    Created: — modified: — tags: space3d

    Now you can't go outside the shipread more

  53. Javascript canvas drag-and-zoom library
    Created: — modified: — tags: javascript

    For those cases when you need to implement something GoogleMaps-likeread more

  54. AutoSSH with SystemD
    Created: — modified: — tags: linux

    a simple unit file to keep a permanent SSH connectionread more

  55. Robots only
    Created: — modified: — tags: fun

    Access for robots onlyread more

  56. Read stdin OR a file passed as argument in bash
    Created: — modified: — tags: bash

    TL;DR: cat "${1:-/dev/stdin}"read more

  57. Fixing the y2k problem
    Created: — modified: — tags: fun

    Or should I say "why-too-key" to raise more confusion?read more

  58. Ed, man! !man ed
    Created: — modified: — tags: fun

    From: Patrick J. LoPresti
    Subject: The True Path (long)
    read more

  59. Colors 3
    Created: — modified: — tags: css

    A nicer version of CSS-only 2D background gradientread more

  60. Colors
    Created: — modified: — tags: javascript

    Let's add a colorful background to this blog, hm?read more

  61. Colors 2
    Created: — modified: — tags: css

    A CSS-only version of fancy 2D background gradientread more

  62. GitHub Flavored Markdown
    Created: — modified: — tags: net

    After some time of pondering, I switched to GitHub-Flavoured Markdown (GFM)read more

  63. How to decrypt Jenkins passwords
    Created: — modified: — tags: jenkins cfengine

    with the help of script consoleread more

  64. Busybox-only pstree
    Created: — modified: — tags: bash

    For when you're on limited environment but want to see a process treeread more

  65. CFEngine Failed to establish TLS connection bootstrap error
    Created: — modified: — tags: cfengine

    Maybe agent's IP is not among allowed ones?read more

  66. Grace Hopper - Grandma COBOL
    Created: — modified: — tags: history

    Also known for "First actual case of bug being found" noteread more

  67. Minimizing size of browser profiles backups
    Created: — modified: — tags: bash chromium firefox windows

    how to minimize them about 10-foldread more

  68. Hottentotten
    Created: — modified: — tags: fun

    A small language sessionread more

  69. World domination
    Created: — modified: — tags: fun games politics

    Experience after playing a flash gameread more

  70. Strange games
    Created: — modified: — tags: games

    A website with a provoking name features funny gamesread more

  71. Search-friendly calculator
    Created: — modified: — tags: fun

    a site with infinite number of pagesread more

  72. mirrors
    Created: — modified: — tags: links

    Primary location of my blog isread more

  73. From 512kb.club to GTmetrix API library
    Created: — modified: — tags: life

    How reading one habr.com blog post caused a chain of events leading up to me writing a good documentation for a pet projectread more

  74. Browser security on Linux
    Created: — modified: — tags: linux security

    A good article that summarizes my own thoughts on hardening browser on Linuxread more

  75. asciimation
    Created: — modified: — tags: fun links

    Star Wars in ASCII artread more

  76. space 1d 1: combat
    Created: — modified: — tags: space1d

    Adding some action to the simple game prototype.read more

  77. space 1d 7: Ship names, memory, and feelings
    Created: — modified: — tags: space1d

    Ships are now vindictive and base their decisions (attack or trade) based on previous player behaviorread more

  78. space 1d 5: Costly approach
    Created: — modified: — tags: space1d links

    Changes in physicsread more

  79. space 1d 4: Trading and bluffing
    Created: — modified: — tags: space1d

    more choicesread more

  80. space 1d 3: Making ship yours
    Created: — modified: — tags: space1d

    The game is playable now!read more

  81. space 1d 2: more ships
    Created: — modified: — tags: space1d

    Moving forward with a simple game.read more

  82. space 1d 6: Stats
    Created: — modified: — tags: space1d

    One step forward, one step backread more

  83. space 1d 8: Colors, stats, challenge mode
    Created: — modified: — tags: space1d

    Ships now have colors and like you from the first encounter if your ships color is close to theirs. But still, to change it you need to decrease your karma below -1.read more

  84. Why isn’t PSR.exe well known?
    Created: — modified: — tags: windows

    Short memo about a good programread more

  85. Rsync backups
    Created: — modified: — tags: bash

    How I organized backups of my filesread more

  86. rlwrap
    Created: — modified: — tags: linux

    Short memo about a good programread more

  87. If you're trying to learn Vim...
    Created: — modified: — tags: vim

    ...then you're doing it wrong.read more

  88. Macro to excange two values in Vim
    Created: — modified: — tags: vim

    You probably know ddp command in Vim to exchange two lines. But what if you want to exchange only parts of these lines?read more

  89. Vim prank
    Created: — modified: — tags: vim fun

    An idea for an evil prank on your Vim-loving friend.read more

  90. 13th container
    Created: — modified: — tags: postfix

    With dehydrated being 12th container to be added to my infra, this is 13th.read more

  91. Send-only DKIM milter
    Created: — modified: — tags: postfix

    How to configure Postfix to skip milter for incoming messagesread more

  92. DKIM signature online test
    Created: — modified: — tags: net e-mail

    If you ever wanted to see how validity of DKIM signature will be affected by changing email headers and / or message bodyread more

  93. DynDNS DIY
    Created: — modified: — tags: net bind

    Why use someone else's Dynamic DNS server, if you can easily run your own?read more

  94. Using HTTP Basic auth for nginx mail auth http server
    Created: — modified: — tags: nginx net

    How hard can it be? Using only nginx itself!read more

  95. Google Translate
    Created: — modified: — tags: norway fun

    Sometimes it's wrong... completely... sometimes...read more

  96. Hacker Typer on TV
    Created: — modified: — tags: fun

    A quick note about a funny site and a video featuring it.read more

  97. space 2d 1: a game which plays by itself
    Created: — modified: — tags: space2d

    a humble beginningread more

  98. Space 7: another ship
    Created: — modified: — tags: space3d

    Let's have something to look at!read more

  99. Space 6: on a ship
    Created: — modified: — tags: space3d

    FPV mode, so we can walk on the shipread more

  100. Space 5: back to square one
    Created: — modified: — tags: space3d

    Changing the engineread more

  101. Space 4: a ship
    Created: — modified: — tags: space3d

    Let's build a real shipread more

  102. Space 3: person on the ship
    Created: — modified: — tags: space3d

    Now we want to have a character (a pilot) to walk on the ship.read more

  103. Space 2: Camera on the ship
    Created: — modified: — tags: space3d

    Let's put a camera onto the ship, to get some FPV experienceread more

  104. space 1d 0: idea
    Created: — modified: — tags: space1d

    Game about space which will be more fun to make than to play.read more

  105. Space 10: Finished game about combat
    Created: — modified: — tags: space3d

    My first (almost) finished gameread more

  106. Space 1: Movement
    Created: — modified: — tags: space3d

    First step is moving the shipread more

  107. Space 0: Idea
    Created: — modified: — tags: space3d

    What I want to create and what to base onread more

  108. Different keyboard layouts for different keyboards
    Created: — modified: — tags: linux

    On Linux, you can have different keyboard layouts for different physical keyboards. How? Easy!read more

  109. catfs
    Created: — modified: — tags: linux

    A FUSE module that shows a list of files as one big file.read more

  110. How to combine audio and video with ffmpeg
    Created: — modified: — tags: linux

    When you downloaded them separatelyread more

  111. When not to use Alpine
    Created: — modified: — tags: linux python

    When you use scripting languages and want to squeeze some performance.read more

  112. Bluetooth Pairing Keys Location
    Created: — modified: — tags: windows linux bluetooth

    In case you need to switch between various OSes (be it Windows and Linux, or just various Linux distros).read more

  113. Passwords
    Created: — modified: — tags: security links

    How to generate them, so you could store them in your headread more

  114. Using hdparm to hide S.M.A.R.T. errors
    Created: — modified: — tags: linux

    TL;DR: sudo hdparm --repair-sector SECTOR /dev/sdxread more

  115. Why UNIX commands are short
    Created: — modified: — tags: linux history links

    Because keyboards were hardread more

  116. lazyblog
    Created: — modified: — tags: bash javascript

    a static blog generator which tries to do as little as possible on the server sideread more

  117. O RLY Book Cover Generator
    Created: — modified: — tags: fun links

    For all your slack needsread more

  118. Emoji programming
    Created: — modified: — tags: fun

    How would it lookread more

  119. Web before CSS
    Created: — modified: — tags: css history links

    A brief dive into a history of early webread more

  120. A history of VISA
    Created: — modified: — tags: history links

    An interesting article showing how credit cards appearedread more

  121. Downloading games from… The radio!
    Created: — modified: — tags: history links

    Interesting article about how software was distributed in old times.read more

  122. Why SQLite succeeded as a database
    Created: — modified: — tags: history links

    Interview (with a transcript) with its creator.read more

  123. Turbo Pascal speed
    Created: — modified: — tags: links

    It was the first programming language I was learningread more

  124. Input lag
    Created: — modified: — tags: links

    Interesting article about speed of modern computersread more

  125. Designing Windows 95
    Created: — modified: — tags: history links

    An interesting article about designing of common UI elements which we now are taking for granted.read more

  126. How to use parameters to set working directory in org mode code block
    Created: — modified: — tags: org

    For when you want working dorectory (:dir) be a parameter, just like variable (:var)read more

  127. Debugging Google Maps in Opera
    Created: — modified: — tags: opera links

    How it was done. 10 days of obfurscated Javascript.read more

  128. Patch for avfs to show "magic" dirs
    Created: — modified: — tags: linux

    Suggestion to improve its usabilityread more

  129. Fastest way to find duplicate files
    Created: — modified: — tags: linux links

    TL;DR: it's an app called "dupd"read more

  130. Using true instead of echo to debug bash scripts
    Created: — modified: — tags: bash

    TL;DR: When running scripts with bash -x, use true … instead of echo …, to avoid duplicate outputread more

  131. set -e inconsistency inside blocks
    Created: — modified: — tags: bash

    set -e might work not as you expected inside (parentheses).read more

  132. Transferring huge sparse files
    Created: — modified: — tags: linux bash python

    How to transfer a terabyte sparse file (of which only a hundred megabytes is used) from one machine to anotherread more

  133. busybox httpd file upload
    Created: — modified: — tags: bash net linux

    busybox has a nice http webserver module, even with cgi support - and you can use it to upload files, tooread more

  134. Random port number
    Created: — modified: — tags: links net

    How to get a random port number for a small serviceread more

  135. History of the browser user-agent string
    Created: — modified: — tags: history links

    Interesting dive into how Internet became the mess that it is nowread more

  136. Download any Chromium build
    Created: — modified: — tags: python chromium

    Is it hard to download any Chromium build?read more

  137. How to configure access rules in CFEngine via json only
    Created: — modified: — tags: cfengine links

    A bit of policy magic to avoid writing policyread more

  138. How to limit SystemD units (services) to use only one CPU core
    Created: — modified: — tags: cfengine linux links

    TL;DR: make a cgroup and assign processes into them, in the systemd .service fileread more

  139. How to install extensions to CFEngine's PostgreSQL
    Created: — modified: — tags: cfengine

    TL;DR: copy libs to /var/cfengine/lib/postgresql/ and extensions - to /var/cfengine/share/postgresql/extension.read more

  140. How to download folder without creating archive
    Created: — modified: — tags: bash

    TL;DR: use tar and pipe to stdout!read more

  141. Auto backup on mount
    Created: — modified: — tags: bash

    Automatically backup files on media mount, using usbmountread more

  142. Printer
    Created: — modified: — tags: life

    We have one nowread more

  143. Hacker's Keyboard for N-05e
    Created: — modified: — tags: android

    Compatibility patchread more

  144. bevacqua
    Created: — modified: — tags: links

    Github user with a bunch of interesting Javascript projects/reposread more

  145. finnsender
    Created: — modified: — tags: norway links

    Map of all cell towers in Norwayread more

  146. The Mother of All Demos
    Created: — modified: — tags: history links

    RIP Douglas Engelbart, the person who shaped the modern computing. Oh, and a computer mouse.read more

  147. How to call (dial a number) or send SMS from command line in Android or iPhone (iOS)
    Created: — modified: — tags: bash android

    Note that to get command line on iPhone, you need to jailbreak it first.read more

  148. Flickr feed generator for xscreensaver
    Created: — modified: — tags: bash net linux

    Helping you to get many big images from flickr to your xscreensaverread more

  149. Forward SMB via SSH tunnel
    Created: — modified: — tags: bash windows linux

    When SSH is your poor man's VPNread more

  150. RIP Steve Jobs
    Created: — modified: — tags: history

    You brought technology closer to peopleread more

  151. Download old Firefox build
    Created: — modified: — tags: firefox links

    deb packages for all versions starting with 3.5read more

  152. KaTeX
    Created: — modified: — tags: javascript links

    Good library for those willing to implement TeX formulas in their blogsread more

  153. Linux file hierarchy
    Created: — modified: — tags: links

    All these /bin /usr /local etc...read more

  154. This is Norway
    Created: — modified: — tags: norway fun

    A funny video about Norway and norwegiansread more

  155. Everything Is Amazing And Nobody Is Happy
    Created: — modified: — tags: fun

    Good monologue about modern technology and our reaction on itread more

  156. RIP Dennis Ritchie
    Created: — modified: — tags: history

    One of creators of C programming language passed away todayread more

  157. CFEngine Master Policy Framework where to put files
    Created: — modified: — tags: cfengine

    That was a google query I struggled to find answer toread more

  158. TComment
    Created: — modified: — tags: vim links

    vim plugin for easy commentingread more

  159. How I started working at CFEngine
    Created: — modified: — tags: life cfengine

    Soon after change of owner in Opera, just another round of layoffs rolled through the company, this time affecting also me.read more

  160. Security dream
    Created: — modified: — tags: security life

    I had a dream. A nightmare, actually.read more

  161. Cloud videos
    Created: — modified: — tags: life

    read more

  162. Check for running Opera on Windows
    Created: — modified: — tags: opera python windows

    Currently (Opera 15-18), when you start Opera on Windows, it spawns itself again and terminates the process you started — so you can't easily wait until the Opera you've started quit. Or can you?read more

  163. Progress bar in bash
    Created: — modified: — tags: bash

    one-line bash function to draw a nice progress barread more

  164. DOS games in your browser
    Created: — modified: — tags: games

    Classic which can never be forgotten is just few clicks away.read more

  165. Block spam from subdomains
    Created: — modified: — tags: e-mail

    If you have a domain and don't want to be blocked for sending spam.read more

  166. Adjusting time
    Created: — modified: — tags: politics

    What do I think about it and how I'd like it to be.read more

  167. Ze Drem
    Created: — modified: — tags: fun

    EuroEnglish - Ze drem vil finali kum tru!read more

  168. Conditional formatting in Python
    Created: — modified: — tags: python

    Greately inspired by $if(...) conditions in Winamp Advanced Title Formatting, I wanted to add something like this to Python.read more

  169. Finding tar archive size without actually making it
    Created: — modified: — tags: bash

    TL;DR: --totals --file=/dev/null | grep 'Total bytes written'read more

  170. Redirecting custom file descriptor to subprocess
    Created: — modified: — tags: bash

    TL;DR: 3> >(command)read more

  171. Reducing JPG File size
    Created: — modified: — tags: net links

    An interesting article on how to save space and bandwidthread more

  172. sed cheatsheet
    Created: — modified: — tags: bash

    A helpful guide to a simple programming language I still don't comprehendread more

  173. MiniCodeEditor: jsFiddle in as few bytes as possible
    Created: — modified: — tags: javascript

    probably you've already heard about MiniCodeEditor — jsFiddle implementation in 161+ bytes. Below is my addition to that jsgolfread more

  174. Incremental backups
    Created: — modified: — tags: bash

    How I organised backups of my machineread more

  175. FanlessTech
    Created: — modified: — tags: links

    FanlessTech.com – a website about fanless computersread more

  176. XP games
    Created: — modified: — tags: links games windows

    A webpage with a list of free games for Windowsread more

  177. How to Win at Monopoly and Lose All Your Friends
    Created: — modified: — tags: links

    An interesting article at imgur.netread more

  178. careceo
    Created: — modified: — tags: e-mail

    These are the guys who are spamming me the most.read more

  179. Bash on Bash
    Created: — modified: — tags: bash

    Started using new programming language, I feel irritated and want to blog about it :)read more

  180. Dovecot default email order
    Created: — modified: — tags: e-mail

    How to change it, if it mattersread more

  181. NationStates - make a country of your dreams
    Created: — modified: — tags: politics links

    I'd like to add "...and live in it", but it's only a game, so it's more like "...and dream of it"read more

  182. The Flat Earth Society
    Created: — modified: — tags: fun links

    How much can you tease your brain?read more

  183. How to delete a line from a file
    Created: — modified: — tags: bash vim

    If you know what line to delete...read more

  184. Gapminder
    Created: — modified: — tags: links

    Explore data about all countries in the world since 1800read more

  185. Markdown
    Created: — modified: — tags: net

    Bashblog uses Markdown, so it's better to save this page for myselfread more

  186. Paste and replace in Vim
    Created: — modified: — tags: vim

    How to copy-paste text from one place to another, replacing what's already thereread more