Skip to content

Instantly share code, notes, and snippets.

View sergix44's full-sized avatar
⚗️
Experimenting

Sergio Brighenti sergix44

⚗️
Experimenting
View GitHub Profile
@sergix44
sergix44 / deploy_update.sh
Last active September 24, 2018 11:32
Laravel deploy script
#!/usr/bin/env bash
# Laravel deploy script
PHP_PATH=php
$PHP_PATH artisan down
$PHP_PATH composer.phar install --no-dev
$PHP_PATH artisan cache:clear
@sergix44
sergix44 / dummy.php
Created July 12, 2017 19:54
Infinite download script
<?php
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="dummy.bin"');
set_time_limit(0);
$random_data = random_bytes(1000000);
while(true) {
if(connection_aborted() === 1) {
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Conversations\DummyConvo;
use Mpociot\BotMan\BotMan;
class BotManController extends Controller {