Skip to content

Instantly share code, notes, and snippets.

View dinowang's full-sized avatar
charging

Dino Wang dinowang

charging
View GitHub Profile
@dinowang
dinowang / standard.css
Created September 24, 2024 18:03
MARP
section {
background-image: linear-gradient(to bottom, #ffffff, #efefef);
justify-content: start;
}
section header {
background-color: #333;
padding: 8px 13px;
position: fixed;
top: -1px;
#!/bin/bash
az upgrade --all false
remote_versions=$(az extension list-available --query "[?installed].{name:name, version:version}")
local_versions=$(az extension list --query "[].{name:name, installed_version:version}")
versions=$(jq -n --argjson local "$local_versions" --argjson remote "$remote_versions" '
reduce $local[] as $l (
{};
section {
background-image: linear-gradient(to bottom, #ffffff, #efefef);
justify-content: flex-start;
display: flex;
}
section header {
background-color: #333;
padding: 8px 13px;
position: fixed;
@dinowang
dinowang / httpyac-azurecli-credentials.http
Last active January 23, 2026 07:29
httpyac-azurecli-credentials
# Load environment variables from .env file
# @clientId={{$dotenv CLIENT_ID}}
@clientId=be9d2094-045b-4d84-990a-876e8c52fd63
{{
// AzureCliCredentials
const childProcess = require('child_process');
const tenantId = childProcess.execSync('az account get-access-token --query tenant -o tsv').toString().trim();
const subscriptionId = childProcess.execSync('az account get-access-token --query subscription -o tsv').toString().trim();
@dinowang
dinowang / custom-tab-style.css
Created December 5, 2025 10:27
Tabby customize tab style
:root {
--spanner-color: rgba(64, 64, 64, 0.5);
--spanner-color-hover: rgba(255, 128, 128, 0.5);
}
split-tab-spanner.v {
background-image: linear-gradient(to right, var(--spanner-color) 50%, var(--spanner-color) 50%);
background-repeat: no-repeat;
background-size: 100% 2px;
background-position: center;