Skip to content

Instantly share code, notes, and snippets.

View joshaven's full-sized avatar

Joshaven Potter joshaven

View GitHub Profile

Keybase proof

I hereby claim:

  • I am joshaven on github.
  • I am 58c4360401e75f4e (https://keybase.io/58c4360401e75f4e) on keybase.
  • I have a public key whose fingerprint is D6EF 83B1 5B2A E559 EB23 6EB6 C19D F049 D18A 9EEC

To claim this, I am signing this object:

@joshaven
joshaven / install-vmware-tools.sh
Last active September 20, 2019 10:27
Install vmware tools from vSphere via script
#!/bin/sh
# This script installs VMWare Tools on Ubuntu
# Although untested this should work on any distro that uses apt as a package manager.
#
# First open vSphere Client, right-click on this host
# Then choose [Guest] -> [Install VMWare Tools].
# Select Interactive Tools Upgrade and press ok then re-run this script.
#
apt-get install -y build-essential linux-headers-`uname -r` psmisc
@joshaven
joshaven / gist:674937
Created November 13, 2010 00:11
undefined method `bytesize' fix for thinking-sphinx
From 663b4456656fff3e4bd22c6a9fcf51d898ccbbe0 Mon Sep 17 00:00:00 2001
From: Joshaven Potter <yourtech@gmail.com>
Date: Fri, 12 Nov 2010 19:11:01 -0500
Subject: [PATCH] fix undefined method `bytesize` when sending an object to Search::excerpt_for()
---
lib/thinking_sphinx/search.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/thinking_sphinx/search.rb b/lib/thinking_sphinx/search.rb
// ==UserScript==
// @name HideReportSpam
// @author Joshaven Potter
// @namespace joshaven/hideReportSpam
// @description Hides Gmail's "Report spam" Button
// @version 0.0.1
// @include http://mail.google.com/*
// @include https://mail.google.com/*
// @include http://*.mail.google.com/*
// @include https://*.mail.google.com/*
#! /bin/sh
### BEGIN INIT INFO
# Provides: php-fastcgi
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start and stop php-cgi in external FASTCGI mode
# Description: Start and stop php-cgi in external FASTCGI mode
### END INIT INFO
if File.directory?("#{RAILS_ROOT}/gems")
Gem.use_paths("#{RAILS_ROOT}/gems", ["#{RAILS_ROOT}/gems"])
end
# Write me if you want my full implementation (it is not for RAILS but it could be easily re-written)
# yourtech at gmail dot com
gemhome: ./gems
gempath:
- ./gems
gem: --no-rdoc --no-ri
From e5d5ee1cafe47b93dfa604954a6c3cc82a9fad9e Mon Sep 17 00:00:00 2001
From: Joshaven Potter <joshaven@Joshaven-Potters-MacBook-Pro.local>
Date: Thu, 4 Mar 2010 22:45:47 -0500
Subject: [PATCH] Add the following matchers: :be_one_of, :be_in, & :be_part_of
---
lib/spec/matchers.rb | 1 +
lib/spec/matchers/be_one_of.rb | 46 +++++++++++++++++++++++++++++++++++++++
spec/spec/matchers/be_one_of.rb | 42 +++++++++++++++++++++++++++++++++++
3 files changed, 89 insertions(+), 0 deletions(-)
joshaven: ~/projects$ cilantro new app
This project does not have a bin/cilantro installed!
HEAD is now at 71898e8 Changed the order of arguments when creating actions with named routes.
Run 'git remote add origin ...' to add an origin for your project. Or if running on linode, simply run 'linode add domain.com'
Whenever the cilantro project is updated, you can keep up to date by running 'cilantro update'
joshaven: ~/projects$ cd app
joshaven: ~/projects/app$ cilantro update
From git://github.com/dcparker/cilantro
* branch cilantro -> FETCH_HEAD
error: could not lock config file .git/config: No such file or directory
From e54079d5fabb377844da4a3b08b501f75890504c Mon Sep 17 00:00:00 2001
From: Joshaven Potter <yourtech@gmail.com>
Date: Wed, 30 Dec 2009 13:45:49 -0500
Subject: [PATCH] Fix issue with dependency on .bash_profile
---
bin/install | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/bin/install b/bin/install