Skip to content

Instantly share code, notes, and snippets.


Ariel Frischer ariel-frischer

View GitHub Profile
ariel-frischer /
Created Dec 2, 2021 — forked from idleberg/
Instructions on how to install Fish shell on Mac OS X, including Oh My Fish!. Also includes several useful functions.


  1. Install fish via Brew
  2. Optionally install Oh My Fish!
  3. Add fish to known shells
  4. Set default shell to fish
brew install fish  
curl -L | fish
ariel-frischer / color.ts
Created Dec 7, 2020 — forked from EvAlex/color.ts
TypeScript Color class, useful to manipulate rgba components and convert to rga/rgba/hex
View color.ts
export const RGB_COLOR_REGEX = /\((\d+),\s*(\d+),\s*(\d+)(,\s*(\d*.\d*))?\)/;
export class Color {
public r: number;
public g: number;
public b: number;
public a: number;
constructor(colorStr?: string)
ariel-frischer / canvas.js
Created Oct 1, 2020 — forked from JobLeonard/canvas.js
A react component that wraps and autosizes a canvas element
View canvas.js
import React, {PropTypes} from 'react';
import { debounce } from 'lodash';
// A simple helper component, wrapping retina logic for canvas and
// auto-resizing the canvas to fill its parent container.
// To determine size/layout, we just use CSS on the div containing
// the Canvas component (we're using this with flexbox, for example).
// Expects a "paint" function that takes a "context" to draw on
// Whenever this component updates it will call this paint function
// to draw on the canvas. For convenience, pixel dimensions are stored
sudo yum install autoconf automake bzip2 bzip2-devel cmake freetype-devel gcc gcc-c++ git libtool make mercurial pkgconfig zlib-devel -y
mkdir ~/ffmpeg_sources
# nasm
cd ~/ffmpeg_sources
curl -O -L
tar xjvf nasm-2.14.02.tar.bz2
cd nasm-2.14.02
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin"
ariel-frischer / getPixiContainer.ts
Last active Jul 17, 2020 — forked from only-cliches/pixibackground.js
PixiJS Background Cover & Background Container Typescript
View getPixiContainer.ts
export function getPixiContainer(bgSize: PIXI.Point, inputSprite: PIXI.Sprite, type: PIXI_CONTAINER_TYPE, forceSize?: PIXI.Point) {
let sprite = inputSprite;
let bgContainer = new PIXI.Container();
let mask = new PIXI.Graphics().beginFill(0x8bc5ff).drawRect(0, 0, bgSize.x, bgSize.y).endFill();
bgContainer.mask = mask;

AWS Fargate Docker Simple Deployment Setup with SSL termination

How to:

  • create a Docker-based AWS Fargate/ECS deployment
  • without the Docker containers having a public IP
  • with an Application Load Balancer as reverse proxy / SSL termination proxy sitting in front of the containers

For Fargate/ECS to be able to access your Docker images hosted on ECR (or somewhere else) you'll have to allow outbound internet access to the Fargate subnets. Here's how you do it.

ariel-frischer /
Created May 30, 2020 — forked from subfuzion/
vim/neovim configuration

I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.

It's currently synchronized with my .vimrc config except for a block of neovim-specific terminal key mappings.

This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.

These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,

ariel-frischer / redis.config
Created May 1, 2020 — forked from yustam/redis.config
Install Redis on Elastic Beanstalk
View redis.config
gcc-c++: []
make: []
command: make
cwd: /home/ec2-user/redis-2.8.4
ariel-frischer / .gitlab-ci.yml
Created Apr 10, 2020 — forked from Mazuh/.gitlab-ci.yml
Example of gitlab CI/CD for a create-react-app application on Amazon S3 Bucket.
View .gitlab-ci.yml
image: nikolaik/python-nodejs:latest
- install
- test
- deploy
stage: install
ariel-frischer / hero.ts
Created Jan 20, 2020 — forked from brennanMKE/hero.ts
Example of Mongoose with TypeScript and MongoDb
View hero.ts
import * as mongoose from 'mongoose';
export let Schema = mongoose.Schema;
export let ObjectId = mongoose.Schema.Types.ObjectId;
export let Mixed = mongoose.Schema.Types.Mixed;
export interface IHeroModel extends mongoose.Document {
name: string;
power: string;