Skip to content

Instantly share code, notes, and snippets.

@hoangitk
hoangitk / Immich_IIS.web.config
Created July 25, 2025 07:17
[Immic IIS hosting] #immich #hosting #tips
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime requestPathInvalidCharacters="" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<hiddenSegments>
<clear />
@hoangitk
hoangitk / Na-tap-doc.md
Last active July 24, 2025 04:40
[Na tập đọc] Bài đọc

Các bài tập đọc cho học sinh lớp 1

Trăng sáng sân nhà em

Sân nhà em sáng quá, Nhờ ánh trăng sáng ngời, Trăng tròn như mắt cá Chẳng bao giờ chớp mi.

Những đêm nào trăng khuyết Trông giống con thuyền trôi.

@hoangitk
hoangitk / Simulate Mouse Move.js
Created February 5, 2025 13:39
[Simulate Mouse Move] #tool #js #bookmarklet
javascript:(function(){setInterval(()=>{const elements=document.querySelectorAll("span");const element=elements[Math.floor(Math.random() * elements.length)];element.dispatchEvent(new MouseEvent('mousemove',{bubbles:true,cancelable:true}));console.log('Simulated mousemove');},240_000);})();
@hoangitk
hoangitk / CleanUp.md
Last active January 25, 2025 09:19
[Clean up] #admin #clean

Clean Up

Git

  • List: dotnet nuget locals --list all
  • Clean:
     dotnet nuget locals http-cache --clear
     dotnet nuget locals global-packages --clear
     dotnet nuget locals plugins-cache --clear
    
@hoangitk
hoangitk / aspnet_session_cookie.md
Last active January 16, 2024 03:57
[ASP.NET Session, Cookie] #aspnet #hosting
@hoangitk
hoangitk / How to draw diagonal line in html table.md
Created June 5, 2023 04:43
[How to draw diagonal line in html table] #css
@hoangitk
hoangitk / git_sparse_checkout.md
Created February 7, 2023 00:06
[Git sparse-checkout] #git

/* ref: https://unix.stackexchange.com/questions/233327/is-it-possible-to-clone-only-part-of-a-git-project/468182#468182?newreg=af0088568a6f40f883856f50f821ad09 */

git clone --filter from git 2.19 now works on GitHub (tested 2021-01-14, git 2.30.0)

This option was added together with an update to the remote protocol, and it truly prevents objects from being downloaded from the server.

E.g., to clone only objects required for d1 of this minimal test repository: https://github.com/cirosantilli/test-git-partial-clone I can do:

@hoangitk
hoangitk / Install WSL Distro into other location.md
Created December 9, 2022 04:00
[Install WSL Distro into other location] #wsl

Install WSL Distro into other location

  • Download Distro
     Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing
    • Available Distros:
    Ubuntu 20.04 - https://aka.ms/wslubuntu2004
    
@hoangitk
hoangitk / SimpleFormatJson.cs
Created November 23, 2022 03:23
[Simple FormatJson] #json #csharp
/*
Credit: https://stackoverflow.com/questions/4580397/json-formatter-in-c
*/
public static string FormatJson(string json, string indent = " ")
{
var indentation = 0;
var quoteCount = 0;
var escapeCount = 0;
var result =
@hoangitk
hoangitk / SQLServerJSONBeautifier.sql
Created November 23, 2022 03:19
[SQLServerJSONBeautifier] #sql #tool #format
/*
Credit: https://github.com/msornakumar/SQLServerJSONBeautifier
*/
/* *********************************************************************************************************************************************************************/
-- Drop the Assembly if already Exists
/* *********************************************************************************************************************************************************************/
IF EXISTS
(