Skip to content

Instantly share code, notes, and snippets.

View dir_colors
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM linux-c
TERM mach-color
View dumpbox.js
// ==UserScript==
// @name dumpbox
// @namespace http://fluidapp.com
// @description dumps JIRA issue content into a div for easy copy/paste action
// @include *
// @author Karl Swedberg
// ==/UserScript==
(function($) {
View dumpbox.js
// ==UserScript==
// @name dumpbox
// @namespace http://fluidapp.com
// @description dumps JIRA issue content into a div for easy copy/paste action
// @include *
// @author Karl Swedberg
// ==/UserScript==
(function($) {
@jackbaty
jackbaty / gist:1973678
Created Mar 4, 2012 — forked from mlopes/gist:1852550
Convert wordpress style caption tags to octopress image tags
View gist:1973678
#!/usr/bin/perl
use strict;
my $script_name = $ARGV[0];
my $file_contents = "";
while(<>) {
if($_ =~ /\[caption.*/) {
my %imageData;
@jackbaty
jackbaty / gist:10010596
Created Apr 6, 2014
Day One Export OPML Template
View gist:10010596
<?xml version="1.0" encoding="UTF-8"?>
<opml version="2.0">
<head>
<title>Day One Export</title>
</head>
<body>
{% for entry in journal %}
<outline text="{{ entry['Text'] }}" StartDate="{{ entry['Date'] }}" Weather="{{ entry['Fahrenheit'] }} and {{ entry['Description'] }}" Address="{{ entry.place() }}" />
{% endfor %}
</body>
View keybase.md

Keybase proof

I hereby claim:

  • I am jackbaty on github.
  • I am jackbaty (https://keybase.io/jackbaty) on keybase.
  • I have a public key ASD-sVCAQoAJCggkq8eXyUItLx_JyDXAY5YTQW1cKfwRjQo

To claim this, I am signing this object:

@jackbaty
jackbaty / .vimrc
Created Oct 21, 2017
.vimrc as of 2017-10-21
View .vimrc
" My current .vimrc file
" Jack Baty
" jack@baty.net
" Environment
set nocompatible " We don't want vi compatibility.
filetype off " still needed?
set shell=/bin/bash\ -i
@jackbaty
jackbaty / mu4e-config-emacs
Created Feb 6, 2018
My mail (mu4e) configuration section of .spacemacs
View mu4e-config-emacs
;; Mu4e ------------------------------------------------------------------------
;; Mail Mu4e
(require 'org-mu4e)
(setq mu4e-maildir "~/Mail")
(setq mu4e-user-mail-address-list '("jack@fusionary.com" "jack@baty.net") )
;;store link to message if in header view if nil - header query if t
(setq org-mu4e-link-query-in-headers-mode t)
@jackbaty
jackbaty / gist:2038ceba3c978623c7b000cf5ade213e
Last active Feb 8, 2018
Mail->TODO Capture Template (Mu4e)
View gist:2038ceba3c978623c7b000cf5ade213e
(setq org-capture-templates
'(("t" "Todo to Inbox" entry
(file+headline "~/Dropbox/org/inbox.org" "Inbox")
"* TODO %? \n %i\n")
("T" "Add a Tickler" entry
(file+headline "~/Dropbox/org/tickler.org" "Tickler")
"* %?\n%u")
("c" "Todo and Clock In" entry
(file+headline "~/Dropbox/org/inbox.org" "Inbox")
"* TODO %? \n %i\n" :clock-in t :clock-keep t)
@jackbaty
jackbaty / webmentions.js
Last active Dec 4, 2018
webmentions.js
View webmentions.js
!function() {
var t = "https://webmention.io/api/mentions",
a = $("hr.full");
if (1 === a.length) {
var e = $.ajax(t, {
data: {
target: "https://www.baty.blog" + location.pathname
}
}),
n = function(t) {