Skip to content

Instantly share code, notes, and snippets.

Christopher Taylor ccmtaylor

Block or report user

Report or block ccmtaylor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrisdone
chrisdone / AnIntro.md
Last active Jul 6, 2019
Statically Typed Lisp
View AnIntro.md

Basic unit type:

λ> replTy "()"
() :: ()

Basic functions:

View ssh-agent-forwarding-screen.md

SSH agent forwarding and screen

When connecting to a remote server via SSH it is often convenient to use SSH agent forwarding so that you don't need a separate keypair on that server for connecting to further servers.

This is enabled by adding the

ForwardAgent yes

option to any of your Host entries in ~/.ssh/config (or alternatively with the -A option). Don't set this option in a wildcard Host * section since any user on the remote server that can bypass file permissions can now als use keys loaded in your SSH agent. So only use this with hosts you trust.

@dctrwatson
dctrwatson / nginx.conf
Last active Jul 23, 2019
Caching PyPi packages locally with nginx
View nginx.conf
user www-data;
worker_processes 4;
error_log /var/log/nginx/error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
@paulp
paulp / The Signs of Soundness
Last active Aug 3, 2019
The Signs of Soundness
View The Signs of Soundness
Hello scala, my old friend
I've come to take you home again
Because a feature slowly creeping
left me plagued with doubts and weeping
and the version that was tagged in the repo
just has to go
it lacks the signs of soundness
On sleepless nights I hacked alone
applying ant and other tools of stone
@maxbeatty
maxbeatty / site-links.css
Created Oct 14, 2012
Site Links from Lea Verou
View site-links.css
@jvranish
jvranish / valueLevelClasses.hs
Created May 2, 2012
An experiment with mixing value level typeclasses and implicit parameters
View valueLevelClasses.hs
{-# LANGUAGE Rank2Types
, RebindableSyntax
, ImplicitParams
, NoMonomorphismRestriction #-}
import Data.Maybe
import Data.Function
import Data.String
import Prelude (undefined, error, String, (++))
@dcsobral
dcsobral / prompt.sbt
Created May 28, 2011
SBT prompt with project name and current git branch
View prompt.sbt
shellPrompt <<= name(name => { state: State =>
object devnull extends ProcessLogger {
def info(s: => String) {}
def error(s: => String) { }
def buffer[T](f: => T): T = f
}
val current = """\*\s+(\w+)""".r
def gitBranches = ("git branch --no-color" lines_! devnull mkString)
"%s:%s>" format (
name,
You can’t perform that action at this time.