Skip to content

Instantly share code, notes, and snippets.

View zenorocha's full-sized avatar

Zeno Rocha zenorocha

View GitHub Profile
#!/usr/bin/env zsh
openssl genrsa -des3 -out self-signed.pass.key 2048
openssl rsa -in self-signed.pass.key -out self-signed.key
openssl req -new -key self-signed.key -out self-signed.csr
openssl x509 -req -days 365 -in self-signed.csr -signkey self-signed.key -out self-signed.crt
echo "SHA1 fingerprint:\n"
openssl x509 -in self-signed.crt -sha1 -noout -fingerprint
@zenorocha
zenorocha / entry.js
Last active July 20, 2018 06:56
Bundling Clipboard.js distribution with Webpack
var Clipboard = require('clipboard');
@zenorocha
zenorocha / entry.js
Last active April 8, 2018 02:01
Bundling Clipboard.js' distribution with Webpack
var Clipboard = require('clipboard');

Over the last couple months we noticed some community stagnation and big performance issues with DocPad. Because of that, and few other problems that appeared to be far from being solved, we decided to move to a new stack #109.

What changed?

For backward compatibility purposes, we decided to keep all folders and all automated task commands with the exact same name.

New features should be expected in upcoming versions, this release is intended to be a 1:1 mapping.

Architecture

@zenorocha
zenorocha / README.md
Last active February 25, 2019 14:13
Building NodeWebkit apps with Gulp

Tasks

To install the task-runner, run:

$ npm install -g gulp

To install local dependencies, run:

@zenorocha
zenorocha / aui-use-vs-ready.md
Last active March 15, 2018 00:01
A.use vs A.ready
AUI().use('aui-button', function(A) {
   // This code will fire when
   // aui-button module and its
   // dependencies are loaded
});

Now, there are times when you want to both load some modules and fire your callback on DOM ready, so here is how you would do that in Alloy:

@zenorocha
zenorocha / bookshelf.md
Last active January 14, 2025 21:04
My bookshelf
var gulp = require('gulp');
var shell = require('gulp-shell');
gulp.task('init', function() {
return gulp.src('', { read: false })
.pipe(shell('bower install', {
ignoreErrors: true
}));
});
@zenorocha
zenorocha / pauta.md
Last active January 25, 2017 14:47
Em 14 de Janeiro fizemos uma reunião aberta para traçar o rumo de algumas iniciativas da BrazilJS Foundation. Abaixo você encontra um pouco do que rolou.

Pauta - BrazilJS 2014

🎥 Hangout

Em 14 de Janeiro fizemos uma reunião aberta para traçar o rumo de algumas iniciativas da BrazilJS Foundation. Abaixo você encontra um pouco do que rolou.

Números de 2013

BrazilJS.org

@zenorocha
zenorocha / js-learning-resources.md
Last active December 31, 2015 11:48
So do you want to learn JavaScript?!