Skip to content

Instantly share code, notes, and snippets.

@bburky
bburky / README.md
Last active August 24, 2023 03:09
Get Steam Cover Images Playnite Extension

Get Steam Cover Images Playnite Extension

Replaces the cover image of the selected games with the Steam header image for the game. If the game is not a Steam game, the game's links will be parsed for a Steam store link to guess the game's AppID.

Setting game's covers to an internet URL may be slow to load, so enabling "Asynchronous image loading" in Playnite's settings is suggested.

I recommend first running "Tools" → "Download Metadata" with "Only download metadata for games missing them" unchecked and select only:

  • Cover Image "Offical Store > IGDB"
  • Links "IGDB > Offical Store"
anonymous
anonymous / playground.rs
Created May 12, 2017 23:04
Rust code shared from the playground
pub trait GameState: Sized {
type Move: Clone;
type MoveGenerator: Iterator<Item = Self::Move> + Clone;
fn apply(&self, m: &Self::Move) -> Option<Self>;
fn next_moves(&self) -> Self::MoveGenerator;
}
pub struct ParentChild<'a, G: GameState + 'a> {
child: G,
depth: usize,
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 26, 2024 17:59
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@darekkay
darekkay / trakt-backup.php
Last active May 1, 2024 15:30
Trakt.tv backup script
<?php
/*
Backup script for trakt.tv (API v2).
Live demo: https://darekkay.com/blog/trakt-tv-backup/
*/
// create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app
$apikey = "CLIENT_API_KEY";
@aido
aido / Polipo-adblocker.sh
Created June 12, 2013 18:01
Use wget and sed to update Polipo forbidden file from http://easylist-downloads.adblockplus.org/easylist.txt
#!/bin/bash +xv
declare WGET=/usr/bin/wget
declare SED=/bin/sed
declare INVOKE=/usr/sbin/invoke-rc.d
#declare TORIFY=/usr/bin/torify
#declare TORRESOLVE=/usr/bin/tor-resolve
declare -i EXIT_VALUE=0