I hereby claim:
- I am histrio on github.
- I am histrio (https://keybase.io/histrio) on keybase.
- I have a public key whose fingerprint is 8A98 93D4 B64B 480E 471D BE57 1883 9067 D122 293D
To claim this, I am signing this object:
# Usage | |
# find -name "*.mp3" -print0 | xargs -0 -i mp3faster {} | |
lame --quiet --decode "$1" - | soundstretch stdin stdout -tempo=+45 | lame --quiet --preset fast medium - "$1.2.mp3" | |
id3cp "$1" "$1.2.mp3" | |
mv "$1.2.mp3" "$1" |
I hereby claim:
To claim this, I am signing this object:
def currency(value, group_sep=' ', decimal_sep='.'): | |
"""Format currency by digits. | |
>>> currency(100) | |
'100.00' | |
>>> currency(3.1415) | |
'3.14' | |
>>> currency(31415) | |
'31 415.00' | |
>>> currency(3141500.1) |
function! NumberOfWindows() | |
let i = 1 | |
while winbufnr(i) != -1 | |
let i = i+1 | |
endwhile | |
return i - 1 | |
endfunction | |
function! DonotQuitLastWindow() |
# Script: recipe_001.py | |
# Author: Rinat F Sabitov aka histrio | |
import ctypes | |
import socket | |
import struct | |
AF_INET = 2 | |
MIB_TCP_STATE_LISTEN = 2 | |
TCP_TABLE_OWNER_PID_ALL = 5 |
#!/usr/bin/python | |
import os | |
import time | |
import shutil | |
import sys | |
src_dir = sys.argv[1] | |
dest_dir = os.path.join(os.path.dirname(src_dir), src_dir+".sorted") | |
for root, dirs, files in os.walk(src_dir, topdown=False): | |
for f in files: |
{ | |
"version": 1, | |
"keyboard": { | |
"keys": [ | |
{ | |
"id": 0, | |
"legend": "~\n`", | |
"state": { | |
"x": 0, | |
"y": 0, |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python | |
import http.server | |
import socketserver | |
import boto3 | |
from botocore.client import Config | |
class Handler(http.server.SimpleHTTPRequestHandler): |
def is_request_valid(request): | |
is_token_valid = request.form['token'] == os.environ['SLACK_VERIFICATION_TOKEN'] | |
is_team_id_valid = request.form['team_id'] == os.environ['SLACK_TEAM_ID'] | |
slack_signing_secret = os.environ['SLACK_SIGNING_SECRET'] | |
timestamp = request.headers['X-Slack-Request-Timestamp'].encode() | |
is_timestamp_valid = abs(time.time() - int(timestamp)) > 60 * 5 | |
sig_basestring = 'v0:' + timestamp + ':' + request.get_data() |