brew install imapsync
Run (without ssl)
imapsync --host1 imap.from.server --user1 foo --password1 secret1 --host2 imap.dest.server --user2 bar --password2 secret2
Run (with ssl)
<?php | |
use Illuminate\Pagination\LengthAwarePaginator as Paginator; | |
use Illuminate\Http\Request; | |
class PaginationSample extends Controller | |
{ | |
public function index(Request $request) | |
{ | |
$data = ['Dhanang', 'Andi', 'Rudi', 'Anton']; |
<?php | |
/* filter by TV of date format */ | |
/* &filters=`tvdate:mytv:=:2017-09-28` */ | |
include_once ('tv.filter.php'); | |
/** | |
* Created by PhpStorm. | |
* User: Pathologic | |
* Date: 28.09.17 | |
* Time: 13:09 | |
*/ |
<? | |
//amo | |
//ПРЕДОПРЕДЕЛЯЕМЫЕ ПЕРЕМЕННЫЕ | |
$responsible_user_id = 7292136; //id ответственного по сделке, контакту, компании | |
$lead_name = 'Заявка с сайта'; //Название добавляемой сделки | |
$lead_status_id = '11331793'; //id этапа продаж, куда помещать сделку | |
$contact_name = $cname; //Название добавляемого контакта | |
$contact_phone = $cphone; //Телефон контакта |
// Add on element with overflow | |
-webkit-mask-image: -webkit-radial-gradient(white, black); |
<?php | |
/** | |
* Smarty plugin | |
* @package Smarty | |
* @subpackage plugins | |
* | |
* Smarty {phpthumb} function plugin | |
* | |
* Type: function<br> |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
<?php | |
class msOrderByPhoneHandler extends msOrderHandler { | |
public function getCustomerId() { | |
$order = $this->ms2->order->get(); | |
if (empty($order['phone'])) {return false;} | |
if ($this->modx->user->isAuthenticated()) { | |
$profile = $this->modx->user->Profile; |
sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \; |