Skip to content

Instantly share code, notes, and snippets.

@msdocs
msdocs / .tf
Created March 27, 2020 16:24 — forked from lucjross/.tf
ALB Listener Rule, weighted Target Groups
resource "aws_alb_listener_rule" "http_80" {
count = local.lb ? 1 : 0
listener_arn = data.aws_alb_listener.http_80.arn
action {
type = "forward"
target_group_arn = aws_alb_target_group.http_80[0].arn
}
condition {
host_header {
values = [local.host_name]

Keybase proof

I hereby claim:

  • I am msdocs on github.
  • I am msdocs (https://keybase.io/msdocs) on keybase.
  • I have a public key ASClXJeVtbYI7t0VlhIcqQqPXkdGhT35OdK0Dvf0mhVnwQo

To claim this, I am signing this object:

@msdocs
msdocs / register_schema.py
Created July 2, 2019 16:53 — forked from aseigneurin/register_schema.py
Register an Avro schema against the Confluent Schema Registry
import os
import sys
import requests
schema_registry_url = sys.argv[1]
topic = sys.argv[2]
schema_file = sys.argv[3]
aboslute_path_to_schema = os.path.join(os.getcwd(), schema_file)
@msdocs
msdocs / linux.sh
Last active February 5, 2019 21:43
bash profiles
alias utc='echo $(date -u +"%Y-%m-%dT%H:%M:%S")'
@msdocs
msdocs / kinetic.pi.sh
Created March 22, 2018 20:00
Ros Kinetic Setup for Raspberry pi
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt-get update
sudo apt-get upgrade
sudo rosdep init
rosdep update
mkdir -p ~/ros_catkin_ws
cd ~/ros_catkin_ws
rosinstall_generator desktop --rosdistro kinetic --deps --wet-only --tar > kinetic-desktop-wet.rosinstall
/* This stylesheet generated by Transfonter (https://transfonter.org) on March 7, 2018 10:34 PM */
@font-face {
font-family: 'Sweet Hipster';
src: url('hipster.woff2') format('woff2'),
url('hipster.woff') format('woff');
font-weight: normal;
font-style: normal;
}

Raspberry Pi Tutorial 2

Build a {Cloud} Workshop

Environment Setup

SSH

Last time we covered what Secure Shell was a nice secure way for you to connect to a remote computer

@msdocs
msdocs / Dilverey-Map-Radius.markdown
Created February 23, 2015 20:43
Dilverey Map Radius