Skip to content

Instantly share code, notes, and snippets.

View kerolasa's full-sized avatar
🐌
by default

Sami Kerola kerolasa

🐌
by default
View GitHub Profile
@kerolasa
kerolasa / gist:6d8bb777f0e2e9a1b73b7fe00801ccb1
Created May 20, 2021 09:04
mmdb content export / dump in golang
package main
import (
"fmt"
"os"
maxminddb "github.com/oschwald/maxminddb-golang"
)
func main() {
#include <stdio.h>
int main(void)
{
int a = 1;
int b = 2;
int c = 3;
int y = a >= (4, b);
int x = c >= (5, b);
@kerolasa
kerolasa / print_adjtimex.c
Last active January 20, 2018 16:04
adjtimex(2) human readable print out utility
/* This is adjtimex(2) human readable print out utility.
*
* The program has BSD 2-clause license which also known as "Simplified
* BSD License" or "FreeBSD License".
*
* Copyright 2018- Sami Kerola. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
@kerolasa
kerolasa / keybase.md
Created September 1, 2016 20:52
keybase.md

Keybase proof

I hereby claim:

  • I am kerolasa on github.
  • I am kerolasa (https://keybase.io/kerolasa) on keybase.
  • I have a public key whose fingerprint is 8ED3 96E3 7E38 D471 A005 30D3 A955 3245 FDE9 B739

To claim this, I am signing this object: