Skip to content

Instantly share code, notes, and snippets.

View JJ's full-sized avatar
🏠
Working from home

Juan Julián Merelo Guervós JJ

🏠
Working from home
View GitHub Profile
@thesamesam
thesamesam / xz-backdoor.md
Last active April 23, 2024 21:38
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@ramiroencinas
ramiroencinas / ramix-getting-windows-memory-usage-with-nativecall.md
Last active November 30, 2020 15:54
Getting Windows Memory Usage with NativeCall

Getting Windows Memory Usage with NativeCall

Raku NativeCalls provide a way to interact with dynamic libraries that follow the C calling convention and are very useful for obtaining information from the operating system, such as memory usage.

In this article we will see how to get the memory usage from a Windows system.

The MEMORYSTATUSEX C++ structure

Win32 API provides the MEMORYSTATUSEX structure:

@alabamenhu
alabamenhu / Grammar proposal.md
Last active November 21, 2021 15:32
Grammar proposal

This is designed to be a working proposal. Comments/corrections/suggestions are welcome, as the first draft was written fairly hastily. I'm working on doing a rough implementation to play around with, beginning with the Binex proposal, which can be found here. It is not currently a full implementation of this proposal, but progressing rapidly.

Background

Grammars in Raku are awesome, and allow for some truly amazing text parsing.
Unfortunately, they are less than ideal for binary files, and there is no way to have them support matching objects, both of which would be very useful (image being able to pattern match on an AST!) This requires writing complex and/or error prone workaround code.

Goal

@lendulado
lendulado / UGR_PAS_teletrabajo.md
Last active May 22, 2022 09:36
Conexión a la VPN de UGR con Linux

Conexión a la VPN UGR desde Linux

Aviso

El sistema donde se ha probado lo aquñi descrito es Debian stable (10.3)

AnyConnect de Cisco

A la hora de conectarse desde Linux a la VPN de la Universidad de Granada, la única forma con "soporte" oficial es descargarse el cliente AnyConnect de Cisco. Aparte de que usar clientes privativos puede no gustarte, también puede

@lizmat
lizmat / rip-jeff-goff.md
Last active March 16, 2020 14:16
RIP Jeff Goff

Sad news. Our dear friend Jeff Goff has died in a scuba diving accident. He told me and many others about how he looked forward to learning more about scuba diving, getting more experienced in it, during the JoCo Cruise ( https://jococruise2020.sched.com/jeff_goff.1zitf4ff ). Apparantly, something went horribly wrong.

I have spent many hours with Jeff, not in the least when he broke his hip in Spain during the Perl conference in Granada, and I took it upon me to take care of several things for him. He has stayed as a guest at least twice in my home. I have learned to know Jeff as a warm, loving man, with a great sense of humor, wonderful ideas, and always helpful. Last time I saw him when he took over from me at the Perl & Raku booth at FOSDEM in Brussels.

Needless to say, but it needs to be said anyway: Liz and I will miss him terribly. The Perl & Raku communities will miss him dearly, as he was one volunteer who has done a lot of things to make things happen, to make things better.

Please do not

use v6.c;
use NativeCall;
# A proof of concept for NativeCall "varargs" calls,
my $printf = cglobal(Str,'printf',Pointer);
my @sxa := (
(Nil => :(Str --> int32)).Map, # arity 0
(Str => :(Str,Str --> int32), Int => :(Str,Int --> int32)).Map # arity 1
);

Working on GtkSheet bindings for Perl6...

@Whateverable
Whateverable / query
Created February 10, 2019 13:49
squashable6
status
@Tekki
Tekki / speedtest.p6
Created November 18, 2018 10:34
Perl 6 Speedtest
#!/usr/bin/env perl6
class Point {
has $.x;
has $.y;
}
my $total = 0;
for ^100_000_000 {
my $p = Point.new(x => 2, y => 3);
$total = $total + $p.x + $p.y;
}
@Whateverable
Whateverable / query
Created May 6, 2018 12:10
squashable6
log 2018-05-05