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
# transmission.py | |
class Transmission(object): | |
# ... snip ... | |
def _make_request(self, method, **kwargs): | |
body = anyjson.serialize(self._format_request_body(method, **kwargs)) | |
response = requests.post(self.url, data=body, headers=self.headers, auth=self.auth) | |
if response.status_code == CSRF_ERROR_CODE: | |
self.headers[CSRF_HEADER] = response.headers[CSRF_HEADER] | |
return self._make_request(method, **kwargs) | |
return response |
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
Download memcached source | |
./configure --enable-sasl --enable-sasl-pwdb | |
make | |
echo "user:password" > memcached-sasl-pwdb | |
export MEMCACHED_SASL_PWDB=memcached-sasl-pwdb | |
./memcached -S -vv | |
Don't need anything with sasl, saslpasswd2, or memcached.conf |
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
# nginx config | |
server { | |
server_name transparentnevada.com www.transparentnevada.com; | |
client_max_body_size 30m; | |
location /favicon.ico { | |
alias /srv/django-media/transparentnevada-production/images/favicon.ico; | |
} | |
location /static/ { |
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
(add-to-list 'load-path "~/.emacs.d/") | |
(add-to-list 'load-path "~/.emacs.d/contrib/") | |
(setenv "PATH" | |
(concat (getenv "PATH") | |
":/usr/local/bin:/usr/local/texlive/2010/bin/universal-darwin/")) | |
;; https://github.com/marktran/color-theme-chocolate-rain | |
(progn | |
(require 'color-theme) |
NewerOlder