Skip to content

Instantly share code, notes, and snippets.

View lucmsilva651's full-sized avatar
🇧🇷
aqui é brasil porra

Lucas Gabriel lucmsilva651

🇧🇷
aqui é brasil porra
View GitHub Profile
@lucmsilva651
lucmsilva651 / Windows10_Keys.md
Last active September 23, 2024 03:56
Windows 10 activation keys

Windows 10 activation keys

Note: please buy a original Windows key. This is only for educational purposes. Some keys might not work.

Tutorial

First type:

slmgr /ipk <YOUR KEY>

And activate your default KMS server using this following commands below:

@lucmsilva651
lucmsilva651 / Win10Lite_ACTIVATION.cmd
Created June 24, 2023 20:30
Activate your copy of Win10Lite
@echo off
:: Source: https://medium.com/wireless-bidet/how-to-activate-windows-10-using-command-prompt-9c5d248f3420
:: The Win10Lite Team condemns piracy in all forms. Only run this script if you know what it does.
:: BatchGotAdmin below
:-------------------------------------
title Administrator rights required
@lucmsilva651
lucmsilva651 / mobiDetect.js
Last active December 23, 2023 10:50
Redirect to another site when mobile device is detected
var userAgent = navigator.userAgent.toLowerCase();
var devices = new Array('nokia','iphone','blackberry','sony','lg','htc_tattoo','samsung','symbian','SymbianOS','elaine','palm','series60','windows ce','android','obigo','netfront','openwave','mobilexplorer','operamini');
var url_redirect = 'http://www.example.com';
function mobiDetect(userAgent, devices) {
for(var i = 0; i < devices.length; i++) {
if (userAgent.search(devices[i]) > 0) {
return true;
}
}
return false;
@lucmsilva651
lucmsilva651 / main.java
Created September 7, 2023 00:08
Java Hello World
public class main {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
@lucmsilva651
lucmsilva651 / BatchGotAdmin.bat
Created December 23, 2023 10:54
BatchGotAdmin - Admin access inside a batch file
@echo off
REM Credits to https://stackoverflow.com/a/10052222
REM And https://sites.google.com/site/eneerge/scripts/batchgotadmin
:: BatchGotAdmin
:-------------------------------------
REM --> Check for permissions
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" (
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system"