In order of first appearance in The Morning Paper.
# Run me with: | |
# | |
# $ nginx -p /path/to/this/file/ -c nginx.conf | |
# | |
# All requests are then routed to authenticated user's index, so | |
# | |
# GET http://user:password@localhost/_search?q=* | |
# | |
# is rewritten to: | |
# |
# file name terraform/modules/aws_vpc/vpc.tf | |
# first create the VPC. | |
# Prefix resources with var.name so we can have many environments trivially | |
resource "aws_vpc" "mod" { | |
cidr_block = "${var.cidr}" | |
enable_dns_hostnames = "${var.enable_dns_hostnames}" | |
enable_dns_support = "${var.enable_dns_support}" | |
tags { | |
Name = "${var.env}_vpc" |
I hereby claim:
- I am asenchi on github.
- I am asenchi (https://keybase.io/asenchi) on keybase.
- I have a public key ASA7x3jgDU46kd6ITI7xBCcKRBueQr8CB8IbwUDfKuJ3RQo
To claim this, I am signing this object:
We have lived with ourselves since we were born. We know what we are thinking, and we know where our words and actions are coming from. However, it is difficult to translate that to working with others. We might be entirely sincere, but the words, phrasing, or time at which we choose to comment are important and impact the translation of that sincerity. The same is true for the listener as well, they bring their situation to the conversation just as much as the speaker.
It has been painfully obvious to me, forever, that I have a strong, overly confident personality that I present with overtly terse speech in how I communicate. If you are reading this and thinking, "oh my gawd dude, you are a pain in the ass" then I would say you are fortunate not to have known me 20 years ago.
However, there are things I do consistently to ensure I'm not going beyond my position at work unnecessarily, or too aggressively. I say this because I suffer from wanting to just dive in and do th
This sets up the environment that the scripts run in. I've found it to be the most flexible route as I don't have to do any complex config file formatting, and the environment becomes the config, which is easy to move around to different platforms (linux, BSD, Heroku, etc). Depending on what I am doing, I might also write a wrapper script that automatically sources the config and runs the script.
# config.sh
KEY1="value"
KEY2="value"
TOPICAL_KEY3="value"
TOPICAL_KEY4="value"
export KEY1 KEY2 TOPICAL_KEY3 TOPICAL_KEY4
# -- How do I do this in Sequel? | |
# CREATE SCHEMA IF NOT EXISTS mine | |
# CREATE TABLE test (name text); | |
# in Sequel (old way) | |
Sequel.migration do | |
up do | |
run "CREATE SCHEMA IF NOT EXISTS mine;" | |
create_table(:mine__test) do |
• hvalvatn:~ asenchi$ vim bin/old.py | |
• hvalvatn:~ asenchi$ python bin/old.py | |
Traceback (most recent call last): | |
File "bin/old.py", line 21, in <module> | |
print main(sys.argv[1]) | |
IndexError: list index out of range | |
• hvalvatn:~ asenchi$ python bin/old.py 07-22-1979 | |
Traceback (most recent call last): | |
File "bin/old.py", line 21, in <module> | |
print main(sys.argv[1]) |
• hvalvatn:~ asenchi$ vim bin/old.py | |
• hvalvatn:~ asenchi$ python bin/old.py | |
Traceback (most recent call last): | |
File "bin/old.py", line 21, in <module> | |
print main(sys.argv[1]) | |
IndexError: list index out of range | |
• hvalvatn:~ asenchi$ python bin/old.py 07-22-1979 | |
Traceback (most recent call last): | |
File "bin/old.py", line 21, in <module> | |
print main(sys.argv[1]) |
# Installing lpeg_tester | |
### installing boost | |
brew install boost | |
### installing webtookkit (wt) | |
brew install fcgi | |
brew install libpng | |
brew install libtiff |