Skip to content

Instantly share code, notes, and snippets.

View TT702's full-sized avatar
👺
¯\_(ツ)_/¯

TT702 TT702

👺
¯\_(ツ)_/¯
View GitHub Profile
@LanceMcCarthy
LanceMcCarthy / MauiProgram.cs
Last active June 22, 2024 14:45
Mica support in .NET MAUI
// ************************************************************************ //
// This implementation is inspired from the official WinUI3 backdrops examples
// https://github.com/microsoft/WinUI-Gallery/blob/winui3/XamlControlsGallery/ControlPagesSampleCode/SystemBackdrops/SystemBackdropsSample2.txt
// *********************************************************************** //
using Microsoft.Maui.LifecycleEvents;
#if WINDOWS10_0_17763_0_OR_GREATER
// The namespace of where the WindowsHelpers class resides
// In older versions of .NET MAUI, this was
@micrypt
micrypt / gist:1207324
Created September 9, 2011 20:59
Fix silly "Networking Disabled" issue (Ubuntu 10.04)
su root
# Don't you hate when you need to root to fix dumb issues?
service network-manager stop
rm /var/lib/NetworkManager/NetworkManager.state
service network-manager start
reboot -h now