Skip to content

Instantly share code, notes, and snippets.

View jasonbartz's full-sized avatar

Jason Bartz jasonbartz

View GitHub Profile
  1. Install 1Password CLI and jq.

    brew install jq
    brew cask install 1password-cli
    
  2. Sign in to 1Password for the first time:

#!/usr/bin/env bash
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
###############################################################################
# General UI/UX #
@yurivictor
yurivictor / emojis
Last active December 10, 2015 06:18
Skype emojis
(flag:ad)(flag:ae)(flag:af)(flag:ag)
(flag:ai)(flag:al)(flag:am)(flag:an)(flag:ao)
(flag:aq)(flag:ar)(flag:as)(flag:at)(flag:au)
(flag:aw)(flag:az)(flag:ba)(flag:bb)(flag:bd)
(flag:be)(flag:bf)(flag:bg)(flag:bh)(flag:bi)
(flag:bj)(flag:bm)(flag:bn)(flag:bo)(flag:br)
(flag:bs)(flag:bt)(flag:bv)(flag:bw)(flag:by)
(flag:bz)(flag:ca)(flag:cc)(flag:cd)(flag:cf)
(flag:cg)(flag:ch)(flag:ci)(flag:ck)(flag:cl)
(flag:cu)(flag:cv)(flag:cx)(flag:cy)(flag:cz)
@ryanpitts
ryanpitts / scotchy.txt
Created November 29, 2012 00:45
Scotch tour (from what I have on hand, at least)
SPEYSIDE
- Macallan 12
LOWLAND
- Glenkinchie Distiller's Edition
HIGHLAND
- Glenmorangie Cellar 13
SPEYSIDE (compare regular bottling vs. cask strength)
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active June 29, 2024 08:12
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@jeremyjbowers
jeremyjbowers / varnish-miss-path-simple
Created December 31, 2011 03:59
The "miss" portion of a request in Varnish
sub vcl_recv {
# Set the backend for the request if it should miss the cache.
set req.backend = backend;
# Send the request along to the cache lookup.
return(lookup);
}
@jeremyjbowers
jeremyjbowers / awesome.js
Created October 31, 2011 14:29 — forked from drinks/awesome.js
Better AutoAwesome
var loveit = function(){var e,el,interval=Math.random()*60000;e = new jQuery.Event("click");e.pageX=1;e.pageY=1;el = jQuery('.record_pile:last').nextAll('a').eq(2);turntable.lastMotionTime=new Date().getTime();el.hover().trigger(e);setTimeout(loveit, interval);};loveit();
@drinks
drinks / awesome.js
Created August 19, 2011 17:30
Auto-Awesome in turntable.fm
var loveit = function(){
var e,el,interval=Math.random()*60000;
e = new jQuery.Event("click");
e.pageX=1;
e.pageY=1;
el = jQuery('.record_pile:last').nextAll('a').eq(2);
turntable.lastMotionTime=new Date().getTime();
el.hover().trigger(e);
setTimeout(loveit, interval);
};