adien / blink.html
最后活跃于
| 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
最后活跃于
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
最后活跃于
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 / technitium-dns
最后活跃于
| 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
最后活跃于
| 1 | archives/{url-href-flat}_{time-ms}.{filename-extension} |
adien / example.service
最后活跃于
| 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
最后活跃于
| 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
最后活跃于
| 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 |