Skip to content

Instantly share code, notes, and snippets.

View rbrto's full-sized avatar

Roberto Esparza rbrto

View GitHub Profile
@maxivak
maxivak / 00.md
Last active September 15, 2025 13:09
Sending emails with ActionMailer and Sidekiq

Sending emails with ActionMailer and Sidekiq

Send email asynchroniously using Sidekiq.

ActionMailer

Create your mailer us usual:

@rickbacci
rickbacci / background_workers.markdown
Last active October 29, 2016 14:36
Background Workers
@jpalala
jpalala / how-to-setup-mac-elasticsearch.md
Created September 11, 2015 08:28
setting up elasticsearch on your mac with brew

Install va homebrew

If you don't have homebrew installed - get homebrew here

Then run: brew install elasticsearch

Configuration

Update the elasticsearch configuration file in /usr/local/etc/elasticsearch/elasticsearch.yml.

POST /cars/transactions/_bulk
{ "index": {}}
{ "price" : 10000, "color" : "red", "make" : "honda", "sold" : "2014-10-28" }
{ "index": {}}
{ "price" : 20000, "color" : "red", "make" : "honda", "sold" : "2014-11-05" }
{ "index": {}}
{ "price" : 30000, "color" : "green", "make" : "ford", "sold" : "2014-05-18" }
{ "index": {}}
{ "price" : 15000, "color" : "blue", "make" : "toyota", "sold" : "2014-07-02" }
{ "index": {}}
@uxnjs01
uxnjs01 / load-react-jsx-cdn.html
Last active December 11, 2016 05:28
Loading React and JSXTransformer with Facebook's CDN
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>React.js Hello World!</title>
<script src="https://fb.me/react-0.13.3.js"></script>
<script src="https://fb.me/JSXTransformer-0.13.3.js"></script>
</head>
<body>
@olegakbarov
olegakbarov / INSTALLATION.md
Last active July 10, 2020 18:27 — forked from DenisIzmaylov/INSTALLATION.md
OS X 10.11 El Capitan: clean install

OS X 10.11 (El Capitan) / Node.js Developer Environment

Custom recipe to get OS X 10.11 El Capitan running from scratch with useful applications and Node.js Developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after fresh install.

Content

@epintos
epintos / docker-compose.yml
Last active October 29, 2016 14:33
Ruby on Rails Continuous Integration with Jenkins and Docker Compose
db:
image: postgres
ports:
- "5432"
redis:
image: redis
ports:
- "6379"
@jendiamond
jendiamond / 1railsgirlsla_part1_tutorial.md
Last active January 10, 2022 05:43
Rails Girls LA Guide
@SeaOfLee
SeaOfLee / addsearchkick.md
Last active November 3, 2016 01:23
Add Searchkick to Rails 4 Project

##Add Searchkick to Rails 4 Project Shoutout to Ankane for creating the Searchkick gem. Also props to Mackenzie Child for his wonderful tutorial "How To Build a Movie Review App in Rails 4". At the end of the tutorial he covers how to install search into an app via the searchkick gem.

Download and install Java.

Install elasticsearch from the CLI:

$ brew install elasticsearch

If you already have elasticsearch installed, you can get more info:

@jkubacki
jkubacki / gist:e2dd904bd648b0bd4554
Created January 21, 2015 18:47
Mac uninstall elasticsearch
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep elasticsearch
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.elasticsearch.plist
launchctl remove homebrew.mxcl.elasticsearch
pkill -f elasticsearch