Skip to content

Instantly share code, notes, and snippets.

View steveh's full-sized avatar

Steve Hoeksema steveh

View GitHub Profile
PostgreSQL Type PostgreSQL Size Description Range Diesel Type Rust Type
Nullable Types nullable Nullable``
@steveh
steveh / etc-samba-smb.conf
Created May 12, 2014 07:30
Samba dfree and zfs on Ubuntu 14.04
# File: /etc/samba/smb.conf
dfree command = /usr/local/bin/dfree
#!/usr/bin/env ruby
interface = 'eth0'
host = nil
`ifconfig #{interface}`.each do |line|
host = $1 if line =~ /inet addr:([\d\.]+)/
end
map = {
2 => { 80 => :tcp }, # www
class Shape:
def area(self):
raise NotImplementedError
def perimeter(self):
raise NotImplementedError
class Rectangle(Shape):
def __init__(self, side1, side2):
class StringBoolean
class << self
TRUE = "1".freeze
FALSE = "0".freeze
TRUTHY = ["1", "t", "y", "true", "yes"].freeze
FALSEY = ["0", "f", "n", "false", "no", ""].freeze
def true
TRUE

Keybase proof

I hereby claim:

  • I am steveh on github.
  • I am steveh7 (https://keybase.io/steveh7) on keybase.
  • I have a public key whose fingerprint is 3ADA 37FE E349 122E 2E34 221F AB6B 83FF A8E4 F047

To claim this, I am signing this object:

variable "source_domain" {}
variable "destination_domain" {}
variable "certificate_arn" {}
variable "protocol" {
default = "https"
}

Keybase proof

I hereby claim:

  • I am steveh on github.
  • I am steveh7 (https://keybase.io/steveh7) on keybase.
  • I have a public key ASA4hXRsUZicLxQXK0uC4mH38gp4to8CEtA7iYJ4MAF2qQo

To claim this, I am signing this object:

#!/bin/bash
# Installation: save to /usr/local/bin/update
# and chmod +x /usr/local/bin/update
# Usage: update
set -euo pipefail
if [ -d ".git" ]; then
@steveh
steveh / crontab.sh
Created July 13, 2017 00:09
PRS price to Influxdb
* * * * * /home/steve/power/price | /home/steve/power/write