Rénich's Blog

gnu-linux

HowTo: Change your css according to client's time

Thu 11 September 2014

I am no fan of javascript. In fact, I despise it. But, recently, it occured to me that it would be cool to change the CSS theme according to the client's time.

Here's how:

function change_css_according_to_time() {
    var d = new Date();
    var h = d.getHours();

    if ( h >= 7 && h <= 19 ) {
        console …

HowTo: Create an interface configuration with nmcli on CentOS7 and Fedora

Tue 05 August 2014

I ran through hell today!

I tried doing things the old way. You know; edit /etc/sysconfig/network-scripts/ifcfg-eth1 in order to set it to a static IP. Well, bad idea.

I had all kinds of problems when the two interfaces where online (eth0 and eth1). For example:

  • eth0, even …

HowTo: Two different public IPs on a single server

Wed 30 July 2014

Ok, today, I discovered I am still an http://en.wikipedia.org/wiki/Idiot.

Yep, I tried to add 2 public networks to one of my CloudSigma servers and one of them didn't work.

I thought everything was to blame but my configuration (as always). Well, I managed to discover …

HowTo: Wait for any process to finish on Bash

Thu 10 July 2014

Well, here's a quick one.

Let's say you're creating a KVM/Qemu guest; using oz-install; and you're tired, 'cause it's 06:31 and you need some sleep.

You don't want to wait the 2k seconds it takes to do all the work so you want to setup a bash script …

HowTo: Build and Use Fedora 20 for/on Google Cloud

Sat 14 June 2014

So, in my last post, I promised to post these instructions. As if I ever kept secrets from you!

Update: Please, visit my repo where you can find the updated code: https://github.com/renich/gce-images

So, here's the magic:

Initialize (last post)

This takes care of setup. Read and …