Skip to content

Instantly share code, notes, and snippets.

View hoangddt's full-sized avatar

Hoang Truong hoangddt

View GitHub Profile
# deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release i386 (20140722.2)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://vn.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://vn.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://vn.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
@hoangddt
hoangddt / note
Last active August 29, 2015 14:17
Some python package
http://stackoverflow.com/questions/21491996/installing-bower-on-ubuntu
sudo apt-get python-dev
https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/
Open your source.list using your favorite text editor, ie
sudo nano /etc/apt/sources.list
locate http://vn.archive.ubuntu.com/ubuntu and replace it with http://mirror-fpt-telecom.fpt.net/ubuntu
@hoangddt
hoangddt / taowifi
Created April 12, 2015 09:11
Tao Wifi tren Windows
netsh wlan set hostednetwork mode=allow ssid=Ten_Wifi key=password
start wifi
netsh wlan start hostednetwork
stop wifi
netsh wlan stop hostednetwork
xoa wifi
netsh wlan set hostednetwork mode=disallow ssid=Ten_Wifi key=password
@hoangddt
hoangddt / TimCook-isn't about profit.md
Last active August 29, 2015 14:19
A article about Tim Cook that has been translated to Vietnamese

###Tim Cook: Kinh doanh không chỉ về việc tạo lợi nhuận

Cook, người kế vị Steve Jobs với vị trí là ông chủ của một công ty công nghệ khổng lồ trong năm 2011, đã tỏ ra rất tức giận khi tham gia với một số nhà đầu tư phản động trong suốt phần hỏi đáp của cuộc họp cổ đông. Trả lời với các cuộc gọi từ "Trung tâm nghiên cứu chính sách công quốc gia" (viết tắt NCPPR), một cố vấn bảo thủ và nhà đầu tư, về Apple để kiềm chế việc đầu tư tiền vào các dự ánh năng lượng xanh mà không mang lại lợi nhuận, ông đáp lại rằng Apple đã làm "rất nhiều điều mà nằm ngoài mục tiêu lợi nhuận". Giám đốc điều hành nói thêm: "Chũng tôi muốn làm thế giới tốt hơn so với những ngày đầu".

"We want to leave the world better than we found it "

Phát biểu trực tiếp với đại diện NCPPR, ông nói: "Nếu anh muốn tôi chỉ làm những việc mang lại lợi nhuận, anh nên rút cổ phiếu khỏi công ty này . Cook, người mà tôi thường được biết đến với phong thái điềm đạm của mình, cũng nhấn mạnh rằng ông coi trọng nhiều hơn vào việc gi

@hoangddt
hoangddt / angularLink
Created April 15, 2015 06:02
Good link a bout angularjs
@hoangddt
hoangddt / Material Theme
Last active August 29, 2015 14:19
UI setting for use Seti_UI
"theme": "Material-Theme.sublime-theme",
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
@hoangddt
hoangddt / bat
Created May 9, 2015 04:45
Some nice art with ASCII character
_-. .-_
_..-'( )`-.._
./'. '||\\. (\_/) .//||` .`\.
./'.|'.'||||\\|.. )*.*( ..|//||||`.`|.`\.
./'..|'.|| |||||\``````` " '''''''/||||| ||.`|..`\.
./'.||'.|||| ||||||||||||. .|||||||||||| ||||.`||.`\.
/'|||'.|||||| ||||||||||||{ }|||||||||||| ||||||.`|||`\
'.|||'.||||||| ||||||||||||{ }|||||||||||| |||||||.`|||.`
'.||| ||||||||| |/' ``\||/` '\||/'' `\| ||||||||| |||.`
@hoangddt
hoangddt / command.sh
Created June 6, 2015 13:54
Some common command use with octopress
# Some dependence
gem install bundler
rbenv rehash
bundle install
# setup
rake setup_github_pages
# Install theme
# clone in to .theme/<theme_name>
@hoangddt
hoangddt / index.html
Created June 6, 2015 14:22
Redirect to another page just use HTML
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; http://blog.hoangddt.net/vi">
<link rel="canonical" href="http://blog.hoangddt.net/vi">
</head>
</html>
@hoangddt
hoangddt / mount.sh
Last active August 29, 2015 14:27
Mount a Partition that is windows partition
# create a directory and mount to it in read-only mode
sudo mkdir /media/Data
mount -t ntfs-3g -o ro /dev/sda3 /media/Data
# force to mount, read more at `man ntfs-3g`
mount -t ntfs-3g -o remove_hiberfile /dev/sda3 /media/Data
# source: http://askubuntu.com/questions/145902/unable-to-mount-windows-ntfs-filesystem-due-to-hibernation
# mount an iso file