This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib | |
import libxml2 | |
import os | |
import xml.etree.ElementTree as ET | |
import subprocess | |
#print subprocess.call(["ls", "-l", "/etc/resolv.conf"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib | |
import libxml2 | |
import xml.etree.ElementTree as ET | |
OAI_URL = "http://services.kb.nl/mdo/oai?verb=GetRecord&metadataPrefix=didl&identifier=DDD:ddd:%s:mpeg21" | |
SRU_URL = "http://jsru.kb.nl/sru/sru?x-collection=DDD_krantnr&operation=searchRetrieve&startRecord=1&maximumRecords=1000000&recordSchema=ddd&query=ppn=%s" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import urllib | |
import libxml2 | |
import os | |
import xml.etree.ElementTree as ET | |
import subprocess | |
#print subprocess.call(["ls", "-l", "/etc/resolv.conf"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import datetime | |
import socket | |
import nmap | |
from pprint import pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import time | |
import urllib2 | |
import Image | |
import ImageOps | |
t=str(time.time()).split('.')[0] | |
images = ['http://www.scheveningenlive.nl/cam_1.jpg', | |
'http://www.scheveningenlive.nl/sport.jpg', | |
'http://www.scheveningenlive.nl/cam2.jpg', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
.. module:: Fe2.tools. | |
""" | |
import os | |
import psutil | |
import shutil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
.. module:: Fe2.tools. | |
""" | |
import os | |
import re | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
:author: WillemJan Faber | |
:licence: LGPLv2 or LGPLv3. | |
:copyright: WillemJan Faber (2012 - 2013) | |
This program is licensed under the LGPLv2 or LGPLv3 license, | |
for more info see <http://www.gnu.org/licenses/>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# N-gram OCR evaluation | |
# Succeed hackathon 2014 (Alicante) | |
# Willem Jan Faber | |
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
check_for_deps(){ | |
type -P a2ps &>/dev/null || { echo "a2ps was not found. Install package \"a2ps\" on Debian or equivalent."; exit 1; } | |
type -P ps2pdf &>/dev/null || { echo "a2ps was not found. Install package \"ghostscript\" on Debian or equivalent."; exit 1; } | |
} | |
check_exists(){ | |
if [ ! -f $1 ]; then | |
echo "File \"$1\" is missing." |
OlderNewer