Skip to content

Instantly share code, notes, and snippets.

View dschulz's full-sized avatar
💭
🧉

Diego Schulz dschulz

💭
🧉
  • Hohenau, Paraguay
View GitHub Profile
@dschulz
dschulz / EkuatiaSignedXml.cs
Created December 30, 2023 21:38
Ejemplo básico C# XML-Dsig Ekuatia
using System.Text.RegularExpressions;
using System.Xml;
namespace ConsoleApp1;
using System.Security.Cryptography.Xml;
public partial class EkuatiaSignedXml : SignedXml
{
@dschulz
dschulz / builddrivers.sh
Last active February 23, 2024 18:57
Qt6 Sql Drivers Oracle / PostgreSQL
# sudo dnf install libpq-devel
sudo dnf install postgresql16-private-devel
sudo dnf install firebird-devel firebird-utils
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/home/dschulz/temporal/instantclient_21_11
#!/bin/bash
sudo snap remove --purge wine-platform-5-stable
sudo snap remove --purge wine-platform-runtime
sudo snap remove --purge hunspell-dictionaries-1-7-2004
sudo snap remove --purge notepadqq
sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge gnome-3-38-2004
sudo snap remove --purge gnome-42-2204
@dschulz
dschulz / botan2_qt6_project.txt
Created May 10, 2022 20:45
add Botan2 library to a Qt6 project
# Include FindBotan2.cmake in ${PROJECT_ROOT}/cmake
# https://github.com/rnpgp/rnp/blob/master/cmake/Modules/FindBotan2.cmake
# Then add this
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
begin transaction ;
drop schema restapi cascade;
create schema restapi;
commit;
begin transaction ;

Project-local maven repository

Purpose

Be able to add third party dependencies not available from conventional repositories. Primarily intended for including Hypersistence Optimizer dependency in a clean way, avoiding warnings during a Maven build that arise from using <scope>system</scope> in the dependency section.

Note: The Hypersistence Optimizer maven-install.sh script does the same as what's described here, just omits creating a subdirectory in the project base directory. Here the suggested subdirectory is 3rdpartylibs.

Adding libraries to this repository

@dschulz
dschulz / formato_test.go
Last active November 12, 2019 20:32
tests numeros a letras
package formato
import (
"fmt"
"log"
"math/big"
"testing"
)

Envío de notificaciones con /tool fetch desde scripts

Telegram

  1. Registrar un bot en BotFather y copiar el botid
  2. Averiguar el chat_id del grupo donde se quieren entregar los mensajes. Google is your friend.
  3. Crear un script en el router con el nombre telegram y el siguiente contenido:
Versiones pre 6.44:
dschulz@www:~$ go version
go version go1.12.4 linux/amd64
dschulz@www:~$
dschulz@www:~$ mkdir testbuild && cd testbuild
dschulz@www:~/testbuild$ export GO111MODULE=on ; go get github.com/mholt/caddy/caddy@v1.0.0-beta2
go: finding github.com/mholt/caddy/caddy v1.0.0-beta2
go: finding github.com/mholt/caddy v1.0.0-beta2
go: downloading github.com/mholt/caddy v1.0.0-beta2
go: extracting github.com/mholt/caddy v1.0.0-beta2
go: finding github.com/caddyserver/builds v0.0.0-20170910200810-c62e2219460a
@dschulz
dschulz / instalar_golang.sh
Created March 8, 2019 14:30
Script para instalar o actualizar Golang
#!/bin/bash
if [ $EUID -ne 0 ]; then
echo "No sos root, chau"
exit 1
fi
URL="https://dl.google.com/go/go1.12.linux-amd64.tar.gz"
BASE='/usr/local'