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
kubeadm reset | |
systemctl stop kubelet | |
systemctl stop docker | |
rm -rf /var/lib/cni/ | |
rm -rf /var/lib/kubelet/* | |
rm -rf /etc/cni/ | |
ifconfig cni0 down | |
ifconfig flannel.1 down | |
ifconfig docker0 down | |
ip link delete cni0 |
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
$url = 'https://www.vesselfinder.com/vessels/QUINSAM-IMO-8111386-MMSI-316001266' | |
$ie = New-Object -com internetexplorer.application | |
$ie.navigate($url) | |
while ($ie.Busy -eq $true) { Start-Sleep -Milliseconds 100; } | |
$tables = $ie.Document.body.getElementsByClassName('tparams') | |
foreach ($table in $tables) { | |
if ($table.innerHtml -like '*Coordinates*'){ | |
Write-Output $table.rows[$table.rows.length -1].lastChild.innerText | |
Write-Output $table.rows[$table.rows.length -2].lastChild.innerText | |
Write-Output $table.rows[$table.rows.length -3].lastChild.innerText |
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: blog-devopsculture | |
annotations: | |
nginx.ingress.kubernetes.io/ssl-redirect: 'true' | |
kubernetes.io/ingress.class: nginx | |
certmanager.k8s.io/cluster-issuer: blog-letsencrypt | |
spec: | |
tls: |
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: Service | |
metadata: | |
name: blog-devopsculture | |
spec: | |
selector: | |
app: blog | |
ports: | |
- protocol: TCP | |
port: 80 |
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: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
name: blog | |
labels: | |
app: blog | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
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: certmanager.k8s.io/v1alpha1 | |
kind: Certificate | |
metadata: | |
name: blog-devopsculture | |
spec: | |
secretName: blog-devopsculture | |
issuerRef: | |
name: blog-letsencrypt | |
kind: ClusterIssuer | |
commonName: 'blog.devopsculture.ca' |
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: certmanager.k8s.io/v1alpha1 | |
kind: ClusterIssuer | |
metadata: | |
name: blog-letsencrypt | |
spec: | |
acme: | |
server: https://acme-v02.api.letsencrypt.org/directory | |
email: something@hotmail.com | |
privateKeySecretRef: | |
name: blog-devopsculture |
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: PersistentVolumeClaim | |
metadata: | |
name: blog-content | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
storage: 5Gi |
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
#include <LiquidCrystal.h> | |
int greenPin = 8; | |
int redPin = 9; | |
LiquidCrystal lcd(12, 11, 5, 7, 3, 2); | |
void setup() | |
{ | |
pinMode(greenPin, OUTPUT); | |
pinMode(redPin, OUTPUT); |
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
@using website.Properties | |
@{ | |
ViewBag.Title = @Resources.SiteName; | |
Layout = "~/Views/Shared/_Layout.cshtml"; | |
} | |
<div id="paragraphs"> | |
<p>@Resources.Bio</p> | |
<p>@Resources.History</p> | |
<p>@Resources.Services</p> |
NewerOlder