Skip to content

Instantly share code, notes, and snippets.

@Blake-Loveland
Blake-Loveland / createCSVwithEWKB.py
Created August 11, 2023 13:02 — forked from borja-munoz/createCSVwithEWKB.py
Read geospatial file with Fiona and write CSV file with EWKB geometries using Shapely
import csv
import logging
import fiona
from shapely import geos, wkb
from shapely.geometry import shape
output_file = file_name + ".processing.csv"
with fiona.open(file_name, "r") as source:
@Blake-Loveland
Blake-Loveland / ansible_update_user.yml
Created August 17, 2021 13:02 — forked from trongnghia203/ansible_update_user.yml
Ansible: Add/update/remove user
---
# -----------------------------------------------------------------------------------------
# Purpose: To manage system users:
# - create/upadate a user who is allowed accessing via ssh connection
# - add public ssh-key of user into its authorized_keys
# - allow user to use sudo by putting a config into /etc/sudoers.d/
# - remove authorized_keys of inactive users
# - remove inactive users
# - remove sudo permission by removing its config file in /etc/sudoers.d/ if any
# Maintanance: Nghia Le [at] INFOTECHVIET