Skip to content

Instantly share code, notes, and snippets.

View so77id's full-sized avatar
👶
Father in process

Miguel Rodriguez so77id

👶
Father in process
  • Santiago, Chile
View GitHub Profile
@so77id
so77id / ror_zsh_on_ubuntu_aws.sh
Last active February 11, 2019 01:52
Script to install ROR 4.2 with zsh in ubuntu
sudo apt-get update
sudo apt-get install language-pack-es
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 python-software-properties libffi-dev zsh libmysqlclient-dev redis-server imagemagick
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
cd
git clone git://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
{
"bold_folder_labels": true,
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme",
"font_options": "subpixel_antialias",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
#!/usr/bin/ruby
#~/.irbrc
require 'irb/completion'
require 'irb/ext/save-history'
require 'rubygems'
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
IRB.conf[:PROMPT_MODE] = :SIMPLE
sudo apt-get install language-pack-es
sudo apt-get update
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 python-software-properties libffi-dev zsh libmysqlclient-dev redis-server imagemagick
#Installing OH MY ZSH
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
#Config git
git config --global color.ui true
git config --global user.name "Crowdlatam"
# /etc/init/sidekiq.conf - Sidekiq config
# This example config should work with Ubuntu 12.04+. It
# allows you to manage multiple Sidekiq instances with
# Upstart, Ubuntu's native service management tool.
#
# See workers.conf for how to manage all Sidekiq instances at once.
#
# Save this config as /etc/init/sidekiq.conf then manage sidekiq with:
# sudo start sidekiq index=0
@so77id
so77id / searchable.rb
Created February 22, 2017 04:23
Searchable Concern
module Searchable
extend ActiveSupport::Concern
included do
self.whitelist = {}
self.joins_whitelist = []
scope :search, -> (search_string){ joins(joins_actable_query).joins(joins_whitelist).where(make_search_query search_string) }
end
@so77id
so77id / .zshrc
Last active August 5, 2017 08:25
#paths
export PATH="$HOME/.rbenv/versions/2.3.1/bin:$PATH"
export PATH=/usr/local/bin:$PATH
export PATH=LOCAL_PATH:$PATH
# go
export GOROOT=/usr/local/opt/go/libexec
export GOPATH=$HOME/Desktop/workspace/golang
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin
https://image.ibb.co/b1YLhQ/p1_3_m.png
https://image.ibb.co/n4aY2Q/p1_3_b.png
https://image.ibb.co/ntimNQ/p1_3_a.png
https://image.ibb.co/i19FGk/p1_2_b.png
https://image.ibb.co/k34495/p1_2_m.png
https://image.ibb.co/n6kBp5/p1_2_a.png
https://image.ibb.co/g8e495/p1_1_a.png
https://image.ibb.co/fSXfhQ/p1_1_m.png
https://image.ibb.co/hzacU5/p1_1_b.png
4096x4096
2048x2048
1024x1024
512x512
256x256
128x128
64x64
32x32
16x16
@so77id
so77id / Makefile
Last active September 14, 2018 19:12
Makefile Experiments
#FUNCTION
define cecho
@echo "\033[92m$(1)\033[0m"
endef
# rcnn-fer Docker Makefile
PROGRAM="RCNN-FER"
CPU_REGISTRY_URL=so77id
GPU_REGISTRY_URL=so77id