According to Datagenetics 10.71% of 4 digit passcodes are 1234. Data Genetics did some number crunching on ATM pin data, not sure how they got
According to Datagenetics 10.71% of 4 digit passcodes are 1234. Data Genetics did some number crunching on ATM pin data, not sure how they got
If you want to see what processes are listening on what ports these you can use the linux command lsof and netstat. Below are a
This example of a upsert, an on duplicate key insert statement in MySQL. What it does is if the table zipcode_population has a unique index
I wanted to send myself a text when a long running process was done so I needed a command that would watch for a process
I needed a function to turn a string value dollar with commas into a decimal I could insert into MySQL. This function below will take
Here are 2 different shell commands using cat. These examples would allow you to stack files into a new file concatenating them together. Useful for
sed is a really powerful Linux command line utility. It can in a one line do what would take sometimes 20-30 lines of code in
I needed to recursively unzip a big mess of nested zip files. This shell command does the trick, it also preserves the directory structure.
Sometimes that’s not necessary to check a file’s mime type and you only need to check the file extension. To do that we can use
You don’t have to actually programmatically read a PDF to parse out the links in them. This simple routine below will parse out all the