This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
KHN0ZGluKT0gM2FjOTQxYmJjZmNkNWY4MGJjNjE4MGU1YmQ3NDE5MWUxNzdmMTcwNjIzOTRhOThlZWM5ZDFmZjZmM2Q0NTQxMmY3ZjE2OTNlYzFjY2E5NDFmNTZjZjc3YjRkMjBhOTgwYTgzNGFlMWUzN2UyNDUxZjBmNjQ5ZDdhZTQwNmFjZTMK | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CONNECT help.apple.com:443 HTTP/1.1 | |
Host: help.apple.com | |
Proxy-Connection: keep-alive | |
Connection: keep-alive | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" ) ) ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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: */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pages import views as page_views | |
from django.urls import path | |
urlpatterns = [ | |
... | |
path('system.html', page_views.system, name="system"), | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load static %} | |
{% load poem_tag_extras %} | |
<!doctype html> | |
<html lang="en"> | |
<head> | |
{% if seo_title %} | |
<title>{{ seo_title }}</title> | |
{% else %} | |
<title>Project ™ - Your Signal Here</title> | |
{% endif %} |
NewerOlder