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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: ccm-linode | |
namespace: kube-system | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: system:ccm-linode |
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
apiVersion: cluster.x-k8s.io/v1beta1 | |
kind: Cluster | |
metadata: | |
name: capi-quickstart | |
namespace: default | |
spec: | |
clusterNetwork: | |
pods: | |
cidrBlocks: | |
- 192.168.0.0/16 |
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
console.log('xtermjs: starting'); | |
var states = { | |
start: 1, | |
connecting: 2, | |
connected: 3, | |
disconnecting: 4, | |
disconnected: 5, | |
reconnecting: 6, | |
}; |
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
New-Item -ItemType Directory -Path "$Env:ProgramFiles\containerd" -Force > $null | |
curl.exe -L https://github.com/luthermonson/containerd/releases/download/win-bins/containerd-shim-runhcs-v1.exe -o "$Env:ProgramFiles\containerd\containerd-shim-runhcs-v1.exe" | |
curl.exe -L https://github.com/luthermonson/containerd/releases/download/win-bins/containerd.exe -o "$Env:ProgramFiles\containerd\containerd.exe" | |
curl.exe -L https://github.com/luthermonson/containerd/releases/download/win-bins/ctr.exe -o "$Env:ProgramFiles\containerd\ctr.exe" | |
# Set containerd config.toml | |
$ProcessInfo = New-Object System.Diagnostics.ProcessStartInfo | |
$ProcessInfo.FileName = "$Env:ProgramFiles\containerd\containerd.exe" | |
$ProcessInfo.RedirectStandardError = $true | |
$ProcessInfo.RedirectStandardOutput = $true |
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
function taill([string]$service) { | |
$idx = (Get-EventLog -LogName Application -Source $service -Newest 1).Index | |
while ($True) | |
{ | |
Start-Sleep -MilliSeconds 100 | |
$idx2 = (Get-EventLog -LogName Application -Source $service -Newest 1).index | |
if (-NOT($idx -eq $idx2)) { | |
Get-EventLog -logname Application -Source $service -Newest ($idx2 - $idx) | Sort index | Select-Object Message | |
} |
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
function prompt() { | |
$host.ui.RawUI.WindowTitle = $pwd | |
$p = $pwd | |
if ($p -Match [regex]::Escape($HOME)) { | |
$p = $p -Replace [regex]::Escape($HOME), "~" | |
} | |
Write-Host -NoNewline $p | |
if (Test-Path -Path $pwd/.git) { | |
$branch = $(git rev-parse --abbrev-ref HEAD) |
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
$Env:GIT_TRACE="true" | |
$Env:GIT_CURL_VERBOSE="true" | |
$Env:GIT_SSH_COMMAND="ssh -vvv" | |
$Env:GIT_TRACE_PACK_ACCESS="true" | |
$Env:GIT_TRACE_PACKET="true" | |
$Env:GIT_TRACE_PACKFILE="true" | |
$Env:GIT_TRACE_PERFORMANCE="true" | |
$Env:GIT_TRACE_SETUP="true" | |
$Env:GIT_TRACE_SHALLOW="true" |
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
# Make sure you setup c:\ProgramData\docker\config\daemon.json to contain log-level: debug and debug: true | |
$idx = (Get-EventLog -LogName Application -Source Docker -Newest 1).Index | |
while ($True) | |
{ | |
Start-Sleep -MilliSeconds 100 | |
$idx2 = (Get-EventLog -LogName Application -Source Docker -Newest 1).index | |
if (-NOT($idx -eq $idx2)) { | |
Get-EventLog -logname Application -Source Docker -Newest ($idx2 - $idx) | Sort index | Select-Object Message | |
} |
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
Powershell -NoLogo -NonInteractive -Command "Install-PackageProvider -Name NuGet -Force; Install-Module DockerMsftProvider -Force; Install-Package Docker -ProviderName DockerMsftProvider -Force; Restart-Computer;" |
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
# Have a ./Dockerfile in your projecft and put in .github/workflows/build-and-push.yml | |
name: Build Docker Image and Push to Github Packages | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build-and-push: |
NewerOlder