Skip to content

Instantly share code, notes, and snippets.

View nhandler's full-sized avatar

Nathan Handler nhandler

View GitHub Profile
@nhandler
nhandler / hw.tex
Created January 26, 2012 05:02 — forked from dylnuge/hw.tex
Homework template
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{fancyhdr}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{listings}
\usepackage{graphicx}
\usepackage{enumerate}
@nhandler
nhandler / Instructions
Created May 20, 2014 21:41
Configure SSH Access to VirtualBox Linux Guest Virtual Machine
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 / README.md
Last active April 17, 2019 15:58
Forward Irssi Notifications from Remote Server

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 / keybase.md
Last active April 14, 2016 22:43
keybase.io GitHub Identify Verification

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 / snapcraft.yaml
Created February 11, 2017 23:44
$ snapcraft init
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 / template.tf
Created January 9, 2019 04:14
Terraform JSON Policy Templating Example
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)}")}"