Skip to content

Instantly share code, notes, and snippets.

Drinking refreshing JWT tokens

Chris S. yetanotherchris

Drinking refreshing JWT tokens
View GitHub Profile
yetanotherchris /
Last active Sep 19, 2019
Vue JS with ASP.NET Core - basic example

Vue JS with ASP.NET Core

These notes come with much appreciation from Packt's ASP.NET Core 2 and Vue.js, adapted for my use.

.NET Core currently (2.2) only ships with a React and Angular project template. There is a Vue one but it uses Typescript and for some unknown reason doesn't compile when you perform a "dotnet run".

Install the dotnet template

  • dotnet new --install Microsoft.AspNetCore.SpaTemplates::*
  • dotnet new vue
yetanotherchris /
Created Sep 8, 2019
Deconstructing views/components/services needed in Roadkill V3

This is based off the UI of Roadkill v2, with no new functionality or design.

Editor view

Global UI elements

These options could be in a hamburger bar:

  1. Page last edited by ____ on _____
  2. Page info dialog - added by + on, last edit by + on, title, tags, dates
yetanotherchris /
Created Jun 26, 2019
visualise github branch history
git log --oneline --graph --decorate --all
yetanotherchris /
Last active Jun 19, 2019
Git log prettier version
git log -n2 --pretty="format:[%cD] %an : %s"
View docker-ps.ps1
docker ps -a --format "table {{.ID}} \t {{.Image}} \t {{.Status}}"
View cidr-cheatsheet.txt
Netmask Netmask (binary) CIDR Notes
_____________________________________________________________________________ 11111111.11111111.11111111.11111111 /32 Host (single addr) 11111111.11111111.11111111.11111110 /31 Unuseable 11111111.11111111.11111111.11111100 /30 2 useable 11111111.11111111.11111111.11111000 /29 6 useable 11111111.11111111.11111111.11110000 /28 14 useable 11111111.11111111.11111111.11100000 /27 30 useable 11111111.11111111.11111111.11000000 /26 62 useable 11111111.11111111.11111111.10000000 /25 126 useable
yetanotherchris / powershell-rename
Created Apr 24, 2019
Bulk rename files using Powershell
View powershell-rename
get-childitem *.PNG | rename-item -NewName { $_.Name.Replace(".PNG", ".png") }
yetanotherchris /
Created Apr 8, 2019
Install .NET Core 2.2, Docker for Roadkill V3 on Ubuntu 18
wget -q
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get -y install apt-transport-https
sudo apt-get -y update
sudo apt-get -y install dotnet-sdk-2.2
sudo apt-get -y install git
sudo apt-get -y install
sudo usermod -aG docker $USER.
git clone
sudo docker run -d -p 5432:5432 --name roadkill-postgres -e POSTGRES_USER=roadkill -e POSTGRES_PASSWORD=roadkill postgres
yetanotherchris / git-config.ps1
Created Apr 3, 2019
Set git to use a different email (per repository)
View git-config.ps1
git config --local ""
yetanotherchris / DynamoDbRepositoryTests.cs
Created Oct 17, 2018
Integration testing DynamoDB withamazon/dynamodb-local on Docker
View DynamoDbRepositoryTests.cs
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Amazon.DynamoDBv2;
using Amazon.DynamoDBv2.Model;
using AutoFixture;
using Shouldly;
using Xunit;
namespace SomeTests
You can’t perform that action at this time.