Containerized ephemeral heroku-like local environment
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
EBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 | |
DEBUG subprocess: Exit status: 0 | |
INFO warden: Calling OUT action: #<VagrantPlugins::ProviderVirtualBox::Action::PrepareNFSSettings:0x00000101298ef0> | |
DEBUG nfs: Host path doesn't exist, creating: /data/ck | |
ERROR warden: Error occurred: Failed to create the following shared folder on the host system. This is | |
usually because Vagrant does not have sufficient permissions to create | |
the folder. | |
/data/ck |
- Let me teste
- this
- list
- another
- test
- that
- works
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
var a = ko.observable(); | |
var b = ko.computed(function () { return a() + 1; }); | |
b() //=> NaN | |
a(1) | |
b() //=> 2 |
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
Running "karma:ci" (karma) task | |
Verifying property karma.ci exists in config...OK | |
File: [no files] | |
Options: background=false, clientArgs={"_":[],"v":"ci","$0":"grunt"}, client={"args":{"_":[],"v":"ci","$0":"grunt"}}, configFile="karma.conf.js", runnerPort=9999 | |
INFO [karma]: Karma v0.10.9 server started at http://localhost:9876/ | |
INFO [launcher]: Starting browser PhantomJS |
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
# Gitfile | |
vendor/banana [email protected]/banana master | |
vendor/melancia [email protected]/melancia-man 123b3 | |
vendor/pera [email protected]/pera v1.0.0 |
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
$ sudo dpkg -i project_1.0_amd64.deb | |
(Reading database ... 222072 files and directories currently installed.) | |
Unpacking project (from project_1.0_amd64.deb) ... | |
dpkg: error processing project_1.0_amd64.deb (--install): | |
error creating hard link `./usr/local/bin/project-bin': No such file or directory | |
Errors were encountered while processing: | |
project_1.0_amd64.deb |
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
vagrant@docker-ruby:~$ sudo docker -d -e lxc | |
[/var/lib/docker|41bf32e1] +job serveapi(unix:///var/run/docker.sock) | |
2014/03/13 00:56:58 Listening for HTTP on unix (/var/run/docker.sock) | |
[/var/lib/docker|41bf32e1] +job initserver() | |
[/var/lib/docker|41bf32e1.initserver()] Creating server | |
[/var/lib/docker|41bf32e1] +job init_networkdriver() | |
[/var/lib/docker|41bf32e1] -job init_networkdriver() = OK (0) | |
Loading containers: ...[/var/lib/docker|41bf32e1] +job allocate_interface(e1abf62e80fb5da3cdc21238f00fba70814640e5814c9f11183c04326260f051) | |
[/var/lib/docker|41bf32e1] -job allocate_interface(e1abf62e80fb5da3cdc21238f00fba70814640e5814c9f11183c04326260f051) = OK (0) | |
[/var/lib/docker|41bf32e1] +job allocate_port(e1abf62e80fb5da3cdc21238f00fba70814640e5814c9f11183c04326260f051) |
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
[root@ac53968a9329 ~]# useradd -m -s /bin/bash -U banana | |
[root@ac53968a9329 ~]# su - banana | |
su: warning: cannot change directory to /home/banana: Permission denied | |
su: failed to execute /bin/bash: Permission denied |
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
def require_components | |
caller_location = caller.first.split(':').first | |
Dir[File.join(File.dirname(caller_location), File.basename(caller_location, '.rb'), '*.rb')].each do |file| | |
require file | |
end | |
end |