Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View duaneleem's full-sized avatar
Converting Coffee to Code, Daily

Duane Leem duaneleem

Converting Coffee to Code, Daily
View GitHub Profile
@duaneleem
duaneleem / install-tmux.sh
Last active November 10, 2021 19:49 — forked from muralisc/install-tmux.sh
Install tmux 3.0a on Amazon Linux 2 / rhel /centos
# Install tmux 3.0a on Amazon Linux 2
# Originally tailored for CentOS 7
# install deps
sudo yum install -y gcc kernel-devel make ncurses-devel
## Needs openssl
sudo yum install openssl-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
## Install
@duaneleem
duaneleem / aws-lambda.js
Created November 13, 2017 22:10 — forked from MrRoyce/gist:097edc0de2fe001288be2e8633f4b22a
AWS CodeDeploy Lamda formatter for Slack messages - node.js
var services = '/services/...'; // Update this with your Slack service...
var channel = "#aws-deployments" // And this with the Slack channel
var https = require('https');
var util = require('util');
var formatFields = function(string) {
var
message = JSON.parse(string),
fields = [],
@duaneleem
duaneleem / 0_reuse_code.js
Created June 20, 2017 14:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console