So you’re creating a thing in React where you need the user to enter some money numbers. I mean numbers representing money, like $1,234.56. But you want this to format…
When you have an input field intended to be filled out with a 10 digit phone number it’s nice to format the number automatically as the number is being typed…
netstat <options> List all listening TCP & UDP connections: netstat -tupl -t Show TCP connections -u Show UDP connections -p Show the program name listening on that port (may require…
MomentJS & Unix Epoch Suppose we are working on a project where you have timestamps as Unix Epoch, and we need to do a variety of things with that timestamp.…
Check out the branch you want to pull Master branch into, in this case the branch is roles: Then rebase the branch by running: Squash commits, modify commit messages, etc…
Call VSCode on Mac from CLI: https://code.visualstudio.com/docs/setup/mac This is how you can setup CLI programs to call VSCode editor. For example, git rebase or other commands that would normally open…
Run this at the command line to generate a new SSH Key-pair.
There I was on my server and I found the folder I wanted to transfer to my local machine. I Googled and could not find a way to do this…
This month I found myself spinning up Digital Ocean Droplets (VPS), running through the installation and configuration of SQUID, finding that it doesn’t work like I thought it did, and…
Pass in a port number and, if open, it will be immediately closed.
Pass this script an IP address or domain name followed by a port number and we will print the contents of that connection to the screen.
ccrypt is an encryption tool that can be used to encrypt sensitive data on the fly or for long term storage. I sometimes use it to encrypt passwords for safe…
Upon execution we loop through all command-line arguments, those that match can then be assigned to variables or what have you in the case block.
Setting up HTTPS sounds simple and often times it can be. But when you have a project that requires a deeper understanding it can be a little overwhelming trying to…
If you haven’t yet heard about DigitalOcean’s $5 Virtual Private Server, you are missing out. I recently stumbled upon a comment on stack overflow that mentioned it. I created an…
Originally I made this because I was tired of clicking so much in Minecraft when clearing out caves and stuff. I press the left LEFT CTRL key in a Windows…