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
@Phrogz
Phrogz / gist:1290420
Created October 16, 2011 01:59
Minecraft service for Ubuntu (/etc/init.d/minecraft)
#!/bin/bash
# /etc/init.d/minecraft
# version 0.3.4 2011-06-12 (YYYY-MM-DD)
### BEGIN INIT INFO
# Provides: minecraft
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
@jtimberman
jtimberman / knife.rb
Created February 1, 2012 19:33
Commented knife.rb for all the things
# Knife Configuration File.
#
# This is a Ruby DSL to set configuration parameters for Knife's
# general options. The default location for this file is
# ~/.chef/knife.rb. If multiple Chef repositories are used,
# per-repository configuration files can be created. A per repository
# configuration file must be .chef/knife.rb in the base directory of
# the Chef repository. For example,
#
# ~/Development/chef-repo/.chef/knife.rb
@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"

@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
@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

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
@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
@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;
@singledigit
singledigit / cognito.yaml
Last active June 4, 2024 05:19
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:
@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