Skip to content

Instantly share code, notes, and snippets.

@duggan
duggan / setup.py
Created March 29, 2024 12:07
OpenVoice updated setup.py for running on Apple Silicon with Python 3.11
from setuptools import setup
setup(name='MyShell-OpenVoice',
version='0.0.0',
description='Instant voice cloning by MyShell.',
long_description=open('README.md').read().strip(),
long_description_content_type='text/markdown',
keywords=[
'text-to-speech',
'tts',
@Starefossen
Starefossen / vim-cheats.md
Last active March 29, 2024 15:07
My vim cheat sheet for working with tabs and window splits.

Tabs

New Tab

  • :tabnew - new blank tab
  • :tabedit [file] - open file in tab

Cursor Movement

  • gt (:tabn) - next tab
@REDVM
REDVM / immich_auto_album.py
Last active March 29, 2024 15:06
Create and populate albums on Immich based on folder name
import requests
import os
from collections import defaultdict
# I have photos in subfolders like :
# /mnt/media/Photos/2023-08 Holidays
# /mnt/media/Photos/2023-06 Birthday
# /mnt/media/Photos/2022-12 Christmas
# This script will create 3 albums
# 2023-08 Holidays, 2023-06 Birthday, 2022-12 Christmas
@Myndex
Myndex / DarkSideOfTheLighter.md
Last active March 29, 2024 14:52
The Lighter Side of Dark Backgrounds.

The Lighter Side of Dark Backgrounds

Is light text on dark harder to read than the more common dark text on white? Or are there other factors?

First, just as an FYI, dark backgrounds are a problem specific to the old WCAG 2 math/method. And for that matter, evaluating predicted contrast using some other ratio maths. And let's not forget: maths like Weber and Michaelson are about threshold, but readability is far suprethreshold, so those methods are not particularly useful.

Polarized Opinions on Polarized Colors

There isn't significant scientific consensus that goes much beyond user preference, and indeed some people (such as myself) much prefer reverse, light text on dark. The various dark mode extensions are quite popular for this. Also total screen luminance and the ambient lighting all are signficant here, and again one of the indicators of the importance of personalization.

Nevertheless, the old WCAG 2.x math badly mangles dark color pairs, in the randomized tests last year, dark color pair

@soulawaker
soulawaker / soulawaker|adjust-org-table-font.el
Last active March 29, 2024 14:52
한글 and english font adjustment for org table, line spacing and line wrapping.
;; 한글 and english font adjustment for org table, line spacing and line wrapping.
;; I'm using this in spacemacs.
(with-eval-after-load 'org
;; org-table 한글:English proportion 1:2
;; Because font rescale apply entire emacs, choose another english font for org-table
;; Replace your favorite monospaced english font and adjust its height if needed
(set-face-attribute 'org-table nil :family "Roboto Mono" :height 105) ;; Apply a specific font on org-table only
(setq face-font-rescale-alist
'(("Roboto Mono" . 0.78571) ;; Find good ratio
("D2Coding ligature" . 1.1))) ;; Replace your favorite Monospaced 한글 font and find good ratio
@parmentf
parmentf / GitCommitEmoji.md
Last active March 29, 2024 14:51
Git Commit message Emoji
@CoffieldWeb
CoffieldWeb / python_3_aws.md
Last active March 29, 2024 14:51
Install Python 3, Pip 3, and Virtualenv in AWS Amazon Linux 2

How to install python 3, pip 3, and virtualenv in AWS Amazon Linux 2:

Update All Packages

sudo yum update

Install pip 3 and python 3

sudo yum install python3 pip3

Then install virtualenv using pip3