Skip to content

Instantly share code, notes, and snippets.

View QuinnyPig's full-sized avatar

Corey Quinn QuinnyPig

View GitHub Profile
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
XXX has started a new project to identify storage needs at xxx. The project deliverables are a report and recommendation to yyy. Accordingly, xxx would like to get an overview of how students and staff work today, along with your/their projected future storage needs. More information about the project can be found at [1].
xxx has created a simple, anonymous survey [2] (only Venusian version) that should be answered by as many users as possible. You can also leave your email address so that xxx can get back to you with follow-up questions, should this be desireable.
We hope that you can answer the survey and distribute it to other interested employees.
@QuinnyPig
QuinnyPig / -
Created February 8, 2015 01:45
diff --git a/.zsh/functions/gitstatus.py b/.zsh/functions/gitstatus.py
new file mode 100755
index 0000000..d14420e
--- /dev/null
+++ b/.zsh/functions/gitstatus.py
@@ -0,0 +1,65 @@
+#!/usr/bin/env python
+from __future__ import print_function
+
+# change this symbol to whatever you prefer
@QuinnyPig
QuinnyPig / -
Created January 30, 2015 22:51
root@ubuntu-server-1204-x64:/tmp# puppet resource service ntp enable=true
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')
Notice: /Service[ntp]/enable: enable changed 'false' to 'true'
service { 'ntp':
ensure => 'running',
enable => 'false',
}
root@ubuntu-server-1204-x64:/tmp# puppet resource service ntp enable=true
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
@QuinnyPig
QuinnyPig / -
Created January 30, 2015 18:56
RSpec.configure do |c|
# Readable test descriptions
c.formatter = :documentation
c.before :suite do
Dir.entries(modules_root).each do |m0dule|
puppet_module_install(:source => "#{modules_root}/#{m0dule}", :module_name => m0dule)
end
end
end
@QuinnyPig
QuinnyPig / -
Last active August 29, 2015 14:08
Pillar says:
vlans:
- id: 100
network: 10.20.0.0
netmask: 255.255.255.0
prefix: 10.20.0
gateway: 10.20.0.1
- id: 101
network: 10.21.0.0
With Pillar data that looks like:
vlans:
id:
100:
network:
- 10.20.0.0
netmask:
- 255.255.255.0
prefix:
- 10.20.0
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# QuinnyPig forked from
cquinn@sequinn ~ % boot2docker start [1] 1 3506 22:50:25 Thu 03-13-2014
[2014-03-13 22:50:28] boot2docker-vm is already running.
To connect the docker client to the Docker daemon, please set:
export DOCKER_HOST=tcp://localhost:4243
cquinn@sequinn ~ % export DOCKER_HOST=tcp://localhost:4243 0
cquinn@sequinn ~ % docker pull learn/tutorial 4 3509 22:51:22 Thu 03-13-2014
Pulling repository learn/tutorial
8dbd9e392a96: Download complete
Coreys-Mac:~ cquinn$ tree /Library/Developer/CommandLineTools
-bash: tree: command not found
Coreys-Mac:~ cquinn$ # Dammit mistym!
Coreys-Mac:~ cquinn$ find /Library/Developer/CommandLineTools
find: /Library/Developer/CommandLineTools: No such file or directory
Coreys-Mac:~ cquinn$ /usr/bin/clang --version
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.