I hereby claim:
- I am brianonn on github.
- I am brianonn (https://keybase.io/brianonn) on keybase.
- I have a public key ASAAUGO9rSvZRo6AoFeFjpB4IOt1FrftRqeEqn42O9b2kAo
To claim this, I am signing this object:
# from https://www.safaribooksonline.com/library/view/ansible-up-and/9781491915318/ch04.html | |
- name: get snapshot id | |
shell: > | |
aws ec2 describe-snapshots --filters | |
Name=tag:Name,Values=my-snapshot | |
| jq --raw-output ".Snapshots[].SnapshotId" | |
register: snap_result | |
- set_fact: snap={{ snap_result.stdout }} |
# generate keypair for sending device | |
openssl genrsa -out send_device.key 2048 | |
openssl rsa -in send_device.key -pubout > send_device.pub | |
# generate keypair for receiving device | |
openssl genrsa -out recv_device.key 2048 | |
openssl rsa -in recv_device.key -pubout > recv_device.pub | |
# register the sending device | |
curl -X POST https://meshblu.octoblu.com/devices -H 'Content-Type: application/json' -d "{\"publicKey\": \"`cat send_device.pub | base64`\"}" > send_device.json |
#!/bin/bash | |
dest="/Volumes/Backup" | |
filter="${HOME}/.rsync-filter" | |
rsync="/usr/local/bin/rsync" | |
if [ -d "$dest" ]; then | |
sudo time nice -n19 ${rsync} -X -A -H -go --numeric-ids -D --protect-decmpfs -l -rtpx -N --fileflags --force-change --protect-args --delete-before --ignore-errors --filter="${filter}" // "${dest}" | |
sudo bless -folder "${dest}/System/Library/CoreServices" | |
else |
register file:/home/hadoop/lib/pig/piggybank.jar | |
DEFINE EXTRACT org.apache.pig.piggybank.evaluation.string.EXTRACT; | |
RAW_LOGS = LOAD 's3://apiaxle-logs/*' USING TextLoader as (line:chararray); | |
LOGS_BASE = FOREACH RAW_LOGS GENERATE | |
FLATTEN( | |
EXTRACT(line, '^(\\S+) (\\S+) (\\S+) \\[([\\w:/]+\\s[+\\-]\\d{4})\\] "(.+?) (.+)&api_key=(.+?)(&.+)? (.+?)" (\\S+) (\\S+) "([^"]*)" "([^"]*)"') | |
) | |
as ( | |
remoteAddr: chararray, |
var moid = function () { | |
var timestamp = (new Date().getTime() / 1000 | 0).toString(16); | |
return timestamp + 'xxxxxxxxxxxxxxxx'.replace(/[x]/g, function() { | |
return (Math.random() * 16 | 0).toString(16); | |
}).toLowerCase(); | |
}; | |
console.log(moid()) |
I hereby claim:
To claim this, I am signing this object:
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
#!/usr/bin/env python3 | |
import os | |
import gnupg | |
from pywallet import wallet | |
# OS X hack fixed in a newer release of gnupg | |
gnupg._parsers.Verify.TRUST_LEVELS["ENCRYPTION_COMPLIANCE_MODE"] = 23 | |
seed=wallet.generate_mnemonic() |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--cpus", "1"] | |
vb.customize ["modifyvm", :id, "--memory", "768"] | |
vb.name = "novoansible" |
touch README.md
git init
git add README.md
git commit -m "first commit"
## push to remote
# the remote repository must already exist
git remote add origin https://github.com/brianonn/newrepo.git
git push -u origin master