Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MatsAnd's full-sized avatar

Mats Andreassen MatsAnd

View GitHub Profile
@MatsAnd
MatsAnd / mac.apps.md
Last active June 9, 2022 10:56
Mac Apps and Utilities I use
@MatsAnd
MatsAnd / AzureNamingConvention.md
Last active October 2, 2023 15:58
VTFK Azure Components - Naming Convention

Navnestandard Azure-komponenter:

Subscription-Komponenttype-Beskrivelse

  • Subscription = prod, test eller dl (datasjø)
  • Komponenttype = "resource name prefix" hentet fra denne siden
  • Beskrivelse = En anekdote om tjenesten

Overordnet

  1. Som hovedregel skal alle løsninger settes opp i både dev/test- og prod-subscriptionene.
  2. Én resource group (rg) pr. tjeneste som samler alle komponenter til tjenesten. F.eks:
@SteveL-MSFT
SteveL-MSFT / profile.ps1
Last active March 11, 2024 01:21
PowerShell Prompt
#Requires -Version 7
# Version 1.2.13
# check if newer version
$gistUrl = "https://api.github.com/gists/a208d2bd924691bae7ec7904cab0bd8e"
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if ([System.IO.File]::Exists($latestVersionFile)) {
@TooTallNate
TooTallNate / http-error.js
Created August 3, 2016 00:48
HTTPError class for JavaScript HTTP errors
import { format } from 'url';
import { STATUS_CODES } from 'http';
import uppercamelcase from 'uppercamelcase';
class HTTPError extends Error {
constructor(code, message, extras) {
super(message || STATUS_CODES[code]);
if (arguments.length >= 3 && extras) {
Object.assign(this, extras);
}
@Jckf
Jckf / Yggdrasil.php
Last active July 2, 2021 02:08
PHP library for Mojang's Yggdrasil authentication system.
<?php
class Yggdrasil {
private $server = 'https://authserver.mojang.com';
private $client_token = null;
private $username = null;
private $access_token = null;