create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/env ruby | |
#/ Usage: <progname> [options]... | |
#/ How does this script make my life easier? | |
# ** Tip: use #/ lines to define the --help usage message. | |
$stderr.sync = true | |
require 'optparse' | |
# default options | |
flag = false | |
option = "default value" |
use 5.012; | |
my @zigzag = qw{ | |
0 1 5 6 14 15 27 28 | |
2 4 7 13 16 26 29 42 | |
3 8 12 17 25 30 41 43 | |
9 11 18 24 31 40 44 53 | |
10 19 23 32 39 45 52 54 | |
20 22 33 38 46 51 55 60 | |
21 34 37 47 50 56 59 61 | |
35 36 48 49 57 58 62 63 |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
// Direct-Style Monads in Scala | |
object Fpm2012 { | |
trait Monad[M[_]] { | |
def unit[A](x : A) : M[A] | |
def bind[A, B](m : M[A], f : A => M[B]) : M[B] | |
} | |
implicit object OptionMonad extends Monad[Option] { | |
def unit[A](x : A) = Some(x) |
Sometimes you want to use a gem on Heroku that is in a private repository on GitHub.
Using git over http you can authenticate to GitHub using basic authentication. However, we don't want to embed usernames and passwords in Gemfiles. Instead, we can use authentication tokens.
First you will need to get an OAuth Token from GitHub using your own username and "note"
// = Requirements: freetype 2.5, libpng, libicu, libz, libzip2 | |
// = How to compile: | |
// % export CXXFLAGS=`pkg-config --cflags freetype2 libpng` | |
// % export LDFLAGS=`pkg-config --libs freetype2 libpng` | |
// % clang++ -o clfontpng -static $(CXXFLAGS) clfontpng.cc $(LDFLAGS) \ | |
// -licuuc -lz -lbz2 | |
#include <cassert> | |
#include <cctype> | |
#include <iostream> | |
#include <memory> |
#!/bin/bash | |
# ----------------------------------------------------------------------- # | |
# I N F O | |
# ----------------------------------------------------------------------- # | |
# | |
# | |
# ********************************************************************** * | |
# | |
# Get the latest version of this file from: |
Author: Chris Lattner