I hereby claim:
- I am detro on github.
- I am ivandemarino (https://keybase.io/ivandemarino) on keybase.
- I have a public key ASAqluqfdxEe_p__agBOYpFKA_rnlPdZmi3YWIpyt90w8go
To claim this, I am signing this object:
| description "Starts a SimpleHTTPServer to host 1 Password Anywhere" | |
| author "Ivan De Marino <detronizator@gmail.com>" | |
| version "1.0.0" | |
| # When to start/stop | |
| start on runlevel [2345] | |
| stop on runlevel [016] | |
| # Keep it running | |
| respawn |
| fn main() { | |
| // This might seem like a lot of lines for just catching the 2nd argument, | |
| // parse the string to int and store it in a variable, but what this also covers is | |
| // the absence of such value (first error case) or the non-parsability of the argument (second error case). | |
| // | |
| // I'm liking this stuff so far. | |
| let n = match env::args().skip(1).next() { | |
| Some(x) => match x.parse::<usize>() { | |
| Ok(y) => y, |
I hereby claim:
To claim this, I am signing this object:
| import org.apache.commons.compress.compressors.xz.XZCompressorOutputStream; | |
| import javax.validation.constraints.NotNull; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| /** | |
| * Wraps a generic InputStream into a XZ Compressed InputStream. | |
| * |
| use http::Error as HttpError; | |
| use std::{fmt, error}; | |
| type Result<T> = std::result::Result<T, ResolutionError>; | |
| /// A type of `Error` emitted by `Resolver` | |
| /// | |
| /// It contains a description and an optional `HttpError` that might have caused it | |
| #[derive(Debug)] |
If you, like me, want to contribute to Folding@Home from your Linux home server, it takes just few easy steps.
/etc/fahclient/config.xmlSometimes you need a specific version of Terraform a build for your combination of Operating System / Architecture doesn't exist. This can be because that combination came out later than the version of Terraform you are after, or some other reason.
But, no fear, Golang compiler is great, and the Terraform codebase is pretty easy.
This describes a build process that produces a working binary,
| Operation |
|
|
|
notable | 1Bx |
|---|---|---|---|---|---|
| L1 cache reference | |||||
| Branch mispredict | |||||
| L2 cache reference | 14x L1 cache | ||||
| Mutex lock/unlock | |||||
| Main Memory reference | 20x L2 cache, 200x L1 cache | ||||
| Compress 1K bytes with Zippy |