Skip to content

Instantly share code, notes, and snippets.

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 / create-hotspot.md
Created Dec 4, 2020 — forked from narate/create-hotspot.md
Create Wi-Fi Hotspot on Linux using nmcli
View create-hotspot.md

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 Nov 6, 2020
Lista de peças para 11/11 Aliexpress (Voltado para upgrade impressora 3D)
@racerxdl
racerxdl / MBI5153.ino
Created Oct 31, 2020
MBI5153 / LYD6168 Panel Controller with ESP32
View MBI5153.ino
// 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 Oct 24, 2020
Stuff from LedshowTV. Trying to figure out how to make LYD6168 / LYD6188 panels to work.
View lyd6188.bin
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..*^
View esp32-spidump.ino
#include <SPI.h>
#include "FS.h"
#include "SPIFFS.h"
#define CS 5
#define FORMAT false
SPIClass * vspi = NULL;
SPISettings settings(20000000, MSBFIRST, SPI_MODE0);
//SPISettings settings(1000000, MSBFIRST, SPI_MODE0);
@racerxdl
racerxdl / assembly-live-0.s
Created Jul 29, 2020
Assembly Live 0 - "CODIGO"
View assembly-live-0.s
; A B C D = 8 bits
; IP = Instruction Pointer = 16 bits = 65535
; SP = Stack Pointer = 16 bits = 65535
; | AX |
; | A |
; AX = 0000 0000 0000 0000
; AX, BX, CX, DX = 16 bits
; | EAX |
; | AX |
; | Ah | Al |
View LFE5U-25F.cfg
jtag newtap ecp5 tap -irlen 8 -expected-id 0x41111043
@racerxdl
racerxdl / esp32-spiflash.ino
Created May 31, 2020
ESP32 Arduino VSPI SPI Flash Reader / Writer
View esp32-spiflash.ino
#include <SPI.h>
#include "FS.h"
#include "SPIFFS.h"
#define CS 5
#define FORMAT false
SPIClass * vspi = NULL;
SPISettings settings(10000000, MSBFIRST, SPI_MODE0);
//SPISettings settings(1000000, MSBFIRST, SPI_MODE0);
@racerxdl
racerxdl / block.sh
Created Apr 27, 2020
Block DHCP in Bridge
View block.sh
ebtables -I INPUT -i eno2 -p ip --ip-protocol udp --ip-source-port 67 -j DROP
ebtables -I INPUT -i eno2 -p ip --ip-protocol udp --ip-source-port 68 -j DROP
ebtables -I INPUT -i eno2 -p ip --ip-protocol udp --ip-destination-port 67 -j DROP
ebtables -I INPUT -i eno2 -p ip --ip-protocol udp --ip-destination-port 68 -j DROP
ebtables -I INPUT 0 -i eno2 -p IPv4 --ip-protocol udp --ip-destination-port 67:68 -j DROP
ebtables -I OUTPUT 0 -o eno2 -p IPv4 --ip-protocol udp --ip-destination-port 67:68 -j DROP
ebtables -I FORWARD 0 -o eno2 -p IPv4 --ip-protocol udp --ip-destination-port 67:68 -j DROP
You can’t perform that action at this time.