This file contains hidden or 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
| package main | |
| import ( | |
| "database/sql" | |
| "errors" | |
| "fmt" | |
| "sync" | |
| _ "github.com/duckdb/duckdb-go/v2" | |
| geom "github.com/peterstace/simplefeatures/geom" |
This file contains hidden or 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
| use atspi::connection::set_session_accessibility; | |
| use atspi::proxy::accessible::{AccessibleProxy, ObjectRefExt}; | |
| use atspi::proxy::proxy_ext::ProxyExt; | |
| use atspi::{DocumentEvents, Event}; | |
| use zbus::Connection; | |
| use std::error::Error; | |
| use tokio_stream::StreamExt; | |
| fn recursive_print_children<'a>( | |
| proxy: &'a AccessibleProxy<'a>, |
This file contains hidden or 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
| #!/bin/bash | |
| if pgrep -x "orca" > /dev/null; then | |
| echo "Orca is running. Killing Orca and swapping Caps Lock and Escape." | |
| # Kill Orca | |
| pkill -x "orca" | |
| # Swap Caps Lock and Escape | |
| gsettings set org.gnome.desktop.input-sources xkb-options "['caps:swapescape']" | |
| else | |
| echo "Orca is not running. Reverting Caps Lock and Escape to normal and starting Orca." |
This file contains hidden or 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
| version: '3.5' | |
| services: | |
| postgres: | |
| container_name: postgres_container | |
| image: postgis/postgis | |
| environment: | |
| POSTGRES_USER: ${POSTGRES_USER:-postgres} | |
| POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme} | |
| PGDATA: /data/postgres |
This file contains hidden or 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
| #!/bin/bash | |
| sudo docker run \ | |
| --privileged \ | |
| --name k3s-server-1 \ | |
| --hostname k3s-server-1 \ | |
| -p 6443:6443 \ | |
| -d rancher/k3s:v1.24.10-k3s1 \ | |
| server |
This file contains hidden or 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
| { | |
| "links": { | |
| "self": "\/rise\/api\/location?include=catalogRecords.catalogItems\u0026itemsPerPage=5\u0026page=1", | |
| "first": "\/rise\/api\/location?include=catalogRecords.catalogItems\u0026itemsPerPage=5\u0026page=1", | |
| "last": "\/rise\/api\/location?include=catalogRecords.catalogItems\u0026itemsPerPage=5\u0026page=121", | |
| "next": "\/rise\/api\/location?include=catalogRecords.catalogItems\u0026itemsPerPage=5\u0026page=2" | |
| }, | |
| "meta": { | |
| "totalItems": 603, | |
| "itemsPerPage": 5, |
This file contains hidden or 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
| #!/bin/bash | |
| # Check current mapping and extract relevant content | |
| CURRENT_MAPPING=$(hidutil property --get "UserKeyMapping" | grep "HIDKeyboardModifierMappingSrc") | |
| # Define the swap mapping | |
| SWAP_MAPPING='{ | |
| "UserKeyMapping": [ | |
| { | |
| "HIDKeyboardModifierMappingSrc": 0x700000029, |
This file contains hidden or 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
| sudo apt update | |
| sudo apt upgrade | |
| # Docker | |
| sudo groupadd docker | |
| sudo usermod -aG docker $USER | |
| git clone https://github.com/cgs-earth/wis2box/ | |
| cd wis2box | |
| python3 wis2box-ctl.py start |
This file contains hidden or 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
| PREFIX schema: <https://schema.org/> | |
| PREFIX gsp: <http://www.opengis.net/ont/geosparql#> | |
| PREFIX wiki: <https://www.wikidata.org/wiki/> | |
| PREFIX hyf: <https://www.opengis.net/def/schema/hy_features/hyf/> | |
| PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> | |
| PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
| SELECT DISTINCT | |
| ?mainstem | |
| ?monitoringLocation |
This file contains hidden or 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
| mkdir .devcontainer | |
| touch .devcontainer/devcontainer.json | |
| cat <<EOF > .devcontainer/devcontainer.json | |
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | |
| // README at: https://github.com/devcontainers/templates/tree/main/src/docker-existing-docker-compose | |
| { | |
| "name": "Existing Docker Compose (Extend)", |
NewerOlder