Skip to content

Instantly share code, notes, and snippets.

import json
import sqlite3
import zlib
# ~/Library/Safari/CloudTabs.db
# Ref: https://www.reddit.com/r/mac/comments/89qx5n/iphone_safari_tabs_into_text_list_via_icloud/
db = sqlite3.connect('CloudTabs.db')
tabs = []
@peterjmag
peterjmag / icloudtabs2md.js
Created July 15, 2019 11:39 — forked from mems/icloudtabs2md.js
Generate a markdown links list from iCloud tabs
#!/usr/bin/env node
/*
Generate a markdown links list from iCloud tabs, on macOS
Usage:
./icloudtabs2md.js > icloudtabs.md
./icloudtabs2md.js | pbcopy
Require:
import Ember from 'ember';
export default Ember.Component.extend({
someComputedProperty: Ember.computed('item.label', function() {
const item = this.get('item');
Ember.Logger.log('someComputedProperty', item.label);
return `${item.label} ${new Date}`;
})
@peterjmag
peterjmag / gource.sh
Last active October 12, 2024 04:22 — forked from XueshiQiao/gource.sh
Generate a MP4 Video for your Git project commits using Gource!
# 1.install gource using HomeBrew
$ brew install gource
# 2.install avconv
git clone git://git.libav.org/libav.git
cd libav
# it will take 3-5 minutes to complie, be patient.
./configure --disable-yasm
make && make install