Skip to content

Instantly share code, notes, and snippets.

Postfix doesn't deliver to virtual mailbox

Note: myhost.myserver.com is a placeholder for the real domain used in the config file

Question 1:

transport_maps is missing, dumb question: should I add it? What does the file content exactly look like?

<?php
$paths = array(
"/new/space/afsdfadsfthe_space_name/status/json",
"/vagrant/public/space/afsdfadsfthe_space_name/index.php"
);
echo get_common_path($paths[0], $paths[1]);
// this is not yet
<?php
function generateSecret()
{
$salt = strtr(base64_encode(mcrypt_create_iv(16, MCRYPT_DEV_URANDOM)), "+", ".");
$shuffle = str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ");
$param = '$' . implode( '$', array("2y", 10, $salt) );
$blowfish = crypt($shuffle, $param);
return true;
}
public function getServiceConfig()
{
return array(
'factories' => array(
'my-model' => function($sm) {
$model = new \My\Model($sm);
return $model;
}
)
);
@slopjong
slopjong / gist:3093757
Created July 11, 2012 21:38 — forked from pioz/autoclick.c
Autoclick
// Written by Pioz.
// Compile with: gcc -o autoclick autoclick.c -lX11
#include <stdio.h>
#include <string.h>
#include <X11/Xlib.h>
// Simulate mouse click
void
click (Display *display, int button)