Skip to content

Instantly share code, notes, and snippets.

@niklasvincent
niklasvincent / keybase.md
Created September 11, 2016 11:27
keybase.md

Keybase proof

I hereby claim:

  • I am nlindblad on github.
  • I am nlindblad (https://keybase.io/nlindblad) on keybase.
  • I have a public key ASBEnrWN6BHDWT9Pgi8kcHD5HWmr7SqESagcNfB36iLfjQo

To claim this, I am signing this object:

@niklasvincent
niklasvincent / README.md
Last active September 16, 2016 15:31
Github SSH Key Check

Github SSH Key Check

Checks ~/.ssh/authorized_keys against a list of Github users and checks who has access.

Usage:

$ python github-ssh-check.py -u nlindblad

Example output:

@niklasvincent
niklasvincent / README.md
Created May 18, 2017 20:10
Migrating from Github to Gitlab

After setting up the repository with the exact same name (username/repository) with Gitlab and importing it directly in Gitlab.

git remote set-url origin $(git remote get-url origin|sed -e 's/github/gitlab/')

git push --all origin

@niklasvincent
niklasvincent / README.md
Last active May 1, 2020 07:04
Most played songs by year on last.fm

Most played songs by year from last.fm

How to use

Download last_fm_to_csv.py from this Gist (you might have to click "Raw" and then right-click and select "Save as").

You'll need an API key from last.fm, which you can get here. You can leave every field apart from Contact email and Application name blank.

Once you've got the API key, run the following in a terminal (assuming last_fm_to_csv.py got downloaded to your Downloads folder):