diff --git a/_config.yml b/_config.yml index d0182c0..b1fa03e 100644 --- a/_config.yml +++ b/_config.yml @@ -25,9 +25,10 @@ github_username: booboy # Build settings markdown: kramdown theme: minima + collections: -# 100-days-of-code: -# output: true + homelab: + output: true # Exclude from processing. # The following items will not be processed, by default. Create a custom list diff --git a/_posts/2019-01-27-homelab-squid-proxy-libvirt.markdown b/_homelab/2019-01-27-homelab-squid-proxy-libvirt.markdown similarity index 93% rename from _posts/2019-01-27-homelab-squid-proxy-libvirt.markdown rename to _homelab/2019-01-27-homelab-squid-proxy-libvirt.markdown index ae93fbc..822d3c0 100644 --- a/_posts/2019-01-27-homelab-squid-proxy-libvirt.markdown +++ b/_homelab/2019-01-27-homelab-squid-proxy-libvirt.markdown @@ -1,5 +1,5 @@ --- -layout: post +layout: homelab title: "homelab - squid proxy" date: 2019-01-27 categories: homelab @@ -19,18 +19,16 @@ the HTTP connections, for science! Also, for a fun bonus read that inspired me to read up and learn more about squid in particular is this really interesting write-up by Anthony Ferrara on how he hacked stackoverflow. Also some very good info on the `X-Forwarded-For` http header. I won't spoil how he gains admin access. Here is a [link](https://blog.ircmaxell.com/2012/11/anatomy-of-attack-how-i-hacked.html) to the writeup. * Code - [centos_squid_proxy](https://git.mcdevitt.tech/bpmcdevitt/homelab_scripts/tree/master/vagrant/centos_squid_proxy) -* Squid - http://www.squid-cache.org/Doc -* Vagrant - https://www.vagrantup.com -* X-Forwaded-For https://en.wikipedia.org/wiki/X-Forwarded-For +* Squid - +* Vagrant - +* X-Forwaded-For Shellscript to install squid in CentOS 7 (nice and simple): ```bash #!/usr/bin/env bash - # update yum sudo yum update -y - # install and enable squid proxy sudo yum -y install squid diff --git a/_layouts/homelab.html b/_layouts/homelab.html new file mode 100644 index 0000000..442c17e --- /dev/null +++ b/_layouts/homelab.html @@ -0,0 +1,6 @@ +--- +layout: default +--- +
+{{ content }} +
diff --git a/css/screen.css b/css/screen.css index dde5541..cf4acca 100644 --- a/css/screen.css +++ b/css/screen.css @@ -72,6 +72,21 @@ ul.posts { font-size: 80%; } +ul.homelab { + list-style-type: none; + margin-bottom: 2em; +} + + ul.homelab li { + line-height: 1.75em; + } + + ul.homelab span { + color: #aaa; + font-family: Monaco, "Courier New", monospace; + font-size: 80%; + } + /*****************************************************************************/ /* /* Site @@ -200,3 +215,62 @@ ul.posts { #related h2 { margin-bottom: 1em; } +/*****************************************************************************/ +/* +/* Homelab Posts +/* +/*****************************************************************************/ + +#homelab { + +} + + /* standard */ + + #homelab pre { + border: 1px solid #ddd; + background-color: #eef; + padding: 0 .4em; + } + + #homelab ul, + #homelab ol { + margin-left: 1.35em; + } + + #homelab code { + border: 1px solid #ddd; + background-color: #eef; + font-size: 85%; + padding: 0 .2em; + } + + #homelab pre code { + border: none; + } + + #homelab img { + max-width: 42em; + padding: 1em 0; + } + + /* terminal */ + + #homelab pre.terminal { + border: 1px solid black; + background-color: #333; + color: white; + } + + #homelab pre.terminal code { + background-color: #333; + } + +#related { + margin-top: 2em; +} + + #related h2 { + margin-bottom: 1em; +} + diff --git a/index.html b/index.html index c98dd80..918401f 100644 --- a/index.html +++ b/index.html @@ -10,3 +10,9 @@ title: brendan mcdevitt
  • {{ post.date | date_to_string }} » {{ post.title }}
  • {% endfor %} +

    Homelab Posts

    +
      + {% for post in site.homelab %} +
    • {{ post.date | date_to_string }} » {{ post.title }}
    • + {% endfor %} +