No question there are too many personal finance, early retirement, deb etc. related blogs out there. It is very difficult to keep track of all these blogs. Luckily there is a project by Rockstar Finance not only keeps track of these blogs but also updates the list on a daily basis. Here is the link to the personal finance blog directory.
Looking at the list the categories of these blogs is very diverse, as of today it includes these –
Budgeting
Debt
Early Retirement
Family
Frugality
General Finance
Investing
Lifestyle
Making Money
Military
Millennial
Minimalism
Real Estate
Traditional Retirement
The directory also allows you to easily filter the list by –
Category
Age
Sex
Race
City/State/Country
profession
I found this directory quite useful in filtering out the relevant blogs that I am interested in based on the category. If you manage a personal finance blog, you can also submit your blog to the directory admins so that they can post it there.
The x-forwarded-for header is a way of identifying the IP address of the original client when a web server is sitting behind a proxy or load-balancer. The load-balancer does get the actual client IP as it directly sets up the TCP session with the load-balancer. But the x-forwarded-for address might contain a list of comma separated IP addresses in addition to the immediate client IP. It is these extra IPs that we can spoof and the procedure is similar to modifying any HTTP header such as user agent.
The take away is not to trust any IPs in the x-forwarded-for list apart from the load balancer IP and the immediate client IP which made a direct call to the load balancer. If we trust our load balancer, we can also reliably identify the immediate client IP. The rest of the IPs in the x-forwarded-for list can be ignored.
git – add local files to a git repository in local file system (bare git repo).
In this blow, I will show you how you can turn your local files into a github style repository. In my case I had files in `/etc/puppet` that I wanted to version control, but I wanted to push to a bare repository in the same machine or localhost. Here are the steps I followed –
Files to version control : /etc/puppet
Bare git repository that we will push changes in /etc/puppet : /var/lib/puppet/gitrepo/
1. Create a github style git repository in /var/lib/puppet/gitrepo
1
2
3
root@linubuvmb:/# mkdir -p /var/lib/puppet/gitrepo && cd /var/lib/puppet/gitrepo
List shared or dynamic libraries required by a program
In Linux, the
1
ldd
is used to find out the shared libraries or dependencies required by a program if it is a dynamic executable. ldd requires the full path to the executable as input.
For instance, the Linux ps command depends on the following shared or dynamic libraries –
You can also use the ldd command to find out if an executable has an expected dependencies. In this case, we expect that the htpasswd, login and sshd commands depend on the crypt library as they prompt a user for a password for authentication purposes –
Getting date from Real time clock (RTC) without using the date command or any other Linux time related commands.
In Linux, the “Real Time Clock” tracks wall clock time and is battery backed so that it works even with system power off. The RTC has no concept of time zone or daylight saving, it defaults to UTC. One of the user interfaces that the Linux Kernel exposes is
1
/sys/class/rtc/rtc{N}
and we will use the files in that directory to directly read time related data from the RTC.
* Files –
1
2
[root@ns3 rtc0]# ls /sys/class/rtc/rtc0
datedev device hctosys max_user_freq name power since_epoch subsystem timeuevent wakealarm
* Date and time in UTC
1
2
3
4
[root@ns3 rtc0]# cat date
2015-01-19
[root@ns3 rtc0]# cat time
23:05:05
* The maximum interrupt rate an unprivileged user may request from this RTC.
1
2
# cat max_user_freq
64
* The name of the RTC corresponding to this sysfs directory
1
2
[root@ns3 rtc0]# cat name
rtc_cmos
* The number of seconds since the epoch according to the RTC
1
2
[root@ns3 rtc0]# cat since_epoch
1421708627
* Status information is reported through the pseudo-file /proc/driver/rtc –
The server hosting the Internet radio for Eritrean and Ethiopian mostly Tigrigna music has been migrated to a new infrastructure and thus the public Internet IP address of the streaming radio has changed. Please use this URL to get the latest streaming address or save the below updated streaming playlist file –