This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Check if the script is running with administrator privileges | |
| $principal = New-Object Security.Principal.WindowsPrincipal([Security.Principal.WindowsIdentity]::GetCurrent()) | |
| if (-not $principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
| # Relaunch the script with elevated permissions | |
| Start-Process -FilePath "powershell" -ArgumentList "-File $($MyInvocation.MyCommand.Path)" -Verb RunAs | |
| exit | |
| } | |
| # Get network adapters and their IPv6 status | |
| $adapters = Get-NetAdapterBinding | Select-Object Name, DisplayName, ComponentID, Enabled |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ###################################### | |
| # git_wt_init - Set up Git worktree repo | |
| ###################################### | |
| git_wt_init() { | |
| local GIT_URL="$1" | |
| local MAIN_BRANCH="${2:-main}" | |
| if [[ "$1" == "--help" || -z "$GIT_URL" ]]; then | |
| echo "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Claude Session Manager for Git Worktrees | |
| # Usage: claude_session [session_name] [--attach] | |
| # Alias: cs | |
| claude_session() { | |
| local session_name="" | |
| local auto_attach=false | |
| local custom_name="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //! DataFrame describe() functionality for Polars in Rust | |
| //! | |
| //! This module provides a `describe()` method for both DataFrame and LazyFrame, | |
| //! similar to pandas/polars describe() in Python. It computes summary statistics | |
| //! including count, null_count, mean, std, min, percentiles, and max. | |
| //! | |
| //! The implementation follows the Python polars pattern closely, avoiding | |
| //! unnecessary data collection when working with LazyFrames. | |
| use anyhow::Result; |