I hereby claim:
- I am saderi on github.
- I am saderi (https://keybase.io/saderi) on keybase.
- I have a public key ASA7EVb3RjBgzX6_FE7uU1se5iCursw_fo6Qt_kl6tE7Awo
To claim this, I am signing this object:
{ | |
"code": "Ok", | |
"routes": [ | |
{ | |
"geometry": "gmkgFoybzGdFoF|BzVaQ~MW~F~PhId@~CgWv^{D|Pb@xP`DpL_ArNdB|DlGrBfCtVeFld@mBxpAeRbpBoE~qB{N`PiMxm@uLzJoFjRd@|Bpp@nLyF~|CsDlq@pBl]tu@v@nn@dJnHdWbAz[la@{UlMzk@", | |
"legs": [ | |
{ | |
"duration": 1106.9, | |
"steps": [ | |
<?php | |
// Update php parse_url function | |
// It determines that URL is a domain or IP by is_ip | |
// Define clean site url without path | |
function plus_parse_url($url) { | |
if(!preg_match("/^[a-zA-Z0-9]+$/", substr($url,0,1))) | |
return false; | |
if (strpos($url,"://")) { | |
$parse = parse_url(strtolower($url)); | |
$parse['is_ip'] = (preg_match("/^[0-9]+$/", substr($parse['host'],-1)))? true : false; |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# This script is meant for quick & easy install via: | |
# Tested on Debian 9, Debian 10, Ubuntu 18.04 / 20.04 / 22.04 | |
# | |
# wget -q -O - "https://gist.github.com/saderi/4a0af3e424d3429648553f319348ccb0/raw" | bash - | |
# OR | |
# curl -fsSL https://gist.github.com/saderi/4a0af3e424d3429648553f319348ccb0/raw | bash - | |
# Update , upgrade OS and install vim, make and git |
#!/bin/bash | |
# This script is meant for quick & easy install via: | |
# Tested in debian 9 | |
# $ wget -q -O - "https://gist.github.com/saderi/f3454f80e663e129c64fed4966a451cf/raw" | bash - | |
wget -q -O - https://www.mongodb.org/static/pgp/server-4.0.asc | apt-key add - | |
echo 'deb http://repo.mongodb.org/apt/debian stretch/mongodb-org/4.0 main' > /etc/apt/sources.list.d/mongodb-org-4.0.list | |
# Update , upgrade OS and install curl, vim and git and mongoDB |
#!/bin/bash | |
# Check domain and send email and sms when domain is available for register. | |
# Requairment: | |
# whois linux coomand | |
# mutt linux coomand | |
# clickatell.com acount | |
# | |
# You must added to your system cron :D, | |
# I suggest lets cron run this script every 5th minute |
#!/bin/bash | |
# Add my ssh-key to ubuntu root user and active ssh root login | |
# Login as root or run with sudo | |
# wget -qO - "https://saderi.com/goroot" | bash - | |
# OR | |
# curl -fsSL https://saderi.com/goroot | bash - | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" |
#!/bin/bash | |
RIGHTNOW=$(date +"%Y-%m-%d-%H%M"); | |
OLD_BACKUP=$(date --date="4 days ago" +"%Y-%m-%d"); | |
FTP_HOST='' | |
FTP_USER='' | |
FTP_PASSWORD='' | |
DB_NAME='' | |
DB_USERNAME='' |
#!/bin/bash | |
# This script is meant for quick & easy install via: | |
# Tested in debian 9 | |
# $ wget -q -O - "https://saderi.com/getready" | bash - | |
# Update , upgrade OS and install curl, vim and git | |
apt-get update \ | |
&& DEBIAN_FRONTEND=noninteractive apt install -y curl vim |
#!/bin/bash | |
# This script is meant for quick & easy install via: | |
# Tested in Ubuntu 18.10 | |
# $ wget -q -O - "https://bit.ly/2tlAk9r" | bash - | |
apt update && apt install --assume-yes gnupg2 | |
tee /etc/apt/sources.list.d/mongodb-org-4.0.list << EOF |