Skip to content

Instantly share code, notes, and snippets.

View racerxdl's full-sized avatar
🔒
Invincible for those who don't have an screwdriver.

Lucas Teske racerxdl

🔒
Invincible for those who don't have an screwdriver.
View GitHub Profile
@racerxdl
racerxdl / domain.xml
Created April 8, 2021 17:53 — forked from Informatic/domain.xml
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'/>
@racerxdl
racerxdl / end-gcode.gcode
Created March 18, 2021 21:05
Cura GCode start / end for BLTouch + Ender 3 Pro
G91 ;Relative positioning
G1 E-2 F2700 ;Retract a bit
G1 E-2 Z0.2 F2400 ;Retract and raise Z
G1 X5 Y5 F3000 ;Wipe out
G1 Z10 ;Raise Z more
G90 ;Absolute positionning
G1 X0 Y{machine_depth} ;Present print
M106 S0 ;Turn-off fan
M104 S0 ;Turn-off hotend
@racerxdl
racerxdl / SatHelperApp.cfg
Created March 12, 2021 20:49
RTLSDR E4000 config for SatHelperApp
Title = "SatHelperApp"
[Base]
SymbolRate = 927000
RRCAlpha = 0.3
Mode = "hrit"
Decimation = 1
AGCEnabled = true
DeviceType = "rtlsdr"
SendConstellation = true
[
{
"name": "160m",
"lower_bound": 1810000,
"upper_bound": 2000000,
"frequencies": {
"bpsk31": 1838000,
"ft8": 1840000,
"wspr": 1836600,
"jt65": 1838000,
@racerxdl
racerxdl / Configuration.h
Last active March 16, 2021 00:19
Ender 3 Pro - SKR v1.4 Pro with BLTouch - Marlin 2.0.0
/**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@racerxdl
racerxdl / vcd2latex.py
Last active March 4, 2024 20:59
Very bad converter from ValueChangeDump (VCD) to Tikz Timing on Latex.
#!/usr/bin/env python3
import vcdvcd, math
from vcdvcd import VCDVCD
vcdfile = "digital_port_tb.vcd"
vcd = VCDVCD(vcdfile, only_sigs=True)
all_signals = vcd.signals
@racerxdl
racerxdl / create-hotspot.md
Created December 4, 2020 14:11 — forked from narate/create-hotspot.md
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"
@racerxdl
racerxdl / README.md
Last active November 6, 2020 14:17
Lista de peças para 11/11 Aliexpress (Voltado para upgrade impressora 3D)
@racerxdl
racerxdl / MBI5153.ino
Created October 31, 2020 04:35
MBI5153 / LYD6168 Panel Controller with ESP32
// Based on https://github.com/SebiTimeWaster/ICN2053_ESP32_LedWall
#define PIN_CLK 2
#define PIN_LE 27
#define PIN_OE 5
#define PIN_A 21
#define PIN_B 22
#define PIN_C 23
#define PIN_D 25
#define PIN_E 26
@racerxdl
racerxdl / lyd6188.bin
Created October 24, 2020 03:01
Stuff from LedshowTV. Trying to figure out how to make LYD6168 / LYD6188 panels to work.
00000000: 8044 5854 405d 4064 a48f 145b 0845 6fa0 .DXT@]@d...[.Eo.
00000010: 2441 1f2a 0807 00c1 0005 000c 0010 0040 $A.*...........@
00000020: 10b8 f511 0000 0700 157e 0b10 05b0 02ec .........~......
00000030: 0187 00d1 157e 0b10 05b0 02ec 0187 00d1 .....~..........
00000040: 157e 0b10 05b0 02ec 0187 00d1 157e 0b10 .~...........~..
00000050: 05b0 02ec 0187 00d1 0000 0000 0000 0000 ................
00000060: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000070: 0000 0000 0000 0000 0000 0000 0000 0000 ................
00000080: 0000 0000 0000 0000 2681 2b8d 220c 04e9 ........&.+."...
00000090: 03e5 6214 0937 2a54 03c5 6234 0907 2a5e ..b..7*T..b4..*^