Skip to content

Instantly share code, notes, and snippets.

View rvllvd's full-sized avatar

Ruslan rvllvd

View GitHub Profile
// ==UserScript==
// @name BlueSky Filtred
// @namespace http://tampermonkey.net/
// @version 2024-09-28
// @description try to take over the world!
// @author Ruslan D. Revellved (https://revellved.github.io)
// @match https://bsky.app/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bsky.app/*
// @grant none
// ==/UserScript==
/* Mastodon Bird UI by @[email protected]
1.8.3 */
/* CSS variables */
:root {
/* Brand colors */
--color-brand-twitter: #1d9bf0;
--color-brand-twitter-bg: black;
--color-brand-twitter-dim: #8b98a5;
--color-brand-twitter-mud: black;
#!/usr/bin/env bash
## -----------------------------------------------------------------------------------/
## -- Requires cli mastodon toot client to work (https://github.com/ihabunek/toot) --/
## -- Arch install: `pacman -S toot` -----------------------------------------------/
## --------------------------------------------------------------------------------/
get_info() {
cmus-remote -Q | grep "$1 " | sed "s/$1 //"
}
@rvllvd
rvllvd / remove-from-git-index.txt
Created July 4, 2024 18:33 — forked from bendasvadim/remove-from-git-index.txt
GIT. Как полностью удалить файл из истории
1. Нужно найти все коммиты, которые изменяли файл:
git log --pretty=oneline --branches -- BIGFILE.ZIP
2.1 Удалить ссылки на файл из всей истории коммитов, начиная с последнего (пусть, хеш последнего коммита - 6df7640):
git filter-branch --index-filter 'git rm --cached BIGFILE.ZIP --ignore-unmatch' --prune-empty --tag-name-filter cat -- --all
2.2 Удалить ссылки на каталог из истории коммитов:
git filter-branch --force --index-filter 'git rm -r --cached --ignore-unmatch BIG/DIR' --prune-empty --tag-name-filter cat -- --all
3. Отправляем изменения на сервер: