Under Terminal > Preferences... > (Profile) > Advanced, "Declare terminal as:" should be set to xterm-256color
.
This is easy with homebrew:
brew install screen
Under Terminal > Preferences... > (Profile) > Advanced, "Declare terminal as:" should be set to xterm-256color
.
This is easy with homebrew:
brew install screen
So I have been using tmux for a while and have grown to like it and have since added many many customizations to it. Now once you start getting the hang of it, you'll naturally want to do more with the tool.
Now tmux has a concept of window-group
and session
and if you are like me you'll want multiple session that connects to the same window group instead of a new window group every time. Basically I just need different views into the same set of windows that I have already created, I don't want to create a new set of windows every time I fire up my terminal.
This is the default case if you simply use the tmux
command as your login shell, effectively creating a new group of windows every time you start tmux
.
This is less than ideal because, if you are like me, you fire up one-off terminals all the time and you don't want all those one-off jobs to stay running in the background. Plus sometimes you need information fro
.table-container th.asc:after { | |
content: '\0000a0\0025b2'; | |
} | |
.table-container th.desc:after { | |
content: '\0000a0\0025bc'; | |
} | |
.pagination { | |
text-align: center; | |
} |
Info: | See <http://docutils.sf.net/rst.html> for introductory docs. |
---|---|
Author: | David Goodger <[email protected]> |
Date: | 2013-02-20 |
Revision: | 7612 |
Description: | This is a "docinfo block", or bibliographic field list |
Note
If you are reading this as HTML, please read
# -*- coding: utf-8 -*- | |
""" | |
Based on: | |
https://gist.github.com/meeuw/c3bc9dd07945c87c89e6#file-findfiles-py | |
https://bitbucket.org/nosklo/pysmbclient/wiki/Home | |
""" | |
import os | |
import pexpect | |
import re |
class Node(object): | |
def __init__(self, data=None): | |
self.data = data | |
self.next = None | |
def __repr__(self): | |
return str(self.data) | |
class SinglyLinkedList(object): | |
def __init__(self, iterable=[]): |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
########### | |
# Python 2: | |
########### | |
try: | |
raise Exception | |
except Exception as e: | |
s,r = getattr(e, 'message') or str(e), getattr(e, 'message') or repr(e) | |
print 's:', s, 'len(s):', len(s) | |
print 'r:', r, 'len(r):', len(r) | |
# compinit optimization for oh-my-zsh | |
# On slow systems, checking the cached .zcompdump file to see if it must be | |
# regenerated adds a noticable delay to zsh startup. This little hack restricts | |
# it to once a day. It should be pasted into your own completion file. | |
# | |
# The globbing is a little complicated here: | |
# - '#q' is an explicit glob qualifier that makes globbing work within zsh's [[ ]] construct. | |
# - 'N' makes the glob pattern evaluate to nothing when it doesn't match (rather than throw a globbing error) | |
# - '.' matches "regular files" | |
# - 'mh+24' matches files (or directories or whatever) that are older than 24 hours. |
#!/usr/bin/env bash | |
stale_images=`docker images --no-trunc --quiet --filter "dangling=true"` | |
stale_containers=`docker ps --no-trunc --quiet --filter "status=exited"` | |
stale_volumes=`docker volume ls --quiet --filter "dangling=true"` | |
stale_images_count=`echo "$stale_images" | sed '/^\s*$/d' | wc -l | xargs` | |
stale_containers_count=`echo "$stale_containers" | sed '/^\s*$/d' | wc -l | xargs` | |
stale_volumes_count=`echo "$stale_volumes" | sed '/^\s*$/d' | wc -l | xargs` | |
echo "Removing stale containers..." |