Skip to content

Instantly share code, notes, and snippets.

@rynffoll
rynffoll / items.json
Last active June 20, 2020 16:28
~/Library/Application Support/MTMR/items.json
[
{
"type": "dock",
"align": "left",
"width": 300
},
{
"type": "brightness",
"align": "right",
"width": 150,
@rynffoll
rynffoll / sVimrc
Last active June 2, 2018 19:07
sVim
set nosmoothscroll
let mapleader = "space"
let hintcharacters = "asdfewjklio"
@rynffoll
rynffoll / install-packages.sh
Created August 10, 2017 18:11
[dotfiles] Fedora
#!/bin/bash
## Packages
sudo dnf --refresh update
# Shell
sudo dnf install git htop curl httpie bash bash-completion tmux vim
# Laptop
sudo dnf install acpi powertop tlp
# Desktop
sudo dnf install \
@rynffoll
rynffoll / firewalld-activate-vpn-pptp.sh
Created August 10, 2017 18:08
Activate VPN (PPTP) in firewalld
#!/bin/bash
# Activate VPN (PPTP) in firewalld
firewall-cmd --permanent --direct --add-rule ipv4 filter INPUT 0 -p gre -j ACCEPT # ipv4
firewall-cmd --permanent --direct --add-rule ipv6 filter INPUT 0 -p gre -j ACCEPT # ipv6
firewall-cmd --reload
@rynffoll
rynffoll / vimium.md
Last active January 8, 2022 21:40
vimium config

Vimium

map  , showHelp
map  о scrollDown
map  л scrollUp
map  р scrollLeft
map  д scrollRight
map  пп scrollToTop
map  П scrollToBottom
map  яР scrollToLeft
@rynffoll
rynffoll / cvim.js
Last active October 20, 2016 17:43
cVim Config
let barposition = "bottom"
let hintcharacters = "1234567890"
" Russian layout
let langmap = "Ё|АFБ<ВDГUДLЕTЖ:ЗPИBЙQКRЛKМVНYОJПGРHСCТNУEФAХ{ЦWЧXШIЩOЪ}ЫSЬMЭ\"Ю>ЯZаfб\\,вdгuдlеtж\\;зpиbйqкrлkмvнyоjпgрhсcтnуeфaх[цwчxшiщoъ]ыsьmэ'ю.яzё\\№#"
" disable <C-l> for using default behaviour
iunmap <C-l>
@rynffoll
rynffoll / surfingkeys.js
Last active December 1, 2016 13:27
Surfingkeys Config
// mapping like vimum
map('u', 'e');
mapkey('p', "Open the clipboard's URL in the current tab", function() {
Front.getContentFromClipboard(function(response) {
window.location.href = response.data;
});
});
map('P', 'cc');
map('gi', 'i');
map('F', 'af');
@rynffoll
rynffoll / .i3_config
Last active November 26, 2015 09:13
i3wm + i3blocks
## vars
set $mod Mod4
set $meta Mod1
set $run i3-dmenu-desktop
#set $term i3-sensible-terminal
set $term xfce4-terminal
## colors
# class border backgr. text indicator
client.focused #4c7899 #285577 #ffffff #2e9ef4
;;; ELPA
(require 'package)
(package-initialize)
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "http://marmalade-repo.org/packages/")
("melpa" . "http://melpa.org/packages/")))