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 / 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

/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 / 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))
@citrusui
citrusui / login.py
Created February 9, 2017 14:08
Simulates an SSH login session.
"""This script simulates an SSH login."""
import sys
user = None
print("System Login:\n")
def y_n(question):
"""Check for input of yes or no."""
@citrusui
citrusui / stories.md
Last active October 9, 2017 01:07
Feelings of midday solace.

What do we gain from this?

Why waste your life in search of purpose?

When virtual companions satisfy our lust for information.

Where everyone you know lives an exactly identical lie.

While each person feels the same nostalgia toward a false past.

javascript: (function() {
d = document;
t = d.querySelector("img");
var s = String.fromCharCode,
c = d.createElement("canvas");
var cs = c.style,
cx = c.getContext("2d"),
w = t.offsetWidth,
h = t.offsetHeight;
c.width = w;

macOS: ~/Library/Application\ Support/Google/Chrome/Default/File\ System

Windows: %LOCALAPPDATA%\Google\Chrome\User Data\Default\File System\

Linux: ~/.config/google-chrome/Default/File\ System/

#!/bin/bash
#
# This script is run by Variety when a new wallpaper is set.
# You can use bash, python or whatever suits you for the script.
# Here you can put custom commands for setting the wallpaper on your specific desktop environment
# or run commands like notify-send to notify you of the change, or you can
# run commands that would theme your browser, login screen or whatever you desire.
#
# PARAMETERS:
# $1: The first passed parameter is the absolute path to the wallpaper image to be set as wallpaper
@citrusui
citrusui / apps.md
Last active July 27, 2017 22:59
Reference of desktop apps that I frequently use or find interesting.