Run Raspberry 3 in digital signage mode with Chromium Web browser on a TV screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
To | From | Method | |
---|---|---|---|
string of code | literal code | std::stringify!{} | |
string of code | syntax tree | !quote(#syntax_tree).to_string() | |
string of code | TokenStream | .to_string() | |
string of syntax | literal code | format!("{:?}",parse2::<SynType>(quote! {...}).expect(...) | |
string of syntax | syntax tree | format!("{:?}"),…), format!("{:#?}"),…) | |
string of tokens | literal code | format!("{:?}",quote! {...}) | |
string of tokens | TokenStream | format!("{:?}"),…), format!("{:#?}"),…) | |
syn::Error | TokenStream | .to_compile_error() [see Rule #7] | |
syntax tree | literal code | parse_quote!(…) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io::Write; | |
use std::{env, path::Path}; | |
use std::{fs::OpenOptions, path::PathBuf}; | |
use regex::Regex; | |
fn main() { | |
let dir = Path::new(&env::var("CARGO_MANIFEST_DIR").unwrap()).join("lib"); | |
println!("cargo:rustc-link-search=native={}", dir.display()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import git | |
repo = git.Repo() | |
changed_file_lists = [ | |
[file.a_path | |
for file in repo.index.diff(None).iter_change_type(change_type)] | |
for change_type in ('D', 'M') | |
] |
This guide uses yay as the preferred AUR helper of choice.
In case you did a fresh install and are now missing packages, yet cannot connect to the internet, simply boot via live-iso and arch-chroot
into your system.
$ cryptsetup luksOpen /dev/nvme0n1p2 cryptroot # only relevant in case of encrypted partition
$ mount /dev/mapper/cryptroot /mnt
Getting a streamable link is done by the client.
You basically need to send the service a detailed list of the type of media you can play, and it will give you a transcode URL to call if it thinks you need transcoding in order to play this file.
If you don't and can play the file directly it won't give you a transcode URL.
POST <server_address>/Items/<item_id>/PlaybackInfo?UserId=<current_user_id>
Reference configuration files for using Jellyfin with NGINX.
NewerOlder