Skip to content

Instantly share code, notes, and snippets.

@rlan
rlan / tts.sh
Created February 3, 2025 13:02 — forked from nathanlesage/tts.sh
A small utility function to quickly convert a text file into a spoken track
# TTS COMMAND
#
# This command is a handy utility that allows you to quickly convert
# a text file into a speech recording.
#
# NOTE: This will only work on macOS, since it relies on the `say`
# command which utilizes Apple's speech synthesis system.
#
# REQUIRED: ffmpeg. You can easily install this using `brew install ffmpeg`
#
@rlan
rlan / github-gpg-key-with-private-email.md
Created February 1, 2025 14:40 — forked from nitrocode/github-gpg-key-with-private-email.md
Github "Verified" commits using GPG key with private email

Github "Verified" commits using GPG key with private email

It's nice to see a Verified message next to each commit for peace of mind.

Using GPG or S/MIME, you can sign tags and commits locally. These tags or commits are marked as verified on GitHub so other people can be confident that the changes come from a trusted source.

  1. Install latest gpg

    If using a mac use homebrew

@rlan
rlan / Creating GPG keys and subkeys.md
Last active February 1, 2025 18:07 — forked from gnzsnz/Creating GPG keys and subkeys.md
Creating GPG keys and subkeys

Creating GPG keys and subkeys

There are the steps to create GPG key pair and the additional steps to create a subkey.

Create GPG keys

gpg --full-generate-key
Please select what kind of key you want:
@rlan
rlan / README.md
Created September 22, 2024 05:44 — forked from tomdaley92/README.md
Proxmox - Email Alerts Setup (gmail)

Proxmox - Email Alerts Setup (gmail)

  1. SSH into proxmox node and become root user. Run the following commands to download extra software dependencies we'll need.

    apt update
    apt install -y libsasl2-modules mailutils
  2. Enable 2FA for the gmail account that will be used by going to security settings

@rlan
rlan / imagenet.sh
Last active July 30, 2021 11:06 — forked from sharma0611/imagenet.sh
ImageNet Preparation for PyTorch torch vision.datasets.imagenet
#!/bin/bash
#
# These files should exist:
# $ ls
# ILSVRC2012_devkit_t12.tar.gz ILSVRC2012_img_train.tar ILSVRC2012_img_val.tar
#
# When this script is finished:
# $ ls
# imagenet ILSVRC2012_devkit_t12.tar.gz ILSVRC2012_img_train.tar ILSVRC2012_img_val.tar
# $ ls imagenet
@rlan
rlan / global-gitignore.md
Created June 13, 2018 00:59 — forked from subfuzion/global-gitignore.md
Global gitignore

There are certain files created by particular editors, IDEs, operating systems, etc., that do not belong in a repository. But adding system-specific files to the repo's .gitignore is considered a poor practice. This file should only exclude files and directories that are a part of the package that should not be versioned (such as the node_modules directory) as well as files that are generated (and regenerated) as artifacts of a build process.

All other files should be in your own global gitignore file. Create a file called .gitignore in your home directory and add anything you want to ignore. You then need to tell git where your global gitignore file is.

Mac

git config --global core.excludesfile ~/.gitignore

Windows

git config --global core.excludesfile %USERPROFILE%\.gitignore