Skip to content

Instantly share code, notes, and snippets.

View naruse's full-sized avatar

Juan Sebastian Muñoz naruse

  • Pencil Square Games
  • Canada
View GitHub Profile
@naruse
naruse / Input.txt
Created December 17, 2018 19:26
Input Day 4 advent of code 2018 Part 1
[1518-05-11 00:22] falls asleep
[1518-10-11 00:51] wakes up
[1518-10-12 00:31] wakes up
[1518-04-08 00:57] wakes up
[1518-09-26 23:59] Guard #2851 begins shift
[1518-11-06 00:40] wakes up
[1518-08-06 00:04] Guard #2851 begins shift
[1518-09-27 00:54] wakes up
[1518-07-09 00:00] Guard #2153 begins shift
[1518-04-11 00:37] falls asleep
@naruse
naruse / Date.h
Created December 17, 2018 19:27
Date.h
#pragma once
using namespace::std;
class Date {
public:
int year;
int month;
int day;
int hour;
@naruse
naruse / gist:2fc92eba078a9dc79229ad9aa8c101da
Created September 7, 2024 16:00
Getting back my ibook G4 booting into OS9
[quote author=Doggoli link=topic=4021.msg27261#msg27261 date=1507384197]
After googling for a bit i found a script that modifies the nvram to work but that didnt help...Do any of you have some ideas?
Here is the script i tried:
#!/bin/sh
echo Enabling OS 9 booting...
echo "You may have to enter your password"
@naruse
naruse / .md
Last active September 7, 2024 16:12
Getting back my ibook G4 booting into OS9 by correcting Open Firmware

Hey Everyone, I wanted to add to this.

Recently I messed up my OS9 boot and my ibook wasnt booting. It took me a couple of weeks to figure out how to add this script on the nvram in open firmware, because I didnt have any access to any OS. Here is what I did. (All of the commands I am going to post below are in Open Firmware)

In open firmware there is a variable called nvramrc, this var contains the contents (in open firmware language) of the script shared above. This is the script that patches your ibook G4 to make it bootable.

First thing to check is if you have the var set up in open firmware (if you dont, dont worry, I will explain how to adapt the bash script above to make it work) To do so type: printenv nvramrc