Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SQLite;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using Discord;

Keybase proof

I hereby claim:

  • I am omgasm on github.
  • I am jiel (https://keybase.io/jiel) on keybase.
  • I have a public key ASAZf_n0Rd9pbvt12jRf8O0GHFBc-Wu3ArJlbAzqE_KroQo

To claim this, I am signing this object:

@OMGasm
OMGasm / ihatemyself.cs
Created August 13, 2018 15:44
bullshit image converter to 0bpp because i was bored
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.IO;
namespace whythefuckwouldyouusethis
{
public class BSImage
@OMGasm
OMGasm / wow! it's worse code!.rs
Last active August 24, 2023 17:49
intentionally bad code to work through some of the progression going from hardcoded everything to better design patterns i guess, v wip but it works! (now with enums!)
use anyhow::{anyhow, Result};
struct Service {
op: Box<dyn Op>,
}
trait Op {
fn exec(&self, b: i32) -> i32;
}
@OMGasm
OMGasm / solve.py
Last active January 28, 2024 16:12
Real World CTF - LLM sanitizer
import re
from pwn import log, remote
from pow.pow import solve_challenge # or wherever it is
def main():
llm = remote('47.89.192.246', 1337)
welcome = llm.recvuntil(b'Solution? ').decode('utf-8')
match: re.Match = re.search(r'solve (s\..+)$', welcome, re.MULTILINE)
@OMGasm
OMGasm / pp.rs
Last active January 29, 2024 19:20
use std::{env, io, path::PathBuf};
use walkdir::WalkDir;
fn main() -> io::Result<()> {
let folder = env::args().nth(1).expect("provide song folder");
let (mut charts, mut songs, mut groups, mut fsentries) = (0, 0, 0, 0);
let (mut song_p, mut group_p): (Option<PathBuf>, Option<PathBuf>) = (None, None);
let entries = WalkDir::new(folder)
.min_depth(3)
.max_depth(3)