Skip to content

Instantly share code, notes, and snippets.

@jsit
jsit / Mastodon Explained in 100 Words.md
Last active January 26, 2023 17:15
Mastodon Explained in 100, 200, and 500 Words

Mastodon Explained in 100 Words

  1. Mastodon is a microblogging social media platform like Twitter; you can write posts ("toots") and interact with other people's posts on a timeline.
  2. To sign up, you first need to choose a server (an "instance"), like choosing an email provider.
  3. Start posting!
  4. It's probably adequate to start with the official app made by the Mastodon group.
  5. There are three timelines; "Home" shows posts from people you follow; "Local" shows posts from people who are on your instance; "Federated" shows posts from all people known to your instance.
  6. You may notice some differences and limitations in the experience as compared to Twitter.
@Rovack
Rovack / WBTicketCheck.js
Last active July 5, 2024 10:45
A simple script that waits for tickets to become available for the Harry Potter Studio Tour in London, and grabs them
// Note that this has some limitations, such as looking specifically for adult tickets,
// looking for the given days only in the nearest month that has availability,
// and always choosing the earliest time if several are found within the desired dates.
function setAdultTickets(adultTicketsWanted) {
const adultTicketsCount = parseInt($('.quantity-control.row > input')[0].value, 10);
const ticketChangeIterations = Math.abs(adultTicketsWanted - adultTicketsCount);
const ticketChangeButton = $(`.quantity-control.row > button.typcn-${adultTicketsCount < adultTicketsWanted ? 'plus' : 'minus'}`)[0];
for (let i = 0; i < ticketChangeIterations; i++) {
@nfekete
nfekete / add shairplay user
Last active January 29, 2022 19:35
Shairplay init script and default config
#which nologin >> /etc/shells
useradd -s /usr/sbin/nologin -r -M -d /etc/shairplay --groups audio,pulse,pulse-access shairplay