#--debug to node/node runner nodemon --debug server.coffee node-inspector --web-port=5859
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
#!/bin/bash | |
rm -f content | |
rm *.enc | |
rm *.pem | |
rm keyfile | |
rm *.b64 | |
rm *.dec | |
echo "generate: data-key for this content transfer" |
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
(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)))) |
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
https://www.grc.com/haystack.htm | |
http://rumkin.com/tools/password/passchk.php | |
http://readablepassphrase.codeplex.com/ |
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
#!/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] |
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
{ | |
"query" : { | |
"match_all" : {} | |
}, | |
"filter" : { | |
"geo_distance" : { | |
"distance" : "50km", | |
"location" : [-33.9, 151.175] | |
} | |
}, |
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
#! /usr/bin/env python | |
import json | |
import datetime | |
import httplib2 | |
import re | |
import csv | |
import sys | |
http = httplib2.Http() |
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
#! /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 |
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
#!/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"' |