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 / 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
@blinds52
blinds52 / EVAL
Created July 26, 2019 22:21 — forked from CHEF-KOCH/EVAL
Server 2019 Eval. to LTSC
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_ZH-CN.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_en-us.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_FR-FR.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_DE-DE.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_IT-IT.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_JA-JP.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_ru-ru.img
https://software-download.microsoft.com/download/pr/17763.253.190108-0006.rs5_release_svc_refresh_SERVER_EVAL_x64FRE_ES-ES.img