Skip to content

Instantly share code, notes, and snippets.

View Signum's full-sized avatar

Christoph Haas Signum

View GitHub Profile
11 2017-02-27 16:01:26.368948 fe80::1f46:734:bdb2:9665 ff02::1:2 DHCPv6 Solicit XID: 0x1ceb9d CID: 000100012046fbc5843a4b93a140 118
Frame 11: 118 bytes on wire (944 bits), 118 bytes captured (944 bits)
Encapsulation type: Ethernet (1)
Arrival Time: Feb 27, 2017 16:01:26.368948000 CET
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1488207686.368948000 seconds
[Time delta from previous captured frame: 0.111790000 seconds]
[Time delta from previous displayed frame: 0.000000000 seconds]
[Time since reference or first frame: 0.964107000 seconds]
root@nb-chaas:~# rm /var/lib/dhcp/dhclient6.leases
rm: cannot remove '/var/lib/dhcp/dhclient6.leases': No such file or directory
root@nb-chaas:~# dhclient -6 -d wlan0
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on Socket/wlan0
Sending on Socket/wlan0
@Signum
Signum / hackysolution.rb
Created February 20, 2023 19:58
Using Rack::Static in Hanami 2
# routes.rb:
```ruby
get '/api', to: ->(env) { [200, {}, ["A Rack compatible response"]] }
get '/*path', to: ::Imc::MyStatic.new("frontend/build")
```
# lib/imc/staticserve.rb:
```ruby