Skip to content

Instantly share code, notes, and snippets.

View snickerbockers's full-sized avatar
🐎
Beating the shit out of this dead horse.

snickerbockers

🐎
Beating the shit out of this dead horse.
View GitHub Profile
(gdb) hbreak *0x0c17218a
Hardware assisted breakpoint 1 at 0xc17218a
(gdb) c
Continuing.
Breakpoint 1, 0x0c17218a in ?? ()
1: x/i $pc
=> 0xc17218a: mov.l @r10,r8
(gdb) si
p0x0c17218c in ?? ()
1: x/i $pc
@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active December 5, 2023 07:52
Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Step 1

Install required dependencies

$ pacman -S avahi pulseaudio-zeroconf

Step 2

@mlfarrell
mlfarrell / membuf.cpp
Created May 28, 2016 01:11
C++ streams from memory buffer
struct membuf : std::streambuf
{
membuf(char *begin, char *end) : begin(begin), end(end)
{
this->setg(begin, begin, end);
}
virtual pos_type seekoff(off_type off, std::ios_base::seekdir dir, std::ios_base::openmode which = std::ios_base::in) override
{
if(dir == std::ios_base::cur)
@kkszysiu
kkszysiu / gist:247c42dc9fd1d34a70a1
Last active June 24, 2021 03:52
Torchlight Linux
If you want to play on HumbleBundle edition of Torchlight you need old libSDL2 library.
Someone forgotten about that.
With latests libSDL2 it won't work. You will have issues with mouse pointer.
Cursor will have black outline. You won't be able to click on anything etc.
So I prepared modified libSDL2 lib which will able you to play this game with no issues.
https://drive.google.com/file/d/0B1WBC6JhUyLKZDRrTkxMVzA3S28/edit?usp=sharing
That's those libSDL libs. You need to copy it to lib64 dir where you've installed Torchlight, in my case it was /home/kkszysiu/.games/Torchlight/lib64/