Skip to content

Instantly share code, notes, and snippets.

@pik4ez
pik4ez / gist:6914108
Last active August 31, 2023 21:34
Vimium settings: remap some defaults, add cyrillic support. Yammi! Cyrillic support for vimium. Vimium cyrillic. Buy online.
" remap (en)
map f scrollFullPageDown
map b scrollFullPageUp
map a LinkHints.activateMode
map A LinkHints.activateModeToOpenInNewTab
map p map з performBackwardsFind
" map cyrillic
map о scrollDown
map л scrollUp
@pik4ez
pik4ez / nginx.conf
Created October 28, 2013 17:21
MODx Revo 2.2 nginx config.
server {
server_name modx.local;
charset utf-8;
error_log /var/log/nginx/modx.error.log;
access_log /var/log/nginx/modx.access.log;
root /var/www/modx;
client_max_body_size 30M;
index index.php;
location / {
@pik4ez
pik4ez / dunstrc
Created June 2, 2014 06:22
Dunst config
[global]
font = Monospace 10
# allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough<s/>
# <u>underline</u>
#
# for a complete reference see http://developer.gnome.org/pango/stable/PangoMarkupFormat.html
#!/bin/bash
function usage {
echo "Replaces branch with tag in local and remote repos."
echo
echo "Usage:"
echo " $0 <remote> <branch>"
}
if [ -z "$1" ]; then
settings {
logfile = "/home/tt4/work/lsyncd/log/lsyncd.log",
statusFile = "/home/tt4/work/lsyncd/log/lsyncd-status.log",
statusInterval = 20
}
sync {
default.rsyncssh,
source = "/home/tt4/mnt/ji/",
host = "root@ngs.ru.ji.d",
@pik4ez
pik4ez / vkalbu_starter
Last active September 1, 2015 09:18
Starter for vkalbu+dgrab. Processes albums list from file, grabs album contents using dgrab, uploads audio album to vk.com using vkalbu.
#!/bin/sh
albums_file=/path/to/albums_file
todo_file=/path/to/tmp/vkalbu_todo.json
# -u 10 and 10< in done section is used
# to prevent reading from stding inside
# vkalbu python script (captcha request)
# @see http://stackoverflow.com/questions/1521462/looping-through-the-content-of-a-file-in-bash
while read -u 10 album; do
@pik4ez
pik4ez / .slate.js
Last active August 28, 2017 15:40
Slate.js window manager configuration
// Functions
// String.startsWith
if (typeof String.prototype.startsWith != 'function') {
String.prototype.startsWith = function (str){
return this.slice(0, str.length) == str;
};
}
@pik4ez
pik4ez / jonas.bf
Created November 11, 2017 11:52
Brainfuck program to draw Jonas portrait
++[>++++[>++++>++++++++>++++>+++++>+++++>+++++>+++++>+>+++++>++++++>++++++<<<<<<<<<<<-][<]<-]>>>>+++>--->-->>++>++>++++>-->-<<<<<<<<<<>>>>>>>>>>...<<<<...>>........................>...............................<...>................<<<<<<<<<.>>>>>>>>>.....<.............<<..>>>>.<<<<<...>>>>>.....<<<<.........>.>>>.<<<<<.>>>>>.<<<<...>>........................>..........<<<<<<<<<..>>>>>>>>>...................<..>.............<<<<<<<<<........>>>>>>>>>...<............<<..>>>>.<<<<<...>>>>>......<<<<........>.>>>.<<<<<.>>>>>.<<<<...>>.........................>...<<<<<<<<<..........>>>>>>>>>.....<.>....<..>......<.>...<.>....<.>..<<<<<<<<<...........>>>>>>>>>..<............<<..>>>>.<<<<<....>>>>>.....<<<<........>.<<..>>>>>.<<<<...>>.......................>...<<<<<<<<<............>>>>>>>>>........<.>.<....>.<....<<...>>.<<.>>...>...<<<<<<<<<...........>>>>>>>>>..<............<<..>>>>.<<<<<....>>>>>.....<<<<........>.>>>.<<<<<.>>>>>..<<<<..>>......................>...<<<<<<<<<........>>>>>>>>>...........<.<<..>>>
@pik4ez
pik4ez / brooks.ws
Last active August 16, 2018 17:10
brooks_ascii.ws
@pik4ez
pik4ez / hopper.ws
Created August 16, 2018 17:06
hopper_ascii.ws