Skip to content

Instantly share code, notes, and snippets.

View vartec's full-sized avatar
🤔

Bartek Ogryczak vartec

🤔
View GitHub Profile
## Recodring
# install
brew install asciinema
# record
asciinema rec /tmp/foo.cast
## Convert to GIF
# install
let cursorTimer;
document.body.onmousemove = () => {
document.body.style.cursor = null;
clearTimeout(cursorTimer);
cursorTimer = setTimeout(() => document.body.style.cursor = 'none', 3000);
}
#!/bin/zsh
find $WORK_DIR_PATH -name .git | sed s/'.git'// | xargs -P64 -I{} zsh -c 'cd {} && git fetch -j 10 &> /dev/null'
for DIR in $WORK_DIR_PATH/*; do
BASENAME=$(basename $DIR)
echo -n "\e[92mUpdating: \e[1m$BASENAME\e[0m "
pushd $DIR
if [[ ! -d .git ]]; then
echo "\e[93mnot a git repo, skipping... \e[0m"
@vartec
vartec / install.txt
Last active April 22, 2020 01:30
Setting up new MBP
0. launch `term`
1. Install Homebrew (see http://brew.sh)
2. While Homebrew is installing this and following things, modify settings (see settings.txt)
3. `brew install cask`
4. `brew cask install iterm2`
5. Launch iterm2
6. `brew install python git` # pre-installed versions are old, see also https://opensource.com/article/19/5/python-3-default-mac
6.1. export PATH=/usr/local/bin:$PATH to make homebrew stuff take precedence
7. `brew cask install visual-studio-code slack google-chrome`
8. Powerline