Tech notes & snippets

Random assortment of little snippets and hiccups I came them useful (or at least amusing). Got something to add / correct? I' love your feedback.

Fedora DKMS issues with Wireguard

January, 29th 2020
This has been bugging me for a bit: Every other week when installing system updates the wireguard package broke and I could no longer establish connections or restart the wg-quick service: $~: sudo

Disabling Bluetooth on system boot in Fedora

November, 21th 2019
If you're running Fedora Linux without any desktop environment it's probably good to take a look at powertop from time to time. Normally I would have GNOME or KDE manage Bluetooth for me, but

Upgrading a Rancher 2.x installation

July, 16th 2019
This script is mostly an adaptation of the Rancher 2.x Backup manual, molded into a single script that can be automated further by you. It obviously won't fit everybody but so far it has done me

Direnvin combination with Passwordstore

August, 09th 2018
I'm using the brilliant pass utility to manage passwords and user accounts for myself and across different shared teams. Often enough I'm working in projects where different utilities like

Ruby on Ice: A quick glance at our budget

April, 30th 2018
I wanted to to publish this blog post for a while now, but time's been running fast and now it's already three months since Ruby on Ice 2018 took place. This isn't a recap – if you want to

Migrating to Hugo 0.3x

March, 03th 2018
My personal relation with Hugo has been a mixed bag but so far I'm still happy with it - especially since it supports native org-mode with version 0.19. Trouble during the 0.3-something update

Install the Backup Gem in Fedora (Server)

October, 03th 2016
The marvellous backup Gem isn’t available as a pre-packaged RPM and as Fedora is missing a simple =build_essentials=-Style meta package, there are some dependencies you’ll have to provide,

Access Logstash JSON objects

August, 08th 2016
If you want to access Logstash log values buried deep in objects, be sure to use the bracket-syntax, as [object.field.name] won’t get you anywhere. This is the way to go, e.g. for mutate{}:

Access MongoDB Shell from docker

July, 05th 2016
Sometimes it’s the little things in life. For example trying to connect to a MongoDB instance over and over again, without getting attached to a proper shell. $ docker run --rm --net=host mongo

Recover stuck RancherOS after upgrade to 0.4.5

June, 29th 2016
Just tripped into that one: I upgraded a Rancher host to 0.4.5, rebooted it & somehow only the system-docker daemon came up. The user facing container was stuck in a reboot loop: CONTAINER ID

Enabling emacs style shortcuts in GNOME

April, 01th 2016
Emacs aficionado? Want to use your beloved keyboard movements everywhere – including Firefox? Turns out this is just one command away: $ gsettings set org.gnome.desktop.interface gtk-key-theme

Enabling public key authentication in CentOS

February, 13th 2015
If you are wondering why CentOS is ignoring your ~/.ssh/authorized_keys file for a user you created with an interactive script or e.g. using Puppet – check that you restored the SELinux context in the

Choosing a Vagrant default provider

December, 12th 2013
If you are using the VMWare Fusion or Workstation Providers with Vagrant, you are likely to have VirtualBox Installation left on your machine. At least that’s the case for me. So if you’re

Adjusting the Crunchbang cursor size

October, 17th 2013
Firing up Crunchbang in dual screen mode (via arandr) made the cursor appear huge on some windows. A quick duck duck go search revealed this forum post, which had the correct solution: Just adjust

Building a Vagrant VMware base box for CentOS 6.4

October, 07th 2013
If you followed the ‘semi official’ guides for installing the vmware-tools in CentOS 6, you might end up with a box that has all necessary tools installed, but won’t load them at

Unzipping encrypted (win)zip files in linux

July, 17th 2013
Last week I got my hands on an »encrypted« .zip file, the built-in zip command wouldn’t eat: {% highlight bash %} $ unzip vpn.zip Archive: vpn.zip skipping: vpn/my-config-file.ovpn need PK

Emulate a robots.txt file with a simple nginx directive

June, 20th 2013
If you use nginx as a reverse proxy, you might want to emulate a simple robots.txt file just to be sure that Googlebot doesn’t traverse into each and every location. So why bother serving those

Bootstrap a Vagrant VM before running the provisioner.

June, 08th 2013
This might not be the most elegant way to deal with this problem, but often enough I find myself in a situation in which I try to run bootstrapping-stuff in my puppet-manifests or run a simple apt-get

Subsonic won't play MP3 or AAC files

June, 05th 2013
I’m currently running my private trial in hosting Subsonic as my personal Spotify-Replacement. So far everything worked out well unless I noticed that it kept skipping all the songs I’ve

Importing Posterous archives into Jekyll

June, 04th 2013
As I got dropped from posterous I was searching for a simple solution to import my old posterous content into a simple Jekyll Blog structure. All the other importers I tried had problems importing my

re-init

June, 03th 2013
Let’s get this started again. Ever since Posterous shut down their platform I’ve wanted to move my old tech.bascht.com snippet-blog to my own site. I am using Octopress for my main blog at

Getting the EPSON CX11NF to work with Linux

December, 10th 2012
Linux. And printing. Well that’s another chapter. In my current office there is a EPSON AcuLaser CX11(NF) - the setup is fairly simple (if you know the hoops you’ll have to jump through).

5 Scary Things That Facebook Knows About You

January, 01th 0001
Amidst the privacy policy debacle that Facebook is facing, another tip off from one of their employee is definitely not helping their current situation. An interview with an anonymous Facebook

An interview with Andrew Plotkin : The Setup

January, 01th 0001
Because if your typing doesn't sound like a hailstorm on a tin roof, you're not typing. via andrew.plotkin.usesthis.com Quiet amusing usesthis Interview with Andrew Plotkin.

Apaches little helpers

January, 01th 0001
I installed my mamp stack via macports, so the normal GUI-tools of Mac OS won't let me toggle any services. Coming from the Linux / init world thats my bumbling approach to have a quick startup-script

Applying Mathematics To Web Design - Smashing Magazine

January, 01th 0001
Mathematics is beautiful.” This may sound absurd to people who wince at numbers and equations. But some of the most beautiful things in nature and our universe exhibit mathematical properties, from

Compass CSS

January, 01th 0001
via compass-style.org Compass is a stylesheet authoring tool that uses the Sass stylesheet language to make your stylesheets smaller and your web site easier to maintain. Compass provides ports of

Don’t be afraid of PHP 5.3 | Juozas devBlog

January, 01th 0001
While attending PHPUK conference in London, I noticed how much talk there is about PHP 5.3 and “when to upgrade?”, there was even a presentation about that. Because I have been using PHP 5.3 for more

Everyone thinks they're hiring the top 1 percent

January, 01th 0001
By the way, it's because of this phenomenon—the fact that many of the great people are never on the job market—that we are so aggressive about hiring summer interns. This may be the last time these

Exclude .svn subdirectories in your grep search

January, 01th 0001
Just a little reminder for myself: In 93 of 95 cases i want to exclude all of the .svn subdirectories lying around in my working copy. Andreas brought that one to my mind again with a nasty forest of

Expedia on how one extra data field can cost $12m

January, 01th 0001
Online travel firm Expedia has found that data analytics can deliver a multi-million dollar kick to a company's bottom line. The company used analytics to identify a single change to a web page that

FBI drive for encryption backdoors

January, 01th 0001
According to the proposal, any company doing business in the States could not create an encrypted communication system without having a way for the government to order the company to decrypt it, and

fguillen/simplecov-rcov - GitHub

January, 01th 0001
SimpleCov Rcov Formatter gem Is a Rcov style formatter for the ruby 1.9+ coverage gem: SimpleCov. The target of this formatter is to cheat on Hudson so I can use the Ruby metrics plugin with

Fixing apache2 on Ubuntu 10.04

January, 01th 0001
Everything went well after upgrading my Ubuntu LTS installation to 10.04 LTS until I noticed that apache and lighttpd won't come up after a system reboot. I thought it might be a small hickup with the

Fuzz Box: Resign Patterns

January, 01th 0001
2.5 Fromage The Fromage Pattern is often full of holes. Fromage consists of cheesy little software tricks that make portability impossible. The older this pattern gets, the riper it smells. via

Germany.rb 2010 in Leipzig

January, 01th 0001
Germany.rb 2010 in Leipzig Am 18. und 19. September 2010 findet im sublab in Leipzig zum ersten Mal das Ruby User Treffen Germany.rb statt. Eingeladen ist jede an Ruby Interessierte Person –

Google Instant Makes SEO Irrelevant

January, 01th 0001
Google today launched an ambitious effort to speed up searching. But what they really did is kill SEO. Google says: "Google Instant is a new search enhancement that shows results as you type. We are

Hello, Posterous.

January, 01th 0001
Though there's a permanent need to post tech stuff to my primary blog at http://blog.bascht.com, I wanted to keep that place more like a personal weblog, e.g. clean. So what you're seeing here, is the

Hudson's future | Hudson Labs

January, 01th 0001
Second, out of respect for Oracle's trademark claim on Hudson, we will move our infrastructure off of Oracle-owned and hosted servers, and we will rename existing independent components of the

Installing the ruby-filemagic gem via bundler on OSX

January, 01th 0001
If you're running into trouble when installing the ruby-filemagic gem on Mac OS X: Installing ruby-filemagic (0.4.2) with native extensions /Users/bascht

Kill Your To-Do List | Zen Habits

January, 01th 0001
Those who don’t have a to-do list probably feel they should, because they’re swamped and feeling overwhelmed. I’m here to suggest: kill your to-do list. via zenhabits.net Good read. Especially If

Ksplice - Hello from a libc-free world!

January, 01th 0001
As an exercise, I want to write a Hello World program in C simple enough that I can disassemble it and be able to explain all of the assembly to myself. This should be easy, right? via

lolbash.sh

January, 01th 0001
# LOL!!1 alias wtf='dmesg' alias onoz='cat /var/log/errors.log' alias rtfm='man' alias visible='echo' alias invisible='cat' alias moar='more' alias icanhas='mkdir' alias donotwant='rm' alias

Mac & the iPad

January, 01th 0001
Unlike Microsoft in the early days, these guys move fast, and they add real additional value along the way. via asktog.com Good essay on the parallels between iPad and the first Macs. (via Slashdot)

Master Foo and the Ten Thousand Lines

January, 01th 0001
“And who better understands the Unix-nature?” Master Foo asked. “Is it he who writes the ten thousand lines, or he who, perceiving the emptiness of the task, gains merit by not coding?” Upon hearing

Run Effective, Google-Style Meetings - Lifehacker

January, 01th 0001
via lifehacker.com

Say Something Nice About Every Language You’ve Used

January, 01th 0001
In Michael Easter’s recent post, I was struck by his comment that Guy Steele like all languages. Seems like a pretty chill way to live a programming career. So I wondered, do I like all languages? Can

Scott Chacon | The Geek Talk

January, 01th 0001
At GitHub we don’t have a project tracker or todo list – we just all work on whatever is most interesting to us. No standup meetings, burndown charts or points to assign. No chickens or pigs. It’s

Secured Typing - The Daily WTF

January, 01th 0001
Gary's company has an "enterprise" application, and like any enterprise application, it was built to be all things for all people, by people that didn't have a clear picture of which things it was

Skip closing Brackets in VIM

January, 01th 0001
I love VIM and I recently stumbled upon a feature that you probably know from TextMate: Skip the Closing bracket when typing. Sure. VIM can do that. inoremap ( () inoremap ) strpart(getline('.'),

Slicehost Articles: Ubuntu Lucid Setup - Part 2

January, 01th 0001
If the code doesn't match what it should be for the localization you would like to use for your slice (or if it uses a generic locale like 'POSIX'), run something like the following commands: sudo

Solve the Problem, Calm the Client & Save the Project

January, 01th 0001
We’re always talking about tough clients, bad clients and boring clients. But what about the great clients who are simply having a hard time? When you work remotely, it can be difficult to tell when

Soon to come: Symfony definitive guide for 1.3 and 1.4

January, 01th 0001
Hi all, I'm listening... but I needed some time to think about the topic a bit more before answering. Here are my thoughts(…) via groups.google.co.uk Looks like Fabien is definitely one of those

Spamassassin FH_DATE_PAST_20XX test buggy in 2010

January, 01th 0001
It seems there is an issue with the Spamassassin FH_DATE_PAST_20XX test. This test checks whether the email has a date in the future and, if this is the case, raises the message’s score. Apparently,

Symfony Live Conference, Symfony 2.0 and DI

January, 01th 0001
Now if some people cannot accept that Symfony 2 is really fast and if they cannot accept that Symfony 2 is great step forward for PHP, that's sad. The web evolves very fast. Competition is everywhere

Thank you, Rails

January, 01th 0001
This is all pretty understandable: it’s easy to define community in terms of what we’re not. A common enemy focuses and drives us. Competition can take a positive form: when it’s friendly and

The MIT Hacker Ethic

January, 01th 0001
Steve Levy, author of Hackers: Heroes of the Computer Revolution," outlined the hacker ideal at MIT as consisting of the following principles: Sharing Openness Decentralization Free access to

tmux settings for screen + vim fans

January, 01th 0001
If you don't mind, I'd share my tmux config with you. I have mapped the control key to <ctrl> + <a> because I also got some boxes with GNU Screen flying around and I just can't remap my