Skip to content

Instantly share code, notes, and snippets.

View parameshg's full-sized avatar
💥
The Matrix has you!

Paramesh Gunasekaran parameshg

💥
The Matrix has you!
View GitHub Profile
@parameshg
parameshg / teamcity.cs
Created June 29, 2017 08:50
delete old teamcity builds
var web = new WebClient { Credentials = new NetworkCredential(username, password, domain) };
var builds = web.DownloadString("http://<team-city>/httpAuth/app/rest/builds/?locator=buildType:<build-configuration>");
if (!string.IsNullOrEmpty(builds))
{
var xml = new XmlDocument();
xml.LoadXml(builds);
var latest = 0;
@parameshg
parameshg / run-and-read-console-output.cs
Last active August 29, 2018 00:21
The following example runs the ipconfig.exe command and redirects its standard output to the example’s console window
using System;
using System.IO;
using System.Diagnostics;
class StandardOutputExample
{
public static void Main()
{
Process process = new Process();
process.StartInfo.FileName = "ipconfig.exe";
@parameshg
parameshg / authorized_keys
Created January 4, 2021 03:30
ssh public keys
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOdwa2kO6efHZhdQLBXYgt5yGNbRbEQ809ZW2jbJcE3v work
@parameshg
parameshg / keybase.md
Created March 19, 2021 02:07
keybase.md

Keybase proof

I hereby claim:

  • I am parameshg on github.
  • I am parameshg (https://keybase.io/parameshg) on keybase.
  • I have a public key ASCUklem3E_BqCdWoIFIdRtWDF_g7ALDnHiViFe2HLf4cQo To claim this, I am signing this object:
{
  "body": {
    "key": {