Skip to content

Instantly share code, notes, and snippets.

View davidrautert's full-sized avatar

David Macedo davidrautert

View GitHub Profile
@cjmamo
cjmamo / app(1).js
Last active March 15, 2017 11:29
Safely Prevent Template Caching in AngularJS
...
app.run(function($rootScope, $templateCache) {
$rootScope.$on('$viewContentLoaded', function() {
$templateCache.removeAll();
});
});
@larsar
larsar / shared_folder_centos_virtualbox.txt
Created January 27, 2012 08:04
Mount shared folder on CentOS in VirtualBox
# The VirtualBox documentation[1] for how to install guest additions
# for Linux on a virtual host is somewhat messy. So here is what
# I did to make it work.
# Install the packages required
yum update
yum install gcc kernel-devel make
reboot