# download with wget
wget --no-check-certificate https://gist.githubusercontent.com/BurakBoz/6b370012b4e7c920db01cf4c9a7cc81a/raw/aa9fcdf29731460875aa15bf9b303eab47767d52/smtp-test.php -O smtp-test.php
# download with wget and run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Options section | |
setopt correct # Auto correct mistakes | |
setopt extendedglob # Extended globbing. Allows using regular expressions with * | |
setopt nocaseglob # Case insensitive globbing | |
setopt rcexpandparam # Array expension with parameters | |
setopt nocheckjobs # Don't warn about running processes when exiting | |
setopt numericglobsort # Sort filenames numerically when it makes sense | |
setopt appendhistory # Immediately append history instead of overwriting | |
setopt histignorealldups # If a new command is a duplicate, remove the older one |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
wget https://getcomposer.org/download/latest-stable/composer.phar -O %cd%\composer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function anyKeyValueOr(array|object|null $haystack, array $acceptableKeys = [], $defaultValue = null) | |
{ | |
if (is_null($haystack) or empty($acceptableKeys)) | |
{ | |
return $defaultValue; | |
} | |
$isObject = is_object($haystack); | |
$isArray = is_array($haystack); |
Site: https://regexr.com/
Regex: (wp-content/uploads/.*?.jpg)
Type: List wget -x -nH https://domain.com/$1\n
Content:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Read Lines Memory Efficiently | |
* @param $file | |
* @param callable $callable | |
* @return bool | |
*/ | |
function read_lines_me($file, callable $callable) | |
{ | |
$handle = @fopen($file, "r"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function urlsafe_base64_encode($string) | |
{ | |
return str_replace(['+','/','='], ['-','_',''], base64_encode($string)); | |
} | |
function urlsafe_base64_decode($string) | |
{ | |
$string = str_replace(['-','_'], ['+','/'], $string); | |
$mod4 = strlen($string) % 4; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Class Crontab | |
* About: crontab shell command utilizer. | |
* Author: Burak BOZ | |
* GitHub: https://github.com/BurakBoz | |
* License: No License & Restrictions | |
*/ | |
class Crontab |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in `curl https://www.cloudflare.com/ips-v4`; do csf -a $i; done | |
for i in `curl https://www.cloudflare.com/ips-v6`; do csf -a $i; done |