Shahed Nasser has created a Chrome extension that will let you enable Grammarly in Ghost as well!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2024-09-25T14:44:09.381Z [INFO] OpenTofu version: 1.8.2 | |
2024-09-25T14:44:09.381Z [DEBUG] using github.com/hashicorp/go-tfe v1.36.0 | |
2024-09-25T14:44:09.381Z [DEBUG] using github.com/opentofu/hcl/v2 v2.0.0-20240416130056-03228b26f391 | |
2024-09-25T14:44:09.382Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1 | |
2024-09-25T14:44:09.382Z [DEBUG] using github.com/zclconf/go-cty v1.14.4 | |
2024-09-25T14:44:09.382Z [INFO] Go runtime version: go1.21.11 | |
2024-09-25T14:44:09.382Z [INFO] CLI args: []string{"tofu", "plan", "-input=false", "-lock=false", "-out=spacelift.plan"} | |
2024-09-25T14:44:09.383Z [INFO] Loading CLI configuration from /home/spacelift/.terraformrc | |
2024-09-25T14:44:09.384Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2024-09-25T14:44:09.384Z [DEBUG] ignoring non-existing provider search directory /home/spacelift/.terraform.d/plugins |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// See: https://kentcdodds.com/blog/profile-a-react-app-for-performance#build-and-measure-the-production-app | |
// See: https://nextjs.org/docs/api-reference/next.config.js/custom-webpack-config | |
const TerserPlugin = require('next/dist/compiled/terser-webpack-plugin'); | |
module.exports = { | |
webpack: (config, options) => { | |
// | |
// Use profiler-enabled React builds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// F12 Dev Tools and copy and paste into console! | |
// Stretches studio player 100% and chat below. | |
var studioPlayer = document.querySelector("studio-player"); | |
var studioVideo = document.querySelector( | |
".home-page__live-stream--content__video" | |
); | |
var chat = document.querySelector(".home-page__live-stream__info"); | |
if (studioPlayer && studioVideo && chat) { | |
studioPlayer.style.display = "block"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Collect top-level YAML files under plays/ folder | |
# e.g. plays/upgrade_ansible_tower/upgrade_ansible_tower.yml | |
# These should only be Ansible playbook files | |
# i.e. store includes in child includes/ dir | |
playbooks := $(wildcard plays/*/*.yml) | |
# Check YAML syntax using ansible-playbook | |
syntax: $(playbooks) | |
@GREEN='\033[0;32m'; \ | |
NC='\033[0m'; \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Downloads a blob item from TFS Git LFS | |
.DESCRIPTION | |
This script performs a 4-step process to download a LFS-hosted file from TFS. It fetches the item metadata | |
then downloads the LFS pointer. After it validates the pointer file, it preps a LFS batch download and finally | |
downloads the file to the specified OutFile. You can use this cmdlet in a pipeline as it passes a Get-Item call | |
at the end. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConfigSecretsProvider : ISecretsProvider | |
{ | |
private readonly NameValueCollection _secretCollection; | |
public ConfigSecretsProvider() { | |
_secretCollection = ConfigurationManager.GetSection("appSecrets") as NameValueCollection; | |
} | |
public string GetSecret(string key) { | |
return Environment.GetEnvironmentVariable(key) ?? _secretCollection[key]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Microsoft Limited Permissive License (Ms-LPL) | |
This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software. | |
1. Definitions | |
The terms “reproduce,” “reproduction,” “derivative works,” and “distribution” have the same meaning here as under U.S. copyright law. | |
A “contribution” is the original software, or any additions or changes to the software. | |
A “contributor” is any person that distributes its contribution under this license. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestingContext { | |
private IKernel _kernel; | |
public TestingContext() { | |
// create initial Strict mock that can always be setup outside impersonation context | |
UserContext = new Mock<IUserContext>(MockBehavior.Strict); | |
// register dependencies | |
_kernel = CreateKernel(); |
NewerOlder