I hereby claim:
- I am env25 on github.
- I am env25 (https://keybase.io/env25) on keybase.
- I have a public key ASDE5jYkU8sq2BQfR6Pv-6wYAW68ifCPPbkv6xfknPM8ego
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# /etc/systemd/system/timesync.service | |
[Unit] | |
Description=time sync using HTTP Date header | |
Wants=network-online.target network.target | |
After=network-online.target network.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c '{ exec {sleep}<> <(:); while ! : >/dev/tcp/time.google.com/80; do read -r -t 1 -u $$sleep; done; } 2>/dev/null; true' | |
ExecStart=/bin/bash -c 'timedatectl set-time "$(date +"%%Y-%%m-%%d %%H:%%M:%%S %%Z" -d"$(curl -sSI http://time.google.com | grep -i "Date: " | cut -d" " -f2-)")"' |
const std = @import("std"); | |
pub fn build(b: *std.build.Builder) !void { | |
const target = b.standardTargetOptions(.{}); | |
const mode = b.standardReleaseOptions(); | |
const lib = b.addSharedLibrary("plugin", "src/plugin.zig", .unversioned); | |
lib.setTarget(target); | |
lib.setBuildMode(mode); | |