Skip to content

Instantly share code, notes, and snippets.

View danielquisbert's full-sized avatar
😁
available

DaNi danielquisbert

😁
available
View GitHub Profile
@danielquisbert
danielquisbert / imageFromBase64.dart
Last active November 12, 2022 03:15
Hack para guardar o convertir imagen en base 64
FutureBuilder(
future: getImageBase64(),
initialData: ObjectClass, // puede ser String
builder: (BuildContext context, AsyncSnapshot<GeneraQRModel> snapshot) {
if (snapshot.hasData) {
final data = snapshot.data!;
if (snapshot.connectionState == ConnectionState.done) {
String uri = 'data:image/png;base64,${data!['imageBase64']}';
@danielquisbert
danielquisbert / configure-proxy-for-git.md
Last active March 20, 2018 15:14
Solution to error proxy git

example error:

$ git push origin master

fatal: unable to access 'https://urlgit/repo.git/': Failed to connect to gitlab.com port 443: Conexión rehusada

Solution:

@danielquisbert
danielquisbert / configurar_2_monitores.md
Created January 11, 2018 16:06
problema para reconocer dos monitores y resoluciones

problema:

al reinstalar el equpo (debian 9) paso que no reconoce el segundo monitor sólo como uno, para solucionar se instalo:

pt-get install xserver-xorg-video-ati xserver-xorg-video-fbdev xserver-xorg-video-modesetting firmware-linux-nonfree

y luego reiniciar

@danielquisbert
danielquisbert / basemaps_ggl.md
Created October 6, 2017 16:24
basemaps using tiles

You don't need a plugin or the Google API, you can add it as a XYZ tile layer.

Streets

googleStreets = L.tileLayer('http://{s}.google.com/vt/lyrs=m&x={x}&y={y}&z={z}',{ maxZoom: 20, subdomains:['mt0','mt1','mt2','mt3'] });

@danielquisbert
danielquisbert / Key_starUML.md
Last active November 13, 2024 17:02
Key para starUML

Cambiar el nombre para mostrar de las secciones BaseLayer y Overlays del layerswitcher OL2

var map = (OpenLayers.Map ); // your map reference
var layerswitcher = (OpenLayers.Control.LayerSwitcher) // layer swicher control reference
OpenLayers.Lang[OpenLayers.Lang.getCode()]['Base Layer'] = "My base label";
OpenLayers.Lang[OpenLayers.Lang.getCode()]['Overlays'] = "My over label";
// remove current instance of layers switcher from map if attached.
map.removeControl( layerswitcher );
map.addControl( new OpenLayers.Control.LayerSwitcher( { /* options here */ } ) );
@danielquisbert
danielquisbert / tunning_postgres.md
Last active June 12, 2017 19:25
algunos parámetros para realizar el tunning de una DB PG.
@danielquisbert
danielquisbert / tips_django.md
Last active March 3, 2017 19:17
Importación de archivos CSS, JS, imágenes, etc. desde la ruta static en Django 1.10
@danielquisbert
danielquisbert / installation.md
Created February 14, 2017 13:00 — forked from hallahan/installation.md
SpatialServer Installation Instructions

Preliminary Packages

Make sure you have done sudo apt-get update and sudo apt-get upgrade on your fresh install. This guide is geared toward Ubuntu 14.04 LTS (Trusty Tahr). Most of the guide will work for earlier versions of Ubuntu with some slight changes, but 14.04 is advised.

Enable the root user

sudo cp /home/ubuntu/.ssh/authorized_keys /root/.ssh/
@danielquisbert
danielquisbert / Comandos_para_CentOS.md
Last active February 9, 2017 14:08
Comandos para CentOS

Activar autocompletado en shell

yum --enablerepo=epel-testing install bash-completion-extras

Enviar alertas de loggeo de root por correo:

**Primero instalar mailx

**editar elarchivo /root/.bashrc y colocar al final del archivo, las siguientes líneas: