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 / 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
#!/bin/sh
sudo /usr/share/ati/amd-uninstall.sh --force
cd /etc
sudo rm -rf ati
cd /usr/share
sudo rm -rf ati
@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;

@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 / Struck@OpenCV.md
Last active October 19, 2015 08:04
Struck@OpenCV
@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 / 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 / plantUML
Created December 23, 2015 03:39
qumleditor with plantUML
@startuml
class Shape {
boolean : selected
int : x
int : y
int : depth
+paint()
}