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 | |
# Sendmail replacement inspired by CheckAttach script for mutt. | |
# http://wiki.mutt.org/?ConfigTricks/CheckAttach for the original script. | |
# To use, simply add the following line to your .muttrc: | |
# set sendmail="/path/to/this/script -oi -oem" | |
# Note that -oi -oem are the default parameters given by mutt to sendmail. You | |
# could also use e.g. -t -i or... whatever floats your boat :) | |
# Then restart mutt. |
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 -xv | |
# ^^ debug, feel free to remove... | |
# Enable evil expansion mode: +([0-9]) | |
shopt -s extglob | |
do_unrar() { | |
rar x "$@" | |
} |
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 | |
"""%prog [-d] Manga [chapter] | |
NOTE: Does not work any more! | |
I probably won't fix it. Ever. | |
Patches accepted =) | |
Quick and dirty: Manga Stream direct download hack. | |
Fetches a named comic matching the regex given on cmd line. E.g: |
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 -f | |
SORT="sort -n" | |
filter="-type f" | |
DENIED_EXTS="txt m3u pls jpg jpeg gif nfo srt sub torrent zip rar cbz cbr" | |
if [[ "$1" =~ ^- && "$1" != "--help" ]] ;then | |
if [[ "$1" = "--cat" ]] ; then | |
SORT="cat" |
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
use strict; | |
use vars qw($VERSION %IRSSI); | |
$VERSION = '0.1'; | |
%IRSSI = ( | |
authors => 'Morten M. Neergaard', | |
contact => 'user xim some major IRC networks? =)', | |
name => 'annoy.pl', | |
description => '/annoy <msg> # sends <msg> to all in current channel (except me)', | |
license => 'Who cares', |
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 | |
# Make rar multiparts with the extensions .rar .r00 etc. | |
# Many programs prefer / look for this, not the .partX.rar | |
# Usage: r00 [archive name OR file1] [file(s)] | |
# Enable evil expansion mode: +([0-9]) | |
shopt -s extglob | |
for arg in "$@" ; do |
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 | |
# encoding: utf-8 | |
# Written by Morten Minde Neergaard – [email protected] | |
# Based on idea from http://therning.org/magnus/archives/251 | |
""" | |
Open a file in a manner similar to gnome-open. | |
Fall back to using xdg-open. | |
Return code: The sum of all return codes given by the called programs. |
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
import sys | |
import numpy | |
from nltk.cluster import KMeansClusterer, GAAClusterer, euclidean_distance | |
import nltk.corpus | |
from nltk import decorators | |
import nltk.stem | |
stemmer_func = nltk.stem.EnglishStemmer().stem | |
stopwords = set(nltk.corpus.stopwords.words('english')) |
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
diff --git a/meta/classes/terminal.bbclass b/meta/classes/terminal.bbclass | |
index 3cfc84b..906fa58 100644 | |
--- a/meta/classes/terminal.bbclass | |
+++ b/meta/classes/terminal.bbclass | |
@@ -4,7 +4,7 @@ OE_TERMINAL[choices] = 'auto none \ | |
${@" ".join(o.name \ | |
for o in oe.terminal.prioritized())}' | |
-OE_TERMINAL_EXPORTS = 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE SCREENDIR' | |
+OE_TERMINAL_EXPORTS += 'XAUTHORITY SHELL DBUS_SESSION_BUS_ADDRESS DISPLAY EXTRA_OEMAKE SCREENDIR' |
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 re | |
statement_matcher = re.compile(r'^s(.)(?:(?!\1).)*\1(?:(?!\1).)*\1$') | |
def get_interesting_triplets(dictionary_file, statement_file): | |
with open(dictionary_file) as fh: | |
words = [word.strip() for word in fh.readlines()] |
OlderNewer