Skip to content

Instantly share code, notes, and snippets.

View phantomachine's full-sized avatar
:octocat:
Gone phishing 🐡

PhantoMachine phantomachine

:octocat:
Gone phishing 🐡
View GitHub Profile
@phantomachine
phantomachine / bib-titlecase.py
Created October 29, 2018 22:07 — forked from garrettdashnelson/bib-titlecase.py
Convert titles in bibtex citation library to title case
# Original by Daniel L. Greenwald
# http://dlgreenwald.weebly.com/blog/capitalizing-titles-in-bibtex
# Modified by Garrett Dash Nelson
import re
from titlecase import titlecase
# Input and output files
my_file = 'library.bibtex'
new_file = 'library-capitalized.bibtex' # in case you don't want to overwrite
@phantomachine
phantomachine / timecapsule-handler
Created May 7, 2018 01:43 — forked from dgraziotin/timecapsule-handler
Script to automatically look for Apple TimeCapsule devices and mount/umount them under GNU/Linux. See http://task3.cc/418/how-to-automatically-mount-and-umount-apple-time-capsule-on-linu for info and explanations.
#!/bin/bash
#
# This program is free software. It comes without any warranty, to
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
# http://sam.zoy.org/wtfpl/COPYING for more details.
#
# Version 3, enhanced for Ubuntu 13.X+, Fedora 19+, and similar distros.