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
Imports System.Runtime.Serialization | |
<Serializable()> | |
Public Class CustomException | |
Inherits Exception | |
Public Sub New() | |
MyBase.New() | |
End Sub |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<configuration> | |
<configSections> | |
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> | |
</configSections> | |
<log4net> | |
<!-- Setup a rolling file appender --> | |
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"> | |
<file value="..\filename.log" /> | |
<appendToFile value="true" /> |
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
Dim catalog As Object | |
Set catalog = CreateObject("COMAdmin.COMAdminCatalog") | |
Dim applicationName As String | |
applicationName = "Individual Projections" | |
' stop app | |
catalog.ShutdownApplication applicationName | |
' start app |
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
module XmlHelpers | |
open System.Xml.Linq | |
let wb = "http://www.worldbank.org" | |
let xattr s (el:XElement) = | |
el.Attribute(XName.Get(s)).Value | |
let xelem s (el:XContainer) = |
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
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\McAfee\SystemCore\VSCore\On Access Scanner\McShield\Configuration\Default" /v "ScanArchives" /t REG_DWORD /d 0 |
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
@echo off | |
attrib -r *.lib /s > nul 2>&1 | |
attrib -r *.exp /s > nul 2>&1 | |
attrib -r *.vbw /s > nul 2>&1 | |
del *.lib /s 2>nul | |
del *.exp /s 2>nul | |
del *.vbw /s 2>nul |
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 PostFix | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
int i = 1; | |
F(i++, i); // 1,2 | |
int j = 1; |
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
'Enable Registry Editing' | |
'© Veegertx - 4/7/2004 | |
'This code may be freely distributed/modified | |
On Error Resume Next | |
'Prevents errors from values that don't exist | |
Set WshShell = WScript.CreateObject("WScript.Shell") | |
'Delete DisableRegistryTools registry values | |
WshShell.RegDelete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools" | |
WshShell.RegDelete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\DisableRegistryTools" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\dllfile\shell\register] | |
@="Register" | |
[HKEY_CLASSES_ROOT\dllfile\shell\register\command] | |
@="\"c:\\windows\\system32\\regsvr32.exe\" \"%1\"" | |
[HKEY_CLASSES_ROOT\dllfile\shell\unregister] | |
@="Unregister" |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\exefile\shell\register] | |
@="Register ActiveX" | |
[HKEY_CLASSES_ROOT\exefile\shell\register\command] | |
@="\"%1\" /regserver" | |
[HKEY_CLASSES_ROOT\exefile\shell\unregister] | |
@="Unregister ActiveX" |
OlderNewer