Skip to content

Instantly share code, notes, and snippets.

View chrisbelyea's full-sized avatar
🚩
protocols > platforms

Chris Belyea chrisbelyea

🚩
protocols > platforms
View GitHub Profile
@chrisbelyea
chrisbelyea / index.txt
Last active March 14, 2018 18:53
A Git Workflow Using `rebase`
Why Squash?
1: <script src="https://gist.github.com/chrisbelyea/90146b7d6c1a67b072347d418154dbb5.js?file=why_squash_1.md"></script>
2: <script src="https://gist.github.com/chrisbelyea/90146b7d6c1a67b072347d418154dbb5.js?file=why_squash_2.md"></script>
3: <script src="https://gist.github.com/chrisbelyea/90146b7d6c1a67b072347d418154dbb5.js?file=why_squash_3.md"></script>
Setup
2: <script src="https://gist.github.com/chrisbelyea/90146b7d6c1a67b072347d418154dbb5.js?file=setup_2.md"></script>
3: <script src="https://gist.github.com/chrisbelyea/90146b7d6c1a67b072347d418154dbb5.js?file=setup_3.md"></script>
4: <script src="https://gist.github.com/chrisbelyea/90146b7d6c1a67b072347d418154dbb5.js?file=setup_4.md"></script>
@alexcasalboni
alexcasalboni / aws-lambda-static-type-checker.md
Last active May 22, 2023 07:31
AWS Lambda Static Type Checker Example (Python3)

How to use Python3 Type Hints in AWS Lambda

TL;DR

Static Type Checkers help you find simple (but subtle) bugs in your Python code. Check out lambda_types.py and incrementally improve your code base and development/debugging experience with type hints.

Your Lambda Function code will go from this:

@martezr
martezr / centos7ks.cfg
Last active October 11, 2019 23:10
CentOS 7 Kickstart File
#version=RHEL7
# Action
install
cdrom
lang en_US.UTF-8
keyboard us
text
firewall --service=ssh
@singledigit
singledigit / cognito.yaml
Last active April 28, 2024 15:12
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
@gorillamoe
gorillamoe / chrome-apps-launcher.desktop
Created November 18, 2015 08:21
Google Chrome / Chromium Apps Launcher Gnome (Linux) Shortcut (put in ~/.local/share/applications/)
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Chrome Apps Launcher
Comment=Unofficial desktop shortcut for Google Chrome's / Chromium's App Launcher
Exec=/usr/bin/chromium --show-app-list
Icon=/usr/share/icons/hicolor/256x256/apps/chromium.png
Terminal=false
Type=Application
Categories=Network;
@cyberious
cyberious / install_modules.bat
Last active December 23, 2015 16:41
Windows Environment Setup via Puppet
puppet module install chocolatey/chocolatey
puppet module install cyberious/pget
puppet module install badgerious-windows_env

Git DMZ Flow

I've been asked a few times over the last few months to put together a full write-up of the Git workflow we use at RichRelevance (and at Precog before), since I have referenced it in passing quite a few times in tweets and in person. The workflow is appreciably different from GitFlow and its derivatives, and thus it brings with it a different set of tradeoffs and optimizations. To that end, it would probably be helpful to go over exactly what workflow benefits I find to be beneficial or even necessary.

  • Two developers working on independent features must never be blocked by each other
    • No code freeze! Ever! For any reason!
  • A developer must be able to base derivative work on another developer's work, without waiting for any third party
  • Two developers working on inter-dependent features (or even the same feature) must be able to do so without interference from (or interfering with) any other parties
  • Developers must be able to work on multiple features simultaneously, or at lea
@mottyc
mottyc / kafka-service-script
Last active January 10, 2022 07:07
Kafka service script (copy to file: /etc/init.d/kafka)
#! /bin/sh
# /etc/init.d/kafka: start the kafka daemon.
# chkconfig: - 80 20
# description: kafka
KAFKA_HOME=/usr/share/kafka
KAFKA_USER=root
KAFKA_SCRIPT=$KAFKA_HOME/bin/kafka-server-start.sh
KAFKA_CONFIG=$KAFKA_HOME/config/server.properties
@logicminds
logicminds / puppetdev
Last active December 30, 2015 21:24
puppetdev boxstarter
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst git
cinst git-credential-winstore
cinst console-devel
cinst sublimetext3
cinst poshgit
cinst dotpeek
cinst ruby -Version 2.0.0.48100
@stephenc
stephenc / gist:3053561
Created July 5, 2012 13:05
Continuous Deployment with Jenkins and Puppet

Puppet with Jenkins

Setup Jenkins

With Puppet:

puppet module install rtyler-jenkins

puppet apply -v -e "include jenkins"