Skip to content

Instantly share code, notes, and snippets.

View juliancantillo's full-sized avatar
:octocat:

Julian Cantillo juliancantillo

:octocat:
View GitHub Profile
@juliancantillo
juliancantillo / nginx.conf
Created March 1, 2016 20:31 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@juliancantillo
juliancantillo / comment.php
Created January 29, 2016 21:51 — forked from Meroje/comment.php
TimeDiff For Humans
<?php
use Carbon\Carbon;
class Comment extends Eloquent {
protected $guarded = array();
protected $softDelete = true;
public static $rules = array();
@juliancantillo
juliancantillo / CarbonLocale.php
Created January 29, 2016 21:51 — forked from IsraelOrtuno/CarbonLocale.php
Carbon Locale - Use Carbon diffForHuman in different languages with Laravel Lang class
<?php
/**
- * Carbon diffForHumans multi-language.
- * Inspired in a code made by Meroje (https://gist.github.com/Meroje/7783731)
- * This code has been improved as in that original version was only showing
- * past date differences. Not it's able to show differences in past and future.
- *
- * Use it this way:
- *