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
| ** Enter to the container: | |
| docker exec -it container_id sh | |
| If you using nodejs: | |
| $ vi net-con.js | |
| ** Put the folling code: | |
| 'use strict'; | |
| const net = require('net'); |
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/sh | |
| # setup ~/.pgpass to allow passwordless connection to postgres | |
| # keep last 30 executions for each job | |
| KEEP=30 | |
| cd /var/lib/rundeck/logs/rundeck | |
| JOBS=`find . -maxdepth 3 -path "*/job/*" -type d` |
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
| BOX_NAME=vagrant-build | |
| BASE_DIR="`pwd`/machines" | |
| BOX_DIR="${BASE_DIR}/${BOX_NAME}" | |
| mkdir -p ${BASE_DIR} | |
| VBoxManage createvm --name "${BOX_NAME}" --ostype RedHat_64 --basefolder ${BASE_DIR} | |
| VBoxManage registervm "${BOX_DIR}/${BOX_NAME}.vbox" | |
| mkdir -p tmp |
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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
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
| If you need to compare to versions with a couple of major, minor and release builds, e.g. 1.30.21.25.11, 1.30.21.25.10 . | |
| You can use the following util method: | |
| function compareVersions(ver1, ver2) { | |
| var UnPublishedVersionParts, publishedVersionParts, i, _i, _ref; | |
| if (!ver1 || !ver2) { | |
| return true; | |
| } else { | |
| UnPublishedVersionParts = ver1.split('.'); | |
| publishedVersionParts = ver2.split('.'); |
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
| Installation instaruction for punjab: | |
| *************************************** | |
| 1. Get punjab source from git repo: | |
| $ git clone https://github.com/twonds/punjab punjab_package | |
| 2. Instal Twisted server: | |
| $ [sudo] apt-get install python-twisted | |
| 3. check if you have the python-openssl package installed |