Skip to content

Instantly share code, notes, and snippets.

View Mattti0's full-sized avatar

Matti Wenell Mattti0

View GitHub Profile
@Mattti0
Mattti0 / .env
Last active December 8, 2022 12:36
Sentti parser
username-email=#username#
password=#password#
@Mattti0
Mattti0 / VB-guest-start-and-ssh.ps1
Last active February 14, 2024 08:01
Powershell script to start virtual box guest and connect to it over SSH
$vmName = "VBGuest"
$guestAddress = "use vb 'host only' address here"
$sshUsername = "root_or_something_else"
$sshPort = "fill_port_here"
# Check if the VM is running by pinging the guest address
$pingResult = Test-Connection -ComputerName $guestAddress -Count 2 -Quiet
if ($pingResult) {
Write-Host "VM is running. Connecting via SSH..."
@Mattti0
Mattti0 / mdreader_install.sh
Created April 3, 2024 04:57
mdreader utility to bashrc
#! /bin/bash
check_app() {
if apt-cache show $1 &>/dev/null; then
return 0
else
return 1
fi
}