Skip to content

Instantly share code, notes, and snippets.

Avatar

Nathan Handler nhandler

View GitHub Profile
@nhandler
nhandler / template.tf
Created Jan 9, 2019
Terraform JSON Policy Templating Example
View template.tf
variable "template_files" {
default = [
"policy1.json",
"policy2.json",
]
}
data "template_file" "template" {
count = "${length(var.template_files)}"
template = "${file("${path.module}/templates/${element(var.template_files, count.index)}")}"
View snapcraft.yaml
name: my-snap-name # you probably want to 'snapcraft register <name>'
version: '0.1' # just for humans, typically '1.2+git' or '1.3.2'
summary: Single-line elevator pitch for your amazing snap # 79 char long summary
description: |
This is my-snap's description. You have a paragraph or two to tell the
most important story about your snap. Keep it under 100 words though,
we live in tweetspace and your description wants to look good in the snap
store.
grade: devel # must be 'stable' to release into candidate/stable channels
@nhandler
nhandler / keybase.md
Last active Apr 14, 2016
keybase.io GitHub Identify Verification
View keybase.md

Keybase proof

I hereby claim:

  • I am nhandler on github.
  • I am nhandler (https://keybase.io/nhandler) on keybase.
  • I have a public key whose fingerprint is 31DC C3B3 3F21 7988 3DA0 14C7 CAFB 3BAD 0A75 C877

To claim this, I am signing this object:

@nhandler
nhandler / README.md
Last active Apr 17, 2019
Forward Irssi Notifications from Remote Server
View README.md

notify-remote

Forward Irssi Notifications from Remote Server

Description

It is very common to run Irssi on a remote server in screen or tmux via ssh. One challenge can be getting popup notifications when you receive a hilight. Most other solutions either require the user to manually run a script each time they connect to Irssi or they stop working when Irssi is left running for extended periods of time. This approach attempts to solve those problems.

How It Works

@nhandler
nhandler / Instructions
Created May 20, 2014
Configure SSH Access to VirtualBox Linux Guest Virtual Machine
View Instructions
To give your user sudo access:
usermod -a -G sudo YOURUSER (as root)
You will need to logout and then log back in for this change to start working
You can install the SSH server with:
sudo apt-get install openssh-server
In your Linux Guest VM:
@nhandler
nhandler / hw.tex
Created Jan 26, 2012 — forked from Dylnuge/hw.tex
Homework template
View hw.tex
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{enumerate}
You can’t perform that action at this time.