Skip to content

Instantly share code, notes, and snippets.

View ShawnHuang's full-sized avatar
😅
Happy investigating and coding

Shawn ShawnHuang

😅
Happy investigating and coding
View GitHub Profile
@ShawnHuang
ShawnHuang / install_githug
Created May 3, 2013 14:30
upgrade gem from 1.3.5 to new version
sudo gem install rubygems-update
sudo /var/lib/gems/1.8/bin/update_rubygems
sudo apt-get install libopenssl-ruby
sudo gem install githug
@ShawnHuang
ShawnHuang / gist:5647710
Last active May 3, 2022 11:15
101 Great Computer Programming Quotes

#Computers

“Computers are useless. They can only give you answers.” (Pablo Picasso)

“Computers are like bikinis. They save people a lot of guesswork.” (Sam Ewing)

“They have computers, and they may have other weapons of mass destruction.” (Janet Reno)

@ShawnHuang
ShawnHuang / google.sh
Last active December 21, 2015 06:39 — forked from deanet/google.sh
upload to google drive
if [ ! -f $1 ]
then
echo "please provide a file in arg"
exit -1
fi
#assign folder to upload
if [ -z "$2" ]
then
folderid="root"
@ShawnHuang
ShawnHuang / gist:6651424
Created September 21, 2013 15:04
vim 須更新
https://github.com/rstacruz/sparkup
unite>neocompcache bug
@ShawnHuang
ShawnHuang / gae
Created April 17, 2014 08:17
facebook with GAE
測試
google_appengine/dev_appserver.py --php_executable_path=./php-5.4.25/installdir/bin/php-cgi guestbook
上傳
./google_appengine/appcfg.py update guestbook
@ShawnHuang
ShawnHuang / heroku.php
Created April 18, 2014 06:59
heroku with php
1. $wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
2. $ heroku login
3. $ cd ~/yourapp
4. $ git init
5. $ git add .
@ShawnHuang
ShawnHuang / mac
Created May 16, 2014 09:21
mac install
0. office
1. xcode
2. homebrew
@ShawnHuang
ShawnHuang / Struck@OpenCV.md
Last active October 19, 2015 08:04
Struck@OpenCV
@ShawnHuang
ShawnHuang / linux project.md
Last active October 19, 2015 08:03
linux project

Project 1

Total Score: 110 Points

#I. Introduction: The purpose of this project is to let you configure and modify the kernel by yourself. In this project you will learn: Some data structures that Linux kernel uses to maintain virtual addresses and physical addresses of a process. Some functions and macros related to virtual addresses, physical addresses, and processes.

@ShawnHuang
ShawnHuang / Linux project II.md
Last active October 19, 2015 08:01
Linux project II
  • Score: 115 points.
  • Description:
    • Write a CPU-bound program cpu_bound.c as follows:

             #include <stdio.h>
             main()
             {
      

int a;