PostgreSQL Type | PostgreSQL Size | Description | Range | Diesel Type | Rust Type |
---|---|---|---|---|---|
Nullable Types | nullable | Nullable `` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# File: /etc/samba/smb.conf | |
dfree command = /usr/local/bin/dfree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Shape: | |
def area(self): | |
raise NotImplementedError | |
def perimeter(self): | |
raise NotImplementedError | |
class Rectangle(Shape): | |
def __init__(self, side1, side2): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variable "source_domain" {} | |
variable "destination_domain" {} | |
variable "certificate_arn" {} | |
variable "protocol" { | |
default = "https" | |
} |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* * * * * /home/steve/power/price | /home/steve/power/write |
NewerOlder