Skip to content

Instantly share code, notes, and snippets.

View mbuckbee's full-sized avatar

Michael Buckbee mbuckbee

View GitHub Profile
View gist:c0fa8b23fb5c45efcbfca1aec5019a41$1$1$1$1
https://sites.varonis.com$1$1$1$1$1 https://www.varon
mbuckbee / head.html
Created November 22, 2015 18:13
View head.html
<link rel="canonical" href="">
<link href="/favicon.png" rel="icon">
<link href="/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css">
<link href="/atom.xml" rel="alternate" title="Schalk Neethling" type="application/atom+xml">
<script src="/javascripts/modernizr-2.0.js"></script>
<script src="//"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="/javascripts/libs/jquery.min.js"%3E%3C/script%3E'))</script>
<script src="/javascripts/octopress.js" type="text/javascript"></script>
<!--Fonts from Google"s Web font directory at -->
<link href=',300,600,700' rel='stylesheet' type='text/css' />
mbuckbee / index.html
Last active July 19, 2020 19:58
Bootstrap Template
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
View gist:8445761
<div class='ip-industry-lookup'>
<div data-industry='healthcare'>
Our hospital saved 10x
<div data-industry='construction'>
We built 50% more in 20% less time
mbuckbee / pgtuning
Created September 4, 2012 03:44
Postgres tuning
View pgtuning
Set File system Read ahead to 4096
blockdev --setra 4096 /dev/sda1
Filesystem tests run at 256, 4096 and 8192 each tested with
bonnie++ -f -n 0 -c 4 -u root | bon_csv2html > ir-results-8192.html
Run /services/postgres-tuning/ on machine (copy via SFTP)
mbuckbee / gist:974134
Created May 16, 2011 09:19
Dynamic iframe
View gist:974134
function sendChatterMessage(sfdc_base_url, message_text){
$jquery('<iframe />', {
name: 'chatterFrame',
id: 'chatterFrame',
width: '800px',
height: '800px',
src: 'https://' + sfdc_base_url + '/_ui/core/chatter/ui/ChatterPage'
mbuckbee / boingboing_classifier.rb
Created January 31, 2011 07:31
Bayesian classifier for training BoingBoing post recognition
View boingboing_classifier.rb
require 'rubygems'
require 'classifier'
require 'madeleine'
m ="#{RAILS_ROOT}/bayes_data") { 'Boingable', 'Unboingable'
# Boing Boing Titles
mbuckbee / reddit_post_scraper.rb
Created January 31, 2011 07:26
Queries the RSS/XML feeds of Reddit to save post titles to a file.
View reddit_post_scraper.rb
require 'rubygems'
require 'open-uri'
require 'nokogiri'
count = 0
def get_submissions(ident, count)
xml = Nokogiri::XML(open("{ident}"))
puts "\n\n{ident}"
mbuckbee / boingboing_title_exporter.rb
Created January 31, 2011 07:06
Parses the BoingBoing JSON data dump pulling post titles and writing them to a new file.
View boingboing_title_exporter.rb
require 'rubygems'
require 'yajl'
file ='bbPosts.json', 'r') # file with more than one json
# Boing Boing Titles
parser =
parser.parse(file) do |file|
file.each do |post|
mbuckbee / nginx.conf
Created January 4, 2011 10:09
Wordpress with a Rails subdirectory
View nginx.conf
server {
listen 80;
root /var/www/wordpress;
index index.php;
try_files $uri $uri/ /index.php;
location /rails {
passenger_min_instances 2;