Geeklife
There are 553 posts filed in Geeklife (this is page 1 of 56).
Solving a 2FA (2 Factor Authentication) nightmare involving Circle.com and Bitcoin
How to stop Twitter SMS notifications from 40404
Things to think about when tuning libtorrent for high performance

An user on the libtorrent mailing list had the following problem: I’m doing some testing for a libtorrent application that will use a small number of peers (often just 1 seed and 1 downloaded) and high bandwidth delay product links (in the hundreds of Mb/s and 100ms+ round trip). I’m unable to get more than […]
command line speed test, see how fast is your server’s connection

Save the following script in a file called speed_test #!/bin/bash # Requirements # sudo apt-get install lftp iperf lftp -e ‘pget http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-desktop-amd64.iso; exit; ‘ make sure the file is executable: sudo chmod +x speed_test Once you have installed lftp and iperf make sure you have the script somewhere in your $PATH. The script basically downloads […]
IntelliJ / Adroid Studio / CLion / GoLand / PyCharm / PHPStorm keymap shortcuts I can’t live without

Download settings.jar (Import with `File -> Import Settings`) I got to IntelliJ after years of using Emacs and Eclipse. Here’s how my keymap looks now that I work with Jetbrains tools, these are the keyboard shortcuts I can’t live without as a programmer. Legend (Mac keyboard) ⌘ Command ⇧ Shift ⌘1 Show Intent Actions […]
How to create a list that holds different object types using `void*` in C.

I remember being in school back around 1998 and not knowing enough about C to do this. After coding in other languages, then going back to C++ and understanding at a lower level how references and pointers work, this was pretty easy to figure out. In this exercise I store elements of different types in […]