Skip to content

Instantly share code, notes, and snippets.

View xtaci's full-sized avatar
📻
Missing the '90s

xtaci xtaci

📻
Missing the '90s
  • China
View GitHub Profile
@xtaci
xtaci / update-public-ip.sh
Created October 11, 2023 05:48
update your public ip address as a commit to github
#!/bin/sh
while [ true ]
do
curl ifconfig.me > ip.txt
DATE=`date`
git commit -a -m "update ip on $DATE"
git push
sleep 600
done
@xtaci
xtaci / testrtree2.go
Last active October 13, 2015 03:28
rtree test
package rtree
import (
"github.com/dhconnelly/rtreego"
"math/rand"
"testing"
"time"
)
const (
@xtaci
xtaci / testrtree.go
Last active October 10, 2015 09:40
rtree type as dimension
package main
import (
"fmt"
"github.com/dhconnelly/rtreego"
)
const (
KTV = iota
HOTEL
@xtaci
xtaci / testalign.c
Last active December 20, 2015 20:28
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <stdint.h>
#ifdef __MACH__
#define CLOCK_REALTIME 0
#include <sys/time.h>
//clock_gettime is not implemented on OSX