sudo systemctl --global mask tracker-miner-fs-3.service
sudo systemctl --global mask tracker-xdg-portal-3.service
sudo apt remove tracker tracker-extract tracker-miner-fs
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
| fresh() { | |
| # 0) escape half‑finished merges / rebases (no‑ops if nothing to abort) | |
| git merge --abort 2>/dev/null || git rebase --abort 2>/dev/null || : | |
| git fetch --prune --no-auto-maintenance --quiet origin && # 1 refs up‑to‑date fast [oai_citation:0‡git-scm.com](https://git-scm.com/docs/git-fetch) | |
| git switch --discard-changes --recurse-submodules -C main origin/main && # 2 hard‑reset + checkout incl. submodules | |
| git clean -ffdx && # 3 wipe every untracked/ignored artefact | |
| git for-each-ref --format='%(refname:short)' --merged main refs/heads \ | |
| | grep -v '^main$' | xargs -r git branch -D # 4 trash merged locals in one hit | |
| clear |
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
| /** | |
| * Conserve aspect ratio of the original region. Useful when shrinking/enlarging | |
| * images to fit into a certain area. | |
| * | |
| * @param {Number} srcWidth width of source image | |
| * @param {Number} srcHeight height of source image | |
| * @param {Number} maxWidth maximum available width | |
| * @param {Number} maxHeight maximum available height | |
| * @return {Object} { width, height } | |
| */ |
- Download files
#!/bin/bash
mkdir /tmp/fw && cd /tmp/fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8125b-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8125a-3.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8107e-2.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8107e-1.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/tl8168fp-3.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/rtl_nic/rtl8168h-2.fw
RewriteCond %{QUERY_STRING} !_DEBUG=1 #RewriteRule ^/(.)$ /$1?_DEBUG=1 [QSA,R,L] RewriteRule ^/(.)$ /$1?_DEBUG=1 [QSA,L]
#301 Redirects for .htaccess
#Redirect a single page: Redirect 301 /pagename.php http://www.domain.com/pagename.html
Consider this gist to be deprecated. It's full of information that may or may not be correct, given recent findings. Consider the in-development PIDDatabase, and UMSKT, instead: https://umskt.github.io/PIDDatabase-viewer https://github.com/UMSKT/UMSKT
If you still want to see the old gist, see the last revision.
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/env bash | |
| # Small shell script to more easily automatically download and transcribe live stream VODs. | |
| # This uses YT-DLP, ffmpeg and the CPP version of Whisper: https://github.com/ggerganov/whisper.cpp | |
| # Use `./transcribe-vod help` to print help info. | |
| # MIT License | |
| # Copyright (c) 2022 Daniils Petrovs |
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
| #!/bin/bash | |
| cd /tmp | |
| echo "Wget $1" | |
| wget --spider --recursive --level=3 --no-verbose --output-file=sitemap.txt $1 | |
| echo "Grep URLs" | |
| grep -i URL /tmp/sitemap.txt | awk -F 'URL:' '{print $2}' | awk '{$1=$1};1' | awk '{print $1}' | sort -u | sed '/^$/d' > /tmp/sitemap-urls.txt | |
| header='<?xml version="1.0" encoding="UTF-8"?><urlset | |
| xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 |
- Install Youtube-DL
apt install youtube-dl - Download only audio of a video
youtube-dl -f 'bestaudio[ext=m4a]' 'http://youtu.be/hTvJoYnpeRQ'
NewerOlder