Skip to content

Instantly share code, notes, and snippets.

View marcellobenigno's full-sized avatar

Marcello Benigno marcellobenigno

  • João Pessoa / Paraíba / Brazil
View GitHub Profile
@marcellobenigno
marcellobenigno / consultas.sql
Last active March 27, 2026 17:17
Tratamento dos Dados do GeoFazendas Web
WITH municipio AS (
SELECT geom
FROM maps_geometriamunicipio
WHERE cod_ibge_m = '5007935'
)
SELECT
t.*
FROM maps_texturasolo t
JOIN maps_grade10000 g
@marcellobenigno
marcellobenigno / get_municipios_geojson.sql
Last active May 14, 2026 09:43
Explorador de Tabelas Supabase
CREATE OR REPLACE FUNCTION get_municipios_geojson()
RETURNS json LANGUAGE sql STABLE SECURITY DEFINER AS $$
SELECT json_build_object(
'type', 'FeatureCollection',
'features', json_agg(
json_build_object(
'type', 'Feature',
'geometry', ST_AsGeoJSON(geom)::json,
'properties', json_build_object(
'nome', nome,
@marcellobenigno
marcellobenigno / iTerm2.md
Created September 2, 2020 19:09 — forked from soifou/iTerm2.md
iTerm2 Shortcuts

iTerm2 Shortcuts

Tab navigation

  • open new tab: Cmd + t
  • next tab: Cmd + Shift + ]
  • previous tab: Cmd + Shift + [

Pane navigation

@marcellobenigno
marcellobenigno / qgis_scripting_snippets.py
Last active June 8, 2022 10:41
QGIS Python Snippets
# Layer from Memory
layer = QgsVectorLayer('Point?crs=epsg:4326', 'MyPoint' ,'memory')
pr = layer.dataProvider()
pt = QgsFeature()
point1 = QgsPoint(-35.92,-7.24)
pt.setGeometry(QgsGeometry.fromPoint(point1))
pr.addFeatures([pt])
layer.updateExtents()
QgsMapLayerRegistry.instance().addMapLayers([layer])
@luzfcb
luzfcb / configurar_pyenv.md
Last active February 10, 2026 00:34
instalar pyenv no ubuntu
@marcellobenigno
marcellobenigno / boilerplate2.sh
Created March 17, 2016 13:44 — forked from rg3915/boilerplate2.sh
Shell script to create a complete Django project in Mac with Python 3.5 and Django 1.9.3
# Shell script to create a complete Django project.
# This script require Python 3.x and pyenv
# Settings.py is config to Django 1.9.3
# The project contains:
# Settings config
# Person model and form
# Person list and detail
# Person create, update and delete
# Admin config
@rg3915
rg3915 / boilerplate2.sh
Last active August 20, 2025 19:42
Boilerplate: Shell script to create a complete Django project in Mac with Python 3.7 and Django 2.2.12
# Shell script to create a complete Django project.
# This script require Python 3.x and pyenv
# Settings.py is config to Django 2.2.12
# The project contains:
# Settings config
# Person model and form
# Person list and detail
# Person create, update and delete
# Admin config
@soifou
soifou / iTerm2.md
Last active August 31, 2024 17:26
iTerm2 Shortcuts

iTerm2 Shortcuts

Tab navigation

  • open new tab: Cmd + t
  • next tab: Cmd + Shift + ]
  • previous tab: Cmd + Shift + [

Pane navigation

@clhenrick
clhenrick / README.md
Last active April 11, 2026 06:32
PostgreSQL & PostGIS cheatsheet (a work in progress)
@leocomelli
leocomelli / git.md
Last active May 14, 2026 22:28
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda