I hereby claim:
- I am ntk148v on github.
- I am kiennt2609 (https://keybase.io/kiennt2609) on keybase.
- I have a public key whose fingerprint is 6714 4396 E506 B36D F1B2 D898 E466 1998 A6C3 A536
To claim this, I am signing this object:
| #!/usr/bin/env python | |
| # | |
| # Convert .itermcolors files to hex colors | |
| import sys | |
| import xml.etree.ElementTree as ET | |
| def rgb_to_hex(rgb): | |
| return '#%02x%02x%02x' % rgb |
| # Lb2 /etc/exabgp/exabgp.conf | |
| neighbor 10.12.12.254 { # Remote neighbor to peer with | |
| router-id 10.12.12.254; # Local router-id | |
| local-address 10.12.12.2; # Local update-router | |
| local-as 65500; # Local AS | |
| peer-as 65500; # Peer AS | |
| family { | |
| ipv4 unicast; | |
| } |
I hereby claim:
To claim this, I am signing this object:
EDIT from 2019: Hi folks. I wrote this gist for myself and some friends, and it seems like it's gotten posted somewhere that's generated some (ahem, heated) discussion. The whitespace was correct when it was posted, and since then GitHub changed how it formats (thank you @anzdaddy for suggesting a formatting workaround) honestly this is a random throwaway gist from 2015, and someone more knowledgable about this comparison should just write a proper blog post about it. If you comment here I'll hopefully see it and stick a link to it up here. Cheers. @oconnor663<pre> tags. Look at the raw text if you care about this. I'm sure someone could tell me how to fix it, but
Here's the canonical TOML example from the TOML README, and a YAML version of the same.
title = "TOML Example" |
In this scenario we are going to set up Vault to sign SSH keys using an internal CA. We will configure the SSH secrets engine and create a CA within Vault. We will then configure an SSH server to trust the CA key we just created. Finally we will attempt to SSH using a private key, and a public key signed by Vault SSH CA.
| package transform | |
| import ( | |
| "errors" | |
| "fmt" | |
| "strconv" | |
| "strings" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/service/ecs" |
Some notes about:
These notes assume some basic background knowledge about memory management, ulimits and cgroups.
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "os" | |
| "os/signal" | |
| "syscall" | |
| "time" |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" |
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "os/signal" | |
| "strconv" |