Skip to content

Instantly share code, notes, and snippets.

"%PROGRAMFILES(X86)%\MSBuild\14.0\bin\msbuild.exe" /p:AppxBundlePlatforms="x86|x64|ARM" /p:AppxBundle=Always /p:configuration="release"
@ridomin
ridomin / nuget.cmd
Last active September 23, 2016 06:08
Use latest Nuget
PowerShell (New-Object System.Net.WebClient).DownloadFile('https://dist.nuget.org/win-x86-commandline/latest/nuget.exe','nuget.exe');Start-Process 'nuget.exe' %1
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
namespace ZumoExtensions
{
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
ToastTemplateType toastTemplate = ToastTemplateType.ToastText02;
XmlDocument toastXml = ToastNotificationManager.GetTemplateContent(toastTemplate);
XmlNodeList toastTextElements = toastXml.GetElementsByTagName("text");
toastTextElements[0].AppendChild(toastXml.CreateTextNode("msg"));
toastTextElements[1].AppendChild(toastXml.CreateTextNode(DateTime.Now.ToString()));
ToastNotification toast = new ToastNotification(toastXml);
ToastNotificationManager.CreateToastNotifier().Show(toast);

Keybase proof

I hereby claim:

  • I am ridomin on github.
  • I am rido (https://keybase.io/rido) on keybase.
  • I have a public key whose fingerprint is A5E4 1E2C 584F A668 A7E1 F7AE 8D48 67D5 0420 8497

To claim this, I am signing this object:

namespace Rido.SingleInstance
{
public class SingleInstanceManager<T> : Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase
where T: System.Windows.Application, new()
{
T app;
public SingleInstanceManager()
{
base.IsSingleInstance = true;
}
awk -v cmd='openssl x509 -noout -subject' '
/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
@ridomin
ridomin / SSLInspector.cs
Created January 10, 2018 03:20
SSLInspector
namespace SSLInspector
{
using System;
using System.Net.Http;
using System.Security.Cryptography.X509Certificates;
using System.Threading.Tasks;
class Program
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Toolkit.Uwp.Notifications;
using Windows.UI.Notifications;
using Windows.Data.Xml.Dom;
namespace WpfAdoNetClient
@ridomin
ridomin / Remove_Dev_Packages.ps1
Created May 16, 2018 15:12
Remove_Dev_Packages
Get-AppxPackage | ? {$_.IsDevelopmentMode -eq "True"} | Remove-AppxPackage