Skip to content

Commit

Permalink
feat: ✨ add new doc sections, fix gitter style, fix searchbox alignme…
Browse files Browse the repository at this point in the history
…nt. woot woot
  • Loading branch information
sheldonhull committed Oct 31, 2020
1 parent b6ee917 commit 4c7d920
Show file tree
Hide file tree
Showing 14 changed files with 154 additions and 29 deletions.
4 changes: 2 additions & 2 deletions Taskfile.yml
@@ -1,6 +1,6 @@
# demo https://github.com/go-task/examples/blob/master/go-web-app/Taskfile.yml

version: '2'
version: '3'
env:
# HUGO: /usr/bin/hugo
HUGO: hugo
Expand Down Expand Up @@ -43,7 +43,7 @@ tasks:
HUGO_DESTINATION: "public"
#ALGOLIA_ADMIN_KEY: SET IN LOCAL ENVIRONMENT ONLY
cmds:
- $HUGO --enableGitInfo --gc
- $HUGO --enableGitInfo --gc --cleanDestinationDir
init:
desc: Initialize project to ensure dependencies, submodules, and tooling is ready
cmds:
Expand Down
3 changes: 2 additions & 1 deletion assets/scss/hermit-custom.scss
Expand Up @@ -35,6 +35,7 @@
// font-family: 'Monoton', cursive;
// font-size:130px;
// color: #FFD5FF;
font-size:1.5em!important;
font-weight: 400;
letter-spacing: 8px;
text-shadow: 1px 0px 4px #03edf9, 2px 0px 4px #03edf9, 3px 0px 4px #03edf9, 2px 0px 3px $theme, 2px 3px 15px $theme, 2px 0px 15px, 5px 0px 125px, 20px 0vw 200px $theme,40px 0vw 200px $theme;
Expand Down Expand Up @@ -100,4 +101,4 @@
background-size: auto;
background-position: center;
transition: opacity .5s;
}
}
19 changes: 12 additions & 7 deletions assets/scss/search.scss
Expand Up @@ -11,22 +11,26 @@ body {
.search-button {
margin-top: 25px;
margin-right: 25px;
width: 250px;
width: 25%;
z-index: 10;
position: absolute;
right: 0;
top: 0;
position:absolute;
position: -webkit-sticky;
display:block;
right: 0!important;
top: 0!important;
// float: none;


@media screen and (min-width: 768px) {
float: none;
display:inline;
display:inline-block;

}

&.consolidated {
display: inline-block;

@media screen and (min-width: 1016px) {
display: none;

}
}

Expand All @@ -44,6 +48,7 @@ body {

@media screen and (min-width: 768px) {
top: -1px;

}

.search-icon-circle {
Expand Down
7 changes: 4 additions & 3 deletions assets/scss/style.scss
Expand Up @@ -454,14 +454,15 @@ pre {
#home-title {
margin: 0;
text-align: center;

}

#home-subtitle {
margin-top: 0;
margin-bottom: 1.5em;
margin-top: 1em;
margin-bottom: 1em;
text-align: center;
line-height: normal;
font-size: .7em;
font-size: .9em;
font-style: italic;
opacity: .9;
}
Expand Down
1 change: 1 addition & 0 deletions build/tasks/hugo.tasks.ps1
Expand Up @@ -130,6 +130,7 @@ task netlify-build {
}

task algolia-update {
Write-Warning 'Use task build-algolia algolia for this'
#$ENV:ALGOLIA_INDEX_FILE = 'public/algolia.json'
#npm run algolia "$BuildRoot/public/algolia.json"
npm run algolia "$BuildRoot/_site/algolia.json"
Expand Down
2 changes: 1 addition & 1 deletion config.yml
Expand Up @@ -115,6 +115,7 @@ params:
RSSSection:
- blog
- microblog
- docs
rssmicroblogtitles: true
RSSEnabled: true
rssLimit: 15
Expand All @@ -139,7 +140,6 @@ params:
- tags
themeColor: '#22252e'
homeSubtitle:
- "Developer & Reticulator Of Splines"
- "For dropping by, here's some emoji tacos 🌮🌮🌮"
footerCopyright: '&#183; <a href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank" rel="noopener">CC BY-NC 4.0</a>'
bgImg: images/2016-04-27_17-27-07_circular.jpg
Expand Down
23 changes: 13 additions & 10 deletions content/about.md
Expand Up @@ -4,12 +4,17 @@ layout: single
title: About
slug: about
excerpt: about me
last_modified_at: 2019-02-21T00:00:00.000+00:00
sidebar: []
author_profile: false
comments: true

---

## Want to Talk

Add a comment to any of the pages at the bottom and it will open up a GitHub issue to have a public discussion.
If you like chatting realtime, look at the bottom of the page for "Open Chat" and let's talk using Gitter (only need GitHub auth as well).

## Core Values

I live as a follower of Christ, desiring to impact the world around with who He is. I'm an unashamed disciple and though I've got plenty I mess up, following Him is my joy. I'm passionate about worship through music, and have played and led worship team for a number of years. Currently, I've been enjoying playing electric. This had challenged me to play in a completely different way than acoustic, as the melodic nature of the electric guitar parts bring a subtle but powerful part to a worship band.
Expand All @@ -20,25 +25,23 @@ I've been blessed with 3 kids and a wonderful wife Sarah who has brought beauty

## Work

{{<button href="https://ceev.io/@sheldonhull" theme="success">}} Professional Profile // Resume {{< /button >}}
{{<button href="https://stackoverflow.com/story/sheldonhull" theme="success">}} StackOverflow Developer Story {{< /button >}}

I've summed up more detail there, than in this spot, so take a peek at that if you want a professional run down.

I ♥ code.

Software, Infrastructure-as-code, Compliance-as-code, my resume as code... you name it 😁
I ♥ code. Software, Infrastructure-as-code, Compliance-as-code, my resume as code... you name it 😁

I also think the world needs more emojis and tacos 🌮🌮🌮
I also think the world needs more emojis and tacos 🌮🌮🌮 to lighten things up.

## Other Interests

My passions extend beyond technology into the creative realm as well. I've enjoyed doing videography, photography, and creating music. Electric & acoustic guitar have always been a passion. I'm a sucker for good post-rock music, which I think is the best type of music for coding around.
My passions extend beyond technology into the creative realm as well.
I've enjoyed doing videography, photography, and creating music.
Electric & acoustic guitar have always been a passion.
I'm a sucker for good post-rock music, which I think is the best type of music for coding around.

### Music - On Desk

If you want to check out some new music, this is my up to date "on deck" playlist of music I rock out to.

{{< rawhtml >}}
<iframe src="https://open.spotify.com/embed/playlist/6iTEfldMfbgbuUwzSdib4X" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
{{< /rawhtml >}}
{{< /rawhtml >}}
4 changes: 4 additions & 0 deletions content/docs/_index.md
Expand Up @@ -8,3 +8,7 @@ date: 2019-02-19
toc: false
---

This is a compilation of what's more like "cheatsheets" than docs.
I like adding snippets and concepts here and there when explaining things to others and for myself so I don't have to relearn those things that just don't click.

Dash and Vscode snippets are great for this as well, but a simple markdown file sometimes is the easiest way to persist something.
1 change: 0 additions & 1 deletion content/docs/awspowershell.md
Expand Up @@ -3,7 +3,6 @@ title: "AWSPowershell"
slug: "awspowershell"
permalink: /docs/awspowershell/
excerpt: "A cheatsheet and quick start reference for working with AWSPowershell"
last_modified_at: 2020-05-05
date: 2019-02-19
toc: true
comments: true
Expand Down
1 change: 0 additions & 1 deletion content/docs/dbatools.md
Expand Up @@ -2,7 +2,6 @@
title: "dbatools"
slug: "dbatools"
date: '2019-03-11'
last_modified_at: '2019-03-11'
toc: true
excerpt: A cheatsheet and quick start reference for working with dbatools
permalink: /docs/dbatools/
Expand Down
67 changes: 67 additions & 0 deletions content/docs/go.md
@@ -0,0 +1,67 @@
---
title: go
date: 2020-10-30
toc: true
excerpt:
A cheatsheet to update with what I pickup with Go that I likely need to reference again as a new gopher.
slug: go
permalink: /docs/go
comments: true
tags:
- development
- golang
---


## Starter Template

I saved this as a snippet for vscode to get up and running quickly with something better than the defaults for handling `func main` isolation.
I've been working on modifying this a bit as I don't really like using args, but am trying not to overcomplicate things as a new gopher.

I tend to like better flag parsing than using args, but it's still a better pattern to get functions isolated from main to easily test.

The gist that I've taken from this and discussions in the community is ensure that `main` is where program termination is dedicated instead of handling this in your functions.
This isolation of logic from main ensures you can more easily setup your tests as well, since `func main()` isn't testable.

```go
package main

// package template from:
import (
"errors"
"fmt"
"io"
"os"
)

const (
// exitFail is the exit code if the program
// fails.
exitFail = 1
)

func main() {
if err := run(os.Args, os.Stdout); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)
os.Exit(exitFail)
}
}

func run(args []string, stdout io.Writer) error {
if len(args) == 0 {
return errors.New("no arguments")
}
for _, value := range args[1:] {
fmt.Fprintf(stdout, "Running %s", value)
}
return nil
}

```

## Puzzles - FizzBuzz

I honestly had never done any algorithm or interview puzzles beyond sql-server, so I was really happy to knock this out relatively easily.
At least I pass the basic Joel test 😁

{{< gist "25309ea04d1646f26bc0f4a54e0f16af" >}}
8 changes: 7 additions & 1 deletion content/docs/powershell.md
@@ -1,5 +1,4 @@
---
last_modified_at: 2020-05-08T05:00:00+00:00
title: powershell
date: 2019-03-19
toc: true
Expand Down Expand Up @@ -411,3 +410,10 @@ For quick access, save this to a Visual Studio Code snippet like below:
]
}
```

## Puzzles - Fizz Buzz

I did this to participate in Code Golf, and felt pretty good that I landed in 112 🤣 with this.
Really pains me to write in the code-golf style.

{{< gist "3ea6fd6cafe210edb1d71b5e8d3d1696" >}}
29 changes: 29 additions & 0 deletions content/docs/shell.md
@@ -0,0 +1,29 @@
---
title: shell
date: 2020-10-30
toc: true
excerpt:
A cheatsheet for some bash stuff. I really ♥️ pwsh... but acknowledge it's not everyone's cup of tea.
This page helps me get by with being a terrible basher
slug: shell
permalink: /docs/shell
comments: true
tags:
- development
- shell
---


## Installing go-task

This tool is great for cross-platform shell scripting as it runs all the commands in the `Taskfile.yml` using a built in go shell library that supports bash syntax (and others).

Quickly get up and running using the directions here: [Install Task](https://github.com/go-task/task/blob/master/docs/installation.md)

```shell
# For Default Installion to ./bin with debug logging
sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d
# For Installation To /usr/local/bin for userwide access with debug logging
# May require sudo sh
sh -c "$(curl -ssL https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
```
14 changes: 12 additions & 2 deletions layouts/partials/gitter.html
@@ -1,5 +1,5 @@
<button class="js-gitter-toggle-chat-button">Want to chat with me?</button>
<button class="js-gitter-toggle-chat-button" data-gitter-toggle-chat-state="true">Open Chat</button>
<!-- <button class="js-gitter-toggle-chat-button">Want to chat with me?</button>
<button class="js-gitter-toggle-chat-button" data-gitter-toggle-chat-state="false">Close Chat</button>
<script>
Expand All @@ -8,4 +8,14 @@
activationElement: false
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script> -->

<script>
((window.gitter = {}).chat = {}).options = {
room: 'sheldonhull/community'
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
<style>

</style>

0 comments on commit 4c7d920

Please sign in to comment.