Skip to content

Instantly share code, notes, and snippets.

View biojazzard's full-sized avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
@biojazzard
biojazzard / ie8-ie9-ie10-VM
Last active August 29, 2015 13:56
VMs en OSX
#ie8-ie9-ie10-VM
+ Instalar [VirtualBox] para Mac
+ Ir a: [ModernIE](http://loc.modern.ie/es-es/virtualization-tools#downloads)
+ Bajarse una Máquina-Config de las disponibles. (No todavía, copiar el texto de cURL)
´´´
curl -O -L "http://www.modern.ie/vmdownload?platform=mac&virtPlatform=virtualbox&browserOS=IE8-WinXP&filename=VirtualBox/IE8_WinXP/Mac/IE8.WinXP.For.MacVirtualBox.part{1.sfx,2.rar}"
´´´
@biojazzard
biojazzard / gist:11175293
Created April 22, 2014 11:36
brew php53 stuff
To enable PHP in Apache add the following to httpd.conf and restart Apache:
LoadModule php5_module /usr/local/opt/php53/libexec/apache2/libphp5.so
The php.ini file can be found in:
/usr/local/etc/php/5.3/php.ini
✩✩✩✩ PEAR ✩✩✩✩
If PEAR complains about permissions, 'fix' the default PEAR permissions and config:
chmod -R ug+w /usr/local/Cellar/php53/5.3.28/lib/php
@biojazzard
biojazzard / deploy.php
Last active August 29, 2015 14:09
Automatic Deployments with BitBucket Hooks
<?php
# Originally seen here: 'Using Bitbucket for Automated Deployments'
# http://brandonsummers.name/blog/2012/02/10/using-bitbucket-for-automated-deployments/
# Is it safe servers time ?
#date_default_timezone_set('America/Los_Angeles');
class Deploy {
/**
@biojazzard
biojazzard / typekit.html
Created November 28, 2014 09:21
Typekit.html
<script>
WebFontConfig = {
typekit: { id: 'bwr6gne' },
google: {
families: ['Roboto']
}
};
(function() {
var wf = document.createElement('script');
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
@biojazzard
biojazzard / pw-sitemap-xml.php
Created November 28, 2014 17:38
ProcessWIre SiteMap Generator.
<?php
/**
*
* Based on Ryan Cramer´s Code
* ProcessWire Template to power a sitemap.xml
*
* Purpose: Render sitemap.xml for this special conditions
*
* / [home](/) Without children!
* /page-that-holds-the-tree/ [Page that holds the tree of the web.] With all his children.
@biojazzard
biojazzard / .alias-appendix
Last active August 29, 2015 14:11
Search & Replace -R[ecursively] all way down current folder | Delete -R[ecursively] by file extension
# Add this functions at the end of your ~/.alias file [OSX]
# Create .alias file at ~/ if not present.
# Search Replace Recursively
# $ replace searchTerm replaceTerm
replace () {
LANG=C && LC_ALL=C && LANG_ALL=C && find . -type f -name '*.html' -exec sed -i '' s/${1}/${2}/ {} +
}
# delete files recursively by extension
# $ delbyext html
@biojazzard
biojazzard / PW_RepeaterField2PageTable.php
Last active August 29, 2015 14:11
Repeater Field to PageTable.
<?php
/* If You use it in a template file */
$useMain = false;
/* Repeater to PageTable */
/* Select the pages with the Repeater Field we want to migrate. Vía:Template Name */
# install homebrew-cask
brew tap phinze/homebrew-cask
brew install brew-cask
# essential
brew cask install adium
brew cask install caffeine
brew cask install dropbox
brew cask install one-password
@biojazzard
biojazzard / Geoserver-user_projections
Created January 25, 2015 17:43
Geoserver | user_projections | for Spanish ZIP codes rendering | CODIGO POSTAL
# File sampled form here:
# http://spatialreference.org/ref/sr-org/7297/geoserver/
# Geoserver. Config. Needed to import data from:
# http://centrodedescargas.cnig.es/CentroDescargas/
# 1.-Put this custom SRS handlers in GEOSERVER_DATA_DIR
# 2.-In OSX: /Applications/GeoServer.app/Contents/Java/data_dir/user_projections/epsg.properties
# 3.-Restart Geoserver.
# Import SRS files to Geoserver.
#
# epsg.propertieslines to add:
@biojazzard
biojazzard / nombre_de_usuario.conf
Created February 3, 2015 15:06
apache_user_conf
# File Location: /private/etc/apache2/users
# File name: nombre_de_usuario.conf
# Load Correct Cellar
#LoadModule php5_module /usr/local/opt/php53/libexec/apache2/libphp5.so
#LoadModule php5_module /usr/local/opt/php54/libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/opt/php55/libexec/apache2/libphp5.so
#Main localhost DIR
DocumentRoot "/Users/nombre_de_usuario/Sites/"
<Directory "/Users/nombre_de_usuario/Sites/">