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
[global] | |
username map = /usr/local/etc/smbusers | |
server min protocol = SMB2_02 | |
server max protocol = SMB3 | |
interfaces = 127.0.0.1 192.168.2.5 | |
bind interfaces only = yes | |
encrypt passwords = yes | |
dns proxy = no | |
strict locking = no | |
oplocks = yes |
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
# ---------------------------------------------------------------------- | |
# Cross-domain AJAX requests | |
# ---------------------------------------------------------------------- | |
# Serve cross-domain ajax requests, disabled. | |
# enable-cors.org | |
# code.google.com/p/html5security/wiki/CrossOriginRequestSecurity | |
# <IfModule mod_headers.c> | |
# Header set Access-Control-Allow-Origin "*" |
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 | |
$subject = "=?utf-8?B?".base64_encode('Lorem ipsum dolor. Subject must not be longer than 75 Chars including the Part with =?charset?encoding')."?="; | |
?> |
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 _calculateTextBox($text,$fontFile,$fontSize,$fontAngle) | |
{ | |
/************ | |
simple function that calculates the *exact* bounding box (single pixel precision). | |
The function returns an associative array with these keys: | |
left, top: coordinates you will pass to imagettftext | |
width, height: dimension of the image you have to create | |
*************/ | |
$rect = imagettfbbox($fontSize,$fontAngle,$fontFile,$text); |
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
/* | |
Implement FBs like button in flash is horrible. But implement the iFrame button, hide it and trigger it from js is not | |
Just to remember this snippet | |
*/ | |
function fireEvent(element,event) { | |
if (document.createEventObject) { | |
// dispatch for IE | |
var evt = document.createEventObject(); | |
return element.fireEvent('on'+event,evt) |