This file contains hidden or 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
| -- Standard awesome library | |
| require("awful") | |
| require("awful.autofocus") | |
| require("awful.rules") | |
| -- Theme handling library | |
| require("beautiful") | |
| -- Notification library | |
| require("naughty") | |
| require("vicious") | |
| -- Load Debian menu entries |
This file contains hidden or 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 os | |
| import sys | |
| import subprocess | |
| import time | |
| def file_is_modified(filename): | |
| """ Accepts & returns filename if it has been modified """ | |
| previous_st_mtime = 0 | |
| while True: | |
| st_mtime = os.stat(filename)[8] |
This file contains hidden or 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 string | |
| import sys | |
| class LeastRecentlyUsedMatrix(object): | |
| """ | |
| Output matrix in table format | |
| Return least recently used references | |
| """ | |
| MAX_MATRIX_SIZE = 70 |
This file contains hidden or 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 multiprocessing | |
| # The socket to bind. | |
| bind = "127.0.0.1:8080" | |
| # The maximum number of pending connections. | |
| backlog = 2024 | |
| # The number of worker process for handling requests | |
| workers = multiprocessing.cpu_count() * 2 + 1 | |
| # The type of workers to use. (sync|eventlet|gevent|tornado) | |
| worker_class = 'gevent' |
NewerOlder