Skip to content

Instantly share code, notes, and snippets.

View joselitosn's full-sized avatar

Vinicios R. Portella joselitosn

View GitHub Profile
@joselitosn
joselitosn / ubuntu-trusty-preseed.seed
Created September 22, 2015 19:40
Preseed for Trusty Thrall - 14.04 LTS
########################################################################
#### Custom Preseed Amlin Europe using Ubiquity
### By Kelly Crabbé for Amlin Europe
### Tested on Ubuntu Trusty Thral 14.04 LTS
####################################################################
# General
####################################################################
# Once installation is complete, automatically power off.
@joselitosn
joselitosn / ffi_ex.py
Last active August 29, 2015 14:25 — forked from pfmoore/ffi_ex.py
from cffi import FFI
ffi = FFI()
ffi.set_unicode(True)
ffi.cdef('''
HANDLE FindFirstVolume(LPTSTR lpszVolumeName, DWORD cchBufferLength);
BOOL FindVolumeClose(HANDLE hFindVolume);
''')
lib = ffi.verify('''