Skip to content

Instantly share code, notes, and snippets.

@virtualdreams
virtualdreams / uwsgi-emperor.service
Created August 20, 2016 10:21
systemd service for uwsgi emperor
[Unit]
Description=uWSGI Emperor
After=syslog.target
[Service]
ExecStart=/usr/bin/uwsgi --json /etc/uwsgi/emperor.json
# Requires systemd version 211 or newer
RuntimeDirectory=uwsgi
Restart=always
KillSignal=SIGQUIT
@virtualdreams
virtualdreams / mono-server4.service
Created May 5, 2015 06:02
systemd mono-server4 unit script
[Unit]
Description=FastCGI mono server 4
After=network.target
[Service]
Environment=MONO_IOMAP=all
EnvironmentFile=
Type=simple
ExecStart=/usr/bin/fastcgi-mono-server4 /applications=*:/:/srv/www/mvc/ /socket=tcp:127.0.0.1:9000
User=www-data
@virtualdreams
virtualdreams / .zshrc
Last active August 9, 2018 18:29
Simple zsh configuration
# init
autoload -U colors && colors
alias ls='ls --color=auto'
alias rm='rm -i'
setopt nobeep # avoid beep
setopt noglobdots # * shouldn't match dotfiles
setopt no_auto_remove_slash
setopt hash_list_all
# Variables
setenv FOO bar
# Settings
startup_message off
shell zsh
vbell off
defutf8 on
defscrollback 10000
autodetach on
@virtualdreams
virtualdreams / .vimrc
Last active October 7, 2021 14:27
Standard .vimrc
" set nocompatible
set nocompatible
" enable syntax highligting
syntax on
" suppress welcome screen
set shortmess+=I
" some useful options