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
<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 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
#! /bin/sh | |
# Usage "sh script.sh /path/to/check chmod" | |
# TODO : Mtime in find ... | |
if [ -z "$1" ]; then | |
DIR="`.`" | |
else | |
DIR="$1" | |
fi |
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
=> 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 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
#!/bin/bash | |
echo "SQL Backup in Progress" | |
#Date | |
NOWDATE=`date '+%H%M-%m-%d-%Y'` | |
# your MySQL server's name | |
SERVER=domain.com |
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
#!/bin/bash | |
echo "Backup in progress" | |
nowdate=`date '+%H%M-%m-%d-%Y'` | |
# your MySQL server's name | |
SERVER=domain.com | |
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
# Find all files heavier >20M / human readable | |
find / -type f -size +20M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }' | |
# Find all heavy folders | |
du -sh /* | |
# OR | |
du -h | sort -h | |
# Silent Curl for cron ? | |
curl --silent http://domain.com/cron.php |
NewerOlder