Skip to content

Instantly share code, notes, and snippets.

@thetechnick
thetechnick / main.go
Created August 24, 2023 19:41
Kube real server-side apply with deletion...
package main
import (
"context"
"encoding/json"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
@thetechnick
thetechnick / Containerfile
Created September 11, 2021 11:49
Linux CNC Fedora 34 Containerfile
FROM fedora:34
RUN dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-34.noarch.rpm \
https://github.com/rpmsphere/noarch/raw/master/r/rpmsphere-release-34-1.noarch.rpm
RUN dnf install git make autoconf gcc gcc-c++ libtirpc kmod python python3-gobject \
libudev-devel libmodbus-devel readline-devel freeglut-devel libXmu-devel \
libusb-devel glib2-devel gtk2-devel pygtk2 procps psmisc intltool tcl-devel tk-devel bwidget tkimg tclx \
gtk3-devel \
boost-python3-devel libwebsockets-devel python-devel -y
@thetechnick
thetechnick / ignition.json
Last active June 22, 2023 17:46
Hetzner Cloud terraform coreos install
{
"ignition": {
"version": "2.0.0",
"config": {}
},
"storage": {
},
"systemd": {},
"networkd": {},
"passwd": {
@thetechnick
thetechnick / centos-docker-install.sh
Last active August 29, 2015 14:16
CentOS7 Docker install script
#!/bin/sh
#
# Common
#
print() {
reset='\033[0m'
case $2 in
info)
@thetechnick
thetechnick / AngularJS_Controller_Extending.js
Last active August 29, 2015 14:16
AngularJS: extending an controller and bind the scope closures to the right parent
angular.module('app', [])
// Constant to satisfy $injector
.constant('$extend', false)
// Base Controller to extend
.controller('ControllerBase', function($scope, $extend){
'use strict';
var self = $extend ? $extend : this;
// common extended property and function