Skip to content

Instantly share code, notes, and snippets.

View QuAzI's full-sized avatar

Ruslan Yakauleu QuAzI

View GitHub Profile
@QuAzI
QuAzI / fff.ps1
Created June 16, 2025 21:46
Some kind of interaction with tldr in Windows
# this script helps to yank specific command shown by tldr into clipboard
$command = @(tldr.exe --list-all |
Sort-Object |
Get-Unique |
fzf.exe --preview 'tldr --color always {1}' --preview-window=right,70% --bind 'ctrl-y:execute-silent(tldr.exe {1} | Set-Clipboard)' --with-shell 'powershell.exe -NoLogo -NonInteractive -NoProfile -Command'
)
if ($command -ne $null)
{
$temp = New-TemporaryFile
@QuAzI
QuAzI / .env
Created January 16, 2023 14:22
RabbitMQ on Windows Containers (Win10) for local development
RABBITMQ_DEFAULT_VHOST=computer-name-in-lower-case
RABBITMQ_NODENAME=host-name.dev
@QuAzI
QuAzI / tmux-connect.sh
Last active August 16, 2021 17:03
Reverse shell for NAT users with tmux+socat+ssh
#!/bin/sh
#
# Run this script on relay_server to connect shared session
#
read -p "Port number: " relay_port
socat file:`tty`,raw,echo=0 tcp-connect:localhost:${relay_port}