Skip to content

Instantly share code, notes, and snippets.

View bltavares's full-sized avatar
💭
I may be slow to respond.

Bruno Tavares bltavares

💭
I may be slow to respond.
View GitHub Profile
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

quick-heroku

Containerized ephemeral heroku-like local environment

Requirements

Usage

  • Let me teste
  • this
  • list
  • another
  • test
  • that
  • works
var a = ko.observable();
var b = ko.computed(function () { return a() + 1; });
b() //=> NaN
a(1)
b() //=> 2
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
# Gitfile
vendor/banana [email protected]/banana master
vendor/melancia [email protected]/melancia-man 123b3
vendor/pera [email protected]/pera v1.0.0
$ 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
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)
[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
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