Just a quick and dirty memory aid for common things.
| Action | Keys |
|---|---|
| Undo | u or :u |
| Undo all changes to line | U |
| Redo undone change | Ctrl-R or :red[o] |
| Repeat last command | . |
| # --------- SCRIPT BEGIN ---------- | |
| # By Bret Stateham | |
| # This script assumes | |
| # - You are running on a linux machine | |
| # - You have the can-utils installed and working. See: | |
| # - https://github.com/linux-can/can-utils | |
| # - https://www.kernel.org/doc/Documentation/networking/can.txt | |
| # - You have a can device attached and configured as can0 (you can change the targetbus variable to match if otherwise) | |
| # - The can device is attached to your running target vehicle |
| upstream gitlab { | |
| server unix:/home/git/gitlab/tmp/sockets/gitlab.socket; | |
| } | |
| # This is a normal HTTP host which redirects all traffic to the HTTPS host. | |
| # Replace git.example.com with your FQDN. | |
| server { | |
| listen *:80; | |
| server_name gitlab.example.com gitlab; | |
| server_tokens off; |
| #!/usr/bin/python | |
| import sys | |
| import os, shutil | |
| import subprocess | |
| import os.path | |
| from datetime import datetime | |
| ######################## Functions ######################### |
| server { | |
| location /phpmyadmin { | |
| root /usr/share/; | |
| index index.php index.html index.htm; | |
| location ~ ^/phpmyadmin/(.+\.php)$ { | |
| try_files $uri =404; | |
| root /usr/share/; | |
| fastcgi_pass 127.0.0.1:9000; | |
| fastcgi_index index.php; | |
| fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |