Skip to content

Instantly share code, notes, and snippets.

View troyth's full-sized avatar

Troy Therrien troyth

View GitHub Profile
@troyth
troyth / gist:045ff7c174dc071f8673
Created January 25, 2015 19:21
Onename Verification
Verifying that +troyth is my openname (Bitcoin username). https://onename.com/troyth
@troyth
troyth / keybase.md
Last active September 30, 2017 12:46

Keybase proof

I hereby claim:

  • I am troyth on github.
  • I am troyth (https://keybase.io/troyth) on keybase.
  • I have a public key ASDKorj5eQMrpoYnC1Wuf035gBMRaeoIRZsY2oAY1T2ZoAo

To claim this, I am signing this object:

nmap -Pn -p22 -oG - '192.168.1.*' | grep open
namap: Network exploration tool and security / port scanner
-Pn: Disable pinging of ips before scanning them - some of the Pi's didn't respond fast enough for this
-p22: Scan on port 22 (ssh) and see if anything responds
-oG - : Sets the output to "greppable" output and outputs it to your terminal (standard out). Greppable output puts all the info you need on every line so you can easily filter it
'192.168.1.*': All the addresses on the nertwork started with 192.168.1, the * says just scan all of the ips in this network.
| grep open: takes the output of nmap and filters it for the word "open"
(note: copied from an email from Francis Gulotta)
var http = require('http');
// Start an HTTP server
http.createServer(function (request, response) {
// Every request gets the same "Hello Connect" response.
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello Connect");
}).listen(3000);
<!doctype html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p>This is the page content.</p>
#header{
position: fixed;
color: black;
font-size: 48px;
}
.title{
border-bottom: 1px solid dotted;
}
div p{
color: green;
}
div{
font-family: "Times New Roman", Times, serif;
color: #00CCCC;
font-size: 24px;
}
div{
font-family: "Times New Roman", Times, serif;
color: #00CCCC;
}
p{
font-size: 24px;
}
body{
/* text */
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
font-style: none;
font-weight: normal;
/* canvas */
background-color: #aaa;
background-image: none;
p{
font-family: "Times New Roman", Times, serif;
color: red;
}
p{
font-style: italic;
}
p{