Skip to content

Instantly share code, notes, and snippets.

View tonyb486's full-sized avatar

Anthony Biondo tonyb486

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>clock</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<script type="text/javascript">
import tkinter
from PIL import ImageTk, Image
window = tkinter.Tk()
window.title("Image")
window.configure(background='grey')
window.attributes("-fullscreen", True)
screen_width = window.winfo_screenwidth()
#!/usr/bin/bash
cat /boot/intel-ucode.img /boot/initramfs-linux.img > /boot/initrd.img
objcopy \
--add-section .osrel=/etc/os-release --change-section-vma .osrel=0x20000 \
--add-section .cmdline="/boot/cmdline.txt" --change-section-vma .cmdline=0x30000 \
--add-section .linux="/boot/vmlinuz-linux" --change-section-vma .linux=0x40000 \
--add-section .initrd="/boot/initrd.img" --change-section-vma .initrd=0x3000000 \
/usr/lib/systemd/boot/efi/linuxx64.efi.stub /boot/EFI/linux-combined.efi
@tonyb486
tonyb486 / fizzbuzz.c
Created April 26, 2019 02:30
linux x86 jit fizzbuzz without stdlib
//linux x86 jit fizzbuzz, no stdlib needed
//gcc -fno-stack-protector -z execstack -m32 -nostdlib fizzbuzz.c -o fizzbuzz
int _start(void) {
int j, x, i = 0;
unsigned char f[5000];
unsigned char *p = f;
unsigned char *m[] = {"\x6a\xb\xfe\xc\x24\x68\x30\x30\x30\x31\x6a"
"\x4\x58\x6a\x1\x5b\x89\xe1\x6a\x5\x5a\xcd\x80",
"\x6a\xb\xfe\xc\x24\x68\x46\x69\x7a\x7a\x6a\x4"
#!/usr/bin/env python3
import sys, csv, sqlite3
csv.field_size_limit(sys.maxsize)
conn = sqlite3.connect("patent.db")
cur = conn.cursor()
cur.execute('''CREATE TABLE patent
#!/bin/bash
FILEA=$(mktemp).jpg
FILEB=$(mktemp).jpg
FRAMES=$(mktemp -d)
convert $1 $FILEA
for i in `seq -f "%03g" 1 100`

Keybase proof

I hereby claim:

  • I am tonyb486 on github.
  • I am tonyb486 (https://keybase.io/tonyb486) on keybase.
  • I have a public key ASBWtQkv1YBdvUhCiRgBaMfttUZgH2v738A1ULoi5_t8zQo

To claim this, I am signing this object: