- only relevant files/changes are staged
- imperative tone is used without past tense
- type is referenced by the first word:
--
feat: a new feature --fix: a bug fix --docs: changes to documentation --style: formatting, missing semi colons, etc; no code change --refactor: refactoring production code --test: adding tests, refactoring test; no production code change --chore: updating build tasks, package manager configs, etc; no production code change
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set theDate to current date | |
| => date object | |
| set theDate to current date as string | |
| => Thursday, December 03, 2015 at 09:57:25 | |
| set theDate to current date | |
| set y to rich text -4 thru -1 of ("0000" & (year of theDate)) | |
| set m to rich text -2 thru -1 of ("00" & ((month of theDate) as integer)) | |
| set t to rich text -2 thru -1 of ("00" & (day of theDate)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /etc/nginx/nginx.conf | |
| gzip on; | |
| gzip_vary on; | |
| gzip_disable "MSIE [1-6]\\.(?!.*SV1)"; | |
| gzip_http_version 1.1; | |
| gzip_types text/plain text/html text/css application/javascript text/javascript application/x-javascript text/xml application/xml application/xml+rss; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* To target IE 6 and 7 */ | |
| @media screen\9 { | |
| body { background: red; } | |
| } | |
| /* To target IE 6, 7 and 8 */ | |
| @media \0screen\,screen\9 { | |
| body { background: green; } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # dump | |
| mysqldump -h mysql.server.org -u MyUser -pMyPass MyDB > MyDump.sql | |
| # restore | |
| mysql -h mysql.server.org -u MyUser -pMyPass MyDB < MyDump.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Options +MultiViews | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^([^\.]+)$ $1.php [NC,L] | |
| RewriteRule ^([^\.]+)$ $1.html [NC,L] |
Basic module usage — Psycopg 2.6.2.dev0 documentation
>>> import psycopg2
# Connect to an existing database
>>> conn = psycopg2.connect("dbname=test user=postgres")
# Open a cursor to perform database operations
>>> cur = conn.cursor()
Creating a new repository:
mkdir /path/to/new/dir
svnadmin create /path/to/new/dir
Starting svnserve:
svnserve --daemon --root /path/to/new/repository
Importing project into svn repo:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://www.virtualmin.com/documentation/developer/cli/create_user | |
| virtualmin create-user --domain domain.com --user mail --random-pass --quota "UNLIMITED" --real "Name" --extra info@domain.com --extra accounting@domain.com --extra it@domain.com --extra jobs@domain.com --extra support@domain.com --extra team@domain.com | |
| virtualmin modify-user --domain hendersontechnologies.com --user mail --add-forward someone@gmail.com | |
| # https://www.virtualmin.com/documentation/developer/cli/create_domain | |
| virtualmin create-domain --domain domain.com --pass password-for-unix-user |