Skip to content

Instantly share code, notes, and snippets.

View brunofrank's full-sized avatar
🏠
Working from home

Bruno Frank brunofrank

🏠
Working from home
  • Frank Labs
  • Uruaçu, GO, Brazil
View GitHub Profile
@brunofrank
brunofrank / simple_form_bulma.rb
Created February 17, 2020 14:29 — forked from JuanVqz/simple_form_bulma.rb
Support for simple form with bulma css, copy and paste on config/initializers/simple_form_bulma.rb
# frozen_string_literal: true
# Use this setup block to configure all options available in SimpleForm.
SimpleForm.setup do |config|
# Default class for buttons
config.button_class = 'button'
# Define the default class of the input wrapper of the boolean input.
config.boolean_label_class = 'checkbox'
@brunofrank
brunofrank / dell-gtx1050-ubuntu-19.04.md
Last active August 13, 2019 13:55 — forked from hereismari/msi-gtx1060-ubuntu-18.04-deeplearning.md
Setting up a Dell laptop with GPU (gtx1050), Installing Ubuntu 19.04

Setting up a Dell laptop with GPU (gtx1050)

Installing Ubuntu 19.04

Installing Ubuntu 19.04

Install (solving issues)

  • Security boot disable (change this in BIOS, for MSI computers reboot system and press delete a couple of times before the OS is loaded)
  • Possible problem: Screen freezing while installing
@brunofrank
brunofrank / deploy.rb
Last active August 29, 2015 14:26 — forked from dpsk/deploy.rb
Nginx+Unicorn (production-ready setup)
# Capistrano configuration
#
# require 'new_relic/recipes' - Newrelic notification about deployment
# require 'capistrano/ext/multistage' - We use 2 deployment environment: staging and production.
# set :deploy_via, :remote_cache - fetch only latest changes during deployment
# set :normalize_asset_timestamps - no need to touch (date modification) every assets
# "deploy:web:disable" - traditional maintenance page (during DB migrations deployment)
# task :restart - Unicorn with preload_app should be reloaded by USR2+QUIT signals, not HUP
#
# Recurring Job using Delayed::Job
#
# Setup Your job the "plain-old" DJ (perform) way, include this module
# and Your handler will re-schedule itself every time it succeeds.
#
# Sample :
#
# class MyJob
# include Delayed::ScheduledJob