Skip to content

Instantly share code, notes, and snippets.

View juanhuttemann's full-sized avatar

Juan Hüttemann juanhuttemann

  • Asunción, Paraguay
View GitHub Profile
@juanhuttemann
juanhuttemann / config vscode
Last active June 8, 2018 12:19
VSCode Custom Config
{
"workbench.colorTheme": "One Dark Pro",
"editor.fontSize": 16,
"editor.fontFamily": "'Source Code Pro', Consolas, 'Courier New', monospace",
"workbench.statusBar.visible": true,
"explorer.openEditors.visible": 0,
"workbench.iconTheme": "eq-material-theme-icons",
"window.menuBarVisibility": "toggle",
"editor.renderControlCharacters": true,
"workbench.activityBar.visible": true,
@juanhuttemann
juanhuttemann / Vagrantfile
Last active September 26, 2018 00:01
Ubuntu Vagrant Setup for Rails
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = 'ubuntu/trusty64'
config.vm.hostname = 'appname'
config.vm.network "private_network", ip: "192.168.10.10"
config.vm.network "forwarded_port", guest: 3000, host: 3000
config.vm.synced_folder ".", "/home/vagrant/"
@juanhuttemann
juanhuttemann / mysql.database.yml
Created June 25, 2018 23:56 — forked from jwo/mysql.database.yml
Sample config/database.yml from Rails. Postgres, MySQL, and SQLite
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
First add user to www-data group then...
sudo chown -R USER:www-data /var/www/owncloud/data/USER/files
npm --add-python-to-path='true' --debug install --global windows-build-tools
@juanhuttemann
juanhuttemann / app.json
Created September 18, 2018 01:29
Dokku Predeploy
{
"name": "ruby-rails-sample",
"description": "A sample Ruby on Rails application",
"scripts": {
"dokku": {
"predeploy": "bundle exec rails db:create db:migrate RAILS_ENV=production"
}
}
}
@juanhuttemann
juanhuttemann / Gemfile
Last active September 26, 2018 00:18
Configuración básica para Rails 5
#...
gem 'bootstrap-sass', '~> 3.3.7'
gem 'devise', '~> 4.4'
gem 'jquery-rails'
gem 'niceql'
gem 'pry-rails', group: :development
gem 'rails-i18n'
gem 'ransack'
gem 'simple_form'
gem 'sweet-alert-confirm'
@juanhuttemann
juanhuttemann / 42-things.md
Created October 9, 2018 10:52 — forked from xdite/42-things.md
Ten (42) Things You Didn't Know Rails Could Do
@juanhuttemann
juanhuttemann / install.sh
Created November 16, 2018 00:09
rails 5.2.1 installer
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev -y
cd
wget http://ftp.ruby-lang.org/pub/ruby/2.5/ruby-2.5.3.tar.gz
tar -xzvf ruby-2.5.3.tar.gz
cd ruby-2.5.3/
./configure
make
sudo make install
ruby -v
gem install bundler
@juanhuttemann
juanhuttemann / l4.go
Created December 18, 2018 17:05
Compresor/Descompresor L4
package main
import (
"bufio"
"io"
"os"
"github.com/pierrec/lz4"
)