Skip to content

Instantly share code, notes, and snippets.

View rubinchyk's full-sized avatar
🇮🇱

Alexey Rubinchyk rubinchyk

🇮🇱
View GitHub Profile
@rubinchyk
rubinchyk / config
Created August 20, 2021 14:37 — forked from rbialek/config
ssh/.config (Github)
Host github.com
User git
Hostname github.com
PreferredAuthentications publickey
IdentityFile /home/user/.ssh/id_rsa
@rubinchyk
rubinchyk / debug-scroll.md
Created May 1, 2023 11:41 — forked from cuth/debug-scroll.md
Find the elements that are causing a horizontal scroll. Based on http://css-tricks.com/findingfixing-unintended-body-overflow/

Debug Horizontal Scroll

(function (d) {
    var w = d.documentElement.offsetWidth,
        t = d.createTreeWalker(d.body, NodeFilter.SHOW_ELEMENT),
        b;
    while (t.nextNode()) {
        b = t.currentNode.getBoundingClientRect();
 if (b.right > w || b.left < 0) {
@rubinchyk
rubinchyk / ssh_tunneling.sh
Created June 5, 2023 09:18 — forked from merevu/ssh_tunneling.sh
ssh-tunneling
# local tunnel (for connecting remote from local)
ssh -f -N -L{LOCAL-PORT}:{DEST-IP}:{DEST-PORT} -l {JUMP-HOST-USER} {JUMP-HOST-IP}:{JUMP-HOST-PORT}
# reverse tunnel (for connecting local from remote)
ssh -f -N -R {LOCAL-PORT}:{DEST-IP}:{DEST-PORT} -l {LOCAL_USER} {LOCAL-IP}:{LOCAL-PORT}