Skip to content

Instantly share code, notes, and snippets.

View mkocikowski's full-sized avatar

Mik Kocikowski mkocikowski

View GitHub Profile
@mkocikowski
mkocikowski / .vimrc
Last active April 18, 2017 21:54
.vimrc
syntax on
filetype indent plugin on
map <C-\> {gq}
execute pathogen#infect()
" yaml
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab
" always display status line
@mkocikowski
mkocikowski / gist:aeca878d58d313e902bb
Last active January 22, 2024 05:35
Setting up Redis to run as a daemon under systemd

This can be used to daemonize anything that would normally run in the foreground; I picked Redis. Put this in /etc/systemd/system/redis.service:

[Unit]
Description=Redis
After=syslog.target

[Service]
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
RestartSec=5s