Skip to content

Instantly share code, notes, and snippets.

View glena's full-sized avatar

Germán Lena glena

  • Auth0
  • Buenos Aires, Argentina
View GitHub Profile
@glena
glena / gist:55ad2e04cee268a82b7ee90e185dc498
Last active March 18, 2017 15:24
Vanilla PHP - auth0 sample

Including it in your project

First, copy this file, remove the namespace if you are using PHP 5.3

I think it is not using these, but if you need them, copy this two too in the same file for the sake of simplicity

Put it somewhere is your project and require the file as usual (unless you are using an autoloader, in that case you should know how to handle).

@glena
glena / wt.js
Last active April 10, 2016 18:09
webtask to upload things to s3
var Promise = require('bluebird');
var request = Promise.promisify(require("request"));
var AWS = require('aws-sdk');
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -

Keybase proof

I hereby claim:

  • I am glena on github.
  • I am germanlena (https://keybase.io/germanlena) on keybase.
  • I have a public key whose fingerprint is 710B 7134 6752 DB37 29F4 45EA 7D62 BF8D 5ED9 B56C

To claim this, I am signing this object:

@glena
glena / ReadMe.md
Last active October 30, 2017 12:44 — forked from dobesv/ReadMe.md

You must provide the following configuration variables:

  1. WP_XMLRPC_URL = https://www.yourdomain.com/xmlrpc.php (replace with your domain and use http:// if you don't have SSL support)
  2. WP_ADMIN_USER = admin (use your own admin username)
  3. WP_ADMIN_PASSWORD = somepassword (use your own admin password)
@glena
glena / _.md
Last active August 29, 2015 14:18
Game of Life
package lib
import (
"bytes"
"io"
"strings"
"errors"
"syscall"
"unicode/utf8"
)