Skip to content

Instantly share code, notes, and snippets.

@wwylele
wwylele / doc.md
Created July 26, 2018 16:13
WIP 3DS CEC doc

3DS CEC (StreetPass) Documentation

Overall Model

The CEC system module consists of two main components: mailbox manager and StreetPass communicator. Both work on the system save 00010026, which stores all mailbox information and message data. A simplified diagram of CEC communication model is

Application <=> Mailbox Manager <=> System Save (Mailbox) <=> StreetPass communicator <=> NWM/network <=> StreetPass communicator of another 3DS <=> ...

Many CEC service (cecd:u and cecd:s) functions are interfaces exposed from the mailbox manager, which read and write the system save. The mailbox manager is essentially a thick layer over direct file IO, which performances data initialization and verification on top of raw system data read/write.

@jessfraz
jessfraz / boxstarter.ps1
Last active July 7, 2024 22:46
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@xerpi
xerpi / 3DS_Linux_build_instructions.md
Last active March 27, 2024 12:02
3DS Linux build instructions

Step 1: Compiling or Downloading the toolchain

Step 1.a: If you choose to download a pre-compiled toolchain (only for Linux x86-64)

  • Go to https://toolchains.bootlin.com
  • Select arch: armv6-eabihf
  • Select libc: glibc
  • Download bleeding-edge
  • Uncompress it (for example to /opt)
  • Add the bin/directory of the toolchain to $PATH
  • In my case: export PATH=$PATH:/opt/armv6-eabihf--glibc--bleeding-edge-2020.08-1
@CyberShadow
CyberShadow / osx.org
Last active October 29, 2023 18:08
Setting up OS X from scratch

Setting up OS X from scratch (on libvirt/QEMU/KVM)

Motivation

  • I have a MacBook1,1, but its HDD died.
  • I need an instance of OS X mainly to build OS X binaries of some of my open-source software.

OS X 10.4 (Tiger)

  1. Obtain installation medium

KVM OSX Guest 10.11 (El Capitan) with Clover

  • Some notes about this approach:
    • An OSX Installer USB drive for Install OS X El Capitan is created
    • Clover is then installed on the USB drive
    • Clover Configurator is then run on the USB drive
    • The USB drive contents are copied to the VM host
    • VNC is used to connect to the guest UI
  • The qxl virtual video device is used (part of the standard kvm qemu install)
@ellisgeek
ellisgeek / bird.ps1
Last active December 25, 2015 22:00
Bird installs prey...
#region About
<#
.SYNOPSIS
Wrapper Script to ease the installation and status checking of the Prey NODE.js Client
.PARAMETER action
Action that should be executed, currently one of "install" or "status".
install: Installs Prey
status: Executes Prey's status built in status check to ensure that the
client is running smothly
.PARAMETER apiKey
@franz-josef-kaiser
franz-josef-kaiser / nano-shorts.md
Last active April 8, 2024 09:27
nano keyboard shortcuts

^ = Ctrl key M = Alt key

^G      (F1)            Display this help text
^X      (F2)            Close the current file buffer / Exit from nano
^O      (F3)            Write the current file to disk
^J      (F4)            Justify the current paragraph

^R      (F5)            Insert another file into the current one
@brianly
brianly / crunchbuntu.sh
Created February 9, 2015 02:03
Install a very basic version of Ubuntu and then make it like CrunchBang (original source: http://crunchbang.org/forums/viewtopic.php?id=36252)
# do mini-install from http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/mini.iso
# next do wget http://pastebin.com/raw.php?i=K8AmdciE -O- | tr -d '\r' > install.sh && chmod +x install.sh && ./install.sh
mkdir crunchbuntu && pushd crunchbuntu
# libvala dependency was renamed to vala in trusty, get an older package
wget -c https://launchpad.net/~vala-team/+archive/ubuntu/ppa/+files/libvala-0.10-0_0.10.4-1ubuntu1~lucid1_amd64.deb
sudo dpkg -i libvala-*
# add waldorf repository and install crunchbang packages
@lokkju
lokkju / vaulty-decode.py
Created November 6, 2014 09:46
Decode Vaulty protected .vdata files
#!/usr/bin/python
# This program will copy, rename and decode Vaulty .vdata files back to images and videos for viewing in normal applications.
# Usage: python vaulty-decode.py <directory with .vdata files>
import sys
import os
import glob
import io