SwiftUI, Blue Default Button

SwiftUI allows you to easily create buttons with default iOS and macOS styles. These are great and fit in well with the rest of the Apple ecosystem. However, SwiftUI does not allow you to easily change the color of these buttons. In fact, to have any sort of special colored button, you have to create…

Read More

Using BGP For Internet Censorship

Border Gateway Protocol (BGP) is the protocol that makes up the Internet. It is used by networks to connect to one another. BGP allows networks to announce IP blocks to one another. These announcements paint a picture of how to reach every IP address on the Internet. This picture is stored in a routing table….

Read More

Intermediate/Advanced VIM Movments

VIM is a very powerful text editor. It or it’s predecessor, VI come installed on every nix based computer. If you ever need to edit a file in a nix operating system, you can type ‘vi filename’ and be able to use VI or VIM. Beyond always being available, VIM is extremely powerful. VIM users hail it…

Read More

IPv6 Internet Is Broken

The Internet is made up of a bunch of smaller networks. All these small networks connect to one another is some manner. Some of them buy IP transit from other networks, some of then peer with one another for free. Whatever the case may be, everyone on the Internet should be able to reach everyone…

Read More

Adsense Responsive Ads Not Displaying — Fix

Google’s Adsense came out with a responsive ad fairly recently. It’s a neat idea where ads respond to the space they are given. This allows Adsense to create responsive ads that fit onto the device screen of the user. It also allows website owners to hide ads at times. The problem is, the responsive ads…

Read More

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