Skip to content

Instantly share code, notes, and snippets.

View zsoumya's full-sized avatar

Soumya Mukherjee zsoumya

  • Charlotte, NC
  • 22:06 (UTC -12:00)
View GitHub Profile
@zsoumya
zsoumya / bc4trialreset.cmd
Created July 12, 2019 21:25
Beyond Compare 4 Trial Reset
reg delete "HKCU\Software\Scooter Software\Beyond Compare 4" /v CacheID /f
@zsoumya
zsoumya / snagittrialfix.cmd
Created July 12, 2019 01:30
Reset Snagit Trial
@echo off
echo Deleting HKEY_CLASSES_ROOT\dacdchfile ...
reg delete HKEY_CLASSES_ROOT\dacdchfile /f
echo Deleting HKEY_CLASSES_ROOT\tigans ...
reg delete HKEY_CLASSES_ROOT\tigans /f
@zsoumya
zsoumya / ChangePass.ps1
Created July 9, 2019 21:23
Change Local User's Password
$password = Read-Host "Enter the new password" -AsSecureString
Get-LocalUser -Name LocalUser | Set-LocalUser -Password $password
runas /user:LocalUser cmd.exe
@zsoumya
zsoumya / dailyprompt.ps1
Created May 6, 2019 14:06 — forked from jdhitsolutions/dailyprompt.ps1
An enhanced PowerShell prompt function that incorporates some of my other PowerShell modules to provide a daily management experience.
#requires -version 5.1
<#
The complete version of the function also requires additional modules
which can be downloaded from the PowerShell Gallery.
https://github.com/jdhitsolutions/PSCalendar
https://github.com/jdhitsolutions/myTickle
If you prefer to
@zsoumya
zsoumya / BoxPrompt2.ps1
Created May 6, 2019 14:06 — forked from jdhitsolutions/BoxPrompt2.ps1
A variation on my PowerShell box prompt. This should work cross-platform on PowerShell Core.
#requires -version 5.1
<#
This is a variation of the BoxPrompt code you can find at https://gist.github.com/jdhitsolutions/df808116f9234c070bdaf233418ec59b
Create a lined box with user and location information. The line color will indicate if the user is running elevated.
The prompt will also display the current date and time and a PS prompt with the PowerShell version.
┌───────────────────────┐
│ [BOVINE320\Jeff] C:\ │
@zsoumya
zsoumya / NewSync
Created May 5, 2019 17:16
Create a new local Git repo and sync with a remote Git repo which has additional (but not common) files
git init
git add -A
git commit -m "<commit message>"
git remote add origin <remote_url>
git fetch origin
git rebase origin/master
git branch -u origin/master
git push
@zsoumya
zsoumya / resharper.dotsettings.xml
Last active May 2, 2019 17:40
Resharper DotSettings
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/ExtensionMethodsInSmartCompletion/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/IntelliSenseCompletingCharacters/CSharpCompletingCharacters/UpgradedFromVSSettings/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CSharpAdvancedCodeCompletion/InsertLambdaAsTemplate/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/LookupWindow/ShowSignatures/@EntryValue">True</s:Boolean>
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/LookupWindow/UseCompletionFontForLookups/@EntryValue">False</s:Boolean>
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/Paramete
@zsoumya
zsoumya / tmux-cheatsheet.markdown
Created April 11, 2019 15:19 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@zsoumya
zsoumya / show-256-colors.sh
Created April 11, 2019 14:15 — forked from ivanbrennan/show-256-colors.sh
Use Bash to show all 256 colors supported by xterms
#!/usr/bin/env bash
PADDING='Padding'
main() {
local xterm_start=0 \
xterm_width=8 \
xterm_height=2
local cube_start=$((xterm_start + xterm_width * xterm_height)) \
@zsoumya
zsoumya / show-all-256-colors.py
Created April 11, 2019 14:14 — forked from mgedmin/show-all-256-colors.py
Script to show all 256 colors supported by xterms
#!/usr/bin/python
"""Print a swatch using all 256 colors of 256-color-capable terminals."""
__author__ = "Marius Gedminas <marius@gedmin.as>"
__url__ = "https://gist.github.com/mgedmin/2762225"
__version__ = '2.0'
def hrun(start, width, padding=0):