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 crate::core::{Check, Error as CheckError}; | |
use iced::{Application, Command, Container, Element, Settings, Text}; | |
fn main() -> iced::Result { | |
Syscheck::run(Settings::default()) | |
} | |
#[derive(Debug)] | |
pub enum Syscheck { | |
Setup(SetupState), |
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
# git | |
alias gs='git status' | |
alias gd='git diff' | |
alias gds='git diff --staged' | |
alias gcom='git checkout master' | |
alias gco='git checkout' | |
alias gp='git pull' | |
alias git-deleted='git log --diff-filter=D --summary' | |
# utils |
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
local function key_patterns() | |
local uniq = {} | |
for _, key in ipairs(redis.call('keys', '*')) do | |
local pattern = string.match(key, "(.-):") | |
if pattern ~= nil and pattern ~= "" then | |
if uniq[pattern] == nil then | |
table.insert(uniq, pattern) | |
uniq[pattern]=1 | |
else | |
uniq[pattern]=uniq[pattern]+1 |
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
neolink | [2023-05-01T06:39:38Z INFO neolink::rtsp::states::loggedin] backyard: Camera time is already set: 2023-05-01 16:39:31.0 -10:00:00 | |
neolink | [2023-05-01T06:39:39Z INFO neolink::rtsp::states::loggedin] backyard: Camera reports firmware version v3.0.0.1045_22061301 | |
neolink | [2023-05-01T06:39:39Z INFO neolink::rtsp::states::streaming] backyard: Starting video stream Sub Stream (Fluent) | |
neolink | [2023-05-01T06:39:39Z DEBUG neolink::rtsp::gst::sender] New IFrame for buffer @ 3.608911s | |
neolink | [2023-05-01T06:39:39Z DEBUG neolink::rtsp::gst::sender] Pushed iFrame to buffer at 3.608911s | |
neolink | [2023-05-01T06:39:39Z DEBUG neolink::rtsp::gst::sender] Iframes left in the buffer: 1 | |
neolink | [2023-05-01T06:39:39Z DEBUG neolink::rtsp::gst::sender] New PFrame for buffer @ 3.675577s | |
neolink | [2023-05-01T06:39:39Z DEBUG neolink::rtsp::gst::sender] New PFrame for buffer @ 3.742247s | |
neolink | [2023-05-01T06:39:39Z DEBUG neolink::rtsp::gst::sender] New PFrame for buffer @ 3.80891s | |
neolink | [2023-0 |
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
// Remove posts marked as "Ad" | |
(() => { | |
const adSel = `[data-testid=placementTracking]` | |
const targetNode = document.querySelector(`body`) | |
const observer = new MutationObserver((mutations) => { | |
for (const m of mutations) { | |
m.addedNodes.forEach(node => { | |
if (ad = node.querySelector(adSel)) { | |
ad.remove(); | |
} |
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
from playhouse.sqliteq import SqliteQueueDatabase | |
db = SqliteQueueDatabase( | |
"products.db", | |
autostart=True, | |
pragmas={ | |
"journal_mode": "wal", | |
"cache_size": -1024 * 32, | |
"foreign_keys": 1, | |
"ignore_check_constraints": 0, |
OlderNewer