Skip to content

Instantly share code, notes, and snippets.

View mbuckbee's full-sized avatar

Michael Buckbee mbuckbee

View GitHub Profile
View gist:c0fa8b23fb5c45efcbfca1aec5019a41
https://sites.varonis.com/site-map/(.+) https://www.varonis.com/sitemap/$1
https://sites.varonis.com/ransomware-solutions/(.+) https://www.varonis.com/solutions/ransomware/$1
https://sites.varonis.com/solutions/insider-threat-prevention/(.+) https://www.varonis.com/solutions/insider-threat-detection/$1
https://sites.varonis.com/solutions/technology/(.+) https://www.varonis.com/solutions/enterprise/$1
https://sites.varonis.comhttps://solutions.varonis.com/gdpr/(.+) https://www.varonis.com/solutions/gdpr-compliance/$1
https://sites.varonis.com/solutions/healthcare/(.+) https://www.varonis.com/solutions/hipaa-compliance/$1
https://sites.varonis.com/learn/sox-sarbanes-oxley-act-compliance-requirements-for-it/(.+) https://www.varonis.com/solutions/sox-compliance/$1
https://sites.varonis.com/learn/pci-dss-3-2-it-requirements/(.+) https://www.varonis.com/solutions/pci-dss-compliance/$1
https://sites.varonis.com/platform/(.+) https://www.varonis.com/how-it-works/$1
https://sites.varonis.com/tap/(.+) https://www.varon
@mbuckbee
mbuckbee / head.html
Created November 22, 2015 18:13
head
View head.html
<link rel="canonical" href="http://schalkneethling.github.io/blog/2015/11/06/respect-user-choice-do-not-track/">
<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="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></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 http://google.com/webfonts -->
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700' rel='stylesheet' type='text/css' />
@mbuckbee
mbuckbee / index.html
Last active July 19, 2020 19:58
Bootstrap Template
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<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>
<div data-industry='construction'>
We built 50% more in 20% less time
</div>
@mbuckbee
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/determine_postgres_memory.sh on machine (copy via SFTP)
@mbuckbee
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'
}).appendTo('body');
$jquery('#chatterFrame').load(function(){
@mbuckbee
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 = SnapshotMadeleine.new("#{RAILS_ROOT}/bayes_data") {
Classifier::Bayes.new 'Boingable', 'Unboingable'
}
# Boing Boing Titles
@mbuckbee
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("http://www.reddit.com/new/.xml?count=25&after=t3_#{ident}"))
puts "\n\nhttp://www.reddit.com/new/.xml?count=25&after=t3_#{ident}"
@mbuckbee
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 = File.new('bbPosts.json', 'r') # file with more than one json
# Boing Boing Titles
parser = Yajl::Parser.new
parser.parse(file) do |file|
file.each do |post|
@mbuckbee
mbuckbee / nginx.conf
Created January 4, 2011 10:09
Wordpress with a Rails subdirectory
View nginx.conf
server {
listen 80;
server_name www.wordpress-domain-name.com;
root /var/www/wordpress;
index index.php;
try_files $uri $uri/ /index.php;
location /rails {
passenger_min_instances 2;