Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html>
<head>
<title>D3 Tutorial</title>
<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>
</head>
<body>
Original tutorial:
<a href="http://needforair.com/blog/2012/05/09/d3-tutorial/">http://needforair.com/blog/2012/05/09/d3-tutorial/</a>
<br/>
.box { font: 10px sans-serif; }
.box line, .box rect, .box circle { stroke: #000; stroke-width: 1.5px; fill: #fff; }
.box .center { stroke-dasharray: 3 3; }
.box .outlier { stroke: #ccc; fill: none; }
@2-718
2-718 / gist:822431
Created February 11, 2011 14:35
Configure CentOS firewall
$ sudo system-config-securitylevel
@2-718
2-718 / gist:751451
Created December 22, 2010 12:31
Secure copy command syntax
scp -P {port} "{user}@{host}:/path/to/remote_file.ext" /path/to/local_file.ext
scp -P {port} {user}@{host}:/path/to/remote_file*.ext .
@2-718
2-718 / SELinux Commands.mkd
Created November 30, 2010 19:01
SELinux Commands

Status

$ sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted

$ getenforce

@2-718
2-718 / gist:712288
Created November 23, 2010 18:56
Generating SSH keys (OSX)

Generate ssh public keypair

$ cd ~/.ssh
$ ssh-keygen -t rsa -C "EMAIL"
Filename: EMAIL
Passphrase: choose appropriate passphrase
$ ssh-add EMAIL

Enable ssh-agent

$ ssh-agent bash

$ ssh-add ~/.ssh/id_rsa

@2-718
2-718 / _CentOS Bootstrap Instructions.mkd
Created November 21, 2010 11:23
Shell scripts to setup CentOS server