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
| Privacy Policy for Zen Feed for X | |
| Data Collection & Usage: Zen Feed for X does not collect, store, or transmit any personal data, browsing history, or user information to any external servers. | |
| Local Storage: The extension utilizes local browser storage (chrome.storage.local) strictly to maintain a running counter of blocked advertisements. This data remains entirely on the user's local machine and is never shared with the developer or any third parties. | |
| Changes: Any updates to this policy will be reflected in future extension updates. |
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
| // ==UserScript== | |
| // @name Timeline chart on Ubuntu Kernel SRU tracking bug | |
| // @namespace http://anthonywong.net/ | |
| // @version 3.0 | |
| // @description Display a timeline chart on Ubuntu Kernel SRU tracking bug | |
| // @match https://bugs.launchpad.net/kernel-sru-workflow/+bug/* | |
| // @grant none | |
| // @require https://cdn.plot.ly/plotly-2.20.0.min.js | |
| // @license GPLv2 | |
| // ==/UserScript== |
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
| /** | |
| * Get (delayed) last price from AASTOCKS Whatshot table. | |
| * Usage in Google Sheets: =AASTOCKS_PRICE("55288") | |
| * | |
| * @param {string|number} symbol HK code (e.g., 5, 00005, 700, 55288) | |
| * @return {number} Last price | |
| * @customfunction | |
| */ | |
| function AASTOCKS_PRICE(symbol) { | |
| // symbol='55288'; |
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
| # Finds the merge commits that lie on the path between a specific commit to the head. Useful for knowing when a commit has been merged by maintainer: | |
| git log --oneline --graph --merges --ancestry-path <commit-hash>.. |
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
| #!/bin/bash | |
| [ $UID != 0 ] && echo "Must run as root" && exit | |
| i=1 | |
| RUNS=3 | |
| if [ -n "$1" ]; then | |
| RUNS=$1 | |
| fi | |
| while [ $i -le $RUNS ]; do | |
| d=`date +%Y%m%d-%H%M` |
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
| n=0 | |
| PATTERN=ti-linux-4.14.y | |
| while read line; do | |
| hash=`echo "$line" | cut -f1 -d' '` | |
| nn=`git show "$hash" | head -2 | tail -1 | awk '{ print $2".."$3 }' | xargs git log --pretty=oneline | wc -l` | |
| echo "$nn": "$line" | |
| n=$(($n + $nn)) | |
| done <<< "$(git log --grep 'Merge branch' --abbrev-commit --pretty=oneline | grep $PATTERN)" | |
| echo "Total number of commits:" $n |
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
| sudo strace -e trace=network -p `pgrep -x sogou-qimpanel` -s 100000 -f -ff -o sogou |
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
| obj-m := oops.o | |
| KDIR := /lib/modules/$(shell uname -r)/build | |
| PWD := $(shell pwd) | |
| SYM=$(PWD) | |
| all: | |
| $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules |
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
| " Vim | |
| " | |
| " To use it, copy it to | |
| " for Unix and OS/2: ~/.vimrc | |
| " for Amiga: s:.vimrc | |
| " for MS-DOS and Win32: $VIM\_vimrc | |
| "set fe=taiwan | |
| "set gfs=-adobe-courier-bold-r-normal--14-140-75-75-m-90-iso8859-1,-eten-fixed-medium-r-normal--16-150-75-75-c-160-big5-0 |
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
| Adélie Land | |
| Åland | |
| Anguilla | |
| Antigua and Barbuda | |
| Arab Republic of Egypt | |
| Argentine Republic | |
| Aruba | |
| Australian Antarctic Territory | |
| Barbados | |
| Belize |
NewerOlder