Skip to content

Instantly share code, notes, and snippets.

View hugohernandezfcc's full-sized avatar

Hugo Hernández hugohernandezfcc

View GitHub Profile
@jrichardsz
jrichardsz / Heroku export import settings
Created November 26, 2020 16:37
Heroku: Copying environment variables from an existing app to another
1. Export existing app’s variables to config.txt
heroku config -s -a existing-heroku-app > config.txt
2. Review and push to another app
cat config.txt | tr '\n' ' ' | xargs heroku config:set -a new-heroku-app
@hugohernandezfcc
hugohernandezfcc / How create a lightning component from sfdx
Last active July 19, 2019 23:28
How create a lightning component from sfdx
####################################################################
######## From your folder project run the following command ########
####################################################################
# navigate to aura folder
cd force-app/main/default/aura
# Create a Lightning component
sfdx force:lightning:component:create --type aura -n myAuraComponent
@hugohernandezfcc
hugohernandezfcc / Creating a SFDX Project
Last active May 6, 2020 06:34
How create a project and make deploy changes, even run test methods from terminal.
###################################################################
######## Project ready to work with any IDE ########
###################################################################
# Create a SFDX project from terminal
sfdx force:project:create --projectname myproject --manifest
# Position yourself on the project folder
cd myprojectname
@crtr0
crtr0 / client.js
Created June 8, 2012 17:02
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});