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/bash | |
# Install Brew | |
echo "Installing Homebrew for package managing" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# Install git | |
echo "Installing last git from brew" | |
brew install git |
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/bash | |
# Prevents force-pushing to master. | |
protected_branch='master' | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
push_command=`ps -ocommand= -p $PPID` | |
if [[ $protected_branch = $current_branch && $push_command =~ force|delete|-f ]] | |
then | |
read -p "You're about to push master, is that what you intended? [y|n] " -n 1 -r < /dev/tty |
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
import java.util.*; | |
import java.io.*; | |
import java.security.*; | |
public class ChangePassword | |
{ | |
private final static JKS j = new JKS(); | |
public static void main(String[] args) throws Exception | |
{ |
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
$ bundle exec rails s | |
/Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/util.rb:332:in `rails_root': ERROR: Rails.root is nil! (RuntimeError) | |
from /Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/plugin/rails.rb:11:in `default_options' | |
from /Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/plugin/configuration.rb:33:in `options' | |
from /Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/plugin/compiler.rb:38:in `initialize' | |
from /Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/plugin.rb:63:in `new' | |
from /Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/plugin.rb:63:in `compiler' | |
from /Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/plugin.rb:120:in `options' | |
from /Users/alex/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/sass-3.1.15/lib/sass/plugin/rails.rb: |
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
alex@manfred:~/projectes/brandchats$ rake db:migrate --trace | |
/home/alex/.rvm/gems/ruby-1.9.3-preview1@brandchats/gems/webbynode-1.0.4.3/lib/webbynode/io.rb:14: Use RbConfig instead of obsolete and deprecated Config. | |
** Invoke db:migrate (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
rake aborted! | |
can't convert nil into Hash | |
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:217:in `merge!' | |
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:217:in `block in revive_hash' | |
/home/alex/.rvm/rubies/ruby-1.9.3-preview1/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:211:in `each' |