Skip to content

Instantly share code, notes, and snippets.

View guoci's full-sized avatar

Guo Ci guoci

View GitHub Profile
@StephanTLavavej
StephanTLavavej / videos.md
Last active April 19, 2025 12:04
C++ Videos by Stephan T. Lavavej
@TheCherno
TheCherno / Instrumentor.h
Last active April 2, 2025 21:28
Basic Instrumentation Profiler
//
// Basic instrumentation profiler by Cherno
// Usage: include this header file somewhere in your code (eg. precompiled header), and then use like:
//
// Instrumentor::Get().BeginSession("Session Name"); // Begin session
// {
// InstrumentationTimer timer("Profiled Scope Name"); // Place code like this in scopes you'd like to include in profiling
// // Code
// }
@ewenchou
ewenchou / README.md
Last active July 8, 2023 04:36
Run Python script as systemd service
  1. Create a service file like dash_sniffer.service
  2. Put it in /lib/systemd/system/
  3. Reload systemd using command: systemctl daemon-reload
  4. Enable auto start using command: systemctl enable dash_sniffer.service