$ git rebase -i {{base_commit|--root}}
- edit all 'pick' to 'edit' then save
- do following for each commit:
$ git commit --amend --author="Author-Name <email@address.com>"
$ git rebase --continue
This file contains 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
# README | |
# 1. append following content to your ~/.bashrc file | |
# 2. apply your setup by enter shell command $ source ~./bashrc | |
### Git ### | |
git_icon() { | |
# NOTE: printing icon requires install font on http://fontawesome.io/ | |
# Choose one icon you like | |
#printf ' \uf126 ' # http://fontawesome.io/icon/code-fork/ | |
printf ' \uf09b ' # http://fontawesome.io/icon/github/ |
This file contains 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
// For clean UI to screenshot capture, hide UIs of Google Maps | |
if (!window.__derek_elsCSSDisplayValues) { | |
window.__derek_elsCSSDisplayValues = {}; // query -> displayValue | |
} | |
const queries = [ | |
'#featureListPanel', // left panel | |
'#mapsprosearch-field', // search bar | |
// buttons |
This file contains 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 | |
set -e | |
# NOTE to create labels for your repo | |
# to support types from commit message guide (feat, fix, docs, style, refactor, test, chore) | |
# by hitting GitHub API v3 | |
# | |
# https://developer.github.com/v3/issues/labels/#create-a-label | |
# https://gist.github.com/caspyin/2288960 |
bye bye testtest
This file contains 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/sh | |
# enable this if you want it fail early | |
# set -e | |
# pros: easy and cheap | |
# cons: you have to keep current working directory with unchanged branch (workaround: copy the repo) | |
gcurrentbranch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' |
This file contains 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
// modified ghParsePrSearch.js https://gist.github.com/liuderchi/a20952af0b26eca37ce9afab6875c365 | |
var comments = [ | |
...document.querySelectorAll('.notion-page-view-discussion')[0].firstElementChild.firstElementChild.children | |
].slice(0, -1); // remove empty one in the end | |
var res = comments | |
.map(div => { | |
const dateContent = div.children[1].children[0].children[1].textContent; | |
const dateString = dateContent.match(/(\d\d\/){2}\d{4}/i)?.[0] ? `@${dateContent.match(/(\d\d\/){2}\d{4}/i)?.[0]}` : '' |
This file contains 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
// Example Page: https://github.com/liuderchi/atom-i18n/pulls?q=is%3Apr+is%3Aclosed | |
var res = [ | |
...document.querySelectorAll("div.Box-row.js-navigation-item.js-issue-row") | |
] | |
.map(rowEl => { | |
const title = rowEl.querySelector( | |
"a.link-gray-dark.v-align-middle.no-underline.h4.js-navigation-open" | |
).textContent; | |
const num = rowEl |
This file contains 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
// trigger settings edit UI using `se` | |
// ref https://github.com/brookhong/surfingkeys#edit-your-own-settings | |
// unmap('gc', /github\.com/i ); | |
// unmap('gp', /github\.com/i ); | |
// https://github.com/brookhong/surfingkeys#properties-list | |
settings.blacklistPattern = /^https?:\/\/github\.com\/.?/; |
NewerOlder