I started to get interested in web development in 1999 (15 years old), when I built my first HTML page. I started in programming with BASIC…
Opening a set of html files locally in the browser is not a good reflection of what happens in a real web server. It’s ok for a javascript library demo but for other purposes it’s easy enough to have a basic HTTP server so why not?
When I’m developing code that uses a web service, and since I always have a terminal window open, I like to check or test responses with curl.
The problem is it’s difficult to read JSON responses without indentation and line breaks, but that’s easily…
Sometimes you want to let some program running in SSH even after you logout. Putting it in background with & won’t work. Some people use GNU Screen, others nohup, but I prefer tmux.
You have a site that sends emails once in a while, but you’re not using SMTP. You need to implement some authentication checks to avoid falling into SPAM. Besides SPF, it’s important to create a PTR (pointer) record, if at all possible by your ISP.
A Google search for what’s my ip gives us our public IP, but sometimes it’s useful to have that information in the command line to be used in scripts for automation.
Last week I created a script to automatically add my IP to a server’s firewall that I manage…