Skip to content

Instantly share code, notes, and snippets.

View wilmoore's full-sized avatar
🦄
Proverbs 3:21

Wil (₩) Moore III wilmoore

🦄
Proverbs 3:21
View GitHub Profile
@wilmoore
wilmoore / git-shorturl.sh
Last active December 28, 2021 20:07
Git :: git.io
########################################################################################
# function for generating a git.io short url
########################################################################################
function git-shorturl {
curl -i http://git.io -F "url=$1" 2>/dev/null | grep -i "location:"
}
@wilmoore
wilmoore / readme.md
Last active December 28, 2021 20:06
Git :: Personal Git Configuration
@wilmoore
wilmoore / ie6winxp.vm.md
Created January 31, 2012 17:32
Windows 7 VM w/ IE (Virtualbox)

This will provide a much faster and favorable experience VS RDC over network (or worse, the internet). It also gives you free reign to do whatever else you might want to do on windows (which for me isn't much, but a nice-to-have none-the-less).

The following list of commands will get you a free (microsoft sponsored) Windows XP VM environment with IE6 installed. The password is "Password1". When you first login, you will be asked to activate the OS. Do this immediately over the internet. You will get 90 days of activation. Once this runs out, activate the snapshot called "The initial VM state" to go back in time.

% mkdir -p ~/.vm/hdds/windows/winxp-ie6/
% cd !$

% wget http://download.microsoft.com/download/B/7/2/B72085AE-0F04-4C6F-9182-BF1EE90F5273/Windows_XP_IE6.exe
% unrar e Windows_XP_IE6.exe
@wilmoore
wilmoore / sbt-tutorial.md
Created September 19, 2012 07:15
Sbt Tutorial

Starting up sbt

In order to start sbt, open a terminal (“Command Prompt” in Windows) and navigate to the directory of the assignment you are working on. Typing sbt will open the sbt command prompt.

% cd /path/to/progfun-project-directory
% sbt
> _
This is the sbt shell
# Cookbook Name:: mongodb
# Recipe:: default
case node['platform']
when "ubuntu"
execute "apt-get update" do
action :nothing
end
execute "add gpg key" do
@wilmoore
wilmoore / js-crossword-puzzle.md
Created February 9, 2013 04:02
Javascript Trivia Crossword Solution

Javascript Trivia Crossword Solution

@wilmoore
wilmoore / azcopy.rb
Created December 6, 2019 22:51
AzCopy
class Azcopy < Formula
desc "AzCopy is a command-line utility that you can use to copy blobs or files to or from a storage account."
homepage "https://azure.microsoft.com/en-us/blog/tag/azcopy/"
sha256 "4ca3f7ab59f8506224a1c70c20ca3edf47d47b95c21c47d32581bc902e022eb7"
url "https://aka.ms/downloadazcopy-v10-mace"
def install
bin.install "azcopy"
end
end
@wilmoore
wilmoore / __readme.md
Created September 7, 2019 15:25 — forked from maxivak/__readme.md
Building Docker image with Packer and provisioning with Ansible

Building Docker image with Packer and provisioning with Ansible

Overview

Packer

  • Packer is used to build image from a base image, perform provisions and store (commit) the final image.

  • We use provisioners and Packer templates to do the actual work to create the final image.

  • We use Ansible for provisioning.

@wilmoore
wilmoore / SplClassLoader.php
Created June 5, 2010 04:25 — forked from jwage/SplClassLoader.php
PHP 5.3 Namespace Autoloader
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.