Skip to content

Instantly share code, notes, and snippets.

@brenoprata10
brenoprata10 / steam-wishlist.js
Last active August 30, 2024 00:28
Shows widget for steam wishlist of given steamID on Scriptable app
const STEAM_STORE_URL = "https://store.steampowered.com"
const steamId = args.widgetParameter ?? "76561198008818777"
try {
const wishListGames = await fetchWishListById(steamId)
const widget = await createWidget(wishListGames)
renderWidget(widget)
} catch(error) {
const widget = await createErrorWidget(error)
renderWidget(widget)
}
@brenoprata10
brenoprata10 / youtube-channels-widget.js
Last active August 19, 2021 08:37
Youtube videos on a widget
const YOUTUBE_API = "https://youtube.googleapis.com/youtube/v3"
const API_KEY = "YOUR_API_KEY_HERE"
const channelIdArray = [
"UCT6iAerLNE-0J1S_E97UAuQ", // YongYea
"UC9PBzalIcEQCsiIkq36PyUA", // Digital Foundry
"UCNvzD7Z-g64bPXxGzaQaa4g", // gameranx
"UCcGL_0yoZTskvlgAixaEjEg", // whatoplay
"UCawsJGDMV6IOm6z9yiOyIsQ", // Cronosfera
"UC-zfTtp6tir7yJIrpsgS0dA", // Intoxi Anime
"UCBJycsmduvYEL83R_U4JriQ", // Marques Brownlee
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@brenoprata10
brenoprata10 / rocm_arch_guide.md
Created March 11, 2025 10:40 — forked from augustin-laurent/rocm_arch_guide.md
ROCm Installation guide on Arch
Date of the guide : December 17, 2023

Introduction

In this post, I will provide the solution that worked on my system on how to install Radeon Open Compute (ROCm) on Arch (linux-6.6.7.arch1-1) for RX 6900 XT (Should work on other 6000 series). ROCm is an open-source software platform that allows GPU-accelerated computation. This tool is a prerequist to use GPU Acceleration on TensorFlow or PyTorch. In this guide I will use Paru as my AUR package helper, feel free to use any other (https://wiki.archlinux.org/title/AUR_helpers). I will assume you have a working operating system and know what you do with it (Otherwise Arch will be painfull for you).