Skip to content

Instantly share code, notes, and snippets.

View histrio's full-sized avatar
⛏️
Working

Rinat Sabitov histrio

⛏️
Working
View GitHub Profile
@histrio
histrio / cv-en.md
Last active May 8, 2023 08:12
Rinat Sabitov's Resume

Rinat Sabitov

Budva, Montenegro | +382 69 567 433 | rinat.sabitov@gmail.com | https://false.org.ru

With over a decade of experience in Python development, I have extensive expertise in server-side programming, as well as a good understanding of client-side technologies. As one of the founders and organizers of the DevDay IT community in Kazan, I am committed to fostering a vibrant local tech scene. I have also made some contributions to the OpenStack Liberty release and am an active maintainer of a widely used Python library for CouchDB. My passion for software development drives me to constantly seek out new challenges and deliver innovative solutions.


Education

# 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"
@histrio
histrio / first.sh
Last active May 1, 2020 20:06
arch install cheatsheet
#!/usr/bin/env sh
# ( O O )
# =======oOO=(_)==OOo======
# arch install script
# author Rinat Sabitov aka histrio
# created: May 2015
# modified: Dec 2016
# =======oOO======OOo======

Keybase proof

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:

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
@histrio
histrio / sortout.py
Last active November 1, 2017 06:19
Move all files to directories based on modification date
#!/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,

Keybase proof

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: