Skip to content

Instantly share code, notes, and snippets.

View AndrewSav's full-sized avatar

Andrew Savinykh AndrewSav

View GitHub Profile
@AndrewSav
AndrewSav / SteamShortcuts.cs
Last active January 14, 2025 05:15
Creates shortcuts of your whole installed steam library in a folder on your destop
// Creates shortcuts of your whole installed steam library in a folder on your desktop
// Note 1: icons for some games do not get set correctly, but than they do not get set correctly by steam itself either
// Note 2: code heavily depends on the steam internal file formats so this can stop working without notice any time
// Note 3: this code does not have any command line arguments, it tries to detect path to your steam folder
// if it can't feel free to modify it to hardcode the path. Similarly, you can change where the shortcuts
// are written to in the code. Sorry, not a user-friendly tool at all - you are assumed to be a developer
// Some links useful for fixing this, when format changes:
// https://github.com/solsticegamestudios/vdf
// https://github.com/Matoking/protontricks/blob/master/src/protontricks/steam.py
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json.Linq;
namespace Aghub.WebApi.Tests
{
public class JsonCompare
{
public static void PrintDiff(JToken x, JToken y)
@AndrewSav
AndrewSav / DecryptSqlObjects.ps1
Last active December 20, 2015 08:39
Code snippets to read encrypted objects from an MS SQL DB And decrypt them Works only in Powershell 3 with SQL 2005-2012 Does not work in Powershell 1,2 does not work with SQL 2000 Requires SQLPS (install SSMS or google how to install standalone)
# Code snippets to read encrypted objects from an MS SQL DB
# And decrypt them
# Works only in Powershell 3 with SQL 2005-2012
# Does not work in Powershell 1,2 does not work with SQL 2000
# Requires SQLPS (install SSMS or google how to install standalone)
# Requires remote Dedicated Administrator Connection to be enabled
# if you are not conntecting to a local instance
#
# This code realies on global variables this is BAD (tm).
# Sorry about that. I'll try and improve it if I have time