Skip to content

Instantly share code, notes, and snippets.

@joel16
joel16 / sceOpenPSIDGetProductCode.c
Last active June 18, 2022 12:18
sceOpenPSIDGetProductCode impl
// Structs and comments taken from uOFW's chkreg pull request #91 https://github.com/uofw/uofw/pull/91
s32 sceIdStorageLookup(u16 key, u32 offset, void *pBuf, u32 len);
/**
* This structure contains console specific information. It is a subset of the ::SceConsoleId.
* Check <openpsid_kernel.h> for possible member values.
*/
typedef struct {
/* Company code. Set to 1. */
@rumkin
rumkin / authkeys.sh
Last active December 1, 2023 00:31
Manage ssh keys with a script
#!/bin/bash
SSH_DIR=$HOME/.ssh/
AUTH_KEYS_DIR=${SSH_DIR}/authorized_keys.d
AUTH_KEYS_FILE=${SSH_DIR}/authorized_keys
# Utils
key-path() {
echo "${AUTH_KEYS_DIR}/${1}"