Install the required packages (Ubuntu 12.04):
apt-get install nfs-kernel-server portmap
Open the exports file:
vim /etc/exports
#include <tunables/global> | |
/usr/bin/skype { | |
#include <abstractions/base> | |
#include <abstractions/user-tmp> | |
#include <abstractions/audio> | |
#include <abstractions/nameservice> | |
#include <abstractions/ssl_certs> | |
#include <abstractions/fonts> | |
#include <abstractions/ibus> | |
#include <abstractions/dbus> |
#!/bin/sh | |
# Credits to: | |
# - http://vstone.eu/reducing-vagrant-box-size/ | |
# - https://github.com/mitchellh/vagrant/issues/343 | |
aptitude -y purge ri | |
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide | |
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30 | |
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5 |
""" | |
A file lock implementation that tries to avoid platform specific | |
issues. It is inspired by a whole bunch of different implementations | |
listed below. | |
- https://bitbucket.org/jaraco/yg.lockfile/src/6c448dcbf6e5/yg/lockfile/__init__.py | |
- http://svn.zope.org/zc.lockfile/trunk/src/zc/lockfile/__init__.py?rev=121133&view=markup | |
- http://stackoverflow.com/questions/489861/locking-a-file-in-python | |
- http://www.evanfosmark.com/2009/01/cross-platform-file-locking-support-in-python/ | |
- http://packages.python.org/lockfile/lockfile.html |
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
#!/usr/bin/env python | |
""" | |
eicfg_remover.py | |
Based on Kai Liu's eicfg_remover.c @ http://code.kliu.org/misc/winisoutils/ | |
""" | |
import sys | |
from binascii import crc_hqx, hexlify |
#!/usr/bin/python2 | |
# Copyright (C) 2016 Sixten Bergman | |
# License WTFPL | |
# | |
# 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 |
#!/usr/bin/ruby | |
if ARGV.length != 1 | |
puts "usage: git2svn <file_name>" | |
puts " file_name - git patch file name" | |
exit | |
end | |
separator = "\n===================================================================\n" | |
new_file = false |