As configured in my dotfiles.
start new:
tmux
start new with session name:
| 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 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| # 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 |
| /*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
| /* ========================================================================== | |
| HTML5 display definitions | |
| ========================================================================== */ | |
| /** | |
| * Correct `block` display not defined in IE 8/9. | |
| */ |
| [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> |
| [Unit] | |
| Description=dotnet <your service name> | |
| After=network.target | |
| [Service] | |
| Environment=ASPNETCORE_URLS=http://127.0.0.1:5000/ | |
| EnvironmentFile= | |
| ;Restart=always | |
| ;RestartSec=10 | |
| Type=simple |
| [Unit] | |
| Description=Gogs | |
| After=syslog.target | |
| After=network.target | |
| #After=mysqld.service | |
| #After=postgresql.service | |
| #After=memcached.service | |
| #After=redis.service | |
| [Service] |
| <?xml version="1.0" encoding="utf-8"?> | |
| <configuration> | |
| <packageRestore> | |
| <add key="enabled" value="True" /> | |
| <add key="automatic" value="True" /> | |
| </packageRestore> | |
| <config> | |
| <add key="https_proxy" value="http://127.0.0.1:3128/" /> | |
| <add key="http_proxy" value="http://127.0.0.1:3128/" /> | |
| <add key="globalPackagesFolder" value="e:\Entwicklung\.nuget" /> |
| [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 |