Skip to content

Instantly share code, notes, and snippets.

View joshaven's full-sized avatar

Joshaven Potter joshaven

View GitHub Profile
// ==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/*
@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
@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

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: