Skip to content

Instantly share code, notes, and snippets.

% resume.tex
% vim:set ft=tex spell:
% This may not be the most current version
% Modified from http://www.toofishes.net/blog/latex-resume-follow-up/
\documentclass[10pt,letterpaper]{article}
\usepackage[letterpaper,margin=0.75in]{geometry}
\usepackage[utf8]{inputenc}
#!/bin/sh
# Usage scanPaper /output/path/forScan
# Scan an '11-8.5' paper and convert to pdf
# Place pdf in /output/path/forScan
# Does not remove /tmp/scan by default, uncomment last
# line to remove temporary file afterwards
scanimage --mode Binary --resolution 600 -x 215.9 -y 279.4 > /tmp/scan.ppm
// This is a simple fileserver that serves wherever it is called.
// similar to a "terminal here" feature but for a fileserver.
// This makes it simple to quickly share some files someone,
// the default port is 8080 and it prints the ip addresses of
// pertinent interfaces.
//
// for example
//
// user@pc % pwd
// /home/user/Desktop
@bertabus-zz
bertabus-zz / HaversinFormula.go
Created March 13, 2016 22:46 — forked from cdipaolo/HaversinFormula.go
Golang functions to calculate the distance in meters between long,lat points on Earth.
// haversin(θ) function
func hsin(theta float64) float64 {
return math.Pow(math.Sin(theta/2), 2)
}
// Distance function returns the distance (in meters) between two points of
// a given longitude and latitude relatively accurately (using a spherical
// approximation of the Earth) through the Haversin Distance Formula for
// great arc distance on a sphere with accuracy for small distances
//

Setting up a SSL Cert from Comodo

I use Namecheap.com <https://namecheap.com>_ as a registrar, and they resale SSL Certs from a number of other companies, including Comodo <http://www.comodo.com/>_.

These are the steps I went through to set up an SSL cert.

Purchase the cert

ArchLinux Installation guide

This will use GPT partitions and GRUB2 on a BIOS enabled PC (see Wiki for EFI). The Installation Guide can be found at /root/install.txt.

Prepare USB stick

Get 2012.08.04 image or later from http://www.archlinux.org/download. Following tutorial requires at least 2011.07.15 image.

dd if=/dev/zero of=/dev/sdx bs=1k count=1

@bertabus-zz
bertabus-zz / test.adoc
Last active August 29, 2015 14:02
testing asciidoc

Document Title

preamble

another preamble paragraph

First Section

@bertabus-zz
bertabus-zz / Func_Stringy.go
Created April 30, 2014 18:47
First class functions in Go
package main
import fmt "fmt"
type Stringy func() string
func foo() string {
return "Stringy function"
}
package main
import (
"fmt"
"io/ioutil"
)
func main() {
bs, err := ioutil.ReadFile("test.txt")
if err != nil {