Skip to content

Instantly share code, notes, and snippets.

View clarkey's full-sized avatar
🛴

Matt clarkey

🛴
View GitHub Profile
@clarkey
clarkey / mc.omp.json
Created November 24, 2023 09:27
MC OhMyPosh Theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "white",
"properties": {
"fetch_version": false
@clarkey
clarkey / targets.csv
Created June 22, 2021 12:46
PowerShell CSV Test-NetConnection Script
FQDN TCPPort
server1.example.corp 22
server2.example.corp 3389
server3.example.corp 21
@clarkey
clarkey / fix-time-from-dc.bat
Created July 31, 2014 13:34
Fix or sync Windows time from a domain controller
@echo off
cls
set /p user=Enter local admin credentials (DOMAIN\USER or WORKSTATION\USER):
set /p dc=Enter domain controller hostname (fully qualified domain name):
runas /u:%user% "net time \\%dc% /set /yes"
pause