Skip to content

Instantly share code, notes, and snippets.

@bystrano
bystrano / spip-zone.sh
Last active August 14, 2018 12:20
Bosser sur la zone avec git
###########################################################
## Création d'un nouveau plugin sur la zone ###############
###########################################################
# On commence par récupérer les plugins de la zone, mais sans prendre le contenu des dossiers
svn checkout --depth=immediates svn://zone.spip.org/spip-zone/_plugins_
# On crée ensuite son plugin et un trunk
cd _plugins_
mkdir mon_plug
@kent1D
kent1D / phpcs.xml
Last active September 18, 2017 13:31 — forked from brunob/phpcs.xml
PHP_CodeSniffer pour SPIP
<?xml version="1.0"?>
<ruleset name="SPIP">
<!--
Liens utiles
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
https://github.com/ucfcdl/fuelphp-phpcs/tree/master/Standards/FuelPHP
https://github.com/vanilla/addons/tree/master/standards/Vanilla
-->
<description>Coding rules for SPIP</description>
@zross
zross / index.html
Last active July 25, 2016 23:57
TopoJSON to LeafletJS Using D3.js
<html>
<head>
<title>HTML5</title>
<!--D3 code stolen from: http://bost.ocks.org/mike/leaflet/#init-->
<!--This file used in blog post Spatial data on a diet: tips
for file size reduction using TopoJSON (http://bit.ly/1jvHiqF)-->
<meta charset="utf-8" />
@brunob
brunob / phpcs.xml
Created December 8, 2015 19:57
PHP_CodeSniffer pour SPIP
<?xml version="1.0"?>
<ruleset name="SPIP">
<!--
Liens utiles
https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards
https://github.com/ucfcdl/fuelphp-phpcs/tree/master/Standards/FuelPHP
https://github.com/vanilla/addons/tree/master/standards/Vanilla
-->
<description>Coding rules for SPIP</description>
@brunob
brunob / backup.sh
Created July 22, 2015 17:05
Simple backup
#!/bin/bash
date=$(date +%Y%m%d)
old=$(date +%Y%m%d -d '7 days ago')
###
# Pamrametres du script
###
# Chemin du repertoire de la sauvegarde