I hereby claim:
- I am cjp on github.
- I am cjp (https://keybase.io/cjp) on keybase.
- I have a public key whose fingerprint is 0EE5 CD71 3529 D6A1 FCAA FFF9 208D 40F7 D7FB 7888
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'xmlsimple' | |
# stolen from facets, thanks to dharple for the suggestion | |
def word_wrap(text, col_width=80) | |
text.gsub!( /(\S{#{col_width}})(?=\S)/, '\1 ' ) | |
text.gsub!( /(.{1,#{col_width}})(?:\s+|$)/, "\\1\n" ) | |
text |
I hereby claim:
To claim this, I am signing this object:
PROMPT='%F{10}%n@%F{11}%m %F{blue}%2c%(?,%{%F{green}%},%{%F{red}%}) ❯%f ' | |
RPROMPT='$(git_prompt_info) %(?,%{%F{green}%},%{%F{red}%})❮ %F{blue}%D{%H:%M} %F{yellow}%D{%Z}%f' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%F{yellow}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%f" | |
ZSH_THEME_GIT_PROMPT_DIRTY=" %F{red}*%f" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" |
#!/bin/sh | |
random() { | |
od -A n -t d -N 1 /dev/random | tr '\n' ' ' | awk '{print $1}' | |
} | |
rolldie() { | |
local r=$(random) | |
while [ $r -gt 6 -o $r -lt 1 ]; do | |
r=$(random) |
% echo | openssl s_client -tls1_2 -servername crypto.cat -connect crypto.cat:443 2>/dev/null >/tmp/crypto.cat | |
% openssl x509 -noout -in /tmp/crypto.cat -text | grep -A2 Validity | |
Validity | |
Not Before: Dec 24 00:00:00 2014 GMT | |
Not After : Feb 5 12:00:00 2016 GMT | |
% for h in md5 sha1; do openssl x509 -noout -in /tmp/crypto.cat -fingerprint -$h; done | |
MD5 Fingerprint=DE:16:98:A3:A8:B6:04:3F:88:9B:2F:F5:58:26:73:AD | |
SHA1 Fingerprint=AE:96:D9:C0:69:46:32:7D:1B:83:D1:08:99:61:8A:1D:D8:06:44:E7 |
Some colors in StackEdit were nonsensical for the Solarized dark theme.
Go to Menu -> Settings -> Extensions -> UserCustom Extension. Paste this code in the box provided, then click OK.
userCustom.onReady = function() {
$('head').append('<style>.hljs,.hljs-subst,.hljs-tag .hljs-title,.lisp .hljs-title,.clojure .hljs-built_in,.nginx .hljs-title{color:#eee8d5}.hljs-string,.hljs-title,.hljs-constant,.hljs-parent,.hljs-tag .hljs-value,.hljs-rules .hljs-value,.hljs-rules .hljs-value .hljs-number,.hljs-preprocessor,.hljs-pragma,.haml .hljs-symbol,.ruby .hljs-symbol,.ruby .hljs-symbol .hljs-string,.hljs-aggregate,.hljs-template_tag,.django .hljs-variable,.smalltalk .hljs-class,.hljs-addition,.hljs-flow,.hljs-stream,.bash .hljs-variable,.apache .hljs-tag,.apache .hljs-cbracket,.tex .hljs-command,.tex .hljs-special,.erlang_repl .hljs-function_or_atom,.asciidoc .hljs-header,.markdown .hljs-header,.coffeescript .hljs-attribute{color:#dc322f}pre
server { | |
listen [::]:443 ssl spdy ipv6only=off; | |
server_name whatever.wherever; | |
ssl_certificate somethingsomething.pem; | |
ssl_certificate_key somethingsomething.key; | |
ssl_session_timeout 5m; | |
ssl_protocols TLSv1.2 TLSv1.1 TLSv1; | |
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA |
#!/usr/bin/env ruby | |
# | |
# trello-json2csv.rb - Convert Trello JSON export into CSV summary | |
# | |
# note: only includes first label and first member of each card | |
# | |
# Copyright (C) 2015 Christopher J. Pilkington https://github.com/cjp | |
# Licensed under The MIT License, http://opensource.org/licenses/MIT | |
# |
manhattantimesnews.com. 172800 IN NS ns1.m28.siteground.biz. | |
manhattantimesnews.com. 172800 IN NS ns2.m28.siteground.biz. | |
;; Received 94 bytes from 192.26.92.30#53(192.26.92.30) in 19 ms | |
manhattantimesnews.com. 14400 IN A 181.224.140.118 | |
manhattantimesnews.com. 86400 IN NS ns1.vm2936.sgvps.net. | |
manhattantimesnews.com. 86400 IN NS ns2.vm2936.sgvps.net. | |
;; Received 108 bytes from 181.224.147.71#53(181.224.147.71) in 48 ms | |
$ host ns1.vm2936.sgvps.net |
#!/usr/bin/env ruby | |
require 'csv' | |
require 'nexpose' | |
require 'highline/import' | |
require 'ipaddr' | |
class String | |
# ask String if it's an IPv4 address | |
def ipv4? |