Skip to content

Instantly share code, notes, and snippets.

View hannorein's full-sized avatar

Hanno Rein hannorein

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hannorein
hannorein / recover.md
Created March 29, 2025 19:40
How to recover CamHiPro password

1) Get file

Download the CamHiPro document folder from the phone to your computer. This can be done for example with the "Apple Configurator" under "Action", "Export", "Documents".

2) Locate file the database.

This file should be in the CamHiPro folder. It has the name databasehx.sqlite

3) Extract database.

This can be done with the command line: sqlite3 databasehx.sqlite .dump. You should see a row like this:

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import h5py
import numpy as np
import rebound
def hdf5_to_rebound(row):
row = row.reshape((-1,5))
Pmin = np.min(row[:,1])
TCmin = np.min(row[:,4])
epoch = TCmin - 0.1 * Pmin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!doctypehtml><html lang=en-us><head><meta charset=utf-8><meta content="text/html; charset=utf-8"http-equiv=Content-Type><title>REBOUND Visualization</title><style>body{font-family:arial;margin:0;padding:none;background:#000}.emscripten{padding-right:0;margin-left:auto;margin-right:auto;display:block}div.emscripten{text-align:center}#output{position:absolute;top:80%;left:0;margin:0;width:100%;height:20%;overflow:hidden;display:block;border:0;padding:0;background-color:#000;color:#fff;font-family:'Lucida Console',Monaco,monospace;outline:0}.reboundlogo{position:relative;top:.15em;float:left;-webkit-filter:invert(1);filter:invert(1);width:1em;height:1em;margin-right:.5em;background-size:contain;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAIKADAAQAAAABAAAAIAAAAACshmLzAAAElklEQVRYCZ2We4hVVRSHr5NO4iN7aGY+uj7yCULlf4aRmEVEQ5CSTJFlDmVGmkMw6TQpIv2RWRFFWTFIhZUE5h9R2lgWZopmMlQojGmYQj
@hannorein
hannorein / sqrt7.ipynb
Last active September 22, 2023 22:09
Sqrt7 IAS15
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.