My Arch dotfiles
git clone https://github.com/rod-stuchi/dotfiles.git .dotfiles --bare --no-checkout
# asdf-vm
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# vim-plug
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# On archlinux
sudo pacman -S fzf moreutils
# On macOS
brew install fzf moreutils
/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME add .zshrc
/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME checkout -p master .zshrc
ggit add .config/nvim
ggit checkout -p {master|macos} .config/nvim
Or
ggit checkout {master|macos} .config/nvim
ggit config --local status.showUntrackedFiles no
sudo sed -ie 's/rights="none"/rights="all"/' /etc/ImageMagick-7/policy.xml
convert -thumbnail x300 -background white -alpha remove "{file}.pdf[0]" "{file}_thumb.png"
ls PATH | xargs -L1 -I{} sh -c 'rg -q {} *.md; if [[ $? != 0 ]]; then rm PATH/{}; fi'
tar cpf - _*.json | pv -pbrt -s $(du -shc *.json | cut -f1 | tail -n1) | xz -9 > archive.tar.xz
fd {name} -t f -print0 | tar -czvf {file}.tar.gz --null -T -
tar tvf archive.tar.xz
xz -l archive.tar.xz
head -c 15M </dev/urandom >myfile
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -uroot mysql
# by branch name
git show-ref --heads | sort -u | awk '{ print $2 }' | xargs git grep "string"
# by sha1sum branch
git show-ref -s | sort -u | xargs git grep "string"
# by commits
git rev-list --all | xargs git grep "string"
How to solve
git clone https://github.com/Unrud/init-headphone
./autogen.sh
./configure
make
make install
systemctl enable init-headphone