Skip to content

Instantly share code, notes, and snippets.

@inakiabt
inakiabt / git-gpg.md
Last active July 14, 2017 03:19 — forked from bcomnes/git-gpg.md
my version of gpg on the mac
  1. brew install gnupg21, pinentry-mac (this includes gpg-agent and pinentry)

  2. Generate a key: $ gpg2 --gen-key

  3. Take the defaults. Whatevs

  4. Tell gpg-agent to use pinentry-mac:

    $ vim ~/.gnupg/gpg-agent.conf 
    
@inakiabt
inakiabt / # php54 - 2016-09-05_12-20-48.txt
Created September 5, 2016 15:22
php54 (homebrew/php/php54) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/php/php54 on Mac OS X 10.11.6
Build date: 2016-09-05 12:20:48
@inakiabt
inakiabt / # php56 - 2016-09-05_11-18-08.txt
Created September 5, 2016 14:27
php56 (homebrew/php/php56) on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for homebrew/php/php56 on Mac OS X 10.11.6
Build date: 2016-09-05 11:18:08
@inakiabt
inakiabt / AWSLambdaSimpleSMS.js
Last active October 30, 2017 20:21 — forked from stevebowman/AWSLambdaSimpleSMS.js
AWS Lambda Function to send an SMS message via the Twilio API
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
Verifying I am +inakiabt on my passcard. https://onename.com/inakiabt

Keybase proof

I hereby claim:

  • I am inakiabt on github.
  • I am inakiabt (https://keybase.io/inakiabt) on keybase.
  • I have a public key whose fingerprint is 35D5 CC84 32AD 4E17 1BC3 A7FA 65C2 8E14 835D F963

To claim this, I am signing this object:

@inakiabt
inakiabt / echoHttpRequest.js
Last active August 29, 2015 14:16 — forked from Marak/echoHttpRequest.js
Echo HTTP requests
module['exports'] = function echoHttp (hook) {
hook.debug("Debug messages are sent to the debug console");
hook.debug(hook.params);
hook.debug(hook.req.path);
hook.debug(hook.req.method);
@inakiabt
inakiabt / build.sbt
Last active August 29, 2015 14:09 — forked from mumoshu/build.sbt
name := "DES and AES encryption in Scala"
version := "1.0"
scalaVersion := "2.9.1"
libraryDependencies += "commons-codec" % "commons-codec" % "1.6"
@inakiabt
inakiabt / decode-email.rb
Created July 16, 2014 22:29
Decode raw text/plain email
# gem install mail
require 'rubygems'
require 'mail'
mail = Mail.new(open("body.txt").read)
print mail.text_part.decode_body