Skip to content

Instantly share code, notes, and snippets.

# Hutch Contributor License Agreement
By submitting a contribution to this repository (e.g., a pull request, issue with proposed code, or patch), you agree to the following terms with respect to that contribution.
"You" refers to the individual or legal entity making the contribution. "We" refers to Michael Buckbee and Expedited Security Inc, the maintainer of Hutch.
## 1. License grant
You grant us a perpetual, worldwide, non-exclusive, royalty-free, irrevocable license to:
@mbuckbee
mbuckbee / index.xml.erb
Created November 23, 2024 17:39
Rails Sitemap
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<% @pages.each do |path, timestamp| %>
<url>
<loc>https://knowatoa.com<%= path %></loc>
<lastmod><%= timestamp.strftime("%Y-%m-%d") %></lastmod>
</url>
<% end %>
</urlset>
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
<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
<!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="">
<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
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
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
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.
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}"