Daniel's Weblog
Posts Tags Colophon
About

Tags / Posts

Hugo Blog Setup

Mar 31, 2018


Hugo is installed on webserver, blog exists in git repository in /home/djbeadle/blog.

The git repository is synchronized via GitHub, for easy editing a copy exists on my laptop.

To author a new blog post on laptop:

  1. Open MacDown
  2. Write!
  3. Save to /Users/Djbeadle/Sites/blog/content/post/[NEW-POST].md
  4. Commit [NEW-POST]
  5. ./update_blog.sh

update_blog.sh logs in to the webserver using SSH keys, updates the repository, clears the public directory and then updates it with the new content.

#!/bin/bash
git -C /Users/Djbeadle/Sites/blog push
ssh website "
    git -C /home/djbeadle/blog pull 
    cd /home/djbeadle/blog
    rm -rf /var/www/blog/*
    rm -rf /home/djbeadle/blog/public/
    hugo
    cp -r /home/djbeadle/blog/public/* /var/www/blog/
"
Dev Enviroment

Mar 31, 2018


Mostly for my own future reference:

13" Retina MacBook Pro 2014
2.8 GHz Intel Core i5
16 GB RAM, 256 GB

Hardware Tinkering Stuff:

CoolTerm: Simple graphical terminal emulator

SerialTools: Available on the Mac App store. Nifty little terminal emulator.

Etcher: Burn SD cards and USB drives with great ease.

Fritzing: For diagrams

Arduino: Both vanilla and with the ESP8266 Arduino Core

Raspberry Pi:

PiBakery: Easy way to configure SD card images

ApplePiBaker: Easy GUI to backup Raspberry Pi SD cards

Communications

Airmail: Gmail-centric email client. Great with lots of accounts.

Textual: For the occasional IRC chat.

Thunderbird: solely for mail merges. Best way to get people to respond? An email with their name on the very first line.

Keybase: Because I like the idea of privacy. How often do I actually use it? Rarely.

Browser

Firefox: Love the browser, love Mozilla. With these settings performance on Mac is much improved.

Media

Spotify: I will be very dissapointed when my half-price student subscription runs out.

Fog: Unofficial Electron based client for the Overcast podcast app.

Boom 2: System wide equalizer for macOS

File Management

Compare Folders: Does exactly what the name implies.

Disk Inventory X: I always seem to run out of disk space.

FileZilla: For all of your file transferring needs.

ImageOptim: Everything going on a webpage goes through this first.

Text Editors

MacDown: Wrote this with MacDown!

Sublime Text & Visual Studio Code: Haven’t settled on one or the other.

Dev

Macports

Homebrew

Other:

Workspaces: “Remembers your stuff. Launches it for you”

Amphetamine: Keeps your Mac awake.

TinkerTool: Great for modifying harmless macOS settings that aren’t exposed via Control Panel.

  • Finder > Show hidden and system files
  • Dock > Disable animation when hiding or showing the dock
  • Dock > Disable delay when showing hidden dock

OpenEMU: Still haven’t beat FireRed yet.

Better Touch Tool: Gestures. All the gestures.

Deliveries: And it’s corresponding iOS app

VMware Fusion: Expensive, but useful.

Web Server Settings

Mar 31, 2018


Some config settings, nothing crazy but it took me a while to figure out.

Ubuntu 17.10
Artful Aardvark

Exposed Services:

Grafana: https://danielbeadle.net/stats

Virtual Radar Server (VRS): https://danielbeadle.net/radar

Grafana:

The important details of /etc/grafana/grafana.ini:

[server]
protocol = http
http_port = 3000
domain = danielbeadle.net
root_url = http://danielbeadle.net/stats

Apache:

/etc/apache2/sites-enabled/danielbeadle.net.conf:

TODO*: This doesn’t properly redirect HTTP requests to HTTPS.*

<VirtualHost [DOMAIN_NAME]:80>
    ServerName [DOMAIN_NAME]
    DocumentRoot [WEBSITE_PATH]
</VirtualHost>

<IfModule mod_ssl.c>
<VirtualHost [DOMAIN_NAME]:443>
    ServerName [DOMAIN_NAME]

    ServerAdmin [EMAIL]
    DocumentRoot [WEBSITE_PATH]

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /blog [BLOG_PATH]
    <Directory [BLOG_PATH]>
        Options MultiViews Indexes Includes FollowSymLinks ExecCGI
        AllowOverride All
        Require all granted
        allow from all
    </Directory>
    
    # Reverse Proxy to Grafana:
    ProxyPass /stats http://localhost:3000
    
    # Reverse Proxy to Virtual Radar Server
    ProxyPass /radar http://danielbeadle.net:8080/VirtualRadar

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]

# Letsencrypt files for HTTPS:
SSLCertificateFile [path to fullchain.pem]
SSLCertificateKeyFile [path to privkey.pem]
Include [path to options-ssl-apache.conf]
</VirtualHost>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Lehigh Links

Mar 10, 2018


General Reference:

Roomfinder:

A map of all the building and rooms on campus with a search tool. https://gisweb2.cc.lehigh.edu/roomfinder/default.aspx

Computer Lab usage

Want to see if there’s any free space in a computer lab? http://cf.lehigh.edu/pubsite/

https://lts.lehigh.edu/services/explanation/print-email-lts-printers

Listserv

https://lists.lehigh.edu/mailman/listinfo/

Public Google Calendars:

Lehigh calendars that you can add to your own calendars! http://lts.lehigh.edu/services/explanation/lehigh-pubilc-calendars-google-apps-help

Media:

Flickr Pages

Lehigh University:

https://www.flickr.com/photos/lehighuniversity

Lehigh Engineering:

https://www.flickr.com/photos/lehighengineering

Special Collections:

https://www.flickr.com/photos/143267113@N08

Baker Institute:

https://www.flickr.com/photos/lehighbakerinstitute

Tumblr:

Scenes from South Mountain:

http://lehighu.tumblr.com

Twitter:

Twitter list of Lehigh University Colleges, People, Orgs, etc:

https://twitter.com/djbeadle/lists/lehigh-orgs-and-people

News:

Greek Life Blog:

http://lehighgreeks.blogspot.com

Interesting Network Stuff:

Lehigh Grafana

https://grafana.cc.lehigh.edu

The Server of Moria

http://moria.cse.lehigh.edu

Lehigh Network Information Page

More info about Lehigh’s network setup than you ever wanted to know, including some good photos of network hardware in the various buildings over the years. http://www.lehigh.edu/~insna/

Lehigh Network Statistics

Want to know the total traffic going in and out of Lehigh’s network? The number of users on the VPN? The average age of Cisco switches? Must be on the Lehigh network to access. https://rover.cc.lehigh.edu/network/

Wireless Network Statistics by Building

https://ss.cc.lehigh.edu/woc/

Other:

Info on Phones

If you dial “0” on the dorm phones during business hours and ask the operator “What phone number am I calling from?” they’ll tell you. https://rover.cc.lehigh.edu/extensions.txt

Lost Forest Map:

https://www.google.com/maps/d/u/0/viewer?mid=15I-WbirRcVLeIWGlnR2eXQRlr7E&ll=40.59645280422191%2C-75.37894257355651&z=17