gpg --gen-key
gpg --export --armor <email for new key> > ~/Desktop/my-pubkey.asc
gpg --recv-key <key id>
Encrpyt a message with a friend's key
IEEE 802.11 Radiotap Capture header (radiotap) | |
radiotap.antenna Antenna | |
Unsigned 32-bit integer | |
Antenna number this frame was sent/received over (starting at 0) | |
radiotap.channel Channel | |
Unsigned 32-bit integer | |
802.11 channel number that this frame was sent/received on | |
radiotap.channel.freq Channel frequency |
<?php | |
/* | |
* Takes a credit card number and ensures | |
* it contains the proper number of digits | |
* for the given card type. | |
*/ | |
function isValidCreditCardNumber($cardNumber) | |
{ | |
// First check that the card number |
" run :help <command> for more information | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
import Ember from "ember"; | |
export default Ember.Component.extend({ | |
content: null, | |
selectedValue: null, | |
didInitAttrs(attrs) { | |
this._super(...arguments); | |
if (!this.get('content')) { |
These instructions are only tested on installations that use the Docker apt repository.
Remove the existing installation
sudo apt-get remove docker-engine
List the available versions
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"os" | |
"github.com/bndw/pick/backends" | |
"github.com/bndw/pick/safe" |
#!/bin/bash | |
# | |
# Reloads HAProxy and kills the old instances kept alive by open connections. | |
# | |
# Old HAProxy instances will only be killed if they're: | |
# * bound to ports in CHOPPABLE_PORTS | |
# * not the active HAProxy process, as defined by PID_FILE | |
CONF=/etc/haproxy/haproxy.cfg | |
PID_FILE=/run/haproxy.pid |
I hereby claim:
To claim this, I am signing this object:
Go 1.10 was released today and an addition to the core library encoding/json
package caught my eye
func (dec *Decoder) DisallowUnknownFields()
DisallowUnknownFields causes the Decoder to return an error when the destination is a struct and the input contains object keys which do not match any non-ignored, exported fields in the destination.