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
  • 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 git@github.com/banana master
vendor/melancia git@github.com/melancia-man 123b3
vendor/pera git@github.com/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
#!/bin/bash
password_file=$1
update_account() {
USERNAME=$1
PASSWORD=$2
FILE=$3
awk -i inplace "/username: '$USERNAME'/ { print \$0; getline; \$2="'$PASSWORD'" } { print \$0 }" $FILE
# encoding: utf-8
def 🐣(🐣🐣)
🐣🐣 + 🐣🐣
end
🐣 🐣('🐣')