Skip to content

Instantly share code, notes, and snippets.

View jasonchester's full-sized avatar

Jason Chester jasonchester

  • Brandmuscle
  • Cleveland, OH
View GitHub Profile
@jasonchester
jasonchester / Dockerfile
Created November 11, 2019 16:21
Dockerfile OCI Labels
...
LABEL org.opencontainers.image.created
LABEL org.opencontainers.image.url
LABEL org.opencontainers.image.source
LABEL org.opencontainers.image.version
LABEL org.opencontainers.image.revision
LABEL org.opencontainers.image.vendor
LABEL org.opencontainers.image.title
@jasonchester
jasonchester / azure-pipelines.yml
Created June 24, 2019 22:01
Publish to Azure Artifacts Powershell Gallery Workaround
jobs:
- job: PublishScripts_LocalRepo
pool:
vmImage: 'vs2017-win2016'
steps:
- pwsh: |
Install-Module -Name PackageManagement -Force -AllowClobber
Install-Module -Name PowerShellGet -Force -AllowClobber
displayName: Update PackageManagement
function Get-Als () {
Add-Type -AssemblyName System.Web
$query = [System.Web.HttpUtility]::UrlEncode( @'
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?human ?humanLabel ?humanDescription ?image ?linkcount ?date_of_birth ?date_of_death WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?human wdt:P31 wd:Q5.
?human wdt:P735 wd:Q18916867.
?human wdt:P18 ?image.
$config = ([XML](Get-Content -Path "$env:APPDATA\NuGet\nuget.config"))
Add-Type -AssemblyName 'System.Security'
function Decrypt-NugetPassword ([string] $encryptedString)
{
$entropyBytes = [System.Text.Encoding]::UTF8.GetBytes('NuGet')
$encryptedBytes = [Convert]::FromBase64String($encryptedString)
$passwordBytes = [System.Security.Cryptography.ProtectedData]::Unprotect($encryptedBytes, $entropyBytes, [System.Security.Cryptography.DataProtectionScope]::CurrentUser)
return [System.Text.Encoding]::UTF8.GetString($passwordBytes)
@jasonchester
jasonchester / commit-msg
Created May 10, 2017 20:42 — forked from philmtd/commit-msg
Git hook to replace a "wtc" commit message with a random whatthecommit.com message.
#!/bin/bash
comm_msg="$(cat $1)"
if [ "$comm_msg" = "wtc" ]; then
curl -L whatthecommit.com/index.txt > $1
fi
Name Component Path
Index Route (JC Dashboard) /
Login -> NotLoggedIn /login
Logout /logout
FourOhFour /l;kjfal;skfj ->
Search Form /search
Search Results /search?q={QUERY}
My Book /my-book
Create Guest /guest/create
{
application: {
routing: {},
header: {},
login: {},
},
currentStore: {
storeNumber: number,
logo: string,
interface GemState {
application: ApplicationState,
currentStore: CurrentStoreState,
user: UserStoreState,
search: any,
forms: any,
viewData: any,
guests: any,
draftGuests: any
}
{
models: {
guest: {
view: {},
edit: {}
},
relationships: {
view: {},
edit: {}