Skip to content

Instantly share code, notes, and snippets.

View drc288's full-sized avatar

Drose drc288

View GitHub Profile
mappings:
- deprecatedAPI: "apiVersion: autoscaling/v2beta2\nkind: HorizontalPodAutoscaler"
newAPI: "apiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler"
removedInVersion: "v1.23"
- deprecatedAPI: "apiVersion: policy/v1beta1\nkind: PodDisruptionBudget"
newAPI: "apiVersion: policy/v1\nkind: PodDisruptionBudget"
removedInVersion: "v1.23"
mappings:
- deprecatedAPI: "apiVersion: autoscaling/v2beta2\nkind: HorizontalPodAutoscaler"
newAPI: "apiVersion: autoscaling/v2\nkind: HorizontalPodAutoscaler"
removedInVersion: "v1.23"
- deprecatedAPI: "apiVersion: policy/v1beta1\n\nkind: PodDisruptionBudget"
newAPI: "apiVersion: policy/v1\nkind: PodDisruptionBudget"
removedInVersion: "v1.23"
- deprecatedAPI: "apiVersion: policy/v1beta1\nkind: PodDisruptionBudget"
newAPI: "apiVersion: policy/v1\nkind: PodDisruptionBudget"
removedInVersion: "v1.23"
@drc288
drc288 / Dockerfile
Last active January 24, 2022 21:33
Docker windows
FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
EXPOSE 80
EXPOSE 443
COPY cert/ C:\temp\
RUN Import-PfxCertificate -Exportable -filePath "C:\temp\myCert.pfx" -CertStoreLocation "Cert:\LocalMachine\My" -Password (ConvertTo-SecureString -String "" -Force -AsPlainText)
# COPY C:\\Users\\jesus\\Documents\\dev\\dock\\index.html c:\inetpub\wwwoot\index.html
#!/bin/bash
# This scrypt update all dependencies and install pip install pip
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
else
apt-get update
apt-get install python3-pip -y
pip3 install typer
exit 0
ufw enable
ufw allow http
ufw allow https
ufw allow ssh
ufw reload
@drc288
drc288 / pub_atribute.py
Last active October 8, 2019 13:02
Example0 - public class attribute
class DogClass:
""" Init constructor """
def __init__(self, pub_woff, prot_woff, priv_woff):
""" Public instance attriute """
self.pub_woff = pub
""" Protected instance attribute"""
self._prot_woff = Public attribute
""" Private instance attribute """
self.__priv_woff = priv_woff
@drc288
drc288 / dog.py
Last active October 8, 2019 12:39
Example DogClass for medium
class DogClass:
""" Public class attribute """
ca_woff = "Woff!"
def __init__(self, ia_woff):
""" Instance attribute """
self.ia_woff = ia_woff