Skip to content

Instantly share code, notes, and snippets.

@alifeee
alifeee / alifeee.code-profile
Last active September 20, 2023 15:28
VSCode Minimal Extension list (export/import profile to use)
{
"name": "newprofile1",
"extensions": "[{\"identifier\":{\"id\":\"bbenoist.doxygen\",\"uuid\":\"aab644b7-f446-4774-87fc-2cce8f0d5a4f\"}},{\"identifier\":{\"id\":\"cschlosser.doxdocgen\",\"uuid\":\"da7e26d5-d57c-4742-ab47-d77fb189e195\"},\"displayName\":\"Doxygen Documentation Generator\"},{\"identifier\":{\"id\":\"davidanson.vscode-markdownlint\",\"uuid\":\"daf8b44d-8aae-4da2-80c5-1f770219f643\"},\"displayName\":\"markdownlint\"},{\"identifier\":{\"id\":\"eamodio.gitlens\",\"uuid\":\"4de763bd-505d-4978-9575-2b7696ecf94e\"},\"displayName\":\"GitLens — Git supercharged\"},{\"identifier\":{\"id\":\"esbenp.prettier-vscode\",\"uuid\":\"96fa4707-6983-4489-b7c5-d5ffdfdcce90\"},\"displayName\":\"Prettier - Code formatter\"},{\"identifier\":{\"id\":\"formulahendry.auto-rename-tag\",\"uuid\":\"6e440e71-8ed9-4f25-bb78-4b13096b8a03\"},\"displayName\":\"Auto Rename Tag\"},{\"identifier\":{\"id\":\"github.copilot\",\"uuid\":\"23c4aeee-f844-43cd-b53e-1113e483f1a6\"},\"displayName\":\"GitHub Copilot\"},{\"identifier\":{
@alifeee
alifeee / mumble-server-setup.md
Created September 26, 2023 15:15
Commands to set up Mumble Server (Murmur) on Ubuntu Linux

Mumble Server setup

Setup

This describes commands to set up Mumble's server (Murmur) on Ubuntu Linux.

Install

sudo apt-get install mumble-server
@alifeee
alifeee / Setup RSA keys for automatic SSH login.md
Created November 26, 2023 23:04
Setup RSA keys for automatic SSH login

How to setup RSA keys for automatic SSH login

Before this, I logged in to my server via ssh with

> ssh root@server.alifeee.co.uk
root@server.alifeee.co.uk's password:
...
root@chunkifeee:~#
@alifeee
alifeee / spotify_wrapped_2023.toml
Created November 29, 2023 19:57
Data from Spotify Wrapped 2023
top_genres = [
"pov: indie",
"Indie game soundtrack",
"Steampunk",
"Pixel",
"Indie pop",
]
[listener]
type = "Shapeshifter"
@alifeee
alifeee / nasin.txt
Created December 4, 2023 19:11
nimi-ale-pi-toki-pona
I used
cat words.txt | awk -F'[^a-zA-Z]' 'BEGIN {delete wds} { if (length($0) > 0 && length($0) < 10) { if (!($1 in wds)) {print $1; wds[$1]} } }' > nimi-ale-pi-toki-pona.txt
on the words in
https://raw.githubusercontent.com/jan-Lope/Toki_Pona_lessons_English/gh-pages/nimi_pi_toki_pona.txt
from
https://www.reddit.com/r/tokipona/comments/bjbnw5/word_list/
@alifeee
alifeee / FTP-setup-Ubuntu.md
Created December 19, 2023 15:50
How to set up FTP on Ubtunu Linux
@alifeee
alifeee / transfer-folders-over-scp.md
Last active January 10, 2024 00:39
transfer folders over scp

Transfer Folders over SCP

With tar + zip

Commands

zip + tar

tar -cvzf <nameoftar>.tar.gz <nameoffolder>
@alifeee
alifeee / factorio-map-hosting.md
Last active January 30, 2024 23:23
Factorio map hosting
@alifeee
alifeee / common-rss-URL-extensions.md
Last active January 31, 2024 17:07
Common RSS URL extensions

Common RSS URL extensions

I like blogs. I like RSS feeds. Often, blogs don't have an RSS feed link. Often, these blogs do have an RSS feed, thanks to whatever site generator they use.

Thus, I like to try and find the hidden feed. These are the URLs I usually put on the URL to try and find the feed.

For example, blog.alifeee.co.uk -> blog.alifeee.co.uk/feed.xml

/feed
@alifeee
alifeee / parse_toggl.sh
Last active February 1, 2024 01:43
Toggl Track API JSON to CSV conversion
#!/bin/bash
# turns Toggl JSON API data into CSV format
# currently ignores any array fields
# you can override the TOGGL_KEYS env variable to set which keys you want in the CSV
# usage
# get toggl data
# https://developers.track.toggl.com/docs/api/time_entries/index.html
# curl https://api.track.toggl.com/api/v9/me/time_entries -H "Content-Type: application/json" -u <email>:<password> > toggl.json
# curl https://api.track.toggl.com/api/v9/me/time_entries -H "Content-Type: application/json" -u <api token>:api_token > toggl.json