Skip to content

Instantly share code, notes, and snippets.

Satal / ShuffleStringExcludeOriginal
Last active Dec 22, 2015
Shuffle the characters in a string but excluding the original string that was passed in. The method checks that we have passed in a string of more than two characters as if we have less than two characters it is not possible to return anything but the original string.
View ShuffleStringExcludeOriginal
public static string ShuffleStringExcludeOriginal(string stringToShuffle)
    string shuffled;
    if (String.IsNullOrEmpty(stringToShuffle))
        throw new ArgumentNullException("stringToShuffle",
                                        "The stringToShuffle variable must not be null or empty");
Satal / Usage.cs
Last active Mar 6, 2017
View Usage.cs
public void MultipleSchemas()
var validator = new XsdValidator();
var isValid = validator.IsValid(@"ValidXmlDoc1.xml");
Satal / Ansible Winrm Variables
Created Dec 19, 2020
The variables that need to be set for Ansible to use Winrm
View Ansible Winrm Variables
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_server_cert_validation: ignore