Skip to content

Instantly share code, notes, and snippets.

View mahmoudimus's full-sized avatar
💭
@_@

Mahmoud Rusty Abdelkader mahmoudimus

💭
@_@
View GitHub Profile
Preparation
1 - Download lua source in https://www.lua.org/download.html
2 - Unpack (use 7-zip)
3 - Create an C:\src\lua
4 - In C:\src\lua create dirs: include, lib, bin and doc
5 - Copy 'doc' from lua.tar.gz to C:\src\lua\doc
6 - Copy all files from lua.tar.gz src, to C:\src\lua\include
Creating a .lib and .dll
1 - Create a new blank project in Visual Studio
@mahmoudimus
mahmoudimus / ODbgScript.txt
Created July 13, 2024 05:43 — forked from trietptm/ODbgScript.txt
ODbgScript.txt
-------------------------------
ODbgScript english plugin by E3
site : http://odbgscript.sf.net
-------------------------------
1. About OllyScript and ODbgScript
2. Status
2.1 What's new?
3. Documentation
3.1 Language
@mahmoudimus
mahmoudimus / endianness.h
Created July 12, 2024 04:59 — forked from jtbr/endianness.h
cross-platform / cross-compiler standalone endianness conversion
/**
* @file endianness.h
* @brief Convert Endianness of shorts, longs, long longs, regardless of architecture/OS
*
* Defines (without pulling in platform-specific network include headers):
* bswap16, bswap32, bswap64, ntoh16, hton16, ntoh32 hton32, ntoh64, hton64
*
* Should support linux / macos / solaris / windows.
* Supports GCC (on any platform, including embedded), MSVC2015, and clang,
* and should support intel, solaris, and ibm compilers as well.
@mahmoudimus
mahmoudimus / main.cpp
Created June 30, 2024 05:14 — forked from CaledoniaProject/main.cpp
system resources physical memory map VM detection trick
// system resources physical memory map VM detection trick
// written by Graham Sutherland (@gsuberland) for Nettitude
// based on prior work done as part of the al-khaser project
// https://github.com/LordNoteworthy/al-khaser/
// ref: https://blog.xpnsec.com/total-meltdown-cve-2018-1038/
// ref: https://gist.github.com/xpn/3792ec34d712425a5c47caf5677de5fe
// compile:
@mahmoudimus
mahmoudimus / fyrak.md
Created May 9, 2024 00:01 — forked from myran2/fyrak.md
Mythic Fyrak macro guide - MD

Mythic Fyrak Macro/WA Setup & Troubleshooting

The Macro - You probably already have this from Smolderon prog

Liquid

/run WeakAuras.ScanEvents("LIQUID_PRIVATE_AURA_MACRO", true)

NS

/run WeakAuras.ScanEvents("NS_PA_MACRO", true)

Bonus stuff

  • Some people like including a Squeaky Bat use in their macro, so that you can see in logs when people pressed the macro.
    • The bats cost like 5-10k on the AH and are NOT consumed on use, so everyone in your raid only needs one.
  • This way, any casts of Squeaky Bat (179295) in logs would indicate a macro press.

TensorRT + Ubuntu 22.04 (on WSL2)

I revolced the following warnings related to libnvinfer.so.7 and libnvinfer_plugin.so.7

W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer.so.7'; dlerror: libnvinfer.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: xxxxx
W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libnvinfer_plugin.so.7'; dlerror: libnvinfer_plugin.so.7: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: xxxxx
W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.
@mahmoudimus
mahmoudimus / cuda-install-wsl2.sh
Created April 1, 2024 00:30 — forked from neggles/cuda-install-wsl2.sh
WSL2 ubuntu 22.04 CUDA setup
#!/usr/bin/env bash
set -euo pipefail
# please don't run this script as an actual script. it's not remotely error checked. paste command blocks in one by one
# and make sure the output looks vaguely sane.
# remove this once you've read below!
echo "You didn't actually read the instructions, did you?"; exit 1
# first up, `sudo nano /etc/wsl.conf` and add this:
[boot]
from matplotlib import pyplot as plt
import cv2
img = cv2.imread('/Users/mustafa/test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
plt.imshow(gray)
plt.title('my picture')
plt.show()
@mahmoudimus
mahmoudimus / .zshrc
Created March 24, 2024 15:43 — forked from matfax/.zshrc
Sudo authentication with Windows 1Password CLI on Ubuntu WSL
# ....
alias sudo="sudo -A"
@mahmoudimus
mahmoudimus / build-emacs.sh
Last active May 10, 2024 08:52 — forked from 3tty0n/build-emacs.sh
Build emacs on Ubuntu 22.04
#!/bin/sh
# Explore:
# https://github.com/howardabrams/hamacs/blob/main/README-Linux.org
# https://batsov.com/articles/2021/12/19/building-emacs-from-source-with-pgtk/
# https://practical.li/blog/build-emacs-from-source-on-debian-linux/
# https://github.com/konstare/emacs-gcc-pgtk/blob/master/Dockerfile
# First determine your gcc version with gcc --version,
# then modify libgccjit-12-dev below to the major version number you have!