Skip to content

Instantly share code, notes, and snippets.

View raelgc's full-sized avatar
Working from home

Rael Gugelmin Cunha raelgc

Working from home
View GitHub Profile
raelgc / Bash Git color config.txt
Last active December 15, 2015 01:09
Simple and util .bashrc colors to use with git projects.
# Friendly Color Names
raelgc / Email Server (Linux, Unix, Mac).md
Last active June 5, 2024 04:06
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain point to your machine, including this content to the file:

2 - Install Postfix

raelgc / Email Server (Windows Only).md
Last active May 5, 2024 16:43
Setup a Local Only Email Server (Windows Only)
raelgc / Install MSOffice on
Last active February 26, 2024 03:10
Install MSOffice on Ubuntu

Install Microsoft Office 2010 on Ubuntu


We'll install MSOffice using the PlayOnLinux wizard. Additionally, MSOffice requires samba and winbind to properly work.

So, if not installed, install them:

sudo apt-get install playonlinux samba winbind
raelgc /
Last active September 20, 2016 18:15

Integrate CloudSponge in

The goal of this document is to provide a simple guide to help users to embed the CloudSponge widget.

Wix platform do not support direct JavaScript on pages, only in an iframe. So we've created a sample Wix page to display how embed the CloudSponge widget.

In the follow steps, we'll reproduce the instructions in a new Wix page to embed the CloudSponge widget.

1. Add an iframe to your page

raelgc /
Last active February 7, 2017 18:26
CloudSponge +

Integrate CloudSponge in users can easily integrate CloudSponge in using the CloudSponge Drupal module.

If for some reason, users cannot use the above module, there is another alternative: use the CloudSponge widget including our simple snipet in a full HTML page. To achieve this, we'll insert the CloudSponge JavaScript library in the default theme.

Compared to Drupal 6, Drupal 7 platform has changed the way to support JavaScript in the pages and introduced several new techniques that allow users to embed JavaScript in Drupal site's pages.

In the follow steps, we'll reproduce the instructions in a new Drupal instance to embed the CloudSponge widget.

raelgc / afterSubmitContacts.html
Last active March 1, 2017 23:29
CloudSponge Webhook + Zapier Example
<!DOCTYPE html>
Include the script anywhere on your page, usually in the head
(don't forget to replace `localhost-only` with your own CloudSponge Widget Key)
<script src="//"></script>
raelgc / cors.rb
Last active February 4, 2024 13:08
Rack Cors configuration for Vite
# TODO: Add production URLs to the list
# Use '*' if you want expose the API to the world
accept = [
'', # Dev Frontend
'http://localhost:5173', # Dev Frontend
'', # Dev Frontend
'http://localhost:5174', # Dev Frontend
Rails.application.config.middleware.insert_before 0, Rack::Cors do