Skip to content

Instantly share code, notes, and snippets.

View felixSchl's full-sized avatar

Felix Schlitter felixSchl

View GitHub Profile
@felixSchl
felixSchl / gist:d38b455df8bf83a78d3d
Last active October 28, 2020 09:10
Recursive zip python
# Original:
# http://stackoverflow.com/a/6078528
#
# Call `zipit` with the path to either a directory or a file.
# All paths packed into the zip are relative to the directory
# or the directory of the file.
def zipit(path, archname):
archive = zipfile.ZipFile(archname, "w", zipfile.ZIP_DEFLATED)
if os.path.isdir(path):
@felixSchl
felixSchl / tmux-completions.sh
Created March 21, 2023 01:19
TMUX FZF integration
#!/bin/bash
#
# Author: Felix Schlitter
# Description:
# Manage sessions using FZF
#
# Place this into your .bashrc after installing FZF,
# Then update your .tmux.conf and create key-bindings. Example:
#
# unbind s