Skip to content

Instantly share code, notes, and snippets.

View OpportunityLiu's full-sized avatar

Opportunity OpportunityLiu

  • EIRI, Tsinghua
  • Chengdu, China
  • 01:01 (UTC +08:00)
View GitHub Profile
@OpportunityLiu
OpportunityLiu / rm-disp-context.ps1
Created February 8, 2019 10:38
Remove intel and nvidia settings in desktop context menu
rm HKLM:\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\igfxDTCM -ErrorAction Continue
rm HKLM:\SOFTWARE\Classes\Directory\background\shellex\ContextMenuHandlers\NvCplDesktopContext -ErrorAction Continue
@OpportunityLiu
OpportunityLiu / HtmlHelper.cs
Last active February 19, 2018 16:31
Extension methods for HtmlAgilityPack
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HtmlAgilityPack
{
internal static class HtmlHelper
{
@OpportunityLiu
OpportunityLiu / Strings.tt
Last active September 21, 2016 07:29
A T4 templete to generate helper classes for fetching .resw string resources
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="System.Xml" #>
<#@ assembly name="System.Web" #>
<#@ assembly name="EnvDTE" #>
<#@ import namespace="System.Linq" #>
<#@ import namespace="System.Text" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.Xml" #>