Skip to content

Instantly share code, notes, and snippets.

@chabala
chabala / using-google-takeout.md
Last active May 11, 2024 08:37
Merge and extract tgz files from Google Takeout

Recently found some clowny gist was the top result for 'google takeout multiple tgz', where it was using two bash scripts to extract all the tgz files and then merge them together. Don't do that. Use brace expansion, cat the TGZs, and extract:

$ cat takeout-20201023T123551Z-{001..011}.tgz | tar xzivf -

You don't even need to use brace expansion. Globbing will order the files numerically:

$ cat takeout-20201023T123551Z-*.tgz | tar xzivf -
@Daksh
Daksh / use.md
Last active January 6, 2016 05:58
Useful Stuff

#Useful Stuff

##Sugar Packages

  • Install: sugar-install-bundle /run/media/<USB device name>/<filename.xo>
  • Make an xo: zip -r YourActivityName.xo YourActivityName.activity

##GIT

Always remember, do not make changes directly in the master branch. All it takes is a command to make and switch to a new branch git checkout -b