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
package io.github.alextmjugador; | |
import lombok.Data; | |
@Data | |
public class PlayerProfile { | |
private String name; | |
private String id; | |
} |
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
# Source computer commands (run these first): | |
$ sudo mount -o ro /dev/sda2 /mnt | |
$ socat -dd -u EXEC:"sudo tar -C /mnt --acls --xattrs --numeric-owner -vcf - ." TCP-LISTEN:2212 | |
# Destination computer commands (the UUIDs and labels can be obtained with lsblk on the source computer). | |
# 192.168.0.2 is the IP address of the source computer: | |
$ sudo mkfs.ext4 -U <source filesystem UUID> -L <source filesystem label> /dev/nvme0n1p2 | |
# Set partition UUID with fdisk (enter expert mode) | |
$ sudo mount /dev/nvme0n1p2 /mnt | |
$ socat -dd -u TCP:192.168.0.2:2212 EXEC:"sudo tar -C /mnt --overwrite --numeric-owner -vpxf -" |
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/sh -e | |
# Script to download and reinstall all the files within a subtree | |
# provided by the Debian packages installed on the system. Unlike | |
# reinstalling all the packages, this script only extracts the | |
# files within the specified subtree, does not execute any package | |
# setup scripts, and stores its results in a configurable $OUTPUT_DIR, | |
# making it a better fit for advanced Linux installation repairs. | |
# | |
# When the filesystem to repair does not match the root filesystem |
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/sh -e | |
# Shell script to convert videos to APNG images suitable for use as Discord | |
# stickers. Tools used: | |
# - ffmpeg | |
# - pngquant | |
# - apngasm | |
while getopts r:f:p:m:h option; do | |
case $option in |
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/sh -e | |
# Script to setup and launch FFXIV using XIVLauncher on a Proton >= 8 Wine | |
# prefix. Can be used by adding this script as a non-Steam game to Steam and | |
# choosing the right Proton compatibility layer. Do not modify the default | |
# target directory, which matches the directory where this script is. | |
# XIVLauncher files must be installed in the "xivlauncher" subdirectory at the | |
# script directory. After launching FFXIV for a first time using Steam to set up | |
# the Proton prefix, launching it outside of Steam via protontricks is supported. |
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/sh -eu | |
# Backs up a personal Bitwarden vault to an encrypted LUKS file store. | |
. ./bw-common | |
echo '> Exporting personal vault to JSON file...' | |
bw export --format json --output "$WORKDIR"/backup/export.json | |
echo '> Exporting attachments...' |
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
/// Minimalistic and lightweight Rust code to fetch the build creation timestamp of the current | |
/// executable for Windows platforms, without requiring any build-time script or configuration. | |
/// | |
/// Only the following is required in your `Cargo.toml`: | |
/// ```toml | |
/// [dependencies] | |
/// windows-sys = { version = "0.59.0", features = ["Win32_System_LibraryLoader", "Win32_System_Threading", "Win32_System_ProcessStatus"] } | |
/// tz-rs = { version = "0.7.0", default-features = false } | |
/// ``` | |
fn build_date_time() -> Option<UtcDateTime> { |
OlderNewer