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
# -*- coding: utf-8 -*- | |
import copy | |
import io | |
import logging | |
from babelfish import Language | |
from guessit import guessit | |
try: | |
from lxml import etree | |
except ImportError: |
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 difflib | |
import re | |
import subprocess | |
def add_module(mod_props): | |
''' | |
Add a module to pulseaudio and return | |
the index | |
''' |
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
setxkbmap -option kpdl:dot |
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 | |
TMP_FILE=$(tempfile) | |
echo $TMP_FILE | |
#Retrieve list | |
wget -O $TMP_FILE "http://www.mangareader.net/alphabetical" |& \ | |
sed -n -e 's|.*[^0-9]\([0-9]\{1,3\}\)%.*|\1|p' | \ | |
dialog --gauge " Retrieving Index" 6 100 | |
MANGA_LIST=$(grep "<li><a" $TMP_FILE | sed -e "/_blank/d" -e "s/.*href=\"\(.*\)\">\(.*\)<\\/a>.*/\\1\t\\2/" -e "/^\\/privacy/d;/^\\/search/d;/\\/popular/d;/\\/alphabetical/d;/^#/d;/\\/\t/d") |