Skip to content

Instantly share code, notes, and snippets.

@KirillFormado
KirillFormado / DigesWsAuthCredentials.cs
Last active November 27, 2015 13:27 — forked from pisceanfoot/CustomCredentials.cs
a custom wsse header (UserNameToken,Nonce) for webservice using WCF
// http://weblog.west-wind.com/posts/2012/Nov/24/WCF-WSSecurity-and-WSE-Nonce-Authentication
public class CustomCredentials : ClientCredentials
{
public CustomCredentials()
{ }
protected CustomCredentials(CustomCredentials cc)
: base(cc)
{ }
public class App : Application
{
// ... bla bla
// when app is launching, we should set its language to previous saved or best for user's system language or default for application
private void Application_Launching(object sender, LaunchingEventArgs e)
{
LocalizationManager.ChangeAppLanguage(LocalizationManager.GetCurrentAppLang());
}
}
const string AsciiArt =
@"
▄ ▄
▌▒█ ▄▀▒▌
▌▒▒█ ▄▀▒▒▒▐
▐▄▀▒▒▀▀▀▀▄▄▄▀▒▒▒▒▒▐
▄▄▀▒░▒▒▒▒▒▒▒▒▒█▒▒▄█▒▐
▄▀▒▒▒░░░▒▒▒░░░▒▒▒▀██▀▒▌
▐▒▒▒▄▄▒▒▒▒░░░▒▒▒▒▒▒▒▀▄▒▒▌
▌░░▌█▀▒▒▒▒▒▄▀█▄▒▒▒▒▒▒▒█▒▐
@KirillFormado
KirillFormado / Console command
Last active November 11, 2020 15:46 — forked from joshuaflanagan/Console command
all web apps change StartWebServerOnDebug setting to false
get-project -all | %{ $_.Properties | ?{ $_.Name -eq "WebApplication.StartWebServerOnDebug" } | %{ $_.Value = $False} }