Skip to content

Instantly share code, notes, and snippets.

View asaelx's full-sized avatar

Asael Jaimes asaelx

  • Monterrey, México
View GitHub Profile
@asaelx
asaelx / nginx_config
Last active August 29, 2015 14:19
Nginx Config for LEMP
server {
listen 80;
root /vagrant;
index index.php index.html index.htm;
server_name veinte.dev;
location / {
try_files $uri /index.php;
@asaelx
asaelx / setup.sh
Created April 17, 2015 15:06
Provision for LEMP
#!/usr/bin/env bash
#Config
NAME="app"
USER="asaelx"
MYSQL_PASSWORD="secret"
echo "=====Configuring Virtual Machine..."
echo "=====Getting last updates..."
@asaelx
asaelx / Vagrantfile
Created April 17, 2015 15:07
Vagrantfile for ubuntu/trusty32
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty32"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provision "shell", path: "setup.sh"
@asaelx
asaelx / nginx_config
Created July 20, 2015 21:46
Nginx Config for Magento
server {
listen 80;
server_name domain.com www.domain.com;
root /var/www/domain.com;
location / {
index index.html index.php;
## If missing pass the URI to Magento's front handler
try_files $uri $uri/ @handler;
@asaelx
asaelx / vidtogif.sh
Last active August 29, 2015 14:25 — forked from imkevinxu/vidtogif.sh
Convert an animated video to gif from http://chrismessina.me/b/13913393/mov-to-gif
# Convert an animated video to gif
# Works best for videos with low color palettes like Dribbble shots
#
# @param $1 - video file name like `animation.mov`
# @param @optional $2 - resize parameter as widthxheight like `400x300`
#
# Example: vidtogif animation.mov 400x300
# Requirements: ffmpeg and gifsicle. Can be downloaded via homebrew
#
# http://chrismessina.me/b/13913393/mov-to-gif

Magento Cheat Sheet

Page path:

<?php echo $this->getUrl('mypage'); ?>

Image path:

<?php echo $this->getSkinUrl('images/button.gif'); ?>
@asaelx
asaelx / setup.sh
Last active December 19, 2015 08:38
#!/usr/bin/env bash
# # # # # # # # # #
# Developer Stuff #
# # # # # # # # # #
# Install Homebrew
echo "Installing Homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@asaelx
asaelx / blade-mixins.jade
Last active December 21, 2015 11:34 — forked from JaminFarr/blade-mixins.pug
Laravel Blade mixins for jade for use with laravel-elixir-jade
//- For use with https://github.com/CREEATION/laravel-elixir-jade
mixin blade()
='\r\n'
block
='\r\n'
mixin phpblock()
!='\r\n<?php '
/* Reset */
*, *:before, *:after
margin: 0
padding: 0
outline: 0
box-sizing: border-box
html,
body
height: 100%
@asaelx
asaelx / _grid.sass
Last active January 12, 2016 04:06
$columns: 12
$gutter: 0
$max-width: 100%
=breakpoint($size)
@media only screen and ($size)
@content
*, *:after, *:before
margin: 0