Skip to content

Instantly share code, notes, and snippets.

@MaerF0x0
MaerF0x0 / _gotestbranch.md
Created July 22, 2024 23:12 — forked from fisherevans/_gotestbranch.md
Test local golang changes

gotestbranch

This script tries to make it easy to test changes in a go project by:

  1. Identifying what packages have been changed within your current git branch
  2. Finding all the packages that depend on those packages
  3. Merging those two lists of packages together
  4. Runs go test on those packages

This makes it easy to ensure your changes have not broken any compile-time dependencies, and that all existing tests are passing.

@MaerF0x0
MaerF0x0 / SD.md
Last active April 17, 2024 18:19 — forked from Neilblaze/SD.md
Standard System Design Interview Approach Template
@MaerF0x0
MaerF0x0 / openconnect.md
Created May 11, 2016 20:22 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

@MaerF0x0
MaerF0x0 / consul.sh
Last active April 4, 2016 21:17 — forked from ianunruh/consul.sh
Install Consul on Ubuntu 14.04
#!/bin/bash
apt-get install -y curl unzip
mkdir -p /var/lib/consul
mkdir -p /usr/share/consul
mkdir -p /etc/consul/conf.d
export CONSUL_VER=0.6.4
export CONSUL_FILE=consul_$(CONSUL_VER)_linux_amd64.zip
#eg: https://releases.hashicorp.com/consul/0.6.4/consul_0.6.4_linux_amd64.zip