Skip to content

Instantly share code, notes, and snippets.

View Bahex's full-sized avatar

Bahex Bahex

  • 14:06 (UTC +03:00)
View GitHub Profile
@Bahex
Bahex / theme-after.svg
Created September 1, 2025 11:31
nu-release-0.107.0 images
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Bahex
Bahex / wrap-internal-util.nu
Last active August 24, 2025 03:05
nushell utility commands for writing wrapper commands
def signatures [cmd: string] {
scope commands
| where name == $cmd
| get 0.signatures
| values
| first
| where parameter_type not-in [input output]
| enumerate
| sort-by {$in.item.parameter_type == rest} index
| get item
#!/usr/bin/python
import sys
import json
import SocketServer
SocketServer.TCPServer.allow_reuse_address = True
class MCHandler(SocketServer.BaseRequestHandler):
stop_server = False