As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
# <type>: (If applied, this commit will...) <subject> (Max 50 char) | |
# |<---- Using a Maximum Of 50 Characters ---->| | |
# Explain why this change is being made | |
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
# Provide links or keys to any relevant tickets, articles or other resources | |
# Example: Github issue #23 |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
# git aliases - taken from oh-my-zsh's git plugin and translated to bash | |
# https://github.com/robbyrussell/oh-my-zsh/wiki/Cheatsheet#helpful-aliases-for-common-git-tasks | |
# https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh | |
function git_current_branch() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || \ | |
ref=$(git rev-parse --short HEAD 2> /dev/null) || return | |
echo ${ref#refs/heads/} | |
} | |
function git_current_repository() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || \ |
Here's a list of mildly interesting things about the C language that I learned mostly by consuming Clang's ASTs. Although surprises are getting sparser, I might continue to update this document over time.
There are many more mildly interesting features of C++, but the language is literally known for being weird, whereas C is usually considered smaller and simpler, so this is (almost) only about C.
struct foo {
struct bar {
int x;
from setuptools import setup | |
setup(name='datapeek', | |
version='0.1', | |
description='A simple library for dealing with raw data.', | |
url='https://github.com/sean-mcclure/datapeek_py', | |
author='Sean McClure', | |
author_email='sean.mcclure@example.com', | |
license='MIT', | |
packages=['datapeek'], |
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the
#!/usr/bin/bash | |
# sudo apt install gcc-arm-linux-gnueabihf | |
VERSION=1.2.11 | |
wget https://zlib.net/zlib-$VERSION.tar.gz | |
tar xf zlib-$VERSION.tar.gz && rm zlib-$VERSION.tar.gz | |
cd zlib-$VERSION | |
mkdir build |
# Access host ports from WSL 2. | |
# https://gist.github.com/vilic/0edcb3bec10339a3b633bc9305faa8b5 | |
# Make sure WSL gets initialized. | |
bash.exe -c exit | |
# Record host name for /etc/hosts that points to host IP. | |
$HOST_NAME = "host.wsl"; | |
# Ports listened on host localhost to forward, you don't need to add the port if it listens all addresses. |