Skip to content

Instantly share code, notes, and snippets.

View jeffpamer's full-sized avatar

Jeff Pamer jeffpamer

View GitHub Profile
#######################################################
## CROSS COMPILING TRANSMISSION 2.82 FOR WD MY CLOUD ##
## MODIFIED FOR OS X HOST MACHINE ##
#######################################################
This is a guide to compile transmission 2.82 for the WD MyCloud 2/3/4 TB.
Because I didn't want to install the build tools and dependencies on my NAS I chose to
setup a cross-compiler toolchain on my x86_64 Ubuntu 12.04 machine and create a .deb package
that can be installed on the NAS. Furthermore the cross compiler can be used to compile anything for the My Cloud (printer drivers, etc.)

Keybase proof

I hereby claim:

  • I am jeffpamer on github.
  • I am jeffpamer (https://keybase.io/jeffpamer) on keybase.
  • I have a public key whose fingerprint is 24C1 028D EB22 61AD 61C5 0316 6DB8 66A4 282F 75C4

To claim this, I am signing this object:

@jeffpamer
jeffpamer / alerts.md
Last active August 29, 2015 14:09 — forked from kaw2k/alerts.md

Thoughts on alerts

The basic question boils down to "Who should dictate if the alert is rendered?"

Parent controls all

In this situation, what you return from your render method is always rendered to the screen. Let's start by making a hypothetical API

@jeffpamer
jeffpamer / gist:f32b4e9b6e5aece0cfea
Last active August 29, 2015 14:11
Top 2014 Albums of 2014
for (var i = 1; i <= 2014; i++) {
console.log(i + ' Andy Stott - "Faith in Strangers"');
}
@jeffpamer
jeffpamer / gist:b60387a405f84defc881
Created February 22, 2015 17:56
Basic vim-projectionist mappings for WT React project layouts
{
"client/src/js/actions/*.js": {"type": "action", "alternate": "client/src/js/stores/{}.js"},
"client/src/js/stores/*.js": {"type": "store", "alternate": "client/src/js/actions/{}.js"},
"client/src/js/components/*.js": {"type": "component"},
"client/src/js/views/*.js": {"type": "view"},
"client/src/js/mixins/*.js": {"type": "mixin"},
"README.md": {"type": "doc"}
}
@jeffpamer
jeffpamer / gist:3eae9d46e46d472f9a2a
Last active August 29, 2015 14:21
Destructure Restructure Pick
// given this object:
var origObj = {
first_name: 'test',
last_name: 'user',
email_address: 'user@test.com',
otherThing: 1234,
oneOtherThing: 5678
};
// what's the best/coolest way to get:
@jeffpamer
jeffpamer / 0_reuse_code.js
Created February 18, 2016 15:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jeffpamer
jeffpamer / README.md
Last active February 18, 2016 16:29
Reduce boilerplate using react-redux connect decorator and reselect selectors

When using the connect decorator (https://github.com/reactjs/react-redux) in conjunction with selectors (https://github.com/reactjs/reselect) a common pattern in your components appears:

import { connect } from 'react-redux';
import { selectCustomer } from 'stores/customer';
import { selectOrders, selectDeliveries } from 'stores/order';

@connect((state) => ({
    customer: selectCustomer(state),
    orders: selectCustomer(state),
'atom-text-editor.vim-mode:not(.insert-mode)':
'space': ' '
'space p': 'fathom-finder:toggle-file-finder'
'atom-text-editor.vim-mode:not(.insert-mode)[data-grammar~="clojure"]':
'space r': 'proto-repl:toggle'
'space e': 'proto-repl:exit-repl'
'space shift-b': 'proto-repl:execute-block'
'space b': 'proto-repl:execute-top-block'
'space s': 'proto-repl:execute-selected-text'
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory