Skip to content

Instantly share code, notes, and snippets.

View felipemarques's full-sized avatar

Felipe Marques felipemarques

View GitHub Profile

Rename a git tag old to new:

git tag new old
git tag -d old
git push origin :refs/tags/old
git push --tags

The colon in the push command removes the tag from the remote repository. If you don't do this, git will create the old tag on your machine when you pull.

-- source http://stackoverflow.com/a/5719854/695454

@felipemarques
felipemarques / gist:77da19f5240afbdfe1a00fc6f2b33df3
Last active December 7, 2021 13:35
How to fix audio on ubuntu 18.04 in hyper-v
# based on https://www.elevenforum.com/t/how-to-get-sound-on-ubuntu-in-hyper-v.801/
# execute the following commands:
sudo apt-get install git libpulse-dev autoconf m4 intltool build-essential dpkg-dev libtool libsndfile-dev libspeexdsp-dev libudev-dev -y;
sudo cp /etc/apt/sources.list /etc/apt/sources.list~;
sudo sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list;
sudo apt-get update;
@felipemarques
felipemarques / 999.conf
Last active April 7, 2024 22:33
GPU Passthrough NVIDIA GTX 770 on Proxmox 7.4
balloon: 0
bios: ovmf
boot: order=scsi0;ide2;net0;ide0
cores: 6
cpu: host,hidden=1
efidisk0: local-lvm:vm-109-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:81:00,pcie=1,x-vga=on,romfile=GK104-patched.rom
ide0: local:iso/virtio-win-0.1.229.iso,media=cdrom,size=522284K
ide2: local:iso/HBCD_PE_x64.iso,media=cdrom,size=3026566K
machine: q35