Skip to content

Instantly share code, notes, and snippets.

View mpstein's full-sized avatar

Matt S mpstein

  • United States
View GitHub Profile
@mpstein
mpstein / cloudformation_test.yml
Created June 30, 2020 15:39
Cloudformation Test Template - No Resources
---
AWSTemplateFormatVersion: '2010-09-09'
Description: 'CloudFormation exports'
Conditions:
HasNot: !Equals ['true', 'false']
# dummy (null) resource, never created
Resources:
NullResource:
Type: 'Custom::NullResource'
Condition: HasNot
@mpstein
mpstein / install_k8s.sh
Created June 16, 2020 15:27
Install K8s on Ubuntu
#!/bin/bash
#another @geekmuse special
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
cat << EOF | sudo tee /etc/apt/sources.list.d/kubernetes.list
@mpstein
mpstein / build_nginx.sh
Created June 16, 2020 15:26
Fetch, build, and install the latest nginx with the latest OpenSSL for RaspberryPi with optional TLS1.3 support
#!/usr/bin/env bash
#From @geekmuse
## names of latest versions of each package
VERSION_PCRE=pcre-8.43
VERSION_OPENSSL=OpenSSL_1_1_1c
VERSION_NGINX=nginx-1.17.1
SOURCE_PCRE=ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
SOURCE_OPENSSL=https://www.openssl.org/source/
SOURCE_NGINX=http://nginx.org/download/
The software engineer’s guide to asserting dominance in the workplace
As a software engineer, changing jobs is a way of life. Every day, beautiful recruiters from top tech companies reach out to you on LinkedIn with new opportunities, and each new job equals higher pay and an opportunity to reinvent yourself for the better — as long as you know how to. Here is a handy first-week guide to becoming the alpha of your new workplace.
Monday
On your first day of work, your focus should be entirely on Physical Establishment of Dominance in the Office. Humans are hard-wired to follow the biggest and strongest. Once you have proven yourself with the PEDO principle, you will command the respect and admiration of your team, and every other aspect of becoming the alpha naturally falls into place.
Wake up early on Monday, hit the weights and dehydrate yourself for enhanced vascularity. Take a shower afterwards, but put your tight-fitting, sweaty Under Armour gym clothes back on. You’ll arrive at work looking swole, focus