Skip to content

Instantly share code, notes, and snippets.

View petarblazevski's full-sized avatar

Petar Blazhevski petarblazevski

  • Mobiquity Inc - Europe
  • Hilversum, Netherlands
View GitHub Profile

Keybase proof

I hereby claim:

  • I am petarblazevski on github.
  • I am petarblazhevski (https://keybase.io/petarblazhevski) on keybase.
  • I have a public key ASBN29FTXM2t_CF-CRKVoHeN7RMkKn6KbkPHYuPoc-hJMAo

To claim this, I am signing this object:

@petarblazevski
petarblazevski / S3-Static-Sites.md
Last active April 6, 2020 12:43 — forked from bradwestfall/S3-Static-Sites.md
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation

Resources

@petarblazevski
petarblazevski / LICENSE
Created December 3, 2018 06:45 — forked from noelbundick/LICENSE
Exclude WSL installations from Windows Defender realtime protection
MIT License
Copyright (c) 2018 Noel Bundick
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@petarblazevski
petarblazevski / server.js
Last active November 26, 2018 10:17
NextJS minimal server
require('@remy/envy');
const express = require('express');
const next = require('next');
const dev = process.env.NODE_ENV !== 'production';
const app = next({ dev });
const handle = app.getRequestHandler();
app
.prepare()
.then(() => {
@petarblazevski
petarblazevski / Advanced VHost
Last active December 24, 2015 11:29
VirtualHost
<VirtualHost *:80>
# Host that will serve this project.
ServerName app.dev
# The location of our projects public directory.
DocumentRoot /path/to/our/public
# Useful logs for debug.
CustomLog /path/to/access.log common