Skip to content

Instantly share code, notes, and snippets.

@blinds52
blinds52 / ComWithoutRegistering.cs
Created December 24, 2020 02:39 — forked from jjeffery/ComWithoutRegistering.cs
COM without registering
using System;
using System.ComponentModel;
using System.Runtime.InteropServices;
namespace ComWithoutRegisteringExample
{
internal static class ComHelper
{
private delegate int DllGetClassObject(ref Guid clsid, ref Guid iid, [Out, MarshalAs(UnmanagedType.Interface)] out IClassFactory classFactory);
@blinds52
blinds52 / gist:d051a29752b3fa6b5759b15e23591093
Created December 18, 2020 21:15 — forked from 7shi/gist:805326
extract JPEG from PDF by iTextSharp
// iTextSharp: http://itextpdf.com/
// reference: http://www.vbforums.com/showthread.php?t=530736
void ExtractJpeg(string file)
{
var dir1 = Path.GetDirectoryName(file);
var fn = Path.GetFileNameWithoutExtension(file);
var dir2 = Path.Combine(dir1, fn);
if (!Directory.Exists(dir2)) Directory.CreateDirectory(dir2);
@blinds52
blinds52 / api.lua
Created May 29, 2020 19:36 — forked from AMD-NICK/api.lua
Monobank Alerts Telegram Bot
local APIURL = "https://api.monobank.ua"
/*
Ошибки:
400 = Period must be no more than 31 days
400 = Missing required field 'from'
403 = Unknown 'X-Token' (левый токен)
429 = Too many requests
*/
@blinds52
blinds52 / DumpSample.txt
Last active April 14, 2020 01:02
HexDump (binary visualizer)
00000000 00 00 04 D4 00 00 00 40 23 46 42 20 23 43 4F 4C ···O···@#FB #COL
00000010 43 30 32 34 23 46 4D 54 52 41 57 20 23 4A 50 47 C024#FMTRAW #JPG
00000020 64 30 39 30 23 54 48 52 64 31 32 38 23 47 4D 4D d090#THRd128#GMM
00000030 55 47 31 38 23 47 4D 54 52 45 44 20 68 31 30 30 UG18#GMTRED h100
00000040 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F ················
00000050 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F ················
@blinds52
blinds52 / downloadWebHostSource.PS1
Created November 16, 2019 22:45 — forked from KaiWalter/downloadWebHostSource.PS1
download Azure Functions WebHost source code
param(
[string]$DownloadBuildNumber
)
$url = "https://github.com/Azure/azure-functions-host/archive/" + $DownloadBuildNumber + ".zip"
$url2 = "https://github.com/Azure/azure-functions-host/archive/v" + $DownloadBuildNumber + ".zip"
$targetZip = Join-Path $PSScriptRoot "WebHost.zip"
if (Test-Path $targetZip) {
1. Follow this link and download and run ProdKey, make note of your current Windows 7 or 8 key. http://www.nirsoft.net/utils/product_cd_key_viewer.html
2. Follow this link to download and upgrade to Windows 10 for free. https://www.microsoft.com/en-us/accessibility/windows10upgrade?tduid=(14c348e893a91089cb2980533c6ee123)(256380)(2459594)(TnL5HPStwNw-0FBZfNm6YPFXNhiu3o52rA
3. Upon completion, run Prodkey again, this time you will have a new Windows 10 key. Save that key somewhere safe.
4. From there, you can do a system reset to wipe out the old Windows 7 or 8 files, or just do a clean install of Windows 10 and it will activate just fine.
@blinds52
blinds52 / HowtodownloadConsumerIso.txt
Created July 26, 2019 22:26 — forked from CHEF-KOCH/HowtodownloadConsumerIso.txt
Windows Redstone 4 (1803) - All download links - April Update
1. Open Chrome and search for User-Agent Switcher for Chrome extension, link https://chrome.google.com/webstore/detail/user-agent-switcher-for-c/djflhoibgkdhkhhcedjiklpkjnoahfmg and select Add to Chrome
2. After the extension is installed/added, click the User-Agent extension and change User-Agent to Safari or Android mode
3. Open this link https://www.microsoft.com/en-us/software-download/windows10ISO
4. You will see the April Update ISO files, select the language and bit what you want, finally you can download it using download manager
5. Done, that's all, the direct link are valid only 24 hours after you created them.
Mirrors are here via adguard:
https://tb.rg-adguard.net/public.php
@blinds52
blinds52 / GVLKs for KMS.txt
Created July 26, 2019 22:25 — forked from CHEF-KOCH/GVLKs for KMS.txt
Microsoft Office 2019 Build 10730.20102 RTM
Source:
https://docs.microsoft.com/en-us/DeployOffice/vlactivation/gvlks
GVLKs for Office 2019
=====================
Office Professional Plus 2019
NMMKJ-6RK4F-KMJVX-8D9MJ-6MWKP
Office Standard 2019
@blinds52
blinds52 / ISOs.txt
Created July 26, 2019 22:25 — forked from CHEF-KOCH/ISOs.txt
Windows 10 RS 5 RTM Build 1809 Refresh (17763.107) - All Download Links
Changelog:
https://changewindows.org/build/redstone5/17763/pc
Microsoft Security Compliance Toolkit 1.0:
https://www.microsoft.com/en-us/download/details.aspx?id=55319
https://msdnshared.blob.core.windows.net/media/2018/10/Windows-10-1809-Security-Baseline-DRAFT.zip
Windows ADK for Windows 10, version 1809:
https://go.microsoft.com/fwlink/?linkid=2026036
Assuming we want to upgrade/patch Windows LTSC (prev. known as LTSB).
Requirements:
* en_windows_10_consumer_edition_version_1809_updated_sept_2018_x64_dvd_5c2f3f9a.iso
* nl_windows_10_consumer_edition_version_1809_updated_sept_2018_x64_dvd_f197f824.svf
* nl_windows_10_enterprise_ltsc_2019_x64_dvd_031a2076.svf
* svfx.exe https://www.softpedia.com/get/System/Back-Up-and-Recovery/SVF-eXtractor.shtml
* Language packs: https://pcorakel.stackstorage.com/s/XwxjxDXMj4POUBU
* SVF files: https://pcorakel.stackstorage.com/s/MLMY3IxZP7ycuhH
* Batch to convert ISO into LTSC: https://pcorakel.stackstorage.com/s/HLDHp7vxIzwwGX3