This is a SCRIPT-8 cassette.
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
{ | |
"$schema": "https://lnav.org/schemas/format-v1.schema.json", | |
"lpa_log": { | |
"title": "LPA Data Validator Combined Log", | |
"file-pattern": "combined.log", | |
"multiline": false, | |
"json": true, | |
"timestamp-field": "timestamp", | |
"level-field": "level", | |
"body-field": "message", |
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
# Source: https://gist.github.com/RichardBronosky/56d8f614fab2bacdd8b048fb58d0c0c7 | |
# Linux | |
_copy(){ | |
cat | xclip -selection clipboard | |
} | |
_paste(){ | |
xclip -selection clipboard -o | |
} |
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
(defn- try-tagged-template | |
[tag-test catch-symbol & body] | |
(let [catch-tagged-form (last body) | |
[catch-sym ex tag data-sym & catch-body] catch-tagged-form] | |
(s/validate [(s/one (s/eq catch-symbol) 'catch) | |
(s/one s/Symbol 'exception-binding) | |
(s/one s/Keyword 'tag) | |
(s/one s/Symbol 'ex-data-binding)] | |
[catch-sym ex tag data-sym]) | |
`(let [tag-test# ~tag-test |
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
javascript:(function(){ | |
function encode (s) { | |
s = s.toString (); | |
s = s.replace (new RegExp (/" %"/, "g"), " percent"); | |
return (encodeURIComponent(s)); | |
} | |
var url="http://radio3.io/?"; | |
var link = "link=" + encode(location.href); | |
var title="&title=" + (document.title); | |
var desc="&description=" + (document.getSelection()); |
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
sudo apt-get install git-core build-essential | |
sudo apt-get install libncurses5-dev libpcap-dev libpcre3-dev libnl-dev libmicrohttpd12 libmicrohttpd-dev | |
wget http://kismetwireless.net/code/kismet-2016-07-R1.tar.xz | |
tar -xvf kismet-2016-07-R1.tar.xz | |
cd kismet-2016-07-R1 | |
./configure | |
make | |
sudo make suidinstall | |
sudo groupadd kismet | |
sudo usermod -a -G kismet pi |
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
var options = { | |
'url': '/foo/bar/' | |
} | |
var inlineCss = require('inline-css') | |
var fs = require('fs') | |
fs.readFile('/Users/foo/Downloads/index.htm', 'utf8', function (err, data){ | |
if (err){ | |
return console.log(err); | |
} | |
inlineCss(data, options).then(function(html) { |
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
all: txtfile | |
TARGET_DIR = target-dir | |
txtfile: $(TARGET_DIR) | |
touch $(TARGET_DIR)/file.txt | |
target-dir: | |
test ! -d $(TARGET_DIR) && mkdir $(TARGET_DIR) |
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
[ | |
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol"} }, | |
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol"} }, | |
{ "keys": ["shift+end"], "command": "move_to", "args": { "to": "eol", "extend": true } }, | |
{ "keys": ["shift+home"], "command": "move_to", "args": { "to": "bol", "extend": true } } | |
] |
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://groups.google.com/forum/#!topic/clojure/JgxFQLP2E34 | |
:jvm-opts ^:replace ["-server" | |
;;"-XX:+AggressiveOpts" | |
;;"-XX:+UseFastAccessorMethods" | |
;;"-XX:+UseCompressedOops" | |
"-Xmx4g"] |
NewerOlder