Deploy k8s cluster v1.21.7 or lower, but not lower than v1.20.
$ git clone -b master https://github.com/kubeflow/manifests
hdmi_group=2 | |
hdmi_mode=87 | |
hdmi_cvt=2560 1440 60 3 0 0 1 | |
max_framebuffer_width=2560 | |
max_framebuffer_height=1440 | |
hdmi_pixel_freq_limit=400000000 |
deleteEmptyProps(obj: any): any { | |
// modifies passed obj in place, removing empty properties (inc. empty arrays) | |
return Object.keys(obj).forEach(k => { | |
if (!obj[k] || obj[k] === undefined || | |
Array.isArray(obj[k]) && obj[k].length === 0) { | |
delete obj[k]; | |
} | |
}); | |
} |
using System; | |
using System.Configuration; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Web.Cors; | |
using System.Web.Http; | |
using System.Web.Http.Cors; | |
using System.IO; | |
using Microsoft.Azure.Storage; | |
using Microsoft.Azure.Storage.Blob; |
# apt-get install | |
sudo apt-get update | |
# For ubuntu 14.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-trusty | |
# For ubuntu 16.04 | |
sudo apt-get install -y xserver-xorg-video-dummy-lts-willy | |
# Copy the xorg.conf to `/etc/X11/xorg.conf`. | |
wget -P /etc/X11 https://gist.githubusercontent.com/mangoliou/ba126832f2fb8f86cc5b956355346038/raw/b6ad063711226fdd6413189ad905943750d64fd8/xorg.conf |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>App Login</title> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> |
curl -s https://api.github.com/repos/cert-manager/cert-manager/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' |
Deploy k8s cluster v1.21.7 or lower, but not lower than v1.20.
$ git clone -b master https://github.com/kubeflow/manifests
Containers in a pod share namespaces among them.
Container-to-Container comms via localhost (because they share the same kernel namespace)
The 'pause' container (AKA infra container) is a container which holds the network namespace for the pod. Kubernetes creates pause containers to acquire the respective pod’s IP address and set up the network namespace for all other containers that join that pod. It has one job: DON'T DIE.
using System; | |
using System.Data.SqlClient; | |
using System.Threading.Tasks; | |
using Azure.Identity; | |
using Azure.Core; | |
namespace NET47ManagedIdentitytoAzureSQL | |
{ | |
class MainClass | |
{ |
#!/usr/bin/env python3 | |
import PySimpleGUI as sg | |
def read_temp1(): | |
return 24.0 | |
def read_temp2(): | |
return 21.1 |