h1.title {
color: red;
text-shadow: 2px 2px #A00;
}bind @browser
| # ========================================= | |
| # Email to PDF Conversion Script | |
| # ========================================= | |
| # | |
| # Version: 1.0 | |
| # Script written by Warith Al Maawali | |
| # (c) 2024 | |
| # | |
| # Discord channel: https://discord.gg/KEFErEx | |
| # Twitter: http://twitter.com/warith2020 |
| # dvorak layout | |
| loadkeys dvorak | |
| export HOSTNAME=thinkpad | |
| export DEVICE=/dev/sda | |
| export EFI_PARTITION=/dev/sda1 | |
| export ROOT_PARTITION=/dev/sda2 | |
| # as root | |
| timedatectl set-ntp true |
| PYTHON := python2.6 | |
| BUILD_DIR := buildtmp | |
| AURORA_CLUSTER := test | |
| AURORA_ROLE := $(shell whoami) | |
| UWSGI_VER = 2.0.4 | |
| UWSGI_DIR = uwsgi-$(UWSGI_VER) | |
| UWSGI_FILE = $(UWSGI_DIR).tar.gz | |
| UWSGI_URL = http://projects.unbit.it/downloads/$(UWSGI_FILE) |
| function tts | |
| set q $argv; | |
| mplayer "http://translate.google.com/translate_tts?ie=UTF-8&q=$q&tl=en&textlen="(math (echo "$q" | wc -m) - 1)"idx=0&total=1&prev=input"; | |
| end |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!
| "\e[1~": beginning-of-line | |
| "\e[4~": end-of-line | |
| β\e[5~β: history-search-backward | |
| β\e[6~β: history-search-forward | |
| "\e[3~": delete-char | |
| "\e[2~": quoted-insert | |
| "\e[5C": forward-word | |
| "\e[5D": backward-word | |
| "\e\e[C": forward-word | |
| "\e\e[D": backward-word |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2281433/hack.sh | sh | |
| # |
| #!/usr/bin/env python | |
| """Store messages in a Maildir into a couchdb database.""" | |
| import couchdb | |
| from mailbox import Maildir | |
| from optparse import OptionParser | |
| import os | |
| from pprint import pprint | |
| import sys | |
| from uuid import uuid4 |
| // includes bindings for fetching/fetched | |
| var PaginatedCollection = Backbone.Collection.extend({ | |
| initialize: function() { | |
| _.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
| typeof(options) != 'undefined' || (options = {}); | |
| this.page = 1; | |
| typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
| }, | |
| fetch: function(options) { |