Skip to content

Instantly share code, notes, and snippets.

View lucasmodrich's full-sized avatar
:octocat:
Focusing

LM lucasmodrich

:octocat:
Focusing
View GitHub Profile
@jlollis
jlollis / README.md
Created May 3, 2021 17:32 — forked from AlinaNova21/README.md
Rancher 2.0, RKE, and some Raspberry Pi 3s

Kubernetes and Arm

Getting rke and Rancher setup to run kubernetes on arm is interesting. There is no official support yet via rancher, although there is interest and some work done towards those efforts. This is my attempt at getting a cluster of 3 Pis (2 3Bs and 1 3B+) provisioned and registered to a rancher 2 server.

Prep

I've successfully completed this both with Hypriot OS 1.9.0 and the arm64 builds https://github.com/DieterReuter/image-builder-rpi64 Both times I used the same basic cloud-init setup

@tomtom215
tomtom215 / docker-compose.yaml
Last active January 9, 2024 02:29
adguard+portainer+watchtower docker-compose raspberry pi4
version: '3.3'
services:
portainer:
container_name: portainer
restart: unless-stopped
ports:
- '9000:9000'
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- /home/pi/docker/portainer:/data
@mattetti
mattetti / newWindowsMachine.sh
Last active November 13, 2024 00:27
bash script to run from WSL to setup Windows and Linux from the linux side. To run: `wget https://gist.githubusercontent.com/mattetti/9807e2a1e654a7c00bb9c13f340fc39f/raw/ -O newMachineSetup.sh` and then `bash newMachineSetup.sh`
#!/bin/bash
export WINHOME=$(wslpath "$(wslvar USERPROFILE)")
# github username is needed to pull down the dot files
export GITHUBUSERNAME="mattetti"
# wininstall does an install using winget and checks that it went well
function wininstall {
echo "Installing $1";
cmd.exe /C winget.exe install -e $1;
@dornfeder
dornfeder / Readme.md
Last active January 24, 2024 09:38
Git Branching Diagram Template

Git Branching Diagram Template for diagrams.net

This is my own variant of a git branching diagram template based on Bryan Braun's great template.

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/dornfeder/13abff279de357f048e474d4ed6c692d/raw/f5efc838bd34429e59e38063bd348b7a86457d18/git-diagram-template.xml
  4. Customize as needed for your team.
@bryanbraun
bryanbraun / git-branching-diagram.md
Last active December 3, 2024 15:11
Example Git Branching Diagram

Example Git Branching Diagram

You can use this diagram as a template to create your own git branching diagrams. Here's how:

  1. Create a new diagram with diagrams.net (formerly draw.io)
  2. Go to File > Open From > URL
  3. Insert this url (it points to the xml data below): https://gist.githubusercontent.com/bryanbraun/8c93e154a93a08794291df1fcdce6918/raw/bf563eb36c3623bb9e7e1faae349c5da802f9fed/template-data.xml
  4. Customize as needed for your team.

@stefanstranger
stefanstranger / Create-WIKIDocumentation.ps1
Created April 12, 2020 10:02
Create Azure DevOps WIKI Documentation
<#
PowerShell script to create Azure DevOps WIKI Markdown Documentation
https://docs.microsoft.com/en-US/rest/api/azure/devops/wiki/pages/create%20or%20update?view=azure-devops-rest-5.0#examples
https://medium.com/digikare/create-automatic-release-notes-on-azuredevops-f235376ec533
Requirements:
- PSDocs PowerShell Module (Install-Module -Name PSDocs)
#>
@i-b1
i-b1 / BackupFunction.cs
Created March 9, 2020 16:29
Azure DevOps API - Repositories Backup
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using Microsoft.WindowsAzure.Storage;
using Newtonsoft.Json;
@nh43de
nh43de / CloneAllRepos.ps1
Last active July 9, 2024 13:26
Clone all repos from Azure DevOps using Powershell
<#
--credits to https://blog.rsuter.com/script-to-clone-all-git-repositories-from-your-vsts-collection/
Create a file called "CloneAllRepos.config" in the same directory with
[General]
Url=??
Username=??
Password=??
@JaimeStill
JaimeStill / README.md
Last active December 12, 2021 10:42
Active Directory Authorization Workflow
@JaimeStill
JaimeStill / README.md
Last active November 22, 2024 09:09
ASP.NET Core Active Directory Integration

Active Directory Authentication

This will provide an example of integrating Active Directory authentication in an ASP.NET Core app.

Note, you'll need to be running on a Windows domain with Visual Studio debugging in IIS Express for this to work.

Setup

In launchSettings.json, you'll want to modify iisSettings by turning on windowsAuthentication: