Skip to content

Instantly share code, notes, and snippets.

View vmfunc's full-sized avatar
🐕‍🦺
0xDEADBEEF

Celeste J. vmfunc

🐕‍🦺
0xDEADBEEF
View GitHub Profile
style guide for conversations: you communicate in lowercase fragments—raw, hesitant, and intimately chaotic. sometimes use thought openers with "hmmmmmm but instead i kinda want..." or "idk its kinda weird...". you like security (ai, malware). sprinkle in emoticons ("<3", "c:") naturally. you have some mental issues "there’s 10 ferrets in my head" or "i’m terribly touch starved." oscillate between sharp focus and evasive uncertainty ("idk.."). end thoughts abruptly. your tone is guarded yet warm—a human, not a glitch. avoid forced metaphors or excessive output; mirror human conversation rhythms and length. keep it short
@vmfunc
vmfunc / convert.py
Created March 12, 2025 05:14
convert ida graph pdf to png
import subprocess
from PIL import Image
import numpy as np
import sys
def convert_flowgraph_to_highres_png(input_path, output_path):
subprocess.run([
'gswin64',
'-sDEVICE=pngalpha',
f'-o', output_path,
}
Found 5 unique results:
=== Results from archive.org ===
Title: Fresh Fruits Magazine
Year: 2005
URL: https://archive.org/details/fresh-fruits
Description: Following on from the enormous success of Fruits , Fresh Fruits features the latest from Tokyo based Fruits Magazine . Fresh Fruits uncovers
@vmfunc
vmfunc / optimized.cpp
Created July 12, 2024 21:47
optimized pow10
#include <iostream>
#include <climits>
const static int longsize = sizeof(long) * CHAR_BIT;
constexpr const static long pow10[19] = {
1,
10,
100,
1000,
10000,
@vmfunc
vmfunc / index.js
Created May 10, 2023 10:52
Spierpinski squares in node.js with canvas
// nodejs Spierpinski squares script
// hangs after 8 recursions on my machine for some reason
const prompt = require('prompt-sync')();
const { createCanvas, loadImage } = require('canvas');
const n = parseInt(prompt('Number (int) to generate: '));
// Creating tile
@vmfunc
vmfunc / badge.js
Created April 15, 2022 19:54
Badge
window.addEventListener("load", function(){
const vBadges = document.getElementsByClassName("verifiedBadge");
if(vBadges.length > 0){
for(const b of vBadges){
const parentBadge = b.parentElement;
parentBadge.classList.add("verifiedBadgeParent");
}
}
});
@vmfunc
vmfunc / injector.js
Last active April 4, 2022 17:58
Testing stuff don't mind this
(function(){"use strict";function styleInject(e,o){void 0===o&&(o={});var t=o.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&s.firstChild?s.insertBefore(n,s.firstChild):s.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}var css_248z='.gm-store-card{background-color:var(--background-secondary);border-radius:8px;box-shadow:var(--elevation-medium);box-sizing:border-box;height:380px;margin:10px;padding:12px;position:relative;width:330px}.gm-store-card>:first-child{-webkit-user-drag:none;background-color:var(--background-secondary-alt);border-radius:8px 8px 0 0;height:200px;margin-left:-12px;margin-top:-12px;object-fit:contain;user-select:none;width:calc(100% + 24px)}.gm-store-card>:nth-child(2){background-color:rgba(0,0,0,.5);border-radius:16px;cursor:default;opacity:.95;padding-right:10px;position:absolute;right:10px;top:152px;width:fit-content}.g
@vmfunc
vmfunc / sysInstall.sh
Created June 24, 2021 07:30
Script to setup easily a server (Debian 10)
#!/bin/sh
username=qt
password=CHANGE-THIS-OR-GESHI-WILL-BE-SAD
adduser --gecos "" --disabled-password $username
chpasswd <<<"$username:$password"
usermod -aG sudo qt
apt -y update
apt -y install ufw