Skip to content

Instantly share code, notes, and snippets.

# 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
// ==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($) {
// ==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 March 4, 2012 16:07 — forked from mlopes/gist:1852550
Convert wordpress style caption tags to octopress image tags
#!/usr/bin/perl
use strict;
my $script_name = $ARGV[0];
my $file_contents = "";
while(<>) {
if($_ =~ /\[caption.*/) {
my %imageData;
@jackbaty
jackbaty / gist:10010596
Created April 6, 2014 19:39
Day One Export OPML Template
<?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>

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 October 21, 2017 13:02
.vimrc as of 2017-10-21
" My current .vimrc file
" Jack Baty
" [email protected]
" Environment
set nocompatible " We don't want vi compatibility.
filetype off " still needed?
set shell=/bin/bash\ -i
@jackbaty
jackbaty / mu4e-config-emacs
Created February 6, 2018 16:33
My mail (mu4e) configuration section of .spacemacs
;; Mu4e ------------------------------------------------------------------------
;; Mail Mu4e
(require 'org-mu4e)
(setq mu4e-maildir "~/Mail")
(setq mu4e-user-mail-address-list '("[email protected]" "[email protected]") )
;;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 February 8, 2018 14:51
Mail->TODO Capture Template (Mu4e)
(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 December 4, 2018 14:27
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) {