What is ANTLR?
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a language tool that provides a framework for constructing recognizers, compilers, and translators from grammatical descriptions containing Java, C#, C++, or Python actions. ANTLR provides excellent support for tree construction, tree walking, and translation. There are
Step 1: Download ANTLR 2.7.7
Step 2: Untar ANTLR-2.7.7
On Thursday November 13th we ran the “SPARC the Base:
Refresh & Save 6-in-1 Offer” webcast for partner globally.
The link to the webcast replay is: “SPARC
the BASE: Refresh & Save 6-in-1 Offer”.
A quick blog entry about getting Solaris PXE boot working with Microsoft Windows DHCP server. I was always told it was easy but I never managed to get it to working even though a lot of people I talked to had it working.
The problem was that our network was not correctly configured for PXEbooting. Problem was our network need PortFast enable (Good Ref: Spanning Tree Protocol (STP) and PortFast).
When we execute an ansible playbook by default it will gather facts of operating system first and then execute tasks listed in it.
Its always not required to gather facts & if we have too many hosts it will take more time to execute a playbook.
To mitigate this we need to disable gather facts with “gather_facts” attribute in ansible playbook.
By default gather_facts attributes value is True, to disable it we need to set it as False.
Here is my play book example with gather_facts: False
In August 2014, more than 300,000 people registered for the first offering of the Introduction to Linux course. This popular Massive Open Online Course (MOCC) is taught by the Linux Foundation, and hosted on edx. The same course starts again on January 5, 2015. The course is designed for people who have limited or no previous exposure to Linux.
Following on from SSH and SFTP with Paramiko & Python, I recently had the need to gain a remote SSH server’s fingerprint and hostkey for verification purposes. This is achievable through setting up a socket, and then applying paramiko.Transport over our established socket. First, we include the various bits and pieces we’ll need:
To run specific part or exclude specific part in a playbook we an use tags attrubute.
Here is my example playbook with name tags_example.yml:
- hosts: all
- name: Hello
shell: "echo hello"
- name: Bye
shell: "echo bye"
In above playbook we have two tasks Hello and Bye with tags hello and bye tags respectively.
To execute above playbook use following command:
Starting from kernel 2.6.24, Linux supports 6 different types of namespaces. Namespaces are useful in isolating processes from the rest of the system, without needing to use full low level virtualization technology.
imaplib is a great library for handling IMAP communication. It supports both plaintext IMAP and IMAP over SSL (IMAPS) with ease. Connecting to an IMAP server is achieved as follows: