Skip to content

Instantly share code, notes, and snippets.

View lpf23's full-sized avatar

Lee Foster lpf23

  • Texas
View GitHub Profile
@lpf23
lpf23 / Install VirtualBox Guest Additions with Debian VM
Created April 19, 2014 23:36
Install VirtualBox Guest Additions with Debian VM
http://virtualboxes.org/doc/installing-guest-additions-on-debian/
Follow these steps to install the Guest Additions on your Debian virtual machine:
1) Login as root;
2) Update your APT database with apt-get update;
3) Install the latest security updates with apt-get upgrade;
4) Install required packages with apt-get install build-essential module-assistant;
5) Configure your system for building kernel modules by running m-a prepare;
6) Click on Install Guest Additions… from the Devices menu, then run mount /media/cdrom.
@lpf23
lpf23 / 10 Digit Random Number Generator - JavaScript
Created March 25, 2014 14:03
10 Digit Random Number Generator - JavaScript
var digits = Math.floor(Math.random() * 9000000000) + 1000000000;
@lpf23
lpf23 / OS X - Show Hidden Files
Last active August 29, 2015 13:57
OS X - Show Hidden Files
Show all files:
$ defaults write com.apple.finder AppleShowAllFiles -boolean true
$ killall Finder
Hide the hidden files again:
$ defaults delete com.apple.finder AppleShowAllFiles
$ killall Finder