As configured in my dotfiles.
start new:
tmux
start new with session name:
[Unit] | |
Description=Goaccess Web log report. | |
After=network.target | |
[Service] | |
Type=simple | |
User=root | |
Group=root | |
Restart=always | |
ExecStart=/usr/local/bin/goaccess -a -g -f /var/log/nginx/access.log -o /srv/www/goaccess/index.html --real-time-html --ws-url <your url> |
KEY=XXXXXXXXXXXX | |
HOST="https://metrics.crisidev.org" | |
mkdir -p dashboards && for dash in $(curl -k -H "Authorization: Bearer $KEY" $HOST/api/search\?query\=\& |tr ']' '\n' |cut -d "," -f 5 |grep slug |cut -d\" -f 4); do | |
curl -k -H "Authorization: Bearer $KEY" $HOST/api/dashboards/db/$dash > dashboards/$dash.json | |
done |
# change prefix to Ctrl+a | |
set-option -g prefix C-a | |
unbind-key C-b | |
bind-key C-a send-prefix | |
# enable mouse | |
set -g mouse on | |
# set history buffer | |
set -g history-limit 10000 |
" set nocompatible | |
set nocompatible | |
" enable syntax highligting | |
syntax on | |
" suppress welcome screen | |
set shortmess+=I | |
" some useful options |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# Variables | |
setenv FOO bar | |
# Settings | |
startup_message off | |
shell zsh | |
vbell off | |
defutf8 on | |
defscrollback 10000 | |
autodetach on |
[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 |
[Unit] | |
Description=MongoDB Database Server | |
After=network.target | |
[Service] | |
User=mongodb | |
Group=mongodb | |
ExecStart=/usr/bin/mongod --config /etc/mongod.conf | |
PIDFile=/var/run/mongodb/mongod.pid |
# 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 |
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |