Skip to content

Instantly share code, notes, and snippets.

View blurgyy's full-sized avatar
🫖
I’m a teapot

Gaoyang Zhang blurgyy

🫖
I’m a teapot
  • Zhejiang University
  • 13:46 (UTC +08:00)
View GitHub Profile
@blurgyy
blurgyy / nixos-iso-bootstrap.sh
Last active March 27, 2025 21:38
Enable zram and larger nix store in a NixOS live ISO environment
#!/usr/bin/env bash
# Run this as root
zram_size=2G
if [[ "$#" -gt 0 ]]; then
zram_size="$1"
fi
# Enable zram swap
@blurgyy
blurgyy / m3u82mp4.sh
Last active July 14, 2021 12:07
Shell script to convert m3u8 playlist(s) to mp4 video(s) with ffmpeg.
#!/usr/bin/env bash
# Convert m3u8 playlist(s) to mp4 video(s) with ffmpeg.
#
# Usage:
#
# m3u82mp4.sh -i <input_url> [-i <more_input_urls>] [-d <output_dir>]
#
# Example:
#

Keybase proof

I hereby claim:

  • I am Blurgyy on github.
  • I am blurgy (https://keybase.io/blurgy) on keybase.
  • I have a public key whose fingerprint is 59A5 B175 D8D2 6A5F 912A 2350 FF02 F82F 9491 5004

To claim this, I am signing this object: