Skip to content

Instantly share code, notes, and snippets.

View julie-ng's full-sized avatar

Julie Ng julie-ng

View GitHub Profile
@svallory
svallory / Deploying Sharetribe to Heroku.md
Last active September 5, 2025 12:49
Deploying Sharetribe to Heroku

Deploying to Heroku

  1. Deploy the app to heroku following heroku normal instructions (add link to heroku help)

  2. Set heroku environment variables

    Make sure all the options in config.yml are properly set then run:

     bundle exec rake heroku:config
    
@julie-ng
julie-ng / v0.html
Last active March 10, 2017 21:31
Email Layout Calculator Template
<script type="javascript/template" id="js-code-template">
<!-- Here is the mobile gmail first (but still works in Outlook) markup -->
<table width="{{ container }}" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>
{% _(cols).times(function(n) { %}
{% if (n === 0) { %}
<!--[if mso]><table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top" width="{{ colWidths[n] }}"><![endif]-->
{% } %}
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="left" class="col" style="width: 100%; max-width: {{ colWidths[n] }}px;">
@julie-ng
julie-ng / email.html
Created November 9, 2015 20:44
Email without inlined CSS
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- So that mobile will display zoomed in -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- enable media queries for windows phone 8 -->
<meta name="format-detection" content="telephone=no"> <!-- disable auto telephone linking in iOS -->
<title>Test: CSS, to inline or not?</title>
<style type="text/css">
@btroncone
btroncone / rxjs_operators_by_example.md
Last active September 14, 2025 16:48
RxJS 5 Operators By Example
@wkwiatek
wkwiatek / app-1.spec.ts
Last active December 17, 2021 01:52
Angular 2 test snippets for Angular final version. Codebase for https://developers.livechatinc.com/blog/category/programming/angular-2/
// App
import { Component } from '@angular/core';
@Component({
selector: 'app',
template: '<span>{{ sayHello() }}</span>',
})
export class App {
public name: string = 'John';
@jonlabelle
jonlabelle / windows_to_unix_command_cheat_sheet.md
Last active October 23, 2025 12:50
Windows to UNIX Command Cheat Sheet

Windows to UNIX Command Cheat Sheet

Windows PowerShell has several transition aliases that allow UNIX and CMD users to use familiar command names in Windows PowerShell. The most common aliases are shown in the table below, along with the Windows PowerShell command behind the alias and the standard Windows PowerShell alias if one exists.

CMD Command UNIX Command PowerShell Command PowerShell Alias
dir ls Get-ChildItem gci
@duluca
duluca / awc-ecs-access-to-aws-efs.md
Last active February 5, 2025 13:59
Step-by-step Instructions to Setup an AWS ECS Cluster

Configuring AWS ECS to have access to AWS EFS

If you would like to persist data from your ECS containers, i.e. hosting databases like MySQL or MongoDB with Docker, you need to ensure that you can mount the data directory of the database in the container to volume that's not going to dissappear when your container or worse yet, the EC2 instance that hosts your containers, is restarted or scaled up or down for any reason.

Don't know how to create your own AWS ECS Cluster? Go here!

New Cluster

Sadly the EC2 provisioning process doesn't allow you to configure EFS during the initial config. After your create your cluster, follow the guide below.

New Task Definition for Web App

If you're using an Alpine-based Node server like duluca/minimal-node-web-server follow this guide:

#/bin/bash
#
# Script to quickly install an AKS cluster
#
set -x
# Install the aks-preview extension
az extension add --name aks-preview