Skip to content

Instantly share code, notes, and snippets.

View raphaelmerx's full-sized avatar

Raphaël Merx raphaelmerx

View GitHub Profile

Extracting a full image from the master tablet

You will need:

  • Ubuntu (or other Linux distribution) computer
  • TWRP image for your tablet model. Search for it on https://twrp.me/Devices/
  • latest firmware for the Android tablet. For example download it from sammobile.
  • The heimdall command. Download it with sudo apt-get install heimdall-flash
  • Binaries for manipulating Android images: ext2simg and sgs4ext4fs.

Follows https://codewords.recurse.com/issues/two/git-from-the-inside-out

  • Adding a file will hash its content, and add a file in the objects directory to track it. The object content is just a compressed version of the file contents. The first two letters of the file content become the directory that the object is stored in, and the rest of the hash is the object file name.
  • Each object is a full snapshot of the file content. It does not represent a diff. Because the file name and location are not stored in the blobs, two identical files will point to the same blob.
  • When there are too many loose objects, git packs them into the pack folder that can store diffs instead of full file contents.
  • When commiting, git creates a snapshot of the current blobs and trees. trees are used to track directories, and point to blobs or other trees. Files are represented by blobs.
  • A commit is also an object, that points to the tree for the root directory: https://codewords.recurse.com/images/two/git-from-the-i
@raphaelmerx
raphaelmerx / gist:b3b4f1b5e569cd4f4f5c
Created April 20, 2015 23:27
Delete scout server
# Script using scout api to delete the provided server
if ARGV.length < 4
puts "Please specify hostname of scout server you wish to remove"
puts "USAGE: delete_scout_entry.rb <account name> <username> <password> <server hostname>"
exit(0)
end
require 'scout_api'
scout = Scout::Account.new(ARGV[0], ARGV[1], ARGV[2])