Skip to content

Instantly share code, notes, and snippets.

View jalogut's full-sized avatar

Juan Alonso jalogut

View GitHub Profile
@jalogut
jalogut / iterm2.sh
Created November 8, 2018 15:45
Execute bash command in a new window of iterm2
#!/bin/bash
#set -x
COMMAND=$@
osascript -e 'tell application "iTerm2"' \
-e 'create window with default profile command "bash -c \"echo " & "'"${COMMAND}"'" & " && " & "'"${COMMAND}"'" & " && read || read \""' \
-e 'end tell'
@jalogut
jalogut / docker_space_cheat_sheet.md
Last active May 1, 2024 21:21
Cheat sheet to check disk usage on docker. Identify what takes most of your space

Total disk size configuration (Mac)

ls -klsh ~/Library/Containers/com.docker.docker/Data/vms/0/Docker.raw

Total disk usage (Mac)

du -h ~/Library/Containers/com.docker.docker/Data/vms/0/Docker.raw
@jalogut
jalogut / tmux-cheatsheet.markdown
Created April 30, 2020 14:00 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname