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
60 horas - ultimo viernes y sabado examen | |
http://diplomado.gnuin0.info | |
on-premise: datacenter que se encuentra en las empresas | |
Sistema operativo: Software que gestiona la omunicacion entre una | |
persona y un sistema. Conj. de progs que trabajan coord para admin de | |
manera optima los recursos físicos de una computadora. | |
Como bootea una PC BIOS->MBR->GRUB->Kernel->Init>Runlevel |
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
Hints: | |
- El profesor indica que es mejor no tener swap | |
- Al instalar oracle en el apartado de Servers -> System Administration Tools, por default no viene ninguno seleccionado, por lo que hay que manualmente agregar: oracle-rdbms-server-12cR1 | |
Profesor: Conde | |
https://loquecallamoslosdba.wordpress.com/ | |
RTO Recovery Time Objective: tiempo en el cual yo espero recuperarme | |
RPO Recovery Point Objective: tiempo que transcurre entre el momento del desastre y el último punto de restauración. | |
Banco RPO ~= 0 | |
que tanto puedo perder |
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
*Instalación en google cloud, imágen con Centos 7 on 20GB HD, 3.75GB RAM, 1vCPU | |
sudo yum -y update | |
sudo yum install -y curl policycoreutils-python openssh-server wget | |
sudo firewall-cmd --zone=public --permanent --add-service=http | |
success | |
sudo firewall-cmd --zone=public --permanent --add-service=https | |
success | |
sudo firewall-cmd --zone=public --permanent --list-all | |
target: default | |
icmp-block-inversion: no |
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
ssh USER@IP tail -f /var/log/haproxy-traffic.log | stdbuf -o0 awk '{print $9" "$6" - - "$7" "$18" "$19" "$20" "$11" "$12}' | sed -u "s/:[0-9]\{4,5\}//g" | sed -u "s/\(:[0-6][0-9]\)\.[0-9]\{3\}/\\1 -400/g" | logstalgia --sync --paddle-mode vhost |
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
dmesg_human () { $(type -P dmesg) "$@" | perl -w -e 'use strict; | |
my ($uptime) = do { local @ARGV="/proc/uptime";<>}; ($uptime) = ($uptime =~ /^(\d+)\./); | |
foreach my $line (<>) { | |
printf( ($line=~/^\[\s*(\d+)\.\d+\](.+)/) ? ( "[%s]%s\n", scalar localtime(time - $uptime + $1), $2 ) : $line ) | |
}'; } | |
// https://stackoverflow.com/questions/13890789/convert-dmesg-timestamp-to-custom-date-format | |
// cred: https://stackoverflow.com/users/636849/lucas-cimon |
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
#ID=google document reference id | |
FILEID="ID"; wget "https://drive.google.com/uc?export=download&id=${FILEID}&confirm=yes" | |
#credits: https://stackoverflow.com/questions/37453841/download-a-file-from-google-drive-using-wget#comment127131320_39087286 |
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
root ALL=(ALL:ALL) ALL | |
| | | | | | |
| | | | +-Command or All commands (without password? | |
| | | | add NOPASSWD: before keyword) | |
| | | +------Run cmd as Group or All groups | |
| | +----------Run cmd as User or All users | |
| +---------------Host or All hosts | |
+--------------------sys user or "sys %group" or "user aliases" to apply rule | |
User_Alias ~= groups (first letter must be uppercase) |
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
OVA / OVF import vmware 6.5: Stuck on validating / validando ? | |
R= Make sure you are not logged in on the vcenter with the IP address, use FQDN instead. | |
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
1. Verify it is a Dynamic Disk || convert it to dynamic | |
2. zerotise empty space: | |
windows guest: (tested) | |
2.1 download sdelete.exe (https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete) | |
2.2 as administrator, run: sdelete.exe c: -z | |
linux guest: (untested) | |
2.1 install zerofree | |
2.2 reboot into recovery mode | |
2.3 drop to root shell | |
2.4 zerofree -v /dev/sdXY |
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 | |
die () { | |
if [ -z "$1" ] | |
then | |
echo "something went very wrong..." | |
else | |
echo "NOK:${1}" | |
fi | |
exit 1 | |
} |
OlderNewer