Skip to content

Instantly share code, notes, and snippets.

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

snowdream snowdream

🏠
Working from home
View GitHub Profile
@snowdream
snowdream / rss.opml
Created April 8, 2014 02:07
rss.opml
<?xml version="1.0" encoding="UTF-8" ?>
<opml version="1.0">
<head>
<title>杨辉 subscriptions in Digg Reader</title>
</head>
<body>
<outline title="生活资讯" text="生活资讯">
<outline text="海淘" title="海淘" type="rss" xmlUrl="http://www.newsmth.net/nForum/rss/board-HaiTao" htmlUrl="http://www.newsmth.net/nForum/board/HaiTao" />
</outline>
<outline title="系统运维" text="系统运维">
Host github.com
User xxxx@gmail.com
Port 443
Hostname ssh.github.com
identityfile ~/.ssh/id_rsa
@snowdream
snowdream / using-ssh-over-the-https-port
Created August 8, 2014 17:06
Enabling SSH connections over HTTPS
If you are able to SSH into `git@ssh.github.com` over port 443, you can override your SSH settings to force any connection to github.com to run though that server and port.
To set this in your ssh config, edit the file at `~/.ssh/config`, and add this section:
Host github.com
Hostname ssh.github.com
Port 443
You can test that this works by connecting once more to github.com:
@snowdream
snowdream / snowdream.keystore
Created November 22, 2014 04:33
snowdream.keystore
feed feed 0000 0002 0000 0001 0000 0001
0009 736e 6f77 6472 6561 6d00 0001 49d5
c4c6 8100 0005 0130 8204 fd30 0e06 0a2b
0601 0401 2a02 1101 0105 0004 8204 e9c3
8d33 d8f9 a90a 5a58 2310 1f7a afd2 81f5
b5b0 ae94 e82b 7242 a9b3 5226 5e20 4910
d671 9ae8 4e32 0acf a9a7 cfa7 ba8b 5188
d0c1 fbdc 8655 22d9 35bf 418e 5c26 8b7f
4223 ea31 32be eaf2 02fa b67c 9af7 5bb9
b15b 649f 244d 60de f7b1 0671 5ff1 8dba
@snowdream
snowdream / genymotionwithplay.txt
Created January 6, 2016 08:48 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
@snowdream
snowdream / gist:d6a31d4b40858ed47e79
Created January 13, 2016 07:06
dos2unix整个目录
find . -type f -exec dos2unix {} \;
@snowdream
snowdream / apt-fast for ubuntu
Last active June 18, 2016 03:06
apt-fast for ubuntu
https://github.com/ilikenwf/apt-fast
Ubuntu 14.04 and later versions
sudo add-apt-repository ppa:saiarcot895/myppa
sudo apt-get update
sudo apt-get -y install apt-fast
file:
========================
q close
r reload
S save
p presentation
view:
========================
@snowdream
snowdream / arc_setup.sh
Last active August 4, 2016 03:56 — forked from makinde/arc_setup.sh
Arc Setup (Ubuntu)
#!/bin/bash
if ! hash git &> /dev/null || ! hash php &> /dev/null; then
echo -e " *****\n ***** INSTALLING GIT AND PHP\n *****"
if hash apt-get &> /dev/null; then
sudo apt-get install git-core php-cli php-curl
elif hash port &> /dev/null; then
sudo port install php-curl
elif hash fink &> /dev/null; then
@snowdream
snowdream / gist:fca547c17fe483c44f0ec9b9f07adc87
Created November 5, 2016 07:24
mac电脑如何显示U盘里的隐藏文件
刚刚查到的正解:
第一步:打开[应用程序]-[终端]
第二步:在自动弹出来的一串字后面,输入如下命令:
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
第三步:按下「Return」键确认。
现在你将会在 Finder 窗口中看到那些隐藏的文件和文件夹了。
如果你想再次隐藏原本的隐藏文件和文件夹的话,将上述命令替换成