Default window Keybindings |
Can be changed in PaperWM extension settings |
---|---|
SuperReturn or SuperN | Open a new windows (of the current application) |
SuperBackspace | Close the active window |
Super. or Super, | Switch to the next or previous window |
SuperLeft or SuperRight | Activate the window to the left or right |
SuperUp or SuperDown | Activate the window above or below |
SuperHome or Super |
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
#define WAIST 2 | |
#define LEFT_LEG 3 | |
#define RIGHT_LEG 4 | |
#define LEFT_SHOE 5 | |
#define RIGHT_SHOE 6 | |
#define W WAIST | |
#define LL LEFT_LEG | |
#define RL RIGHT_LEG | |
#define LS LEFT_SHOE |
Remove un-needed services
sudo apt purge --auto-remove snapd squashfs-tools apport
Remove cloud init
sudo dpkg-reconfigure cloud-init
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
- Phasmophobia (speech recognition) - https://www.protondb.com/app/739630
Lots of the VSTs would probably work with LinVst?
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
{ | |
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{if .Root}}(Admin) {{end}}{{.Folder}}", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", |
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
public static class AttributeCache<TAttribute> where TAttribute : Attribute | |
{ | |
private static readonly ConcurrentDictionary<MethodInfo, ReadOnlyCollection<TAttribute>> Lookup = | |
new ConcurrentDictionary<MethodInfo, ReadOnlyCollection<TAttribute>>(); | |
public static IReadOnlyCollection<TAttribute> GetOrSet(MethodInfo methodInfo) => | |
Lookup.GetOrAdd(methodInfo, CachedDelegates.GetCustomAttributes); | |
private static class CachedDelegates | |
{ |
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
public struct Id | |
{ | |
public static readonly DateTime Epoch = new DateTime(2000, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc); | |
private static int _staticIncrement = new Random().Next(); | |
private static readonly int StaticMachine = (GetMachineHash() + GetAppDomainId()) & 0x00ffffff; | |
private static readonly short StaticPid = GetPid(); | |
// private fields | |
private readonly int _a; |
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
public static void Demo() | |
{ | |
var stringToInt = new TransformBlock<string, int>(str => | |
{ | |
Console.WriteLine("StringToInt"); | |
return int.Parse(str); | |
}); | |
var intToString = new TransformBlock<int, string>(i => | |
{ |
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
public static class EnumerableExtensions | |
{ | |
public static bool TryGetFirstValue<T>(this IEnumerable<T> source, out T value) | |
{ | |
if (source == null) | |
throw new ArgumentNullException(nameof(source)); | |
//is a list? | |
if (source is IList<T> col) | |
{ |
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
public async Task<IActionResult> DoChallenge(string returnUrl) | |
{ | |
var context = await _interaction.GetAuthorizationContextAsync(returnUrl); | |
var acrTenantValue = context.AcrValues.First(v => v.StartsWith("tenantId:")); | |
var tentantId = acrTenantValue.Split(':')[1]; | |
// start challenge and roundtrip the return URL and | |
var props = new AuthenticationProperties | |
{ |