Skip to content

Instantly share code, notes, and snippets.

@mr-joshua
mr-joshua / golang-tls.md
Created December 28, 2020 18:35 — forked from denji/golang-tls.md
Simple Golang HTTPS/TLS Examples

Moved to git repository: https://github.com/denji/golang-tls

Generate private key (.key)
# Key considerations for algorithm "RSA" ≥ 2048-bit
openssl genrsa -out server.key 2048

# Key considerations for algorithm "ECDSA" ≥ secp384r1
# List ECDSA the supported curves (openssl ecparam -list_curves)

INGREDIENTS FOR THE BURGERS 2 lb. ground bison 1 tbsp. Worcestershire sauce 1/2 shallot, finely chopped 2 cloves garlic, minced 1 1/2 tsp. kosher salt 1/2 tsp. freshly ground black pepper 1/2 tsp. coriander 1/2 tsp. ground mustard

Prep Pork

  • 3 pounds boneless pork shoulder (Boston butt), cut into 1 1/2-inch pieces

Sesoning

For ease and avoiding having to dirty a bunch of measuring spoons I use a 1/2 tsp measuring spoon. The numbers below represent the number of 1/2 tsp measures to add to the water.

  • 1/2 cup water
  • 6 chili powder
  • 2 ground cumin
  • 2 white pepper
  • 3 pounds boneless pork shoulder (Boston butt), cut into 1 1/2-inch pieces
  • 1/2 cup chicken stock or low-sodium chicken broth
  • 3 teaspoons chili powder
  • 1 teaspoon ground cumin
  • t teaspoon salt
  • 1 teaspoon white pepper
  • 1/2 teaspoon ground coriander

Pressure Cook

  • Place all ingredients in instant pot and cook on high for 1 hour
@mr-joshua
mr-joshua / ca.md
Created October 24, 2019 15:46 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@mr-joshua
mr-joshua / Synology-Diskstation-Git.md
Created October 19, 2019 18:37 — forked from walkerjeffd/Synology-Diskstation-Git.md
Instructions for setting up git server on Synology Diskstation

Configure Synology NAS as Git Server

Instructions for setting up a git server on a Synology NAS with Diskstation. Specifically, I am using a DS414 with DSM 5.0.

Set Up User and Folder

  • Create user gituser via Diskstation interface (with File Station and WebDAV privilages)
  • Add new shared folder called git (located at /volume1/git) with read/write access for gituser and admin. This folder will hold all the repos.
  • Install Git Server package via Diskstation
@mr-joshua
mr-joshua / jq-cheetsheet.md
Created December 18, 2018 19:24 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

ref: https://community.ubnt.com/t5/UniFi-Wireless/How-To-Let-s-Encrypt-with-Cloud-Key-and-DNS-Challenge/td-p/2186116
Notes:
you must create a new cert.tar (DO NOT GZIP) with the following files:
tar -cvf cert.tar cloudkey.key cloudkey.crt unifi.keystore.jks
@mr-joshua
mr-joshua / mexican_rice
Last active January 8, 2018 00:03
Mexican Rice
2 tbsp oil
1 cup rice
brown for 5-10 minutes
1 tsp garlic salt
.5 tsp cummin
1 8 oz can tomato sauce
2 cups chicken broth
1 can rotel

Keybase proof

I hereby claim:

  • I am mr-joshua on github.
  • I am joshbovee (https://keybase.io/joshbovee) on keybase.
  • I have a public key ASDX2jh9cZeVvVI2dz1xzdYssvmCDkLTOHZe0gIIURumNgo

To claim this, I am signing this object: