Skip to content

Instantly share code, notes, and snippets.

View tobru's full-sized avatar

Tobias Brunner tobru

View GitHub Profile
@tobru
tobru / migrate_lobsters_to_shaarli.php
Created October 5, 2015 21:45
Helper to migrate links from lobsters to Shaarli
<?php
$GLOBALS['config']['DATADIR'] = 'data'; // Data subdirectory
$GLOBALS['config']['CONFIG_FILE'] = $GLOBALS['config']['DATADIR'].'/config.php'; // Configuration file (user login/password)
$GLOBALS['config']['DATASTORE'] = $GLOBALS['config']['DATADIR'].'/datastore.php'; // Data storage file.
$GLOBALS['config']['CACHEDIR'] = 'cache'; // Cache directory for thumbnails for SLOW services (like flickr)
$GLOBALS['config']['PAGECACHE'] = 'pagecache'; // Page cache directory.
// User configuration
if (is_file($GLOBALS['config']['CONFIG_FILE'])) {
require_once $GLOBALS['config']['CONFIG_FILE'];
}

Vagrant support is maintained by Cachet users from within the community.

Getting started

  • Install Vagrant
  • Install Composer
  • Add the Homestead box to Vagrant: vagrant box add laravel/homestead
  • Clone the Cachet repository from Github: git clone https://github.com/cachethq/Cachet.git
  • Change into this new directory
  • Copy .env: cp .env.example .env
@tobru
tobru / keybase.md
Created March 2, 2015 11:04
Keybase.io prove

Keybase proof

I hereby claim:

  • I am tobru on github.
  • I am tobru (https://keybase.io/tobru) on keybase.
  • I have a public key whose fingerprint is 9222 3854 4B44 1DBC F8D8 3297 487C A707 190A 2598

To claim this, I am signing this object: