You are currently browsing the Uncategorized category
Displaying 1 - 3 of 3 entries.

Python: My own Evernote

  • Posted on December 8, 2015 at 21:31

Search for file with extension (case-insensitive)

#!/usr/bin/python

import re


"""
CASE INDEPENDENT SEARCH FOR EXTENSION (JPG)
"""

filename = "KrusjMe_at_the_dentist.jpg"

prog  = re.compile(r"\.jpe{0,1}g$", re.IGNORECASE)
if prog.search(filename):
    print "Match!"
else:
    print "No match :-("

Start Debian in text-mode

  • Posted on January 6, 2014 at 21:56

Edit /etc/default/grub file, locate the following line:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet”

and change it to:

GRUB_CMDLINE_LINUX_DEFAULT=”quiet text”

and don’t forget to run ‘update-grub’ afterwards to update.

(thanks to Eu2200 on debainadmin.com)

John Doe?

  • Posted on January 24, 2012 at 10:50

Although I didn’t want to contribute to the contest, this step was to easy not to take:

Found a JPEG-Header, did some copy-pasting et voila!

Good this be our guy?