I Tried Switching From Vim To VS Code…

Vim with plugins is a popular IDE option. The reason most people stay away from Vim is the steep learning curve. Most of Vim’s power comes from all the key bindings you have to learn. Just saving and exiting a file can be a daunting task for someone who have never used the text editor…

Read More

Nginx Responding To All Domain Names

The first server listing in the nginx configuration will be the default action for all domain name requests to that server. This will be true unless a server action is labeled default_server. This means that the server might render a website for any domain name that is requested from nginx. To prevent this behavior you must…

Read More

BGP Path Selection Cheatsheet

BGP uses different metrics to select which path to send data. This is how BGP chooses paths. Attribute Description/Notes Winning Metric Weight local to the router Highest LOCAL_PREF Within the ASN, 100 by default Highest Locally Originated Local paths that are sourced by the network or redistribute commands are preferred over local aggregates that are…

Read More

Vim/Vi Learning Game

Also see this vim maze game. This vim/vi game covers basic movement commands. I highly recommend starting with some basic commands and then just using vim to edit files. As you progress and learn the basics you can begin to add more advances vim commands. Learning vim is a process that should be taken in steps….

Read More

Individual IPv6 Address Regex Generator

Given a valid IPv6 address, this generator returns a regular expression which will match all valid forms of that IPv6 address. This includes compact forms, canonical forms and all other ways of writing the Ipv6 address. An IPv6 address regex is a regular expression pattern used to validate and match IPv6 addresses in text strings….

Read More

An Introduction To BGP Traffic Shaping

Border Gateway Protocol (BGP) is the protocol of the Internet. It is the main external gateway protocol used to connect separate networks to one another. This article provides an easy to understand introduction to BGP and how it is used to shape traffic. It describes how BGP is used to ensure that the Internet is…

Read More

How to Fully Backup A WordPress Site From The Command Line

Making regular backups is crucial for any system administrator. Terrible things happen and data gets lost. This may be due to hackers, programing errors, hardware failures or bugs in new code. If you have a website, you need a backup. There are WordPress plugins which automatically create backups for you. Backing up a WordPress database…

Read More

OHosti Review

OHosti is the first result I found when I put “free VPS” into google. I checked out their website, and man, it looks slick. The site looks professional and well put together. It also looks like they offer a ton of stuff, all for free. If something sounds too good to be true, then it…

Read More

XPath Selecting Text() And Link Text()

Websites are made up of HTML, which is a form of XML. XPath is a syntax for selecting sections of XML. It is useful for scraping websites. One of the most popular uses for XPath can be found within the lxml library of Python. There are other libraries and programs that allow you to scrape…

Read More

How To Compile TypeScript On The Command Line

TypeScript is a programing language that is a superset of JavaScript. It allows setting types and allows ES6 functionality. It is the preferred language of Angular2 and is maintained by Microsoft. To compile TypeScript into JavaScript you need to have TypeScript installed. To install TypeScript using the Node Package Manager (npm) type the command: npm…

Read More