Skip to content

Instantly share code, notes, and snippets.

It was a long night, it was a bright night, it was a night like no other. The moon's reflection in the waters was unfortunate for our need of discretion, but it seemed as if every lifeform out and about was looking up to the sky.

Pre-Darkening people would have looked forlorn, and others familiar with history would also have a curious look, but for all others, it was an eerie spectacle. The full moon shone like a whiter sun in a darker sky, no other light beside it. No "stars", as they called the pinpricks of light that everybody from before had seen, and told of, anguish in their voice. Many of us didn't think it was even real. The fantastic tales we had been told sounded too

@passcod
passcod / yaml.tmpl
Created August 24, 2014 12:20
Template file to dump docker-gen's output in YAML format
---
{{ range $_, $cont := $ }}
{{ $addrLen := len $cont.Addresses }}
{{ $envLen := len $cont.Env }}
{{ $regLen := len $cont.Image.Registry }}
- id: "{{ $cont.ID }}"
{{ if eq $addrLen 0 }}
addresses: ~
{{ else }}
addresses:
pub static foo: u8 = 1;
/// A single-line description of a static
pub static bar: i8 = 2;
/// A multi-line description of a static
///
/// Cras placerat suscipit iaculis. Nullam eget tellus luctus,
/// ultrices massa eu, mollis magna. Aliquam dignissim at lorem
/// quis interdum.
@passcod
passcod / keybase.md
Last active August 29, 2015 14:02
Keybase Proof

Keybase proof

I hereby claim:

  • I am passcod on github.
  • I am passcod (https://keybase.io/passcod) on keybase.
  • I have a public key whose fingerprint is E49C 3114 2E3D 10A4 69F0 86DC 6B09 4637 AE1E D85D

To claim this, I am signing this object:

rustc 0.11.0-pre-nightly (db5ca23 2014-05-14 01:06:24 -0700)
host: x86_64-unknown-linux-gnu
@passcod
passcod / gist:23f905be1beaf3e88063
Last active August 29, 2015 14:01
Rust compiler error
$ uname -a
Linux archbook 3.14.2-1-ARCH #1 SMP PREEMPT Sun Apr 27 11:28:44 CEST 2014 x86_64 GNU/Linux
$ rust -v
rustc 0.11.0-pre-nightly (db5ca23 2014-05-14 01:06:24 -0700)
host: x86_64-unknown-linux-gnu
$ RUST_BACKTRACE=1 rustc -L . --tests tests.rs
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
@passcod
passcod / -
Last active August 29, 2015 14:01
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug.
note: we would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' failed at 'No triple in crate', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libstd/option.rs:167
@passcod
passcod / rustc -L . --test tests.rs
Last active August 29, 2015 14:01
rustc -L . --test tests.rs
tests.rs:23:5: 23:40 error: mismatched types: expected `(rast::http::StatusCode,collections::hashmap::HashMap<&str,&str>,B)` but found `(rast::http::StatusCode,collections::hashmap::HashMap<&'static str,&'static str>,std::io::mem::MemReader)` (expected type parameter but found struct std::io::mem::MemReader)
tests.rs:23 (rast::http::StatusCode(200), h, r)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tests.rs:47:22: 47:54 error: cannot determine a type for this bounded type parameter: unconstrained type
tests.rs:47 println!("{:?}", app.call(env, heads, inpt, errr));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: in expansion of format_args!
<std macros>:2:23: 2:77 note: expansion site
<std macros>:1:1: 3:2 note: in expansion of println!
tests.rs:47:5: 47:56 note: expansion site
@passcod
passcod / gist:11367269
Last active August 29, 2015 14:00
Mulder discusses good / accessible South Island glacier walks (20130822 #ualug)
[23:34:06] <Mulder> lake marian (1-2hours)
[23:34:19] <Mulder> walking up to the milford divide is nice (~3hours)
[23:34:34] *** passcod takes notes
[23:34:43] <Mulder> mt alfred (near glenorchy/kinloch) 4-6 hours return. amazing views on summit
[23:34:55] <iampat> passcod: have you ever gone up Ngauruhoe?
[23:34:57] <iampat> *down
[23:35:45] <Mulder> if your'e a bit more rugged, then mt earnslaw is a good one to see ~8 hours to where the glacier is - proceed further only if you have alpine skills
[23:36:15] <Mulder> routebourn and milford tracks are spectacular but they're great walks and $$$ for hut fees
[23:36:21] <Mulder> i can personally vouch for routebourn
[23:36:29] <Mulder> kepler is meant to be quite good too