Skip to content
View nixos-levelup.md

Leveling up with NixOS

I think NixOS/Nix have what I call as the "Scala/Haskell/$AlienLookingTechnology problem" (and it does not help that there is a large overlap between the these communities); that is, there are things about the technology that I really like and would like to start using immediately, but then come across a blog post, a piece of code that is so over my head that I back off and go do something else. I had this problem with Scala till I read Martin Odersky's "Scala levels: beginner to expert, application programmer to library designer"

View golang-tls.md

Generated private key

openssl genrsa -out server.key 2048

To generate a certificate

openssl req -new -x509 -key server.key -out server.pem -days 3650

https

View .neocities
NEO_USER="user"
NEO_PASS="31d4e66b68e1ec3ed19d55abda7f81ef"
View ocaml-object-system.ml
(* Source: http://pastebin.com/YsUs4Kfa *)
(* ocaml's object system is quite unique and rarely used, despite it actually being pretty awesome
* I call it "statically typed duck typing" because that's what it is
*)
(* let's define a """class"""
* your basic example of a linked-list
*)
let node (x, y) = object
View analyze.go
package main
import (
"bufio"
"fmt"
"os"
"regexp"
"sort"
"strconv"
"strings"
View markdeep.md.html
**Markdeep Feature Demo**
Morgan McGuire
This document shows the features of
[Markdeep](http://casual-effects.com/markdeep). Markdeep is a text
formatting syntax that extends Markdown, and a Javascript program for
making it work in browsers. The two most powerful features are its
ability to run in any **web browser** on the client side and the
inclusion of **diagrams**.
View postgresql_configuration_on_ubuntu_for_rails.md

Abstract

You could have postgre installed on localhost with password (or without user or password seted after instalation) but if we are developing we really don't need password, so configuring postgre server without password for all your rails project is usefull.

Install Postgre packages

  • postgresql
  • postgresql-client
  • libpq-dev
View concurrency-in-go.md
View beamer-tutorial.tex
\documentclass[pdf]{beamer}
\mode<all>{\usetheme{Warsaw} \useoutertheme{splitRSI}}
\mode<handout>{\usecolortheme{seagull}}
\usepackage{rsislidepacks}
\usepackage{colortbl}
\usepackage{epstopdf}
\usenavigationsymbolstemplate{}
% title information
\title{Making Slides}
View sshpub-to-rsa
#!/usr/bin/env python
# with help and inspiration from
# * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure)
# * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL
# * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html
import sys
import base64
import struct
Something went wrong with that request. Please try again.