I hereby claim:
- I am alexandrz on github.
- I am zykov (https://keybase.io/zykov) on keybase.
- I have a public key whose fingerprint is 3211 9D83 9852 D25A C5DA 8F77 D438 D447 DECF D09A
To claim this, I am signing this object:
a=%DROPBOX/Public/screen/`date +%W` && mkdir -p $a && f=$a/`date +%Y%m%d-%H%M%S`.png && scrot -s $f && dropbox puburl $f | xsel -i |
kill `ps auxwww|grep "Chrome Helper"|awk '{print $2}'` |
# -*- encoding : utf-8 -*- | |
require 'rubygems' | |
require 'appscript' | |
OPEN_TASK_BULLET = "☐" # Valid: - ❍ ❑ ■ □ ☐ ▪ ▫ – — ≡ → › | |
CLOSE_TASK_BULLET = "✔" # Valid: + ✓ ☑ | |
things = Appscript.app('Things') |
require 'digest' | |
class BitcoinAddressValidator < ActiveModel::EachValidator | |
def validate_each(record, field, value) | |
unless value.blank? || valid_bitcoin_address?(value) | |
record.errors[field] << "Bitcoin address is invalid" | |
end | |
end | |
private |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v1.4.15 (Darwin) | |
mQENBFOK2KwBCACtmwxfsjleL5SZ/DSixRu94prvDEk6szaKyloT/Qw2Bfd6921u | |
/4OJtJnMkLk9h6JurB9Bi56qTQF0yrG0vHS8qaVEKs9T48LZRxA2Ktl13g4IGWzR | |
Hs0BJIVjhGBNQWeHCzq/uDnkRyp7uR8vWyEnzIKfGaRaGBL4LjPP7aLppfX+Wh38 | |
ScKrO22/jjpmn+KsdrfjzH5GBlF3Zeq8u22odaaMFL56YCQw4JG5HLraP3EFHm6/ | |
8hgg9CCgV7OVdzXVDO5h+kFewjaTD3ADE5MxzdW2AgVi9RMxBxo5XrBnWxGQahJ+ | |
UTc4bjqTboPzJ5JnorWMq+D4pjuZVsVrZt1TABEBAAG0JUFsZWtzYW5kciBaeWtv | |
diA8YWxleGFuZHJ6QGdtYWlsLmNvbT6JAT4EEwECACgFAlOK2KwCGwMFCRLMAwAG |
# Add bash completion for ssh: it tries to complete the host to which you | |
# want to connect from the list of the ones contained in ~/.ssh/known_hosts | |
__ssh_known_hosts() { | |
if [[ -f ~/.ssh/known_hosts ]]; then | |
cut -d " " -f1 ~/.ssh/known_hosts | cut -d "," -f1 | grep -v "[\[\|]" | uniq | sort | |
fi | |
} | |
_ssh() { | |
local cur known_hosts | |
COMPREPLY=() |
I hereby claim:
To claim this, I am signing this object:
Verifying myself: My Bitcoin username is +zykov. https://onename.io/zykov |
// 1. Open a photo set | |
// 2. Scroll to the bottom to see all photos | |
// 3. Run this script in javascript console | |
// => you will see all links to original files (now you can download it using DownThemAll!) | |
var jq = document.createElement('script'); | |
jq.src = "//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); | |
photos = $('.photo-click'); |
var routeData = {"routeId":"713","routeNumber":null,...} | |
// Data from http://map.gortransperm.ru/json/full-route/06.11.2014/713 | |
var builder = require("josm/builder") | |
var nb = builder.NodeBuilder; | |
var rb = builder.RelationBuilder; | |
var ds = new org.openstreetmap.josm.data.osm.DataSet(); |