Skip to content

Instantly share code, notes, and snippets.

@claudiobizzotto
claudiobizzotto / downgrade-vbox-guest-additions.md
Last active November 3, 2022 07:39
Virtual Box conflicting guest additions ("Got different reports about installed GuestAdditions version") - Ubuntu 16.04

Downgrade Virtualbox guest additions in your virtual machine (Ubuntu 16.04)

Make sure your VM is running and ssh into it. From there, run the contents of downgrade-vbox-guest-additions.sh below.

Stop vagrant-vbguest automatic updates

From your host machine, if you have the vagrant-vbguest plugin installed, make sure you deactivate it for this specific VM. To do that, set auto_update to false in your Vagrantfile:

config.vbguest.auto_update = false
@Kartones
Kartones / postgres-cheatsheet.md
Last active July 2, 2024 22:38
PostgreSQL command line cheatsheet

PSQL

Magic words:

psql -U postgres

Some interesting flags (to see all, use -h or --help depending on your psql version):

  • -E: will describe the underlaying queries of the \ commands (cool for learning!)
  • -l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)
@arnorhs
arnorhs / gist:1517095
Created December 24, 2011 10:40 — forked from tessro/gist:1515117
gitopen - Open all files from a git diff or show command
#!/bin/bash
# This script will open all files from a git diff or a git show in vim.
# My bash skills are a bit primitive so this can probably be done more intelligently
# Usage:
# gitopen -- opens all added files that have changed since HEAD
# gitopen diff HEAD -- these are the default parameters
# gitopen diff master -- opens files that have changed from master