rubysecurity.org

Cloud Architect / DevOps Engineer / SRE / Developer | /root

Home About Books Blog Portfolio Archive

Tag Cloud


Currently Reading

Certified Kubernetes Administrator (CKA) Study Guide
Certified Kubernetes Administrator (CKA) Study Guide
38 / 155 Pages


Latest Book Reviews

Latest Posts


December 17, 2011

Removing blank lines in a text file

by Alpha01

sed '/^$/d' example_file
Tags: [ bash ]
December 16, 2011

Vim - Removing the last character of each line in a file

by Alpha01

In command mode:

:%s/.$//g
Tags: [ vim ]
December 9, 2011

Identifying your version of GNU/Linux

by Alpha01

tony@debian01:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 6.0.3 (squeeze)
Release:	6.0.3
Codename:	squeeze
Tags: [ centos ubuntu ]
December 2, 2011

Monitor your public IP

by Alpha01

My simple yet effective home public IP monitoring script.

#!/bin/bash

current_ip="YOURIPHERE"
ip=`curl -s ifconfig.me`

if [ "$current_ip" != "$ip" ] && [ $ip != "" ]
then
    echo "New IP detected: $ip" | mail -s "Public IP has been changed" [email protected]
fi
Tags: [ bash ]
December 1, 2011

Installing wget on FreeBSD

by Alpha01

[root@freebsd01 ~]# cd /usr/ports/ftp/wget
[root@freebsd01 ~]# make install clean
Tags: [ freebsd ]