Skip to content

Instantly share code, notes, and snippets.

View homelaber's full-sized avatar

Homelaber Brasil homelaber

View GitHub Profile
# source https://github.com/homelaber/homelaber/blob/master/ps-idrac8-config.ps1
############################################################################
# CONFIGURAÇÃO iDRAC SERVIDORES DELL
# VERSÃO 0.1 || VALDECIR CARVALHO || 11/01/2017
# iDRAC VERSÃO 8
# É NECESSÁRIO BAIXAR E INSTALAR O RACADM DA URL >> http://downloads.dell.com/FOLDER02867225M/1/OM-DRAC-Dell-Web-WINX64-8.1.0-1518_A00.exe
# ESSE SCRIPT ATUALIZA/CONFIGURA OS SEGUINTES PARAMETROS DO iDRAC:
# --- TIME ZONE
# --- NTP SERVER 1
# --- NTP SERVER 2
##########################################################################################################
#SCRIPT PARA SHUTDOWN DE VIRTUAL MACHINES NO VCENTER
#
#USO:
#CRIAR UM ARQUIVO TXT NO FORMATO ABAIXO COM O NOME DE VMLIST.TXT
#
#name
#VM01
#VM01
#VM03
http_port 3128 #porta em que o squid vai responder as requisições
visible_hostname proxy.homelab.srv.br #altere para o nome que você desejar
#error_directory /usr/share/squid/errors/Portuguese # não vamos utilizar isso agora na configuração básica
hierarchy_stoplist CGI-bin ?
cache_mgr admin@seu_dominio.com.br #coloque o e-mail do administrador do squid
acl QUERY urlpath_regex cgi-bin ?
@homelaber
homelaber / putty.bat
Created November 30, 2015 15:12 — forked from sbiffi/putty.bat
The aim of this vbs script is to launch putty using an URL like ssh://login@host directly from a browser. The .bat is almost the same than .vbs but less robust and just their for older systems.
:: This version is not as powerfull as vbs version, please prefere the other one.
:: It's just there if you need a non-visual basic way to perform this.
:: Restrictions:
:: - Password cannot contain a % or finish with @
:: - Chrome adds a / at the end of the URL, not yet managed
:: The aim of this script is to execute putty with parameters like ssh://login@host
:: Installation:
:: - Launch putty.reg to associate ssh:// and telnet:// to this script
:: - Edit the putty path in parameter below like puttyPath="C:\Program Files (x86)\putty.exe"
apt-get install snmp snmpd lm-sensors snmp-mibs-downloader snmptrapd
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.ori
echo "view all included .1" >> /etc/snmp/snmpd.conf
echo "rocommunity homelab #nome da community" >> /etc/snmp/snmpd.conf
echo "sysLocation homelab #local do equipamento" >> /etc/snmp/snmpd.conf
echo "sysContact admin@homelab.srv.br #email de contato do equipamento" >> /etc/snmp/snmpd.conf
service snmpd restart

default.conf

server {
    listen 443;
    server_name homelab.example.com;

    access_log /var/log/nginx/homelab.example.com.access.log;
    error_log /var/log/nginx/homelab.example.com.error.log;

root /var/www/html;