Skip to content

Instantly share code, notes, and snippets.

View vrbrito's full-sized avatar
🖥️
Always Learning

Vitor Ramalho vrbrito

🖥️
Always Learning
  • Deel
  • Rio de Janeiro
View GitHub Profile
@abelcallejo
abelcallejo / README.md
Last active March 25, 2024 11:35
Installing GDAL 3.2.1 on Amazon Linux 2

Installing GDAL 3.2.1 on Amazon Linux 2

gdal linux yum

As of this day, this is probably the only and fastest way of installing it.

Package requirements

Based from the GDAL and PROJ build requirements, here is the full list of required packages to install:

# -*- coding: utf-8 -*-
# Copyright 2016 Matt Martz
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@girasquid
girasquid / gist:1453265
Created December 9, 2011 20:59
How to save a file to a FileField in Django without writing the entire row.
instance.file_field.save(the_filename, file_content, save=False)
MyModel.objects.filter(id=instance.id).update(file_field=instance.file_field)