Skip to content

Instantly share code, notes, and snippets.

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

Javier Soques jsoques

🏠
Working from home
  • Dominican Republic & Venezuela
  • X @jsoques
View GitHub Profile
@peterbartha
peterbartha / README.md
Last active November 7, 2024 14:04
Convert Rust books to EPUB (incl. The Rust Programming Language)

Convert Rust books to EPUB (incl. The Rust Programming Language)

The following steps work for all the HTML learning materials on the Learn Rust page:

  1. Click on the "Print this book" icon in the top right corner.
  2. "Cancel" print popup.
  3. Press F12.
  4. Copy, paste, and run the contents of ebookFormatPreparation.js into your browser's console.
  5. Save the modified HTML file.
@Informatic
Informatic / domain.xml
Last active August 23, 2024 08:39
How to use Windows 10 OEM license in libvirt VM (<smbios mode='host' /> does not work as Windows seems to verify UUID; apparmor/security configuration changes may be needed)
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
<!-- ... -->
<qemu:commandline>
<qemu:arg value='-acpitable'/>
<qemu:arg value='file=/some/path/slic.bin'/>
<qemu:arg value='-acpitable'/>
<qemu:arg value='file=/some/path/msdm.bin'/>
<qemu:arg value='-smbios'/>
<qemu:arg value='file=/some/path/smbios_type_0.bin'/>
<qemu:arg value='-smbios'/>
@pwin
pwin / REST-API.py
Last active October 18, 2024 13:43
A REST-ful API script using Bottle.py
#!/usr/bin/env python
"""
REST-API.py
The MIT License (MIT)
Copyright (c) 2014 P.Winstanley, C.Taylor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@denji
denji / http-benchmark.md
Last active October 13, 2024 00:43
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@xk
xk / pdfkit.rotate.js
Created March 28, 2012 11:18
doc.rotate(90) fails
var PDFDocument= require('pdfkit');
var doc= new PDFDocument();
doc.save();
doc.x= doc.pages[0].width/2;
doc.y= doc.pages[0].height/2;
doc.fontSize(30);
doc.rotate(89.9, {origin: [doc.x, doc.y]});
doc.text('OK, GOOD');