Skip to content

Instantly share code, notes, and snippets.

🌩
Conjuring Clouds

Eric Marden xentek

🌩
Conjuring Clouds
Block or report user

Report or block xentek

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
View Octocat-Code-Along-(Completed).markdown

Octocat Code Along (Completed)

A simple example of HTML and CSS featuring Github's mascot, The Octocat!

A Pen by Eric Marden on CodePen.

License.

View 6reads-for-new-rubyists.md

6 Reads for new Rubyists

  1. The Pragmatic Programmer: From Journeyman to MasterFollow this book's advice and there won't be a single technology on Earth you can't master.
  2. Eloquent RubyHands down the best book on Ruby ever written.
  3. Rails Test PrescriptionsCovers the "How" AND the "Why" of testing every aspect of Ruby/Rails apps.
  4. [The Passionate Programmer: Creating a Remarkable Career in Software Development](http://www.amazon.com/gp/product/1934356344/ref=as_li_ss_tl?ie=UTF8&camp=1789&creative=390957&creativeASIN=1934356344&linkCode=as2&tag=xenlab
View keybase.md

Keybase proof

I hereby claim:

  • I am xentek on github.
  • I am xentek (https://keybase.io/xentek) on keybase.
  • I have a public key whose fingerprint is 7674 7D68 A3FD 198A 285C 1096 2F37 8433 4AEC 316E

To claim this, I am signing this object:

View .bashrc
# MAC manipulators
alias random_mac='sudo ifconfig en0 ether `openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/.$//"`'
alias restore_mac='sudo ifconfig en0 ether YOUR_ORIGINAL_MAC_ADDRESS_GOES_HERE'
@xentek
xentek / gist:4108719
Created Nov 19, 2012
Subversion bash aliases
View gist:4108719
# SVN
# set your editor
export SVN_EDITOR="/usr/bin/vi"
# add everything that needs to be added based on results of svn status
alias svnadd="svn st | grep \? | awk '''{print \"svn add \"$2 }''' | bash"
# show svn status, sans the noise from externals
alias svnst='svn st --ignore-externals'
@xentek
xentek / gitconfig.md
Created Sep 12, 2012
my current ~/.gitconfig
View gitconfig.md
[alias]
	ci = commit
	co = checkout
	st = status
	info = status
	svn-diff = !git-svn-diff
	l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
	lol = log --pretty=oneline --abbrev-commit --graph --decorate
	unstage = reset HEAD
@xentek
xentek / du_sorted.sh
Created Aug 27, 2012
Disk Usage (du), sorted by human readable size
View du_sorted.sh
!# /usr/bin/env sh
du -s ./* | sort -n| cut -f 2-| xargs du -sh {}
@xentek
xentek / wp-unit-tests.md
Created Aug 26, 2012
WordPress Unit Tests Quick Start
View wp-unit-tests.md

WordPress Unit Tests Quick Start Guide

This quick start guide is geared towards installing PHPUnit on OSX in order to run the WordPress unit tests. It uses homebrew to install PHP using homebrew-php. You can likely skip this step if you've already got php and pear installed properly.

If you use MAMP, then try these instructions to use MAMP's php and pear to install PHPUnit.

install homebrew

ruby <(curl -fsSkL raw.github.com/mxcl/homebrew/go)
@xentek
xentek / httparty-xml-example.rb
Created Feb 7, 2012
HTTParty with XML example
View httparty-xml-example.rb
require 'httparty'
response = HTTParty.get('http://www.google.com/ig/api?weather=Chicago')
data = response.parsed_response
puts data['xml_api_reply']['weather']['current_conditions']['condition']['data']
You can’t perform that action at this time.