Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
I´m a Saint

Alfredo Llanos biojazzard

😇
I´m a Saint
View GitHub Profile
View ie8-ie9-ie10-VM
#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}"
´´´
View gist:11175293
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 Aug 29, 2015
Automatic Deployments with BitBucket Hooks
View deploy.php
<?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 {
/**
View 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 Nov 28, 2014
ProcessWIre SiteMap Generator.
View pw-sitemap-xml.php
<?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 Aug 29, 2015
Search & Replace -R[ecursively] all way down current folder | Delete -R[ecursively] by file extension
View .alias-appendix
# 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 Aug 29, 2015
Repeater Field to PageTable.
View PW_RepeaterField2PageTable.php
<?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 */
View gist:cd1e1a5042bc6bc55298
# 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 Jan 25, 2015
Geoserver | user_projections | for Spanish ZIP codes rendering | CODIGO POSTAL
View Geoserver-user_projections
# 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:
View nombre_de_usuario.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/">
You can’t perform that action at this time.