Skip to content

Instantly share code, notes, and snippets.

View daltonnyx's full-sized avatar
🦥

Quy Truong daltonnyx

🦥
  • Saigon Technology
  • Da Nang
View GitHub Profile
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# ]
# ///
import requests
import time
resp = requests.post(
# 1. Error Handling: Start with $ErrorActionPreference = "Stop"
$ErrorActionPreference = "Stop"
Write-Host "Starting AgentCrew installation script for Windows..."
# Initialize TempDir to null for cleanup check
$TempDir = $null
try {
# 2. uv Prerequisite Check
#!/bin/bash
set -e
echo "Starting AgentCrew installation script..."
# 1. Check if uv command exists
echo "Checking for uv..."
if ! command -v uv &> /dev/null
then
echo "uv command not found. Attempting to install uv..."
#!/bin/bash
ICON_BLUETOOTH=""
ICON_BATTERY_FULL=""
ICON_BATTERY_THREE_QUARTERS=""
ICON_BATTERY_HALF=""
ICON_BATTERY_QUARTER=""
ICON_BATTERY_EMPTY=""
BLUETOOTH_BATTERY_STATUS=$HOME/src/scripts/bluetooth_battery_status.sh
@daltonnyx
daltonnyx / wakemeup
Last active September 23, 2024 08:55
up
# PLA+ Profile
[stepper_x]
step_pin: PC2
dir_pin: PB9
enable_pin: !PC3
microsteps: 16
rotation_distance: 40
endstop_pin: ^PA5
position_endstop: 220
position_max: 220

Creating Neat .NET Core Command Line Apps

You can now read this on my (pretty) website! Check it out here.

Every reason to get more HackerPoints™ is a good one, so today we're going to write a neat command line app in .NET Core! The Common library has a really cool package Microsoft.Extensions.CommandlineUtils to help us parse command line arguments and structure our app, but sadly it's undocumented.

No more! In this guide, we'll explore the package and write a really neat

@daltonnyx
daltonnyx / cloudSettings
Created November 16, 2021 08:14
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-11-16T08:14:52.712Z","extensionVersion":"v3.4.3"}
@daltonnyx
daltonnyx / cloudSettings
Created November 16, 2021 08:14
Visual Studio Code Settings Sync Gist
// Empty
@daltonnyx
daltonnyx / cloudSettings
Created November 16, 2021 08:12
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-11-16T08:12:02.876Z","extensionVersion":"v3.4.3"}