Skip to content

Instantly share code, notes, and snippets.

View fmoliveira's full-sized avatar

Filipe Oliveira fmoliveira

  • Level Access
  • Toronto
  • 00:19 (UTC -04:00)
View GitHub Profile
@fmoliveira
fmoliveira / ssl.rules
Created February 9, 2016 01:28 — forked from konklone/ssl.rules
nginx TLS / SSL configuration options for konklone.com
# Basically the nginx configuration I use at konklone.com.
# I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com
#
# To provide feedback, please tweet at @konklone or email eric@konklone.com.
# Comments on gists don't notify the author.
#
# Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites.
# Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration.
server {
@fmoliveira
fmoliveira / auto-deploy.md
Created February 13, 2016 01:16 — forked from domenic/0-github-actions.md
Auto-deploying built products to gh-pages with Travis

Auto-deploying built products to gh-pages with Travis

This is a set up for projects which want to check in only their source files, but have their gh-pages branch automatically updated with some compiled output every time they push.

Create a compile script

You want a script that does a local compile to e.g. an out/ directory. Let's call this compile.sh for our purposes, but for your project it might be npm build or gulp make-docs or anything similar.

The out/ directory should contain everything you want deployed to gh-pages. That almost always includes an index.html.

@fmoliveira
fmoliveira / index.js
Created March 1, 2016 00:19
Express Route Discover
'use strict'
const glob = require('glob')
const path = require('path')
const express = require('express')
var router = express.Router()
var formatRoute = (fn) => {
fn = fn.replace(__dirname, '')
@fmoliveira
fmoliveira / README.md
Created March 9, 2016 01:19 — forked from joelverhagen/README.md
Jekyll YouTube Embed Plugin

This is a plugin meant for Jekyll.

Example use:

Easily embed a YouTube video. Just drop this file in your _plugins directory.

{% youtube oHg5SJYRHA0 %}
@fmoliveira
fmoliveira / Git push deployment in 7 easy steps.md
Created March 17, 2016 20:15 — forked from thomasfr/Git push deployment in 7 easy steps.md
7 easy steps to automated git push deployments. With small and configurable bash only post-receive hook
@fmoliveira
fmoliveira / build.sh
Created March 18, 2016 01:38 — forked from patrickarlt/build.sh
ES 7 async/await demo!
babel github-es6.js -o github.js --optional runtime --experimental
@fmoliveira
fmoliveira / .bashrc
Last active February 13, 2017 13:39
My Windows Bashrc
# Status
alias gs='git status'
alias gb='git branch'
alias gd='git diff'
alias gl='git log -1'
alias gll='git log -3'
alias glog='git log'
# Add, commit and push
alias ga='git add'
@fmoliveira
fmoliveira / settings.json
Last active July 14, 2016 11:39
My VS Code Insiders User Settings
{
"editor": {
"renderWhitespace": true,
"tabSize": 4,
"rulers": [80, 120]
},
"files": {
"autoSave": "onFocusChange",
"exclude": {
@fmoliveira
fmoliveira / introrx.md
Created July 28, 2016 12:47 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@fmoliveira
fmoliveira / deprecated.ts
Created August 18, 2016 12:49 — forked from michelsalib/deprecated.ts
Typescript @deprecated annotation
class Dog {
@deprecated('Dogs don\'t roar, they talk.')
roar() {
console.log('RRRRR');
}
@deprecated()
smile() {
console.log('smile');
}