Skip to content

Instantly share code, notes, and snippets.

View rjmacarthy's full-sized avatar
🎮
The Tetris effect

richy rjmacarthy

🎮
The Tetris effect
View GitHub Profile
@rjmacarthy
rjmacarthy / d3-bar-chart
Created July 22, 2015 12:17
D3 Bar Chart
http://jsfiddle.net/Qh9X5/5726/
@rjmacarthy
rjmacarthy / vpn
Created September 8, 2015 09:18
IPsec VPN
http://sourceforge.net/projects/l2tp-ipsec-vpn/files/l2tp-ipsec-vpn/1.0.9/
Update model via mongodb shell:
db.model.update({"_id" : ObjectId("id")}, { $set : { thing : "tothing"}})
@rjmacarthy
rjmacarthy / subdomain
Created January 27, 2016 12:24
Node.js Nginx Subdomain
server {
listen 80;
server_name www.subdomain.domain.com;
return 301 subdomain.domain.com;
}
server {
listen 80;
server_name subdomain.domain.com;
@rjmacarthy
rjmacarthy / Redux-React-Counter-Example
Created February 4, 2016 12:36
Redux and React Simple JSBIN
https://jsbin.com/debohu/1/edit?html,js,output
@rjmacarthy
rjmacarthy / HowTo.md
Created February 17, 2016 14:03
Webpack frontend / backend

Backend reload

forever --watch --watchDirectory="./server/" server/app.js

Front end reload

webpack-dev-server --hot --inline --history-api-fallback

Webpack config with proxy for backend.

@rjmacarthy
rjmacarthy / rethinkdbssh
Created February 23, 2016 10:01
rethinkdb ssh
`ssh -D <PORT> <LOGIN>@<MACHINE>`
Chrome > settings > proxy settings Set the socks host to and port to you use before.
address:8080 in your browser
@rjmacarthy
rjmacarthy / sentry
Last active February 26, 2016 12:19
install sentry ubuntu
source /www/sentry/bin/activate
sentry
sentry init /etc/sentry
sudo apt-get update
sudo apt-get install build-essential -y
sudo apt-get install tcl8.5 -y
wget http://download.redis.io/releases/redis-stable.tar.gz
tar xzf redis-stable.tar.gz
cd redis-stable
make
@rjmacarthy
rjmacarthy / bitcore-node-testnet.json
Created March 30, 2016 15:43
bitcore-node-testnet.json config
{
"datadir": "./data",
"network": "testnet",
"port": 3001,
"services": [
"address",
"bitcoind",
"db",
"insight-api",
@rjmacarthy
rjmacarthy / madge.md
Created April 5, 2016 14:18
madge circular depencency

Navigate to app root

madge --format amd --circular .