This file contains 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
# | |
# Copyright (C) 2010-2012 Vinay Sajip. All rights reserved. Licensed under the new BSD license. | |
# | |
import ctypes | |
import logging | |
import os | |
class ColorizingStreamHandler(logging.StreamHandler): | |
# color names to indices | |
color_map = { |
This file contains 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
PORT="11211" | |
USER="user" | |
MAXCONN="512" | |
CACHESIZE="32" | |
PID="/home/user/.memcached.pid" | |
OPTIONS="" |
This file contains 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
[program:mongodb] | |
directory=/home/username/webapps/appname | |
command=/home/username/webapps/mongodb-appname/mongodb-linux-i686-2.0.1/bin/mongod --dbpath /home/username/webapps/mongodb-appname/data --logpath /home/username/webapps/mongodb-appname/log/corsdb.log --logappend --port 34006 |
This file contains 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 re | |
from django.utils.text import compress_string | |
from django.utils.cache import patch_vary_headers | |
from django import http | |
try: | |
import settings | |
XS_SHARING_ALLOWED_ORIGINS = settings.XS_SHARING_ALLOWED_ORIGINS |
This file contains 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
*/1 * * * * /home/{user}/webapps/{app}/nginx/sbin/nginx -c /home/{user}/webapps/{app}/nginx/conf/nginx.conf >> $HOME/tmp/cron.log 2>&1 ; | |
*/1 * * * * cd /home/{user}/bin/supervisord; /home/{user}/etc/supervisord.sh start >> $HOME/tmp/cron.log 2>&1 ; |
This file contains 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
*/5 * * * * source ~/.bashrc && ~/webapps/django_1_5/apache2/bin/start |
This file contains 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
# */2 * * * * /home/devstaff/opt/nginx/sbin/nginx -c /home/devstaff/opt/nginx/conf/nginx.conf >> $HOME/tmp/cron.log 2>&1 ; | |
*/2 * * * * cd /usr/local/bin/supervisord; /home/devstaff/etc/supervisord.sh start >> $HOME/tmp/cron.log 2>&1 ; |
This file contains 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
[].forEach.call($$("*"),function(a){ | |
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16) | |
}) | |
/* version 2 */ | |
[].forEach.call(document.querySelectorAll("*"),function(a){a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)}) |
This file contains 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
Alias /static_hv "C:/proys/static_proyecto/" | |
<Directory "C:/proys/static_proyecto"> | |
AllowOverride AuthConfig | |
Require all granted | |
</Directory> | |
WSGIScriptAlias / "C:\proys/staff-proyecto/src/settings/wsgi.py" | |
WSGIPythonPath "C:/proys/staff-proyecto/src" |
This file contains 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 sublime | |
import sublime_plugin | |
import re | |
import os | |
class CheckParentCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
# inicializa |
OlderNewer