Monoliths are back in vogue.
Homelab: Network Infrastructure
This covers a "rebuild" of an existing network, which previously occupied a single sub-net. This is coupled with 10G hardware from Ubiquity and a pfSense router to provide advanced capabilities to various VLANs.
pfSense: Interfaces & VLANs
The following were configured inside pfSense which acts as the primary router/firewall designated
Hardware & Interfaces
- Intel 6700K CPU
- Asus Z170 Prime-A mainboard
- StarTech.com Dual Port PCI Express (PCIe x4) Gigabit Ethernet Server Adapter - 2 Port Network Card - Intel i350 NIC - GbE Network Card (ST2000SPEXI) (Amazon)
- Intel X550-T2 10G NIC
- WAN em0 // 1G NIC on mainboard
- LAN ix0 // 10.10.0.0
- UniFi // 10.10.1.0
- UniFi Cloud Key // 10.10.1.3
- LAN2 igb1 // 10.10.2.0 -- This is purely a convenience 'console' port for tro ...(continued)
Here are a couple videos to help you get started with the basic building blocks on working with React and Redux, without the barrier of TypeScript.
React & Redux
- 1 to 15, then optionally 21
Complete React Tutorial (& Redux ) #1- Introduction https://www.youtube.com/watch?v=OxIDLw0M-m0
Watch episode 34 to 44
Complete React Tutorial (& Redux) #34 - Introduction to Redux https://www.youtube.com/watch?v=HKU24nY8Hsc
Watch episodes 3, 11-17,
React, Redux & Firebase App Tutorial #3 - Setting Up https://www.youtube.com/watch?v=r5b0spRlnlU
Picking up Rematch is pretty easy with the additional content linked.
Once pfsense is running, drop into a console as root (or SSH in) and run the following. Then reboot!
pkg install xe-guest-utilities echo 'xenguest_enable="YES"' >> /etc/rc.conf.local ln -s /usr/local/etc/rc.d/xenguest /usr/local/etc/rc.d/xenguest.sh service xenguest start
Thanks to Tom for this bit of info.
First enauble auto-start on the pool
[root@xenserver-master ~]# xe pool-list uuid ( RO) : f80d49bb-2b56-4255-25bf-ff287f4865b1 name-label ( RW): name-description ( RW): master ( RO): 1b41d284-4353-414d-8a5d-6d8974b2cf94 default-SR ( RW): fb46ee13-a1c3-646f-1db6-bdcf86d29580 [root@xenserver-master ~]# xe pool-param-set uuid=f80d49bb-2b56-4255-25bf-ff287f4865b1 other-config:auto_poweron=true
Then, select the particular VM you want to auto-start and specify its UUID. In this case, we are getting the docker0 VM to autostart.
[root@xenserver-master ~]# xe vm-list uuid ( RO) : 0c9a4c24-07df-494b-805d-464da4a45af8 name-label ( RW): ansible-tower power-state ( RO): halted uuid ( RO) : 17fc6df5-8f43-6cc6-69f9-08a9246d8634 name-label ( RW): docker0 power-state ( RO): running [root@xenserver-master ~]# xe vm-param-set uuid=17fc6df5-8f43-6cc6 ...(continued)
This is a quick "hello world". Yay.
This is based on a guide on the Ubnt forums.
Log into your Edgerouter and run the following -
sudo -i && vi /config/user-data/update-adblock-dnsmasq.sh
This will switch you to the root user and open up
#!/bin/bash ad_list_url="http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&mimetype=plaintext" #The IP address below should point to the IP of your router or to 0.0.0.0 pixelserv_ip="0.0.0.0" ad_file="/etc/dnsmasq.d/dnsmasq.adlist.conf" temp_ad_file="/etc/dnsmasq.d/dnsmasq.adlist.conf.tmp" curl -s $ad_list_url | sed "s/127\.0\.0\.1/$pixelserv_ip/" > $temp_ad_file if [ -f "$temp_ad_file" ] then #sed -i -e '/www\.favoritesite\.com/d' $temp_ad_file mv $temp_ad_file $ad_file else echo "Error building the ad list, please try again." exit fi /etc/init.d/dnsmasq force-reload
sudo -i chmod a+x /config/user-data/up ...(continued)
If you download the image directly, it's a simple matter of using Etcher or using
dd in Linux/Mac to burn the image to an SD card.
Start off by running the configurator with
Let's start by running some updates and installing some handy tools — these are some of my favourites and I can't do without them -
apt-get update -y && apt-get install -y \ curl \ wget \ git \ vim \ htop \ tmux \ unzip \ libssl-dev \ libffi-dev \ python \ python-dev \ python-pip \ python3-dev \ ...(continued)
- You can get US$200 for FREE from Amazon. Cold hard cash.
- Using BrowserSync and Gulp with the Rails Asset Pipeline
- HOWTO: Providing Clients with an IAM Account to Manage Billing & Payment Methods for their Root AWS Account
- Sneak Peak: Building a Ruby Gem to Provision Amazon AWS Services
- Feeling Refreshed, Back from Taking Time Off (April 2016)
- Dissecting The Latest Spree and Solidus API Security Vulnerability
- Autoglym Product Reviews, Now Get Replies
- Freelance 101: Early Warning Signs of a Troublesome Client
- Reaching Half a Million Views on YouTube
- Stripping sensitive details copied from terminal STDOUT by piping via sed in Mac OS X
- Faking APIs in Development and Staging
- When that Startup Interviewer cares more about where you're from
- Suits is back, with Season 5 and Under the Dome
- Improving my Dockerised App stack
- Jack Dorsey is CEO at Twitter, so here's a TODO list
- Replace a MySQL table in Production via a Rails 4 Migration
- Converting SVG to PNG via Linux CLI
- Getting Resque, Rails 4.2, and Unicorn to play nice
- My favourite Docker productivity tips
- Now with Resque & Redis for hooking up with Mailchimp
- Just built a Ruby 2.2.1 compatible Mailchimp wrapper