Install Kubernetes
sudo apt update
sudo apt upgrade -y
sudo apt install -y ca-certificates curl gnupg lsb-release
cat <<EOF | sudo tee /etc/modules-load.d/containerd.conf
overlay
br_netfilter
//ASP.NET Database path | |
var path = Server.MapPath("~/App_Data/site.db"); | |
using (var db = new LiteDatabase(path)) | |
{ | |
//Sets or Creates a Table in DB | |
var bottles = db.GetCollection<Bottle>("Bottles"); | |
//Creates a new bottle object and saves in db |
public enum JwtStatusCode | |
{ | |
OK, | |
NotSupported, | |
NotVaild, | |
SignNotVaild, | |
Expired, | |
UnknownError | |
} | |
public class JwtToken |
#!/usr/bin/env bash | |
# color codes | |
green='\033[0;32m' | |
red='\033[0;31m' | |
yellow='\033[0;33m' | |
cyan='\033[0;36m' | |
reset='\033[0m' | |
# Show error message and exit |
FROM ubuntu:18.04 | |
ARG DEBIAN_FRONTEND=noninteractive | |
ARG ACCEPT_EULA=Y | |
RUN apt update && apt install curl gnupg2 ca-certificates -y && \ | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \ | |
curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | tee /etc/apt/sources.list.d/msprod.list && \ | |
apt update && apt upgrade -y && \ | |
apt install mssql-tools unixodbc-dev python3 python3-pip libunwind8 libssl1.0 -y && \ |
FROM ubuntu:20.04 | |
# Install prerequistes since it is needed to get repo config for SQL server | |
USER root | |
ENV ACCEPT_EULA=Y \ | |
DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && \ | |
apt-get install -yq curl apt-transport-https gnupg2 && \ | |
# Get official Microsoft repository configuration | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \ | |
curl https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2022.list | tee /etc/apt/sources.list.d/mssql-server.list && \ |
Remote: A remote in Git refers to a repository hosted on a different server, which can be accessed and interacted with over the internet. Remotes allow collaborative development and sharing of code between multiple contributors. Common remote repositories include GitHub, GitLab, and Bitbucket.
Origin: "Origin" is the default name often given to the main remote repository where you cloned or originated your local repository from. It represents the remote repository's URL, and you can fetch, pull, and push changes to/from it.
#!/bin/bash | |
# Set Containerd version | |
export "containerd_version=1.7.8" | |
export "runc_version=1.1.10" | |
export "cni_version=1.3.0" | |
export "nerdctl_version=1.7.0" | |
export "folder=$(pwd)/containerd.io" | |
mkdir -p "${folder}" |