Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am agustibr on github.
  • I am agustibr (https://keybase.io/agustibr) on keybase.
  • I have a public key ASCLMXdzYDzOpbvcsDb4xzvbmFZhrBLo4KG-J8Be0hRw4go

To claim this, I am signing this object:

@agustibr
agustibr / .aliases
Last active December 16, 2019 12:56
alias lsa="ls -alt"
be() { bundle exec "$@" ;}
ber() { be rails "$@" ;}
bej() { be jekyll "$@" ;}
@agustibr
agustibr / Rails Console Actionmailer test.md
Created March 16, 2018 09:07
Rails Console Actionmailer test

Si vols fer una prova d’enviament d'email des de la consola de rails, des de el servidor pots entrar via ssh i anar a

cd /var/www/app-dir/current

i executar una consola de rails amb la següent comada:

RAILS_ENV=preproduction bundle exec rails c
@agustibr
agustibr / MySQLgenerator
Created April 19, 2016 09:04
Bash script that quickly generates a MySQL database, user, and password
#!/bin/bash
# Usage:
# $ brew install mysql
# $ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
# $ bash -c "$(curl -fsSL https://gist.githubusercontent.com/richardcornish/e9093757a6977b1b6b5b/raw)"
echo "Welcome to the MySQL generator!"
read -p "Database name: " dbname
read -p "Database user: " dbuser
@agustibr
agustibr / Git notes
Created April 14, 2016 13:01 — forked from richardcornish/git.md
Enough Git for your résumé in 100ish lines
Start
=====
1. Install Git
http://git-scm.com/download/mac
(But consider using Homebrew)
2. Make a GitHub account
https://github.com/
3. Open Terminal
@agustibr
agustibr / Gemfile
Created February 23, 2016 15:13 — forked from gorenje/Gemfile
An example sinatra omniauth client app
source :rubygems
gem 'sinatra'
gem 'json'
gem 'omniauth'
gem 'omniauth-oauth2'
gem 'omniauth-github'
gem 'omniauth-facebook'
gem 'omniauth-twitter'
# gem 'omniauth-att', :path => File.expand_path("./../../omniauth-att", __FILE__)
@agustibr
agustibr / SassMeister-input-HTML.html
Created April 9, 2014 16:46
Generated by SassMeister.com.
<div class="container">
<input type="checkbox" id="left" class="toggle-input show-left" />
<input type="checkbox" id="right" class="toggle-input show-right" />
<header>
<label for="left" class="toggle">show-left</label>
<label for="right" class="toggle">show-right</label>
<h1>header</h1>
</header>
<div class="left" id="left">left</div>
<div class="main">main</div>
@agustibr
agustibr / SassMeister-input-HTML.html
Created April 9, 2014 16:46
Generated by SassMeister.com.
<header>Header</header>
<nav>Navigation</nav>
<article>Article</article>
<article>Article</article>
<article>Article</article>
<section>Section</section>
<section>Section</section>
<section>Section</section>
<section>Section</section>
@agustibr
agustibr / _component.scss
Last active December 30, 2015 18:19
[Inline or combined media queries in Sass? Fight! - benfrain.com - blog of technology writer and web designer Ben Frain.](http://benfrain.com/inline-or-combined-media-queries-in-sass-fight/)
.name-space-ComponentName {
width: 80%;
@include MQ(XS) {
width: 100%;
}
}