BLOG

How do I see where all my big files are?

$du -sk * | sort -n 4 index.php 4 myicon.png 4 programming 4 python 4 README.md 4 wp-blog-header.php 4 wp-comments-post.php 4 wp-config-sample.php 4 wp-cron.php 4 wp-links-opml.php 4 wp-load.php 4 xmlrpc.php 8 english 8 readme.html 8 testing 8 wp-activate.php 8 wp-mail.php 8 wp-trackback.php 12 commandline 12 github 12 ui 16 webex 16 wp-settings.php 20 knowledge 20 …

Read More

Installing dig command on Debian

$sudo apt-get install -y dnsutils Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: libcaribou-gtk-module libcaribou-gtk3-module libebur128-1 libevent-2.0-5 libgdict-1.0-10 libgdict-common libgmime-2.6-0 libgnome-autoar-common libgom-1.0-common libjavascriptcoregtk-3.0-0 libnotmuch4 libpcre16-3 libperl5.24 libraw15 libsexy2 libwebkitgtk-3.0-0 libwebpmux2 python-olefile rename tcpd Use ‘sudo apt autoremove’ to remove them. The …

Read More

The SIGTERM signal is sent to a process to request its termination

$ps aux | grep nautilus jeffrin 3412 0.4 2.4 839692 96464 ? Sl 18:45 0:12 /usr/bin/nautilus –gapplication-service jeffrin 4714 0.0 0.0 12904 1064 pts/1 S+ 19:35 0:00 grep nautilus $kill -TERM 3412 $ps aux | grep nautilus jeffrin 4722 0.0 0.0 12904 1012 pts/1 S+ 19:36 0:00 grep nautilus $

Read More

Calling an external command in Python

$pwd /home/jeffrin/beautifulwork/github $ls beautifulwork-github.php beautifulwork-github.py $ls -l total 8 -rw-r–r– 1 jeffrin jeffrin 414 Dec 10 2016 beautifulwork-github.php -rw-r–r– 1 jeffrin jeffrin 1300 Dec 10 2016 beautifulwork-github.py $cat ../../ls.py from subprocess import call call([“ls”, “-l”]) $python ../../ls.py total 8 -rw-r–r– 1 jeffrin jeffrin 414 Dec 10 2016 beautifulwork-github.php -rw-r–r– 1 jeffrin jeffrin 1300 Dec 10 …

Read More

grep a file, but show several surrounding lines?

$grep -C 1 lambda doowli.py request = urllib2.Request(url) request.get_method = lambda : ‘HEAD’ try: $grep -B 1 -A 0 lambda doowli.py request = urllib2.Request(url) request.get_method = lambda : ‘HEAD’ $grep -B 1 -A 5 lambda doowli.py request = urllib2.Request(url) request.get_method = lambda : ‘HEAD’ try: response = urllib2.urlopen(request) return True except urllib2.HTTPError: return False $grep …

Read More

[PATCH] rfkill: print events when input handler is disabled/enabled

http://linux-wireless.vger.kernel.narkive.com/SOYsCn4X/patch-rfkill-print-events-when-input-handler-is-disabled-enabled

Read More

rfkill – RF kill switch support

https://www.kernel.org/doc/Documentation/rfkill.txt

Read More

Build A Debian Kernel Package

https://wiki.debian.org/BuildADebianKernelPackage

Read More