Skip to content

Instantly share code, notes, and snippets.

View hecbuma's full-sized avatar

Hector Bustillos hecbuma

View GitHub Profile
@hecbuma
hecbuma / nginx.conf
Created May 25, 2019 08:43
config/nginx.conf
upstream puma {
server unix:///home/deploy/apps/appname/shared/tmp/sockets/match-public-puma.sock;
}
server {
listen 80 default_server deferred;
# server_name example.com;
root /home/deploy/apps/match-public/current/public;
access_log /home/deploy/apps/match-public/current/log/nginx.access.log;
@hecbuma
hecbuma / deploy.rb
Last active May 25, 2019 08:38
config/deploy.rb
# Change these
set :repo_url, 'git@example.com:user/app.git'
set :application, 'appname'
set :user, 'username'
set :puma_threads, [4, 16]
set :puma_workers, 0
set :rbenv_type, :user # or :system, depends on your rbenv setup
@hecbuma
hecbuma / config.yml
Created May 25, 2019 05:15
CircleCI Rails
# Ruby CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-ruby/ for more details
#
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/ruby:2.5.3-node-browsers
@hecbuma
hecbuma / notes.md
Created May 24, 2019 20:21
Notas para el taller de DevOps

Notas para los usuarios de windows

Entiendo que algunos de ustedes utilicen windows, les puedo decir que el sistema operativo a evolucionado mucho y que ahora es mas sencillo echar a andar ambientes de desarrollo de ruby.

En la guía que les compartí describe como instalar ruby con railsinstaller.org si pueden utilizarlo solo aseguren de tener tener una version de ruby 2.3.

La segunda opción es utilizar linux subsystems creo que esto es lo “correcto” ya que windows a evolucionado y permite utilizar ubuntu desde una terminal. Aquí pueden encontrar la info complete Install Ruby On Rails on Windows 10 | GoRails

La ultima opción es, habilitar una maquina virtual con ubuntu, aunque sí es su primera vez puede ser un poco difícil.

```
"100000256514": {
"product_title": "Playful Feeling Skater Skirt in Jungle Boogie in S",
"jet_browse_node_id": null,
"standard_product_codes": [
{
"standard_product_code": "680124001017",
"standard_product_code_type": "UPC"
}
],

0.- Disable 2 Factor Auth

1.- Go to mail.crowdint.com -> settings -> Forwarding and POP/IMAP

2.- Enable POP

3.- Decide what to do When messages are accessed with POP

4.- Go to mail.magmalabs.io -> settings -> Accounts and Import

{
mappings: {
project: {
_all: {
index_analyzer: "nGram_analyzer_index",
search_analyzer: "whitespace_analyzer"
},
properties: {
accessories: {
type: "string",
{
projects: {
aliases: {
},
mappings: {
project: {
properties: {
accessories: {
type: "string"
This file has been truncated, but you can view the full file.
[03/12/15 21:51:24 +0000 ip-10-13-165-214 (19075)] DEBUG : Starting the worker thread in 19075 (parent 6201) after forking.
[03/12/15 21:51:24 +0000 ip-10-13-165-214 (19065)] DEBUG : Starting the worker thread in 19065 (parent 6201) after forking.
[03/12/15 21:51:25 +0000 ip-10-13-165-214 (19075)] DEBUG : EnvironmentReport failed to retrieve value for "Plugin List": undefined method `plugins' for #<Rails::Application::Configuration:0x007f3ace8832f8>
[03/12/15 21:51:25 +0000 ip-10-13-165-214 (19075)] DEBUG : EnvironmentReport failed to retrieve value for "JRuby version": uninitialized constant NewRelic::EnvironmentReport::JRUBY_VERSION
[03/12/15 21:51:25 +0000 ip-10-13-165-214 (19075)] DEBUG : EnvironmentReport failed to retrieve value for "Java VM version": uninitialized constant NewRelic::EnvironmentReport::ENV_JAVA
[03/12/15 21:51:25 +0000 ip-10-13-165-214 (19075)] DEBUG : EnvironmentReport ignoring value for "Rails threadsafe" which came back falsey: nil
[03/12/15 21:51:25 +0000 ip-10-13-165-214 (19075)] D
Started GET "/projects/secret-code-outlet" for 127.0.0.1 at 2015-01-13 13:07:09 -0600
Processing by ProjectsController#show as HTML
Parameters: {"id"=>"secret-code-outlet"}
Project Load (16.8ms) SELECT `projects`.* FROM `projects` WHERE `projects`.`slug` = 'secret-code-outlet' ORDER BY `projects`.`id` ASC LIMIT 1
Spree::Product Load (2.9ms) SELECT `spree_products`.* FROM `spree_products` WHERE `spree_products`.`slug` = 'battery-plus-cable' AND (`spree_products`.deleted_at IS NULL) ORDER BY `spree_products`.`id` ASC LIMIT 1
ProjectProduct Load (16.9ms) SELECT `project_bits`.* FROM `project_bits` INNER JOIN `spree_products` ON `spree_products`.`id` = `project_bits`.`product_id` AND (`spree_products`.deleted_at IS NULL) INNER JOIN `spree_products_taxons` ON `spree_products_taxons`.`product_id` = `spree_products`.`id` INNER JOIN `spree_taxons` ON `spree_taxons`.`id` = `spree_products_taxons`.`taxon_id` WHERE `project_bits`.`project_id` = 2041 AND `spree_taxons`.`name` = 'Bits' ORDER BY spree_products.