Skip to content

Instantly share code, notes, and snippets.

View sumugapadman's full-sized avatar
💭
Working on kryptonite

Sumuga Padman sumugapadman

💭
Working on kryptonite
View GitHub Profile
@sumugapadman
sumugapadman / Deploy monorepo to Heroku
Created September 12, 2023 13:28 — forked from abhinaykumar/Deploy monorepo to Heroku
Deploy monorepo to Heroku
1. Create Procfile at the root of each frontend and backend folder (with command to start the server)
2. Create Heroku dynos for each (frontend and backend)
```
heroku create -a my-awesome-frontend
heroku create -a my-awesome-backend
```
3. Get the auth token from Heroku by running: `heroku auth:token` #=> HEROKU_API_TOKEN
4. Add remote origin for frontend and backend
```
@sumugapadman
sumugapadman / sfdc-lightning-debounce-helper
Last active July 31, 2023 20:21 — forked from paustint/sfdc-lightning-debounce-helper
Salesforce Lightning: debounce helper method
({
// debounce function to stagger the callback function.
debounce: function (func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = $A.getCallback(function() {
timeout = null;
if (!immediate) {
func.apply(context, args);

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

docker search continuumio
docker pull continuumio/miniconda
docker run -t -i continuumio/miniconda /bin/bash
conda info
docker run -i -t -p 8888:8888 continuumio/miniconda /bin/bash
-c "/opt/conda/bin/conda install jupyter -y --quiet && mkdir

sample docker compose

version: '3'
services:
  blob-consumer:
    container_name: article-blob-consumer-container-compose
    image: blob-consumer-image:1.0
    build:
 context: .
@sumugapadman
sumugapadman / docker-help.md
Created August 7, 2020 06:43 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

@sumugapadman
sumugapadman / addHours.js
Created March 3, 2020 17:34
Add Hours Prototype
Date.prototype.addHours = function(h) {
this.setTime(this.getTime() + (h*60*60*1000));
return this;
}
var d = new Date();
d.addHours(48);
@sumugapadman
sumugapadman / tmux-cheatsheet.markdown
Created September 23, 2019 06:46 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sumugapadman
sumugapadman / package.xml
Last active August 8, 2020 05:42
Vscode manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>ActionLinkGroupTemplate</name>
</types>
<types>
<members>*</members>
<name>ApexClass</name>
</types>
<html>
<script src="https://greasemonkey-developer-edition.na34.force.com/lightning/lightning.out.js"></script>
<div id="container">
</div>
<script type="text/javascript">
window.onload = function(){
$Lightning.use("gizmo:ltngOutAppGuestDemo", function() {
$Lightning.createComponent("gizmo:richText",