Skip to content

Instantly share code, notes, and snippets.

View lionell's full-sized avatar
🎃
Hacking

Ruslan Sakevych lionell

🎃
Hacking
View GitHub Profile
@lionell
lionell / howto.md
Last active December 7, 2017 23:19
How to Derevyan

How to DEREVYAN

PLEASE READ Andrey Guide FIRST!!!

Generate SSH keypair on the localhost

  1. Run ssh-keygen -t rsa
  2. Enter filename for key(eg. )
  3. Leave password emtpy
@lionell
lionell / tmux.service
Created July 28, 2017 02:19
Tmux systemd service
// Put this file in /etc/systemd/system/tmux.service
[Unit]
Description=Tmux server
[Service]
Type=forking
User=lionell
ExecStart=/usr/bin/tmux new -s 0 -d
ExecStop=/usr/bin/tmux kill-server
@lionell
lionell / gist:a8576777043187adbd31ad9c42c4fa3e
Created April 27, 2017 04:10
Run interactive Octave shell inside Docker container
#!/usr/bin/env sh
docker run -it --name ng-octave -v (pwd):/home/octave openmicroscopy/octave:latest
@lionell
lionell / gist:45521c3f3c8b8de9eabbb7d26aa877ee
Created April 21, 2017 03:55
Manually setup timezone on Arch Linux
timedatectl list-timezones
# Find timezone in list, and set it
sudo timedatectl set-timezone America/Los_Angeles
@lionell
lionell / keyboard.sh
Last active January 23, 2017 07:23
Set keyboard rate and delay
xset r rate 200 20
@lionell
lionell / install.sh
Last active January 23, 2017 07:23
My Arch configuration
# Update pacman-mirrors
sudo pacman-mirrors -g
# Update pacman database
sudo pacman -Syy
# sudo rm /var/lib/pacman/db.lck, if previous failed.
# Install linux kernel ~ 4.8
sudo mhwd-kernel -i linux48
# Swap keys