Skip to content

Instantly share code, notes, and snippets.

View christophebiocca's full-sized avatar

Christophe Biocca christophebiocca

View GitHub Profile
@christophebiocca
christophebiocca / keybase.md
Last active August 29, 2015 13:57
keybase.md

Keybase proof

I hereby claim:

  • I am christophebiocca on github.
  • I am christophe (https://keybase.io/christophe) on keybase.
  • I have a public key whose fingerprint is E3A0 3702 CF88 1378 94E4 9785 FB3B 43C0 1478 EDEC

To claim this, I am signing this object:

@christophebiocca
christophebiocca / dh_param
Created August 4, 2014 15:13
dhparam module
#!/usr/bin/python2
import os.path
import re
bit_matcher = re.compile(r'PKCS#3 DH Parameters: \((\d+) bit\)',re.MULTILINE)
def main():
module = AnsibleModule(
supports_check_mode=True,
@christophebiocca
christophebiocca / main.rs
Created December 9, 2017 20:54
Advent of code 2017-08 macrop-less chomp parser example.
//! Only does the parsing. Macro-less chomp is verbose but rather clear to use
extern crate chomp;
use chomp::prelude::*;
use std::io::{self, Read};
fn skip_whitespace(i : &str) -> SimpleResult<&str, ()> {
// skip_while1 is what I wanted to use, but it doesn't exist in the latest release?