Skip to content

Instantly share code, notes, and snippets.

View Falci's full-sized avatar
🍉

Fernando Falci Falci

🍉
View GitHub Profile
@Falci
Falci / background.js
Created February 8, 2018 14:33 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
@Falci
Falci / AWS Swarm cluster.md
Created March 18, 2017 20:25 — forked from ghoranyi/AWS Swarm cluster.md
Create a Docker 1.12 Swarm cluster on AWS

This gist will drive you through creating a Docker 1.12 Swarm cluster (with Swarm mode) on AWS infrastructure.

Prerequisites

You need a few things already prepared in order to get started. You need at least Docker 1.12 set up. I was using the stable version of Docker for mac for preparing this guide.

$ docker --version
Docker version 1.12.0, build 8eab29e

You also need Docker machine installed.

@Falci
Falci / Saida
Last active December 27, 2015 04:58 — forked from fernandogodoy/StringTest.java
//10x menos itens no loop
--------------------Operador + -----------------------------
17:13:27:330
17:14:07:718
tempo : 80388
-------------------String Format----------------------------
17:14:07:723
17:15:55:196
tempo : 147473
-------------------String concat----------------------------