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
git diff HEAD --ignore-space-at-eol |
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
server.modules = ( | |
... | |
"mod_webdav", | |
... | |
) | |
$HTTP["host"] =~ "weave.foo.com" { | |
server.document-root = "/foo/weave" | |
accesslog.filename = "/var/log/lighttpd/weave/access.log" | |
webdav.activate = "enable" |
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
server { | |
listen 80 default_server; | |
return 444; | |
} |
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
urlencode() { | |
# urlencode <string> | |
old_lc_collate=$LC_COLLATE | |
LC_COLLATE=C | |
local length="${#1}" | |
for (( i = 0; i < length; i++ )); do | |
local c="${1:$i:1}" | |
case $c in |
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 | |
"""Modification of PyGTK's EntryCompletion example with shell-like tab completion. | |
Tab works normally unless there's content, the cursor is at the end of it, | |
and nothing is selected, preserving intuitive tab-cycling behaviour in all | |
reasonable cases while still allowing comfortable tab completion. | |
(To tab-cycle into a field with content in it and then tab-complete, just press | |
End before you request completion) | |
If no completions are found, users may press Tab again to go to the next field. |
NewerOlder