Skip to content

Instantly share code, notes, and snippets.

View CJavierSaldana's full-sized avatar

Javier Saldaña CJavierSaldana

View GitHub Profile
@CJavierSaldana
CJavierSaldana / install-openssh-windows-server-2016.ps1
Created September 16, 2021 13:35
Install OpenSSH on Windows Server 2016
# Execute it with elevated permissions
# Description:
# This script install automatically the open-ssh feature and enable it
# enable tls1.2 for downloads
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# creating openssh folder and download the zip
mkdir c:\openssh-install
cd c:\openssh-install
@CJavierSaldana
CJavierSaldana / dashboard-adminuser.yaml
Last active March 22, 2023 00:23
Create Kubernetes Dashboard Admin
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-user
namespace: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: dashboard-ingress
namespace: kubernetes-dashboard
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
spec:
@CJavierSaldana
CJavierSaldana / git-default-folder-structure.sh
Last active June 4, 2023 21:09
This script creates a basic directory structure for a project, along with initializing some essential files.
# The script creates the following directories:
# src: The source code directory.
# docs: The directory for project documentation.
# tests/unit: The directory for unit tests.
# tests/integration: The directory for integration tests.
# build: The directory for build-related files.
# Additionally, the script initializes the following files:
# .gitignore: A file specifying patterns for files and directories that should be ignored by Git version control.