Skip to content

Instantly share code, notes, and snippets.

View Shtian's full-sized avatar
🚀

Stian Haga Shtian

🚀
  • Oslo
  • 17:24 (UTC +02:00)
View GitHub Profile
---
name: Mov to Gif
command: ffmpeg -i {{mov_file}} -pix_fmt rgb8 -r 10 {{output_name}} && gifsicle -O3 {{output_name}} -o {{output_name}}
tags:
- ffmpeg
- gifsicle
- gif
description: Convert .mov to .gif using ffmpeg and gifsicle
arguments:
- name: mov_file
@Shtian
Shtian / mermaid.ngxs.checkout.md
Created March 17, 2023 09:30
mermaid diagrams for checkout state
 classDiagram
    VoiceCheckoutState --|> State
    VoiceCheckoutState : - orderProcessService
    VoiceCheckoutState : - recommendationService
    VoiceCheckoutState : - analyticsService
    VoiceCheckoutState : - orderReminderService
    VoiceCheckoutState : - store
    VoiceCheckoutState : - getIncludedServices()
    VoiceCheckoutState : - getSimBindingInfo()
@Shtian
Shtian / boxstarter.txt
Last active February 6, 2023 10:28
Boxstarter template
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
choco install cascadiafonts
choco install firacodenf
choco install jetbrainsmono
choco install microsoft-windows-terminal
choco install powershell-core
choco install oh-my-posh
@Shtian
Shtian / pr.md
Last active June 16, 2021 10:34
pr template

WF-XXXX - Tittel

Hva?

Hvordan?

Sjekkliste

  • Unit tests
  • E2E tests
  • Universel utforming - Automatisk sjekk
  • Universel utforming - Manuell test
@Shtian
Shtian / router.js
Created June 22, 2018 11:53
VueJs set body class router middleware
// Set body class from meta property bodyClass
router.beforeEach((to, from, next) => {
const getBodyClass = (acc, routeRecord) => {
if (routeRecord.meta && routeRecord.meta.bodyClass) { acc.push(routeRecord.meta.bodyClass) }
return acc
}
const prevBodyClass = from.matched.reduce(getBodyClass, [])
const newBodyClass = to.matched.reduce(getBodyClass, [])
prevBodyClass.forEach(c => {
@Shtian
Shtian / .gitconfig
Last active February 12, 2024 14:40
Git aliases
[rerere]
enabled = true # reuse recorded resolution of conflicted merges
autoUpdate = true # update the index with reused conflict resolution if possible
[column]
ui = auto # show branch list in columns
[branch]
sort = -committerdate # sort branches by committer date
[alias]
co = checkout
c = commit -m