- 抓取页面内容到一个文件中
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
<video id="video" controls="" preload="none" poster="http://media.w3.org/2010/05/sintel/poster.png"> | |
<source id="mp4" src="http://media.w3.org/2010/05/sintel/trailer.mp4" type="video/mp4"> | |
<source id="webm" src="http://media.w3.org/2010/05/sintel/trailer.webm" type="video/webm"> | |
<source id="ogv" src="http://media.w3.org/2010/05/sintel/trailer.ogv" type="video/ogg"> | |
<p>Your user agent does not support the HTML5 Video element.</p> | |
</video> |
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 | |
# |
################################################ | |
# 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 | |
# |