Skip to content

Instantly share code, notes, and snippets.

@inakiabt
inakiabt / extjs-capture.js
Created March 20, 2012 22:42 — forked from revolunet/extjs-capture.js
ExtJs debug : capture all events
// to capture ALL events use:
Ext.util.Observable.prototype.fireEvent = Ext.Function.createInterceptor(Ext.util.Observable.prototype.fireEvent, function(evt) {
var a=arguments;
console.log(this,' fired event ',evt,' with args ',Array.prototype.slice.call(a,1,a.length));
return true;
});
// to capture events for a particular component:
Ext.util.Observable.capture(
Ext.getCmp('my-comp'),
/**
*
* this code was inspired by the work done by David Riccitelli
*
* Copyright 2011 Aaron K. Saunders, Clearly Innovative Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@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 / # 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 / 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 / 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');