Skip to content

Instantly share code, notes, and snippets.

View mda590's full-sized avatar
☁️
Feeling cloudy

Matt Adorjan mda590

☁️
Feeling cloudy
View GitHub Profile
@sebsto
sebsto / gist:6af5bf3acaf25c00dd938c3bbe722cc1
Last active May 17, 2024 12:40
Start VNCServer on Mac1 EC2 Instance
# YouTube (english) : https://www.youtube.com/watch?v=FtU2_bBfSgM
# YouTube (french) : https://www.youtube.com/watch?v=VjnaVBnERDU
#
# On your laptop, connect to the Mac instance with SSH (similar to Linux instances)
#
ssh -i <your private key.pem> ec2-user@<your public ip address>
#
# On the Mac
@aws-john
aws-john / aws-on-so.md
Last active March 11, 2021 19:32
AWS on StackOverflow: Useful resources
@henrylilei
henrylilei / aks-node-kubelet-configuration.yaml
Created November 5, 2019 01:47
Using Kured to update kubelet config in AKS.
apiVersion: scheduling.k8s.io/v1
kind: PriorityClass
metadata:
name: server-maintenance-priority
value: 1000000
globalDefault: false
description: "This priority class should be used for server maintenance pods only. It will be scheduled first to the node."
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
@stuartleeks
stuartleeks / Links.md
Last active July 7, 2021 15:23
Build 2019 - BRK3037 - From dev to production: Container lifecycle, monitoring, logging and troubleshooting
@avyfain
avyfain / ff.py
Last active January 2, 2023 02:45 — forked from elaineo/ff.py
Follow Friday
import json
import os
from collections import Counter
# pip install TwitterAPI
from TwitterAPI import TwitterAPI
# Edit ff.py for your account. Go to https://apps.twitter.com/ to get API keys
# Don't forget to fill in your screen name (or someone else's).
@npearce
npearce / install-docker.md
Last active May 17, 2024 12:03
Amazon Linux 2 - install docker & docker-compose using 'sudo amazon-linux-extras' command

UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.

Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/

Docker CE Install

sudo amazon-linux-extras install docker
sudo service docker start
@dylanmckay
dylanmckay / facebook-contact-info-summary.rb
Last active March 12, 2024 22:46
A Ruby script for collecting phone record statistics from a Facebook user data dump
#! /usr/bin/env ruby
# NOTE: Requires Ruby 2.1 or greater.
# This script can be used to parse and dump the information from
# the 'html/contact_info.htm' file in a Facebook user data ZIP download.
#
# It prints all cell phone call + SMS message + MMS records, plus a summary of each.
#
# It also dumps all of the records into CSV files inside a 'CSV' folder, that is created
@stevenringo
stevenringo / reinvent-2017-youtube.md
Created December 3, 2017 23:01
Links to YouTube recordings of AWS re:Invent 2017 sessions

| Title | Description

@ahawkins
ahawkins / create_alarms.sh
Last active January 1, 2019 17:22
Install cron job to report memory utilization to cloudwatch
#!/usr/bin/env bash
set -xeuo pipefail
main() {
# TODO: add all your desired regions here
local -a regions=(ap-south-1)
for region in "${regions[@]}"; do
aws --region "${region}" cloudwatch put-metric-alarm \
@lmakarov
lmakarov / lambda-basic-auth.js
Created August 30, 2017 19:15
Basic HTTP Authentication for CloudFront with Lambda@Edge
'use strict';
exports.handler = (event, context, callback) => {
// Get request and request headers
const request = event.Records[0].cf.request;
const headers = request.headers;
// Configure authentication
const authUser = 'user';
const authPass = 'pass';