Skip to content

Instantly share code, notes, and snippets.

View romainneutron's full-sized avatar

Romain Neutron romainneutron

View GitHub Profile
@romainneutron
romainneutron / run.php
Last active March 14, 2018 19:07 — forked from lyrixx/run.php
Slack delete all your files (rewrite of https://gist.github.com/jamescmartinez/909401b19c0f779fc9c1)
<?php
<<<CONFIG
packages:
- "kriswallsmith/buzz: ^0.15.0"
- "symfony/console: ^3.2@dev"
CONFIG;
// Find you token on https://api.slack.com/docs/oauth-test-tokens
use Buzz\Message\Response;
<?php
use Predis\Async\Client as PredisClient;
function save(PredisClient $redis)
{
$deferred = new Deferred();
$saddDeferred = new Deferred();
// let's start a transaction
<?php
use Silex\WebTestCase;
use Silex\Application;
use Silex\Provider\SessionServiceProvider;
class unitTest extends WebTestCase
{
public function testUn()
{