Skip to content

Instantly share code, notes, and snippets.

View charveey's full-sized avatar
✍️
Writing my thesis

Ange Kevin Amlaman charveey

✍️
Writing my thesis
View GitHub Profile
@VsevolodGolovanov
VsevolodGolovanov / gist:7da8c08f8207c1c563120423cb723342
Last active October 17, 2024 19:48
Must app export profile data
Here's how to export your movie history from Must, just in case it goes under.
Go to https://mustapp.com/@<your_profile_name>/watched
Scroll down (hold End on keyboard) until the whole list is loaded.
Open Browser Developer Tools, Console.
Paste the following line and press Enter:
(() => { let exportResult = ""; $('.js_item_product').each((i, el) => exportResult += $(el).find('.poster__title').text() + '\t' + $(el).find('.poster__rate').text().trim() + '\n'); copy(exportResult); })();
Now your clipboard contains a list of Tab separated movie titles and ratings.
For Series (includes number of unwatched episodes after another Tab, if not finished):
(() => { let exportResult = ""; $('.js_item_product').each((i, el) => exportResult += $(el).find('.poster__title').text() + '\t' + $(el).find('.poster__rate_stars').text().trim() + '\t' + $(el).find('.poster__rate_progress').text().trim() + '\n'); copy(exportResult); })();
@MichaelCurrin
MichaelCurrin / README.md
Last active August 25, 2024 22:29
Jekyll - how to build a REST API

Jekyll - how to build a REST API

Serve your data as static JSON

How to make a read-only JSON REST API using Jekyll.

This doesn't need any Ruby plugins - you just use some built-in templating features in Jekyll 3 or 4.

You will end up with a single JSON file contains data for all pages on the site, and another JSON file of just posts. Alternatively, you can replace every HTML page and post with a JSON version.

@Paraphraser
Paraphraser / RPiWiFiFreeze.md
Last active March 27, 2024 03:41
Do your Raspberry Pi's Network Interfaces freeze? This may solve it.

Do your Raspberry Pi's Network Interfaces freeze?

My Raspberry Pi 4 kept losing its wlan0 interface. I could usually reconnect via Ethernet but, from time to time, I noticed that the eth0 interface would also go walkabout.

I tried a lot of things but the one described here seems to have cured the problem. I have no idea why it works. It just does.

Step 0 - are you a Windows user?

The script shown in the next step should be created on your Raspberry Pi. Please do not make the mistake of selecting the text, copying it into a text editor on your Windows machine, saving the file, and then moving the file to your Raspberry Pi. Unless you take precautions, Windows will add its 0x0d 0x0a (CR+LF) line endings and those will stop the script from working properly on your Raspberry Pi.