Skip to content

Instantly share code, notes, and snippets.

@wknowles
wknowles / index.html
Created October 27, 2016 17:32
mapzen bells and whistles
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bells and Whistles</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
#map {
height: 100%;

Stuff to install on a fresh mac

# install package manager
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# tap homebrew versions
brew tap homebrew/versions

# Homebrew packages

brew install \

# LowEndSpirit "What's my IP?"
# 07/10/13
#By CSa
ipv6addr=$(ip addr show dev venet0 | sed -e's/^.*inet6 \([^ ]*\)\/.*$/\1/;t;d')
ipv4intr=$(ifconfig venet0:0 | grep 'inet addr' | cut -d ':' -f 2 | cut -d ' ' -f 1)
nodeaddr=$(wget -qO- ipecho.net/plain)
ports=${ipv4intr#*.*.*.}
echo Your external IPv6 address is:
@wknowles
wknowles / 0_reuse_code.js
Created January 28, 2017 09:59
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