This file contains 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
<system.webServer> | |
<!-- Remember to unlock the section in iis! --> | |
<serverRuntime uploadReadAheadSize="10485760"/> | |
</system.webServer> |
This file contains 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.Runtime.InteropServices; | |
[DllImport("kernel32.dll", CharSet = CharSet.Unicode)] | |
[return: MarshalAs(UnmanagedType.Bool)] | |
internal static extern bool DeleteFile(string lpFileName); | |
// This code snippet is provided under the Microsoft Permissive License. | |
public static void Delete(string fileName) { | |
// call it with a file name prefixed by \\?\: |
This file contains 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
/// <summary> | |
/// To register, go to web.config and set | |
/// <profile enabled="true" inherits="Namespace.CustomProfile" > | |
/// </summary> | |
public class CustomProfile:ProfileBase | |
{ | |
/// <summary> | |
/// Needs <anonymousIdentification enabled="true"/> in system.web in order to track anonymous | |
/// </summary> | |
/// <returns></returns> |
This file contains 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
{ | |
"params" : { | |
"drivers" : [ | |
{ | |
"name" : "obd_driver", | |
"type" : "serial", | |
"filename" : "vehicle_recorder.js", | |
"interfaces" : [ | |
{ | |
"name" : "odbrecord", |
This file contains 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
Restore database nameOfDbInTheBackupFile | |
FROM DISK = 'C:\dbFullBackup.bak' | |
with move 'mdf_file_name' to 'c:\db\mdf_file_name.mdf', | |
move 'ldf_file_name' to 'c:\db\ldf_file_name.LDF' |
This file contains 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
# Copied from http://blogs.msdn.com/b/dimeby8/archive/2009/06/10/change-unidentified-network-from-public-to-work-in-windows-7.aspx | |
# | |
# Don't forget to run "set-executionpolicy remotesigned" to enable ps1 execution. | |
# Run this as admin | |
# | |
# Name: ChangeCategory.ps1 | |
# Copyright: Microsoft 2009 | |
# Revision: 1.0 | |
# | |
# This script can be used to change the network category of |
This file contains 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
git -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 \ | |
-c gc.rerereresolved=0 -c gc.rerereunresolved=0 \ | |
-c gc.pruneExpire=now gc "$@" |
This file contains 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
GRANT EXECUTE ON DATABASE::DatabaseName TO SomeRoleOrUser; | |
GRANT EXECUTE ON SCHEMA::dbo TO SomeRoleOrUser; |
This file contains 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
@REM Create the hostednetwork named AbotNetwork and protect | |
@REM it using the 12345678 password | |
netsh wlan set hostednetwork ssid=AbotNetwork key=12345678 | |
@REM Start the hostednetwork. Devices should be able to | |
@REM see the network after that and be able to obtain | |
@REM an ip on the 192.168.x.x range | |
netsh wlan start hostednetwork | |
@REM Stop the hostednetwork |
This file contains 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.Collections.Generic; | |
using System.IdentityModel.Selectors; | |
using System.IdentityModel.Tokens; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Xml; | |
using Saml2SecurityTokenHandler = Microsoft.IdentityModel.Extensions.Saml2SecurityTokenHandler; | |
namespace Owin.Security.WsFederation | |
{ | |
/// <summary> |
OlderNewer