Skip to content

Instantly share code, notes, and snippets.

View matthewmcvickar's full-sized avatar
🍃

Matthew McVickar matthewmcvickar

🍃
View GitHub Profile
@pake007
pake007 / WordPress on Mac OS X.md
Created December 20, 2011 03:35
Install and Configure WordPress on Mac OS X Snow Leopard Step-By-Step

It is very convenient to install and configure WordPress on Max OS X Snow Leopard or higher version like Lion, because it already builds an apache2 server and php5 in the system, you just need to configure them and your wordpress site can be run!

Install WordPress

  • Download the latest version of WordPress (3.3 as of this writing)

  • Extract and copy the "wordpress" folder to your "Sites" folder. So, in my case the full path to WordPress is: /Users/jimmy/Sites/wordpress you can rename the folder as your wanted.

Calculate the phase of the moon in bash and get the appropriate icon. This can be used to put a picture of the phase of the moon in your bash prompt.

I used the "Simple" lunar phase calculator from here:

http://www.ben-daglish.net/moon.shtml

It seems to work well on OSX. The call to date that I use is not portable to linux or solaris since date is one of the most infuriatingly inconsistent utilities.

@Wilto
Wilto / MM2.md
Last active August 29, 2015 14:02
No-edit writing warmup.

I have a lot of writing to do today. This week, actually—I’m writing a book, and I gave myself this week to start getting it roughed-out. Not super polished or anything, I figure, just try to get somewhere near the word count before I go back and rewrite things a chapter at a time. Get a foundation down, y’know? I don’t have a ton of time, though, so it’s vital that I really focus on this. ~35,000 words is a lot of ground to cover. So, in the spirit of staying laser-focused on the task at hand: here are my thoughts on the optimum robot master order when attempting to beat Mega Man 2 without losing a life.

My Thoughts on the Optimum Robot Master Order when Attempting to Beat Mega Man 2 Without Losing a Life

Yes, Metal Man is first, obviously. C’mon. C’mon.

But on that drunken evening but a scant few weekends ago, NES controller in hand, I paused here. My first time through Mega Man 2 without dying, I went with the same order I had used as a youth—it just sort of happened. So I got to thinking, albei

" Make IE Better Compatible "
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
======================================================
IE6 Only
==================
_selector {...}
@dsample
dsample / README.md
Last active November 8, 2024 09:08
ASCII art diagrams

ASCI art characters for creating diagrams

Characters:

Single line

  • ASCII code 191 = ┐ ( Box drawing character single line upper right corner )
  • ASCII code 192 = └ ( Box drawing character single line lower left corner )
  • ASCII code 193 = ┴ ( Box drawing character single line horizontal and up )
  • ASCII code 194 = ┬ ( Box drawing character single line horizontal down )
@noraj
noraj / gulp-cjs-to-esm.md
Last active November 1, 2024 15:02
Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Context

del v7.0.0 moved to pure ESM (no dual support), which forced me to move my gulpfile to ESM to be able to continue to use del.

The author sindresorhus maintains a lot of npm packages and does not want to provides an upgrade guide for each package so he provided a generic guide. But this guide is a bit vague because it's generic and not helping for gulp, hence this guide.

Guide