Code | Title | Duration | Link |
---|---|---|---|
Keynote | Andy Jassy Keynote Announcement Recap | 0:01 | https://www.youtube.com/watch?v=TZCxKAM2GtQ |
Keynote | AWS re:Invent 2016 Keynote: Andy Jassy | 2:22 | https://www.youtube.com/watch?v=8RrbUyw9uSg |
Keynote | AWS re:Invent 2016 Keynote: Werner Vogels | 2:16 | https://www.youtube.com/watch?v=ZDScBNahsL4 |
Keynote | [Tuesday Night Live with James Hamilton](h |
This file contains hidden or 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/sh | |
# This script will monitor another HA node and take over a Virtual IP (VIP) | |
# if communication with the other node fails | |
# High Availability IP variables | |
# Other node's IP to ping and VIP to swap if other node goes down | |
HA_Node_IP= | |
VIP= | |
# Specify the EC2 region that this will be running in |
This file contains hidden or 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
#!/usr/bin/env python | |
def ip2int(ip): | |
(f,s,t,l)=ip.split('.') | |
return (int(f)*16777216)+(int(s)*65536)+(int(t)*256)+int(l) | |
def ipInNet(ip, network, masklength): | |
mask = 0xFFFFFFFF << (32 - int(masklength)) | |
if (ip2int(ip) & mask) == (ip2int(network) & mask): | |
return True |
This file contains hidden or 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
server { | |
listen [::]:80 ipv6only=off; | |
server_name domain.com www.domain.com; | |
rewrite ^ https://$host$request_uri permanent; | |
} | |
server { | |
listen [::]:443 ipv6only=off default_server ssl; | |
server_name domain.com www.domain.com; |
This file contains hidden or 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
tlmgr init-usertree | |
tlmgr install adjustbox | |
tlmgr update —self | |
sudo tlmgr option repository ftp://tug.org/historic/systems/texlive/2018/tlnet-final | |
tlmgr option repository ftp://tug.org/historic/systems/texlive/2018/tlnet-final | |
tlmgr install adjustbox | |
git clone https://github.com/Wandmalfarbe/pandoc-latex-template.git | |
pandoc lol.md -o adam.pdf —from markdown —template eisvogel —highlight-style pygments —toc |
This file contains hidden or 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
#!/usr/bin/env python | |
import random | |
NUMBER_OF_USERS = 25 | |
PASSWORD_LENGTH = 18 | |
first_names=["James","Mary","John","Patricia","Robert","Jennifer","Michael","Linda","William","Elizabeth","David","Barbara","Richard","Susan","Joseph","Jessica","Thomas","Sarah","Charles","Karen","Christopher","Nancy","Daniel","Lisa","Matthew","Margaret","Anthony","Betty","Donald","Sandra","Mark","Ashley","Paul","Dorothy","Steven","Kimberly","Andrew","Emily","Kenneth","Donna","Joshua","Michelle","Kevin","Carol","Brian","Amanda","George","Melissa","Edward","Deborah","Ronald","Stephanie","Timothy","Rebecca","Jason","Laura","Jeffrey","Sharon","Ryan","Cynthia","Jacob","Kathleen","Gary","Amy","Nicholas","Shirley","Eric","Angela","Jonathan","Helen","Stephen","Anna","Larry","Brenda","Justin","Pamela","Scott","Nicole","Brandon","Samantha","Benjamin","Katherine","Samuel","Emma","Frank","Ruth","Gregory","Christine","Raymond","Catherine","Alexander","Debra","Patrick","Rachel","Jack","Carolyn","Dennis","Janet","Jerry","Virginia","Tyler","Maria |
Launch a Ubuntu 20.04 LTS Server as an EC2 instance, and ensure you have a security group that allows you to access it via SSH (and SSH only, you'll be using SSH to port tunnel VNC).
Once you've got the instance up, and have ssh'd in, run the following to install the packages necessary for a basic desktop environment (not included by default in the Ubuntu server install on AWS).
sudo update
sudo apt install ubuntu-desktop
sudo apt install tightvncserver
This file contains hidden or 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 | |
curl -w @- -o /dev/null -s "$@" <<'EOF' | |
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
----------\n |
This file contains hidden or 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
SELECT | |
resourceId, | |
resourceName, | |
resourceType, | |
configuration.instanceType, | |
tags, | |
availabilityZone, | |
configuration.state.name | |
WHERE | |
resourceType = 'AWS::EC2::Instance' |