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
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | |
<snippet> | |
<content><![CDATA[# coding=utf-8]]></content> | |
<tabTrigger>utfc</tabTrigger> | |
<scope>source.python</scope> | |
<description>coding: utf-8</description> | |
</snippet> |
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
var Keen=Keen||{configure:function(e){this._cf=e},addEvent:function(e,t,n,i){this._eq=this._eq||[],this._eq.push([e,t,n,i])},setGlobalProperties:function(e){this._gp=e},onChartsReady:function(e){this._ocrq=this._ocrq||[],this._ocrq.push(e)}};(function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src=("https:"==document.location.protocol?"https://":"http://")+"dc8na2hxrj29i.cloudfront.net/code/keen-2.1.0.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})(); | |
Keen.configure({ // configure the Keen Client | |
projectId: projectId, | |
readKey: readKey | |
}); | |
Keen.onChartsReady(function() { | |
var daysInChart = 30 |
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
Show hidden characters
{ | |
// Colors | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme", | |
"theme": "Soda Dark 3.sublime-theme", | |
// Font | |
"font_face": "Ubuntu Mono", | |
// "font_face": "Meslo LG L", | |
"font_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
{ | |
"build_systems": | |
[ | |
{ | |
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", | |
"name": "Anaconda Python Builder", | |
"selector": "source.python", | |
"shell_cmd": "/home/xxxx/Envs/xxxxx/bin/python -u \"$file\"" //path python in virtualenv | |
} | |
], |
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
"Djaneiro" | |
"Anaconda" | |
"BracketHighlighter" top 25 | |
"FileDiffs" top 100 | |
"Git" | |
"GitGutter" |
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 sys | |
import os | |
import re | |
import hotshot | |
import hotshot.stats | |
import tempfile | |
import StringIO | |
from django.conf import settings |
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. install silk with all its requirements | |
pip install django-silk | |
simplejson | |
python-dateutil | |
Jinja2 | |
pep8 | |
autopep8 | |
pytz | |
MarkupSafe |
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
#!/bin/sh | |
# | |
# Prepend the branch name to the commit message | |
# | |
# Add this file as [repo]/.git/hooks/prepare-commit-msg | |
# | |
# A couple notes: | |
# 1. The file must be executable (chmod +x prepare-commit-msg) | |
# 2. This works on a per-repo basis (unless you follow this guide https://coderwall.com/p/jp7d5q/create-a-global-git-commit-hook) |
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
-> First one (incorrect for my use) | |
Sending post_syncdb signal for sentry: ['UserReport', 'ReleaseFile', 'OrganizationMemberTeam', 'SavedSearch', 'OrganizationAccessRequest'] | |
-> Second one (works great!) | |
Sending post_syncdb signal for sentry: ['UserOption', 'SearchDocument', 'GroupBookmark', 'FilterKey', 'Activity', 'AccessGroup', 'ApiKey', 'Release', 'Organization', 'PendingProjectMember', 'FilterValue', 'GroupMeta', 'AffectedUserByGroup', 'Option', 'TeamMember', 'MessageFilterValue', 'ProjectCountByMinute', 'EventMapping', 'Alert', 'Broadcast', 'TrackedUser', 'User', 'OrganizationAccessRequest', 'AuthIdentity', 'ProjectOptions', 'PendingTeamMember', 'HelpPage', 'UserReport', 'GroupAssignee', 'Rule', 'Project', 'GroupRuleStatus', 'GroupTagKey', 'ProjectDomain', 'Team', 'SearchToken', 'LostPasswordHash', 'ProjectMember', 'OrganizationMemberTeam', 'ProjectKey', 'View', 'ReleaseFile', 'AuthProvider', 'MessageCountByMinute', 'SavedSearch', 'GroupedMessage', 'MessageIndex', 'File', 'GroupSeen', 'GroupHash', 'Aler |
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
This problems happens because there is no enough space to compile 'lxml' package, | |
because it needs 1gb of RAM, so we are going to create a swap area to skip this error and | |
fake like we have more RAM | |
First, be sure you're out of memory | |
dmesg | tail | |
And see if you have packages needed installed | |
dpkg --get-selections | grep -v deinstall > ~/packages | |
cat ~/packages | grep {each package} | |
- libxml2 |
OlderNewer