Skip to content

Instantly share code, notes, and snippets.

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

Avery citrusui

📚
Resist fascism.
View GitHub Profile
# MOTD
function echo_color() {
local color="$1"
printf "${color}$2\033[0m\n"
}
echo_color "\033[0;90m" "c-f Move forward"
echo_color "\033[0;90m" "c-b Move backward"
echo_color "\033[0;90m" "c-p Move up"
echo_color "\033[0;90m" "c-n Move down"
echo_color "\033[0;90m" "c-a Jump to beginning of line"
@citrusui
citrusui / txt.md
Last active October 29, 2017 23:41
TextMark

This is a sample tweet that has a hidden textmark in it. Copy it & go to textmark.io to see the message!

This is a sample tweet that has a hidden textmark in it. Copy it & go to textmark.io to see the message!

@citrusui
citrusui / SMBDIS.ASM
Created October 16, 2017 18:58 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
#!/usr/bin/env python3
'''convert payload to zip'''
import struct
import sys
import zipfile
import datetime
import io
import lzma
def get_chunk(payload, chunknum):
@citrusui
citrusui / entries.json
Created October 11, 2017 00:47
Apple TV 4K Aerial screensavers entry list. https://sylvan.apple.com/Aerials/2x/entries.json
{
"version" : 1,
"initialAssetCount" : 4,
"assets" : [
{
"id" : "6154CA95-ED90-446A-9C29-F46EDA2B3741",
"url-1080-SDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_2K_SDR_HEVC.mov",
"url-1080-HDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_2K_HDR_HEVC.mov",
"url-4K-SDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_4K_SDR_HEVC.mov",
"url-4K-HDR" : "https://sylvan.apple.com/Aerials/2x/Videos/DB_D011_C009_4K_HDR_HEVC.mov",
@citrusui
citrusui / xnu-4570.1.46-arm64-steps.txt
Created October 9, 2017 23:03 — forked from Proteas/xnu-4570.1.46-arm64-steps.txt
steps to build arm64 version of xnu-4570.1.46
Following are my steps to build the ARM64 version of xnu-4570.1.46, hope this is helpfull for saving time.
1. Use Xcode 9.0
2. Preparation is same as macOS, and there is a guide: https://0xcc.re/building-xnu-kernel-macosx-sierrra-10-12-x/
3. There is an ARM64 version libfirehose: https://github.com/Proteas/install_firehose_lib
4. Copy and edit the ARM64 config(CFLAGS, LDFLAGS) from darwin-on-arm/xnu to your target project
5. Example CFLAGS: -Darm64 -DARM64 -D__arm64__ -D__ARM64__ -DLP64 -DCONFIG_EMBEDDED -mkernel -DARM64_BOARD_CONFIG_T8011=1
6. Fix compiling stage errors by directly importing the missing headers or editing the code
7. Fix linking stage errors by implementing place holder funcitons for: chudxnu_cpu_alloc, etc
8. If missing symbol __divti3 in linking stage, get the runtime from llvm.
@citrusui
citrusui / FDRSealingMap.plist
Created July 31, 2017 14:10
/usr/lib/FDRSealingMap.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleTV5,3</key>
<string>iProdScrt</string>
<key>AppleTV6,2</key>
<string>iProdPcrt</string>
<key>AudioAccessory1,1</key>
<string>iProdScrt</string>

門の上で永速に燃える星にする。

Make it a star that burns at eternity on the gate.

その魂を、フォ-ラムとローマの

Its soul, Forum and Rome

@citrusui
citrusui / wallpapers.md
Created July 17, 2017 04:23
Where you can find the wallpapers for your operating system
@citrusui
citrusui / mas-os.md
Last active June 21, 2017 20:07
older versions of macOS Installers (softwareVersionExternalIdentifiers)

El Capitan (NOT legacy)

812827763
813257608
813383820
813518379
813724261
813873748
813895899