Skip to content

Instantly share code, notes, and snippets.

analyticd / colorize-emacs.bashsource
Created April 17, 2021 02:31 — forked from algal/colorize-emacs.bashsource
Setting up truecolor (24 bit color) in emacs in the terminal, under iTerm2,, and others.
# sourcing this file will define a bash functions that
# tries to run subsequent calls to emacs with 24 bit color.
# It sets TERM=xterm-emacs-leg if
# - we've created a user-local terminfo record for xterm-emacs-leg, and
# - we're using iTerm2 or something has set COLORTERM=truecolor
# This will cause emacs to use 24 bit color only when it will work,
# inside or outside of tmux. I haven't found a way to auto-detect yet.
analyticd /
Created March 26, 2020 00:06 — forked from pascalpoitras/
My always up-to-date WeeChat configuration (weechat-dev)

WeeChat Screenshot

You need at least WeeChat 2.8-dev

Enable mouse

/mouse enable

analyticd / 1-setopts.zsh
Created January 9, 2020 02:56 — forked from mattmc3/1-setopts.zsh
ZSH - options by framework
## ZSH Options
# Changing Directories
setopt auto_cd # if a command isn't valid, but is a directory, cd to that dir
setopt auto_pushd # make cd push the old directory onto the directory stack
setopt pushd_ignore_dups # don’t push multiple copies of the same directory onto the directory stack
setopt pushd_minus # exchanges the meanings of ‘+’ and ‘-’ when specifying a directory in the stack
analyticd /
Created December 31, 2019 03:31 — forked from howardabrams/
Bulk of my server-side profile that when I first log into the system, it starts up Emacs as a daemon and a `tmux` session. From then on, I just attach to that `tmux,` and use `emacsclient` to edit files... especially with a `split-window`.
alias e='emacsclient -q -a emacs'
function e {
tmux new-window -a -n "emacs" "$EDITOR $@"
function ee {
tmux split-window "$EDITOR $@"
analyticd /
Created February 26, 2018 22:19 — forked from schalekamp/
simple factor analysis using python/pandas
# basic factor analysis
import pandas as pd
import as web
import datetime, re, copy
import numpy as np
import statsmodels.formula.api as sm
start =,1,1)