Skip to content

Instantly share code, notes, and snippets.

View SmithWilson's full-sized avatar
:octocat:
.net developer

Kirill Moskalev SmithWilson

:octocat:
.net developer
View GitHub Profile
@in4in-dev
in4in-dev / perfect.php
Last active January 4, 2025 12:21
PHP VK audio unmask (decode extras)
<?php
//(js -> php) code. letter by letter
global $n, $i, $id;
$n = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMN0PQRSTUVWXYZO123456789+/=";
$id = 12345; //YOUR USER ID
$i = [
'v' => function($e) {
return strrev($e);
@Ciantic
Ciantic / ExceptionFilter.cs
Last active December 9, 2020 18:05
Exception Middleware vs Exception Filter both return ObjectResult, ASP.NET Core
using System;
using Microsoft.AspNetCore.Mvc.Filters;
namespace Example
{
public class ApiExceptionFilter : Attribute, IExceptionFilter
{
public void OnException(ExceptionContext context)
{
if (context.Exception is Exception) {
@angrycoffeemonster
angrycoffeemonster / Sublime Text 3 Build 3103 License Key - CRACK
Created April 18, 2016 02:13
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@craigomatic
craigomatic / AvatarGenerator
Created May 30, 2015 17:39
Simple text based avatar generator for C#
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.Drawing.Text;
using System.IO;
namespace craigomatic.sample
{
@trailmax
trailmax / MySecurityStampValidator.cs
Last active July 29, 2021 18:51
SecurityStampValidator from Microsoft.AspNet.Identity.Owin - taken from decompiler
using System;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.Owin.Security.Cookies;
namespace Microsoft.AspNet.Identity.Owin
{
/// <summary>
/// Static helper class used to configure a CookieAuthenticationProvider to validate a cookie against a user's security
/// stamp