Skip to content

Instantly share code, notes, and snippets.

View sruan2's full-sized avatar
🏠
Working from home

Sherry sruan2

🏠
Working from home
View GitHub Profile
@BrunoGrandePhD
BrunoGrandePhD / remove-big-file.sh
Created December 15, 2016 01:16
Remove a large committed file from your Git repository.
# The commands below are a guide to remove a large file that has been
# accidentally committed to a Git repository's history. If the file is
# larger than 100 MB, GitHub will prevent you from pushing your latest
# commits. The annotated steps below should help you remove the large
# file from your commit history, even if you've made new commit since.
# Some Git users advise against rebasing. You can safely use it here
# because you haven't published your changes yet.
# So, you first need to rebase your current branch onto the point that
@zyshin
zyshin / font.css
Created February 13, 2016 16:29
今日头条和36Kr的中文排版字体
* {
-webkit-font-smoothing: antialiased;
font-family: 'Lantinghei SC', 'Open Sans', Arial, 'Hiragino Sans GB', 'Microsoft YaHei', 微软雅黑, STHeiti, 'WenQuanYi Micro Hei', SimSun, sans-serif;
/*font-family: helvetica, Arial, 'Hiragino Sans GB', 'Microsoft YaHei', simsun;*/
font-size: 18px;
line-height: 1.5;
word-wrap: break-word;
}
@zyshin
zyshin / install-lxml.sh
Last active February 21, 2018 22:57
Install lxml on Ubuntu Server 14.04.03 (64bit)
sudo apt-get install libxml2-dev libxslt1-dev python-dev zlib1g-dev
pip install lxml
@hacksalot
hacksalot / gist:72517b9b1c145116e89e
Created March 17, 2015 02:01
Delete GitHub wiki revisions
# Delete prior revisions from a GitHub wiki so that only the most-recent
# version of the content is available.
# Clone the wiki.
git clone https://github.com/[user]/[repo].wiki.git
# Remove the .git folder.
rm -rf .git
# Reconstruct the local repo with only latest content