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
@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');
@denji
denji / http-benchmark.md
Last active August 13, 2024 14:42
HTTP(S) Benchmark Tools / Toolkit for testing/debugging HTTP(S) and restAPI (RESTful)
@Informatic
Informatic / domain.xml
Last active August 9, 2024 12:52
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'/>
@peterbartha
peterbartha / README.md
Last active July 11, 2024 08:21
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.