Skip to content

Instantly share code, notes, and snippets.

@ChaosData
ChaosData / unfuckup.sh
Created April 11, 2016 16:37
fix vmware shared folders in ubuntu 16.04
#!/bin/sh
sudo apt-get install open-vm-tools-desktop git build-essential
git clone https://github.com/vmware/open-vm-tools.git
cd open-vm-tools/open-vm-tools/
sudo apt-get install autoconf libtool
autoreconf -i
sudo apt-get install libmspack-dev libglib2.0-dev libprocps4-dev libdumbnet-dev
./configure --without-x --without-pam --without-ssl --without-icu
make MODULES=vmhgfs
"+alert(1)+"
@Flolagale
Flolagale / incremental_tags.vim
Last active May 25, 2020 00:25
Generate ctags incrementally in vim. Juste paste this into your .vimrc.
function! GenerateTagsIncrementally()
python << EOF
import os
print('Generating tags incrementally.')
# Walk the file tree, if a file has an mtime more recent than the tag file,
# add it to the list of files to index.
tags_mtime = os.stat('tags').st_mtime
with open('list', 'w') as fp:
for dirpath, dirnames, filenames in os.walk(os.getcwd()):
for filename in filenames: