Skip to content

Instantly share code, notes, and snippets.

View jessequinn's full-sized avatar
💭
fullstack senior developer

Jesse Quinn jessequinn

💭
fullstack senior developer
View GitHub Profile
@jessequinn
jessequinn / Makefile
Created November 23, 2022 15:49 — forked from eleniums/Makefile
Sample Go Makefile to build binaries for Windows, Mac, and Linux.
EXECUTABLE=executable-name
WINDOWS=$(EXECUTABLE)_windows_amd64.exe
LINUX=$(EXECUTABLE)_linux_amd64
DARWIN=$(EXECUTABLE)_darwin_amd64
VERSION=$(shell git describe --tags --always --long --dirty)
.PHONY: all test clean
all: test build ## Build and run tests
@jessequinn
jessequinn / brew-dnsmasq.md
Created November 22, 2022 10:38 — forked from davebarnwell/brew-dnsmasq.md
install dnsmasq with brew

Install dnsmasq and configure for *.dev.local domains

$ brew install dnsmasq
$ vim /usr/local/etc/dnsmasq.conf

Reload configuration and clear cache

# Copy the daemon configuration file into place.
$ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/

$ sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist

version: '3.5'
services:
vault-compose:
image: vault:0.9.6
build:
context: ./vault
ports:
- 8200:8200
@jessequinn
jessequinn / Vault.md
Created September 10, 2022 20:16
How to setup a Vault server (step by step)

Vault server setup

Personal guide for installing and setting up a Vault server.

  • Install and update required dependencies.
#!/bin/bash

sudo apt-get -y update
@jessequinn
jessequinn / dnsmasq OS X.md
Created August 24, 2022 22:06 — forked from ogrrd/dnsmasq OS X.md
Setup dnsmasq on OS X

Never touch your local /etc/hosts file in OS X again

To setup your computer to work with *.test domains, e.g. project.test, awesome.test and so on, without having to add to your hosts file each time.

Requirements

Install

@jessequinn
jessequinn / README.md
Created May 23, 2022 18:57 — forked from rluvaton/README.md
Bash scripts to pull, (optional) retag, save, load and push Docker images. Created to provide easy means to download an image, retag it to use a private registry and then save it to an external disk. In a offline or on-premise environment you can use the load and push script to load images and push them to a private registry.

Docker images tar utils

docker-load-and-push

Install globaly

sudo curl -o /usr/local/bin/docker-load-and-push https://gist.githubusercontent.com/rluvaton/ef6415c79c35c5b11c535040e79ab43b/raw/19cb82651a10d5256f512331b484dee8a19a8058/docker-load-and-push.sh && sudo chmod +x /usr/local/bin/docker-load-and-push
@jessequinn
jessequinn / docker-load-and-push.sh
Created May 23, 2022 18:57 — forked from stefanvangastel/docker-load-and-push.sh
Bash scripts to pull, (optional) retag, save, load and push Docker images. Created to provide easy means to download an image, retag it to use a private registry and then save it to an external disk. In a offline or on-premise environment you can use the load and push script to load images and push them to a private registry.
#!/bin/bash
#### Functions ###
display_usage() {
echo "This script must be run with Docker capable privileges and you should login to your registry before pushing!"
echo -e "\nUsage:\n$0 <saved_image> [--push]\n"
echo -e " <saved_image>\t\t\tThe image file to load and push"
echo -e " [--push]\t\t\tPush to registry"
echo -e "\nExample: $0 /mydir/ubuntu.tar --push "
}
@jessequinn
jessequinn / openssl_commands.md
Created May 10, 2022 21:48 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

openssl 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl