Skip to content

Instantly share code, notes, and snippets.

Iñaki Abete inakiabt

Block or report user

Report or block inakiabt

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@inakiabt
inakiabt / AWSLambdaSimpleSMS.js
Last active Oct 30, 2017 — forked from stevebowman/AWSLambdaSimpleSMS.js
AWS Lambda Function to send an SMS message via the Twilio API
View AWSLambdaSimpleSMS.js
console.log('Loading event');
// Twilio Credentials
var accountSid = '';
var authToken = '';
var fromNumber = '';
var https = require('https');
var queryString = require('querystring');
@inakiabt
inakiabt / git-gpg.md
Last active Jul 14, 2017 — forked from bcomnes/git-gpg.md
my version of gpg on the mac
View git-gpg.md
  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 Sep 5, 2016
php54 (homebrew/php/php54) on Mac OS X 10.11.6 - Homebrew build logs
View # php54 - 2016-09-05_12-20-48.txt
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 Sep 5, 2016
php56 (homebrew/php/php56) on Mac OS X 10.11.6 - Homebrew build logs
View # php56 - 2016-09-05_11-18-08.txt
Homebrew build logs for homebrew/php/php56 on Mac OS X 10.11.6
Build date: 2016-09-05 11:18:08
View InstagramMgr.js
/**
*
* 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 / extjs-capture.js
Created Mar 20, 2012 — forked from revolunet/extjs-capture.js
ExtJs debug : capture all events
View extjs-capture.js
// 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'),
View nxfetch.sh
#!/bin/bash
# Argument = -h -v -i groupId:artifactId:version -c classifier -p packaging -r repository
#shopt -o -s xtrace
# Define Nexus Configuration
NEXUS_BASE=http://repository.example.com:8081/nexus
REST_PATH=/service/local
ART_REDIR=/artifact/maven/redirect
View SupervisedFileConumer.scala
// ###########################################################
//
// Demonstrates how to supervise an Akka consumer actor.
//
// The consumer consumes messages from a file endpoint:
// - successful message processing by the consumer will
// positively acknowledge the message receipt, causing
// the file endpoint to delete the file.
// - an exception during message processing will cause a
// supervisor to restart the consumer. Before restart,
@inakiabt
inakiabt / MemcacheEx.php
Created Feb 16, 2011
MemcacheEx - Memcache extension to support setMulti and getMulti methods
View MemcacheEx.php
<?php
class MemcacheEx extends Memcache
{
public function getMulti($keys)
{
$results = array();
if ($keys) {
foreach ($keys as $key) {
$cache = parent::get($key);
if ($cache !== false) {
You can’t perform that action at this time.