Skip to content

Instantly share code, notes, and snippets.

View jlambe's full-sized avatar
🤔

Julien Lambé jlambe

🤔
View GitHub Profile
@internationils
internationils / gandihost-sslcert.sh
Last active February 20, 2017 16:40
Create and apply Letsencrypt certificates to Gandi vhosts using certbot
#!/bin/sh
# ---------------------------------------------------------------------
# ---------------------------------------------------------------------
# sslgen-gandihosts.sh
#
# v04 - 2016-08-10 combibe create and update loop
# v03 - 2016-08-10 more cleanups
# v02 - 2016-08-04 lots of cleanups, improved loop for updates
# v01 - basic functionality
@tommymarshall
tommymarshall / PagesController.php
Last active August 29, 2015 14:13
Route::post() requests never get matched, requests always end up matching Route::get(). Here's a gif of what's happenning: http://cl.ly/image/3s0X0q2p0r1o
<?php
class PagesController extends BaseController
{
public function home() {
return View::make("pages.home");
}
public function about() {
return View::make("pages.about");
@tommymarshall
tommymarshall / routes.php
Created January 9, 2015 23:11
Themosis Routes
<?php
// Home
Route::get('home', 'PagesController@home');
// @about method always fires when viewing a page, no matter the page
Route::any('page' , [['about'], 'uses' => 'PagesController@about']);
Route::any('page' , [['vision'], 'uses' => 'PagesController@vision']);
Route::any('archive' , ['blog', 'uses' => 'BlogController@index']);
@AlexandreKilian
AlexandreKilian / composer.json
Created April 25, 2014 16:28
Installing Wordpress and Themosis with Composer
{
"name": "Themosis Composerinstall",
"author": "Alexandre Kilian",
"repositories": [
{
"type": "composer",
"url": "http://wpackagist.org"
},
{
"type": "package",
@tomgp
tomgp / index.html
Last active May 28, 2019 04:31
hemicycle
<html>
<style type="text/css">
.team_one{
fill:#FF4040;
}
.team_two{
fill:#FF9640;
}
.team_three{
fill:#33CCCC;
<?php
namespace Acme\Services;
class Container {
private $services = array();
public function set($name, $instance)
{
$this->services[$name] = $instance;
}
@petenelson
petenelson / custom-post-type-title-placeholder.php
Created May 2, 2013 14:51
WordPress - Change custom post type "Enter Title Here" placeholder
// via http://www.paulund.co.uk/change-the-enter-title-text-for-custom-post-types
// just saving it here for later reference
function change_default_title( $title ){
$screen = get_current_screen();
if ( $screen->post_type == 'product' ) {
return 'Enter New Product Here';
}
}
add_filter( 'enter_title_here', 'change_default_title' );
@markjaquith
markjaquith / plugin-deploy.sh
Created November 16, 2012 05:04 — forked from scribu/plugin-deploy.sh
Plugin deploy script
#!/bin/bash
# args
MSG=${1-'deploy from git'}
BRANCH=${2-'trunk'}
# paths
SRC_DIR=$(git rev-parse --show-toplevel)
DIR_NAME=$(basename $SRC_DIR)
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH
@JeffreyWay
JeffreyWay / snippet.xml
Created September 13, 2012 20:23
Laravel Resource - Sublime Text 2 Snippet
<snippet>
<content><![CDATA[
// ${1} Resource
Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index'));
Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show'));
Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new'));
Route::get('${1}s/(:any)edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit'));
Route::post('${1}s', '${1}s@create');
Route::put('${1}s/(:any)', '${1}s@update');
Route::delete('${1}s/(:any)', '${1}s@destroy');
@JeffreyWay
JeffreyWay / gist:3185773
Created July 27, 2012 02:01
PHP Installation Options
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/private/etc \
--with-apxs2=/usr/sbin/apxs \
--enable-cli \
--with-config-file-path=/etc \
--with-libxml-dir=/usr \
--with-openssl=/usr \