Skip to content

Instantly share code, notes, and snippets.

View jesuswasrasta's full-sized avatar
💭
Releasing tomorrow's legacy code, today

Ferdinando Santacroce jesuswasrasta

💭
Releasing tomorrow's legacy code, today
View GitHub Profile
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active April 26, 2025 20:24
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
@jjdevbiz
jjdevbiz / bashrc
Created July 31, 2014 20:41
bash.bashrc from linux mint 17
if [ -f ~/.mint.bashrc ]; then
source ~/.mint.bashrc
fi
@pksunkara
pksunkara / config
Last active April 22, 2025 22:10
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
username = pksunkara
[init]
defaultBranch = master
[core]
editor = nvim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
@nickyleach
nickyleach / git-sync
Created March 9, 2011 20:12
git alias to sync the current branch
[alias]
sync = "!f(){ local branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e \"s/* \\(.*\\)/\\1/\"`; git pull origin $branch && git push origin $branch; }; f"