Skip to content

Instantly share code, notes, and snippets.

View itatabitovski's full-sized avatar

Ilin Tatabitovski itatabitovski

View GitHub Profile
@itatabitovski
itatabitovski / gist:40bba020f71cb4bde250d4cf23bb7cdb
Created May 12, 2022 09:41
tmux rename window to ssh hostname
ssh() {
if $(env | grep -q "TMUX_PANE"); then
tmux rename-window "$*"
command ssh "$@"
tmux set-window-option automatic-rename "on" 1>/dev/null
else
command ssh "$@"
fi
}
#### Contents of the preconfiguration file (for stretch)
### Localization
# Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US.UTF-8
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string US
#d-i debian-installer/locale string en_US.UTF-8
@itatabitovski
itatabitovski / dotfiles-bootstrap.sh
Created January 22, 2020 21:23
Bootstraping dotfiles on a fresh installation
/bin/bash
mkdir ~/src
git clone --bare https://github.com/itatabitovski/dotfiles.git $HOME/src/dotfiles
alias dotfiles="/usr/bin/git --git-dir=$HOME/src/dotfiles --work-tree=$HOME"
dotfiles checkout
if [ $? = 0 ]; then
echo "Checked out config.";
### Keybase proof
I hereby claim: * I am itatabitovski on github. * I am itatabitovski (https://keybase.io/itatabitovski) on keybase. * I have a public key ASAM3-mVMlRlKO3-_7tEEkMRNWNsJkJbGx4S9D3WQkLCVQo
To claim this, I am signing this object:
```json
{ "body": { "key": { "eldest_kid": "01200cdfe99532546528edfeffbb4412431135636c26425b1b1e12f43dd64242c2550a", "host": "keybase.io", "kid": "01200cdfe99532546528edfeffbb4412431135636c26425b1b1e12f43dd64242c2550a", "uid": "adb696bf365cf168f3b1375783103d19", "username": "itatabitovski" }, "merkle_root": { "ctime": 1562834151, "hash": "30f076214f5dac3bd969e91d0f6ee1476fc0caf86e76c37b35c81c6c4047438bb7f8366489d7c7504928717e8492a90981c8aff9940ef93fcc7425a7b33671ea", "hash_meta": "9848a0e2f02c9366b06bf2de242b0e8ffe9da23ec5ee1bde593bbefbacbabfee", "seqno": 5737343 }, "service": { "entropy": "RyZKuxXD7HgxRXH1SJW8OYsg", "name": "github", "username": "itatabitovski"
@itatabitovski
itatabitovski / gapps-config.txt
Last active September 21, 2018 19:41
Remove system apps from Lineage OS 15.1 - /sdcard/Open-Gapps/gapps-config.txt
(AudioFX)
(Calendar)
(Contacts)
(Eleven)
(Email)
(Gallery2)
(Jelly)
(Snap)
@itatabitovski
itatabitovski / debloat-sony-experia-f5321.sh
Last active May 26, 2018 05:39
de-bloat Sony Xperia F5321
#!/bin/sh
pm uninstall -k --user 0 com.s.antivirus
# Vodafone Accessories
pm uninstall -k --user 0 com.vodafone.accesorystore
pm uninstall -k --user 0 com.appseleration.android.selfcare
pm uninstall -k --user 0 com.vodafone.vodafone360updates
pm uninstall -k --user 0 com.vodafone.smhs
pm uninstall -k --user 0 com.vodafone.android.app.rbt
@itatabitovski
itatabitovski / docker-registry.sh
Created April 4, 2017 06:37
List and delete tags and repositories from v2 docker registry
#!/bin/bash
set -euo pipefail
CMD=$0
function usage {
cat <<EOU
Usage: