把 Caps Lock 變成智慧的 Control 以及 Escape :
- 單獨輕按一下就是 Escape 。
- 若按下時同時按著其他鍵,就會是 Control 。
這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)
- Send Escape if you tap Caps Lock alone.
CREATE TABLE books ( | |
isbn char(14) NOT NULL, | |
title varchar(255), | |
author varchar(255), | |
price decimal(5,2) | |
); | |
INSERT INTO books (isbn, title, author, price) VALUES | |
('978-1503261969', 'Emma', 'Jayne Austen', 9.44), | |
('978-1514274873', 'Journal of a Soldier', NULL, 5.49), |
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
) | |
var path = "/Users/novalagung/Documents/temp/test.txt" |
With argument | |
"C:\Program Files\Git\git-bash.exe" "--cd=%1" | |
Direct | |
"C:\Program Files\Git\git-bash.exe" "--cd="C:\YOUR\FOLDER\" |
package controllers | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"mime/multipart" | |
"net/http" | |
"os" | |
"path/filepath" |
package main | |
/** | |
* @website http://albulescu.ro | |
* @author Cosmin Albulescu <cosmin@albulescu.ro> | |
*/ | |
import ( | |
"bytes" | |
"fmt" |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Name of the struct tag used in examples | |
const tagName = "validate" |
# nginx reverse proxy configuration for hosting two websites on one server | |
# File has to be saved in /etc/nginx/sites-available/website | |
# Then link it and store that in ../sites-enabled | |
# Also this configuration can be used to enable https on a website, Remove the third server {} block. | |
server { | |
# Redirect from http to https | |
listen 80; | |
listen [::]:80 default_server; | |
return 301 https://$host$request_uri; |
[Unit] | |
Description=ServiceName | |
Documentation=https://example.com/doc.txt | |
After=network-online.target | |
Wants=network-online.target systemd-networkd-wait-online.service | |
[Service] | |
Restart=on-failure | |
PermissionsStartOnly=true | |
User=programusername |