Skip to content

Instantly share code, notes, and snippets.

View chechu2k5's full-sized avatar

Shreyas Murali chechu2k5

  • Bothell, WA
View GitHub Profile
@chechu2k5
chechu2k5 / gitsync.py
Created February 2, 2020 03:40
run git pull on rep folders
import click, sys, os, pprint, subprocess
def dump(p, depth, prefix='>'):
m = prefix * (depth + 1)
for sub in p:
print(m, end=' ')
print(sub.lower())
print()
using System;
using Microsoft.Win32;
public class GetDotNetVersion
{
public static void Main()
{
GetDotNetVersion.Get45PlusFromRegistry();
}
using System;
using Microsoft.Win32;
public class GetDotNetVersion
{
public static void Main()
{
GetDotNetVersion.Get45PlusFromRegistry();
}
@chechu2k5
chechu2k5 / envy.py
Last active June 11, 2019 19:39
simple python script to print a selected environment variable and optionally split by path separator/sort entries
import click
import os
@click.group()
def cli():
pass
@cli.command(name='all')
@chechu2k5
chechu2k5 / showenv.cs
Created January 19, 2018 21:26
A simple program to print the environment variables, optionally split them based on a passed delimiter. useful when inspecting the PATH from the command line
using System;
using System.Collections;
using System.Linq;
namespace ShowEnv
{
class Program
{
static void PrintUsage()
{