Skip to content

Instantly share code, notes, and snippets.

View gugutz's full-sized avatar

Gustavo gugutz

  • Neoway
  • São José - SC - Brasil
View GitHub Profile
➜ ~ rofi -h
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
@gugutz
gugutz / devise-auth-for-rails
Created March 31, 2019 22:41
rails authentication with devise
updated: 31/03/2019 with rails 5.2
add `gem 'devise'` to gemfile
bundle install
rails g devise:install
Ensure you have defined default url options in your environments files. Open up config/environments/development.rb and add this line:
```config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }```
@gugutz
gugutz / keybase.md
Created March 10, 2019 14:43
keybase prrof

Keybase proof

I hereby claim:

  • I am gugutz on github.
  • I am gugutz (https://keybase.io/gugutz) on keybase.
  • I have a public key ASDtzDrkxpOABAQFTGBcuSZ7Uu0OJdoVpKrnD7Jgn2m-RQo

To claim this, I am signing this object:

@gugutz
gugutz / FizzBuzz.js
Created January 2, 2018 23:15
Fizz Buzz em JavaScript
function fizzBuzz() {
var numero = 0;
for (numero == 0; numero < 101; numero++) {
if (numero % 5 == 0 && numero % 3 == 0) {
console.log("FizzBuzz");
continue;
}
else if (numero % 3 == 0) {
console.log("Fizz");
continue;