Skip to content

Instantly share code, notes, and snippets.

Andrea Borruso aborruso

  • Palermo, Italy
Block or report user

Report or block aborruso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tot.json
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}",
"profiles":
View Makefile-static-MinGW
# SandroFurieri (c) 2009
# Makefile Spatialite statically linked CLI-tools [Win MSYS/MinGW]
CFLAGS = -Wall -Wextra -Wunused -pedantic -I/usr/local/include
GG = g++
CC = gcc
all: ./static_bin/spatialite.exe ./static_bin/spatialite_tool.exe \
./static_bin/spatialite_network.exe ./static_bin/shp_doctor.exe \
./static_bin/exif_loader.exe ./static_bin/spatialite_osm_net.exe \
View fix-wsl2-dns-resolution
1. Create a file: /etc/wsl.conf.
2. Put the following lines in the file in order to ensure the your DNS changes do not get blown away
[network]
generateResolvConf = false
3. In a cmd window, run wsl --shutdown
4. Restart WSL2
5. Create a file: /etc/resolv.conf. If it exists, replace existing one with this new file.
6. Put the following line in the file
View spatialite
sudo apt-get install sqlite3
sudo apt-get install -y python3-dev build-essential wget libxml2-dev libproj-dev libgeos-dev libsqlite3-dev zlib1g-dev pkg-config && sudo apt clean
sudo apt-get install automake
sudo apt-get install autoconf
sudo apt-get install autotools-dev
git clone https://git.osgeo.org/gitea/rttopo/librttopo.git
cd librttopo
./autogen.sh
View geopandas-polygon-cascaded-overlay.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aborruso
aborruso / README.md
Last active Oct 7, 2019
Da Markdown a LibreOffice Writer usando un template
View README.md

Da Markdown a LibreOffice Writer usando un template

Opzione 1

Il tool da utilizzare è pandoc (che quindi nel caso è da installare). È a riga di comando, open source e disponibile per tutti i sistemi operativi.

Il comando è:

pandoc -o output.odt --reference-doc=myPandocTemplate.odt input.md
@aborruso
aborruso / nonmettomipiace.css
Last active Oct 1, 2019
http://blog.ondata.it/senza-like-su-instagram-e-facebook-provaci/ > un foglio di stile per Stylus, per nascondere Like, Mi piace, ecc. in facebook. Un'idea di Donata Columbro
View nonmettomipiace.css
._3vum {
display: none !important;
}
._666k {
display: none !important;
}
._1lh3 {
display: none !important;
}
._7gpd{
View test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aborruso
aborruso / queryWikiData.md
Last active Sep 18, 2019
Query Wikidata per avere il codice ISTAT comunale a partire dal nome del comune
View queryWikiData.md

La query di base è

SELECT ?ISTAT
WHERE 
{
  ?item wdt:P31 wd:Q747074.
  ?item rdfs:label ?itemLabel. 
  FILTER(LCASE(?itemLabel)="nomecomuneinminuscolo"@it). 
  ?item wdt:P635 ?ISTAT .
You can’t perform that action at this time.