Stand-alone ADB Fastboot tool

user-pic
Vote 0 Votes

Linux Named Pipe

user-pic
Vote 0 Votes

mkfifo fifo_file
cat fifo_file

In another shell session
date > fifo_file

You'll see date info in first shell session.
General Usage: piping data from program A to program B.

ref. Named pipe

OTP Client for Linux and Windows

user-pic
Vote 0 Votes

For Linux: OATH Toolkit
For Windows: WinAuth

Bliss HD

user-pic
Vote 0 Votes

Classic HD Windows XP Wallpaper
Download

Got fatal error 1236 from master when reading data from binary log:
'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.'

mysql> show global variables like 'gtid_purged'; # show master's gtid_purged

mysql> stop slave;
mysql> set global gtid_purged = '3caafe57-7a46-11e6-a5c0-00505682159e:1-50'; # set slave's gtid_purged as master
mysql> reset master;
mysql> start slave;

Net-SNMP IFTABLE_CACHE_TIMEOUT

user-pic
Vote 0 Votes

IFTABLE_CACHE_TIMEOUT control how frequent update ifTable counter.
Net-SNMP v5.4,v5.5 IFTABLE_CACHE_TIMEOUT 15
Net-SNMP v5.6,v5.7 IFTABLE_CACHE_TIMEOUT 3
Newer version have shorter cache timeout, but if you want to monitor real-time traffic by second, 3 seconds still useless.

To change this value

Method 1:
snmpset -v2c -cpublic localhost .1.3.6.1.4.1.8072.1.5.3.1.2.1.3.6.1.2.1.2.2 i 1 # after snmpd start
Note: use override to set the value does NOT work.
ref. How to set the agent update or counter refresh interval on net-snmp

Method 2:
Get Net-SNMP source tar ball, change the value in agent/mibgroup/if-mib/ifTable/ifTable_data_access.h
./configure && make && make install

Enable Keepalived SNMP subsystem

user-pic
Vote 0 Votes

echo KEEPALIVED_OPTIONS=\"-D -x\" > /etc/sysconfig/keepalived
echo master agentx >> /etc/snmp/snmpd.conf
echo mibs +KEEPALIVED-MIB >> /etc/snmp/snmp.conf # load KEEPALIVED-MIB, the file must in /usr/share/snmp/mibs
service snmpd restart
service keepalived restart # must after restart snmpd

snmpwalk -v2c -cpuclic localhost KEEPALIVED-MIB:vrrp

Compile PHP with couchdb

user-pic
Vote 0 Votes

cd php-5.6.23
git clone https://github.com/akissa/php-couchdb
mv php-couchdb ext/couchdb
rm configure
./buildconf --force
./configure --enable-couchdb

Compile PHP with mongodb

user-pic
Vote 0 Votes

cd php-5.6.23
wget -qO- https://pecl.php.net/get/mongo-1.6.14.tgz | tar zxv
mv mongo-1.6.14 ext/mongo
rm configure
./buildconf --force
./configure --enable-mongo

mongo extension 已經被 mongodb 取代, 不過仍有維護及安全性更新

因為 PuTTY 的 Private Key 格式, 跟 OpenSSH 的不太一樣, 若兩邊要共用同一把 Key,
Key 要從 OpenSSH 那邊產生, 再用 puttygen.exe 匯入 Key, 用 Load an existing private key file

再 Save public key, Save private key

Monthly Archives