Skip to content

Instantly share code, notes, and snippets.


Anton Rudeshko (Tesla) anton-rudeshko

View GitHub Profile

Keybase proof

I hereby claim:

  • I am anton-rudeshko on github.
  • I am anton_rudeshko ( on keybase.
  • I have a public key whose fingerprint is 8AAE 1D53 A580 CD38 DA2E 2F89 A232 B103 FA89 6824

To claim this, I am signing this object:

anton-rudeshko /
Last active Apr 8, 2019
GPG on the flash drive (Windows FAT 32)

GPG on removable media

$ gpg --version
gpg (GnuPG/MacGPG2) 2.2.8
libgcrypt 1.8.3
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
anton-rudeshko /
Created Apr 4, 2019
Copy paste of "Life on the Command Line"

Life on the Command Line

Stephen Ramsay - Sat, 04/09/2011 - 19:49

A few weeks ago, I realized that I no longer use graphical applications.

That’s right. I don’t do anything with GUI apps anymore, except surf the Web. And what’s interesting about that, is that I rarely use cloudy, AJAXy replacements for desktop applications. Just about everything I do, I do exclusively on the command line. And I do what everyone else does: manage email, write things, listen to music, manage my todo list, keep track of my schedule, and chat with people. I also do a few things that most people don’t do: including write software, analyze data, and keep track of students and their grades. But whatever the case, I do all of it on the lowly command line. I literally go for months without opening a single graphical desktop application. In fact, I don’t — strictly speaking — have a desktop on my computer.

I think this is a wonderful way to wor

anton-rudeshko / gpg.conf
Last active Sep 5, 2018
Let's talk GnuPG Materials
View gpg.conf
# Based on:
# -
# -
# If you have more than 1 secret key in your keyring, you may want to
# uncomment the following option and set your preferred keyid.
# default-key KEYID
# If you do not pass a recipient to gpg, it will ask for one. Using
View get-csv-col.awk
# В отчётах в CSV разделителем идёт точка с запятой, а не запятая
# В первой строке ищем колонку с нужным именем и сохраняем её индекс
NR == 1 {
for (i = 1; i <= NF; i++)
if ($i == target)
column_idx = i
anton-rudeshko / git-lfs-to-json.awk
Last active Feb 12, 2018
Convert `git lfs --debug` output to json.
View git-lfs-to-json.awk
# Usage: git lfs ls-files -d | awk -f git-lfs-to-json.awk > lfs-files.json
RS = ""
FS = "\n"
print "["
split($1, filepath, ": ")
anton-rudeshko /
Last active Nov 17, 2019
Convert GoPro photos to timelapse video using ffmpeg CLI.
#!/usr/bin/env bash
# -r 60: 60 FPS
# -y: rewrite output file
# -start_number 11555: first frame number
# -i 'G%07d.JPG': file format
# -vf "crop=h=2250": video filter to crop input frame height from 3000 to 2250 (which will be eventually downscaled to 720)
# -c:v libx264: video codec x264
# -crf 20: x264 encoding quality (less = better)
# -s 1280x720: output size
View example.bash
#!/usr/bin/env bash
source tc-props.bash
echo "Running on $agent_name"
echo "Deploying $org_app_version to $org_deploy_server..."
# ...
anton-rudeshko / timestamp.js
Created Jul 18, 2014
Detect timestamp: seconds vs. millis
View timestamp.js
var isTimeStamp = (function(MAX_INT) {
return function(number) {
return parseInt(number, 10) > MAX_INT;
})(Math.pow(2, 31) - 1);
View npm-shrinkwrap.json
"name": "web3",
"version": "0.0.1",
"dependencies": {
"bower": {
"version": "1.3.5",
"from": "bower@1.3.5",
"resolved": "",
"dependencies": {
"abbrev": {
You can’t perform that action at this time.