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
{ | |
"description": "Caps alone is Esc; Caps with another key is Ctrl; Caps with Shift is Caps", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock", | |
"modifiers": { | |
"mandatory": [ | |
"shift" | |
], |
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, sublime_plugin | |
from datetime import datetime | |
class TimestampCommand(sublime_plugin.EventListener): | |
"""Expand `isoD` to YYYY-MM-DD.""" | |
def on_query_completions(self, view, prefix, locations): | |
if prefix == 'isoD': | |
val = datetime.now().strftime('%Y-%m-%d') | |
else: | |
val = None |
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
*nat | |
:PREROUTING ACCEPT [0:0] | |
:INPUT ACCEPT [0:0] | |
:OUTPUT ACCEPT [0:0] | |
:POSTROUTING ACCEPT [0:0] | |
# p4p1 is WAN interface, #p1p1 is LAN interface | |
-A POSTROUTING -o p4p1 -j MASQUERADE | |
# NAT pinhole: HTTP from WAN to LAN |