Skip to content

Instantly share code, notes, and snippets.

@raitocz
raitocz / EntityManagersTrait.php
Created August 9, 2019 15:25
Traits to get multiple entity managers
<?php declare(strict_types=1);
namespace EryseClient\Utility;
use App\Utility\EntityManager\LocalEntityManagerTrait;
use App\Utility\EntityManager\RemoteEntityManagerTrait;
trait EntityManagersTrait
{
@raitocz
raitocz / ping.php
Last active August 29, 2015 14:23
PHP site pinger
<?php
$url = $argv[1];
$cl = curl_init();
curl_setopt($cl, CURLOPT_URL, $url);
curl_setopt($cl, CURLOPT_USERAGENT, md5(rand(6713678, 8746316834)));
//curl_setopt($cl, CURLOPT_RETURNTRANSFER, true);
//curl_setopt($cl, CURLOPT_POSTFIELDS, $post);
@raitocz
raitocz / confirm.dialog.js
Last active August 29, 2015 14:23 — forked from duskohu/confirm.dialog.js
Nette JS library for rendering twtBootstrap 3.* modal confirm via data attributes on button.
/**
* Confirm dialog plugin (For bootstrap 3 @Raito Akehanareru)
*
* @copyright Copyright (c) 2012 Jan Červený
* @license BSD
* @link confirmdialog.redsoft.cz
* @version 1.1
*/
(function ($, undefined) {