Skip to content

Instantly share code, notes, and snippets.

View ms-studio's full-sized avatar

Manuel Schmalstieg ms-studio

View GitHub Profile
@ms-studio
ms-studio / Contract-Killer-3-fr_FR.md
Created November 8, 2012 15:04 — forked from malarkey/Contract Killer 3.md
The latest version of my ‘killer contract’ for web designers and developers

Le contrat de la mort, version 3

Date de révision: 07/11/2012

Etabli entre nous [company name] et vous [customer name]

En résumé:

Nous ferons toujours tout notre possible pour atteindre vos objectifs, mais il est important de poser les choses sur papier, afin que chacun sache à quoi s'en tenir. Dans ce contrat, vous ne trouverez pas de vocabulaire légal compliqué, ou de longs passages en caractères illisibles. Nous n'avons pas l'intention de vous faire signer quelque chose que vous regretterez plus tard. Ce document servira l'intéret commun des deux parties, maintenant et dans l'avenir.

# BEGIN CACHIFY
<IfModule mod_rewrite.c>
# ENGINE ON
RewriteEngine On
# GZIP FILE
<IfModule mod_mime.c>
RewriteCond %{REQUEST_URI} /$
RewriteCond %{REQUEST_URI} !^/wp-admin/.*
RewriteCond %{REQUEST_METHOD} !=POST
<?php
/**
* WordPress Chosen Taxonomy Metabox
* Author: Helen Hou-Sandi
*
* Use Chosen for a replacement taxonomy metabox in WordPress
* Useful for taxonomies that aren't changed much on the fly and are
* non-hierarchical in nature, as Chosen is for flat selection only.
* You can always use the taxonomy admin screen to add/edit taxonomy terms.
* Categories need slightly different treatment from the rest in order to
@ms-studio
ms-studio / WordPress Webkit Line Height Fixer
Last active August 29, 2015 13:57 — forked from lumpysimon/WordPress Webkit Line Height Fixer
Fix for webkit (Chrome, Safari) adding style="line-height: 1.55;" all over the place in the WordPress content editor.
<?php
/*
Plugin Name: Webkit Line Height Fixer
Plugin URI: https://gist.github.com/lumpysimon/8782859
Description: Remove the annoying inline line-height styles added by Webkit
Version: 1.0
Author: Simon Blackbourn @ Lumpy Lemon
Author URI: http://lumpylemon.co.uk
See also: https://core.trac.wordpress.org/ticket/26975
@ms-studio
ms-studio / sanitize-filename.php
Last active August 29, 2015 13:57 — forked from herewithme/sanitize-filename.php
Adding more problematic characters.
<?php
/*
Plugin Name: No french punctuation and accents for filename
Description: Remove all french punctuation and accents from the filename of upload for client limitation (Safari Mac/IOS)
Plugin URI: http://www.beapi.fr
Version: 1.0
Author: BeAPI
Author URI: http://www.beapi.fr
/*
@ms-studio
ms-studio / snowden-ietf93.md
Created October 12, 2015 20:27 — forked from mnot/snowden-ietf93.md
Transcript of Edward Snowden's comments at IETF93.
INITIALISATION
==============
load wp-config.php
set up default constants
load wp-content/advanced-cache.php if it exists
load wp-content/db.php if it exists
connect to mysql, select db
load object cache (object-cache.php if it exists, or wp-include/cache.php if not)
load wp-content/sunrise.php if it exists (multisite only)
Here are a few questions that will tee us up for a good conversation:
- Can you tell me about your project in a few sentences?
- What’s the timeframe? Does a certain event depend on this project launching?
- What are you looking for from us? Do you want us to design, build, and launch the whole site? Or do you have developers or other partners lined up and only need us for design?
- Have you already started on any part of the project? Do you have existing work? A new logo? Some rough designs or ideas for the site?
- How large is your team? What are the roles you envision on your end?
- How did you hear about our work? What specifically interests you about it? Any projects that you’re keen on?
- How much money have you set aside for this project?
- Are you talking to others about this project? Might we ask how many? What do you like about their work?
@ms-studio
ms-studio / simple-git-branching-model.md
Created December 9, 2016 21:45 — forked from jbenet/simple-git-branching-model.md
a simple git branching model

a simple git branching model

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@ms-studio
ms-studio / WP YouTube Video EMbed Override
Created April 30, 2018 08:31 — forked from gabrielmerovingi/WP YouTube Video EMbed Override
Override the default WordPress oEmbed for YouTube Videos to always use the myCRED Video Shortcode.
/**
* Override WP oEmbed
* @version 1.0
*/
add_filter( 'embed_oembed_html', 'mycred_override_video_shortcode', 999, 4 );
function mycred_override_video_shortcode( $original, $url, $attr, $post_ID ) {
// If myCRED is not enabled
if ( ! function_exists( 'mycred_render_shortcode_video' ) ) return $original;
// Get cache