Skip to content

Instantly share code, notes, and snippets.

View awaxa's full-sized avatar

Greg Kitson awaxa

View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure('2') do |config|
config.vm.box = "boxname"
config.vm.network :public_network
config.vm.provider "vmware_fusion" do |v|
v.vmx["ethernet1.present"] = "TRUE"
v.vmx["ethernet1.addressType"] = "static"
v.vmx["ethernet1.address"] = "DE:AD:BE:EF:38:63"
@awaxa
awaxa / trainingvms.conf
Created July 7, 2014 01:35
/opt/boxen/config/nginx/sites/trainingvms.conf
server {
listen 8080 default_server;
location / {
root /Users/awaxa/Public/trainingvms;
autoindex on;
autoindex_exact_size off;
}
}
@awaxa
awaxa / init.pp
Created July 7, 2014 01:38
boxen powerline fonts manifests
# installs powerline fonts
class powerline {
$fb = "/Users/${::boxen_user}/Library/Fonts"
$src = "${::boxen::config::srcdir}/powerline-fonts"
repository { "${src}":
source => 'Lokaltog/powerline-fonts',
}
$fonts = [
#
# Warning - this file should only be modified with vifs(8)
#
# Failure to do so is unsupported and may be destructive.
#
UUID=A97C9EAF-E18F-3BE3-80CD-8A8C6FB6E8E7 none hfs noauto
@awaxa
awaxa / common.yaml
Created July 18, 2014 18:47
using an array of hashes from hiera in a template with puppet
---
sockets:
- id: 'one'
address: '127.0.0.1'
port: '8001'
- id: 'two'
address: '127.0.0.2'
port: '8002'
Hubot> [Tue Jul 29 2014 16:35:49 GMT-0700 (PDT)] WARNING The HUBOT_AUTH_ADMIN environment variable not set
[Tue Jul 29 2014 16:35:49 GMT-0700 (PDT)] ERROR Unable to load /Users/awaxa/src/jjasghar-myhubot/scripts/lol_subreddit: Error: Module version mismatch, refusing to load.
at Object.Module._extensions..node (module.js:485:11)
at Module.load (/Users/awaxa/src/jjasghar-myhubot/node_modules/hubot/node_modules/coffee-script/lib/coffee-script/coffee-script.js:211:36)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object.<anonymous> (/Users/awaxa/src/jjasghar-myhubot/node_modules/nodepie/node_modules/xml2json/node_modules/node-expat/lib/node-expat.js:4:13)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
brew install https://raw.githubusercontent.com/fanminjian/homebrew/159b6cf2b078844b7e1f071e7c8c1e4293f6ada4/Library/Formula/prince.rb
[root@greg ~]# puppet apply -e "include '::stdlib::stages'"
Notice: Compiled catalog for greg.puppetlabs.vm in environment production in 0.04 seconds
Notice: Finished catalog run in 0.11 seconds
[root@greg ~]# puppet apply -e "contain '::stdlib::stages'"
Error: undefined method `tag' for nil:NilClass on node greg.puppetlabs.vm
Error: undefined method `tag' for nil:NilClass on node greg.puppetlabs.vm

Due to recent abusive intrusions into our channel, we may need to temporarily restrict participation to users who have registered accounts on Freenode. If you have received a Cannot send to channel message when attempting to talk, you can validate that you are not a malicious user and regain the ability to send messages to the channel by registering your account. Please see the link below for instructions, and don't hesitate to stop by #freenode to ask for help.

https://freenode.net/faq.shtml#nicksetup

If you notice abusive activity in the channel, please notify one or more of our channel operators via private message. These people are: awaxa, dosman711, and clarksonguy04.

@awaxa
awaxa / -
Created August 17, 2014 20:28
zsh_stats
1 1609 16.0916% git
2 1062 10.6211% cd
3 837 8.37084% cat
4 668 6.68067% ls
5 558 5.58056% vim
6 318 3.18032% v
7 301 3.0103% rm
8 245 2.45025% ll
9 213 2.13021% mv
10 139 1.39014% cp