Skip to content

Instantly share code, notes, and snippets.

@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 / how-to-blog.md
Last active April 21, 2024 23:52
how to create a blog?

How to start blogging

You might not think you should blog. I think you should.

I like your thoughts! I want to be able to read them!

Here are some other reasons:

@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
@alifeee
alifeee / factorio-map-hosting.md
Last active January 30, 2024 23:23
Factorio map hosting
@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 / 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 / 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 / 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 / nginx and HTTPS setup.md
Last active April 17, 2024 14:38
nginx-setup

Nginx setup on Ubuntu

How to set up nginx on an ubuntu server

Steps

install

sudo apt install nginx