Skip to content

Instantly share code, notes, and snippets.

View ohmypxl's full-sized avatar
💀

sui ohmypxl

💀
View GitHub Profile
@ohmypxl
ohmypxl / macronym.iso
Last active August 3, 2022 16:16
Macronym v2
#include <a_samp>
// I want to see the world burn MORE!!!!
// Special thanks to pkfln1 for original source code
// Variable Types
#define let%0 const%0
#define var%0 new%0
#define local%0 static%0
@ohmypxl
ohmypxl / arch-sampctl-autoinstall.sh
Last active September 2, 2022 15:27
sampctl runner test build thingy
#!/usr/bin/sh
# Build sampctl as opm
if ! type "opm" > /dev/null; then
sudo pacman -Syu lib32-glibc lib32-gcc-libs && git clone https://github.com/southclaws/sampctl.git -b dev && cd sampctl && make install && sudo cp ~/go/bin/sampctl /usr/bin/opm && rm -rf ~/go
fi
# Check & make test folder for opm
opm --version && mkdir ~/.sampctl-test && cd ~/.sampctl-test
ARCH=$(uname -m)
PATTERN="browser_download_url.*386\.deb"
if [ $ARCH = "x86_64" ]; then
PATTERN="browser_download_url.*amd64\.deb"
fi
curl -s https://api.github.com/repos/Southclaws/sampctl/releases/latest |
grep $PATTERN |