Skip to content

Instantly share code, notes, and snippets.

View tannerwatson's full-sized avatar

Tanner Watson tannerwatson

  • Homecare Homebase
  • Louisville, KY USA
  • 04:04 (UTC -12:00)
View GitHub Profile
@djmeph
djmeph / k8s-rpi5-cluster..md
Last active September 27, 2025 02:05
Kubernetes and Rancher on a Raspberry Pi 5 Cluster

Deploy Kubernetes and Rancher on a Rasperry Pi 5 Cluster

I purchased three 8GB Raspberry Pi 5s with 128GB 96mb/s microSD cards to build my first Kubernetes cluster, and as expected, I ran into a lot of problems with the newness of the Pi 5. I have been working with Kubernentes professionally for exactly one year now, so for me this was about learning how to create my own cluster from the ground up to fill in the gaps of knowledge of the infrastructure that has been provided to me.

I have since upgraded this cluster to 7 nodes with 512GB storage each.

Many tutorials and examples exist on building a Raspberry Pi K8S cluster. The problems I ran into were mostly in two categories:

@sysboss
sysboss / sonar.md
Last active April 21, 2022 15:24
SonarQube on AWS EC2 - Installation and integration with Jenkins

This article will briefly describe how to install SonarQube as Docker container on Amazon EC2 and integrate it with Jenkins.

Create database instance and user

Go to RDS > Parameter Groups
Create a new Parameter Group with the following parameter:

max_allowed_packet = 268435456

We need to create a new RDS database for SonarQube (you may use an existing MySQL instance)

  1. Go to RDS Instances
var firstNames = ["Joe", "Dave", "Alice", "Bob", "Tom", "Doug", "Alex", "Stephanie", "Tracy", "Xander", "Zelda"];
var lastNames = ["Andersen", "Baldwin", "Crockett", "Davis", "Davidson", "Eastman", "Young", "Rogers", "McArty", "DeVito"];
for(i=0;i<1000;i++) {
var student = {
"student_id" : i,
"firstName" : firstNames[getRandomNumberUpTo(firstNames.length - 1)],
"lastName" : lastNames[getRandomNumberUpTo(lastNames.length - 1)],
activity: []
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@smockle
smockle / BundleConfig.cs
Last active August 31, 2018 11:49
Demonstrates how to use BundleTransformer in a C# ASP.NET MVC web application.
using System.Web;
using System.Web.Optimization;
using BundleTransformer.Core.Transformers;
namespace Project.App_Start {
public class BundleConfig {
public static void RegisterBundles(BundleCollection bundles) {
var styles = new Bundle("~/bundles/stylesheets")
.Include(
"~/Assets/Styles/*.css",
@ticean
ticean / SVN_Git_Mirror.md
Created January 3, 2012 21:14
SVN Git Mirror

Create Git Mirror from SVN Repository

This guide will demonstrate how to mirror an SVN into a Git repo. You're the target audience if you're an SVN user, just getting started with Git and need to coax your project team over to Git.

The branching scenario has been simplified for clarity.

References

@davidfowl
davidfowl / SolutionFolders.ps1
Created February 21, 2011 10:01
Adding a solution folder via DTE in NuGet
function Add-SolutionFolder {
param(
[string]$Name
)
$solution2 = Get-Interface $dte.Solution ([EnvDTE80.Solution2])
$solution2.AddSolutionFolder($Name)
}
function Get-SolutionFolder {
param (