Skip to content

Instantly share code, notes, and snippets.

View LasaleFamine's full-sized avatar
🔮
Producing

Alessio Occhipinti LasaleFamine

🔮
Producing
View GitHub Profile
@LasaleFamine
LasaleFamine / .bash_profile
Last active November 27, 2017 10:10 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@LasaleFamine
LasaleFamine / Procfile-static-heroku.MD
Last active September 9, 2016 20:25
Simple Procfile to run static websites (with setted Root directory) on Heroku with no problems! 🚀

How to run a static website as a fake PHP on Heroku

Apache2

web: vendor/bin/heroku-php-apache2 your/public/root

Nginx

web: vendor/bin/heroku-php-nginx your/public/root
@LasaleFamine
LasaleFamine / HTML5 base structure index.html
Last active September 15, 2016 13:41
A structured index.html to start building an app on top of it.
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<div id="app">
</div>
@LasaleFamine
LasaleFamine / universal-module.js
Created September 21, 2017 09:27
Module that runs both on Node.js and browsers.
(function(exports){
// your code goes here
exports.test = function(){
return 'hello world'
};
})(typeof exports === 'undefined'? this['mymodule']={}: exports);
@LasaleFamine
LasaleFamine / apn-parse.md
Created September 28, 2017 15:25
How to get correct certificate from APN and configure Parse.
@LasaleFamine
LasaleFamine / backtick.ahk
Created October 6, 2017 10:13
AltGr + ' = backtick (`) [WINDOWS]
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
<^>!'::
Send, ``
Return
@LasaleFamine
LasaleFamine / parse-server.js
Last active October 14, 2017 21:52
Simple ExpressJs - Parse Server implementation for a Docker container.
const express = require('express');
const ParseServer = require('parse-server').ParseServer;
const app = express();
const {
APP_ID,
MASTER_KEY,
MONGO_URI,
SERVER_PORT,
SERVER_URL
@LasaleFamine
LasaleFamine / parse-docker-package.json
Created October 14, 2017 21:42
A simple package.json to install parse-server within a Docker container.
{
"name": "parse-server",
"scripts": {
"start": "node index.js"
},
"dependencies": {
"parse-server": "*",
"express": "*"
}
}
@LasaleFamine
LasaleFamine / Dockerfile-parse-server
Last active July 12, 2018 11:50
Dockerfile for running a parse server.
FROM node
USER node
ENV APP_ID someappid
ENV MASTER_KEY somemasterkey
# Connection strig to mongo db
ENV MONGO_URI mongodb://mongo/test
ENV SERVER_PORT 1337
# Don't forget to change to https if needed