Skip to content

Instantly share code, notes, and snippets.

View jmaleonard's full-sized avatar
⚒️
Fullstack Engineer. Building EC2 Global View 🌍

Jared Leonard jmaleonard

⚒️
Fullstack Engineer. Building EC2 Global View 🌍
View GitHub Profile
@jmaleonard
jmaleonard / deploy-static-site-heroku.md
Created March 16, 2016 20:06 — forked from wh1tney/deploy-static-site-heroku.md
How to deploy a static website to Heroku

Gist

This is a quick tutorial explaining how to get a static website hosted on Heroku.

Why do this?

Heroku hosts apps on the internet, not static websites. To get it to run your static portfolio, personal blog, etc., you need to trick Heroku into thinking your website is a PHP app. This 6-step tutorial will teach you how.

Basic Assumptions

@jmaleonard
jmaleonard / read-access.sql
Created July 5, 2018 14:01 — forked from oinopion/read-access.sql
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;
@jmaleonard
jmaleonard / StorageHelper.ts
Created May 23, 2019 13:21 — forked from Digiman/StorageHelper.ts
Simple helper module on TypeScript for using local storage (HTML5) in browser. Also have the class to store the list of emails that need to use for autocomplete in the some pages.
// module with classes and logic for working with local storage in browsers via JavaScript
// see also: http://professorweb.ru/my/html/html5/level5/5_1.php
module StorageHelper {
export interface IStorageItem {
key: string;
value: any;
}
export class StorageItem {
key: string;
@jmaleonard
jmaleonard / README.md
Created June 18, 2019 09:09 — forked from DocX/README.md
Connect to bash inside running ECS container by cluster and service name