This file contains 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
UPDATE wp_options SET option_value = replace(option_value, 'http://www.old-domain.com', 'http://www.new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://www.old-domain.com','http://www.new-domain.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.old-domain.com', 'http://www.new-domain.com'); |
This file contains 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
sudo apt-get update | |
sudo apt-get install fglrx-updates |
This file contains 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
/** | |
* Valide un IBAN via la methode des modulo 97. | |
* @descr Attention ne valide que la forme pas la validite bancaire | |
* @argument string iban | |
* @returns bool | |
*/ | |
function validateIban (iban) { | |
const ibanValidationModulo = 97; | |
// On force les caractères alphabétiques en majuscule |
This file contains 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 | |
$doc = fopen('./debug.log', 'w+b'); | |
fwrite($doc, "GENERATED AT ".time()."\n\n"); | |
require_once('./curl.php'); | |
/** | |
* | |
*/ | |
function APICALL($methode,$url,$data,$encod=null){ | |
global $doc; | |
fwrite($doc, "Appel de la fonction APICALL\n"); |
This file contains 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
gsettings set org.gnome.desktop.interface can-change-accels true | |
gsettings set org.gnome.desktop.interface can-change-accels false |
This file contains 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
Options +FollowSymlinks | |
RewriteEngine on | |
# On Rackspace and getting 404's? Uncoment this by removing the # : | |
# RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
<IfModule mod_rewrite.c> |
This file contains 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
su -c 'yum install gstreamer-{ffmpeg,plugins-{good,ugly,bad{,-free,-nonfree}}}' |
This file contains 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 | |
class Bcrypt | |
{ | |
private $rounds; | |
public function __construct($rounds = 12) | |
{ | |
if (CRYPT_BLOWFISH != 1) { | |
throw new Exception("bcrypt not supported in this installation. See http://php.net/crypt"); | |
} |
This file contains 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
<snippet> | |
<content><![CDATA[ | |
text-shadow:${1:0 -1px 0 rgba(0, 0, 0, 0.8)}, ${2:0 1px 0 rgba(255, 255, 255, 0.5)}; | |
]]></content> | |
<tabTrigger>text-shadow</tabTrigger> | |
<scope>source.css</scope> | |
</snippet> |
This file contains 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 | |
// unload the original one | |
remove_action( 'woocommerce_before_subcategory_title', 'woocommerce_subcategory_thumbnail'); | |
// load mine | |
add_action( 'woocommerce_before_subcategory_title', 'woocommerce_subcategory_thumbnail_custom', 10); | |
if ( ! function_exists( 'woocommerce_subcategory_thumbnail_custom' ) ) { | |
function woocommerce_subcategory_thumbnail_custom( $category ) { | |
global $woocommerce; |