Skip to content

Instantly share code, notes, and snippets.

View mactep's full-sized avatar

Tulio Brunoro mactep

View GitHub Profile
@mactep
mactep / conceal.lua
Last active May 2, 2024 18:44
Conceal html class attribute values using treesitter
-- THIS IS DEPRECATED, USE THE FILE BELOW
-- should get bufnr from autocmd or something
-- conceal only accepts one character
-- thanks to u/Rafat913 for many suggestions and tips
local namespace = vim.api.nvim_create_namespace("class_conceal")
local group = vim.api.nvim_create_augroup("class_conceal", { clear = true })
local conceal_html_class = function(bufnr)
@mactep
mactep / install_droidcam.sh
Last active November 7, 2022 22:16
Droidcam on Fedora
# Following https://www.dev47apps.com/droidcam/linux/
cd /tmp/
wget -O droidcam_latest.zip https://files.dev47apps.net/linux/droidcam_1.8.2.zip
unzip droidcam_latest.zip -d droidcam
cd droidcam && sudo ./install-client
sudo dnf install libappindicator-gtk3 kernel-devel gcc make android-tools
sudo ./install-video
@mactep
mactep / dotfiles.sh
Last active February 27, 2023 16:44
Migrating dotfiles no new environment
git clone --bare git@github.com:mactep/dotfiles.git $HOME/.dotfiles
function dotfiles {
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
dotfiles checkout
dotfiles config status.showUntrackedFiles no
dotfiles config core.worktree $HOME # to help vim-fugitive work correctly
echo "alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'" >> ~/.bashrc
@mactep
mactep / gist:69f5d5a06932fd99a101cc30104554dc
Created January 13, 2021 13:18
JQBX.fm autodope script bookmark
javascript:(function(){setInterval(function() { if (!document.querySelector('button.thumbs-up').classList.contains('active')) { document.querySelector('button.thumbs-up').click(); } }, 30000);})();