Skip to content

Instantly share code, notes, and snippets.

View hooddanielc's full-sized avatar
🎯
Focusing

Daniel Hood hooddanielc

🎯
Focusing
View GitHub Profile

#You should do all your LAMP development in a Virtual Machine

##Here's Why:

Many of us develop on Macintoshes. There are many reasons for this, but one of them is that it's based on a Unix platform of some sort. This allows us to run common server software such as Apache, Ruby, Python and Nodejs on our Macs.

Our computers become powerful develoment machines similar to the servers our apps will eventually live on.

Sometime we start our computer only to find Apache won't start, or MySQL can't create a PID file, or we've updated to Mountain Lion and Apache needs to be reconfigured. Death!

@hooddanielc
hooddanielc / README.md
Last active August 29, 2015 14:26 — forked from magnetikonline/README.md
IE 7/8/9/10/11 Virtual machines from Microsoft - Linux w/VirtualBox installation notes.
@hooddanielc
hooddanielc / arch-linux-install
Created April 26, 2018 05:15 — forked from mattiaslundberg/arch-linux-install
Minimal instructions for installing arch linux on an UEFI system with full system encryption using dm-crypt and luks
# Install ARCH Linux with encrypted file-system and UEFI
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
# Download the archiso image from https://www.archlinux.org/
# Copy to a usb-drive
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration.
# Set swedish keymap
@hooddanielc
hooddanielc / gist:f6793a93403f5e271578dc4875ca141f
Created May 27, 2018 05:51
AStyle Formatter Project Settings
{
"settings": {
"AStyleFormatter": {
"options_default": {
"indent": "spaces",
"indent-spaces": 2,
"style": "attach",
"attach-namespaces": true,
"attach-classes": true,
"attach-inlines": true,
@hooddanielc
hooddanielc / main.cc
Created August 28, 2018 05:06
Block until C++ object is destroyed
#pragma once
struct promise_t {
bool fullfilled;
std::mutex *mutex;
std::condition_variable *condition_variable;
promise_t(std::mutex *mutex_, std::condition_variable *condition_variable_):
mutex(mutex_),
condition_variable(condition_variable_),