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
internal class Program | |
{ | |
// Sample unordered list of strings | |
private const string OriginalString = "[V],[E],[B],[B],[O],[E],[P],[B]"; | |
private static void Main(string[] args) | |
{ | |
var lst = new List<string>(); | |
lst.AddRange(OriginalString.Split(',')); |
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
/// <summary> | |
/// Method that returns all the duplicates in the collection. | |
/// </summary> | |
/// <typeparam name="T">The type.</typeparam> | |
/// <param name="list">The Original List to detect for duplicates.</param> | |
/// <returns>A list of duplicates found in the Original List.</returns> | |
public static List<T> GetDuplicates<T>(this List<T> list) | |
{ | |
// Finding duplicates by Grouping the entries and then finding | |
// Groups that have more than one entity |
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
backend default { | |
.host = "127.0.0.1"; | |
.port = "8080"; | |
.connect_timeout = 60s; | |
.first_byte_timeout = 60s; | |
.between_bytes_timeout = 60s; | |
.max_connections = 800; | |
} | |
acl purge { |
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
define ('FS_METHOD', 'direct'); // for automatic plugin installation | |
/* That's all, stop editing! Happy blogging. */ |
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
# Varnish Configuration | |
START=yes | |
NFILES=131072 | |
MEMLOCK=82000 | |
DAEMON_OPTS="-a :80 \ | |
-T localhost:6082 \ | |
-f /etc/varnish/default.vcl \ | |
-S /etc/varnish/secret \ | |
-t 120 \ |