Skip to content

Instantly share code, notes, and snippets.

View gacarrillor's full-sized avatar

Germap gacarrillor

View GitHub Profile
  • RESET SOFT

    git reset --soft HEAD~1

  • REBASE

    git pull --rebase upstream master

    git push -f origin newfeature

@gacarrillor
gacarrillor / gist:7ec1334136907dca982fc2747fff3e68
Created August 13, 2021 18:29
change_github_authentication_method.md
Issue
remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
Solution
1. Generate a new token according to below link.
https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token

As part of the application to the QGIS certification program, I'd like to show you my contributions to QGIS project.

Contributions to QGIS

(Version 2023.05.23)

@gacarrillor
gacarrillor / run_tests.md
Last active March 12, 2024 16:41
Running QGIS Processing tests

Running processing (yamls based) tests

export LD_LIBRARY_PATH=/docs/dev/qgis/QGIS/build_duplicate_nodes/output/lib/
export PYTHONPATH=/docs/dev/qgis/QGIS/build_duplicate_nodes/output/python/:/docs/dev/qgis/QGIS/tests/src/python:/docs/dev/    qgis/QGIS/build_duplicate_nodes/output/python/plugins
export QGIS_PREFIX_PATH=/docs/dev/qgis/QGIS/build_duplicate_nodes/output

/docs/dev/qgis/QGIS/python/plugins/processing$ python3 tests/QgisAlgorithmsTest4.py

Run other Python tests

QGIS_PREFIX_PATH=output PYTHONPATH=output/python:$PYTHONPATH python3 /docs/dev/qgis/core/QGIS/tests/src/python/test_plugindependencies.py

@samtux
samtux / ags_colombia.md
Last active March 15, 2024 12:37
Listado de servicios geográficos ArcGIS Server de Colombia
Universidad Nacional de Colombia - Sede Bogotá
Programa: Ingeniería Civil y Agrícola
Docente: Samuel Fernando Mesa Giraldo
Asignatura: SIG para Ingeniería Civil
Fecha actualización: 15 de marzo de 2024

Listado de Servcios Geográficos Web de ArcGIS Server en Colombia

@adam-p
adam-p / Local PR test and merge.md
Last active February 5, 2024 19:39
Testing a pull request, then merging locally; and avoiding TOCTOU

It's not immediately obvious how to pull down the code for a PR and test it locally. But it's pretty easy. (This assumes you have a remote for the main repo named upstream.)

Getting the PR code

  1. Make note of the PR number. For example, Rod's latest is PR #37: Psiphon-Labs/psiphon-tunnel-core#37

  2. Fetch the PR's pseudo-branch (or bookmark or rev pointer whatever the word is), and give it a local branch name. Here we'll name it pr37:

$ git fetch upstream pull/37/head:pr37