Skip to content

Instantly share code, notes, and snippets.

View citrusui's full-sized avatar
📚
Resist fascism.

Avery citrusui

📚
Resist fascism.
View GitHub Profile
@citrusui
citrusui / greeting.py
Created February 10, 2017 14:38
Show a custom greeting based on which user is currently logged in.
"""This shows a specific greeting based on who is logging in."""
name = None
def goinput():
"""Handle user auth."""
name = input("\nGood morning! Please enter your name: ").lower()
if name == "harris":
print("\nHello %s, great job." % (name))
/arm-io: base = 38000000
/arm-io/vic: 38E00000:00002000
/arm-io/edgeic: 38E02000:00001000
/arm-io/gpio: 3E400000:00001000
/arm-io/gpio: 39A00000:00001000
/arm-io/power: 39A00000:00001000
/arm-io/clkrstgen: 3C500000:00001000
/arm-io/clkrstgen: 38100000:00001000
/arm-io/dmac0: 38200000:00001000
/arm-io/dmac1: 39900000:00001000
@citrusui
citrusui / guess.md
Created February 20, 2017 23:01
trying to guess the meaning behind Apple IPSW URLs

Example URL:

http://appldnld.apple.com/iPhone/061-4956.20080710.V50OI/iPhone1,1_2.0_5A347_Restore.ipsw

[Left is text, right is the conversion to hex]

[Everything is case sensitive, I think]

// 2.0 for iPhone1,1

@citrusui
citrusui / 2017-XX-XX-more-info-on-apple-ipsw-downloads.md
Last active February 27, 2022 19:33
An incomplete write-up of my failed attempt to conjure a meaning behind Apple's IPSW URLs.

More info on Apple IPSW downloads

IPSWs are files used by iTunes to update or restore the firmware on a mobile Apple device. Originally used for classic iPods, the IPSW made its way onto the iPhone, iPod touch, iPad, Apple TV, iPad mini, and Apple Watch. Although IPSWs may seem like magic, they are cleverly disguised .zip archives. You can read more about the file format of IPSWs here.

Over a year ago, @q3hardcore on Twitter discovered a technical leak from one of Apple's update servers. For reasons unknown, their Amazon S3 bucket was accidentally published publicly. In other words, going to https://appldnld.s3.amazonaws.com presented you with a wall of XML, full of links to files stored on Apple's update server. I did not think to archive the page before it want back to being protected.

Example: http://appldnld.apple.com/iOS7.1/031-4388.20140310.ZA355/iPad2,1_7.1_11D167_Restore.ipsw

Where appldnld.apple.com is the domain,

@citrusui
citrusui / names.py
Created February 22, 2017 14:06
Input for a user's name, and print it in a variety of ways.
"""Import system module."""
import sys
import time
"""Print the user's name in a variety of ways."""
def nametricks():
"""Input for first and last name."""
@citrusui
citrusui / beta-hashes.md
Created February 28, 2017 02:03
I got bored. Here are some file hashes for various iOS betas.
Firmware MD5 SHA-1 SHA-256
iPad1,1_4.2_8C5091e_Restore.ipsw 11df731f6bf46ff3dd643bacf6fd9dd4 bb685f022c6267dd77d4ce4c6bff8b60ad84c5d5 103a760da9d1953913bbf2d1b7f99cd698cfceb527eddd0e43fdaf63424723f2
iPad1,1_4.2_8C134_Restore.ipsw 00257f1500eea9d0f8da9ea971ed6be4 edc2374ea39a029a943b345c43a8c2f2ab4bb504 9b03b4e7ffe0a25d89c7f5744bf06dbdaa2a8858d1baceb18c844baf277c4aec
iPad3,1_6.0_10A5316k_Restore.ipsw 05211aa7c56c868d6c94f595018b3175 555616f492c9bd58058aae610f71dae8f6c59b48 6ff2649bf643810c99d82874ea2d2784b11106c4bd668bb2dc0a4cabb0b810ef
iPhone5,1_7.0_11A4372q_Restore.ipsw c6060ffc1d46573bd2b8bc3ae7eb86e7 44749bcee8f6e504dd83d9d4
@citrusui
citrusui / footnote.md
Last active April 17, 2017 00:29
Nonsensical document to test footnotes with.

There may be caveats 1 to this implementation.

Credits

  • Dr. Lorem
  • Miss Ipsum
  • Chad

Bug Fixes

<!doctype html>
<html>
<head>
<style>
::-webkit-scrollbar {
display: none;
}
.bg-container {
width: 1920px;
@citrusui
citrusui / hashes.md
Last active July 11, 2020 15:05
these are a random assortment of hashes, in no specific order. NEEDS CLEANUP.

elementary OS

elementaryos-0.4.1-stable.20170517.iso

md5: f6cac14f8cd0792e943031a10eb19fc7

sha1: 18074caca4bf4294a9e599061637519617721529

sha256: 48fcf51244c77e18ff68a8456a2e92e2b49270b9b3a1c7a60a88a9d358272c1e

@citrusui
citrusui / dot_clean.sh
Created May 20, 2017 23:23 — forked from NapoleonWils0n/dot_clean.sh
macosx: dotclean remove dot underscore and ds_store files
#!/bin/sh
# =================================================
# = remove dot underscore file and ds_store files =
# =================================================
# syntax
dot_clean /path/to/folder