Skip to content

Instantly share code, notes, and snippets.

@alexhayes
alexhayes / .direnvrc
Last active August 25, 2021 07:15
My custom .direnvrc
# See https://github.com/direnv/direnv/wiki/Python#-pyenv
use_flutter() {
PATH_add "$HOME/workspace/flutter/bin"
}
# Python using pyenv
#
# Usage:
# Install python with:
@alexhayes
alexhayes / .slate
Created January 22, 2018 01:27
My slate rc
# Move to
bind ;:cmd,alt,ctrl throw 0
bind .:cmd,alt,ctrl throw 1
# Resize on Top Screen
bind l:cmd,alt move screenOriginX,screenOriginY screenSizeX/2,screenSizeY 0
bind ;:cmd,alt move screenOriginX,screenOriginY screenSizeX,screenSizeY 0
bind ':cmd,alt move screenOriginX+screenSizeX/2,screenOriginY screenSizeX/2,screenSizeY 0
# Resize on Laptop Screen
@alexhayes
alexhayes / ssl_puma.sh
Last active November 1, 2018 03:19 — forked from tadast/ssl_puma.sh
localhost SSL with puma
# 1) Create your private key (any password will do, we remove it below)
$ cd ~/.ssh
$ mkdir local
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
Lab-1: Cluster Creation
---------------------------
1. MSK Workshop link = https://amazonmsk-labs.workshop.aws/en/clustercreation.html
2. Use the following cloudformation template, download it on your laptop
https://github.com/vikasbajaj/msk-kafka-workshop/blob/master/msk-infra-and-kafka-clients/MSK-VPC-Clients.yaml
3. Make sure you are in running this lab in ap-southeast-2 (sydney) region
@alexhayes
alexhayes / MapContextKeyToF20.plist
Last active August 26, 2021 22:39
~/Library/LaunchAgents/MapContextKeyToF20.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
This remaps the Context Key (between the right hand Alt and Control on a normal keyboard) to the F20 key.
See https://apple.stackexchange.com/a/398797/264061
Source is stored in https://gist.github.com/alexhayes/be6257459eb7a2dbc1e5b2baaebdac90
-->
<plist version="1.0">