https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css
<link rel="https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css">
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding=utf-8 | |
import sys | |
import re | |
import simplekml | |
import argparse | |
import random | |
def splitByLines(wkt): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# BEGIN Expire headers | |
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresDefault "access plus 7200 seconds" | |
ExpiresByType image/jpg "access plus 2592000 seconds" | |
ExpiresByType image/jpeg "access plus 2592000 seconds" | |
ExpiresByType image/png "access plus 2592000 seconds" | |
ExpiresByType image/gif "access plus 2592000 seconds" | |
ExpiresByType image/svg "access plus 2592000 seconds" | |
ExpiresByType font/woff "access plus 2592000 seconds" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', function() { | |
add_rewrite_rule( | |
'\?(.*)$', | |
'/tickets/?$matches[1]', | |
'top' ); | |
} ); | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Shortcode usage : | |
* [ArrowTitle]Mon titre[/ArrowTitle] | |
* [ArrowTitle stroke_color="#00FF00" fill="#000000" border_width="10" drop_shadow=1 shadow_color="#FF0000"]Mon titre[/ArrowTitle] | |
*/ | |
function do_shortcode_arrow_titre ($atts, $content=null) { | |
$atts = shortcode_atts( | |
array( | |
'orientation' => 'right', |
Créer le blog sur l'administration du réseau pour accueillir la migration et noter l'ID du blog (%BLOG_ID%
ci-après)
On part du principe que les fichiers se trouvent sur le même serveur. Sinon, se rapporter à la documentation RSync ou transférer les fichiers en FTP.
Créer le répertoire pour l'hébergement des fichiers liés du blog (attachments) :
mkdir -p new_network/wp-content/uploads/sites/%BLOG_ID%/
Copier les fichiers existants :
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, browser_cookie3, re, json, datetime, os | |
from dotenv import load_dotenv | |
from urllib.request import urlopen | |
# Load environment variables from the .env file | |
load_dotenv() | |
''' Get cookie from Firefox ''' | |
cj = browser_cookie3.firefox(domain_name='.google.com') | |
headers = { | |
"Host": "kidsmanagement-pa.clients6.google.com", |