Skip to content

Instantly share code, notes, and snippets.

View mpdehnel's full-sized avatar

Martin Dehnel-Wild mpdehnel

View GitHub Profile
@mpdehnel
mpdehnel / git-svn.md
Last active October 29, 2015 09:35
git-svn usage
  1. git svn clone https://maxheadroom.cs.ox.ac.uk/svn/papers/
  2. Do some stuff.
  3. Tell SVN which (changed) files you want to store on the server: git add myfile.tex mybiblio.bib
  4. Commit it: git commit -m 'my commit message’
  5. Push it up to the SVN server: git svn dcommit
  6. Check the logs if you like: git log
  7. Get the latest changes from the server that other people made: git svn rebase
  8. Go to 2.
@mpdehnel
mpdehnel / brew-fonts-issue.md
Created October 14, 2015 10:46
Brew Cask Fonts Issue

Getting an error in brew update about a particular cask? Try untapping it and re-tapping it. I had this issue with caskroom/fonts.

brew untap caskroom/fonts && brew update && brew cleanup --force -s && rm -rf "$(brew --cache)" && brew tap caskroom/fonts

@mpdehnel
mpdehnel / bibtex-usage.md
Last active August 29, 2015 14:23
BibTeX Usage note

Note to self re: running BibTeX:

  • Create myBibliography.bib. Put BibTeX entries in it.
  • Insert the following into the bottom of your LaTeX document, just before \end{document}:
\bibliographystyle{apalike} % or alpha, or plain, or whatever.
\bibliography{myBibliography}
  • Cite things in the document: \cite{referenceName}
@mpdehnel
mpdehnel / ip_finder.py
Last active August 29, 2015 14:23
Pick out all of the IP Addresses listed in Logwatch emails from within a .mbox MailBox
import mailbox, re, argparse
import cPickle as pickle
def gen_summary(filename):
ip_store = dict()
my_box = mailbox.mbox(filename)
for message in my_box:
subject = message['subject'] # Could possibly be None.
@mpdehnel
mpdehnel / listings-settings.tex
Created April 9, 2015 22:13
Nice(ish) settings for LaTeX Package Listings
% All in preamble:
\usepackage{listings}
\usepackage{courier}
\usepackage{color}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}

Keybase proof

I hereby claim:

  • I am mpdehnel on github.
  • I am mpdehnel (https://keybase.io/mpdehnel) on keybase.
  • I have a public key whose fingerprint is C2A5 A5C3 FEF9 CA58 83EE 05BB 2BA6 DEB7 9B11 D21A

To claim this, I am signing this object: