Skip to content

Instantly share code, notes, and snippets.

View fabiofl's full-sized avatar

Fabio Fernandes fabiofl

View GitHub Profile
@fabiofl
fabiofl / gist:fb3597eafe5d82252d876651c374b52b
Created April 13, 2024 05:57
Pixelit/Awtrix/LaMetric Icons
# Waze
[36767,32671,7446,65535,65535,65535,423,36767,36767,7446,65535,65535,65535,65535,65535,423,32671,59391,65535,0,65535,65535,0,65535,32671,59391,65535,65535,65535,65535,65535,65535,3187,65535,65535,0,65535,65535,0,65535,65535,65535,65535,65535,0,0,65535,391,749,391,65535,65535,65535,65535,0,36767,36767,36767,0,0,36767,0,0,36767]
let a = 'aaaaa';
function aa() {
alert(a);
}
aa();
// Clean page and setup
const cupom = $('.CupomFiscal')
$('body').html(cupom)
$('[style]').removeAttr('style')
cupom.css({'margin':0,'width':'auto'})
const tableTemplate = `
@fabiofl
fabiofl / lmgtfy.rb
Created March 3, 2014 21:14
http://lmgtfy.com/ link generator for TextExpander.
#!/usr/bin/env ruby
require 'uri'
param = "%clipboard".strip
url = "http://lmgtfy.com/?q="
query = URI.encode(param)
puts "#{url}#{query}"
@fabiofl
fabiofl / gist:5873100
Created June 27, 2013 00:41
Clear Mac OS X's icon cache.
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;