Skip to content

Instantly share code, notes, and snippets.

View ganchclub's full-sized avatar

Anatolii G ganchclub

View GitHub Profile
var $temp = $("<input>");
$("body").append($temp);
$temp.val($('h1').text()).select();
document.execCommand("copy");
$temp.remove();
@ganchclub
ganchclub / keybase.md
Created September 11, 2019 18:56
Keybase proof

Keybase proof

I hereby claim:

  • I am ganchclub on github.
  • I am ganchclub (https://keybase.io/ganchclub) on keybase.
  • I have a public key ASCRmKPNul0ALsUhDwj2pOk6oE62CGLhRq_Ux-PBzvJTLAo

To claim this, I am signing this object:

@ganchclub
ganchclub / terminal.command
Created August 2, 2019 10:24
Increase keyboard key repeat rate on OS X?
defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms)
@ganchclub
ganchclub / seltrans
Created July 17, 2019 05:21
Перевод выделенного текста с любого языка на русский (можно изменить) с помощью Google Translate API
# Перевод выделенного текста с любого языка на русский (можно изменить) с помощью Google Translate API
# Для работы понадобятся следующие утилиты:
------------------------------------------------
# xsel
$ sudo apt-get install libnotify-bin xsel
------------------------------------------------
# jq
# Качаем для 64 bit
$ wget http://stedolan.github.io/jq/download/linux64/jq