Category Archives: Programming

Thanks to NOAA and xpath, I know when it’s the best time to walk my dog

Luna loves to go to the beach, especially when it’s during low tide.   Now, I could go visit local websites daily for the low tides in my area, but… Lucky for Luna, her daddy knows how to sling some computer coding, so… a script … Continue reading

Posted in Programming | Leave a comment

Windows – Registering Putty for SSHS:// custom URI Scheme

One of things that I do to simplify my job is to maintain a local webpage listing servers that I can SSH into.  With Windows, I can register the sshs:// URI scheme to putty.exe Windows executable.  Any links starting with sshs:// will be … Continue reading

Posted in Linux, Programming | Leave a comment

Quickly get a Flask/Python app running quickly alongside phpMyAdmin

Quick guide to setting up a Flask/Python web app at default root URL alongside phpMyAdmin running off \phpmyadmin sudo apt-get install nginx sudo apt-get install mysql-server Be sure to install mysql server before installing phpmyadmin. sudo apt-get install phpmyadmin sudo … Continue reading

Posted in Programming | 1 Comment

Ultimate NGINX reverse proxy to WordPress / PHP / Python / Django / Golang / Flask

For years, I’ve relied on Apache web server on my personal machine to continually hone my web programming chops and it doesn’t hurt to readily have a working server configuration for quick reference. While Apache has performed brilliantly, it was time to switch and … Continue reading

Posted in Linux, Programming | 1 Comment

Mobaxterm – setting up Git with CA certificate bundle

On my Windows machine, I use Mobaxterm, which is a great environment based on Cygwin and gives me an UNIX-like alternative to Windows command window. Git can be set up but needs some configuration first before it’ll work flawlessly. http://mobaxterm.mobatek.net/plugins.html … Continue reading

Posted in Linux, Programming, Web/Tech | 1 Comment

Reverse order sort du -h human-readable output

du -d 1 -h | perl -e’%h=map{/.\s/;99**(ord$&&7)-$`,$_}`du -d 1 -h`;die@h{reverse sort%h}’ MacBook-Pro.-=[jnevans] /var/log # sudo ~jnevans/sortd.sh 192K ./cups 728K ./krb5kdc 2.1M ./DiagnosticMessages 11M ./asl 22M . Hat tip to http://serverfault.com/questions/62411/how-can-i-sort-du-h-output-by-size Want it in your .bashrc? alias dsize=’du -d 1 -h | … Continue reading

Posted in Programming | Leave a comment

Redis and php-resque on Ubuntu 12.04

During my free time, I help to administer a machine hosting several websites which generate copious amount of traffic and at times, there can be a significant load on the server. These websites require many tasks running on the back … Continue reading

Posted in Databases, Linux, Programming, Web/Tech | 2 Comments

Turn off all colors in vim

The text editor vim usually has default setting of colorized syntax and search highlighting, which I find too distracting. To kill it off, put the following inside the file .vimrc in your home directory: syntax off set nohlsearch set t_Co=0

Posted in Programming | Leave a comment

Finding the state of a zipcode using reverse lookup with Google Geocoding API

Here’s a code snippet if you need to run a reverse lookup on a zipcode to identify which state it is located in.  Google Geocoding API version 3 is the latest at this time of post, and there’s no longer … Continue reading

Posted in Programming, Web/Tech | 2 Comments

Excellent primer on CSS

Continue reading

Posted in Programming | 1 Comment

Atlas with PHP

Continue reading

Posted in Programming | Leave a comment

PHP security papers to read

Continue reading

Posted in Programming | Leave a comment

PHP file to help prevent many common XSS attack vectors

Continue reading

Posted in Programming | Leave a comment

Understanding XSS attacks and PHP security

Continue reading

Posted in Programming | Leave a comment

Gmail’s XSS exploit

Continue reading

Posted in Programming | Leave a comment