Skip to content

Instantly share code, notes, and snippets.

@devietti
devietti / lint.vb
Last active December 20, 2015 03:59
A Microsoft Word macro that looks through a document finding various styling errors. I used this to help make the formatting in my dissertation more consistent. For more info see http://linuxforlovers.wordpress.com/2013/07/23/hack-your-word-documents-with-vba/. Tested in Word 2011 (for Mac).
'Option Explicit
' Copyright (c) 2013, Joseph Devietti
' All rights reserved.
' Redistribution and use in source and binary forms, with or without
' modification, are permitted provided that the following conditions are met:
' * Redistributions of source code must retain the above copyright
' notice, this list of conditions and the following disclaimer.
' * Redistributions in binary form must reproduce the above copyright
@devietti
devietti / timeout.py
Created December 28, 2011 07:29
Python script+module to run a command with a timeout. A signal (SIGKILL by default) is sent to the command if the timeout expires.
#!/usr/bin/env python
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 3 of the License, or
## (at your option) any later version.
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the