Skip to content

Instantly share code, notes, and snippets.

View pixeline's full-sized avatar
😄
Heaven, I'm in heaven, And my heart beats so that I can hardly speak !

Alexandre Plennevaux pixeline

😄
Heaven, I'm in heaven, And my heart beats so that I can hardly speak !
View GitHub Profile
@pixeline
pixeline / Contract Killer 3.md
Last active January 2, 2023 18:10 — forked from flopreynat/Contract Killer 3.md
Website Design & Development Contract template, heavily modified version of shoogledesigns's French translation of @malarkey's Contract Killer 3.

Contrat de création & réalisation de la présence en ligne du projet [Nom du projet]

Date: [4 Septembre 2013], [ville du prestataire], [pays du prestataire]

Entre moi, [Nom du prestataire] et vous [Nom de la société client]

Résumé

Notre volonté est de toujours donner notre maximum pour répondre à vos besoins et attentes, mais il est important que nous couchions sur papier les modalités de notre relation commerciale afin que chacun de nous partagions le même cadre de référence; qui doit faire quoi et à quel moment, et ce qui se passera si quelque chose ne se passait pas comme prévu. Vous ne trouverez aucun jargon juridique compliqué ou de longs passages de texte incompréhensibles dans ce contrat. Nous n’avons aucune volonté de vous amener à signer quelque chose que vous pourriez regretter par après. Nous souhaitons que le meilleur intérêt des deux parties prévale, dès aujourd’hui et pour la durée de ce contrat.

Contract Killer 3 (french version)

Date de Révision: 07/11/2012

Entre nous [la raison sociale de votre entreprise] et vous [la raison sociale de votre client]

Résumé:

Nous ferons toujours de notre mieux pour répondre à vos besoins et à vos attentes, mais il est important pour nous comme pour vous d’avoir une trace écrite des tenants et aboutissants de notre relation, et des éventualités en cas d’un quelconque désaccord. Vous ne trouverez ni termes légaux complexes, ni longs passages interminables et incompréhensibles dans ce contrat. Nous n’avons aucune volonté de vous piéger en vous faisant signer quoi que ce soit que vous seriez amené ensuite à regretter. Nous voulons juste ce qu’il y a de mieux pour les deux parties, maintenant et dans le futur.

@adamcbrewer
adamcbrewer / node.sh
Created July 23, 2013 08:38
NODE: Run a daemon node.js server and create virtualhost to forward all site traffic to the specified port.
# This command will make sure the process persists
# even after you log out of a session
node server.js >/dev/null 2>&1 &
@frankiejarrett
frankiejarrett / gist:5544469
Last active June 17, 2019 16:13
Return an attachment ID using a URL in WordPress
<?php
/**
* Return an ID of an attachment by searching the database with the file URL.
*
* First checks to see if the $url is pointing to a file that exists in
* the wp-content directory. If so, then we search the database for a
* partial match consisting of the remaining path AFTER the wp-content
* directory. Finally, if a match is found the attachment ID will be
* returned.
*
@JoostKiens
JoostKiens / functions.php
Last active April 22, 2019 09:58
Improve the WordPress caption shortcode with HTML5 figure & figcaption, microdata & wai-aria attributes
<?php
/**
* Improves the WordPress caption shortcode with HTML5 figure & figcaption, microdata & wai-aria attributes
*
* Author: @joostkiens
* Licensed under the MIT license
*
* @param string $val Empty
* @param array $attr Shortcode attributes
* @param string $content Shortcode content
@fideloper
fideloper / vhost.py
Last active June 17, 2024 11:58
Create vHost Ubuntu Lamp-Server (bash and python)
#! /usr/bin/python
from sys import argv
from os.path import exists
from os import makedirs
from os import symlink
from os import system
import getopt
#
@ericrasch
ericrasch / first-paragraph-class.php
Created March 29, 2012 21:26
WordPress: Add Class to first Paragraph in WordPress the_content; (add this to the functions.php in your Theme)
<?php
/* =BEGIN: Add Class to first Paragraph in WordPress the_content();
Source: http://webdevbits.com/wordpress/add-class-to-first-paragraph-in-wordpress-the_content/
---------------------------------------------------------------------------------------------------- */
function first_paragraph($content){
// Testing to see if the content is a Page or Custom Post Type of school, if so, display the text normally (without the class = intro).
if ( is_page() || ('school' == get_post_type() ) ) {
return preg_replace('/<p([^>]+)?>/', '<p$1>', $content, 1);
} else {
return preg_replace('/<p([^>]+)?>/', '<p$1 class="intro">', $content, 1);
<!doctype html>
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ -->
<html>
<head>
<title>iOS 8 web app</title>
<!-- CONFIGURATION -->
@mattboon
mattboon / gist:1275191
Created October 10, 2011 12:32
WordPress - Query Custom Post Type and taxonomy term by ID
<?php
// gets the ID from a custom field to show posts on a specific page
$buildType = get_post_meta($post->ID, 'build_type_id', true);
// run query
query_posts(array(
'post_type' => 'portfolio',
'showposts' => -1,
'tax_query' => array(
array(
@zircote
zircote / ssh.sh
Created September 26, 2011 21:45
Convert a AWS PEM into a ssh pub key
ssh-keygen -y -f private_key1.pem > public_key1.pub