- 抓取页面内容到一个文件中
curl -o home.html http://jingwentian.com
2.用-O(大写的),后面的url要具体到某个文件,不然抓不下来。我们还可以用正则来抓取东西
curl -O http://jingwentian.com/logo.png
curl -O http://jingwentian.com/uploads/2010/[0-9][0-9]/demo.jpg
curl -o home.html http://jingwentian.com
2.用-O(大写的),后面的url要具体到某个文件,不然抓不下来。我们还可以用正则来抓取东西
curl -O http://jingwentian.com/logo.png
curl -O http://jingwentian.com/uploads/2010/[0-9][0-9]/demo.jpg
如果信息显示过多的话,可以使用git log --pretty=oneline
dfffd94bebdc57c208b5a5c4594b4434bc789226 update a.txt
9bdf0e56568f64ae6c666cd22f32ed1ca0951383 update a.txt
2a474cb5f533fbf3bc5fd0b2fe3c856a37a9dd1e add a.txt
如果想回退到上个版本,可以使用git reset --hard HEAD^,如果想回退前2个版本git reset --hard HEAD^^,多个版本添加多个^。如果回退前100个版本,可以使用git reset --hard HEAD~100
Ref: https://gist.github.com/vertexclique/9839383
Please use built-in Terminal.app (of Mac OS X) to type and rune the command, do not use another tool (like iTerm2).
Common step after enter run the patch command:
現在的 Keyboard 通常會附多媒體鍵,不過預設值打開可能就是討人厭音質又差的 Windows Media Player。 如果我們希望這些鍵可以按下去是開啟我們想要的軟體,此時通常要裝 Driver,問題是有時候會找不到 Driver,那也沒關係,直接改機碼就可以囉,以下是說明:
regedit
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\16 就是 Media 切換功能| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |
For pupil: all binary can be downloaded http://pan.baidu.com/s/1ntCChyp
After overwriting, maybe need to run chmod +x /path/to/sublime_text. For linux default installation, need to add sudo.
For programmer:
| VERSION | PLATFORM | OFFSET | ORIGINAL | CRACKED |
|---|
| ################################################ | |
| # Added by OYXJ on 2016-01-01 | |
| # | |
| # Configure git to track only one file extension | |
| # http://stackoverflow.com/questions/12799855/configure-git-to-track-only-one-file-extension | |
| # | |
| # Using .gitignore to ignore everything but specific directories | |
| # http://stackoverflow.com/questions/5241644/using-gitignore-to-ignore-everything-but-specific-directories | |
| # | |
| # Git ignore file for Xcode projects (重要) |
| #!/bin/bash | |
| # | |
| # Open new iTerm window from the command line | |
| # | |
| # Usage: | |
| # iterm Opens the current directory in a new iTerm window | |
| # iterm [PATH] Open PATH in a new iTerm window | |
| # iterm [CMD] Open a new iTerm window and execute CMD | |
| # iterm [PATH] [CMD] ... You can prob'ly guess | |
| # |
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |