Skip to content

Instantly share code, notes, and snippets.

@Nebula83
Nebula83 / my-dev-vm.yml
Last active August 15, 2019 09:58
Setup a VM
---
# $ sudo pip install ansible
# wget --no-cache https://gist.github.com/Nebula83/fa4412d4c3b0bed588b0673d32d21247/raw && ansible-playbook raw; rm raw
- hosts: localhost
connection: local
tasks:
#######################################################################
# SSH
@Nebula83
Nebula83 / profile.nebula
Last active November 28, 2019 07:17
BASH shell script
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# Check if we are in an Xsession in which case we skip all of this
[ "$PROGNAME" = "Xsession" ] && return
@Nebula83
Nebula83 / setup-my-mac.sh
Last active August 29, 2018 18:47
Bootstrap script
#!/usr/bin/env bash
#
# Bootstrap script for setting up a new OSX machine
#
# This should be idempotent so it can be run multiple times.
#
# Some apps don't have a cask and so still need to be installed by hand. These
# include:
# magnet (app store, bought)
#