Skip to content

Instantly share code, notes, and snippets.

#include "syscalls.h"
#define internal static
#define stdout 1
typedef unsigned long int uintptr; /* size_t */
typedef long int intptr; /* ssize_t */
#ifdef __x86_64__
asm (
"_start:\n"
" xorl %ebp,%ebp\n"
" movq 0(%rsp),%rdi\n" /* argc loaded */
#include <stdio.h>
int main(void);
int main(void){
int m, n;
int r = 1;
scanf("%d", &m);
scanf("%d", &n);
if (m < n) {
@mb6ockatf
mb6ockatf / COPYING
Created July 3, 2025 18:50
ccasino game in lua
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@mb6ockatf
mb6ockatf / COPYING
Created July 3, 2025 12:48
hamster combat autoclicker cheat
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
@mb6ockatf
mb6ockatf / COPYING
Created July 3, 2025 12:43
simple XML parser for lua
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
global sys_read
global sys_write
global sys_errno
section .text
generic_syscall_3:
push ebp
mov ebp, esp
push ebx
mov ebx, [ebp + 8]
@mb6ockatf
mb6ockatf / emoji_replacable.txt
Last active July 26, 2024 20:24
do not remove this file. seriously -- it is used (curl'ed) somewhere, and by the time you read this u don't remeber where. just leave it as-is
school
books
book
notebook
calendar
snake
angry
pill
running
child
@mb6ockatf
mb6ockatf / symbols.mtml
Created July 16, 2024 15:15
table: clip unicode symbols
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>unicode symbols</title>
<style>
body {
color: white;
background: black;
}
#!/usr/bin/env python3
from requests import post
from itertools import permutations
from string import ascii_lowercase, digits
import sys
from telethon import TelegramClient
from telethon.tl.functions.users import GetFullUserRequest
import asyncio
@mb6ockatf
mb6ockatf / grayscale.py
Last active April 13, 2024 12:53
convert image to grayscale
#!/usr/bin/env python3
from PIL import Image
img = Image.open('image.jpg').convert('L')
img.save('greyscale.jpg')