Skip to content

Instantly share code, notes, and snippets.

View tresni's full-sized avatar

Brian Hartvigsen tresni

View GitHub Profile
@tresni
tresni / dragondrop.rb
Created April 23, 2015 08:09
Cask for DragonDrop
cask :v1 => 'dragondrop' do
version :latest
sha256 :no_check
url 'http://shinyplasticbag.com/dragondrop/dragondrop.dmg'
name 'DragonDrop'
homepage 'http://shinyplasticbag.com/dragondrop/'
license :freemium
app 'DragonDrop.app'
@tresni
tresni / gist:83b9181588c7393f6853
Last active February 19, 2024 08:00
Authy to 1Password

Moving Authy to 1Password

1Password 5.3 for OSX, 5.2 for iOS, and 4.1.0.538 for Windows support OTP. I've been using Authy for a while now, but the fact is, I haven't really been using 2FA for some time. As mentioned by 1Password in a recent blog post, having the OTP generator and password on the same device is very much not 2FA. It's just an expiring OTP, which can help, but let's not kid ourselves too much.

With that out of the way. One of the things that was interesting to me was moving my OTP out of Authy and into 1Password. I like the control I get with 1Password, but I didn't want to have to reset all my OTP right away, that would suck. So, I got to dissecting the Authy Chrome App to see what I could do.

Run the Authy Chrome app and make sure it's unlocked.

Now, enable Developer mode in Chrome. We'll need this to inspect the background application that stores al

Keybase proof

I hereby claim:

  • I am tresni on github.
  • I am tresni (https://keybase.io/tresni) on keybase.
  • I have a public key whose fingerprint is C04E B13D 266B 3C2F 56CB 8880 4A00 DB3D 202D 5E3C

To claim this, I am signing this object:

# Usage: dash [keyword:]query
dash() { open dash://"$*" }
compdef _dash dash
# special thanks to [arx] in #zsh for helping me get this working
_dash() {
# No sense doing this for anything except the 2nd position
if (( CURRENT == 2 )); then
local -a _all_docsets
_all_docsets=()

Graphing Widget

The graphing widget shows graphs using the Rickshaw graphing library. The names of data fields should be (vaguely) familiar if you've used Rickshaw before.

It's recommended that you replace the /assets/javascripts/rickshaw.min.js from your dashboard with the latest from here.

Supported HTML data fields

@tresni
tresni / README.md
Last active January 1, 2016 17:09 — forked from tfohlmeister/README.md

Description

Dashing widget to display a bunch of current and coming-up Google Calendar events.

The widget shows only one event and is based on the text-widget which is default in the Dashing installation. The time is displayed as human-readable time string with the help of MomentJS.

A Dashing job fetches the events of a given public or private calendar url, orders events to match starting time and sends the data to the dashboard. A certain event offset can be set for each calendar widget so that it will show the first (data-pre="0"), the second (data-pre="1") or any other following event based on the offset. For each calendar you'll have to define a name which enables you to assign custom background colors for events of each calendar.

While the main job is called in larger intervals, there is a second job to be run every minute or so, which kicks out already finished events. In that way processing load

@tresni
tresni / CachedZendesk.js
Last active January 1, 2016 02:19
node-zendesk with redis caching
var zendesk = require('node-zendesk'),
redis = require('redis').createClient(),
util = require('util'),
qs = require('querystring'),
_ = require('underscore');
config = require('./config');
redis.select(config.redis.zendesk.index);
function createKey(args, everything, uri) {
@tresni
tresni / ZendeskOrderApps.user.js
Last active January 10, 2016 21:17
1.1.0 - Fixed a bug where it would grab all custom apps and not just the ones for this view
// ==UserScript==
// @name Zendesk - Set App Order
// @namespace com.opendns.zendesksetapporder
// @author Brian Hartvigsen <bhartvigsen@opendns.com>
// @version 1.1.0
// @description Allow you to reorder your Apps to get the most important ones on top
// @match https://*.zendesk.com/agent/*
// @include https://*.zendesk.com/agent/*
// ==/UserScript==
@tresni
tresni / gist:4041532
Created November 8, 2012 20:55
.zshrc hack to add quicker support for SVN prompt info
if [ "$ZSH_THEME_SVN_PROMPT_PREFIX" = "" ]; then
ZSH_THEME_SVN_PROMPT_PREFIX=$ZSH_THEME_GIT_PROMPT_PREFIX
ZSH_THEME_SVN_PROMPT_SUFFIX=$ZSH_THEME_GIT_PROMPT_SUFFIX
ZSH_THEME_SVN_PROMPT_DIRTY=$ZSH_THEME_GIT_PROMPT_DIRTY
ZSH_THEME_SVN_PROMPT_CLEAN=$ZSH_THEME_GIT_PROMPT_CLEAN
fi
@tresni
tresni / gist:3955588
Created October 25, 2012 21:34
dd-wrt DNSMasq Additional Options
server=/17cdn.com/205.171.3.65
server=/51cdn.com/205.171.3.65
server=/akadns.net/205.171.3.65
server=/akadns.org/205.171.3.65
server=/akafms.net/205.171.3.65
server=/akamai.net/205.171.3.65
server=/akamaiedge.net/205.171.3.65
server=/akamaistream.net/205.171.3.65
server=/akamaitech.net/205.171.3.65
server=/akamaitechnologies.com/205.171.3.65