Skip to content

Instantly share code, notes, and snippets.

View dmgolembiowski's full-sized avatar

David M. Golembiowski dmgolembiowski

View GitHub Profile
@dmgolembiowski
dmgolembiowski / wordle.hs
Created September 30, 2025 03:21 — forked from chezbgone/wordle.hs
wordle implementation in haskell
{-# LANGUAGE OverloadedStrings #-}
module Main where
import Data.Map.Strict (Map)
import qualified Data.Map.Strict as M
import Control.Monad
import Data.Coerce
import Data.List
import Data.Maybe
@dmgolembiowski
dmgolembiowski / index.slim
Created September 30, 2025 03:21 — forked from harunpehlivan/index.slim
XState Wordle
.game
header
h1
a href="https://www.powerlanguage.co.uk/wordle/" target="_blank" WORDLE
span  
a href="https://xstate.js.org" target="_blank" XSTATE
section.input
- for square in (1..(5*6))
.stateful id="square-#{square}"
section.restart

ELF Format Cheatsheet

Introduction

Executable and Linkable Format (ELF), is the default binary format on Linux-based systems.

ELF

Compilation

@dmgolembiowski
dmgolembiowski / idx_blob.py
Created August 9, 2025 00:26 — forked from iwalton3/idx_blob.py
Blob Indexer/Reassembler
#!/usr/bin/env python3
import os
import os.path
import sys
import json
import math
print("Collecting files...")
files = {}
@dmgolembiowski
dmgolembiowski / AdbCommands
Created July 14, 2025 05:20 — forked from Pulimet/AdbCommands
Adb useful commands list
Hi All!
I've recently launched a tool that wraps many of the commands here with a user interface. This desktop application is currently available for macOS. There's a roadmap outlining planned features for the near future.
Feel free to request any features you'd like to see, and I'll prioritize them accordingly.
One of the most important aspects of this application is that every command executed behind the scenes is displayed in a special log section. This allows you to see exactly what’s happening and learn from it.
Here's the link to the repository: https://github.com/Pulimet/ADBugger
App Description:
ADBugger is a desktop tool designed for debugging and QA of Android devices and emulators. It simplifies testing, debugging, and performance analysis by offering device management, automated testing, log analysis, and remote control capabilities. This ensures smooth app performance across various setups.
import numpy as np
import matplotlib.pyplot as plt
with open('samples.bin', 'rb') as f:
raw_data = np.fromfile(f, dtype=np.uint8)
iq_data = raw_data.astype(np.float32) - 127.5
iq_data /= 127.5
i_data = iq_data[0::2]

Setup tor proxy on Arch Linux

Copied from this article.

Installation

  1. Install tor

         $ sudo pacman -S tor
         $ ## nyx provides a terminal status monitor for bandwidth usage, connection details and more.

$ sudo pacman -S nyx

@dmgolembiowski
dmgolembiowski / VR_roadmap.md
Created October 21, 2024 19:50 — forked from tin-z/VR_roadmap.md
Becoming a Vulnerability Researcher roadmap: my personal experience
@dmgolembiowski
dmgolembiowski / hax.c
Created October 21, 2024 19:19 — forked from apsun/hax.c
Hook main() using LD_PRELOAD
/*
* Hook main() using LD_PRELOAD, because why not?
* Obviously, this code is not portable. Use at your own risk.
*
* Compile using 'gcc hax.c -o hax.so -fPIC -shared -ldl'
* Then run your program as 'LD_PRELOAD=$PWD/hax.so ./a.out'
*/
#define _GNU_SOURCE
#include <stdio.h>
To From Method
string of code literal code std::stringify!{}
string of code syntax tree !quote(#syntax_tree).to_string()
string of code TokenStream .to_string()
string of syntax literal code format!("{:?}",parse2::<SynType>(quote! {...}).expect(...)
string of syntax syntax tree format!("{:?}"),…), format!("{:#?}"),…)
string of tokens literal code format!("{:?}",quote! {...})
string of tokens TokenStream format!("{:?}"),…), format!("{:#?}"),…)
syn::Error TokenStream .to_compile_error() [see Rule #7]
syntax tree literal code parse_quote!(…)