Skip to content

Instantly share code, notes, and snippets.

@abom
abom / index.html
Created May 22, 2019 14:05 — forked from mie00/trip.html
plotting an entire trip using location history from google and google maps javascript api
<!DOCTYPE html>
<html>
<!--
usage:
1. install jq for json parsing.
2. go here https://takeout.google.com/settings/takeout and download "Location history" in json format and save it as location.json.
3. run `cat location.json|jq '.locations | map(select(has("accuracy"))) | map({lat: (.latitudeE7 / 10000000), lng: (.longitudeE7 / 10000000), accuracy: .accuracy, timestamp: (.timestampMs | tonumber / 1000)})' > google.json`
4. cp google.json google.js.
5. add `var points = ` to the beginning of google.js file.
@abom
abom / WinUSBFromLinux.md
Created March 31, 2018 22:30 — forked from kuznero/WinUSBFromLinux.md
How to make Windows 7 USB flash install media from Linux?

How to make Windows 7 USB flash install media from Linux?

StackOverflow

  • Install ms-sys - if it is not in your repositories, get it here. Or alternatively, make sure lilo is installed (but do not run the liloconfig step on your local box if e.g. Grub is installed there!)
  • Check what device your USB media is assigned - here we will assume it is /dev/sdb. Delete all partitions, create a new one taking up all the space, set type to NTFS (7), and remember to set it bootable:
# cfdisk /dev/sdb
or fdisk /dev/sdb (partition type 7, and bootable flag)
@abom
abom / bills.py
Last active November 9, 2018 13:45 — forked from mie00/bills.py
For bills and stuff
#!/usr/bin/env python
def calc(gross, delivery, **d):
"""
usage:
>>> calc(120, 9,
Ashraf=40,
Thabet=20,
Awadi=20,
Ghanem=20)
@abom
abom / springer-free-maths-books.md
Created December 30, 2015 00:44 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links