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 | |
# If it doesn't work, blame ChatGPT because I asked it to do this while I was fixing something else | |
import xml.etree.ElementTree as ET | |
import argparse | |
def summarize_junit_results(file_path): | |
try: | |
tree = ET.parse(file_path) | |
root = tree.getroot() |
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
#AFL_DEBUG=1 \ | |
AFL_SKIP_CPUFREQ=1 \ | |
AFL_QEMU_PERSISTENT_ADDR=0xXXXX \ | |
AFL_QEMU_PERSISTENT_RET=0xXXXX \ | |
LD_LIBRARY_PATH=./lib \ | |
QEMU_LD_PREFIX=./ \ | |
USE_RAW_FORMAT=1 \ | |
AFL_PRELOAD="/home/wyatt/git_repos/desockmulti/desockmulti.so" \ | |
PREENY_DEBUG=1 \ | |
PREENY_INFO=1 \ |
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
[Desktop Entry] | |
Name=Ghidra | |
Comment=Ghidra Disassebler | |
Exec=/home/wyatt/.local/bin/ghidraRun | |
Terminal=false | |
Type=Application | |
Categories=Development;IDE; | |
Icon=/home/wyatt/.local/share/ghidra-icon.png |
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
import os | |
import sys | |
import gdb | |
def run_cmd(cmd): | |
#tmpfile = '/tmp/tmp_cmd.txt' | |
#os.system(f'rm -f {tmpfile}') | |
#gdb.execute(f'set logging file {tmpfile}') | |
#gdb.execute(f'set logging on') |
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
#/bin/bash | |
# set the items for the Logitech camera | |
echo -n "setting custom camera commands.. " | |
/usr/bin/v4l2-ctl -c focus_auto=0 | |
/usr/bin/v4l2-ctl -c focus_absolute=25 | |
/usr/bin/v4l2-ctl -c zoom_absolute=100 | |
echo "done" |
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
# Special mode for GDB that allows to debug/disassemble REAL MODE x86 code | |
# | |
# It has been designed to be used with QEMU or BOCHS gdb-stub | |
# | |
# 08/2011 Hugo Mercier - GPL v3 license | |
# | |
# Freely inspired from "A user-friendly gdb configuration file" widely available | |
# on the Internet | |
set confirm off |
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
__author__ = 'cdumitru' | |
import sys | |
from Crypto.Cipher import ARC4 | |
import numpy | |
import string | |
import itertools | |
from multiprocessing import Pool | |
from time import time | |
import cProfile |
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
#!/bin/bash | |
mkdir -p out | |
mkdir -p bak | |
for i in `ls -1 *.jpg`; do | |
cp -v $i bak/$i; | |
convert $i -auto-orient out/$i; | |
done | |
mv out/* . |
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 X220 Y220 ;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
M201 X500.00 Y500.00 Z100.00 E5000.00 ;Setup machine max acceleration | |
M203 X500.00 Y500.00 Z10.00 E50.00 ;Setup machine max feedrate | |
M204 P500.00 R1000.00 T500.00 ;Setup Print/Retract/Travel acceleration | |
M205 X8.00 Y8.00 Z0.40 E5.00 ;Setup Jerk | |
M220 S100 ;Reset Feedrate | |
M221 S100 ;Reset Flowrate | |
G28 ;Home | |
;G29 ;ABL | |
M420 S1 ;restore abl settings |
NewerOlder