This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |