meet your 9 procrastinator demons
…and beat them to get yourself into motion!
######################################################################## | |
# Base - parent of all styles # | |
######################################################################## | |
Base: | |
all: | |
metadata: | |
numbersections: true | |
bibliography: "/Users/msprevak/Library/texmf/bibtex/bib/mds-bib/refs.bib" | |
commandline: |
#!/bin/bash | |
# | |
# git-mv-with-history -- move/rename file or folder, with history. | |
# | |
# Moving a file in git doesn't track history, so the purpose of this | |
# utility is best explained from the kernel wiki: | |
# | |
# Git has a rename command git mv, but that is just for convenience. | |
# The effect is indistinguishable from removing the file and adding another | |
# with different name and the same content. |
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
echo "Generating PDF..." |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>firstLineMatch</key> | |
<string>^Format:\s*(?i:complete)\s*$</string> | |
<key>foldingStartMarker</key> | |
<string>(?x) | |
(<(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)\b.*?> | |
|<!--(?!.*-->) |
atom-text-editor::shadow .string.other.link.wiki { | |
color: rgb(200, 28, 162) | |
} |
#!/usr/bin/env ruby | |
require 'csl/styles' | |
require 'citeproc/ruby' | |
require 'httparty' | |
require 'thread' | |
API_KEY = '' # Add your key here! | |
exit if API_KEY.empty? |
require 'pdf-reader' | |
require './markup_receiver' | |
doc = PDF::Reader.new(ARGV[0]) | |
$objects = doc.objects | |
def is_note?(object) | |
object[:Type] == :Annot && [:Text, :FreeText].include?(object[:Subtype]) | |
end |
" Settings | |
map ; openCommandBar | |
let mapleader = "," | |
set noautofocus | |
map <leader>vc :settings<CR> | |
map <leader><leader> :buffer<Space> | |
imap <C-k> deleteToEnd | |
let blacklists = ["https://mail.google.com/* igi<Esc> j k x s / r f"] | |
map <leader>gt :open https://twitter.com<cr> | |
map <leader>gn :open https://news.ycombinator.com<cr> |
#!/usr/bin/env ruby | |
begin | |
if ARGV.length == 1 | |
%x[sudo renice -10 `pgrep -f -i #{ARGV[0]}`] | |
else | |
%x[sudo renice #{ARGV[0]} `pgrep -f -i #{ARGV[1]}`] | |
end | |
rescue | |
puts "There was an error, try: renice-by-name <(-10..10)> process_name" | |
end |