Skip to content

Instantly share code, notes, and snippets.

View foxx's full-sized avatar

Cal Leeming foxx

View GitHub Profile
Do NOT use aphoristic reframing.
Do NOT use sycophantic preamble.
Do NOT use em—dash.
Do NOT use authoritative declaratives.
Do NOT use socratic irony
Do NOT use premature summerization
Do NOT use empathy prefacing
Do NOT use filler tics.
Do NOT use pandering.
Do NOT use false or misleading statements.
[{"hostname":"al-tia-wg-003","country_code":"al","country_name":"Albania","city_code":"tia","city_name":"Tirana","fqdn":"al-tia-wg-003.relays.mullvad.net","active":true,"owned":false,"provider":"iRegister","ipv4_addr_in":"103.124.165.130","ipv6_addr_in":"2a04:27c0:0:c::f001","network_port_speed":10,"stboot":true,"type":"wireguard","status_messages":[],"pubkey":"rWiQxq5lAWD8v/bws9ITSAvThyZW8cR2x+Ins9ZvvRo=","multihop_port":3574,"socks_name":"al-tia-wg-socks5-003.relays.mullvad.net","socks_port":1080,"daita":false},{"hostname":"al-tia-wg-004","country_code":"al","country_name":"Albania","city_code":"tia","city_name":"Tirana","fqdn":"al-tia-wg-004.relays.mullvad.net","active":true,"owned":false,"provider":"iRegister","ipv4_addr_in":"103.124.165.191","ipv6_addr_in":"2a04:27c0:0:d::f001","network_port_speed":10,"stboot":true,"type":"wireguard","status_messages":[],"pubkey":"x62J1c4gfHu/bF3DSjwIjC0qOE3azRG03i/YW6bOEGY=","multihop_port":3575,"socks_name":"al-tia-wg-socks5-004.relays.mullvad.net","socks_port":1080,"d
@foxx
foxx / endianness.md
Created December 27, 2024 11:08
A tail of endianness

The Hilarious History and Reality of Endianness

The College Version 🎓

So there was this absolute legend named Jonathan Swift who wrote "Gulliver's Travels" back in 1726. In the book, there's this ridiculous war between two groups over which end of an egg you should crack first - the big end or the little end. It was basically Swift roasting politicians for fighting over dumb stuff.

Fast forward to the 1970s-80s, and computer architects are like "yo, how should we order bytes in memory?" You've got two main options:

Big-endian: 
@foxx
foxx / disable.reg
Last active May 12, 2019 18:11
disable feature upgrade windows 10
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade]
"AllowOSUpgrade"=dword:00000000
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"DisableOSUpgrade"=dword:00000001
sc config wuauserv start= disabled
sc stop wuauserv
{
"id": 369,
"node_id": "MDEwOlJlcG9zaXRvcnkzNjk=",
"name": "css_naked_day",
"full_name": "collectiveidea/css_naked_day",
"private": false,
"owner": {
"login": "collectiveidea",
"id": 128,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjEyOA==",
[
{
"id": 1,
"node_id": "MDEwOlJlcG9zaXRvcnkx",
"name": "grit",
"full_name": "mojombo/grit",
"private": false,
"owner": {
"login": "mojombo",
"id": 1,
[
{
"login": "mojombo",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://avatars0.githubusercontent.com/u/1?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/mojombo",
"html_url": "https://github.com/mojombo",
"followers_url": "https://api.github.com/users/mojombo/followers",
@foxx
foxx / app.txt
Last active July 9, 2018 19:59
River Oakfield Job Application
========================================================================
_____ _ ____ _ __ _ _ _
| __ \(_) / __ \ | | / _(_) | | | |
| |__) |___ _____ _ __ | | | | __ _| | _| |_ _ ___| | __| |
| _ /| \ \ / / _ \ '__| | | | |/ _` | |/ / _| |/ _ \ |/ _` |
| | \ \| |\ V / __/ | | |__| | (_| | <| | | | __/ | (_| |
|_| \_\_| \_/ \___|_| \____/ \__,_|_|\_\_| |_|\___|_|\__,_|
========================================================================
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCmUbHVjm4tsZMquZPUhGKF9rxyDPuev3hMyxoQ259WFq3e9i4EewiaAlPyFUg8trkgQqudhiUPNPcXimnwNryKAUgHkc85olJTerwDfW/FvW4Evq4WWRZiotDfD77EW7Rhn26eCCDYVYN+5CWGHGTUgh1C5s38VgLFV2MgijFWXP/MknR7LGREXgVw3o0jTtOJHHKgEqK+9bRiBA5ESvdScVtw4MLP5dED5Toj27TJxhMdtESNMhdue0ozS3jGquaWM1mEdkTABoGnMUfnzOmVQet5w++3WQwVNoyy0J+DQ38Hyw6OCt0aCAhlPucD+Mp3su3sqGzOG3FrrAnVX0VL cal@ro
#!/usr/bin/python3
hrs = input("Enter Hours:")
rate = input("Enter Rate:")
#Computing Overtime
if float(hrs) > 40:
hrs_difference = float(hrs) - 40
#print(hrs_difference)
overtime_pay = float(hrs_difference *(rate * 1.5))
print(overtime_pay)