- philipprochazka.github.io/
- in/philip-proch%C3%A1zka-4a48b9124
- @ProchazkaPhilip
- phprochazka
- @PhilipProchazka
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
from pathlib import Path | |
import xml.etree.ElementTree as ET | |
import re | |
# --- Hybrid extraction functions (from extractor_hybrid.py, refactored) --- | |
def extract_svg_doc_properties(svg_root): | |
width = svg_root.attrib.get('width', 'unknown') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import re | |
from pathlib import Path | |
import xml.etree.ElementTree as ET | |
# === Helper functions === | |
def extract_svg_doc_properties(svg_root): | |
width = svg_root.attrib.get('width', 'unknown') | |
height = svg_root.attrib.get('height', 'unknown') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import sys | |
from pathlib import Path | |
# Regex patterns for color formats | |
HEX_COLOR_RE = re.compile(r'#(?:[0-9a-fA-F]{3,4}){1,2}') | |
RGB_COLOR_RE = re.compile(r'rgb(?:a)?\(\s*[\d\s,\.%]+\)') | |
HSL_COLOR_RE = re.compile(r'hsl(?:a)?\(\s*[\d\s,\.%]+\)') | |
NAMED_COLOR_RE = re.compile(r':\s*([a-zA-Z]+)\s*;') | |
CSS_VAR_RE = re.compile(r'--([\w-]+)\s*:\s*([^;]+);') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
. "$PSScriptRoot\assets\classes.ps1" | |
Function Test-IsAdminElevated { | |
if (([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]:: | |
GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
return $true | |
} | |
else { | |
return $false | |
} |
Command | Description |
---|---|
curl -h |
cURL help menu |
curl inlanefreight.com |
Basic GET request |
curl -s -O inlanefreight.com/index.html |
Download file |
curl -k https://inlanefreight.com |
Skip HTTPS (SSL) certificate validation |
curl inlanefreight.com -v |
Print full HTTP request/response details |
curl -I https://www.inlanefreight.com |
Send HEAD request (only prints response headers) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb help // List all comands | |
== Adb Server | |
adb kill-server | |
adb start-server | |
== Adb Reboot | |
adb reboot | |
adb reboot recovery | |
adb reboot-bootloader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################ | |
# This file was created with O&O ShutUp10 and can be imported onto another computer. | |
# | |
# Download the application at https://www.oo-software.com/shutup10 | |
# You can then import the file from within the program. | |
# | |
# Alternatively you can import it automatically over a command line. Simply use | |
# the following parameter: | |
# ooshutup10.exe <path to file> | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"$id": "https://json.schemastore.org/prettierrc.json", | |
"definitions": { | |
"optionsDefinition": { | |
"type": "object", | |
"properties": { | |
"arrowParens": { | |
"description": "Include parentheses around a sole arrow function parameter.", | |
"default": "always", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.tmp | |
# Word temporary | |
~$*.doc* | |
# Word Auto Backup File | |
Backup of *.doc* | |
# Excel temporary | |
~$*.xls* |