This file contains 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
https://mallinson.ca/osx-web-development/ | |
https://alexcican.com/post/osx-apps/ |
This file contains 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
# 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 |
This file contains 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
<!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 --> |
This file contains 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
################################# | |
# SCRIPT 01 | |
################################# | |
#!/bin/bash | |
# -x for debug | |
#set -x | |
user='user' | |
sshport='22' |
This file contains 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
#!/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 |
This file contains 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
#!/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 |
This file contains 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
# Created by Richardson Lima | |
# Create a file e.g: Run.bat and put this | |
# powershell -command "& {C:\Env\Script\WinServerReport.ps1 .\ServerList.txt}" | |
# | |
$date = Get-Date | |
$d = $date.day | |
$m = $date.month | |
$y = $date.year | |
$hoje = "$d$m$y" |
This file contains 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
#!/bin/bash | |
######################################################### | |
# This script is intended to be run like this: | |
# | |
# curl https://domain/setup.sh | sudo bash | |
# | |
######################################################### | |
if [ -z "$TAG" ]; then | |
TAG=v0.17b |
This file contains 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
#!/bin/bash | |
# Program information | |
name="LinuxCollector" | |
version="3.0.0" | |
releasedate="25 November 2015" | |
author="Richardson Lima, " | |
author_contact="contato@richardsonlima.com.br" | |
website="http://www.richardsonlima.com.br" | |
copyright="Copyright 2014-2015 - ${author}, ${website}" |
This file contains 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
github-create() { | |
repo_name=$1 | |
dir_name=`basename $(pwd)` | |
if [ "$repo_name" = "" ]; then | |
echo "Repo name (hit enter to use '$dir_name')?" | |
read repo_name | |
fi |