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 | |
if [ $# -lt 3 ]; then | |
echo "Example: pdf old * -> Rename extension pdf to old" | |
fi | |
files=${@:3:1000} | |
rename "s/.$1/.$2/" $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
<?php | |
$cURLSession = curl_init(); | |
curl_setopt($cURLSession, CURLOPT_URL, sprintf('http://graph.facebook.com/%s', 'XXXXXXXXXXX')); // remplacer XXXXXXXXXXX par l'id de votre page Facebook | |
curl_setopt($cURLSession, CURLOPT_RETURNTRANSFER, 2); | |
curl_setopt($cURLSession, CURLOPT_CONNECTTIMEOUT, 2); | |
$apiResult = curl_exec($cURLSession); | |
curl_close($cURLSession); | |
$apiResult = json_decode($apiResult); |
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 | |
$cURLSession = curl_init(); | |
curl_setopt($cURLSession, CURLOPT_URL, sprintf('http://graph.facebook.com/%s', 'XXXXXXXXXXX')); // remplacer XXXXXXXXXXX par l'id de votre page Facebook | |
curl_setopt($cURLSession, CURLOPT_RETURNTRANSFER, 2); | |
curl_setopt($cURLSession, CURLOPT_CONNECTTIMEOUT, 2); | |
$apiResult = curl_exec($cURLSession); | |
curl_close($cURLSession); | |
$apiResult = json_decode($apiResult); |
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
<?xml version="1.0"?> | |
<config> | |
<global> | |
<!-- Add cache backend options to your local.xml file in app/etc --> | |
<!-- BEGIN --> | |
<cache> | |
<backend_options> | |
<hashed_directory_level>1</hashed_directory_level> | |
<hashed_directory_umask>0777</hashed_directory_umask> |
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
# Auslesen der Festplatten Einstellungen (sda für erste S-ATA Festplatte. | |
# Bitte hier bei IDE Platten hda, hdb usw. verwenden) | |
sudo hdparm -v /dev/sda | |
# Ausgabe: | |
#/dev/sda: | |
# multcount = 16 (on) | |
# IO_support = 1 (32-bit) | |
# readonly = 0 (off) | |
# readahead = 256 (on) |
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 smartctl -H /dev/sda | |
# Ausgabe: | |
# | |
# smartctl 5.40 2010-03-16 r3077 [x86_64-unknown-linux-gnu] (local build) | |
# Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net | |
# | |
# === START OF READ SMART DATA SECTION === | |
# SMART overall-health self-assessment test result: PASSED |
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
[xdebug] | |
xdebug.remote_enable = on | |
xdebug.remote_handle = dbgp | |
xdebug.remote_host = localhost | |
xdebug.remote_port = 9000 | |
xdebug.idekey="netbeans-xdebug" |
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
# Tanks to Christian Kapitzke for magento .htaccess patch | |
#RewriteBase / | |
# Replace CUSTOM_ADMIN_NAME with your one's. | |
RewriteCond %{REQUEST_URI} !.*admin/CUSTOM_ADMIN_NAME.* | |
RewriteRule ^.*(CUSTOM_ADMIN_NAME.*) admin/$1 [L,NS,R=301] |
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 | |
/** | |
* Auszug aus der Datei AreaTest.php im Verzeichnis dev/tests/integration/testsuite/Mage/Core/Model/App | |
* Im Test wird doe Store-Config über einen DocBlock definiert. | |
*/ | |
//... | |
/** |
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
alias clear-magento-cache="rm -Rf var/cache/mage--*" |
OlderNewer