Skip to content

Instantly share code, notes, and snippets.

1. Geometry를 다룰줄 안다
- Java Topology suite : https://github.com/locationtech/jts
- tutorial : http://docs.geotools.org/latest/userguide/library/jts/index.html
2. 저장소(DB)에 저장한다
- postgis : http://postgis.net/
- tutorial : http://workshops.boundlessgeo.com/postgis-intro/
3. 화면에 표시한다.
- desktop : http://www.qgis.org/ko/site/
<!DOCTYPE html>
<html>
<head>
<title>Daum Image Tile by Openlayers3</title>
<link rel="stylesheet" href="http://openlayers.org/en/v3.16.0/css/ol.css" type="text/css">
<script src="http://openlayers.org/en/v3.16.0/build/ol.js"></script>
<style>
body {margin: 0; padding: 0}
</style>
</head>
@curtkim
curtkim / a.groovy
Last active December 9, 2015 05:25
gradle
task getDeps(type: Copy) {
from sourceSets.main.runtimeClasspath
into 'lib/'
}
db.path.aggregate(
[
{
$group : {
_id : "$hour",
count: { $sum: 1 }
}
}
]
)
High level consumer : I just want to use Kafka as extermely fast persistent FIFO buffer and not worry much about details.
Low level consumer : I want to have a custom partition data consuming logic, e.g. start reading data from newly created topics without a need of consumer reconnection to brokers.
Ctrl+Tab : swtich 'vertex select', 'edge select', 'face select'
vboxmanage hostonlyif remove vboxnet0

TCP Demultiplexing

TCP Demultiplexing

IP header

IP header

'protocol field'

  • 1 : ICMP
  • 2 : IGMP
  • 6 : TCP
############################################
# [Stream PassThrough TrafficMeter]
util = require 'util'
PassThrough = require('stream').PassThrough
clientTraffic = {}
@curtkim
curtkim / ubuntu install
Last active November 5, 2023 03:21
linux
[x]
docker run -ti --rm \
-e DISPLAY=$DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
firefox
[watch]
watch -n 1 docker ps
[script]