Skip to content

Instantly share code, notes, and snippets.

Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@dev7ops
dev7ops / CoreTools.cs
Created February 2, 2023 17:22 — forked from Delaire/CoreTools.cs
UWP, C# - Retrieve the redirect url using HttpClient from the Headers of the Response - [HttpClient,C#]
public static class CoreTools
{
public static async Task<string> GetRedirectedUrl(string url)
{
//this allows you to set the settings so that we can get the redirect url
var handler = new HttpClientHandler()
{
AllowAutoRedirect = false
};
string redirectedUrl = null;
@dev7ops
dev7ops / SpotifyApiController.cs
Created February 2, 2023 16:27 — forked from aaronhoffman/SpotifyApiController.cs
Spotify Web API Auth Example C#
public class SpotifyApiController
{
//see https://developer.spotify.com/web-api/authorization-guide/#client_credentials_flow
public void GetClientCredentialsAuthToken()
{
var spotifyClient = "";
var spotifySecret = "";
var webClient = new WebClient();
@dev7ops
dev7ops / AESEnDecryption.cs
Created January 16, 2023 17:51 — forked from FrankWu100/AESEnDecryption.cs
AES Encryption/Decryption on C#
using System;
using System.IO;
using System.Text;
using System.Security.Cryptography;
using System.Runtime.Serialization.Formatters.Binary;
class AESEnDecryption
{
public static byte[] encrypt(byte[] bytes, string keyStr, string ivStr)
{