Valavil RESEARCH: BLOG

Illustration of a bird flying.
  • fold: Wrap input lines to fit in specified width

    $cat test.pl use strict; use File::Rename (); use Pod::Usage; main() unless caller; sub main { my $options = File::Rename::Options::GetOptions or pod2usage; mod_version() if $options->{show_version}; pod2usage( -verbose => 2 ) if $options->{show_manual}; pod2usage( -exitval => 1 ) if $options->{show_help}; @ARGV = map {glob} @ARGV if $^O =~ m{Win}msx; File::Rename::rename(\@ARGV, $options); } sub mod_version { print __FILE__ […]

    March 15, 2018
  • libevent – an event notification library

    http://libevent.org/

    March 14, 2018
  • command to install build-essential in debian ?

    $sudo apt-get install build-essential Reading package lists… Done Building dependency tree Reading state information… Done build-essential is already the newest version (12.4). The following packages were automatically installed and are no longer required: alsa-base ant ant-optional app-install-data aptdaemon aptdaemon-data bluez-alsa bluez-gstreamer bogofilter bogofilter-bdb bogofilter-common cryptsetup-bin diffstat esound-common espeak-data evolution-webcal firebird2.5-common-doc fonts-lyx fonts-sil-gentium fonts-sil-gentium-basic freerdp-x11 gcalctool […]

    March 13, 2018
  • 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 […]

    March 11, 2018
  • chkservice – tool for managing systemd units in terminal

    March 10, 2018
  • 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 […]

    March 9, 2018
  • 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 $

    March 8, 2018
  • 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 […]

    March 6, 2018
  • 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 […]

    March 4, 2018
  • libinput is a library to handle input devices in Wayland compositors and to provide a generic X.Org input driver

    https://www.freedesktop.org/wiki/Software/libinput/

    March 1, 2018
←Previous Page
1 … 7 8 9 10 11 … 120
Next Page→

Proudly powered by WordPress

 

Loading Comments...
 

    • Follow Following
      • valavil.in
      • Already have a WordPress.com account? Log in now.
      • valavil.in
      • Edit Site
      • Follow Following
      • Sign up
      • Log in
      • Report this content
      • View site in Reader
      • Manage subscriptions
      • Collapse this bar