Skip to content

Instantly share code, notes, and snippets.

View nshbrown's full-sized avatar

Nathaniel Brown nshbrown

View GitHub Profile
@nshbrown
nshbrown / divide_me-v5-text_png.sh
Created March 13, 2023 21:23
Imagemagick Translation - plain/text : image/png
#!/bin/bash
# (c) 2023 Nathaniel (000000@purefame.com)
magick -font Sans-Serif TEXT: ~/bin/active/7c1b3fbf51d55ce66c7c6f313d9ff5035cb5a3f5fa2e90c7a1d74be4be25d092a1ae99726b2cc50f29dead58e64ab6cde927b66bbe753cf48ad68d239c9e568c-osprey_app-divide_me-v5.py ~/Pictures/000000/7c1b3fbf51d55ce66c7c6f313d9ff5035cb5a3f5fa2e90c7a1d74be4be25d092a1ae99726b2cc50f29dead58e64ab6cde927b66bbe753cf48ad68d239c9e568c-osprey_app-divide_me-v5.py.png
@nshbrown
nshbrown / GSB-38s.fishy
Created March 4, 2023 19:43
Fresh Perspective on How Contract Addresses of NFT's with ISO-like Specifications are Generated
KHN0ZGluKT0gM2FjOTQxYmJjZmNkNWY4MGJjNjE4MGU1YmQ3NDE5MWUxNzdmMTcwNjIzOTRhOThlZWM5ZDFmZjZmM2Q0NTQxMmY3ZjE2OTNlYzFjY2E5NDFmNTZjZjc3YjRkMjBhOTgwYTgzNGFlMWUzN2UyNDUxZjBmNjQ5ZDdhZTQwNmFjZTMK
@nshbrown
nshbrown / [1] Request: CONNECT - help.apple.com -
Created March 4, 2023 01:51
1 Requests from help.apple.com
CONNECT help.apple.com:443 HTTP/1.1
Host: help.apple.com
Proxy-Connection: keep-alive
Connection: keep-alive
@nshbrown
nshbrown / 202302241227-crc8+foobar.sh
Created February 24, 2023 20:27
Ability to CRC8 bytes of a "Foobar" string - 202302241227
#!/bin/bash
# (c) 2023 Nathaniel (000000@purefame.com)
python3.8 -m pip install crccheck
python3.8 -c 'from crccheck.crc import Crc8; print("0x" + Crc8.calchex( b"Foobar" ) ) '
@nshbrown
nshbrown / crc16.c
Created February 10, 2023 18:17 — forked from jlamothe/crc16.c
CRC16 checksum calculator
#include <stdint.h>
#define CRC16 0x8005
uint16_t gen_crc16(const uint8_t *data, uint16_t size)
{
uint16_t out = 0;
int bits_read = 0, bit_flag;
/* Sanity check: */
@nshbrown
nshbrown / a100d-address_account.std
Created January 5, 2023 20:14
Ability to exchange data of unique proportions efficiently by goal like ah sport
# Inspired by the original MetaWallet w/ custom NFT's
# MIT License (Research 'n Development)
# (c) [2023AD] nat@purefame.com
SHA3-256/line
12char/line (.Ru->OIC.navy.mod.uk/£)
ROM ('Read Only Memory')
Circut and/or microchip ready on Grid
# Strings of numbers have high cache
@nshbrown
nshbrown / system.html
Last active September 8, 2021 16:06
templates/pages/system.html
{% extends 'theme.html' %}
{% block content %}
<div class="system">
<h5 class="text-info">System Details</h5>
<p>Total Drive Size: {{ total_display }} GiB</p>
<p>Used Disk: {{ used_display }} GiB</p>
<p>Free Space: {{ free_display }} GiB</p>
<p>{{df_return|linebreaksbr}}</p>
@nshbrown
nshbrown / urls.py
Created September 8, 2021 15:52
inlovelikecom/urls.py
from pages import views as page_views
from django.urls import path
urlpatterns = [
...
path('system.html', page_views.system, name="system"),
]
@nshbrown
nshbrown / views.py
Created September 8, 2021 15:49
pages/views.py
import shutil
import subprocess
from django.shortcuts import render
@staff_member_required
def system(request):
cmd = 'df -k'
df = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, executable="/bin/bash")
df_return = str(df.stdout.read().decode('utf-8'))
df.terminate()
@nshbrown
nshbrown / theme.html
Created March 23, 2021 14:39
project/templates/theme.html
{% load static %}
{% load poem_tag_extras %}
<!doctype html>
<html lang="en">
<head>
{% if seo_title %}
<title>{{ seo_title }}</title>
{% else %}
<title>Project &trade; - Your Signal Here</title>
{% endif %}