Skip to content

Instantly share code, notes, and snippets.

Murali Rajendran brilligence

Block or report user

Report or block brilligence

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:5207217
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>();
brilligence / gist:5207191
Last active Dec 15, 2015
Using LINQ to find duplicates (List extension)
View gist:5207191
/// <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
brilligence / gist:5167373
Created Mar 15, 2013
Varnish VCL Configuration
View gist:5167373
backend default {
.host = "";
.port = "8080";
.connect_timeout = 60s;
.first_byte_timeout = 60s;
.between_bytes_timeout = 60s;
.max_connections = 800;
acl purge {
View WP_AutoPluginInstall.php
define ('FS_METHOD', 'direct'); // for automatic plugin installation
/* That's all, stop editing! Happy blogging. */
View Varnish_Config
# Varnish Configuration
DAEMON_OPTS="-a :80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-S /etc/varnish/secret \
-t 120 \
You can’t perform that action at this time.