Skip to content

Instantly share code, notes, and snippets.

View desiderantes's full-sized avatar
🥟
Empanadas

Mario Daniel Ruiz Saavedra desiderantes

🥟
Empanadas
View GitHub Profile
@desiderantes
desiderantes / proof.md
Created December 21, 2023 20:48
Keyoxide Proof

aspe:keyoxide.org:SURC5NQTDNFJNEMSHG4RT7IRAE

@desiderantes
desiderantes / redline13-openapi.yaml
Last active August 11, 2023 16:29
RedLine13 OpenAPI
openapi: 3.0.1
info:
title: RedLine13 API
description: Cloud Load Testing
termsOfService: 'https://www.redline13.com/ApiDoc'
license:
name: Contract
url: 'https://www.redline13.com/blog/about-redline13/contract/'
contact:
name: 'RedLine13, LLC'
val result = StringBuffer()
val HEX_CHARS = "0123456789ABCDEF".toCharArray()
java.io.File("YOUR PATH HERE").forEachBlock { buffer,read->
buffer.forEach {
val octet = it.toInt()
val firstIndex = (octet and 0xF0).ushr(4)
val secondIndex = octet and 0x0F
result.append(HEX_CHARS[firstIndex])
result.append(HEX_CHARS[secondIndex])
@desiderantes
desiderantes / ArrayConverter.java
Created April 3, 2018 15:59
Array Converter from existing Converter
package com.github.desiderantes.jooq;
import org.jooq.Converter;
import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;
public class ArrayConverter<T,U> implements Converter<T[], U[]> {
@desiderantes
desiderantes / libchromaprint.vapi
Created December 26, 2017 18:03
libchromaprint vapi
/*
* The MIT License
*
* Copyright (C) 2017 - Mario Daniel Ruiz Saavedra
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@desiderantes
desiderantes / custom-emit-notify.vala
Created August 13, 2017 05:08
Emit custom notify in Vala
using GLib;
public class TestClass : GLib.Object {
public string test1 {get;set;default = "test1";}
//Ths one won't emit on assignment
[CCode (notify = false)]
public string test2 {get;set;default = "test2";}
public static void main (string[] args) {
var test = new TestClass ();
@desiderantes
desiderantes / libowl-av.vapi
Created June 8, 2016 17:00
libowl-av.vapi
/* libowl-av.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Owl", lower_case_cprefix = "owl_")]
namespace Owl {
[CCode (cprefix = "OWL_TAG_READER_ERROR_", has_type_id = "0", cheader_filename = "libowl-av/owl-tag-reader.h")]
public enum TagReaderError {
UNKNOWN_TYPE
}
[CCode (cheader_filename = "libowl-av/owl-audio-player.h")]
public class AudioPlayer : GLib.Object {
@desiderantes
desiderantes / keybase.md
Last active November 30, 2016 21:34
Keybase proof

Keybase proof

I hereby claim:

  • I am desiderantes on github.
  • I am desiderantes (https://keybase.io/desiderantes) on keybase.
  • I have a public key whose fingerprint is BB2D 5E30 711B BB0E B5E8 397B 586D AF81 4665 1A82

To claim this, I am signing this object:

@desiderantes
desiderantes / gist:e60cfe0bc83f4ddd5f43
Created July 6, 2015 19:39
Clone HackedTeam repos
curl -s https://api.github.com/users/hackedteam/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}'