Skip to content

Instantly share code, notes, and snippets.

Avatar
🙂

Rodrigo Vieira slowaways

🙂
  • Brazil
View GitHub Profile
@slowaways
slowaways / openlitespeed.sh
Last active Jul 12, 2018
Install OpenLiteSpeed
View openlitespeed.sh
#!/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. #
# #
@slowaways
slowaways / __String.php
Last active Mar 27, 2017
PHP __String Class
View __String.php
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;
@slowaways
slowaways / Debug.php
Last active Jul 23, 2016
PHP Debug Class - v0.1 Alpha
View Debug.php
<?php
class Debug
{
public static $debug = true;
public static $backtrace = true;
public static $exit = true;
// Call
// Configs
public static $limit; // int
@slowaways
slowaways / install.sh
Last active Aug 20, 2017
Open LiteSpeed One Click Installation for non-root users v1.0
View install.sh
#!/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. #
# #
@slowaways
slowaways / php7_build_ubuntu.sh
Last active Aug 21, 2017
Compiling PHP 7.0.x on Ubuntu 16.04 with Modules
View php7_build_ubuntu.sh
#!/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. #
# #