This file contains hidden or 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
| <template> | |
| <div id="timeField" class="input input-sm input-bordered flex px-3 py-0"> | |
| <div class="grow"> | |
| <input | |
| ref="timeInput" | |
| :value="secToTime(props.modelValue)" | |
| type="text" | |
| pattern="([01]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]{1,3})?" | |
| class="w-full px-1 py-0" | |
| @click="setCursorPos" |
This file contains hidden or 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. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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::{ | |
| thread::sleep, | |
| time::Duration, | |
| }; | |
| struct List { | |
| arr: Vec<u8>, | |
| msg: String, | |
| i: usize, | |
| } |
This file contains hidden or 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
| function urlify(text) { | |
| const hyperlink = /<a [^>]+>([\w\d./=:"-]+)<\/a>/g | |
| const urlRegex = /(https?:\/\/|www\.)([\w\d./-]+)/g | |
| return text.replace(/(?:\r\n|\r|\n)/g, '<br>') | |
| .replace(hyperlink, '$1') | |
| .replace(urlRegex, (url, protoOrSub, domain) => { | |
| domain = domain.replace(/\/$/, '') | |
| if (protoOrSub.match(/https?/)) { |
This file contains hidden or 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
| proxy_cache_path /mnt/ramdisk/cache_temp use_temp_path=off keys_zone=cache_temp:10m max_size=1536m inactive=1h; | |
| server { | |
| listen 443 ssl; # managed by Certbot | |
| ssl_certificate /etc/letsencrypt/live/edge.example.org/fullchain.pem; | |
| ssl_certificate_key /etc/letsencrypt/live/edge.example.org/privkey.pem; | |
| include /etc/letsencrypt/options-ssl-nginx.conf; | |
| ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; | |
| server_name edge.example.org; |
NewerOlder