Skip to content

Instantly share code, notes, and snippets.

@Jelle-S
Jelle-S / get_repos_of_app_within_org.php
Created June 17, 2025 12:20
Get all repos a Github app has access to within an organisation, given the app id, installation id and private key.
<?php
/**
* composer require knplabs/github-api:^3.16 lcobucci/jwt:^4.1
*/
require 'vendor/autoload.php';
use Github\Client;
use Github\HttpClient\Builder;
@Jelle-S
Jelle-S / install_ha_vb.sh
Last active February 28, 2025 15:18
Install Home Assistant on VirtualBox
# Installs Home Assistant on VirtualBox following https://www.home-assistant.io/installation/linux
# Install VirtualBox
sudo apt-get -y install virtualbox
# Create a new VM
VBoxManage createvm --name homeassistant --register
# Select OS type "Other Linux (64-bit)"
VBoxManage modifyvm homeassistant --ostype Linux_64
# Set RAM to 6GB (modify to your needs, TODO: make this an option, default value 2GB), video memory to 16MB (TODO: make this an option, default value 16MB)
VBoxManage modifyvm homeassistant --memory 6144 --vram 16
# 2 vCPUs (TODO: make this an option, default value 2)