$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
docker run -d -p :80 -p :8080 kdelfour/cloud9-docker
docker ps | grep cloud9
$ docker ps | grep cloud9
43a432520a18 kdelfour/cloud9-docker "supervisord -c /etc/" 2 days ago Up 2 days 3000/tcp, 0.0.0.0:32786->80/tcp, 0.0.0.0:32785->8080/tcp elegant_visvesvaraya
# Ruby 1.9 using ruby-ni | |
# | |
# VERSION 0.0.1 | |
# | |
FROM base | |
MAINTAINER Ivan Acosta-Rubio "[email protected]" | |
ADD https://gist.github.com/ivanacostarubio/9309be8a79a94aafd02d/raw/8e84fac50a57a23f191eccf5e41bae4ecde80873/gistfile1.txt /etc/resolv.conf | |
# Installing basic stuf: wget, git, ruby |
Running shell scripts that have contain sudo commands in them from jenkins might not run as expected. To fix this, follow along | |
Simple steps: | |
1. On ubuntu based systems, run " $ sudo visudo " | |
2. this will open /etc/sudoers file. | |
3. If your jenkins user is already in that file, then modify to look like this: | |
jenkins ALL=(ALL) NOPASSWD: ALL | |
4. save the file by doing Ctrl+O (dont save in tmp file. save in /etc/sudoers, confirm overwrite) | |
5. Exit by doing Ctrl+X | |
6. Relaunch your jenkins job |
'use strict'; | |
/** | |
* Created by Alexander Litvinov | |
* Email: [email protected] | |
* May be freely distributed under the MIT license | |
*/ | |
let singleton = Symbol(); | |
let singletonEnforcer = Symbol(); |
function add() { | |
var sum = 0; | |
function add() { | |
for (var i=0; i<arguments.length; i++) { | |
sum += Number(arguments[i]); | |
} | |
return add; | |
} | |
add.valueOf = function valueOf(){ |