Skip to content

Instantly share code, notes, and snippets.

View 001123's full-sized avatar
🎯
Focusing

Bui Khuong Duy 001123

🎯
Focusing
View GitHub Profile
@ddieppa
ddieppa / Microsoft.PowerShell_profile.ps1
Last active June 21, 2025 19:43
OhMyPosh Configuration and PowerShell Profile
# Handle PowerShell 7.4+ UTF-8 encoding issues
$previousOutputEncoding = [Console]::OutputEncoding
[Console]::OutputEncoding = [Text.Encoding]::UTF8
try {
# # PowerToys Command Not Found Integration (with safe handling)
# $powerToysModulePath = Join-Path $env:LocalAppData "PowerToys\WinGetCommandNotFound.psd1"
# if (Test-Path $powerToysModulePath) {
# try {
# # Enable PowerShell Experimental Features for PowerToys
@spemer
spemer / customize-scrollbar.css
Last active May 16, 2025 20:21
✨ Customize website's scrollbar like Mac OS. Not supports in Firefox and IE.
/* Customize website's scrollbar like Mac OS
Not supports in Firefox and IE */
/* total width */
body::-webkit-scrollbar {
background-color: #fff;
width: 16px;
}
/* background of the scrollbar except button or resizer */
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 2, 2025 14:54
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@bdsexton
bdsexton / csv-trees.md
Last active July 25, 2022 03:50
Generate File System Trees in CSV Format with "tree" and "sed"

Generate File System Trees in CSV Format with "tree" and "sed"

Description

I don't know whether this will be useful to anyone else, but I wanted to use the Linux tree command to generate file system trees in CSV format on OS X. This should work pretty much as is on Linux, although you may need or want to change the paths and optimize the usage of sed.

Dependency

This uses the Linux "tree" command, which is not standard on OS X.