Skip to content

Instantly share code, notes, and snippets.

View jaromero's full-sized avatar

Antonio Romero jaromero

View GitHub Profile
@jaromero
jaromero / init.coffee
Created May 23, 2016 04:38
Smart home/end commands for Atom
atom.commands.add 'atom-text-editor',
'user:smart-home': ->
if (editor = atom.workspace.getActiveTextEditor())
bufferPos = editor.getCursorBufferPosition()
screenPos = editor.getCursorScreenPosition()
bufferLine = editor.lineTextForBufferRow bufferPos.row
screenLine = editor.lineTextForScreenRow screenPos.row
screenLineStart = editor.clipScreenPosition [screenPos.row, 0], skipSoftWrapIndentation: true
@jaromero
jaromero / PKGBUILD
Created September 11, 2017 22:08
Last known blob emojis for Arch
# Based on this PKGBUILD: https://aur.archlinux.org/packages/noto-fonts-emoji-blob/
pkgname=noto-fonts-emoji-blob
_pkgver=2017-07-17
_commit=e456654119cc3a5f9bebb7bbd00512456f983d2d
pkgver=${_pkgver//-}
pkgrel=1
pkgdesc="Google Noto emoji fonts (blob version)"
arch=(any)
url="https://www.google.com/get/noto/"
@jaromero
jaromero / fuck-adumen.js
Last active May 10, 2018 20:39
Userscript to trick Adumen into not destroying the page content
// ==UserScript==
// @name Fuck You Adumen
// @namespace http://gm.pulsar.mx/
// @version 0.1
// @description Trick Adumen into not destroying the page content
// @author Antonio Romero
// @match http://*.wikia.com/*
// @match https://*.wikia.com/*
// @grant none
// @downloadURL https://gist.github.com/raw/16ddbf66c010f5b1acff829612b4b050/fuck-adumen.js
@jaromero
jaromero / browser-debug.sh
Last active January 10, 2020 18:43
Launch a browser for remote debugging (vscode, etc)
#!/bin/bash
# Launch a browser with a specific profile and remote debugging port open
# symlink this file into chrome-debug, firefox-nightly-debug, etc.
NAME=$(basename $0)
# Open dev tools by default
OPEN_DEVTOOLS=true