Skip to content

Instantly share code, notes, and snippets.

View raphink's full-sized avatar
🐝
eBPF everything!

Raphaël Pinson raphink

🐝
eBPF everything!
View GitHub Profile
@raphink
raphink / prepare_ftdna_gephi.rb
Last active June 12, 2018 07:36
A script to prepare FTDNA Chromosome Browser CSV extract for Gephi, inspired by http://twigsofyore.blogspot.com/2018/03/triangulation-is-icing-not-cake.html
#!/usr/bin/env ruby
require 'optparse'
require 'csv'
options = {
:min_cm => 7,
:min_snp => 700,
:min_total_cm => 20,
}
package main
import (
"log"
"github.com/raphink/narcissus"
"honnef.co/go/augeas"
)
type OVHConfig struct {

!SLIDE

## Departments

Camptocamp has 3 departments:
~~~ENDLANG~~~

~~~LANG:fr~~~
## Départements
data "aws_iam_policy_document" "terraboard" {
statement {
sid = "ReadOnly"
actions = [
"s3:GetObject",
"s3:ListBucket",
"s3:ListBucketVersions",
"s3:GetObjectVersion",
@raphink
raphink / auth.conf
Last active November 22, 2017 14:22
C2C blog post: Automatically renewing Puppet Certificates
{
name: "Allow nodes to delete their own certificates",
match-request: {
path: "^/puppet-ca/v1/certificate(_status|_request)?/([^/]+)$",
type: regex,
method: [delete]
},
allow: "$2",
sort-order: 500
}
FROM golang:1.9 as builder
COPY main.go /tmp
RUN cd /tmp && \
go get -d github.com/Sirupsen/logrus && \
CGO_ENABLED=0 GOOS=linux \
go build -a \
-installsuffix cgo -o entrypoint main.go
# ~/.config/google-chrome-beta/NativeMessagingHosts/com.justwatch.gopass.json
{
"name": "com.justwatch.gopass",
"description": "Gopass wrapper to search and return passwords",
"path": "/home/raphink/bin/gopass_wrapper.sh",
"type": "stdio",
"allowed_origins": [
"chrome-extension://kkhfnlkhiapbiehimabddjbimfaijdhk/"
]
}
@raphink
raphink / docker.sh
Last active August 8, 2017 09:38
Terraboard post
docker run -d -p 8080:8080 \
-e AWS_REGION=<AWS_DEFAULT_REGION> \
-e AWS_ACCESS_KEY_ID=<AWS_ACCESS_KEY_ID> \
-e AWS_SECRET_ACCESS_KEY=<AWS_SECRET_ACCESS_KEY> \
-e AWS_BUCKET=<terraform-bucket> \
-e AWS_DYNAMODB_TABLE=<terraform-locks-table> \
-e DB_PASSWORD="mygreatpasswd" \
--link postgres:db \
camptocamp/terraboard:latest
@raphink
raphink / .bashrc
Created July 24, 2017 11:10
Use pass with a secondary location (e.g. ~/.password-store-perso)
# Pass with specific location
_pass-perso() {
PASSWORD_STORE_DIR=~/.password-store-perso/ _pass
}
complete -o filenames -o nospace -F _pass-perso pass-perso
pass-perso() {
PASSWORD_STORE_DIR=~/.password-store-perso/ pass "$@"
}

Keybase proof

I hereby claim:

  • I am raphink on github.
  • I am raphink (https://keybase.io/raphink) on keybase.
  • I have a public key whose fingerprint is E7B7 4E88 338A 5B3C 886E 2F07 A1AA C49E 10CB 2A8D

To claim this, I am signing this object: