Printable version. Just delete this line and use pandoc tmux-cheatsheet.markdown -o tmux.pdf -V geometry="margin=1in"
tmux kill-session -t myname
#! /usr/bin/env bash | |
# Wrapper for "stata -b" which issues an informative error msg and appropriate | |
# (i.e., non-zero) return code | |
# The basic idea for this script (including grepping the log file to determine | |
# whether there was an error) was taken from a similar script posted by Brendan | |
# Halpin on his blog at http://teaching.sociology.ul.ie/bhalpin/wordpress/?p=122 | |
# This script was forked from https://gist.github.com/pschumm/b967dfc7f723507ac4be |
#! /usr/bin/env python | |
""" | |
Pandoc filter to convert svg files to pdf as suggested at: | |
https://github.com/jgm/pandoc/issues/265#issuecomment-27317316 | |
rsvg-convert or inkscape must be installed | |
""" | |
__author__ = "Jerome Robert" |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# TODO: Comment code; include regexp? explanations | |
# TODO: parse with delimit in separate file; note this is imperfect. It | |
# has to be because of the way it works, which is super messy (specially | |
# for multi-line strings; i.e. stuff in quotes spanning many lines). | |
# TODO: scan code for `/*/`, `*/*`, and similar constructs. 'Please open |
It's a common confusion about terminal colours... Actually we have this:
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
#!/bin/sh | |
SITEMAP=$1 | |
if [ "$SITEMAP" = "" ]; then | |
echo "Usage: $0 http://domain.com/sitemap.xml" | |
exit 1 | |
fi | |
XML=`wget -O - --quiet $SITEMAP` |
from typing import Generic, TypeVar | |
import numpy as np | |
from pydantic.fields import ModelField | |
JSON_ENCODERS = { | |
np.ndarray: lambda arr: arr.tolist() | |
} | |
DType = TypeVar('DType') |