Skip to content

Instantly share code, notes, and snippets.

View danilopopeye's full-sized avatar
🏦
...

Danilo danilopopeye

🏦
...
View GitHub Profile
@danilopopeye
danilopopeye / README.md
Last active January 19, 2017 19:32
Nubank to CSV

Nubank2ynab

Exporte as transações do seu cartão Nubank para CSV no formato do You Need A Budget.

Tutorial

  1. Crie um bookmarklet com o snipet que está no final da página
  2. Acesse a página Histórico: https://conta.nubank.com.br/#/transactions
  3. Clique no bookmarklet na barra de favoritos
  4. O download do arquivo sodexo_{últimos 4 digitos}.csv deve ter sido iniciado

Keybase proof

I hereby claim:

  • I am danilopopeye on github.
  • I am danilo (https://keybase.io/danilo) on keybase.
  • I have a public key whose fingerprint is 335A 4786 34CE 2840 74C3 C523 6737 BA6A 7D80 C9FC

To claim this, I am signing this object:

@danilopopeye
danilopopeye / README.md
Last active July 3, 2016 21:23
Sodexo2ynab: exporte as transações do seu cartão Sodexo para CSV no formato do YNAB

Sodexo2ynab

Exporte as transações do seu cartão Sodexo para CSV no formato do You Need A Budget.

Tutorial

  1. Crie um bookmarklet com o snipet que está no final da página
  2. Acesse o site: https://sodexosaldocartao.com.br e faça o login
  3. Clique no bookmarklet na barra de favoritos
  4. O download do arquivo sodexo_{últimos 4 digitos}.csv deve ter sido iniciado
// getScript()
// more or less stolen form jquery core and adapted by paul irish
function getScript(url,success){
var head = document.getElementsByTagName("head")[0], done = false;
var script = document.createElement("script");
script.src = url;
// Attach handlers for all browsers
script.onload = script.onreadystatechange = function(){
@danilopopeye
danilopopeye / .powrc
Created April 12, 2013 22:50
pow use .rvmrc or .ruby-{version, gemset}
if [ -f "$rvm_path/scripts/rvm" ]; then
source "$rvm_path/scripts/rvm"
if [ -f ".rvmrc" ]; then
source ".rvmrc"
fi
if [ -f ".ruby-version" ]; then
rvm use `cat .ruby-version`
fi
@danilopopeye
danilopopeye / jenkins.js
Last active December 14, 2015 23:29
Jenkins failed projects badge on Fluidapp
// ==UserScript==
// @name Jenkins CI
// @namespace http://fluidapp.com
// @description Jenkins failed projects badge on Fluidapp
// @include http://your-jenins-project.com
// @author Danilo Sousa <[email protected]>
// ==/UserScript==
(function () {
if (window.fluid) {
@danilopopeye
danilopopeye / meta.rb
Created December 10, 2012 22:15
ruby file to update tags with iTunes
#!/usr/bin/env ruby
# by @tapbot_paul
# Don't blame me if this nukes your metadata, formats your drive, kills your kids
# This script goes through any iCloud Matched songs in your iTunes library and tries to update the
# metadata from the iTunes Store
# Will run against selected tracks or if nothing selected entire library
# install the required gems with the following commands
# sudo gem install json
# sudo gem install rb-appscript
# then run the script with "ruby meta.rb"
@danilopopeye
danilopopeye / gist:1332372
Created November 2, 2011 00:20 — forked from tbeseda/gist:1096141
Cakefile to watch and recursively concat and compile CoffeeScript automatically.
fs = require 'fs'
{exec} = require 'child_process'
util = require 'util'
appFiles = [
]
task 'count', 'how much coffee you got?!', ->
traverseFileSystem = (currentPath) ->
files = fs.readdirSync currentPath
@danilopopeye
danilopopeye / sedex
Created October 2, 2008 16:55
Verifica o <b>status</b> do seu pacote SEDEX! :)
CmdUtils.CreateCommand({
name: "sedex",
homepage: "http://ubiquity.danilosousa.net/",
author: { name: "Danilo Sousa", email: "[email protected]" },
takes: { "code": noun_arb_text },
icon: "chrome://ubiquity/content/icons/map.png",
description: "Verifica o <b>status</b> do seu pacote SEDEX! :)",
preview: function( previewBlock, directObject ) {
previewBlock.innerHTML = "Carregando...";
var doc = context.focusedWindow.document;
@danilopopeye
danilopopeye / json-lint
Created October 2, 2008 16:53
Parse and check your JSON
CmdUtils.CreateCommand({
name: "json-lint",
homepage: "http://ubiquity.danilosousa.net/",
author: { name: "Danilo Sousa", email: "[email protected]" },
takes: { "json code": noun_arb_text },
icon: "chrome://ubiquity/content/icons/page_code.png",
description: "Parse and check your JSON.",
preview: function( previewBlock, directObject ) {
var code = directObject.text;
var url = "http://www.jsonlint.com/ajax/validate";