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
| 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 |
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 | |
| 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..." |
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
| #!/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. |
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 -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") |
OlderNewer