Skip to content

Instantly share code, notes, and snippets.

View prograhammer's full-sized avatar

David Graham prograhammer

View GitHub Profile
umount: device is busy. Why?
There are several reasons why a file system cannot be unmounted. Here are a few of the reasons.
Working directory or file open of a running process
# umount /mnt/test
umount: /mnt/test: device is busy.
(In some cases useful info about processes that use
the device is found by lsof(8) or fuser(1))
# lsof /mnt/test/
@prograhammer
prograhammer / laravel-lumen-5-homestead-win.md
Last active February 13, 2024 16:39
Laravel/Lumen 5.1 Homestead for Windows (includes fixes for shared-folder related slowness, npm install problems, caching, etc)

Laravel / Lumen Homestead for Windows w/fixes

###Initial installation and configuration Install Git for Windows which includes Git Bash.

Install VirtualBox and Vagrant.

Note: These fixes were not originally done for VirtualBox 5.0 and Vagrant 1.7.4. They are for the previous versions instead: VirtualBox 4.3.30 and Vagrant 1.7.3. Some of these fixes may not be needed now. For example, I recently upgraded to VirtualBox 5.0 and Vagrant 1.7.4 and I did not have to alter the Vagrant ruby (.rb) files as shown in part of this Gist below. I'll soon try from a fresh install (not upgrade) and update this Gist accordingly.

In Git Bash (always run as administrator), type cd ~ to

@prograhammer
prograhammer / osx-cheatsheet.md
Last active December 20, 2015 21:47
OSX cheatsheeet

Shortcuts

Spotlight (quickly find or launch an app):

command + space

Terminal Goodness

Open an app, ie:

@prograhammer
prograhammer / windows-powershell.md
Last active December 26, 2019 18:13
Windows PowerShell cheatsheet

Windows PowerShell cheatsheet

View version of PowerShell
$PSVersionTable.PSVersion
Update PowerShell 2 to PowerShell 3.0 (Windows 7)

// In cmd prompt:

@prograhammer
prograhammer / media-temple-cheat-sheet.md
Last active May 13, 2018 04:41
A cheat sheet for some common linux commands, CentOS 6.4+ commands, and some commands related to Media Temple servers.

General Linux & CentOS 6.4+ & Media Temple - Cheat Sheet

Add a user and setup SSH passwordless access
# adduser someuser
# passwd  somepass
// Run the visude, it will probably open up in an editor like Vi
# /usr/sbin/visudo

// Look for this comment: Allow root to run any commands anywhere

root ALL=(ALL) ALL

@prograhammer
prograhammer / git-cheat-sheet.md
Last active November 4, 2024 02:58
Git cheat sheet for some useful Git commands and command scenarios.