Skip to content

Instantly share code, notes, and snippets.

@saintplay
saintplay / .htacess
Created July 24, 2017 14:22
Cache-Control .htaccess
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType text/css "access plus 7 days"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType text/javascript "access plus 14 days"
ExpiresByType application/x-javascript "access plus 14 days"
ExpiresByType image/ico "access plus 14 days"
ExpiresByType image/jpg "access plus 7 days"
ExpiresByType image/jpeg "access plus 14 days"
ExpiresByType image/gif "access plus 14 days"
@saintplay
saintplay / php.json
Created February 11, 2017 14:38
PHP Snippets for VSCODE
{
/*
// Place your snippets for PHP here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
<Directory "/path/to/your/project">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</Directory>
@saintplay
saintplay / GOBLIN LICENCE_ES.MD
Last active December 2, 2016 03:23
Licencia para compartir trabajos finales o exámenes!! 🐷🐷🐷

GOBLIN LICENCE (GLIN)

Copyright (c) 2017 Diego Jara

Por la presente NO se autoriza, de forma gratuita, a cualquier persona que haya obtenido una copia de este software o material de estudio (el "Material"), a utilizar el Material, no garantizando los derechos de usar, copiar, modificar, fusionar, publicar, distribuir, sublicenciar, y/o vender copias de este Material, a excepción de contar con permiso explícito de las partes originales(autor intelectual del Material) y/o intermediarios.

El aviso de copyright anterior y este aviso de permiso tendrán que ser incluidos en todas las copias o partes sustanciales del Material.

EL MATERIAL SE ENTREGA "TAL CUAL", SIN GARANTÍA DE NINGÚN TIPO, YA SEA EXPRESA O IMPLÍCITA, INCLUYENDO, A MODO ENUNCIATIVO, CUALQUIER GARANTÍA DE COMERCIABILIDAD, IDONEIDAD PARA UN FIN PARTICULAR Y NO INFRACCIÓN. EN NINGÚN CASO LOS AUTORES O TITULARES DEL COPYRIGHT INCLUIDOS EN ESTE AVISO SERÁN RESPONSABLES DE NINGUNA RECLAMACIÓN, DAÑOS U OTRAS RESPONSABILIDADES, YA SEA EN UN LITIGIO, AGRA

@saintplay
saintplay / normalize.scss
Created August 29, 2016 22:47
Normalize.scss 2016 v.4.1.1 without comments
html {
font-family: sans-serif;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
}
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
{
"tab_size": 2,
"translate_tabs_to_spaces": false,
"word_wrap": "false"
}
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
" Basic configurations
set nocompatible
set hidden
set nobackup
set noswapfile
set number
"Pathogen configuration
execute pathogen#infect()
syntax on
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
# YAOURT CONFIG