Skip to content

Instantly share code, notes, and snippets.

View Elorucov's full-sized avatar
💭
I may be slow to respond.

Elchin Orujov Elorucov

💭
I may be slow to respond.
View GitHub Profile
@ADeltaX
ADeltaX / MagicUnlock.reg
Created June 11, 2021 02:55
wincap? UWP? Yes.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SecurityManager]
"InternalDevUnlock"=dword:00000001
@Sominemo
Sominemo / devtools_detector.js
Last active May 17, 2021 16:11
DevTools Detector
function detectDevTools() {
let h = window.outerWidth - window.innerWidth > 160;
let v = window.outerHeight - window.innerHeight > 160;
if (
(h && v) ||
!((window.Firebug && window.Firebug.chrome && window.Firebug.chrome.isInitialized) || h || v)
) {
return { isOpen: false, orientation: null };
}
@ADeltaX
ADeltaX / main.cpp
Created March 22, 2021 15:38
DWM Thumbnail/VirtualDesktop IDCompositionVisual example
#include <Unknwn.h>
#include <Windows.h>
#include <ntstatus.h>
#include <winternl.h>
#include <wrl\implements.h>
#include <comutil.h>
#include <dcomp.h>
#include <dwmapi.h>
#include <dxgi1_3.h>
#include <d3d11_2.h>
@ADeltaX
ADeltaX / FeatureTokenGenerator.cs
Last active November 30, 2025 13:49
Access LimitedAccessFeatures from UWP
//!!!!!!!!!!!!!!
//Thanks to @thebookisclosed for the code. I just rearranged in a way so you can access without having to use the registry
//HINT about compatibility: they CANNOT change feature keys otherwise existing apps would break
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Windows.ApplicationModel;
@ADeltaX
ADeltaX / Program.cs
Created May 22, 2020 21:09
Change Theme color (Dark/Light mode) FAST!
using System;
using System.Runtime.InteropServices;
using Microsoft.Win32;
class Program
{
[DllImport("user32.dll", SetLastError = true)]
static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam);
static void Main(string[] args)
@Elorucov
Elorucov / Cipher.cs
Last active March 31, 2020 17:18
CIpher sample from https://stackoverflow.com/a/10177020 optimized for UWP.
using System;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using Windows.Storage;
namespace Elorucov.Laney.Helpers.Security {
// https://stackoverflow.com/a/10177020
// optimized for UWP: using 128 bits instead 256
@alexoro
alexoro / NoLimitRecycledViewPool.java
Created July 29, 2019 10:22
RecycledViewPool with unlimited number of ViewHolders
package com.vk.im.ui.utils.recyclerview;
import android.support.v7.widget.RecyclerView;
import android.util.SparseIntArray;
/**
* RecycledViewPool with unlimited number of ViewHolders
* {@author uas.sorokin@gmail.com}
*/
public class NoLimitRecycledViewPool extends RecyclerView.RecycledViewPool {
@FlyInk13
FlyInk13 / snake.js
Last active March 25, 2021 13:29
Отрисовка змейки на node/canvas и стриминг ВКонтакте через ffmpeg. (Для запуска нужен токен VK Live https://vk.cc/6njXbx)
const https = require('https');
const fs = require('fs');
const { spawn } = require('child_process');
const { Image, createCanvas } = require('canvas');
const VK = require('VK-Promise');
const canvas = new createCanvas(1280, 720);
const streamer = VK(""); // https://vk.cc/6njXbx
const request = streamer.request;
const ctx = canvas.getContext('2d');
const fps = 30;
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active December 2, 2025 06:08
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat