Skip to content

Instantly share code, notes, and snippets.

@efthemiosprime
efthemiosprime / nextjs-nginx-config-file.conf
Last active January 6, 2024 01:24
nginx config file for Nextjs App
#place in /etc/nginx/sites-available/name_of_config_file
server {
listen 80;
server_name staging.mna.co;
gzip on;
gzip_proxied any;
gzip_types application/javascript application/x-javascript text/css text/javascript;
gzip_comp_level 5;
gzip_buffers 16 8k;
@efthemiosprime
efthemiosprime / amazon ec2 scp template.txt
Last active March 10, 2023 15:11
amazon ec2 scp template
scp -p -i <amazon private key file> <file to transfer> root@<ec2-....compute-1.amazonaws.com>:<destination file in amazon server>
<header class="cmp-header">
<div class="gmg-section-wrapper gmg-row gmg-gutter">
<div class="gmg-header-logo gmg-col gmg-col-2">
<a href="${properties.logoURL}.html">
<img src="${properties.fileReference @context = 'html'}" alt="gMG CYCLE" />
</a>
</div>
<nav class="gmg-menu-container gmg-col gmg-col-14" >
@efthemiosprime
efthemiosprime / cycle.swift
Created July 22, 2017 18:18
what's wrong
class Employee {
var manager: Employee?
var reports: [Employee] = []
}
let hulio = Employee()
hulio.reports = [Employee(), Employee(), Employee()]
hulio.reports.forEach{ $0.manager = hulio}
import Rx from "rxjs";
import r from "ramda";
export class Swipe {
constructor(dom) {
let xDown = null;
let yDown = null;
this.observer = new Rx.Subject();