Posts

Showing posts with the label number

"ip_proto" parameter in Tacker VNF Forwarding Graph TOSCA template

Here are the list of the available values of the "ip_proto"  (IP Protocol number) in the TOSCA template for the Tacker VNF Forwarding Graph: Decimal Keyword Protocol IPv6 Extension Header Reference 0 HOPOPT IPv6 Hop-by-Hop Option Y [ RFC8200 ] 1 ICMP Internet Control Message [ RFC792 ] 2 IGMP Internet Group Management [ RFC1112 ] 3 GGP Gateway-to-Gateway [ RFC823 ] 4 IPv4 IPv4 encapsulation [ RFC2003 ] 5 ST Stream [ R...

Get back your browser cached content

Image
Sometime you mess up your stylesheets, your javascripts and you realize that you forgot to commit the changes, so your life screws up. Actually, there is still one place you can look for help. It's your browser's cache (assuming that you're using Chrome). 1. In Chrome, go to chrome://cache , you will see all the links to cached files here. 2. Click on the one that you want, you will see a whole bunch of text and numbers 3. Open Chrome's Developer Tool, paste the following code into the javascript console: 4. Click on  the link " Left-click to download the cached file " appears on top of the page to download the cached file. Reference:  http://www.sensefulsolutions.com/2012/01/viewing-chrome-cache-easy-way.html

How many processes running on your Linux server?

Find out by: $ ps -A --no-headers | wc -l or $ ps -AL --no-headers | wc -l

Active Directory - Update AD users's field data starting with number ZERO from a csv file

Last Friday, when I was trying to update Active Directory users data from a csv file, I accidentally changed value of a very important attribute (let's call it the X field). X was a string of numbers which has a number ZERO at the beginning. And my company uses X to identify users in another system which requires ids in the form of 0xyz, and 1xyz. I exported all the users AD data, modified value of some of the fields, than updated back to Active Directory. I realized that X value of all users had been changed (without ZERO at the beginning). I totally forgot that csv/excel will ignore any number ZERO if it stays at the beginning of the number (e.g. 061898989 will be translated to 61898989). So, to change the value back to what It was, I did: 1. Export X value data of all the users to a csv file. 2. Add ZERO to the beginning of attribute X's data of all users (using a text editor, find & replace) 3. Make all field were quotes ("") 4. Update the modified...