Some notes on accessing / exporting Apple's Reminders data on macOS.
To start using the Jellyfin API, authorization is probably the first thing you'll need to do. Jellyfin's authorization options can be a bit confusing because there are a lot of deprecated options.
Generally there are three ways to authenticate: no authorization, user authorization with an access token or authorization with an API key. The first way is easy, just do nothing. But most often you'll need to use either the access token or API key.
There are two methods to send authorization values to the server. The preferred method is by using the Authorization header with the custom MediaBrowser scheme. When a header value is not possible (e.g. URLs send to external applications or due to other constraints) the ApiKey query parameter can be used. The query parameter just takes an access token or API key. We strongly recommend to always use the Authorization hea
| // | |
| // App.swift | |
| // | |
| // Created by Ben Tindall on 30/03/2022. | |
| // | |
| import Foundation | |
| import SwiftUI | |
| import Cocoa |
| #!/bin/bash | |
| # Find existing files in download/complete that are not in movies or tvshows. | |
| export DOWNLOAD_FOLDER=path/to/downloads | |
| export MOVIES_FOLDER=path/to/movies | |
| export TVSHOWS_FOLDER=path/to/tvshows | |
| findExistingFile() { | |
| file=$(find $MOVIES_FOLDER/ $TVSHOWS_FOLDER/ -samefile "$1") |
| <?php | |
| /** | |
| * Class FacadePHPDocs | |
| * | |
| * @author Ardhana <ardzz@indoxploit.or.id> | |
| */ | |
| class FacadePHPDocs{ | |
| /** | |
| * @var ReflectionClass |
| // Version 2.0.2 | |
| // This script will remove all videos from watch later list | |
| // | |
| // Usage | |
| // | |
| // #1 go to https://www.youtube.com/playlist?list=WL | |
| // #2 run following script in your browser console | |
| (async function() { | |
| const playlistName = document.querySelector('.metadata-wrapper #container #text')?.textContent || document.querySelector('#text')?.textContent |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa |
| import SwiftUI | |
| import PlaygroundSupport | |
| struct ContentView: View { | |
| @State var gradientAngle: Double = 0 | |
| var colors = [ | |
| Color(UIColor.systemRed), | |
| Color(UIColor.systemOrange), | |
| Color(UIColor.systemYellow), | |
| Color(UIColor.systemGreen), |
| FROM php:7.2-fpm | |
| COPY app /var/www/ | |
| EXPOSE 9000 |
| extension Binding { | |
| /// Wrapper to listen to didSet of Binding | |
| func didSet(_ didSet: @escaping ((newValue: Value, oldValue: Value)) -> Void) -> Binding<Value> { | |
| return .init(get: { self.wrappedValue }, set: { newValue in | |
| let oldValue = self.wrappedValue | |
| self.wrappedValue = newValue | |
| didSet((newValue, oldValue)) | |
| }) | |
| } | |