Skip to content

Instantly share code, notes, and snippets.

View segraef's full-sized avatar
🎯
Focusing

Sebastian Gräf segraef

🎯
Focusing
View GitHub Profile
@segraef
segraef / Get-Timezones.ps1
Created August 5, 2021 09:54
Get-Timezones
Function Get-Timezones {
<#
.SYNOPSIS
Retrieves timezones of local or remote computers via WMI.
.DESCRIPTION
Retrieves timezones of local or remote computers via WMI.
.PARAMETER ComputerName
A single Computer or an array of computer names. The default is localhost ($env:COMPUTERNAME).
@segraef
segraef / index.html
Created August 4, 2021 06:27
particles.js
<!-- particles.js container -->
<div id="particles-js"></div>
<!-- stats - count particles -->
<div class="count-particles">
<span class="js-count-particles">--</span> particles
</div>
<!-- particles.js lib (JavaScript CodePen settings): https://github.com/VincentGarreau/particles.js -->
@segraef
segraef / main.bicep
Created September 7, 2020 10:31
ARM bicep file
param location string = 'eastus'
param name string = '3on4oivnio43das'
var storageSku = 'Standard_LRS'
resource stg 'Microsoft.Storage/storageAccounts@2019-06-01' = {
name: name
location: location
kind: 'Storage'
sku: {
@segraef
segraef / workflow.yml
Created September 4, 2020 07:46
GitHub Action bicep
name: bicep
on:
push:
branches: [ v1 ]
pull_request:
branches: [ master ]
jobs:
bicep:
@segraef
segraef / example.yml
Created September 3, 2020 12:49
Example GitHub Workflow
name: ExampleWorkflow
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Azure Login
uses: azure/login@v1.1