Skip to content

Instantly share code, notes, and snippets.

View puppet_fail
puppet module install --debug --force --target-dir /usr/share/puppet/modules jfryman-nginx --version 0.0.10
Debug: Runtime environment: run_mode=user, puppet_version=3.8.7, ruby_version=1.8.7
Notice: Preparing to install into /usr/share/puppet/modules ...
Notice: Downloading from ...
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: Failed to load library 'pe_license' for feature 'pe_license'
Error: hostname was not match with the server certificate
Error: Try 'puppet help module install' for usage
jayschwa /
Last active Mar 28, 2019
Keybase proof

Keybase proof

I hereby claim:

  • I am jayschwa on github.
  • I am jayschwa ( on keybase.
  • I have a public key ASB0kE_KS6aDiXP-sg5wV3r9piE9gw4gpYdp0ILLjBCdTQo

To claim this, I am signing this object:

* @author Alejandro Rivera (
* @since 2014-03-13 17:23
@JsonSerialize(using = JsonDateSerializer.class)
public class DateTime extends java.util.Date {
public DateTime(long date) {
jayschwa /
Created Mar 14, 2014
The Case For Capability Based Computers

The Case For Capability Based Computers

R. S. Fabry

Computer Systems Research Project, University of California, Berkeley

The idea of a capability which acts like a ticket authorizing the use of some resource was developed by Dennis and Van Horn as a generalization of addressing and protection schemes such as the code-words of the Rice computer, the descriptors of the Burroughs machines, and the segment and page tables in computers such as the GE-645 and IBM 360/67. Dennis and Van Horn generalized the earlier schemes by extending them to include not just memory, but all systems resources: memory, processes, input/output devices, and so on; and by stressing the explicit manipulation of access control by non-system programs. The idea is that a capability is a special kind of address for an object, that these addresses can be created only by the supervisor, and that in order to use any object, one must address it via one of these addresses. The name. comes from the fact

jayschwa / which.go
Created Feb 17, 2014
`which` utility implemented in Go. Created for a Windows machine.
View which.go
package main
import (
func main() {
for _, cmd := range os.Args[1:] {
jayschwa / fib.hs
Last active Jan 24, 2017
Fibonacci sequence shootout between C, Go, and Haskell.
View fib.hs
import System.Environment
fib 0 = 0
fib 1 = 1
fib n = fib (n-1) + fib (n-2)
main = do
args <- getArgs
let n = read (args !! 0)
print (fib n)
jayschwa / foo.go
Last active Dec 17, 2019
Golang and assembly
View foo.go
func Foo(int) int // Defined in assembly
func foo(int) int { // Fallback version in Go
// ...
return 0
jayschwa / matrix.go
Created Jun 5, 2013
Playing with matrix performance in Go.
View matrix.go
package main
import "fmt"
import "os"
import "time"
import "runtime/pprof"
type Vec4 [4]float32
type Mat4 [4]Vec4
jayschwa / ImmutableArrays.jl
Created Mar 27, 2013
ImmutableArrays prototype using metaprogramming
View ImmutableArrays.jl
module ImmutableArrays
export Vector2, Vector3, Vector4
importall Base
for n = 2:4
local Typ = symbol(string("Vector", n))
local TypT = Expr(:curly, Typ, :T)
local definition = :(immutable $TypT <: AbstractVector{T} end)