adien / blink.html
Last active
| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>LED Blinking Duration Demo</title> |
| 7 | <style> |
| 8 | body { |
| 9 | font-family: Arial, sans-serif; |
| 10 | max-width: 800px; |
adien / claude_explain_orthogonally.md
Last active
Prompt:
help me understand what "orthogonally" means in below context
But there's a corner case that can be somewhat confusing here, and it's one that I managed to crash into multiple times when I was implementing some code that works with this. Keys can be "possessed" by a process, and have permissions that are granted to the possessor orthogonally to any permissions granted to the user or group that owns the key.
Response:
Let me break this down in the context of system permissions and keys.
When something is done "orthogonally" in technical contexts, it means it operates independently or perpendicular to another aspect - like two systems or sets of rules that work completely separately from each other without affecting each other.
adien / claude_chat.md
Last active
Prompt:
please explain the below to me
"Converse to the block size of the hash function, the output size of the hash function also affects the security of PBKDF2, because each output is calculated sequentially. If you request more bytes out of a PBKDF2 function than the hash function outputs, it will have to work at least twice as hard. This means that, while a legitimate user has to calculate the entire byte stream from PBKDF2, an attacker can just target the first N bytes (20 for SHA-1, 32 for SHA-256, 64 for SHA-512) of the raw hash output and attack that instead of doing all the work."
Response:
Let me break this down step by step:
- First, let's understand what PBKDF2 is:
- It's a key derivation function used to create cryptographic keys from passwords
adien / zenbook_fedora41
Last active
stuff I modified in Fedora 41 for Asus Zenbook 14
Fedora 41 on ASUS Zenbook 14 UM3406HA
Fix Audio Issues
The default audio configuration has two issues related to headset mic:
- wrong headset mic pin configuration for Realtek ALC294
- to fix: use
hdajackretaskto manually override pin0x19asmicrophone
- to fix: use
- auto detection of non-existing Digital Mic messing up audio device selection
- to fix: create
/etc/modprobe.d/blacklist-local.confand blacklistsnd-soc-dmicmodule.
- to fix: create
adien / technitium-dns
Last active
| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | supervisor=supervise-daemon |
| 4 | command="/usr/bin/dotnet" |
| 5 | command_args="/opt/technitium/dns/DnsServerApp.dll /etc/dns" |
| 6 | capabilities="^cap_net_bind_service" |
| 7 | |
| 8 | depend() { |
| 9 | use net logger |
| 10 | provide dns |
adien / singlefile_archive_format
Last active
| 1 | archives/{url-href-flat}_{time-ms}.{filename-extension} |
adien / example.service
Last active
| 1 | # /etc/systemd/system/yourdaemon.service |
| 2 | [Unit] |
| 3 | Description=Your Daemon Example |
| 4 | After=network.target network-online.target |
| 5 | Requires=network-online.target |
| 6 | |
| 7 | [Service] |
| 8 | ExecStart=/usr/local/bin/yourdaemon |
| 9 | Type=oneshot |
| 10 | Restart=on-failure |
adien / caddy-fallback
Last active
| 1 | { |
| 2 | log { |
| 3 | include http.handlers.reverse_proxy.health_checker.active |
| 4 | level WARN |
| 5 | } |
| 6 | } |
| 7 | |
| 8 | :80 { |
| 9 | reverse_proxy localhost:5000 localhost:8080 { |
| 10 | header_up Host {upstream_hostport} |
adien / set_static.ps1
Last active
| 1 | $IP = "10.10.10.10" |
| 2 | $MaskBits = 24 # This means subnet mask = 255.255.255.0 |
| 3 | $Gateway = "10.10.10.1" |
| 4 | $Dns = "10.10.10.100" |
| 5 | $IPType = "IPv4" |
| 6 | # Retrieve the network adapter that you want to configure |
| 7 | $adapter = Get-NetAdapter | ? {$_.Status -eq "up"} |
| 8 | # Remove any existing IP, gateway from our ipv4 adapter |
| 9 | If (($adapter | Get-NetIPConfiguration).IPv4Address.IPAddress) { |
| 10 | $adapter | Remove-NetIPAddress -AddressFamily $IPType -Confirm:$false |