Skip to content

Instantly share code, notes, and snippets.

View technolo-g's full-sized avatar

Matt Bajor technolo-g

View GitHub Profile
@technolo-g
technolo-g / problem_solving_framework.md
Last active September 27, 2022 20:56
Problem Solving Framework
  • What is the problem?
  • What exactly does this problem mean? Spend 5 minutes of quiet time thinking to yourself the implications of what is happening and why it may be happening. Are there recent changes going on? Did someone mention this at standup?
  • Does it happen in prod too? (run the build right now, etc.)
  • Does it happen consistently or only sometimes?
  • If not consistent, what seems to be the variability? (build slave, environment)
  • Does the documentation of the project mention anything like this?
  • What systems could potentially be involved in this issue?
@technolo-g
technolo-g / keybase.md
Created February 26, 2021 19:35
Keybase Proof

Keybase proof

I hereby claim:

  • I am technolo-g on github.
  • I am technolo_g (https://keybase.io/technolo_g) on keybase.
  • I have a public key ASDYC-WEE5fAA51UfVx3PMzcyZuu4vOko8F6LbuGj1PjYwo

To claim this, I am signing this object:

@technolo-g
technolo-g / app1.conf
Created August 27, 2015 13:00
Dynamic Routing to your PaaS With NGINX
## -- Begin app1 Cluster -- ##
upstream app1 {
server 10.32.28.2:32851;
}
server {
listen 80;
server_name app1.paas.domain.com;
@technolo-g
technolo-g / gist:bdac8229829c07d4aedd
Created November 4, 2014 19:47
Consul/HAProxy vs VulcanD/EtcD

HAProxy + Consul vs VulcanD + EtcD

HAProxy/Consul

  • Pro: Both are production ready
  • Pro: Can handle any throughput we will see
  • Pro: More feature rich
    1. Healthchecks
    2. DNS and HTTP API available to map endpoints
    3. Lots of service discovery built in
  • Pro: Solution could be used in more than one place (bld/prod/etc..)
@technolo-g
technolo-g / gen_ssl.sh
Created January 6, 2015 16:43
Generate Docker SSL Certificates
#!/bin/bash
echo 'Creating CA (ca-key.pem, ca.pem)'
echo 01 > ca.srl
openssl genrsa -des3 -passout pass:password -out ca-key.pem 2048
openssl req -new -passin pass:password \
-subj '/CN=Non-Prod Test CA/C=US' \
-x509 -days 365 -key ca-key.pem -out ca.pem
echo 'Creating client certificates (key.pem, cert.pem)'
xcode with development tools
homebrew
rvm
vagrant
virtualbox
iterm2
alfred
http://spectacleapp.com/ (allows you to snap windows around with kb shortcuts)
BetterSnapTool if spectacle doesn't do what you want
remap your caps lock key to command
@technolo-g
technolo-g / nginx_docker_redirect.conf
Last active April 6, 2018 22:31
Redirect subdomain to port (nginx)
# This will redirect a numerical subdomain to a port.
# A use would be Docker contianers.
# This relies on the following DNS record:
# *.test.domain.com IN A 10.100.199.31
# and the fact that this container would run on the same Docker
# host as the backends.
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@technolo-g
technolo-g / pr.md
Created September 8, 2017 21:40 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: