Skip to content

Instantly share code, notes, and snippets.

View danilopiazza's full-sized avatar

Danilo Piazzalunga danilopiazza

View GitHub Profile
@danilopiazza
danilopiazza / gist:02c7dfa767e1b21fcd5fd7f4e9fcdab6
Created October 15, 2025 07:35
Create a self-signed certificate with OpenSSL
$ openssl req -x509 -newkey rsa -keyout mycertificate.key -out mycertificate.crt -nodes
.....+.....+.+.....+++++++++++++++++++++++++++++++++++++++*...+.+..+...+.........+++++++++++++++++++++++++++++++++++++++*.........+........+.+......+.........+...........+....+...........+...+.......+...+...+........+.......+........+......+...+.+...........+......+....+...+...+...+.....+....+..+.+........+.+......+..+.+......+.....+.+............+..+.+........+.........+.......+...........+...+.......+.....+....+..............++++++
...+....+.....+.+++++++++++++++++++++++++++++++++++++++*.....+...+++++++++++++++++++++++++++++++++++++++*.......+.+.............................+.......+......+..+...+....+.........+.....++++++
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter
@danilopiazza
danilopiazza / bin > dune
Created December 1, 2024 22:06
OCaml Dune project with unit tests
(executable
(public_name helloworld)
(name main)
(libraries helloworld))
@danilopiazza
danilopiazza / Makefile
Created June 12, 2024 13:33
Tail-recursive Fibonacci sequence in x86-64 Assembly
all: a.out
%.o: %.asm
nasm -f elf64 -o $@ $<
a.out: fibonacci.o main.c
$(CC) *.o main.c
clean:
@rm -f *.o a.out
@danilopiazza
danilopiazza / pom.xml
Created October 12, 2023 06:20
Generate Java classes from a WSDL file using jaxb2-maven-plugin and Java EE JAXB
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>2.5.0</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>