Skip to content

Instantly share code, notes, and snippets.

183.60.243.233 - 199.91.73.17 - - [17/Jun/2014:22:36:43 +0800] "GET / HTTP/1.1" 200 13888 "-" "-""-"
183.60.243.233, 10.1.1.1 - 199.91.73.17 - - [17/Jun/2014:22:37:16 +0800] "GET /robots.txt HTTP/1.1" 200 425 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SV1; QQDownload 732; .NET4.0C; .NET4.0E; 360SE)""-"
183.60.243.233, 10.1.1.1 - 199.91.73.17 - - [17/Jun/2014:22:37:44 +0800] "GET / HTTP/1.1" 200 13888 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SV1; QQDownload 732; .NET4.0C; .NET4.0E; 360SE)""-"
183.60.243.233, 10.1.1.1 - 199.91.73.17 - - [17/Jun/2014:22:38:15 +0800] "GET / HTTP/1.1" 200 13888 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SV1; QQDownload 732; .NET4.0C; .NET4.0E; 360SE)""-"
183.60.243.233, 10.1.1.1 - 199.91.73.17 - - [17/Jun/2014:22:38:46 +0800] "GET /login HTTP/1.1" 200 9953 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; SV1; QQDownload 732; .NET4.0C; .NET4.0E; 360SE)""-"
183.60.243.233, 10.1.1.1 -
@missdeer
missdeer / boost.sh
Created January 26, 2014 04:23 — forked from pa-zz-yco/boost.sh
#===============================================================================
# Filename: boost.sh
# Author: Pete Goodliffe
# Copyright: (c) Copyright 2009 Pete Goodliffe
# Licence: Please feel free to use this, with attribution
# Modified version
#===============================================================================
#
# Builds a Boost framework for the iPhone.
# Creates a set of universal libraries that can be used on an iPhone and in the
@missdeer
missdeer / isPrime.js
Created November 11, 2013 02:39
isPrime.js, regexp magic
function isPrime(i) {
var ones = "";
while(--i >= 0) ones += "1";
return !/^1?$|^(11+?)\1+$/.test(ones);
}
@missdeer
missdeer / cn_nytimes_to_instapaper.sh
Created October 17, 2013 03:26
extract hyper links from http://cn.nytimes.com/ homepage and save to Instapaper
curl --socks5 127.0.0.1:7070 http://cn.nytimes.com/ 2>/dev/null | grep -o '<a href="[^"]\+" title="[^"]\+"' | sed -e 's/<a href="//g' | sed -e 's/" title="/ /g' | sed -e 's/"//g' | while read url title
do if [[ ${url:0:5} != "http:" ]]
then
url="http://cn.nytimes.com$url"
fi
echo $url | mail -s "$title" readlater.xxxx@instapaper.com
done
@missdeer
missdeer / update-chrome.bat
Created August 21, 2013 01:36
save the code as update-chrome.bat, place a wget.exe with update-chrome.bat, for China Mainland people, please set a hosts item for commondatastorage.googleapis.com.
del LAST_CHANGE
wget --no-check-certificate https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/LAST_CHANGE
for /f %%i in (LAST_CHANGE) do (
set version=%%i
)
echo %version%
del chrome-win32.zip
wget --no-check-certificate https://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/%version%/chrome-win32.zip
"D:\Program Files\7-Zip\7z.exe" x -y %~dp0chrome-win32.zip
del chrome-win32.zip

Install Git 1.8.1.2 from source on CentOS 6.3

These are the Terminal commands I recently used (Feb 2013) to install Git 1.8.1.2 from source on CentOS 6.3. I ran this in a VirtualBox VM after a fresh install from the ISO.

You mileage will vary as the yum packages are updated over time. The yum install line below should include all the dependencies, at least it did for me. Eventually yum install git will include 1.8.x but until then I hope this helps.

cd ~/Downloads
su
yum -y install zlib-devel openssl-devel cpio expat-devel gettext-devel curl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker