This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.lang.StringBuilder | |
| /* | |
| RS = relative scoping (all calls are relative to the receiver object) | |
| ARG = receiver is sent as argument and must be accessed using 'it' | |
| fun | obj input | returns | comment | |
| ---------+-----------+----------------------------------+-------------------------------------------- | |
| apply | RS | this | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import yaml | |
| import sys | |
| from pprint import pprint | |
| if len(sys.argv) != 2: | |
| print "Call me with filename as an argument" | |
| else: | |
| with open(sys.argv[1], 'r') as stream: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # The problem is that on-box PyEZ has version.pyc and not version.py, but you can get version this way: | |
| from jnpr.junos import version | |
| print version.VERSION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| import java.io.*; | |
| import java.security.*; | |
| public class ChangePassword | |
| { | |
| private final static JKS j = new JKS(); | |
| public static void main(String[] args) throws Exception | |
| { |