This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
printf "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision | |
for i in $(find . -name ".git" | cut -c 3-); do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Echo the commands as they're run | |
Set-PSDebug -Trace 1 | |
# Dump Windows version | |
Get-ComputerInfo | Format-Table WindowsVersion, OsVersion | |
# Create a UEFI VM, secure boot enabled, use the secure boot settings for the | |
$vm = New-VM -Generation 2 -Name "Fedora 38" -Path . | |
$vm | Set-VMFirmware -EnableSecureBoot On -SecureBootTemplate "MicrosoftUEFICertificateAuthority" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using log4net.Util; | |
namespace log4net | |
{ | |
public static class LogExtentions | |
{ | |
private static readonly Type ThisDeclaringType = typeof(LogExtentions); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using System.Web; | |
using System.Web.UI; | |
namespace StringExtensions | |
{ | |
/// <remarks> | |
/// http://james.newtonking.com/archive/2008/03/27/formatwith-string-format-extension-method.aspx |