Skip to content

Instantly share code, notes, and snippets.

View julienbechade's full-sized avatar

Julien Béchade julienbechade

  • Stockholm, Sweden
View GitHub Profile

##Auto-deploy with php and github on an Ubuntu Amazon EC2 box

Fork from other gist Build auto-deploy with php and git(hub) on an EC2 AMAZON AMI instance - Covers a basic Ubuntu isntall

When ever it says www-data below, it's the user Apache runs under. So if your apache user is called something else, change it to that.

##Install git

sudo aptitude install git-core
# Do the following command
# Ref: http://soderlind.no/archives/2011/08/26/running-wordpress-locally-on-mac-os-x-lion/
# Chown / Chmod wordpress folder
$ sudo chown -R :_www wordpress
$ sudo chmod -R g+w wordpress
# Add to "wp-config.php"
define('FS_METHOD', 'direct');
@media only screen and (min-width: 320px) {
/* Small screen, non-retina */
}
@media
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px),
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px),
@julienbechade
julienbechade / gist:3150171
Created July 20, 2012 10:59 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@julienbechade
julienbechade / dabblet.css
Created March 5, 2012 16:18
Test <div> overflow
/**
* Test <div> overflow
*/
body {
background-color: #fff;
}
header {
position: absolute;
@julienbechade
julienbechade / dabblet.css
Created March 5, 2012 16:09
Test <div> overflow
/**
* Test <div> overflow
*/
body {
background-color: #fff;
}
header {
position: absolute;
@julienbechade
julienbechade / dabblet.css
Created March 5, 2012 15:51
Test <div> overflow
/**
* Test <div> overflow
*/
body {
background-color: #fff;
}
header {
position: absolute;