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
#solo pondremos fija la ip de la wifi. | |
#Averiguamos el gateway | |
ip route | grep default | awk '{print $3}' | |
-> 192.168.1.1 | |
#Chequeamos los DNS | |
root@raspberrypi:/etc/network# cat /etc/resolv.conf | |
# Generated by resolvconf | |
nameserver 80.58.61.250 |
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
:highlight Comment ctermfg=green |
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
#change time | |
service ntpd stop | |
date +%T -s "23:00" | |
#back to time | |
service ntp stop | |
ntpd -gq (force) | |
service ntp start | |
#status |
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
db2 CATALOG TCPIP NODE nodo01 REMOTE la_ip_remota SERVER el_puerto_remoto REMOTE_INSTANCE la_insta_remota SYSTEM la_ip_remota OSTYPE LINUX | |
db2 terminate | |
db2 CATALOG DATABASE IN220615 AS INMIG AT NODE nodo01 | |
db2 CATALOG DATABASE RT220615 AS RTMIG AT NODE nodo01 | |
db2 terminate |
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 | |
export SSHPASS=somepass | |
sshpass -e sftp -oBatchMode=no -b - someuser@some.server.com << ! | |
cd /bksPruebas/SCRIPTS_SALUD/SCRIPTSALUD_V01R00F00_Alfa2/ | |
get SCRIPTSALUD_V01R00F00_Alfa2.zip | |
bye | |
! |
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
cat < /dev/tcp/127.0.0.1/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
------------------------------- | |
PUESTA EN MARCHA | |
------------------------------- | |
- generamos la clave con ssh y metemos la publica en github | |
- clonamos y nos posicionamos | |
git clone git@github.com:msoranno/mykubeStuff.git | |
cd mykubeStuff/ | |
- creamos el persistent volume y el claim para jenkins de 1gb | |
kubectl create -f pv.yaml | |
kubectl create -f pv-claim.yaml |
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
du -h --max-depth=1 | sort -hr |
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
$uri = 'https://uri.com/file.txt' | |
$user = 'user' | |
$pass = 'pass' | ConvertTo-SecureString -AsPlainText -Force | |
$cred = New-Object Management.Automation.PSCredential ($user, $pass) | |
Invoke-WebRequest -Uri $uri -Credential $cred |
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
# test port when no telnet | |
#/dev/tcp/host/port | |
# If host is a valid hostname or Internet address, and port is an integer port number | |
# or service name, bash attempts to open a TCP connection to the corresponding socket. | |
#/dev/udp/host/port | |
# If host is a valid hostname or Internet address, and port is an integer port number | |
# or service name, bash attempts to open a UDP connection to the corresponding socket. | |
cat < /dev/tcp/127.0.0.1/22 |
OlderNewer