Skip to content

Instantly share code, notes, and snippets.

View richardsonlima's full-sized avatar
:octocat:
Focusing

Richardson Lima richardsonlima

:octocat:
Focusing
View GitHub Profile
# Layer7 [mode http]
global
log /dev/log local0
log 127.0.0.1 local1 notice
maxconn 4096
user haproxy
group haproxy
daemon
defaults
https://mallinson.ca/osx-web-development/
https://alexcican.com/post/osx-apps/
[+] Network internals:
chrome://net-internals/#dns
chrome://net-internals/#bandwidth
chrome://net-internals/#modules
chrome://net-internals/#httpCache
chrome://net-internals/#http2
chrome://net-internals/#sockets
chrome://net-internals/#timeline
chrome://net-internals/#events
chrome://net-internals/#waterfall
# Install docker
yum -y update
yum -y install docker docker-registry
systemctl enable docker.service
systemctl start docker.service
systemctl status docker.service
# Install docker-composer
yum install epel-release -y
yum install -y python-pip
#!/bin/bash
LSB=/usr/bin/lsb_release
#
CHECK_DPKG=$(which dpkg)
CHECK_RPM=$(which rpm)
# Show warning if server load average is below the limit for last 5 minute
LOAD_WARN=5
# font colours
#!/bin/bash
timestamp=$(date +"%d-%m-%Y")
export MAILFROM="relatoriodiario@EMPRESAit.com.br"
export MAILTO="contato@gmail.com,user01@gmail.com"
export SUBJECT="[ EMPRESAIt ] Linux ATI - Relatorios diarios da rede x.y.z.x"
export BODY="/home/EMPRESAit/Scripts/CheckDiarioTodasMaquinas/xyzx-dailycheck/body/build.html"
export ATTACH="/var/www/relatorio-xyzx/CheckDiario-REDExyzx-$timestamp.zip"
export MAILPART=`uuidgen` ## Generates Unique ID
export MAILPART_BODY=`uuidgen` ## Generates Unique ID
<!DOCTYPE html PUBLI'C "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="pt-BR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> -->
<!-- <meta charset="UTF-8"> -->
<!-- <meta http-equiv="Content-type" content="text/html; charset=utf-8"/> -->
<!-- <meta http-equiv="Content-Language" content="pt-br"/> -->
<meta name="viewport" content="width=device-width, initial-scale=1"> <!-- So that mobile will display zoomed in -->
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <!-- enable media queries for windows phone 8 -->
#################################
# SCRIPT 01
#################################
#!/bin/bash
# -x for debug
#set -x
user='user'
sshport='22'
#!/bin/bash
### sudo apt-get install cifs-utils
#set -x
LinuxLocalUser=$(whoami)
Base="/home/$LinuxLocalUser"
BaseSub="/home/$LinuxLocalUser/WinShare"
Download="/home/$LinuxLocalUser/Downloads"
File="SysinternalsSuite.zip"
#!/bin/bash
# Created by Richardson Lima
# set -x
Vlan="10x"
AllFilesDir="RuleEnv/$Vlan/allfiles"
FinalFileDir="RuleEnv/$Vlan/finalfile"
function createEnvDir(){
echo -e '\033[1;32m [+] Creating a Env dir , waiting a moment ... \033[0m'; sleep 5