Skip to content

Instantly share code, notes, and snippets.

View Malix-Labs's full-sized avatar
🌊

Malix Malix-Labs

🌊
View GitHub Profile
@alexaandru
alexaandru / chi.go
Created February 14, 2024 16:40
Chi-like syntactic sugar layer on top of stdlib http.ServeMux
// Chi-like syntactic sugar layer on top of stdlib http.ServeMux.
package main
import (
"net/http"
"slices"
)
type (
middleware func(http.Handler) http.Handler
@Malix-Labs
Malix-Labs / .gitignore
Last active October 29, 2023 19:37
ESSCA Budapest - Auto Wifi Auth
# GitHub Gists
*/
# Environment
*env*
@s1gnate-sync
s1gnate-sync / build-container-vm.sh
Last active March 20, 2025 06:54
Bootstrapping custom virtual machine on chrome os without any dependencies (it reuses existing vm and it's kernel)
#!/usr/bin/env bash
export LC_ALL=C
set -eu
if test "$(id -u)" -ne 0; then
echo "install: must be root"
exit 1
fi
@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 / 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 / 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 / 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 / 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
@szepeviktor
szepeviktor / Wistia-download-videos.md
Last active July 22, 2025 08:39
Download Wistia videos - Please do not misuse it!

Download Wistia videos

  1. right-click on the playing video, select Copy link
  2. find Wistia video ID in the copied link e.g. wvideo=tra6gsm6rl
    • alternative: look for e.g. hashedId=tra6gsm6rl in the page source
  3. load http://fast.wistia.net/embed/iframe/ + video ID in your browser
  4. look for "type":"original" in the page source and copy the URL from the next line e.g. "url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
  • alternative: look for "type":"hd_mp4_video"
@briandominick
briandominick / asciidoc-static.adoc
Last active June 16, 2025 16:12
Static Site Generators with AsciiDoc Support

There are 28 static site generators that support AsciiDoc sourcing.