Skip to content

Instantly share code, notes, and snippets.

View alex-arriaga's full-sized avatar
😀
Working on something great!

Alex Arriaga alex-arriaga

😀
Working on something great!
View GitHub Profile

Access macOS localhost from IE or Edge within Parallels Desktop

This issue is so infuriating that I'm going to take some time to write about it.

  1. MOST IMPORTANT. Your local development server must be bound to IP address 0.0.0.0. Some do this by default, but many don't. You need to make sure that you run your local server with correct IP bindings. You may need to provide additional flags to your serve commands e.g. polymer serve --hostname domain.local, hugo serve --bind 0.0.0.0. If you use a named domain like domain.local, it has to be defined in /etc/hosts and pointing at 0.0.0.0.

  2. My Parallels setting is using Shared Network, nothing special there.

  3. Open macOS Terminal and type ifconfig. Look for the value under vnic0 > inet. It is typically 10.211.55.2.

@alex-arriaga
alex-arriaga / nginx.conf
Created July 10, 2019 20:52 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@alex-arriaga
alex-arriaga / angular-i18n.example.com
Last active July 6, 2023 15:32
Nginx sample configuration for an Angular Multilingual application
server {
listen 80;
root /var/www/html/my-app/dist;
index index.html index.htm;
server_name angular-i18n.example.com www.angular-i18n.example.com;
location /en/ {
import { Component, Prop, State, Watch } from "@stencil/core";
import { icon } from "@fortawesome/fontawesome-svg-core";
import * as freeSolidFontAwesome from "@fortawesome/free-solid-svg-icons";
import * as proLightFontAwesome from "@fortawesome/pro-light-svg-icons";
import * as freeRegularFontAwesome from "@fortawesome/free-regular-svg-icons";
import * as proRegularFontAwesome from "@fortawesome/pro-regular-svg-icons";
@Component({
tag: "my-font-awesome",
styleUrl: "font-awesome.scss",
@alex-arriaga
alex-arriaga / README.md
Created March 28, 2019 16:30 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
docker save jwilder/nginx-proxy -o nginx-proxy.tar
docker load -i nginx-proxy.tar
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t
worker_processes auto;
error_log stderr warn;
pid nginx.pid;
events {
worker_connections 1024;
}
# === Start: Stage #1 - Building the web app
FROM node:10.15.0-alpine AS builder
WORKDIR /usr/app
# Wildcard to copy package-lock.json too
COPY package*.json ./
# RUN executes command(s) in a new layer and creates a new image. E.g., it is often used for installing software packages.
RUN npm install