Skip to content

Instantly share code, notes, and snippets.

View jaredmcateer's full-sized avatar
🏠
Working from home (I'm always working from home)

Jared McAteer jaredmcateer

🏠
Working from home (I'm always working from home)
View GitHub Profile
@jaredmcateer
jaredmcateer / Procfile
Last active December 18, 2015 00:39 — forked from anderssvendal/Procfile
web: /usr/local/sbin/nginx -p `pwd`/tmp/nginx/ -c ../../nginx.conf
fastcgi: /usr/local/sbin/php-fpm
db: /usr/local/bin/mysqld
# First you need to change the root password so you can ssh in as root
vagrant ssh
sudo su
passwd
root
root
exit
# On your host machine:
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
#!/bin/bash
gnome-terminal -e "bash -c 'source ~/.bashrc;vim $1'"
Original
#<Asciidoctor::ListItem@47313569818400 {list_context: :ulist, text: "<<worklist,Worklist>>", blocks: 0}>
new_block
#<Asciidoctor::ListItem@47313570547660 {list_context: :ulist, text: "{{<a href=\"#worklist\">Worklist</a> | localize}}", blocks: 0}>
Desired
#<Asciidoctor::ListItem@47313570547660 {list_context: :ulist, text: "{{<<worklist,Worklist>> | localize}}", blocks: 0}>
@jaredmcateer
jaredmcateer / angular-localizer-treeprocessor.rb
Last active March 7, 2017 22:38 — forked from mojavelinux/angular-localizer-treeprocessor.rb
An Asciidoctor treeprocessor that wraps text content in Angular's localize filter.
require 'asciidoctor/extensions'
class AngularLocalizerTreeprocessor < Asciidoctor::Extensions::Treeprocessor
def process document
document.blocks? ? (localize_blocks document) : nil
end
def localize_blocks node
node.find_by do |b|
if b.content_model == :simple
@jaredmcateer
jaredmcateer / reposition-recently-uploaded.js
Created March 16, 2022 14:14
Reposition Recently Updated Chip on YouTube to front of the list
// ==UserScript==
// @name Reposition Recently Uploaded Chip
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Repositions the "Recently Uploaded" chip to the front
// @author RadicalDowntownUrbanite
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?domain=youtube.com
// @grant none
// ==/UserScript==