Skip to content

Instantly share code, notes, and snippets.

View FuZer's full-sized avatar
🎯
Focusing

SeungHyun Jeon FuZer

🎯
Focusing
View GitHub Profile
import ogr
import osr
high_ref = osr.SpatialReference()
low_ref = osr.SpatialReference()
coord_topleft = pixel2coord(high_res_raster, (col_high_res, row_high_res))
high_ref.ImportFromWkt(high_res_raster.GetProjection())
low_ref.ImportFromWkt(low_res_raster.GetProjection())
@jgsqware
jgsqware / kubeadm-install-offline.md
Last active January 22, 2025 09:34
Offline Kubeadm install

On master and nodes

Pull images form internet access laptop

docker pull gcr.io/google_containers/kube-apiserver-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-controller-manager-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-proxy-amd64:v1.5.0
docker pull gcr.io/google_containers/kube-scheduler-amd64:v1.5.0
docker pull weaveworks/weave-npc:1.8.2
docker pull weaveworks/weave-kube:1.8.2
@apparentlymart
apparentlymart / iptables-round-robin.sh
Last active December 20, 2024 02:49
round robin to three ports on the same host with iptables
# The following example shows a way to use iptables for basic round-robin load balancing, by redirecting
# packets two one of three ports based on a statistic counter.
#
# TCP packets for new sessions arriving on port 9000 will rotate between ports 9001, 9002 and 9003, where
# three identical copies of some application are expected to be listening.
#
# Packets that aren't TCP or that related to an already-established connection are left untouched, letting
# the standard iptables connection tracking machinery send it to the appropriate port.
#
# For this to work well, connections need to be relatively short. Ideally there would be an extra layer