Skip to content

Instantly share code, notes, and snippets.

View 2hamed's full-sized avatar
🏠
Working from home

Hamed Momeni 2hamed

🏠
Working from home
View GitHub Profile
@chabala
chabala / using-google-takeout.md
Last active September 19, 2024 18:23
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 -
@2hamed
2hamed / html5.boilerplate.html
Last active December 16, 2015 00:10
My very own html5 template boilerplate.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>