2019年12月18日 星期三

sflow to pcap file


1. install sflowtool
2. use tcpdump to write pcap file

 sflowtool -4 -p 6343 -t | tcpdump -r - -G 300 -w 'admin_%d-%m_%Y_%H_%M.pcap'

2019年12月5日 星期四


20191206

Steps to use cacti automation

1. create devices rules,graph rules
2.  create network discovery rules
3. discovery devices,add devices
2. apply graph rule to added device

2019年5月10日 星期五

20190511

Calibration of Atom 3D printer 1.0

1.
M503 get current step per mm
current data is X80 Y80 Z80

2. print 2.0 mm cube
3. real dimension is 1.98 1.98 2.03 cm
4. 2/1.98*80 = 80.81 2/2.03*80=78.82
5. M92 X80.81 Y80.81 Z78.82

2018年6月4日 星期一

Migrate cacti 0.8.8 to Docker container


1. dump old cacti database
    mysqldump -u cacti -p cacti > cacti.sql
2 copy cacti.sql to cacti docker container
   docker cp cacti.sql containerID
3. import old data
   mysql -u cacti -p < cacti.sql
4. commit new image
  docker commit containerID docker-cacti:v2

2018年4月9日 星期一

repair pioneer vsx 1014 speaker drop out

Pioneer VSX 1014 Receiver failed to produce sound.

1. Check http://www.avsforum.com/forum/90-receivers-amps-processors/1068233-pioneer-vsx-816-speaker-drop-out.html
2. Use screwdriver to hit relay, sound comes out from speaker
3. Buy new relays and replace old relays.
4. My Pioneer works again!

2012年11月3日 星期六

Change Eclipse text file encodeing to Big5

Windows -> preference -> General -> Workspace -> Text file encoding
Other combo : manual keyin big5

2012年6月1日 星期五

Disable virtualbox time sync

linux host:
vboxmanage setextradata clientname
“VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled” "1"


windows host: 
VboxManage.exe settextextradata clientname VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled 1