Skip to content

Instantly share code, notes, and snippets.

nginx:
ng:
server:
config:
user: www-data
worker_processes: auto
pid: /run/nginx.pid
events:
worker_connections: 1024
multi_accept: 'on'
@SunPowered
SunPowered / key
Last active September 8, 2015 15:34
{{ key }}
Requirement already satisfied (use --upgrade to upgrade): sentry in ./.venv/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): BeautifulSoup>=3.2.1,<3.3.0 in ./.venv/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): celery>=3.1.8,<3.2.0 in ./.venv/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): cssutils>=0.9.9,<0.10.0 in ./.venv/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): Django>=1.6.0,<1.7 in ./.venv/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): django-bitfield>=1.7.0,<1.8.0 in ./.venv/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): django-crispy-forms>=1.4.0,<1.5.0 in ./.venv/lib/python2.7/site-packages (from sentry)
Requirement already satisfied (use --upgrade to upgrade): django-paging>=0.2.5,<0.3.0 in ./.venv/l
@SunPowered
SunPowered / diffed.txt
Created August 27, 2015 18:37
Simple file diff between rendered HTML: Core Machine theme. Child theme
> </style>
> <style type="text/css" data-type="vc_shortcodes-custom-css">.vc_custom_1440614281215{margin-bottom: 0px !important;border-bottom-width: 0px !important;padding-right: 0px !important;padding-bottom: 0px !important;padding-left: 0px !important;}.vc_custom_1440613977593{margin-top: 0px !important;border-top-width: 0px !important;padding-top: 0px !important;}.vc_custom_1439292562703{padding: 0px !important;}.vc_custom_1440599028186{margin: 0px !important;border-width: 0px !important;padding: 0px !important;}</style><noscript>&lt;style&gt; .wpb_animate_when_almost_visible { opacity: 1; }&lt;/style&gt;</noscript></head>
@SunPowered
SunPowered / init.sls
Last active August 27, 2015 11:59
Vagrant + Salt Pip.Installed Error
common-pkgs:
pkg.installed:
- pkgs:
- zsh
- htop
metatech:
user.present
python-pip:
@SunPowered
SunPowered / server.coffee
Created February 12, 2014 16:43
Meteor methods registration in coffeescript
Meteor.startup ->
Meteor.methods
method1: ->
console.log("Inside method1")
method2: ->
console.log("Inside method2")
@SunPowered
SunPowered / gist:7200238
Created October 28, 2013 16:39
Attempting to wrap an embedded neo4j GraphDatabase in a custom object, but crucial objects such as GraphDatabase.transaction is throwing Runtime Errors when entering the transaction
import neo4j
import tempfile
import shutil
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
stream_handler = logging.StreamHandler()
stream_handler.setLevel(logging.INFO)