DELL CHAT SUPPORT
Sick of telling phonetic code over the phone?
Try dell chat support here: http://www.dell.com/support/incidents/us/en/555/chat/tagchange
DISABLE MSI WITH MINIMAL INTERRUPTION
ifconfig eth0 down
rmmod bnx2
modprobe bnx2 disable_msi=1
ifconfig eth0 up
route add -net default netmask 0.0.0.0 gw [default gw here] eth0
For bonding interface:
3TB PARTITION SUPPORT IN LINUX
Make a GPT partition:
parted /dev/sda
mklabel gpt
unit TB
mkpart primary 0 -0
quit
Format with 1% root reservation:
HOW TO INCREASE VM DISK SIZE WITHOUT RE-DEPLOY THE MACHINE
Ref: http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1006371
[root@demo ~]# fdisk /dev/sda
-Create a primary partition-
[root@demo ~]# fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 512000 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 64 1306 9972736 8e Linux LVM
/dev/sda3 1306 6527 41942367+ 83 Linux
[root@demo ~]# pvcreate /dev/sda3
[root@demo ~]# vgextend vg_demo /dev/sda3
[root@demo ~]# vgdisplay vg_demo | grep Free
Free PE / Size 10239 / 40.00 GiB
[root@demo ~]# lvextend -L+40.00G /dev/vg_demo/lv_root
[root@demo ~]# resize2fs /dev/vg_demo/lv_root
Note: I wouldn’t do this for any production system as it looks pretty inefficient way to extend volume size.
L2L VPN WITH ASA - CONNECTION ESTABLISHED BUT NO PACKET COMING FROM ONE SIDE
Symtom:
1. Connection established.
2. 0 en/decapsulated packet from one side.
FIX HADOOP LEAP SECOND BUG WITHOUT REBOOTING
Source: http://blog.wpkg.org/2012/07/01/java-leap-second-bug-30-june-1-july-2012-fix/
Applied our hadoop node having CPU usage issue. (CentOS)
CHANGE IMESSAGE & FACETIME PHONE NUMBER IN CASE OF VERIFICATION FAILURE
Happened me after carrier change. Keep picking up SIM build-in number rather than my old number ported in later.
DEVICE CREDENTIAL FOR CISCO LICENSE LOOKUP AND TRANSFER
https://tools.cisco.com/SWIFT/LicensingUI/LicenseAdminServlet/licenseLookup
in CLI:
license save credential flash0:/credentials.lic
more flash0:/credentials.lic
Try SSH if you can’t get full strings from serial connection.
ZEROMQ - PHP CLIENT & PYTHON SERVER WITH MULTI PART MESSAGE EXAMPLE
Using pyobj or php data serialisation is not an option in this case..
HUBOT PANDORA BOT ADAPTER
# Chat with pandora bot
#
# ai <anything> – PANDORA AI
#
QS = require “querystring”
xml2js = require ‘xml2js’
module.exports = (robot) ->
robot.respond /(ai|AI)( me)? (.*)/i, (msg) ->
user = msg.message.user.name
query = msg.match[3]
botid = “meh”
parser = new xml2js.Parser({explicitArray: true})
msg.http(“http://www.pandorabots.com/pandora/talk-xml”)
.query({
botid: botid
custid: user
input: query
})
.post() (err, resp, body) ->
parser.parseString body, (err, result) ->
#console.log(result.that)
msg.send result.that