Skip to content

Quickupdate #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 22 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/azure-static-web-apps-icy-field-0bd9e4d00.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Azure Static Web Apps CI/CD

on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main

jobs:
build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ICY_FIELD_0BD9E4D00 }}
repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match your app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "/" # App source code path
api_location: "api" # Api source code path - optional
output_location: "" # Built app content directory - optional
###### End of Repository/Build Configurations ######

close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ICY_FIELD_0BD9E4D00 }}
action: "close"
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ _site
# general
.DS_Store
Thumbs.db
ehthumbs.db
ehthumbs.db

# Azurite
__azurite_db_blob__.json
__azurite_db_blob_extent__.json

__blobstorage__/
33 changes: 33 additions & 0 deletions Dads-mental-health.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>

<head>
<title>Mental health retreat for dads</title>
<meta charset="utf-8">
<meta name="description" content="Mental health retreat for dads">

<meta property="og:site_name" content="stuarteggerton.com" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="https://stuarteggerton.com/logo.png" />
<meta property="og:image" content="https://stuarteggerton.com/logo.png" />
<meta property="og:url" content="https://stuarteggerton.com" />
<meta name="twitter:url" content="https://stuarteggerton.com" />
<meta property="og:title" content="Mental health retreat for dads" />
<meta name="twitter:title" content="Mental health retreat for dads" />
<meta property="og:description" content="Mental health retreat for dads" />
<meta name="twitter:description" content="Mental health retreat for dads" />
<meta property="og:ignore_canonical" content="true" />
</head>

<body>
<a style="position: absolute;" href="/help/"></a>
<a style="position: absolute;" href="/azure/"></a>
<script>
location = "https://www.youtube.com/watch?v=xvFZjo5PgG0";
</script>
<noscript>
<p>You need to enable JavaScript...../</p>
</noscript>
</body>

</html>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

> *Copyright 2018 [Dean Attali](http://deanattali.com)*

**Beautiful Jekyll** is a ready-to-use template to help you create an awesome website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](http://deanattali.com/beautiful-jekyll) of what you'll get after just two minutes. You can also look at [my personal website](http://deanattali.com) to see it in use, or see examples of websites other people created using this theme [here](#showcased-users-success-stories).
**Beautiful Jekyll** is a ready-to-use template to help you create an awesome website quickly. Perfect for personal sites, blogs, or simple project websites. [Check out a demo](http://deanattali.com/beautiful-jekyll) of what you'll get after just two minutes. You can also look at [my personal website](http://deanattali.com) to see it in use, or see examples of websites other people created using this theme [here](#showcased-users-success-stories)..

**If you enjoy this theme, please consider [supporting me](https://www.paypal.me/daattali/20) for developing and maintaining this template.**

Expand Down
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ social-network-links:
linkedin: seggerton
# xing: yourname
stackoverflow: "3045411/stuarteggertonagilecoder"
mastodon: "@cloudy_stuey"
# snapchat: deanat78
# instagram: deanat78
# youtube: user/deanat78
Expand Down
5 changes: 5 additions & 0 deletions _data/SocialNetworks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ twitter:
baseURL: "https://twitter.com/"
icon: "fa-twitter"

mastodon:
name: "Mastodon"
baseURL: "https://mastodon.online/"
icon: "fa-brands fa-mastodon"

reddit:
name: "Reddit"
baseURL: "https://reddit.com/u/"
Expand Down
9 changes: 9 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@
{% endif %}
{% endif%}
</p>

<script src="https://utteranc.es/client.js"
repo="gitstua/gitstua.github.io"
issue-term="url"
theme="github-light"
crossorigin="anonymous"
async>
</script>

<!-- Please don't remove this, keep my open source work credited :) -->
<p class="theme-by text-muted">
Theme by
Expand Down
54 changes: 54 additions & 0 deletions _posts/2021-05-17-azure-devops-repos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
layout: post
published: true
title: List Azure DevOps Repos
date: '2021-05-17'
subtitle: Example of how to interact with Azure DevOps using the Azure CLI Example
---

## Problem
How do I get all the URLs for my repos in Azure DevOps?

## Solution
Use the [Azure DevOps CLI extension](https://docs.microsoft.com/en-us/azure/devops/cli/?view=azure-devops#:~:text=%20To%20start%20using%20the%20Azure%20DevOps%20extension,you%20set%20the%20default%20configuration%20for...%20More%20)

This is a sample PowerShell script

```
param( [string]$Organization )

$orgUrl = "https://dev.azure.com/$Organization"

# Ensure signed in to Azure
$AccountInfo = az account show 2>&1
try {
$AccountInfo = $AccountInfo | ConvertFrom-Json -ErrorAction Stop
}
catch {
az login --allow-no-subscriptions
}

$DevOpsExtension = az extension list --query '[?name == ''azure-devops''].name' -o tsv
if ($null -eq $DevOpsExtension) {
$null = az extension add --name 'azure-devops'
}

$Projects = az devops project list --organization $orgUrl --query 'value[].name' -o tsv
foreach ($Proj in $Projects) {
$Repos = az repos list --organization $orgUrl --project $Proj | ConvertFrom-Json
foreach ($Repo in $Repos) {
Write-Output $Repo.webUrl
}
}
```

Here is a sample showing output.
```
PS C:\Dev\ado-api> & .\getRepos.ps1
https://dev.azure.com/exampleorg/java-jsf1/_git/java-jsf1
https://dev.azure.com/exampleorg/Jan2021Example/_git/Jan2021Example
https://dev.azure.com/exampleorg/B2C%20Brownbag/_git/B2C%20Brownbag
```
## Credits
Thanks to Simon Wahlin for the [post](https://blog.simonw.se/cloning-all-repositories-from-azure-devops-using-azure-cli/)

15 changes: 15 additions & 0 deletions _posts/2021-07-20-remove-sensitive-github-commit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
published: true
title: Keep your secrets out of your source code
date: '2021-07-20'
subtitle: Protect your secrets and clean up if you accidentally over share
---

## Problem
We accidentally committed our secrets (password or secret key) to GitHub

## Solution
1. Prevent secrets from being committed: [avoid accidental commits](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository#avoiding-accidental-commits-in-the-future)
2. Clean up: Either use [BFG](https://stuarteggerton.com/2021-07-20-remove-sensitive-github-commit/) or see other methods to [remove sensitive data using](https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository)

1 change: 0 additions & 1 deletion aboutme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ subtitle: What about me?
My name is Stuart Eggerton. I have the following qualities:

- I love to break things to understand how they work
- I'm extremely loyal to my family
- I am motivated by working with and coordinating others to deliver things of value
- I like Agile
- I like Dev
Expand Down
33 changes: 33 additions & 0 deletions azure-tips.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>

<head>
<title>Amazing Azure Tips 2020 - making things easier</title>
<meta charset="utf-8">
<meta name="description" content="Amazing Azure Tips">

<meta property="og:site_name" content="stuarteggerton.com" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="https://stuarteggerton.com/logo.png" />
<meta property="og:image" content="https://stuarteggerton.com/logo.png" />
<meta property="og:url" content="https://stuarteggerton.com" />
<meta name="twitter:url" content="https://stuarteggerton.com" />
<meta property="og:title" content="Amazing Azure Tips for your success" />
<meta name="twitter:title" content="Amazing Azure Tips for your success" />
<meta property="og:description" content="Amazing Azure Tips for your success" />
<meta name="twitter:description" content="Amazing Azure Tips for your success" />
<meta property="og:ignore_canonical" content="true" />
</head>

<body>
<a style="position: absolute;" href="/help/"></a>
<a style="position: absolute;" href="/azure/"></a>
<script>
location = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
</script>
<noscript>
<p>You need to enable JavaScript...../</p>
</noscript>
</body>

</html>
1 change: 1 addition & 0 deletions loaderio-497f77b1410cdb263ffbf690fdc53e78.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
loaderio-497f77b1410cdb263ffbf690fdc53e78
33 changes: 33 additions & 0 deletions skip-training-videos.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html>

<head>
<title>How to skip the intro of any training video 2020 - making things easier</title>
<meta charset="utf-8">
<meta name="description" content="How to skip the intro of any training video">

<meta property="og:site_name" content="stuarteggerton.com" />
<meta name="twitter:card" content="summary" />
<meta name="twitter:image" content="https://stuarteggerton.com/logo.png" />
<meta property="og:image" content="https://stuarteggerton.com/logo.png" />
<meta property="og:url" content="https://stuarteggerton.com" />
<meta name="twitter:url" content="https://stuarteggerton.com" />
<meta property="og:title" content="How to skip the intro of any training video" />
<meta name="twitter:title" content="How to skip the intro of any training video" />
<meta property="og:description" content="How to skip the intro of any training video" />
<meta name="twitter:description" content="How to skip the intro of any training video" />
<meta property="og:ignore_canonical" content="true" />
</head>

<body>
<a style="position: absolute;" href="/help/"></a>
<a style="position: absolute;" href="/azure/"></a>
<script>
location = "https://www.youtube.com/watch?v=xvFZjo5PgG0";
</script>
<noscript>
<p>You need to enable JavaScript...../</p>
</noscript>
</body>

</html>