Skip to content

Instantly share code, notes, and snippets.

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 / 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
@alexhayes
alexhayes / australian-postcodes.sql
Created October 19, 2015 04:10 — forked from randomecho/australian-postcodes.sql
Australian postcodes (with states and suburb names) geocoded with latitude and longitude.
/*
Taken and cribbed from blog.datalicious.com/free-download-all-australian-postcodes-geocod
May contain errors where latitude and longitude are off. Use at own non-validated risk.
*/
SET NAMES utf8;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS postcodes_geo;
@alexhayes
alexhayes / building-install-check.sh
Created June 6, 2012 00:15 — forked from simonexmachina/building-install-check.sh
Test that rsync and php4-domxml are working on old Debian
#!/bin/bash
EXIT_STATUS=0
# Test that domxml is installed
php -r "domxml_version();" > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo -e "\a#### Error: php4-domxml not loaded ####"
EXIT_STATUS=1
fi
@alexhayes
alexhayes / switch-apt-sources.sh
Created June 5, 2012 06:48 — forked from simonexmachina/building-install.sh
Switch apt source to next distro - basically so we can get a working php4-domxml installed
#!/bin/bash
V30=`grep "3.0" /etc/issue`
V31=`grep "3.1" /etc/issue`
V4=`grep "4." /etc/issue`
V5=`grep "5." /etc/issue`
V6=`grep "6." /etc/issue`
UPDATE_SOURCES=1
if [ "$V30" != "" ]; then