This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import geojson | |
from shapely.geometry import shape | |
o = { | |
"coordinates": [[[23.314208, 37.768469], [24.039306, 37.768469], [24.039306, 38.214372], [23.314208, 38.214372], [23.314208, 37.768469]]], | |
"type": "Polygon" | |
} | |
s = json.dumps(o) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SHELL:= /usr/bin/env bash | |
PY:= python3.12 | |
vb:= .venv/bin/ | |
.PHONY: clean | |
$(vb)npm: $(vb)nodeenv | |
source $(vb)activate && \ | |
nodeenv --python-virtualenv --node=lts && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Install rclone on a Go-less system using Go in Docker. | |
# | |
set -ex | |
# latest stable release | |
RC_TAG=v1.64.2 | |
GO_VER=1-bookworm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Install direnv on a Go-less system using Go in Docker. | |
# | |
set -ex | |
# latest stable release | |
#DIRENV_VER=v2.32.3 | |
# don't use above as much is fixed in master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Install GitHub CLI on a Go-less system using Go in Docker. | |
# | |
set -ex | |
# latest stable release | |
GHCLI_VER=v2.38.0 | |
GO_VER=1-bookworm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(!document.querySelectorAll('a[href*="https://mobirise.site"]').length || !document.querySelector('a[href*="https://mobirise.site"]').parentElement.nodeName === 'SECTION') && document.querySelectorAll('link[href*="mbr-additional.css"]').forEach(function (_0x3c4461) { | |
_0x3c4461.remove(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# This is a custom post-install script for a Jetson Nano. | |
# | |
set -ex | |
me=$(whoami) | |
if [ "$me" != "root" ] | |
then | |
echo 'Must run as root!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# was reading https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/ | |
# and decided to perform a simple purge... | |
awk '/^#/||$2=="ssh-rsa"&&length($3)<544 {print}' ~/.ssh/known_hosts >~/.ssh/known_hosts.buh-bye.`date -Im` && \ | |
awk '/^#/||$2=="ssh-rsa"&&length($3)<544{next}{print}' ~/.ssh/known_hosts >~/.ssh/known_hosts.new && \ | |
mv ~/.ssh/known_hosts.new ~/.ssh/known_hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
# | |
# Auto-installer for CUDA Toolkit inside Windows Subsystem for Linux. | |
# | |
if [ -z "${BASH_VERSINFO[0]}" ] || [ ${BASH_VERSINFO[0]} -lt 4 ] | |
then | |
echo "ERROR: Only tested on Bourne-Again SHell v4/v5." | |
exit 1 | |
fi >&2 |
NewerOlder