Skip to content

Instantly share code, notes, and snippets.

View terracatta's full-sized avatar

Jason Meller terracatta

View GitHub Profile
@terracatta
terracatta / convert_to_jpg.sh
Created July 3, 2023 08:43
Convert png to jpg
#!/bin/bash
# Check if 'convert' is installed
if ! command -v convert &> /dev/null; then
echo "'convert' command not found. Attempting to install ImageMagick with Homebrew..."
# Check if 'brew' is installed
if ! command -v brew &> /dev/null; then
echo "'brew' command not found. Please install Homebrew and then run this script again."
exit 1
@terracatta
terracatta / CVE 2020-0601-restarted.sql
Created January 15, 2020 16:15
Osquery Detection for the presence of the patch that fixes CVE 2020 0601 and ensures the device was restarted
WITH
split_date AS
(SELECT *,
Split(installed_on, '/', 0) AS month,
Split(installed_on, '/', 1) AS day,
Split(installed_on, '/', 2) AS year
FROM patches),
leading_zeroes AS (
SELECT *,
(SELECT local_time FROM time) AS local_time,
@terracatta
terracatta / CVE 2020-0601.sql
Created January 15, 2020 16:14
Osquery Detection for the presence of the patch that fixes CVE 2020 0601
SELECT 'true' AS CVE_2020_0601_patched,
hotfix_id,
description,
caption,
installed_by,
installed_on
FROM patches WHERE hotfix_id IN (
'KB4534306',
'KB4534271',
'KB4534276',
@terracatta
terracatta / kolide-cla.txt
Created October 20, 2017 20:03
Kolide CLA
Contributor License Agreement
The following terms are used throughout this agreement:
You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
Project - is an umbrella term that refers to any and all Kolide open source projects.
Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with Kolide, contributors or maintainers.
1. Grant of Copyright License.
Subject to the terms and conditions of this agreement, You grant to the Projects’ maintainers, contributors, users and to Kolide a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and di

Keybase proof

I hereby claim:

  • I am terracatta on github.
  • I am jmeller (https://keybase.io/jmeller) on keybase.
  • I have a public key whose fingerprint is AF5F 5608 64F3 C764 6DC7 22E9 1086 3D1F A912 B1BF

To claim this, I am signing this object:

<error>
domnodeinserted
(anonymous function)
jQuery.fn.extend.domManip
jQuery.fn.extend.before
jQuery.each.jQuery.fn.(anonymous function)
$.extend.bootstrap.fnUpdate
oSettings.aoDrawCallback.push.fn
_fnCallbackFire
_fnDraw
@terracatta
terracatta / gist:783470
Created January 17, 2011 20:57
Snorby Mailer fail
{undefined method `to_html' for nil:NilClass
/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/whiny_nil.rb:48:in `method_missing'\n/var/www/snorby/app/views/event_mailer/event_information.html.erb:37:in `_app_views_event_mailer_event_information_html_erb__58933898_93199420__764323796'\n/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_view/template.rb:135:in `block in render'\n/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/notifications.rb:54:in `instrument'\n/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_view/template.rb:127:in `render'\n/usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.0.3/lib/action_view/render/rendering.rb:59:in `block in _render_template'\n/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/notifications.rb:52:in `block in instrument'\n/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'\n/usr/local/lib/ruby/gems
We couldn’t find that file to show.