Skip to content

Instantly share code, notes, and snippets.

View clarkezone's full-sized avatar

James Clarke clarkezone

View GitHub Profile
apiVersion: v1
kind: Namespace
metadata:
name: tailscaletest
---
apiVersion: apps/v1
kind: Deployment
metadata:
@clarkezone
clarkezone / tailscaleoperatortest.yaml
Last active September 11, 2023 15:31
Tailscale operator test
apiVersion: v1
kind: Namespace
metadata:
name: tailscaletest
---
apiVersion: apps/v1
kind: Deployment
metadata:
@clarkezone
clarkezone / flat.yaml
Last active February 10, 2023 14:25
Flattened manifest and kubescore results
apiVersion: v1
kind: Namespace
metadata:
labels:
app: pocketshorten-viper
environment: development
name: pocketshorten
---
apiVersion: v1
data:
@clarkezone
clarkezone / clone.sh
Last active July 16, 2023 14:47
Current github projects
#!/bin/sh
# No set -e so re can rerun when adding new
ssh-add
mkdir -p ~/src/github.com/clarkezone
gh repo clone clarkezone/infra ~/src/github.com/clarkezone/infra
gh gist clone ce40fc823179c2103f2f1ae73e278b9f ~/src/github.com/clarkezone/clonescripts
gh gist clone clarkezone/neovimconfig ~/src/github.com/clarkezone/neovimconfig
gh gist clone clarkezone/neovimconfig-kickstart ~/src/github.com/clarkezone/neovimconfig-kickstart
using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace BSONSerializationTest
{
public class ServiceDescription
{
[BsonId]
@clarkezone
clarkezone / main.go
Last active September 11, 2020 03:05
Hello World for a SSH using Let's Encrypt in GoLang using nGrok and acme autocert
package main
import (
"crypto/tls"
"log"
"net/http"
"fmt"
"golang.org/x/crypto/acme/autocert"
)
@clarkezone
clarkezone / main.dart
Created August 14, 2019 20:00
Parsing XML
import 'package:xml/xml.dart' as xml;
void main() {
var st = """
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status etag="066703a9557dca5d651363e4c24e7406">
<album>BBC Proms: 2019</album>
<artist>BBC Radio 3</artist>
<autofill>34</autofill>
<canMovePlayback>true</canMovePlayback>
import 'dart:async';
import 'dart:io';
import 'package:http_server/http_server.dart';
void main() {
var webFiles = new VirtualDirectory('web');
runZoned(() {
HttpServer.bind('0.0.0.0', 8080).then((server) {
@clarkezone
clarkezone / RoHelper.cpp
Created September 17, 2018 02:28
Dynamically using WinRT avoiding statically linking windowsapp.lib and thus breaking compatibility with win7
class RoHelper
{
public:
RoHelper() : mWinRtAvailable(false)
{
if (!IsWindows10OrGreater())
{
return;
}
@clarkezone
clarkezone / index.html
Last active May 11, 2018 03:48
Fluent Design talks from Build 2018
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
</head>
<title>Fluent Design Talks at Build 2018</title>
<body>
<H1>BUILD 2018 Fluent Design Talks</H1>
<p>Visit <a href="https://fluent.microsoft.com/">https://fluent.microsoft.com</a> for more info</p>
<a href="https://medius.studios.ms/Embed/Video/BRK3501?sid=BRK3501">Modernizing Desktop Apps on Windows 10, Mike Harsh</a><br/>
<a href="https://developer.microsoft.com/en-us/events/build/content/whats-new-for-windows-ux-developers">What's New for Windows UX Developers? Fluent and XAML, Paul Gusmorino</a><br/>