Skip to content

Instantly share code, notes, and snippets.

@robertchong
robertchong / ReadWriteCsv.cs
Created June 4, 2014 12:27
Reading and Writing CSV Files in C#
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace ReadWriteCsv
{
/// <summary>
/// Class to store one CSV row
/// Source: http://www.codeproject.com/Articles/415732/Reading-and-Writing-CSV-Files-in-Csharp
@robertchong
robertchong / Get-LoggedOnUsers.ps1
Created December 13, 2014 06:02
This script will use the Sysinternals PsLoggedon.exe tool to get the list of users logged onto a workstation or server.The script has a check built in to validate that the computer name belongs to your domain. It will also get the full name of the logged on user back in the result. See https://gallery.technet.microsoft.com/scriptcenter/Get-Logge…
<#
.Synopsis
This script will use the Sysinternals PsLoggedon.exe tool to get the list of users logged onto a workstation or computer
.Description
The script has a check built in to validate that the computer name belongs to your domain. It will also get the full name of the logged on user back in the results.
There is a built in check to ask the operator if they would like to rerun the script.
The script can be used with the parameter PathToPSLoggedon to specify the location of PsLoggedon.exe. Or this can be set to always default to this location.
'* Script name: List All Atributes.vbs
'* Created on: 01/28/2009
'* Author: Andrew J Healey
'* Purpose: Exports all attributes from the user object type within
'* the Active Directory schema.
'* Schema: cscript /nologo "list all attribtues.vbs" > Attributes.csv
'* History: Andrew J Healey 01/28/2009
'* - Created script
'
Option Explicit
@robertchong
robertchong / yaml-chomping-indicators.md
Last active May 6, 2026 13:06
YAML Block Chomping Indicators: | vs |- vs |+

YAML Block Chomping Indicators: | vs |- vs |+

The | symbol denotes a literal block scalar — newlines inside the value are preserved as-is. The character after it is the block chomping indicator, controlling how trailing newlines are handled.

The Three Indicators

Indicator Name Trailing newline
| Clip (default) Keeps one trailing newline
@robertchong
robertchong / copilot-instructions.md
Last active May 6, 2026 14:25
Copilot Instructions inspired by Andrej Karpathy's CLAUDE.md

GitHub Copilot Instructions

Behavioral guidelines for AI-assisted coding in this repository. Based on the principles from Andrej Karpathy's CLAUDE.md.

Tradeoff: These guidelines bias toward caution over speed. For trivial one-liner changes, use judgment.


@robertchong
robertchong / dns-record-types.md
Created May 7, 2026 20:45
DNS Record Types Reference

DNS Record Types Reference

Core Records

Record Full Name Purpose Example
A Address Maps a domain to an IPv4 address bla.com93.184.216.34
AAAA IPv6 Address Maps a domain to an IPv6 address bla.com2606:2800:220:1:248:1893:25c8:1946
CNAME Canonical Name Alias — maps a domain to another domain www.bla.combla.com
TXT Text Stores arbitrary text, used for verification & metadata "apple-domain-verification=abc123"
@robertchong
robertchong / 120_claude_prompt_codes.md
Created May 10, 2026 19:17
120 Claude Prompt Codes

120 Claude Prompt Codes


💻 Coding / Tech

Command Description
/debug Find bugs
/refactor Clean code
@robertchong
robertchong / anti-glaze-system-prompt.md
Created May 10, 2026 20:09
The Anti-Glaze System Prompt

★ THE ANTI-GLAZE SYSTEM PROMPT ★

Turn any LLM into a brutally honest world-class expert · no flattery · no fluff


🎯 The Full Prompt

You are a world class expert in all domains. Your intellectual firepower, scope of knowledge, incisive thought process, and level of erudition are on par with the smartest people in the world. Answer with complete, detailed, specific answers. Process information and explain your answers step by step. Verify your own work. Double check all facts, figures, citations, names, dates, and examples. Never hallucinate or make anything up. If you don't know something, just say so. Your tone of voice is precise, but not strident or pedantic. You do not need to worry about offending me, and your answers can and should be provocative, aggressive, argumentative, and pointed. Negative conclusions and bad news are fine. Your answers do not need to be politically correct. Do not provide disclaimers. Do not inform me about morals and ethics unless I specifical