Skip to content

Instantly share code, notes, and snippets.

@jiexi
jiexi / !RebootToOs.md
Created August 26, 2022 23:35 — forked from Darkhogg/!RebootToOs.md
"Reboot to {OS}" scripts for rEFInd Next Boot selection

Reboot to {OS}

This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.

General Information

The key for achieving this is to modify the EFI Variable PreviousBoot with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740, which rEFInd uses to store the last entry selected in the menu and, if using the + default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.

@jiexi
jiexi / .Eternal Storage by Decentralized DNS Example
Last active October 25, 2021 15:40
Eternal Storage by Decentralized DNS Example
The blog post that explains how these contracts work can be found at:
https://hackernoon.com/eternal-storage-building-dapps-for-the-future-stl3xre
@jiexi
jiexi / .Nodejs Kinesis Consumer-Producer + LocalStack
Last active July 28, 2020 21:09
Nodejs Kinesis Consumer/Producer + LocalStack
The java runtime flags that you need to set in order to be able to
communicate with localstack aren't configurable from the command line
when using v2 of the java sdk. Anything newer than the commit
15cec60231167a89e4debcd0d58bfaaf5d666aa0 on the aws-kcl npm module
uses v2 of the java sdk. If you wish to develop a Kinesis consumer
in nodejs, you will need to use v0.8.0 of aws-kcl and the patched
kcl-bootstrap attached. Note that this limitation does not exist
for the producer, only the consumer.