Skip to content

Instantly share code, notes, and snippets.

View microlancer's full-sized avatar

Tim microlancer

View GitHub Profile
@microlancer
microlancer / thunderhub-docker.md
Last active April 23, 2021 07:39
Setting up Thunderhub

First, get the repo:

git clone https://github.com/apotdevin/thunderhub

In the thunderhub repo, there is a folder named "example" and inside docker-compose.yml you can start from.

I modified it as follows:

@bretton
bretton / improved-lnd-bitcoind-mainnet.md
Last active June 26, 2024 16:08
Detailed guide to installing LND and Bitcoind on Ubuntu 16.04 LTS for Mainnet

Intro

This guide is specific to getting LND 0.5-beta and Bitcoind running on Ubuntu 16.04 LTS for mainnet. It is aging rapidly and includes steps not necessary on newer versions of LND. As of April 2021 it is very out of date for bitcoind. As of December 2021 it is outdated for LND too.

Original installation guide:

This guide is broken into the following sections:

  • Install bitcoind and set to start automatically
  • Install development tools and dependancies
@weierophinney
weierophinney / Module.php
Created September 25, 2012 19:00
Change controller name via listener
<?php
namespace My;
class Module
{
public function onBootstrap($e)
{
$events = $e->getTarget()->getEventManager();
$events->attach('route', array($this, 'onRoutePost'), -100);
@weierophinney
weierophinney / module.config.php
Created September 25, 2012 18:52
Alternate config
<?php
return array(
'router' => array('routes' => array(
'api' => array(
'type' => 'Segment',
'options' => array(
'route' => '/api/v1/:controller[/:id]',
'defaults' => array(
'__NAMESPACE__' => 'Api\V1\Controller',
'controller' => 'User', // just an example
@weierophinney
weierophinney / AbstractControllerFactory.php
Created September 25, 2012 18:45
Abstract controller factory
namespace My\Api\V1;
use Zend\ServiceManager\AbstractFactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
class AbstractControllerFactory implements AbstractFactoryInterface
{
protected $allowedControllers = array(
'user',
'group',
@rmurphey
rmurphey / gist:3086328
Created July 10, 2012 21:23
What's wrong with Netmag's "Optimize your JavaScript" post

What's wrong with Netmag's "Optimize your JavaScript" post

Update: The original post on Netmag has been updated since this was written.

I tweeted earlier that this should be retracted. Generally, these performance-related articles are essentially little more than linkbait -- there are perhaps an infinite number of things you should do to improve a page's performance before worrying about the purported perf hit of multiplication vs. division -- but this post went further than most in this genre: it offered patently inaccurate and misleading advice.

Here are a few examples, assembled by some people who actually know what they're talking about (largely Rick Waldron and Ben Alman, with some help from myself and several others from the place that shall be unnamed).

Things that are just plain wrong

@gmarik
gmarik / README.md
Created October 21, 2011 21:44
phantomjs qunit.js example

About

minimal example of using [phantomjs] with [qunit]

$ phantomjs run-qunit.js file://`pwd`/test.html
'waitFor()' finished in 200ms.
Tests completed in 21 milliseconds.
5 tests of 5 passed, 0 failed.

Installation