java -jar gp.jar -d \
-a 00a4040010C238E449F725B1510EAA699550CABA16 \
-a 00f00000 \
-a c0d6030510404142434445464748494a4b4c4d4e4f \
-a c0d6032110404142434445464748494a4b4c4d4e4f \
-a c0d6033D10404142434445464748494a4b4c4d4e4f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Joystick.h> | |
// Microseconds | |
#define LATCH_TIME 12 | |
#define MEASURE_DELAY 6 | |
// Leonardo Pins | |
#define CLOCK 2 | |
#define LATCH 3 | |
#define P1_DATA 4 |
docker volume create bettercap
Only run caplets.update the first time as every time the entire system caplets folder is replaced with the downloaded contents from github, overwriting your changes, such as the credentials, with default values. You can either backup your changes and restore them later in the system folder, or simply copy the changed caplet files in bettercap’s working directory, in which case they’ll be loaded before the ones installed system wide. https://www.bettercap.org/usage/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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'/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Based on https://github.com/jaromir-sukuba/efm8prog/ | |
Use his SW to program EFM8 using arduino. | |
This needs some work though (but it works) | |
**/ | |
#define C2D 2 | |
#define C2CK 3 | |
#define LED 13 | |
#define INBUSY 0x02 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/edsrzf/mmap-go" | |
"reflect" | |
"unsafe" | |
) | |
// Addr returns the address in memory of a byte slice, as a uintptr | |
func Addr(b []byte) uintptr { |
NewerOlder