Skip to content

Instantly share code, notes, and snippets.

@scout119
scout119 / README.md
Last active December 2, 2020 00:43
activity-box

🎉 Merged PR #71 in scout119/beamdasm 🎉 Merged PR #66 in scout119/beamdasm 🎉 Merged PR #70 in scout119/beamdasm 🎉 Merged PR #55 in scout119/beamdasm 🎉 Merged PR #56 in scout119/beamdasm

@scout119
scout119 / github.md
Last active September 11, 2020 20:44
Github tips and tricks
@scout119
scout119 / SQLTips.md
Last active September 7, 2023 21:02
Query to List Size of the Table with Row Counts
  1. Query to List Size of the Table with Row Counts
USE [YourDBName] -- replace your dbname
GO
SELECT
s.Name AS SchemaName,
t.Name AS TableName,
p.rows AS RowCounts,
CAST(ROUND((SUM(a.used_pages) / 128.00), 2) AS NUMERIC(36, 2)) AS Used_MB,
@scout119
scout119 / PS.md
Last active August 3, 2022 20:17
PowerShell

Installing an assembly into GAC

[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")            
$publish = New-Object System.EnterpriseServices.Internal.Publish            
$publish.GacInstall("C:\Path\To\DLL.dll")

Keybase proof

I hereby claim:

  • I am scout119 on github.
  • I am scout119 (https://keybase.io/scout119) on keybase.
  • I have a public key ASAM0k6wwnEeufeDL103Mvl3vJoGaoIDBjGHae8crn7QZAo

To claim this, I am signing this object:

@scout119
scout119 / VSCodeDevTools.txt
Last active April 21, 2018 03:00
Debugging HTML content provider in VSCode
// Instructions to open Chrome DevTools on the HTML preview window:
//
// 1. With the HTML preview window open, click Help->Toggle Developer Tools.
// Note that this DevTools is docked and is only for VSCode itself.
//
// 2. In the Console tab, paste this line:
// document.body.querySelector('webview').getWebContents().openDevTools();
//
// 3. You now have a second DevTools, the new one is un-docked. Close the
// old docked one.