Gris Ge

Results 218 comments of Gris Ge

```rust extern crate libotp; use libotp::{HOTP, TOTP}; fn get_token(key: &str) -> String { format!( "{:06}", TOTP::new(HOTP::from_base32(key).unwrap(), 30, 0).get_otp(6, 0) ) } fn main() { println!("{}", get_token("AAA234567AABCDEF")) } ``` As comparison...

I have ported my code to python which works well. If you don't want investigate on this, feel free to close this.

Sounds like https://openweathermap.org/api could be a good alternative. It don't require much work, just give me some time for that.

Openweathermap free account only gets weather forcast in 3 hours slot. You still have to pay for daily forecast. If you happen to know how to summery 8 forcasts(3 hours...

I found `heweather.com` provides free daily weather report. Digging.

weather underground just disabled my free key, now I have to find another way.

@1nformatica I have create a new project for this: https://github.com/cathay4t/kindle-weather-rs In that project, I am using heweather.com which works quit well(except they only provide 3 days forecast(including today). That project...

@1nformatica The code for new project is done(need some documentation): https://cathay4t.fedorapeople.org/tmp/kindle_weather.svg * It has no icons(heweather need a lot icons which I don't want to spend time on). * It...

Is there any change to allow accessing the raw socket number returned by `pnet::datalink::channel()`? With that, user can use `libc::setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, &val, sizeof(val));` to the BPF filter by themselves...

From my testing, `NM.SettingWired` should __not__ be included on IPoIB interface as they don't have layer 2. The speed and mac of IPoIB is not changebale. The MTU should be...