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
#To zip a folder | |
zip -9 -r <zip file> <folder name> | |
#To zip a single file: | |
zip -9 <zip file> <filename> | |
#Use "-9" for best compression. The compressed file works fine with Windows XP compression tool. |
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
cd /usr/share/fonts/truetype | |
sudo thunar | |
#Ordner erstelln und öffnen | |
#Entsprechende Datein kopieren | |
sudo fc-cache -f |
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
array( | |
'AED' => array( | |
'display_name' => 'UAE Dirham', | |
'numeric_code' => 784, | |
'default_fraction_digits' => 2, | |
'sub_unit' => 100, | |
), | |
'AFN' => array( | |
'display_name' => 'Afghani', | |
'numeric_code' => 971, |
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
/******************************************************************************* | |
* Radio/Checkboxes HACK | |
*******************************************************************************/ | |
input[type=checkbox]:not(old), | |
input[type=radio ]:not(old){ | |
width : 2em; | |
margin : 0; | |
padding : 0; | |
font-size : 1em; | |
opacity : 0; |
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
<?php | |
/* | |
########################################################################## | |
# PHP Benchmark Performance Script # | |
# © 2010 Code24 BV # | |
# # | |
# Author : Alessandro Torrisi # | |
# Company : Code24 BV, The Netherlands # | |
# Date : July 31, 2010 # | |
# version : 1.0 # |
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
<?php | |
$netto = 1.50; | |
$mwsatz = 1.19; //19% | |
$brutto = $netto * $mwsatz; | |
$mwst = $brutto - $netto; | |
echo 'OUTPUT:'."\n"; |
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
$laenderkennung_translate = false; | |
$laenderkennung = $_POST['land']; | |
$bankleitzahl = $_POST['bankleitzahl']; | |
$kontonummer = $_POST['kontonummer']; | |
while(strlen($kontonummer) < 10){ | |
$kontonummer = '0'.$kontonummer; | |
} | |
$alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; |
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
/etc/php5/apache2/php.ini |
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
#Schritt 1 | |
apache2ctl configtest | |
#Schritt 2 wenn Schritt 1 = OK | |
/etc/init.d/apache2 graceful |
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
$myFile = "testFile.txt"; | |
$fh = fopen($myFile, 'w') or die("can't open file"); | |
$stringData = "Bobby Bopper\n"; | |
fwrite($fh, $stringData); | |
$stringData = "Tracy Tanner\n"; | |
fwrite($fh, $stringData); | |
fclose($fh); | |
#SRC: http://www.tizag.com/phpT/filewrite.php |
NewerOlder