Skip to content

Instantly share code, notes, and snippets.

View Malix-Labs's full-sized avatar
🌊

Malix Malix-Labs

🌊
View GitHub Profile
@Malix-Labs
Malix-Labs / 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-Labs
Malix-Labs / 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-Labs
Malix-Labs / 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-Labs
Malix-Labs / 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-Labs
Malix-Labs / .gitignore
Last active November 8, 2024 17:13
Discord Desktop (Windows) Amoled Switching Tool
# GitHub Gists
*/
# Environment
*env*
@Malix-Labs
Malix-Labs / .gitignore
Last active October 29, 2023 19:37
ESSCA Budapest - Auto Wifi Auth
# GitHub Gists
*/
# Environment
*env*
@Malix-Labs
Malix-Labs / .gitignore
Last active October 30, 2023 13:56
Update Launcher
# GitHub Gists
*/
# Environment
*env*
@Malix-Labs
Malix-Labs / 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-Labs
Malix-Labs / 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();
@Malix-Labs
Malix-Labs / main.sh
Last active November 28, 2023 21:42
Git - StashFlow
#!/bin/bash
# Define the directory for alias hooks
hooks_dir=~/.git/aliasHooks
# Create the directory for alias hooks if it doesn't exist
mkdir "$hooks_dir"
# Create or update the scripts for checkout, switch, and branch
cat >"$hooks_dir/checkout.sh" <<'EOF'