Skip to content

Instantly share code, notes, and snippets.

View maxperei's full-sized avatar
♻️

Maxime Pereira-Lima maxperei

♻️
View GitHub Profile
## Coller la totalite dans champs SQL de phpMyAdmin ##
## ATTENTION A NE PAS METTRE DE SLASH A LA FIN DES URL ##
# CHANGER URL DU SITE
UPDATE wp_options
SET option_value = REPLACE(option_value, 'http://www.vieuxsite.fr', 'http://www.nouveausite.fr')
WHERE option_name = 'home'
@maxperei
maxperei / discogs-oauth.php
Last active June 9, 2018 16:10 — forked from morecchia/discogs-oauth.php
Example OAuth access to the Discogs API
<?php
// This example uses a fork of the OAuthSimple library for PHP
// found here: https://github.com/tonefolder/oauthsimple/tree/master/php
//
// For more information about the OAuth process for applications
// accessing Discogs API, read:
// http://www.discogs.com/developers
require 'oauth.php';
$oauthObject = new OAuthSimple();
$scope = 'https://api.discogs.com';
@maxperei
maxperei / post-receive
Created December 23, 2019 09:13
craft 3 deploy ovh mutu
#!/bin/bash
set -eu
while read oldrev newrev ref
do
branch=`echo $ref | cut -d/ -f3`
if [[ "master" = "$branch" ]];
then