Scripts para instalar las apps que uso.
plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
)
rofi -show run
rofi -show ssh
gnome-terminal -e "zsh -c '. ranger;zsh'"
rename -n 's/ /-/g' *
ls | xargs -n1 -I {} ffmpeg -i {} 2>&1 | grep "Duration:"
grb -i HEAD~N
# Mark all commits for edit and repeat N times:
gcn! --author="Agustin Ranieri <aguseranieri@gmail.com>"
grb --continue
git diff --name-only | xargs -i chmod 644 "{}"
$ tree .
.
├── collection1.json
├── collection2.json
└── collection3.json
ls | cut -f1 -d. | xargs -n1 -i -p mongoimport --db $DB_NAME --collection {} --file {}.json
- Open
dconf-editor
- Navigate to org -> gnome -> mutter -> keybindings -> switch-monitor
- Then uncheck the box about using the default value and set the custom value to []
- Restart
# Install required software
sudo apt install -y os-prober grub-customizer
# Add other OS to grub
sudo os-prober
# Update grub
sudo update-grub
# Check grub configuration
sudo grub-customizer
# Find Windows efi partition
sudo fdisk -l
# Mount it
sudo mkdir /mnt/windows
sudo mount /dev/sda1 /mnt/windows
# Copy Windows entry
sudo cp -r /mnt/windows/EFI/Microsoft/ /boot/efi/EFI
# Remove "noprompt" from linux entry
sudo sed -i 's/ noprompt / /g' /boot/efi/EFI/Pop_OS-*/cmdline
# Add starting menu with timeout
printf "timeout 10\nconsole-mode max\n" | sudo tee /boot/efi/loader/loader.conf > /dev/null
Ref:
sudo timedatectl set-local-rtc 1
-
Pair all devices with Ubuntu
-
Pair all devices with Windows
-
Go back to Ubuntu
-
Mount Windows device
-
Go to
Windows/System32/config
-
Get all devices' pairing keys:
chntpw -e SYSTEM # this will open a console
cd \ControlSet001\Services\BTHPORT\Parameters\Keys
ls # shows you your Bluetooth port's MAC address
Node has 1 subkeys and 0 values
key name
<aa1122334455>
cd aa1122334455 # cd into that folder
ls # list the existing devices' MAC addresses
Node has 0 subkeys and 1 values
size type value name [value if type DWORD]
16 REG_BINARY <00aa22ee4455>
hex 00aa22ee4455 # open the value for that MAC address
=> :00000 XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX .................
- Rewrite the pairing keys in Linux config files:
sudo su # run as superuser
cd /var/lib/bluetooth/
ls # list all pairing keys
nano "00:AA:22:EE:44:55/info"
[LinkKey]
Key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
- Restart bluetooth service:
sudo systemctl restart bluetooth