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
# This rewrite redirects sitemap.xml to sitemap_index.xml, which is what Yoast's WordPress SEO plugin generates. | |
rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent; | |
# This rewrite ensures that the styles are available for styling the generated sitemap. | |
rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last; | |
# These rewrites rule are generated by Yoast's plugin for Nginx webserver | |
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last; | |
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; |
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
from random import randrange | |
from twisted.internet.defer import DeferredQueue | |
from twisted.internet.task import deferLater, cooperate | |
from twisted.internet import reactor | |
def async(n): | |
print 'Starting job', n | |
d = deferLater(reactor, n, lambda: None) |
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
Ctrl-a Move to the start of the line. | |
Ctrl-e Move to the end of the line. | |
Ctrl-b Move back one character. | |
Alt-b Move back one word. | |
Ctrl-f Move forward one character. | |
Alt-f Move forward one word. | |
Ctrl-] x Where x is any character, moves the cursor forward to the next occurance of x. | |
Alt-Ctrl-] x Where x is any character, moves the cursor backwards to the previous occurance of x. | |
Ctrl-u Delete from the cursor to the beginning of the line. | |
Ctrl-k Delete from the cursor to the end of the line. |
NewerOlder