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
# HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation | |
# https://www.elevenforum.com/t/change-time-zone-in-windows-11.806/ | |
Get-TimeZone -name "E. Australia Standard Time" | |
Get-TimeZone -ListAvailable | |
tzutil /s "E. Australia Standard Time" |
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
// This sample is taken from Calum Simpson (https://www.ssw.com.au/people/calum-simpson/) | |
// from his user group talk Practical applications for GPT3 | Calum Simpson | Newcastle Coders Group (https://www.youtube.com/watch?v=_uzJTr1vC0o) | |
For the rest of the conversation you will follow these special extra instructions: For every prompt, give me the following 4 things instead of your regular response: | |
[💭 Assumptions] list assumptions made in the response | |
[💬 Response] as normal | |
[❌ Meta-Critique] critique the prompt and supplied result | |
[💡 Meta-Suggestions] provide suggestions to address critique | |
Now wait for my first prompt |
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
@model AddOrEditCodeToPost | |
@{ | |
ViewData["Title"] = "Blogs Admin"; | |
} | |
<h1>Add Code: @(Model.Data.BlogTitle)</h1> | |
<link rel="stylesheet" data-name="vs/editor/editor.main" href="https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.18.0/min/vs/editor/editor.main.css"> | |
<script>var require = { paths: { 'vs': 'https://cdnjs.cloudflare.com/ajax/libs/monaco-editor/0.18.0/min/vs' } };</script> |
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
#!/bin/sh | |
git for-each-ref --format '%(refname:short)' refs/heads | grep -v "master\|main" | xargs git branch -D |
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
reg delete HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\IrisService /f && shutdown -r -t 0 | |
https://answers.microsoft.com/en-us/insider/forum/all/fix-included-no-icons-on-task-bar-on-windows-11/9b580be3-080b-4897-a091-8aefdb6f5b6c |
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
gpg --full-generate-key | |
gpg --list-secret-keys --keyid-format long | |
gpg --armor --export xxxxxxxxxxxx | |
git config --list | |
git config --global commit.gpgsign true | |
git config --global user.signingKey xxxxxxxxxxx |
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
// -- adds a small bit of basic auth on the end point using this worker | |
const NAME = "Admin" | |
const PASS = "Admins Password for this webhook" | |
const AzDOHeaderName = "X-Hub-Signature" | |
const AzDOSecret = "MyWebhookSecret" | |
const AzDOOrgName = "beeming" | |
// -------------------------- |
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 Descriptors | |
{ | |
/* List | |
* ==== | |
* scp Project | |
* aad Azure Active Directory User | |
* msa Microsoft Account User | |
* aadgp Azure Active Directory Group | |
* vss Azure DevOps User | |
* svc Azure DevOps Service Identity |
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
az login | |
$ResourceGroupName = "mvpdays-rg" | |
az account list --output table | |
az account set --subscription "MVP - Dev Tech" | |
$CurrentAccount = az account show | Out-string | ConvertFrom-Json | |
$SubscriptionId = $CurrentAccount.id | |
$DeploymentServicePrincipalName = "$($ResourceGroupName)SP" | |
# Create a service principal |
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
sudo nano /etc/resolv.conf | |
nameserver to 8.8.8.8 | |
echo nameserver to 8.8.8.8 > /etc/resolv.conf | |
sudo nano /etc/wsl.conf | |
[network] | |
generateResolvConf = false |
NewerOlder