Skip to content

Instantly share code, notes, and snippets.

View zwass's full-sized avatar
🌐
Hiring engineers #remote worldwide: fleetdm.com/jobs

Zach Wasserman zwass

🌐
Hiring engineers #remote worldwide: fleetdm.com/jobs
View GitHub Profile
@zwass
zwass / worker.py
Created April 21, 2013 03:40
Really old work on aggregating RSS feeds into a Twitter account. Style is lacking, could really use some lovin'.
import os
import time
import json
from urllib import urlencode
import tweepy
import feedparser
import pymongo
import requests
from BeautifulSoup import BeautifulSoup
/*
* Copyright (c) 2004-2015 Apple Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* compliance with the License. Please obtain a copy of the License at
* http://www.opensource.apple.com/apsl/ and read it before using this
$ make clean && make distclean && make deps && make -j2 && make test
cd build/precise && cmake ../../ && \
CTEST_OUTPUT_ON_FAILURE=1 make clean --no-print-directory
-- Requested dependencies may have changed, run: make deps
-- Building for platform Ubuntu (ubuntu, precise)
-- Building osquery version 1.0.3-2313-g81109ef sdk 1.0.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/vagrant/osquery/build/precise
rm -rf .sources build/precise build/debug_precise build/docs
This is a test CLA
@zwass
zwass / etc_hosts.table
Last active August 7, 2018 23:24
osquery etc_hosts table schema
table_name("etc_hosts", aliases=["hosts"])
description("Line-parsed /etc/hosts.")
schema([
Column("address", TEXT, "IP address mapping"),
Column("hostnames", TEXT, "Raw hosts mapping"),
])
attributes(cacheable=True)
implementation("etc_hosts@genEtcHosts")