As configured in my dotfiles.
start new:
tmux
start new with session name:
Apprentice colorscheme: https://github.com/romainl/Apprentice | |
almost_black = ["#1c1c1c", 234, "black"] | |
darker_grey = ["#262626", 235, "black"] | |
dark_grey = ["#303030", 236, "darkgrey"] | |
grey = ["#444444", 238, "darkgrey"] | |
medium_grey = ["#585858", 240, "darkgrey"] | |
light_grey = ["#6c6c6c", 242, "lightgrey"] | |
lighter_grey = ["#bcbcbc", 250, "lightgrey"] | |
green_grey = #82977C |
import librosa | |
import os | |
from scipy.io import wavfile | |
ROOT = '.' | |
DIR = 'src' # source directory | |
TO_DIR = 'dst' # destination directory | |
SAMPLE_RATE = 16000 | |
for i, fname in enumerate(os.listdir(os.path.join(ROOT, DIR))): |
#!/usr/bin/env python | |
# Simple example of Wiener deconvolution in Python. | |
# We use a fixed SNR across all frequencies in this example. | |
# | |
# Written 2015 by Dan Stowell. Public domain. | |
import numpy as np | |
from numpy.fft import fft, ifft, ifftshift |
As configured in my dotfiles.
start new:
tmux
start new with session name:
# On slow systems, checking the cached .zcompdump file to see if it must be | |
# regenerated adds a noticable delay to zsh startup. This little hack restricts | |
# it to once a day. It should be pasted into your own completion file. | |
# | |
# The globbing is a little complicated here: | |
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
# - '.' matches "regular files" | |
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. | |
autoload -Uz compinit |
From Stack Overflow.
# Fetch the submodule commits into the main repository
git remote add submodule_origin git://url/to/submodule/origin
git fetch submodule_origin
# Start a fake merge (won't change any files, won't commit anything)
git merge -s ours --no-commit submodule_origin/master
curl --http2 -k -v https://localhost/get/ |
curl -F ‘data=@path/to/file.txt’ https://localhost/upload/ |
#!/bin/bash | |
# source: http://www.haskell.org/pipermail/haskell-cafe/2011-March/090170.html | |
sudo rm -rf /Library/Frameworks/GHC.framework | |
sudo rm -rf /Library/Frameworks/HaskellPlatform.framework | |
sudo rm -rf /Library/Haskell | |
rm -rf .cabal | |
rm -rf .ghc | |
rm -rf ~/Library/Haskell |