Skip to content

Instantly share code, notes, and snippets.

View knut-erik's full-sized avatar
🙃

Knut Erik Hollund knut-erik

🙃
View GitHub Profile
@knut-erik
knut-erik / myfancy.js
Created April 5, 2022 12:31
myfancy.js
alert('hello');
@knut-erik
knut-erik / ohmyposh.md
Last active November 16, 2021 09:28
oh-my-posh - W11Managed

View execution policy for powershell scripts

Get-ExecutionPolicy -List

Set execution policy on current user

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

Get fancy terminal icons

@knut-erik
knut-erik / crostini.md
Created August 26, 2020 07:34
Chromebook Dev

Chromebook stuff

Crostini - doing apt-get -E update with our proxy

touch /etc/apt/apt.conf.d/99verify-peer.conf \ && echo >>/etc/apt/apt.conf.d/99verify-peer.conf "Acquire { https::Verify-Peer false }"

apt-get

apt-get -E update

@knut-erik
knut-erik / deletefromgitlog.md
Created September 21, 2018 19:25
Delete something from git log

git filter-branch --tree-filter "find . -type f -exec sed -i -e 's/originalpassword/newpassword/g' {} \;"

git filter-branch --tree-filter "grep -r originalpassword * || true"

Make sure to remove the automatically created backupfiles in /.git/refs/original/

Keybase proof

I hereby claim:

  • I am abjectio on github.
  • I am abjectio (https://keybase.io/abjectio) on keybase.
  • I have a public key whose fingerprint is 5A14 0578 999A 3349 85F4 2929 EB74 938B 5EEB C73F

To claim this, I am signing this object: