emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
- Undo -
C-/ - Redo -
C-? - Change case: 1. Camel Case :
M-c2. Upper Case :M-u
- Lower Case :
M-l
| zmq RCON command from 41624a286f2011e5a57600163e260a14: listcmds | |
| listcmds | |
| touchFile | |
| fdir | |
| dir | |
| path | |
| map | |
| startRandomMap | |
| vstr | |
| set |
emacs --daemon to run in the background.
emacsclient.emacs24 <filename/dirname> to open in terminal
NOTE: "M-m and SPC can be used interchangeably".
C-/C-?M-c
2. Upper Case : M-uM-lThis is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q - quitSPC w / - split window verticallySPC w - - split window horizontallySPC 1 - switch to window 1SPC 2 - switch to window 2SPC w c - delete current window| cat > /etc/opkg/intel-iotdk.conf <<EOF | |
| src intel-iotdk http://iotdk.intel.com/repos/1.1/intelgalactic | |
| src intel-all http://iotdk.intel.com/repos/1.1/iotdk/all | |
| src intel-quark http://iotdk.intel.com/repos/1.1/iotdk/quark | |
| src intel-i586 http://iotdk.intel.com/repos/1.1/iotdk/i586 | |
| src intel-x86 http://iotdk.intel.com/repos/1.1/iotdk/x86 | |
| EOF | |
| opkg update | |
| opkg install liblzo2-dev |
| function trim(s) | |
| return (string.gsub(s, "^%s*(.-)%s*$", "%1")) | |
| end |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| import SimpleHTTPServer | |
| import SocketServer | |
| class FakeRedirect(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
| def do_GET(self): | |
| print self.path | |
| self.send_response(301) | |
| new_path = '%s%s'%('http://localhost:8081', self.path) | |
| self.send_header('Location', new_path) | |
| self.end_headers() |
| # get total requests by status code | |
| awk '{print $9}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | |
| # get top requesters by IP | |
| awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | awk -v OFS='\t' '{"host " $2 | getline ip; print $0, ip}' | |
| # get top requesters by user agent | |
| awk -F'"' '{print $6}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | |
| # get top requests by URL |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.