Skip to content

Instantly share code, notes, and snippets.

@ANRCorleone
ANRCorleone / readme.txt
Last active October 22, 2024 16:16 — forked from krisalyssa/readme.txt
Ubuntu 22.04 + Hyper V + Enhanced Session mode + XRDP PulseAudio
Credits
# https://c-nergy.be/blog/?p=13655
# https://askubuntu.com/questions/844245/how-to-compile-latest-pulseaudio-with-webrtc-in-ubuntu-16-04
# https://askubuntu.com/questions/496549/error-you-must-put-some-source-uris-in-your-sources-list
# https://unix.stackexchange.com/questions/65167/enable-udev-and-speex-support-for-pulseaudio
# https://rudd-o.com/linux-and-free-software/how-to-make-pulseaudio-run-once-at-boot-for-all-your-users
# https://gist.github.com/rkttu/35ecab5604c9ddc356b0af4644d5a226
# Installation and Enhanced session
# follow steps on the post below, I installed Ubuntu 22.04 on a Windows 11 machine
@ANRCorleone
ANRCorleone / pr.md
Created July 1, 2019 08:43 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@ANRCorleone
ANRCorleone / Helpers.cs
Last active April 12, 2017 06:01
Some of my C# code snippets from our team project - Project Billion
//Use on reflection, works on nested properties too
public static object GetPropertyValue(object obj, string propertyName)
{
var names = propertyName.Split('.');
foreach (var item in names)
{
var propInfo = obj?.GetType().GetProperty(item);
obj = propInfo?.GetValue(obj);
}
return obj;
@ANRCorleone
ANRCorleone / knockout-globals.js
Last active January 29, 2017 21:31
Some of my javascript code snippets from our team project - Property.Community
//Big thank you to Ryan Niemeyer for sharing his wisdom on KnockoutJS
//Learned it quickly because of him.
//There are others I forgot, he just stood out to me as a KnockoutJS guru :)
//Our Generic and reusable Javascripts should go here.
var ourProject = ourProject || (ourProject = {});
(function (project) {
//KnockoutJS with bootstrap modal. make sure you have an observable named pickedTemplate on your $root context. You will
//write your template name on that observable.