https://simpleisbetterthancomplex.com/2015/11/23/small-open-source-django-projects-to-get-started.html
https://python.web.id/blog/create-command-line-interfaces-with-python/
Thứ Tư, 2 tháng 11, 2016
Thứ Ba, 1 tháng 11, 2016
How to read source code
http://www.skorks.com/2010/05/why-i-love-reading-other-peoples-code-and-you-should-too/
http://wiki.c2.com/?TipsForReadingCode
http://wiki.c2.com/?TipsForReadingCode
Những thói quen xấu kìm hãm sự tiến bộ của lập trình viên
http://techtalk.vn/nhung-thoi-quen-xau-kim-ham-su-tien-bo-cua-lap-trinh-vien.html
Thứ Tư, 26 tháng 10, 2016
Note Go
https://speakerdeck.com/mitchellh/advanced-testing-with-go
http://golanggo.com/archive
https://talks.golang.org/2016/applicative.slide#1
https://talks.golang.org/2014/organizeio.slide#1
https://talks.golang.org/2012/10things.slide#4
http://www.slideshare.net/InfoQ/experiences-building-influxdb-in-go
http://www.slideshare.net/InfoQ/beyond-the-hype-4-years-of-go-in-production
https://www.netlify.com/blog/2016/10/20/building-a-restful-api-in-go/
https://www.goinggo.net/2014/05/methods-interfaces-and-embedded-types.html
http://golanggo.com/archive
https://talks.golang.org/2016/applicative.slide#1
https://talks.golang.org/2014/organizeio.slide#1
https://talks.golang.org/2012/10things.slide#4
http://www.slideshare.net/InfoQ/experiences-building-influxdb-in-go
http://www.slideshare.net/InfoQ/beyond-the-hype-4-years-of-go-in-production
https://www.netlify.com/blog/2016/10/20/building-a-restful-api-in-go/
https://www.goinggo.net/2014/05/methods-interfaces-and-embedded-types.html
Thứ Ba, 2 tháng 8, 2016
Some useful command
# lsmod
megaraid_sas 91199 26
# modinfo megaraid_sas
filename: /lib/modules/3.13.0-92-generic/kernel/drivers/scsi/megaraid/megaraid_sas.ko
description: LSI MegaRAID SAS Driver
author: megaraidlinux@lsi.com
version: 06.700.06.00-rc1
# modinfo file.ko
# dpkg -c file.deb ( contains in deb )
# dpkg -x file.deb /tmp/file ( extract file in deb )
# dpkg -e file.deb ( extract control file, such as preinst, postinst, prerm, postrm )
# dpkg -e file.deb ( extract control file, such as preinst, postinst, prerm, postrm )
Thứ Năm, 23 tháng 6, 2016
Scan LVM partition
If your OS partition die, but data in other disks run LVM, you can reinstall OS and mount logical volume to use.
Example
# pvscan
PV /dev/vdb VG vgdata lvm2 [20,00 GiB / 5,00 GiB free]
Total: 1 [20,00 GiB] / in use: 1 [20,00 GiB] / in no VG: 0 [0 ]
Example
# pvscan
PV /dev/vdb VG vgdata lvm2 [20,00 GiB / 5,00 GiB free]
Total: 1 [20,00 GiB] / in use: 1 [20,00 GiB] / in no VG: 0 [0 ]
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "vgdata" using metadata type lvm2
# vgchange -a y
1 logical volume(s) in volume group "vgdata" now active
# lvscan
ACTIVE '/dev/vgdata/lvdata' [15,00 GiB] inherit
# mount /dev/vgdata/lvdata /mnt
DONE
Thứ Ba, 21 tháng 6, 2016
Disable IPv6 when using apt-get
Sometimes when run command apt-get update, it connected to some repo using IPv6 address. But it made long delay because ISP's network was not ready for IPv6.
Config make use IPv4
- Add -o Acquire::ForceIPv4=true when run apt-get
- Make config persistent:
Config make use IPv4
- Add -o Acquire::ForceIPv4=true when run apt-get
- Make config persistent:
# echo 'Acquire::ForceIPv4 "true";' | tee /etc/apt/apt.conf.d/99force-ipv4
Đăng ký:
Bài đăng (Atom)