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
1. offset vs addr ?
"有同學說他 invoke 也可以用 offset"
我的想法:
array 的位址一開始就配置在 data segment,位址是固定的,所以可以用 offset 來取值
var1 是執行時期才配置出來的記憶體空間,所以要透過 addr 來計算位址。
INCLUDE irvine32.inc
@ShawnHuang
ShawnHuang / ufw.md
Created February 24, 2016 06:07 — forked from kimus/ufw.md
NAT and FORWARD with Ubuntu’s ufw firewall

UFW

I use Ubuntu’s Uncomplicated firewall because it is available on Ubuntu and it's very simple.

Install UFW

if ufw is not installed by default be sure to install it first.

@ShawnHuang
ShawnHuang / plantUML
Created December 23, 2015 03:39
qumleditor with plantUML
@startuml
class Shape {
boolean : selected
int : x
int : y
int : depth
+paint()
}
#!/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 / mac
Created May 16, 2014 09:21
mac install
0. office
1. xcode
2. homebrew
@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 / 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