Skip to content

Instantly share code, notes, and snippets.

@bobbrez
bobbrez / main.tf
Created March 27, 2022 23:37
Terraform / AWS VPN Creation
resource "aws_acm_certificate" "vpn_server" {
domain_name = "vpn.${var.zone_domain}"
validation_method = "DNS"
lifecycle {
create_before_destroy = true
}
}
resource "aws_acm_certificate_validation" "vpn_server" {
@bobbrez
bobbrez / index.md
Last active June 15, 2020 22:01
Fullstack App Development with React Native and AWS

Overview

There's a lot to learn and its easy to fall down a few different rabbit holes. What I recommend is starting with a simple app that mimics the core 80% of functionality found in most apps and then expanding from there. This way you get to learn as you go but all the while have the basis for something that can actually be deployed (vs feeling just like a toy to start all over again from.)

App Premise

We're going to build an app that will enable people to find or become remote coaches to others. This is a classic two-sided market app, where the value is in connecting two people together based on specific criteria.

User Stories

@bobbrez
bobbrez / Artnet-test.ino
Last active September 3, 2019 13:09
ESP32 + ArtNet
#include <WiFi.h>
#include <WiFiUdp.h>
#include <FastLED.h>
#include <Artnet.h>
#include "common.h"
#define DMX_ID "test-03"
#define DMX_LONGNAME "TEST 03"
#define DMX_SHORTNAME DMX_ID
@bobbrez
bobbrez / gist:fac3d9951427b90cdbec5978c5a79652
Created September 25, 2017 10:05
Removing the Apple FTDI drivers
sudo kextunload -b com.apple.driver.AppleUSBFTDI
sudo kextutil -b com.apple.driver.AppleUSBFTDI -p AppleUSBEFTDI-6010-1
@bobbrez
bobbrez / instructions.md
Last active January 20, 2016 08:56
Spark Developer Setup

Setup Java 1.7.u79

Scala 2.10 requires Java 7 (vs Java 8).

Download the Java SE SDK and install.

Verify that Java 1.7 is installed

$ java -version
@bobbrez
bobbrez / gist:6678139
Created September 23, 2013 22:56
How to do rendering from a model
Don't do this unless you need to.... its kinda punching MVC in the face.
@bobbrez
bobbrez / timestamp.cpp
Created August 23, 2013 13:50
C++ for Scott
#include <stdio.h> // for sprintf()
#include <iostream> // for console output
#include <string> // for std::string
#include <ctime>
using namespace std;
int main(int argc, const char * argv[])
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
@bobbrez
bobbrez / json-table.rb
Last active December 14, 2015 15:58
Simple script to read json and output a table.
#!/usr/bin/env ruby
require 'rubygems'
require 'terminal-table'
require 'json'
require 'hashie'
require 'csv'
data = Hashie::Mash.new JSON.parse(ARGF.read)
CSV.open('uvr.csv', 'w') do |csv|
@bobbrez
bobbrez / gist:2228387
Created March 28, 2012 17:20
Javascript Question

So you have a document like this:

<!DOCTYPE html>
<html>
  <head></head>
  <body>
    <textarea id="myText"></textarea>
  </body>
</html>