Skip to content

Instantly share code, notes, and snippets.

View dcrystalj's full-sized avatar

Tomaz dcrystalj

View GitHub Profile
@dcrystalj
dcrystalj / bootable-win-from-linux.sh
Created July 3, 2016 20:29 — forked from manpages/bootable-win-from-linux.txt
How to make bootable Windows USB from Linux
Install ms-sys
You will need ms-sys to write a Master Boot Record (MBR) to the USB drive.
Make sure you have installed the gcc, make, and gettext repository packages in order to compile the source code.
Download the latest source code from http://ms-sys.sourceforge.net/#Download.
Un-tar the source code and change into the source code directory:
tar xvzf ms-sys-2.3.0.tar.gz
@dcrystalj
dcrystalj / .fonts.conf
Created January 7, 2016 23:08 — forked from odony/.fonts.conf
Updated version of the fonts.conf file mentioned in http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/ in order to get rid of most of the fontconfig warnings (mostly the "Having multiple values in <test> isn't supported and may not work as expected")
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
import imaplib
import StringIO
import rfc822
obj = imaplib.IMAP4_SSL("imap.gmail.com", "993")
obj.login("xxx@gmail.com", "pass")
print obj.list()
obj.select("[Gmail]/Vsa po&AWE-ta")
m = obj.search(None, "ALL")[1][0]
alli = m.split()