Skip to content

Instantly share code, notes, and snippets.

View nelsonaloysio's full-sized avatar
🐧

nelsonaloysio

🐧
View GitHub Profile
#!/usr/bin/env bash
#
# A simple script in bash to list Arch
# packages with some nifty improvements.
#
# usage: packages {option}
# options:
# installed lists user installed packages
# dependencies lists dependency packages
# history lists install history
#!/usr/bin/env bash
#
# A simple Bash CLI tool aimed at unlocking
# BitLocker-encrypted devices with <dislocker>.
USAGE="""usage: bitlocker /dev/sdX "my_password" [--relock]
"""
USER_ID="1000"
ROOT_DIR="/dev/dislocker"
TARGET_DIR="/media/dislocker"
#!/usr/bin/env bash
# Downloads and extracts Microsoft core fonts.
# To make it available, move the output files to:
#
# User-wide: ~/.local/share/fonts [or] ~/.fonts
# System-wide: /usr/share/fonts
#
# Requires `cabextract`.
#
#!/bin/sh
# SPDX-License-Identifier: GPL-3.0-only
#
# This file is part of the distrobox project:
# https://github.com/89luca89/distrobox
#
# Just modified to work with toolbox:
# https://github.com/containers/toolbox
#
# Copyright (C) 2021 distrobox contributors
{
"Afghanistan": "AFG",
"Albania": "ALB",
"Algeria": "DZA",
"American Samoa": "ASM",
"Andorra": "AND",
"Angola": "AGO",
"Anguilla": "AIA",
"Antigua and Barbuda": "ATG",
"Argentina": "ARG",
{
"aa": "afar",
"ab": "abkhazian",
"ae": "avestan",
"af": "afrikaans",
"ak": "akan",
"am": "amharic",
"an": "aragonese",
"ar": "arabic",
"as": "assamese",
@nelsonaloysio
nelsonaloysio / cmus-spotify-modern-rc
Created September 6, 2023 19:25
cmus: rc and spotify-modern theme
# cmus-spotify-modern-rc

Mounting BitLocker-encrypted NTFS drives as read/write on MacOS Ventura

BitLocker encryption has become a common alternative for securing personal files and is nowadays natively supported by Linux, at least within GNOME. Some additional steps, however, are still required to ensure full MacOS compatibility. This guide describes the necessary steps to achieve it.

Requirements

We require three packages: macFUSE, ntfs-3g (and brew), and dislocker.

1/3: Install macFUSE

@nelsonaloysio
nelsonaloysio / flatpak install
Created January 2, 2024 21:14 — forked from user5145/flatpak install
how to build, install and remove flatpak applications from cli
1. Store in a repository
flatpak-builder --force-clean build-dir --repo=/path/to/local/repo your.application.Client.yml
2. Install from the repository
flatpak --user install localrepo your.application.Client
3. Install the repository
flatpak --user remote-add --no-gpg-verify local-repo /path/to/repo
4. Store in a folder
@nelsonaloysio
nelsonaloysio / hex.sh
Last active January 10, 2024 21:04 — forked from nberlette/hex.sh
[bash] rgb to hex
hex() { bash -c """printf "%02X%02X%02X" $(echo $* | tr , \ )"""; }