-
use livestream_saver to download from the first segment. Can also record membership-only streams by supplying it your cookies (uses yt-dlp to download)
-
use ytarchive which basically does the same thing, except a bit better.
-
use youtube_stream_capture. You can use cookies file to get member-only streams too. Be aware that this script currently fails to download chunks as soon as the stream has ended (this might be a bug).
-
or use live-dl which does monitoring of streams too. This is a wrapper around streamlink and yt-dlp.
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
// ==UserScript== | |
// @name GFYCAT | Show all Download Links (GIF, MP4, WEBP, WEBM) | |
// @namespace de.sidneys.userscripts | |
// @homepage https://gist.githubusercontent.com/sidneys/1af7b31282fa5019b6213d48e3b47c88/raw/ | |
// @version 2.0.1 | |
// @description Adds direct links to all image (.gif, .webp) and video (.mp4, .webm) formats and sizes on Gfycat. | |
// @author sidneys | |
// @updateURL https://greasyfork.org/scripts/408129-gfycat-show-all-download-links-gif-mp4-webp-webm/code/GFYCAT%20%7C%20Show%20all%20Download%20Links%20(GIF,%20MP4,%20WEBP,%20WEBM).user.js | |
// @icon https://gfycat.com/assets/apple-touch-icon/apple-touch-icon-180x180.png | |
// @include http*://*.gfycat.com/* |
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/zsh | |
# Join parts generated by the script: https://gist.github.com/cheadrian/b661fb68a6a87ea64069e641cef68c3e#gistcomment-3495351 | |
mkdir -p vid_fix | |
base_dir=$(pwd) | |
vid_dir="${base_dir}/stream_download_test/vid/" | |
aud_dir="${base_dir}/stream_download_test/aud/" | |
# number of files to skip from the start and end | |
skip_start=58 | |
skip_end=0 |
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
# Measure performance difference between two regex matching methods. | |
# We test each line in a data set (fake virtual directory paths in this case). | |
# 1) by looping through each compiled regex and testing each against each | |
# line, which should be something like O(n*m). | |
# 2) by combining all the regex expressions into one and matching that single | |
# expression against each line, which should be 0(n) probably... | |
# Note: we stop testing as soon as there is one match. If any of the regex | |
# expression matches, we don't need to continue | |
import re | |
import random |
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
diff --git a/mcomix/main.py b/mcomix/main.py | |
index 80f74dc..d341238 100644 | |
--- a/mcomix/main.py | |
+++ b/mcomix/main.py | |
@@ -278,6 +278,8 @@ class MainWindow(gtk.Window): | |
if show_library: | |
self.actiongroup.get_action('library').activate() | |
+ self.last_used_directory=None | |
+ |
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
./x86/theybleedpixels.x86[0x807cb38] | |
./x86/theybleedpixels.x86[0x807cb92] | |
linux-gate.so.1(__kernel_rt_sigreturn+0x0)[0xf7f7a070] | |
/usr/lib32/pulseaudio/libpulsecommon-12.2.so(pa_smoother_new+0x31)[0xf44f64e1] | |
/usr/lib32/libpulse.so.0(+0x299d4)[0xf4a019d4] | |
/data/SteamLibrary/steamapps/common/they bleed pixels/x86/libopenal.so.1(+0x507f5)[0xf7a307f5] | |
/data/SteamLibrary/steamapps/common/they bleed pixels/x86/libopenal.so.1(+0x536db)[0xf7a336db] | |
/data/SteamLibrary/steamapps/common/they bleed pixels/x86/libopenal.so.1(+0x254d8)[0xf7a054d8] | |
/data/SteamLibrary/steamapps/common/they bleed pixels/x86/libopenal.so.1(alcCreateContext+0xd1)[0xf7a06cd1] | |
./x86/theybleedpixels.x86[0x80e4612] |
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
execve("./TheyBleedPixels", ["./TheyBleedPixels"], 0x7ffddf7243f0 /* 48 vars */) = 0 | |
brk(NULL) = 0x55c1d3963000 | |
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffdc7068190) = -1 EINVAL (Invalid argument) | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/data/SteamLibrary/steamapps/common/they bleed pixels/x86/tls/x86_64/x86_64/libreadline.so.7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
stat("/data/SteamLibrary/steamapps/common/they bleed pixels/x86/tls/x86_64/x86_64", 0x7ffdc70673d0) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/data/SteamLibrary/steamapps/common/they bleed pixels/x86/tls/x86_64/libreadline.so.7", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) | |
stat("/data/SteamLibrary/steamapps/common/they bleed pixels/x86/tls/x86_64", 0x7ffdc70673d0) = -1 ENOENT (No such file or directory) | |
openat(AT_FDCWD, "/data/SteamLibrary/steamapps/common/they bleed pixels/x86/tls/x86_64/libreadline.so.7", O_R |
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 | |
# example method for best quality output: | |
#waifu2x -scale 2 -method scale -tta 1 -tta_level 8 -model_dir /usr/share/waifu2x/models/photo -i ~/test/test_1280.png -o ~/test/test_waifu2x_tta8.png | |
success(){ | |
# play a sound on successful file processing | |
paplay ~/Music/sfx/185845__lloydevans09__incorrect-function.wav | |
return 0 | |
} | |
failure(){ |
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
# Maintainer: Piotr Rogoża <rogoza dot piotr at gmail dot com> | |
# Contributor: Nathan O <ndowens.aur at gmail dot com> | |
# vim:set ts=2 sw=2 et ft=sh tw=100: expandtab | |
pkgname=diffimg | |
_pkgname=Diffimg | |
pkgver=2.2.0 | |
pkgrel=1 | |
pkgdesc="Simple image comparison tool" | |
arch=('i686' 'x86_64') |
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 python3 | |
#i3 per-workspace background for Caagr98 https://gist.github.com/Caagr98/f74e149403e5c1f92006158f09108a78 | |
#deps: pip3 install python3-xlib i3ipc Pillow | |
# usage: i3bg2.py /path/to/directory | |
# where directory holds wallpapers to randomly pick from (optional) | |
import Xlib.threaded | |
import Xlib | |
import Xlib.display | |
from Xlib import Xatom | |
from PIL import Image |