Skip to content

Instantly share code, notes, and snippets.

View supermarsx's full-sized avatar

supermarsx

  • Portugal
  • 00:36 (UTC)
View GitHub Profile
@supermarsx
supermarsx / wifiqrcode.txt
Created November 13, 2024 13:28
Wi-Fi QR code generation string
WIFI:S:networkname;T:WPA;P:password;;
@supermarsx
supermarsx / fix0x8004011c.cmd
Created October 22, 2024 17:12
Fix 0x8004011c Outlook with IMAP
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography\Protect\Providers\df9d8cd0-1501-11d1-8c7a-00c04fc297eb" /v ProtectionPolicy /t REG_DWORD /d 1 /f
@supermarsx
supermarsx / AddDcoAdapter.cmd
Created August 15, 2024 16:29
Add OpenVPN DCO Adapter
cd "C:\Program Files\OpenVPN\bin\"
.\tapctl.exe create --hwid ovpn-dco
@supermarsx
supermarsx / header_checks
Created August 15, 2024 13:41
Postfix Scrub received headers, header_checks
/^Received:.*/ IGNORE
/^x-originating-ip:.*/ IGNORE
@supermarsx
supermarsx / dkimdnsrecordfilter.sh
Created August 15, 2024 13:18
DKIM Key DNS Record Filter
tr -d ' ' < domain.com/selector.txt | tr -d '\n' | tr -d '"' | tr -d '\t' | tr -s "[:blank]" | sed -n 's/.*(\(.*\)).*/\1/p' && echo
@supermarsx
supermarsx / freeusedspace.sh
Created May 24, 2024 10:57
Cheat sheet, free/used space linux by folder/mount points
# free space mount points
df -h /
# used space folders
du -sh *
# used space process locked files
lsof +L1
# used space by files in folder
ls -lah
@supermarsx
supermarsx / EditTextCommand.reg
Created April 28, 2024 22:23
Regedit Edit shell command
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ODCfile\shell\EditText\command]
@="\"C:\\Program Files (x86)\\Microsoft Office\\root\\client\\appvlp.exe\" NOTEPAD.EXE \"%1\""
@supermarsx
supermarsx / FindSuitableNumber.au3
Created April 28, 2024 22:22
Find a suitable divisible number with AutoIt
Global $rangeMin = 2500, _
$rangeMax = 5000, _
$divMin = 2, _
$divMax = 10
Func isDivisible($dividend, $divisor)
$isDivisible = Not(IsFloat($dividend / $divisor))
Return $isDivisible
EndFunc
@supermarsx
supermarsx / BasicComingSoon.html
Created April 28, 2024 21:03
Basic coming soon page
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<title>euroreale</title>
<meta name="description" content="euroreale">
<style type="text/css">
@supermarsx
supermarsx / UglyYellowComingSoon.html
Created April 28, 2024 21:02
Ugly yellow coming soon page example
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width">
<title>.senciente</title>
<meta name="description" content="euroreale">
<style type="text/css">
html {
background-color: yellow;