Skip to content

Instantly share code, notes, and snippets.

View overwatcheddude's full-sized avatar
🩸
Blood rune

Overwatch overwatcheddude

🩸
Blood rune
  • Extreme
  • Unknown
View GitHub Profile
@overwatcheddude
overwatcheddude / scripton.sh
Created June 21, 2024 13:11
Credits goes to: qwerty12356-wart
#!/bin/bash
function CheckHex {
#file path, Ghidra offset, Hex to check
commandoutput="$(od $1 --skip-bytes=$(($2-0x100000)) --read-bytes=$((${#3} / 2)) --endian=little -t x1 -An file | sed 's/ //g')"
if [ "$commandoutput" = "$3" ]; then
echo "1"
else
echo "0"
fi
@overwatcheddude
overwatcheddude / downloadSteamTransactionHistory.js
Last active June 2, 2024 13:44
This JavaScript code allows you to download Steam purchase history table as a CSV file.
function downloadTableAsCSV(tableClass, filename) {
// Get the table element using class name
var table = document.getElementsByClassName(tableClass)[0];
// Get all rows of the table
var rows = table.getElementsByTagName("tr");
// Create the CSV string
var csvContent = "";
for (var i = 0; i < rows.length; i++) {
@overwatcheddude
overwatcheddude / check_tkinter_availability.py
Last active March 14, 2024 06:36
A very simple Python script that checks whether tkinter is available or not.
try:
import tkinter as tk
print("tkinter is available")
except ImportError:
print("tkinter is not available")
@overwatcheddude
overwatcheddude / email.cs
Last active March 14, 2024 06:33
Sending an email in C#
using MimeKit;
using MailKit.Net.Smtp;
namespace TestClient
{
class Program
{
public static void Main(string[] args)
{
var message = new MimeMessage();