Use MPV to remove unwanted media files with d.
-
mpv.conf
:d run mv -v "${filename}" /tmp/discard/ ; show-text "moved" ; playlist-next
/* From the 'musl-tools' package: | |
* | |
* $ musl-gcc -Wall -Os -static -o test test.c | |
*/ | |
#include <signal.h> | |
#include <sys/wait.h> | |
#include <unistd.h> | |
void nothing(int signum) {} |
#!/bin/bash | |
# | |
# Usage: | |
# | |
# $ list-images [files]* | |
# | |
# This script is a demo to show how to use hyperlinks with images in Alacritty. | |
# It can be used on any terminal emulator with Sixel support, but it is not | |
# intended to be used for regular use, mostly because it lacks a proper way to | |
# handle errors (it just dies). |
#!/usr/bin/env ruby | |
# | |
# Usage: | |
# | |
# $ clear-sixel-reg register? files* | |
# | |
# The script reads Sixel images, are replaced every pixel using the | |
# specified color register with holes. The output is always sent to stdout. | |
# | |
# The `background selector` parameter of the protocol selector is forced |
import os, sys | |
from ctypes import CDLL | |
libc = CDLL("libc.so.6") | |
CLONE_NEWNS = 0x00020000 | |
CLONE_NEWCGROUP = 0x02000000 | |
CLONE_NEWUTS = 0x04000000 | |
CLONE_NEWIPC = 0x08000000 | |
CLONE_NEWUSER = 0x10000000 |
Use MPV to remove unwanted media files with d.
mpv.conf
:
d run mv -v "${filename}" /tmp/discard/ ; show-text "moved" ; playlist-next
// Path: <root>/functions/index.js | |
export async function onRequest(ctx) { | |
const url = new URL(ctx.request.url); | |
return await fetch(`${url.origin}/index.txt`); | |
} |
#!/usr/bin/ruby | |
CHILD_CMD = ARGV.dup | |
# If either stdout or stderr is not a TTY, executes the program with no color | |
# translation. | |
if !STDOUT.tty? or !STDERR.tty? | |
exec(*CHILD_CMD) | |
end |
# On the 15th of every month. | |
# | |
# Show the task 5 days before the date. | |
PROJECT=foo.bar | |
DESCRIPTION='Something to do' | |
task add "$DESCRIPTION" \ | |
project:"$PROJECT" \ |
set term svg size 1400,1000 font "sans,30" | |
set output "plot.svg" | |
set style data fsteps | |
set timefmt "%Y-%m-%d" | |
set xlabel "Fecha (día/mes)" | |
set xdata time | |
set xrange [ '2021-11-01' : '2021-12-15' ] |