emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/
- Redo -
C-?
- Change case: 1. Camel Case :
M-c
2. Upper Case :M-u
- Lower Case :
M-l
(global-font-lock-mode t) | |
(set-default-font "-apple-Cousine-medium-normal-normal-*-12-*-*-*-m-0-iso10646-") | |
(add-to-list 'load-path "/Users/tjweir/.emacs.d/vendor/color-theme") | |
(require 'color-theme) | |
(color-theme-initialize) | |
(windmove-default-keybindings) | |
(setq use-file-dialog nil) |
require 'gollum/frontend/app' | |
require 'digest/sha1' | |
class App < Precious::App | |
User = Struct.new(:name, :email, :password_hash, :can_write) | |
before { authenticate! } | |
before /^\/(edit|create|delete|livepreview|revert)/ do authorize_write! ; end | |
helpers do |
#!/usr/bin/env python | |
import re | |
import sys | |
from subprocess import * | |
PYTHONPATH = check_output('/usr/bin/find /Applications/GoogleAppEngineLauncher.app//Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/ -depth 1 -type d -exec /bin/echo -n "{}:" \;', shell=True) | |
PYTHONPATH += '/Applications/GoogleAppEngineLauncher.app//Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/'; | |
p = Popen(["/usr/local/bin/pylint","-fparseable","-rn","--disable=C,R", |
;; Keybonds | |
(global-set-key [(hyper a)] 'mark-whole-buffer) | |
(global-set-key [(hyper v)] 'yank) | |
(global-set-key [(hyper c)] 'kill-ring-save) | |
(global-set-key [(hyper s)] 'save-buffer) | |
(global-set-key [(hyper l)] 'goto-line) | |
(global-set-key [(hyper w)] | |
(lambda () (interactive) (delete-window))) | |
(global-set-key [(hyper z)] 'undo) |
# encoding: UTF-8 | |
require 'optparse' | |
require 'net/http' | |
require 'json' | |
def parse_options(argv) | |
opts = {} | |
@parser = OptionParser.new do |o| |
(function() { | |
function bufferUrl(url, title) { | |
baseUrl = "http://bufferapp.com/add?"; | |
return [baseUrl, | |
"url=", | |
encodeURIComponent(url), | |
"&text=", | |
encodeURIComponent(title) | |
].join(''); | |
} |
[wp-xmlrpc] | |
enabled = true | |
filter = wp-xmlrpc | |
action = iptables-multiport[name=wp-xmlrpc, port="http,https"] | |
logpath = /var/www/vhosts/system/*/logs/*access*log | |
/var/log/httpd/*access_log | |
bantime = 86400 | |
maxretry = 0 |
<?php | |
# Licensed under a CC0 1.0 Universal (CC0 1.0) Public Domain Dedication | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
function ampify($html='') { | |
# Replace img, audio, and video elements with amp custom elements | |
$html = str_ireplace( | |
['<img','<video','/video>','<audio','/audio>'], |
emacs --daemon
to run in the background.
emacsclient.emacs24 <filename/dirname>
to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/
C-?
M-c
2. Upper Case : M-u
M-l
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.