Skip to content

Instantly share code, notes, and snippets.

View bpardo's full-sized avatar
🎯
Focused on Python, JavaScript, Delphi, Bash, Angular,

__bpardo bpardo

🎯
Focused on Python, JavaScript, Delphi, Bash, Angular,
View GitHub Profile
@bpardo
bpardo / EnableDockerWindowsOnWSL.sh
Created March 29, 2019 11:05
Use docker windows on WSL
#!/bin/bash
echo -e "****************************************************\n"
echo-e "installation of Docker Windows WSL for DOCKER Windows\n"
echo -e "****************************************************\n"
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
@bpardo
bpardo / move_wordpress
Last active December 20, 2017 21:56
Deplacer un blog Wordpress
# Changer l'URL du site
UPDATE wp_options
SET option_value = replace(option_value, 'http://www.ancien-site.com', 'http://www.nouveau-site.com')
WHERE option_name = 'home'
OR option_name = 'siteurl';
# Changer l'URL des GUID
UPDATE wp_posts
SET guid = REPLACE (guid, 'http://www.ancien-site.fr', 'http://www.nouveau-site.fr');