- Mainboard ASUS PRIME Z390-A Z390
- ASUS Dual-GTX1650-O4G
- Intel i9 9900
- 32GB Ram
- NEC Corporation uPD720200 USB 3.0 Host Controller
- Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983 (1 TB)
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
extern crate log; | |
extern crate simplelog; | |
use std::{thread::sleep, time::Duration}; | |
use simplelog::*; | |
use file_rotate::{compression::Compression, suffix::AppendCount, ContentLimit, FileRotate}; | |
use log::{Level, LevelFilter, Log, Metadata, Record}; |
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 notify::DebouncedEvent::{Create, Remove, Rename}; | |
use notify::{watcher, RecursiveMode, Watcher}; | |
use std::{ | |
sync::{ | |
mpsc::{channel, Receiver}, | |
{Arc, Mutex}, | |
}, | |
thread::sleep, | |
time::Duration, | |
}; |
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 notify::DebouncedEvent::{Create, Remove, Rename}; | |
use notify::{watcher, RecursiveMode, Watcher}; | |
use std::{ | |
ffi::OsStr, | |
path::Path, | |
sync::{ | |
mpsc::{channel, Receiver}, | |
{Arc, Mutex}, | |
}, | |
thread::sleep, |
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::{prelude::*, BufReader, Error, Read}, | |
process::{Command, Stdio}, | |
sync::{ | |
mpsc::{sync_channel, Receiver, SyncSender}, | |
Arc, Mutex, | |
}, | |
thread::sleep, | |
time::Duration, | |
}; |
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::collections::HashMap; | |
use rand::Rng; | |
#[derive(Debug, Clone, Copy, PartialEq)] | |
struct Clip { | |
source: &'static str, | |
duration: f64, | |
} |
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
#!/usr/bin/env python3 | |
import gi | |
from urllib.parse import quote | |
gi.require_version('Gst', '1.0') | |
gi.require_version('GLib', '2.0') | |
from gi.repository import GLib, Gst |
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
listen 1935; | |
max_connections 20; | |
daemon on; | |
pid /usr/local/srs/objs/srs.pid; | |
srs_log_tank file; # console; | |
srs_log_file /var/log/srs.log; | |
ff_log_dir /dev/null; | |
# can be: verbose, info, trace, warn, error | |
srs_log_level warn; |
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
#!/usr/bin/bash | |
# This script manages network interfaces for Podman containers. Podman is a daemonless container engine | |
# for developing, managing, and running OCI Containers on your Linux System. | |
# | |
# The script takes three arguments: an operation (either "start" or "stop"), a container name, and an IPv4 | |
# address for the container. If any of these arguments are missing, the script will exit with an error message. | |
# | |
# The script first checks if it's being run as root. If not, it prepends `sudo` to certain commands to ensure | |
# they have the necessary permissions. |
OlderNewer