Tag Archives: solaris

Shell script to update original visitor IP for nginx when using Cloudflare

Shell script to update original visitor IP for nginx when using Cloudflare
Cloudflare is a CDN, DNS, WAF, DDoS protection, and reverse proxy service. You need to use the ngx_http_realip_module module to change the client address sent in the specified header field such as CF-Connecting-IP or X-Forwarded-For. This shell script downloads a list of IPv4 and IPv6 address from Cloudflare and generates an updated /etc/nginx/cloudflare.real.ip.conf file:
Halal Vitamins

Powered by WPeMatico

Awesome VIM clutch. A hardware pedal for improved text editing in Vim

Awesome VIM clutch. A hardware pedal for improved text editing in Vim

That is right. I found a hardware pedal for improved text editing in Vim. This is a mind blowing hack for vim user.

VIM Clutch is a hardware pedal for improved text editing speed for users of the magnificent VIM text editor (1, 2). When the pedal is pressed down, the pedal types “i” causing VIM to go into Insert Mode. When released, it types and you are back in Normal Mode.

The final result:

The first VIM Clutch

The first VIM Clutch

=> See How To Build your own VIM Clutch

Halal Vitamins

Powered by WPeMatico

ttyload: Color-coded graphical tracking tool for UNIX/Linux load average in a terminal

ttyload: Color-coded graphical tracking tool for UNIX/Linux load average in a terminal
Ttyload an impressive color-coded graphical tracking of UNIX load average in a terminal. It work easily on most POSIX/Unix based systems including:
– Linux
– IRIX
– Solaris
– FreeBSD
– MacOS X (Darwin)
– Isilon OneFS
Halal Vitamins

Powered by WPeMatico

A haiku about DNS

A haiku about DNS

Here is a haiku (a Japanese poem) about DNS (“domain name system”):

It’s not DNS
There is a no way it’s DNS
It was DNS

Here is a postcard for your sysadmin friend whenever there is a DNS issue:

dns haiku

dns haiku

Halal Vitamins

Powered by WPeMatico

How to execute sudo without password?

How to execute sudo without password?

If you are the only sysadmin or developer, you can skip password when you run sudo command. By default, sudo asks for the password. Here is how you can run sudo without having to enter your password.

I’m a new Unix system user. How do I use sudo command without a password on a Linux or Unix-like systems? I log in as tom@my-cloud-server-ip and disabled root login for ssh. After login, I need to run some commands as root user. I am the only sysadmin using my server. How do I run or execute sudo command without a password for a user named Tom under Debian/Ubuntu/CentOS Linux cloud server?

How to run sudo command without a password on a Linux or Unix

Halal Vitamins

Powered by WPeMatico