Skip to content

Instantly share code, notes, and snippets.

View ingenieroariel's full-sized avatar

Ariel Núñez ingenieroariel

View GitHub Profile
[{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256[]","name":""},{"type":"uint256[]","name":""}],"name":"getQueue","inputs":[],"constant":true},{"type":"function","stateMutability":"nonpayable","payable":false,"outputs":[],"name":"setBaselineQuorumFactor","inputs":[{"type":"uint256","name":"baselineQuorumFactor"}],"constant":false},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"bool","name":""},{"type":"bool","name":""},{"type":"uint256","name":""}],"name":"getHotfixRecord","inputs":[{"type":"bytes32","name":"hash"}],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":"approval"},{"type":"uint256","name":"referendum"},{"type":"uint256","name":"execution"}],"name":"stageDurations","inputs":[],"constant":true},{"type":"function","stateMutability":"view","payable":false,"outputs":[{"type":"uint256","name":""}],"name":"concurrentProposals","inputs":[],"constant":true},{"type":"functi
@ingenieroariel
ingenieroariel / README.md
Created March 11, 2020 10:25
Mapproxy Cache Dynamic Test

This code allows testing a mapproxy cache with variables like dimension and styles that are prone to be overwritten, it does so by comparing the histograms of a remotely requested resource and a local one.

On one terminal run (using the piensa/mapproxy:dimensions branch and the less-strict.patch here):

python3 cache.py

On another terminal run:

`xargs

RFC: MapProxy Dimensions Support

Meteo agencies [1] need the ability to cache time enabled WMS services but currently mapproxy disables caching when dimensions are set. This RFC proposes to support caching of different dimensions values, by compromising on explicit configuration and limited flexibility when picking cache backends or directory structure.

1. Prior Work

The Norwegian Meteorological Institute, through Trond Michelsen already created an implementation in mapproxy/mapproxy#377 and have been using it in production since last year.

There was feedback from @olt in the PR that recommended to:

ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCnWZMCZoC6H2vG+QdUXqICXhCopa16t40zSqFa8uLKW9zp9+jZTe4TPlXwSgpf2xNUkFz22jIFRz0V3nEMuoumlbIvMAYopUJ5+d+RLdcOnOlnkZiYrS16sc24IEkl16ur0EpiQ5VKctYU3Odhx+yOvTs9cVbdTizNL40Oa/EZflcL/146oTKm25prIzY+PNqXGkCqj7QhE6lan0MPu79s3exJAjVooqK15IfgndzDtSGZDERaWaJj4bTZV+P/enhFFzBlCsIf4+un8I0bImlwhgjJ7myXZ8ME8FeVNIdiD7bO5as01T9yL9sQVZro20xPiUsmjaC1zQozMbiKUD09 x@master
@ingenieroariel
ingenieroariel / README.md
Last active October 25, 2019 22:58
learning haskell
@ingenieroariel
ingenieroariel / configuration.nix
Created May 2, 2019 13:15
HP Envy x360 + Nixos + Sway + i3statusbar-rs in a single file with 500 lines.
{ config, lib, pkgs, ... }:
let
domain = "puerti.co";
waylandOverlay = (import (builtins.fetchTarball ({
url = "https://github.com/piensa/wayner/archive/1e62268.tar.gz";
sha256 = "07hzhdc9ic3sk4ivd0g3lx2f7jnr3wkrrr884hf5b1n7adzglh50";
})));
@ingenieroariel
ingenieroariel / configuration.i3status
Last active February 26, 2024 11:13
nixos-laptop
theme = "solarized-dark"
icons = "awesome"
[[block]]
block = "disk_space"
path = "/"
alias = "/"
info_type = "available"
unit = "GB"
interval = 20
{ config, lib, pkgs, ... }:
let
rotate = pkgs.writeShellScriptBin "rotate" ''
${pkgs.python3}/bin/python3 ${rotate-py}
'';
rotate-py = pkgs.writeText "rotate-py" ''
import subprocess as sp
import os
@ingenieroariel
ingenieroariel / custom-kepler.html
Last active January 5, 2020 12:35
Custom Kepler.gl
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<title>Kepler.gl embedded map</title>
<script src="./[email protected]/dist/react.min.js" crossorigin></script>
<script src="./[email protected]/dist/react-dom.min.js" crossorigin></script>
<script src="./[email protected]/dist/redux.js" crossorigin></script>
<script src="./[email protected]/dist/react-redux.min.js" crossorigin></script>
nixpkgs.overlays = [
( self: super:
let
inherit (self.pkgs) vim;
in {
vim = super.vim_configurable.customize {
name = "vim";
vimrcConfig.customRC = ''
syntax enable
set backspace=indent,eol,start