FUN WITH LINUX

Replace text in files

3 April 2016

It’s pretty comfortable to search and replace text in files using perl and regular expressions. Using one single command we can search, replace and create backups of all the files at once.

Read more..
Tcpdump: capturing ipv6-packets only

22 March 2016

tcpdump -i eth0 ip6
Read more..
Lets Encrypt this blog...

19 March 2016

Letsenrypt

The connections to this blog are encrypted now. Youhuuuuu…..

Read more..
Snapper: Awesome Snapshot-Manager

11 March 2016

Snapper is a snapshot-manager for Linux. It can create, delete and compare snapshots and undo changes done between snapshots. It supports btrfs and LVM with thin-provisioning. Snapper can also automatically create snapshots(with cleanup strategies of old snapshots).

Read more..
Opening (g)vim in paste-mode

11 March 2016

Best Editor Of The World

I love to use keyboard shortcuts and many times I need an editor quickly to paste some things. Therefore it would be cool to open the best editor of the world in paste-mode.

gvim -c "set paste" -c "startinsert"
Read more..
LVM: Thin provisioned volumes

11 March 2016

If we create logical volumes using LVM we have to define a fixed size for this volume and all the space for this volume will be allocated on disk at once. In a thin provisioned setup this is different. It will just allocate the space used and it will grow dynamically.

Read more..
Bash: echo to stderr

9 March 2016

echo error >&2
Read more..
Filetransfer using netcat

7 March 2016

It’s quite easy to share files using netcat.

Serve a file on a listening port:

cat myfile.txt | nc -l -p 1337

Connect to this port and download file:

netcat SERVERIP 1337 > myfile.txt
Read more..
HackADay: Controlling power outlets using the Raspberry Pi

5 March 2016

My plan was to control some power outlets(16 ampere) using any browser(for example with a mobile phone). I wanted to use electronics only and tried to avoid relays.

Read more..
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 Unported License.

Copyright 2015-present Hoti