Skip to content

Instantly share code, notes, and snippets.

View ru-zar's full-sized avatar

Zach R ru-zar

View GitHub Profile
@ru-zar
ru-zar / gist:3829f43cd8e8e242549b49e842aee23d
Created November 21, 2019 23:01
OpenOffice diff between settings that evaluate excel formulas and settings that don't.
## from ~/.config/libreoffice/4/user-with-bug/registrymodifications.xcu
The first interesting part is that IterativeReference MinimumChange goes up to 0.001 from 0.0001. Some Googling on the subject reveals that some (recursive? cyclical?) Excel formulas iterate until the result becomes stable to a certain threshold. The settings change in the UI appears to raise that number, presumably for faster, less-finicky, less precise results?
5c5
< <item oor:path="/org.openoffice.Office.Calc/Calculate/IterativeReference"><prop oor:name="MinimumChange" oor:op="fuse"><value>0.0001</value></prop></item>
@ru-zar
ru-zar / index.js
Created September 27, 2019 14:47
Terraform Demo - v3
const heads = process.env.HEADS;
const tails = process.env.TAILS;
module.exports.handler = function(event, context, done) {
const flip = Boolean(Math.round(Math.random()));
done(null, {
statusCode: 200,
headers: {
'Content-Type': 'text/plain',
'Access-Control-Allow-Origin': '*'
@ru-zar
ru-zar / index.js
Created September 27, 2019 14:46
Terraform Demo - Lambda v2
const heads = process.env.HEADS;
const tails = process.env.TAILS;
module.exports.handler = function(event, context, done) {
const flip = Boolean(Math.round(Math.random()));
done(null, {
statusCode: 200,
headers: {
'Content-Type': 'text/plain'
},
@ru-zar
ru-zar / index.js
Created September 27, 2019 14:45
Terraform Demo - Lambda v1
const heads = process.env.HEADS;
const tails = process.env.TAILS;
module.exports.handler = function(event, context, done) {
const flip = Boolean(Math.round(Math.random()));
done(null, flip ? heads : tails);
}
@ru-zar
ru-zar / index.html
Created September 27, 2019 14:42
Terraform Demo - HTML v2
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Terraform!</title>
<style>
html, body {
color: white;
height: 100%;
width: 100%;
@ru-zar
ru-zar / index.html
Created September 27, 2019 14:42
Terraform Demo - HTML
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Terraform!</title>
<style>
html, body {
color: white;
height: 100%;
width: 100%;
@ru-zar
ru-zar / terraform-demo.tf
Created September 27, 2019 14:40
Terraform Demo - Step 1
provider "aws" {
region = "us-east-1"
version = "~> 2.20"
}
resource "aws_s3_bucket" "terraform-demo" {
bucket = "ru-terraform-demo"
acl = "public-read"
}
@ru-zar
ru-zar / terraform-demo.tf
Created September 27, 2019 14:39
Terraform Demo - Step 2
provider "aws" {
region = "us-east-1"
version = "~> 2.20"
}
variable "env_name" {
type = string
}
locals {
@ru-zar
ru-zar / terraform-demo.tf
Created September 27, 2019 14:37
Terraform Demo - Step 3
provider "aws" {
region = "us-east-1"
version = "~> 2.20"
}
variable "env_name" {
type = string
}
locals {
@ru-zar
ru-zar / terraform-demo.tf
Created September 27, 2019 14:35
Terraform Demo - Step 4
provider "aws" {
region = "us-east-1"
version = "~> 2.20"
}
variable "env_name" {
type = string
}
locals {