Skip to content

Instantly share code, notes, and snippets.

View mannysz's full-sized avatar

Emanuel de Souza mannysz

View GitHub Profile
@mannysz
mannysz / strip_dir_and_ext.py
Created June 7, 2017 17:14
Stripping directory and extension from file name
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 July 7, 2016 01:44 — forked from bwhaley/example_usage.py
Python log handler for Sumo Logic HTTP source
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")

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: