See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c | |
| index 16c3046..ca912ce 100644 | |
| --- a/drivers/input/mouse/synaptics.c | |
| +++ b/drivers/input/mouse/synaptics.c | |
| @@ -173,6 +173,7 @@ static const char * const smbus_pnp_ids[] = { | |
| "LEN0046", /* X250 */ | |
| "LEN004a", /* W541 */ | |
| "LEN200f", /* T450s */ | |
| + "LEN0073", /* X1 Carbon 5 (Elantech) */ | |
| NULL |
git archive --format=tar.gz -o /tmp/my-repo.tar.gz --prefix=my-repo/ master
More detailed version: https://til.simonwillison.net/git/git-archive
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| import sys | |
| ''' | |
| Clone of WWStar, an ancient Classical Chinese translator. | |
| usage: python3 WWStarClone.py [dir] |
| # Rime dictionary | |
| # encoding: utf-8 | |
| --- | |
| name: greek | |
| version: "0.1" | |
| sort: original | |
| ... | |
| # 小写希腊字母 |
Create a template service file at /etc/systemd/system/[email protected]. The template parameter will correspond to the name
of target host:
[Unit]
Description=Setup a secure tunnel to %I
After=network.target| require "nokogiri" | |
| require "open-uri" | |
| url = "https://github.com/#{params['username']}" | |
| document = Nokogiri::HTML(open(url)) | |
| contrib_boxes = document.css('svg.js-calendar-graph-svg')[0] | |
| contrib_boxes['xmlns']="http://www.w3.org/2000/svg" | |
| width = (params['width']||54*13-2).to_i | |
| height = (params['height']||89).to_i | |
| contrib_boxes.css('text').remove | |
| contrib_boxes['width']=(width+11).to_s+'px' |
| #!/usr/bin/env python3 | |
| import sys | |
| import re | |
| import shutil | |
| import argparse | |
| import binascii | |
| # | |
| # Author: Daxda |
| #!/usr/bin/env python3 | |
| import asyncio | |
| import multiprocessing | |
| import os | |
| import ssl | |
| from time import sleep | |
| port = 9000 |