Skip to content

Instantly share code, notes, and snippets.

View tsilvs's full-sized avatar
🏠
Working from home

Seva Tsiliurik tsilvs

🏠
Working from home
View GitHub Profile
@cy6erGn0m
cy6erGn0m / Main.kt
Last active December 26, 2024 17:41
kotlin-native-libssh
import kotlinx.cinterop.*
import org.ssh.*
fun main(): Unit = memScoped {
val session = ssh_new() ?: return
val port = alloc<IntVar>()
port.value = 22
val verbosity = alloc<UIntVar>()
verbosity.value = SSH_LOG_PROTOCOL
@Sharrnah
Sharrnah / Install Docker - Pacman.sh
Last active November 17, 2025 13:50
Pacman Installation Scripts for SteamDeck (requires a set user password using `passwd` first)
#!/bin/bash
sudo steamos-readonly disable
sudo pacman-key --init
sudo pacman-key --populate archlinux
#sudo pacman-key --refresh-keys
# install docker package
echo -e "\rInstalling Docker..."
@mogoh
mogoh / Replace distutils.spawn.find_executable with shutil.which
Last active October 26, 2025 11:26 — forked from ssokolow/update_flatpak_cli.py
Utility for making Flatpak-installed apps available in the terminal through their normal command names
#!/usr/bin/env python3
"""Flatpak CLI Shortcut Generator
A simple no-argument tool that generates launchers with traditional non-flatpak
command names for your installed Flatpak applications in ~/.local/bin/flatpak.
Does full collision detection and warns you if you forgot to add its output
directory to your PATH. Also overrules the command-line specified in the
``.desktop`` file if the Flatpak maintainer didn't include support for
command-line arguments.
@woutervanwijk
woutervanwijk / android_autoconnect.sh
Last active September 21, 2025 17:59
auto connect to Android wireless debugging port and save it for the next time (for MacOS)
#!/bin/bash -x
# ip (static) for Android
# ANDROID_DEVICE=192.168.1.45
# ANDROID_DEVICE=192.168.1.85
FILE=~/.adb_port
ANDROID_DEVICE=192.168.1.45
#first test old port
PORT=$(cat "$FILE")