Skip to content

Instantly share code, notes, and snippets.

View rodrigoslayertech's full-sized avatar
🤔

Rodrigo Vieira rodrigoslayertech

🤔
View GitHub Profile
@rodrigoslayertech
rodrigoslayertech / bootgly-cli-terminal-progress.php
Last active March 24, 2023 15:37
Bootgly CLI vs Symfony Console - Progress Bar
<?php
namespace Bootgly\CLI;
use Bootgly\CLI;
use Bootgly\CLI\Terminal\components\Progress;
$Output = CLI::$Terminal->Output;
$Output->reset();
$Output->render(<<<OUTPUT
@rodrigoslayertech
rodrigoslayertech / symfony-console-progressbar.php
Last active March 15, 2023 18:37
Bootgly CLI vs Symfony Console - Progress Bar
#!/usr/bin/env php
<?php
require __DIR__ . '/vendor/autoload.php';
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\ConsoleOutput;
$output = new ConsoleOutput();
@rodrigoslayertech
rodrigoslayertech / openlitespeed.sh
Last active July 12, 2018 15:28
Install OpenLiteSpeed
#!/bin/bash
##############################################################################
# Open LiteSpeed is an open source HTTP server. #
# Copyright (C) 2013 - 2016 LiteSpeed Technologies, Inc. #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
@rodrigoslayertech
rodrigoslayertech / __String.php
Last active March 27, 2017 18:34
PHP __String Class
final class __String
{
public static function search(string $haystack, $needle, int $offset = null){
$needles = (array)$needle;
$found = null;
foreach($needles as $needle){
$position = strpos($haystack, $needle, $offset);
if($position !== false){
$found = $needle;
@rodrigoslayertech
rodrigoslayertech / Debug.php
Last active July 23, 2016 00:53
PHP Debug Class - v0.1 Alpha
<?php
class Debug
{
public static $debug = true;
public static $backtrace = true;
public static $exit = true;
// Call
// Configs
public static $limit; // int
@rodrigoslayertech
rodrigoslayertech / install.sh
Last active August 20, 2017 09:23
Open LiteSpeed One Click Installation for non-root users v1.0
#!/bin/bash
##############################################################################
# Open LiteSpeed is an open source HTTP server. #
# Copyright (C) 2013 - 2017 LiteSpeed Technologies, Inc. #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #
@rodrigoslayertech
rodrigoslayertech / php7_build_ubuntu.sh
Last active August 21, 2017 15:45
Compiling PHP 7.0.x on Ubuntu 16.04 with Modules
#!/bin/bash
##############################################################################
# Open LiteSpeed is an open source HTTP server. #
# Copyright (C) 2013 - 2016 LiteSpeed Technologies, Inc. #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation, either version 3 of the License, or #
# (at your option) any later version. #
# #