Skip to content

Instantly share code, notes, and snippets.

View sirredbeard's full-sized avatar

Hayden Barnes sirredbeard

View GitHub Profile
Invoke-WebRequest -useb https://github.com/containernetworking/plugins/releases/download/v0.9.1/cni-plugins-windows-amd64-v0.9.1.tgz -OutFile c:\opt\cni\bin\cni-plugins.tgz
$sourceVipJson = [io.Path]::Combine($Global:BaseDir, "sourceVip.json")
$sourceVipRequest = [io.Path]::Combine($Global:BaseDir, "sourceVipRequest.json")
$hnsNetwork = Get-HnsNetwork | ? Name -EQ flannel.4096
$subnet = $hnsNetwork.Subnets[0].AddressPrefix
@IanColdwater
IanColdwater / twittermute.txt
Last active April 14, 2025 16:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@deadlydog
deadlydog / Import-PfxCertificate.ps1
Last active October 26, 2024 05:16
PowerShell script that imports a .pfx certificate file. Useful to do before building the solution on a build server. For more info, see https://blog.danskingdom.com/creating-a-pfx-certificate-and-applying-it-on-the-build-server-at-build-time/
param([string] $PfxFilePath, $Password)
# You may provide a [string] or a [SecureString] for the $Password parameter.
$absolutePfxFilePath = Resolve-Path -Path $PfxFilePath
Write-Output "Importing store certificate '$absolutePfxFilePath'..."
Add-Type -AssemblyName System.Security
$cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2
$cert.Import($absolutePfxFilePath, $Password, [System.Security.Cryptography.X509Certificates.X509KeyStorageFlags]"PersistKeySet")
@dyoungwd
dyoungwd / google-fonts.sh
Created November 24, 2016 10:26
Install Google Fonts on fedora
# Original : Michalis Georgiou
# Modified : D4zzy for Fedora
_wgeturl="https://github.com/google/fonts/archive/master.tar.gz"
_gf="google-fonts"
# install wget
echo "Installing wget..."
sudo dnf install wget