Skip to content

Instantly share code, notes, and snippets.

@kristopherjohnson
kristopherjohnson / Makefile
Last active December 19, 2024 20:15
Makefile that uses Pandoc to generate HTML, PDF, DOCX, etc. from Markdown source files
# Makefile
#
# Converts Markdown to other formats (HTML, PDF, DOCX, RTF, ODT, EPUB) using Pandoc
# <http://johnmacfarlane.net/pandoc/>
#
# Run "make" (or "make all") to convert to all other formats
#
# Run "make clean" to delete converted files
# Convert all files in this directory that have a .md suffix
@fractaledmind
fractaledmind / export_annotations_page_sorted
Created January 24, 2015 18:48
Export Skim annotations to HTML/Markdown with page sorting
(* ///
PROPERTIES
/// *)
--Formatting
(* DO NOT CHANGE *)
property as_delims : AppleScript's text item delimiters
--Evernote
(* CHANGE NAME OF EVERNOTE NOTEBOOK AND/OR TAG WHERE NOTES WILL RESIDE *)
@jhass
jhass / RubyOnArch.md
Last active October 20, 2024 06:51
My Ruby setup on Archlinux

Ruby on Archlinux

I thought I would document my setup, since it's somewhat non-standard but working quite well for me.

What this does

  • Install major Ruby versions at their latest patch release
  • Allow to switch between them seamlessly
  • Use chruby
  • Encourage bundler usage
@bachya
bachya / Hazel-based PDF Scraper
Last active August 5, 2018 01:46
A method to scrape PDFs for certain text (via Hazel) and save the results to a text file
Aaron was here!
Aaron says hi!
@SpotlightKid
SpotlightKid / clone-gists.py
Last active February 8, 2025 15:46
Clone all gists of GitHub username given on the command line.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Clone all gists of GitHub user with given username.
Clones all gist repos into the current directory, using the gist id as the
directory name. If the directory already exists as a git repo, try to perform a
'git pull' in it.
"""
@rldotai
rldotai / Makefile
Last active November 23, 2020 20:59
A makefile for LaTeX and Skim on OS X
PDFLATEX = pdflatex -interaction=batchmode -synctex=1
SH = /bin/bash
ASCRIPT = /usr/bin/osascript
SOURCE = master.tex
BASE = "$(basename $(SOURCE))"
default : pdf view
.PHONY: pdf graphics
@halhen
halhen / codes.csv
Last active February 18, 2024 22:49
The people who keep us company - dataviz
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 1 column, instead of 2 in line 7.
code;name
01;Personal Care Activities
0101;Sleeping
0102;Grooming
0103;Health-related self care
0104;Personal Activities
0105;Personal Care Emergencies
0199;Personal care, n.e.c.*
02;Household Activities
0201;Housework
@shihanng
shihanng / .chunkwmrc
Last active January 6, 2024 04:17
chunkwm + skhd
#!/bin/bash
#
# NOTE: specify the absolutepath to the directory to use when
# loading a plugin. '~' expansion is supported.
#
chunkc core::plugin_dir /usr/local/opt/chunkwm/share/chunkwm/plugins
#
@pbt001
pbt001 / 1-macOS-10.14-mojave-setup.md
Last active January 15, 2019 10:26 — forked from kevinelliott/1-macOS-10.14-mojave-setup.md
[macOS 10.14 Mojave Mostly-Automated Setup] #pub #dotfile #cfg #automation #macos #brew #mas

To support my open-source work, consider adding me on Patreon.

macOS 10.14 Mojave Mostly-Automated Setup

An easy to refer to document for regularly setting up macOS 10.14 Mojave.

Controversy

The topic of recipe-based frequent fresh reinstalls of macOS is a controversial issue. Some people are against reinstalling macOS, citing that they have never had an issue with Apple provided upgrade installs.