Skip to content

Instantly share code, notes, and snippets.

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 https://forgeapi.puppetlabs.com ...
Debug: HTTP GET https://forgeapi.puppetlabs.com/v3/releases?module=jfryman-nginx
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
jayschwa / keybase.md
Last active March 28, 2019 01:24
Keybase proof

Keybase proof

I hereby claim:

  • I am jayschwa on github.
  • I am jayschwa (https://keybase.io/jayschwa) on keybase.
  • I have a public key ASB0kE_KS6aDiXP-sg5wV3r9piE9gw4gpYdp0ILLjBCdTQo

To claim this, I am signing this object:

/**
* @author Alejandro Rivera (alejrivera@ebay.com)
* @since 2014-03-13 17:23
*/
@JsonSerialize(using = JsonDateSerializer.class)
public class DateTime extends java.util.Date {
public DateTime(long date) {
super(date);
}
@jayschwa
jayschwa / capability_abstract.md
Created March 14, 2014 05:09
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
jayschwa / which.go
Created February 17, 2014 03:31
`which` utility implemented in Go. Created for a Windows machine.
package main
import (
"fmt"
"os"
"os/exec"
)
func main() {
for _, cmd := range os.Args[1:] {
@jayschwa
jayschwa / question
Last active December 25, 2015 22:29
?
@jayschwa
jayschwa / fib.hs
Last active January 24, 2017 16:14
Fibonacci sequence shootout between C, Go, and Haskell.
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
jayschwa / foo.go
Last active December 17, 2019 02:40
Golang and assembly
func Foo(int) int // Defined in assembly
func foo(int) int { // Fallback version in Go
// ...
return 0
}
@jayschwa
jayschwa / matrix.go
Created June 5, 2013 21:02
Playing with matrix performance in Go.
package main
import "fmt"
import "os"
import "time"
import "runtime/pprof"
type Vec4 [4]float32
type Mat4 [4]Vec4
@jayschwa
jayschwa / ImmutableArrays.jl
Created March 27, 2013 00:42
ImmutableArrays prototype using metaprogramming
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)