Skip to content

Instantly share code, notes, and snippets.

View RicherMans's full-sized avatar

Heinrich Dinkel RicherMans

View GitHub Profile
@wsntxxn
wsntxxn / install.sh
Last active March 21, 2022 12:54
neovim and coc installing script
# 1. install neovim
echo "[step 1] installing neovim"
if command -v nvim > /dev/null; then
echo "nvim has been installed"
else
NVIM_HOME="$HOME/modules/neovim"
printf "Neovim will be installed into this location:\\n"
printf "%s\\n" "${NVIM_HOME}"
@loerise
loerise / MiTV ADBlock
Last active February 17, 2025 07:50
小米电视广告屏蔽, For dnsmasq and openclash
# DNSMASQ
address=/ad.mi.com/
address=/ad.xiaomi.com/
address=/ad1.xiaomi.com/
address=/app.chat.xiaomi.net/
address=/appstore.cdn.pandora.xiaomi.com/
address=/appstore.pandora.xiaomi.com/
address=/api.ad.xiaomi.com/
address=/ad.doubleclick.net/
address=/bss.pandora.xiaomi.com/
@andersevenrud
andersevenrud / alacritty-tmux-vim_truecolor.md
Last active April 21, 2025 01:13
True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

True Color (24-bit) and italics with alacritty + tmux + vim (neovim)

This should make True Color (24-bit) and italics work in your tmux session and vim/neovim when using Alacritty (and should be compatible with any other terminal emulator, including Kitty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
@HenrikEckermann
HenrikEckermann / gist:1d334a44f61349ac71f0e235b3443a69
Created December 30, 2017 09:21
plot mean and error bars with plotnine
import pandas as pd
import numpy as np
from plotnine import *
#import data
bdf = pd.read_csv('http://www.stat.columbia.edu/~gelman/arm/examples/beauty/ProfEvaltnsBeautyPublic.csv')
#Rename btystdave to beauty for convenience
bdf.columns = ['beauty' if x=='btystdave' else x for x in bdf.columns]
bdf.info()
@kastnerkyle
kastnerkyle / audio_tools.py
Last active November 17, 2024 12:01
Audio tools for numpy/python. Constant work in progress.
raise ValueError("DEPRECATED/FROZEN - see https://github.com/kastnerkyle/tools for the latest")
# License: BSD 3-clause
# Authors: Kyle Kastner
# Harvest, Cheaptrick, D4C, WORLD routines based on MATLAB code from M. Morise
# http://ml.cs.yamanashi.ac.jp/world/english/
# MGC code based on r9y9 (Ryuichi Yamamoto) MelGeneralizedCepstrums.jl
# Pieces also adapted from SPTK
from __future__ import division
import numpy as np