Skip to content

Instantly share code, notes, and snippets.

View khopland's full-sized avatar
🇳🇴

Kristoffer Larsen Hopland khopland

🇳🇴
View GitHub Profile
function Check-Command($cmdname) {
return [bool](Get-Command -Name $cmdname -ErrorAction SilentlyContinue)
}
if (Check-Command -cmdname 'scoop') {
Write-Host "scoop is already installed, skip installation."
} else {
Set-ExecutionPolicy unrestricted -scope CurrentUser
iwr -useb get.scoop.sh | iex
}
@khopland
khopland / viasfora-theme.json
Last active January 19, 2022 11:29
viasfora theme and setings for VS
{
"viasfora.keyword.flowcontrol": {
"foreground": "HotPink",
"background": "Automatic",
"style": "None"
},
"viasfora.keyword.linq": {
"foreground": "MediumSeaGreen",
"background": "Automatic",
"style": "None"
"$schema" = 'https://starship.rs/config-schema.json'
format = """$shell$all$battery\n$character"""
# Don't print a new line at the start of the prompt
add_newline = false
command_timeout = 3000
continuation_prompt = "[❯](black)[❯ ](yellow)"
[memory_usage]
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"final_space": true,
"osc99": true,
"console_title": true,
"console_title_style": "template",
"console_title_template": "{{.Folder}}{{if .Root}} :: {{end}} :: {{.Shell}}",
"blocks": [
{
"type": "prompt",
@khopland
khopland / bzexcluderules_editable.xml
Created March 12, 2021 00:00
backbalze ignore files/folders
<excludefname_rule plat="win" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith="*" contains_1="\node_modules\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="win" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith=":\Users\" contains_1="\.git\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="win" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith=":\Users\" contains_1="\.jdks\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="win" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith=":\Users\" contains_1="\.m2\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="win" osVers="*" ruleIsOptional="t" skipFirstCharThenStartsWith=":\Users\" contains_1="\.andriod\" contains_2="*" doesNotContain="*" endsWith="*" hasFileExtension="*" />
<excludefname_rule plat="win" osVers="*" ruleIsOptional="t" ski