Skip to content

Instantly share code, notes, and snippets.

View ww898's full-sized avatar

Mikhail Pilin ww898

View GitHub Profile
@ww898
ww898 / CurrentVersion.txt
Created December 22, 2021 12:32
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion
CurrentVersion REG_SZ 6.0
CurrentBuildNumber REG_SZ 6002
CurrentBuild REG_SZ 6002
SoftwareType REG_SZ System
CurrentType REG_SZ Multiprocessor Free
InstallDate REG_DWORD 0x58ac17aa
RegisteredOrganization REG_SZ
RegisteredOwner REG_SZ WW
SystemRoot REG_SZ C:\Windows
@ww898
ww898 / event-mask.md
Last active January 31, 2024 17:26
.NET Core profiler Event Masks

COR_PRF_MONITOR where:

  • i - COR_PRF_MONITOR_IMMUTABLE (0xEEF8CC00)
  • a - COR_PRF_ALLOWABLE_AFTER_ATTACH (0x100502FE)
  • n - COR_PRF_ALLOWABLE_NOTIFICATION_PROFILER (0xB1E32B7F)
 0 ..n COR_PRF_MONITOR_FUNCTION_UNLOADS
 1 .an COR_PRF_MONITOR_CLASS_LOADS
 2 .an COR_PRF_MONITOR_MODULE_LOADS
 3 .an COR_PRF_MONITOR_ASSEMBLY_LOADS
 4 .an COR_PRF_MONITOR_APPDOMAIN_LOADS
@mariotacke
mariotacke / teamcity-agent
Last active February 23, 2021 14:57
/etc/init.d/teamcity-agent auto start script for TeamCity Agents
#!/bin/sh
### BEGIN INIT INFO
# Provides: TeamCity Build Agent
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start build agent daemon at boot time
# Description: Enable service provided by daemon.
### END INIT INFO
@mlocati
mlocati / win10colors.cmd
Last active July 13, 2024 05:06
ANSI Colors in standard Windows 10 shell
@echo off
setlocal
call :setESC
cls
echo %ESC%[101;93m STYLES %ESC%[0m
echo ^<ESC^>[0m %ESC%[0mReset%ESC%[0m
echo ^<ESC^>[1m %ESC%[1mBold%ESC%[0m
echo ^<ESC^>[4m %ESC%[4mUnderline%ESC%[0m
@hmemcpy
hmemcpy / undef.md
Last active November 21, 2023 16:46
Disabling Visual Studio Git Provider

Here's how to disable the package that is responsible for loading the Git source control support in Visual Studio. Use at your own risk!

  • Create a file called devenv.pkgundef and place it next to devenv.exe in you Visual Studio's Common7\IDE (you'll need elevation for this)
  • Add the following entries to the file:
[$RootKey$\Packages\{7fe30a77-37f9-4cf2-83dd-96b207028e1b}]
[$RootKey$\SourceControlProviders\{11b8e6d7-c08b-4385-b321-321078cdd1f8}]
  • Close VS if open, open a Developer command prompt, and type devenv /updateconfiguration
@petervanderdoes
petervanderdoes / zfs_health.sh
Last active July 4, 2024 10:08
ZFS Health Check Script
#! /usr/local/bin/bash
#
# Calomel.org
# https://calomel.org/zfs_health_check_script.html
# FreeBSD 9.1 ZFS Health Check script
# zfs_health.sh @ Version 0.15
# Check health of ZFS volumes and drives. On any faults send email. In FreeBSD
# 10 there is supposed to be a ZFSd daemon to monitor the health of the ZFS
# pools. For now, in FreeBSD 9, we will make our own checks and run this script
// XPath CheatSheet
// To test XPath in your Chrome Debugger: $x('/html/body')
// http://www.jittuu.com/2012/2/14/Testing-XPath-In-Chrome/
// 0. XPath Examples.
// More: http://xpath.alephzarro.com/content/cheatsheet.html
'//hr[@class="edge" and position()=1]' // every first hr of 'edge' class