Skip to content

Instantly share code, notes, and snippets.

{ "keys": ["enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "[{,[,(]$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^[},\\],)]", "match_all": true }
]
},
@ScOut3R
ScOut3R / customexec.conf
Last active December 9, 2018 12:55
Basic Varnish config for WP with CloudFront
# /etc/systemd/system/varnish.service.d/customexec.conf
[Service]
ExecStart=
ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -s default,64m
@ScOut3R
ScOut3R / toutf8.py
Created October 10, 2015 22:13
Mailman 2.1.16 UTF-8 conversion
#!/usr/bin/env python
import pickle
import sys
import paths
file = sys.argv[1]
config = pickle.load( open( file, "rb" ) )
config['description'] = config['description'].decode("latin-1")
pickle.dump( config, open( file, "wb" ))