Skip to content

Instantly share code, notes, and snippets.

Avatar

Emanuel Souza mannysz

View GitHub Profile
@mannysz
mannysz / strip_dir_and_ext.py
Created Jun 7, 2017
Stripping directory and extension from file name
View strip_dir_and_ext.py
import os
FILENAME = "/path/to/my/filewith.ext"
base_name = os.path.basename(FILENAME)
without_ext = os.path.splitext(base_name)[0]
print(without_ext)
@mannysz
mannysz / example_usage.py
Created Jul 7, 2016 — forked from bwhaley/example_usage.py
Python log handler for Sumo Logic HTTP source
View example_usage.py
import logging
import logging.config
import sumologger
from sumologger import SumoHTTPHandler
logging.config.dictConfig(sumologger.LOGGING)
logger = logging.getLogger("sumologger")
logger.debug("Nifty log message")
View tmux_cheatsheet.markdown

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: