Skip to content

Instantly share code, notes, and snippets.

View quangv's full-sized avatar
💭
github needs a night mode

Quang Van quangv

💭
github needs a night mode
View GitHub Profile
@quangv
quangv / Turn off Screen.bat
Created June 5, 2020 22:08
Turn off screens on Windows 10
powershell -command "Start-Sleep -s 2";
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int SendMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2)
@quangv
quangv / Recover-Scratch-Projects.md
Last active April 13, 2025 15:51
Potential ways to Recover Scratch Projects that's been deleted (Trash has been Emptied)

Potential ways to Recover Scratch Projects that's been deleted (Trash Emptied)

Method 1) Find the project URL in browser history.

If you cleared your trash (and your project with it), contrary to what people think, you can still get it back.

  1. Check your browser history.
  2. Try to find the scratch's project URL.
  3. Go to that URL, hopefully it'll still exist. (Be sure to be logged in with the scratch project owner)
    • Example: https://scratch.mit.edu/projects/934686450/editor