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/env xdg-open | |
| [Desktop Entry] | |
| Version=1.0 | |
| Terminal=false | |
| Type=Application | |
| Name=Emacs | |
| MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; | |
| Exec=/home/termlen0/bin/emacs | |
| Icon=emacs24 | |
| StartupWMClass=Emacs |
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
| #!/bin/bash | |
| # Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
| # simple script to shutdown the running Emacs daemon | |
| # emacsclient options for reference | |
| # -a Alternate editor, runs bin/false in this case | |
| # -e eval the script |
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
| #!/bin/bash | |
| # Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
| # Makes sure emacs daemon is running and opens the file in Emacs in | |
| # the terminal. | |
| # If you want to execute elisp, use -e whatever, like so | |
| # et -e "(message \"Word up\")" |
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
| #!/bin/bash | |
| # Shamelessly taken from http://mjwall.com/blog/2013/10/04/how-i-use-emacs/ | |
| # This script starts emacs daemon if it is not running, opens whatever file | |
| # you pass in and changes the focus to emacs. Without any arguments, it just | |
| # opens the current buffer or *scratch* if nothing else is open. The following | |
| # example will open ~/.bashrc | |
| # ec ~/.bashrc |
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
| #!/bin/bash | |
| # | |
| # Ansible role test shim. | |
| # | |
| # Usage: [OPTIONS] ./tests/test.sh | |
| # - distro: a supported Docker distro version (default = "centos7") | |
| # - playbook: a playbook in the tests directory (default = "test.yml") | |
| # - role_dir: the directory where the role exists (default = $PWD) | |
| # - cleanup: whether to remove the Docker container (default = true) | |
| # - container_id: the --name to set for the container (default = timestamp) |
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
| CLI done to configure and then check output in YAML with ansible, then revert to send actual request: | |
| developer@ncs(config)# services nso-snmp mytest_ro123 device dist-rtr01 | |
| developer@ncs(config-nso-snmp-mytest_ro123)# commit | |
| Commit complete. | |
| developer@ncs(config-nso-snmp-mytest_ro123)# no services nso-snmp mytest_ro123 device dist-rtr01 | |
| developer@ncs(config-nso-snmp-mytest_ro123)# commit | |
| Commit complete. | |