Skip to content

Instantly share code, notes, and snippets.

View fczuardi's full-sized avatar

Fabricio C Zuardi fczuardi

View GitHub Profile
Verifying I am +fczuardi on my passcard. https://onename.com/fczuardi
@fczuardi
fczuardi / foxbit-highlight.js
Created September 15, 2015 22:49
Foxbit click to highlight
// Copie e cole este codigo no campo console do seu firefox
window.username = '---';
function nameClicked(event){
window.username = event.target.textContent;
}
function highlightName(){
let s = new RegExp(window.username);
for (e of $$(".order-book-username")){
@fczuardi
fczuardi / pretty-rpc.sh
Last active October 26, 2015 03:30 — forked from xCoreDev/pretty-rpc.sh
Pretty JSON display for Vanillacoin RPC calls
#!/bin/bash
# Check root or user
if (( EUID != 0 )); then
echo -e "\n- - - - - - - - - \n"
echo "You are not enough root for this !"
echo -e "\n- - - - - - - - - \n"
exit
fi
var config = {};
module.exports = config;
/////////////////////
// General config //
/////////////////////
// paste the bot API token you got from BotFather here:
config.tgToken = 'XXXXXXXXXXXXXXXXXXXXX';
@fczuardi
fczuardi / an_executable_es6_script.js
Last active April 4, 2016 18:53
ES2015 (aka ES6, harmony) shebang with node flags, command line options
#!/bin/sh
//bin/false || `which node || which nodejs` --harmony_destructuring --harmony_sloppy_let << `tail -n +2 $0`
// shebang ninja de 2 linhas para rodar js "muderno" cheio dos trique-triques
//como script de shell sem transpilador. Para ver todas as opcoes disponiveis:
// ```node --v8-options|grep "harmony"```
//
// crédito: http://unix.stackexchange.com/a/65242 (se não funcionar use esta outra resposta http://unix.stackexchange.com/a/65295)
let {a, b} = {a: 'Hello', b: 'World'};
"&lt;a href=“http://example.com”&gt;link&lt;/a&gt;"
"&lt;b&gt;teste&lt;/b&gt; teste"
"**teste** teste"
"?"
"```teste``` teste"
"alo alo alo"
"amigo de jibóia tramontin"
"aposentado paga meia?"
"bom dia fera"
"bom dia"
@fczuardi
fczuardi / gist:25da5e105da35a2ff8d4ff010a0c5fa0
Created April 12, 2016 21:29
command line to extract utterances from LUIS app log
cat ~/Desktop/logs.csv|grep "^\"" | cut -d , -f 1 | sort | uniq -u | pbcopy
### Keybase proof
I hereby claim:
* I am fczuardi on github.
* I am fczuardi (https://keybase.io/fczuardi) on keybase.
* I have a public key whose fingerprint is 1D9E 5414 9F46 8D5E F9E5 5CBF E669 F445 B145 A9E0
To claim this, I am signing this object: