Skip to content

Instantly share code, notes, and snippets.

View Malix-off's full-sized avatar
🌊

Malix Malix-off

🌊
View GitHub Profile
@Malix-off
Malix-off / windows-folder-browser_COM.bat
Last active May 27, 2022 17:33
Windows Folder Browser - COM
setlocal
set "psCommand="(new-object -COM 'Shell.Application')^.BrowseForFolder(0,'Please choose a folder.',0,0).self.path""
for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I"
endlocal
@Malix-off
Malix-off / windows-file-browser_COM.bat
Last active May 27, 2022 17:34
Windows File Browser - COM
setlocal
for /f "delims=" %%I in ('powershell -noprofile "iex (${%~f0} | out-string)"') do (
echo You chose %%~I
)
goto :EOF
: end Batch portion / begin PowerShell hybrid chimera #>
Add-Type -AssemblyName System.Windows.Forms
@Malix-off
Malix-off / Main.bat
Last active October 18, 2022 18:04
Lenovo Fn And Function Keys Indicator Switch
@echo off
:Initialisation
title Lenovo Fn and Function Keys Indicators
:Administrator_Permission
REM Complying with Administrator Permissions
:Check
REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically
@Malix-off
Malix-off / Administrator.bat
Last active October 18, 2022 16:07
Batch - Script Require Administrative Permissions Template
@echo off
:Initialisation
REM YOUR INITIALISATION CODE HERE
:Administrator_Permission
REM Complying with Administrator Permissions
:Check
REM Trying Running an Action Requiring Administrative Permissions, Then Store its Standard Error Output, OS-Dynamically
@Malix-off
Malix-off / .gitignore
Last active February 14, 2024 17:08
Discord Desktop (Windows) Amoled Switching Tool
# GitHub Gists
*/
# Environment
*env*
@Malix-off
Malix-off / .gitignore
Last active October 29, 2023 19:37
ESSCA Budapest - Auto Wifi Auth
# GitHub Gists
*/
# Environment
*env*
@Malix-off
Malix-off / .gitignore
Last active October 30, 2023 13:56
Update Launcher
# GitHub Gists
*/
# Environment
*env*
@Malix-off
Malix-off / 1.asm
Last active November 13, 2023 11:41
L3-Hungary - Operating System - Assembly 1
section .data
input db "abc", 0
output db 0
section .text
global _start
_start:
; Find the length of the string
mov rsi, input ; rsi points to the string
@Malix-off
Malix-off / Cat.java
Last active November 20, 2023 09:09
L3-Budapest - Java - 5
public class Cat {
private String name;
private int age;
private String color;
public Cat(String name, int age, String color) {
this.name = name;
this.age = age;
this.color = color;
}
@Malix-off
Malix-off / Animal.java
Last active November 28, 2023 13:49
EFREI-2026-L3-HUNGARY-Java-1
package zoo;
public abstract class Animal {
protected String name;
public Animal(String name) {
this.name = name;
}
public abstract void makeSound();