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
=> http://www.webbax.ch/2011/10/21/reinitialiser-le-mot-de-passe-administrateur-sous-prestashop/ | |
1 / Récupérer votre _COOKIE_KEY_ | |
Rendez-vous dans le fichier /config/settings.inc.php et récupérer la valeur de la variable _COOKIE_KEY_, | |
exemple : rESub0yysMZpryFSzZvaRPN9KOFIOzEM5Y6FHage4FOsnV1gN4UZcXkM | |
2 / Ajouter votre nouveau mot de passe |
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
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var f_page = "mooty.d"; // the page name for your fan page, e.g. the 'mooty.d' part of http://facebook.com/mooty.d | |
var t_page = "mooty.d"; // the account name for your main twitter account | |
function add_commas(number) { | |
if (number.length > 3) { | |
var mod = number.length % 3; |
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 | |
// Add to functions.php | |
add_action('login_head', 'custom_wp_login_logo'); | |
function custom_wp_login_logo() { | |
echo '<style type="text/css"> | |
h1 a { | |
background-image:url('. get_bloginfo( 'template_directory' ) .'/img/logo_backoffice.jpg) !important; |
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 | |
ini_set("allow_url_fopen", "1"); | |
require_once(dirname(__FILE__).'/../../config/config.inc.php'); | |
require_once(dirname(__FILE__).'/../../init.php'); | |
// Put your API Key here | |
$api_key = ""; | |
$state_in_transit = Configuration::get('PS_OS_SHIPPING'); |
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
#!/bin/sh | |
# This line kills everething, be carefull, maybe do a screen -ls first to watch what is running | |
screen -ls | grep -o '[0-9]*\.[a0-Z9]*' | while read -r v ; do screen -X -S $v quit; done |
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
#!/bin/bash | |
#-------------------- Config vars -------------------# | |
S3_BUCKET=your_s3_bucket | |
# Files | |
BACKDIR=~/backups | |
BACKTARGET=~/files |
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
git ls-files -i -z --exclude-from=.gitignore | xargs -0 git rm --cached |
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 | |
function substr_paragraph($string, $length = 520, $html = false) { | |
$pos = strpos($string, "</p>",$length); | |
$tag_len = 4; | |
if(empty($pos)){ | |
$pos = strpos($string, "</div>",$length); | |
$tag_len = 5; |
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
#!/bin/bash | |
# Usage "sh script.sh /path/to/check" | |
if [ -z "$1" ]; then | |
vir_dir="`./virus`" | |
else | |
vir_dir="$1" | |
fi | |
mails=mail@domain.tld; |
OlderNewer