Skip to content

Instantly share code, notes, and snippets.

View golive's full-sized avatar

Gerbert Olivé Vázquez golive

View GitHub Profile
> Gerbert's Custom Quix Commands
@custom
txt javascript:location.href='http://www.aaronsw.com/2002/html2text/?url='+document.location.href; Convert current page to text (valid markdown)
pdf http://pdfmyurl.com?url=%r Create a PDF from this page
edit javascript:document.body.contentEditable='true';%20document.designMode='on';%20void%200 Edit page
wtf javascript:(function(){var%20m,n=[],j,c,t=document.getElementById("_wtframework"),q=0;c=function(){document.body.removeChild(m);};if(t){document.body.removeChild(t);return;}var%20b=["MooTools.version","MooTools.More.version","base2.version","dojo.version","Ext.version","jQuery.fn.jquery","$.ui.version","MochiKit.MochiKit.VERSION","Prototype.Version","Scriptaculous.Version","YAHOO.VERSION","S2.Version"];var%20r=["MooTools%20Core","MooTools%20More","Base2","Dojo","Ext%20JS","jQuery","jQuery%20UI","MochiKit","Prototype","Script.aculo.us","Yahoo%20UI","Scripty2"];var%20k={cursor:"pointer",textAlign:"left",padding:"8px%2010px",margin:"0%200%205px",listSty
@golive
golive / color_palette.rb
Created June 15, 2015 08:31
Generate all colors of RGB in a png file
require 'chunky_png'
png = ChunkyPNG::Image.new(4096, 4096)
(0..255).each do |b|
(0..255).each do |g|
(0..255).each do |r|
x = b/16*256 + r
y = b%16*256 + g
png[x,y] = ChunkyPNG::Color.rgb(r, g, b)
@golive
golive / resolve_outdated_sequbot.js
Created December 11, 2020 13:39
Resolve outdated Sequbot comments
javascript:(function() {
document.querySelectorAll('.js-resolvable-timeline-thread-container:not([data-resolved="true"])').forEach((comment) => {
if (comment.querySelector('[title="Label: Outdated"]') && comment.querySelector('.author').text == 'sequbot')
comment.querySelector('.js-resolvable-timeline-thread-form button[type="submit"]')?.click();
})
})()
@golive
golive / gist:0b08146ca789e3b4d6ac6e13d16e8659
Created October 26, 2023 19:52
Authors by current lines (Ruby)
git ls-files -z '*.rb' | xargs -0n1 git blame -w --line-porcelain | grep -E "author " | sed 's/author //' | sort -f | uniq -c | sort -nr