Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Go Go!

Joseph Lee cgjosephlee

🚀
Go Go!
View GitHub Profile
@cgjosephlee
cgjosephlee / median.theme.bash
Last active Dec 19, 2018
A simple bash theme
View median.theme.bash
#!/usr/bin/env bash
SCM_THEME_PROMPT_PREFIX="${bold_cyan} (${bold_green}"
SCM_THEME_PROMPT_SUFFIX="${bold_cyan})"
SCM_THEME_PROMPT_DIRTY=" ${bold_red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
__last_cmd_return() {
code=$?
if [ $code = 0 ]; then
View file_count.py
#!/usr/bin/python
from __future__ import print_function
import os
N = 255
for f in os.walk(os.path.expanduser('~/Music/iTunes/iTunes Media')):
if len(f[2]) > N:
print('{}\t{}'.format(len(f[2]), f[0]))