This file contains hidden or 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
| using System; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Windows.Forms; | |
| /*********************************************************************** | |
| * CoolSoft RunAsX86 | |
| *********************************************************************** | |
| * Based on code by CoolSoft: |
This file contains hidden or 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
| namespace MyNamespace | |
| { | |
| [LicenseProvider(typeof(MyLicenseProvider))] | |
| public class MyLicensedComponent : Component | |
| { | |
| } | |
| public class MyLicenseProvider : LicenseProvider | |
| { |
This file contains hidden or 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
| TXTextControl.ServerTextControl, TXTextControl.Server, Version=21.0.600.500, Culture=neutral, PublicKeyToken=6b83fe9a75cfb638 |
This file contains hidden or 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
| "LC.exe" /target:Licensensing.dll /complist:.\licenses.licx /outdir:. /i:".\TXTextControl.Server.dll" |
This file contains hidden or 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
| "Csc.exe" /reference:"System.dll" /reference:"System.Core.dll" /reference:"TXTextControl.dll" /reference:"TXTextControl.Server.dll" /out:Licensensing.dll /resource:Licensensing.dll.licenses /target:library .\Class1.cs .\Properties\AssemblyInfo.cs |
This file contains hidden or 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
| //.. | |
| if (resourceAssembly == null) | |
| { | |
| resourceAssembly = Assembly.GetEntryAssembly(); | |
| } | |
| if (resourceAssembly == null) | |
| { | |
| foreach (Assembly assembly in AppDomain.CurrentDomain.GetAssemblies()) | |
| { | |
| //... |
This file contains hidden or 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 class LicenseLoader | |
| { | |
| public static void LoadLicensesFromCallingAssembly() | |
| { | |
| var assembly = Assembly.GetCallingAssembly(); | |
| foreach (var resourceName in | |
| assembly.GetManifestResourceNames(). | |
| Where(resourceName => resourceName.EndsWith(".licenses"))) | |
| { |
This file contains hidden or 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
| function Enable-FusionLog{ | |
| Set-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name EnableLog -Value 1 -Type DWord | |
| } | |
| function Disable-FusionLog{ | |
| Remove-ItemProperty -Path HKLM:\Software\Microsoft\Fusion -Name EnableLog | |
| } |
This file contains hidden or 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
| /* ==UserStyle== | |
| @name JSONView Dark | |
| @namespace https://gist.github.com/lennybacon | |
| @version 1.0.1 | |
| @description Dark theme for JsonView Extension | |
| @author lennybacon | |
| @homepageURL https://gist.github.com/lennybacon/cb700cee27601e7473dd | |
| @updateURL https://gist.githubusercontent.com/lennybacon/cb700cee27601e7473dd/raw/7cfb8b250a8067122a0f138e4f00ab463b9d59d4/userstyle_jsonview.css | |
| @license CC-BY-SA-4.0 | |
| ==/UserStyle== */ |
This file contains hidden or 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
| /* AGENT_SHEET */ | |
| /** DeepDark "about:home" for Firefox | |
| /* http://userstyles.org/styles/64099/ | |
| /* by sr21 | |
| /* update 2014-02 | |
| */ | |
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document url("about:home") { |