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 std::io::{stdin, Read}; | |
use cansi::v3::*; | |
use serde::Serialize; | |
fn cansi_to_mc_color(color: Color) -> &'static str { | |
match color { | |
Color::Black => "black", | |
Color::Red => "red", | |
Color::Green => "green", | |
Color::Yellow => "gold", |
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
#!/bin/bash | |
MOUNTPOINT="/media/crypt" | |
CRYPTNAME="cryptroot" | |
set -euo pipefail | |
[[ $(id -u) -ne 0 ]] && { | |
echo "This script must be run as root" | |
exit 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
#!/bin/bash | |
# by lemon.sh | |
set -euo pipefail | |
[[ $# -ne 2 ]] && echo "Usage: $0 <youtube link> <output filename>" && exit 1 | |
type yt-dlp &>/dev/null || { echo "Error: yt-dlp is not available."; exit 10; } | |
type aria2c &>/dev/null || { echo "Error: aria2c is not available."; exit 11; } | |
type ffmpeg &>/dev/null || { echo "Error: ffmpeg is not available."; exit 12; } |
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
; LemonTimer 1.0 | |
; A simple desktop clock written in x86 ASM | |
; by ./lemon | |
format PE | |
entry start | |
include 'win32ax.inc' | |
section '.data' data readable writeable |