# directorio de trabajo
mkdir -p ~/.ssh/config.d/ssh
# configuración principal
touch ~/.ssh/config
# configuración empresa
touch ~/.ssh/config.d/company.conf
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
FROM debian:buster-slim | |
RUN apt -o acquire::http::proxy="${HTTP_PROXY}" update \ | |
&& apt -o acquire::http::proxy="${HTTP_PROXY}" install -y git |
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
podman run -w /root -ti --rm fedora:39 sh -uelic ' | |
dnf update -y && dnf install neovim bat git tree nodejs lua wget go -y | |
dnf groupinstall "Development Tools" "Development Libraries" -y | |
git clone https://github.com/NvChad/NvChad ~/.config/nvim | |
nvim | |
' |
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 | |
# generate new personal ed25519 ssh key | |
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>" | |
# generate new host cert authority (host_ca) ed25519 ssh key | |
# used for signing host keys and creating host certs | |
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network | |
eval "$(ssh-agent -s)" |
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 | |
#Harbor on Ubuntu 18.04 | |
#Prompt for the user to ask if the install should use the IP Address or Fully Qualified Domain Name of the Harbor Server | |
PS3='Would you like to install Harbor based on IP or FQDN? ' | |
select option in IP FQDN | |
do | |
case $option in | |
IP) |
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
docker exec -it gitlab grep 'Password:' /etc/gitlab/initial_root_password |
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
import csv | |
import re | |
import requests | |
import time | |
from bs4 import BeautifulSoup | |
url = 'https://www.enacom.gob.ar/areaslocales/busqueda/{pos}' | |
field = 'campo=' | |
pos = 1 |
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
HISTSIZE=1000 | |
HISTFILESIZE=0 | |
HISTCONTROL=ignoreboth | |
alias c='clear' | |
alias cl='clear;ls' | |
alias cpl='clear;pwd;ls' | |
alias :q='exit' | |
alias reload='exec $SHELL -l' | |
alias cp='cp -i' |
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
run: | |
python simple_server.py |
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
#!/usr/bin/env python | |
# Author: Alejandro M. BERNARDIS | |
# Email alejandro.bernardis at gmail dot com | |
# Created: 2021-06-03 | |
# le asigno el valor en formato string a la variable mensaje. | |
mensaje = 'A mi me encanta programar en python.' | |
# imprimo el total de caracteres | |
print('Cuántos caracteres tengo?:', len(mensaje)) |
NewerOlder