forward char/word : C-f, M-f
back char/word : C-b, M-b
next logical line : C-n, M-n
previous line : C-p
- sometimes, C-p is previous command
| #!/usr/bin/env python | |
| import urllib2 | |
| import md5 | |
| import time | |
| import sys, re | |
| service = 'http://api.quova.com/' | |
| version = 'v1/' | |
| method = 'ipinfo/' | |
| apikey = '' |
| #!/usr/bin/env python | |
| import sys,re | |
| from collections import defaultdict, namedtuple | |
| # cat wip/mobile_log |./apl | sed -e's/_/\./' | |
| mobile_pat = re.compile( | |
| r'^(?P<app>\S*?)\s"' |
| #! /usr/bin/env python | |
| from selenium import webdriver | |
| import selenium | |
| from selenium.common.exceptions import TimeoutException | |
| from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 | |
| from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0 | |
| from selenium.webdriver.common.by import By | |
| import collections | |
| from time import sleep | |
| import getpass |
| #! /usr/bin/env python | |
| import json | |
| import datetime | |
| import httplib2 | |
| import re | |
| import csv | |
| import sys | |
| http = httplib2.Http() |
| { | |
| "query" : { | |
| "match_all" : {} | |
| }, | |
| "filter" : { | |
| "geo_distance" : { | |
| "distance" : "50km", | |
| "location" : [-33.9, 151.175] | |
| } | |
| }, |
| #!/usr/bin/env python | |
| import sys, re, json | |
| from collections import defaultdict, namedtuple | |
| # with jaysw | |
| #Slow Search Log | |
| #[2013-05-27 07:04:44,833][WARN ][index.search.slowlog.fetch] [local1] [idx2][2] took[1s], took_millis[1043], types[property], stats[], search_type[QUERY_THEN_FETCH], | |
| #Slow Index Log, currently not supported | |
| #[2013-05-27 08:32:23,397][TRACE][index.indexing.slowlog.index] [local1] [idx2][0] took[607.8ms], took_millis[607], type[offer], id[2b13a5e5d5029f7b3609c9ddb89a7419] |
| https://www.grc.com/haystack.htm | |
| http://rumkin.com/tools/password/passchk.php | |
| http://readablepassphrase.codeplex.com/ |
| (defun epoch-to-iso () | |
| (interactive) | |
| (re-search-forward "\\([0-9]\\{10,13\\}\\)") | |
| (goto-char (match-beginning 0)) | |
| (replace-match (format-time-string "%Y-%m-%d" (seconds-to-time (/ (string-to-int (match-string 1)) 1000)))) | |
| ) | |
| (defun curl-something (begin end) | |
| (interactive "r") | |
| (shell-command (concat "curl " (buffer-substring begin end)))) |
#--debug to node/node runner nodemon --debug server.coffee node-inspector --web-port=5859