Skip to content

Instantly share code, notes, and snippets.

Writing code from another galaxy.

Douglas Miranda douglasmiranda

Writing code from another galaxy.
View GitHub Profile
View pull.go
package main
import (
douglasmiranda / nginx.conf
Created May 4, 2018 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
View nginx.conf
# Advanced config for NGINX
server_tokens off;
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options nosniff;
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
return 301 https://$host$request_uri;
datenow=$(date +%s)
sudo docker ps > /tmp/docker."$datenow"
sudo apt-get update && sudo apt-get install -y lxc-docker
sudo docker start $(tail -n +2 /tmp/docker."$datenow" | cut -c1-12)
# coding=UTF-8
from __future__ import division
import re
# This is a naive text summarization algorithm
# Created by Shlomi Babluki
# April, 2013
class SummaryTool(object):
#-*-coding: utf-8 -*-
This module represents the recommender system for recommending
new friends based on 'mutual friends'.
__author__ = 'Marcel Caraciolo <>'
douglasmiranda / st_cheat.txt
Created Apr 25, 2012 — forked from bjhess/st_cheat.txt
Sublime Text Cheatsheet
View st_cheat.txt
cmd-p Goto Anything ('@' for functions, ':' for line number)
cmd-r Function finder
ctl-g Goto line number
cmd-sft-p Command palette
cmd-sft-f Find in Files
cmd-opt-r Toggle regex when finding
cmd-opt-# Columns
ctr-# Switch columns
You can’t perform that action at this time.