Linux tricks, tutorials, hardware

My blog will mostly talk about Desktop Linux & it's administration, general philosophy and software politics.

Wednesday, August 9, 2017

Using curb with custom verb/methods, headers and body.

›
The Easy method of Curb does not allow arbitrary request methods to be made. Instead of using Easy, you can use the Curl module. In curb...
Sunday, July 30, 2017

Script to group files/directories to reach the closest desired/target size.

›
Program takes a list of files and directories as a set of last arguments and outputs the paths of each of the files/directories which has be...
Monday, July 24, 2017

lxc-console prints duplicate characters (crippled/corrupt console).

›
This happen on Debian. After an upgrade to lxc 2.0.x, lxc-console does not work well. Produces duplicate characters, cannot log in because o...
Thursday, June 15, 2017

-flto-partition=balanced and -flto-partition=1to1 benchmark

›
I compiled grep and libpcre, once with balanced and once with 1to1 (and of course with -lto=4 in both the cases), and the result was that gr...
Friday, May 12, 2017

Persistent/resilient ssh sessions for unstable internet connections.

›
Long back SSH had introduced an experimental 'roaming' feature where changes to the ssh client IP resulted in resuming the session o...
Friday, May 5, 2017

Incremental backup system of your Android app settings and your data.

›
Phone is an unreliable device which can always be stolen and get bricked regardless of how expensive the phone is or how must reliable the m...
Tuesday, April 18, 2017

CSV to vcf/vcard converter (advanced edit android contact).

›
Spreadsheets are great! But only if you could use them to manage contacts, specially in your Android phone (or any standard compliant phone ...
4 comments:
Sunday, April 16, 2017

(semi)Static IPv6 for AWS.

›
EIP does not support IPv6, but you can still do it as long as you don't delete you VPC or make changes to your subnet. In the Interfac...
Saturday, April 15, 2017

Ultimate traffic shaping script (low prioritize/background your P2P/torrent/Bitcoin/gnutella/edonkey/emule traffic).

›
Sick of P2P traffic (like Bitcoin, torrents) hogging your Internet connection? This's the solution. It gives HTTP(S), SMPT, DNS, IM...
Saturday, March 25, 2017

Unique/Similar links/URLs grouper/sorter

›
This's a Ruby Library (and an accompanying app) -- https://rubygems.org/gems/LinkGrouper Which group similar links/URLs (or find unique ...
Saturday, February 25, 2017

Awk vs gawk vs ruby benchmark.

›
The input file contains lines start with a number or anything else. When a start with a number, it only contains 2 numbers space separated. ...
Sunday, February 5, 2017

Block device tester

›
I made this script to test block devices. First argument is the block device to test. #! /usr/bin/ruby # Will quit in case some corrupt b...
Sunday, November 20, 2016

ruby vs bash benchmark (loops comparison).

›
Bash relies highly on external commands which make it having a lot of overheads; it's the language of the command line, not a proper pro...
Thursday, November 17, 2016

nginx+fail2ban tutorial/document.

›
fail2ban + Nginx In this system fail2ban is supposed to parse nginx logs (customized) for 404 and 403 status codes and add...
Sunday, November 13, 2016

HTTRACK 'pasues' from time to time when mirroring.

›
Tired of this behaviour? No solution on the Internet? Mirroring progress slows down? Try switch -C0 or -C1. With -C0, you wont be able to ...
Saturday, August 20, 2016

Linux veth device benchmark with high and low mtu.

›
Veth devices where created -- ip link add name tstveth mtu 65535 type veth peer name tstveth0 mtu 65535 65535 is the highest MTU these d...
Wednesday, April 13, 2016

Enable electrolsys/e10s/multiprocessing on Firefox 45/ESR

›
Open "about:config" in the URL bar. Search for "browser.tabs.remote.autostart" and set it to true , then restart. Th...
Tuesday, March 29, 2016

Apache vs Nginx benchmark/How to make Apache faster than Nginx.

›
Unlike other benchmarks, both Apache and and Nginx have been tuned for best performance for the task they're doing (ser...
‹
›
Home
View web version
Powered by Blogger.