Skip to content

Instantly share code, notes, and snippets.

View raspiduino's full-sized avatar

Loc Vinh Giang raspiduino

View GitHub Profile
@raspiduino
raspiduino / uninstall-cuda-on-mac.md
Created June 4, 2022 03:28 — forked from patharanordev/uninstall-cuda-on-mac.md
Uninstall CUDA.framework on macOS

Uninstall CUDA.framework on macOS

If you

  • got message like "CUDA.framework is malware, ... damage on your mac"
  • using OpenCL instead
  • using macOS 10.14+ (used Metal framework instead)

and try to remove it.

Delete the following folders/files:

@raspiduino
raspiduino / hello.exe.c
Last active June 4, 2022 03:21
x64 exe -> LLVM IR -> x32 exe
//
// This file was generated by the Retargetable Decompiler
// Website: https://retdec.com
// Copyright (c) Retargetable Decompiler <info@retdec.com>
//
#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
@raspiduino
raspiduino / readme.md
Created April 4, 2021 16:20
Simple hack for AVR simulator IDE

Simple hack for AVR simulator IDE

Disclaimer: By using this script (Microsoft Windows registry .reg script), you agreed that you use it as your own risk. We provided it WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Intro

AVR simulator IDE is a wonderful AVR simulator program, but it has only 30 times x 60 minutes per time try. So I have done many things to increase the limit, then I finally did it and want to share it with you!

Code

Simply it's just a registry hack:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Internet Explorer\Data\Microsoft]
@raspiduino
raspiduino / windows7-for-2gb-disk.md
Last active December 24, 2020 04:09
Windows 7 version only 2GB disk space (installed)

Windows 7 version only 2GB disk space (installed)

There are many sites on the Internet show you how to make a lightweight Windows version, but none show you how to create a light Windows to fit your 2GB disk (usually USB). You often have to use the PE version, and it often comes with many tools that you don't need.
So I have made a light version of Windows 7 (installed on vmdk format) and you can do anything you want with it: copy to a USB, put it to a VM or even upload it to Google Cloud shell and run it remotely. Have fun! You can download it here.

@raspiduino
raspiduino / sudocmd.md
Last active September 21, 2024 03:57
Sudo command for cmd

Sudo command for cmd

What is this?

In Linux, we can use sudo to run command as root. In Windows, we can use runas command to do that, but it doesn't support for empty password file! So we make this small macro for you to do the same thing as sudo for Windows.

How to use this?

Install this macro:

doskey sudo=start /min powershell -Command "Start-Process $* -Verb runAs"

Using this macro: