Skip to content

Instantly share code, notes, and snippets.

View NickTitle's full-sized avatar

Nick Esposito NickTitle

View GitHub Profile
{
"schedule": {
"macOS kexts v1": {
"query": "SELECT k.path, name, version, authority, team_identifier, identifier FROM kernel_extensions k JOIN signature s ON k.path=s.path WHERE team_identifier != '';",
"interval": 60
},
"macOS kexts v2": {
"query": "SELECT k.path, name, version, authority, team_identifier, identifier FROM kernel_extensions k JOIN signature s ON k.path=s.path WHERE team_identifier != '' AND name NOT LIKE 'com.apple_%';",
"interval": 60
}
SELECT k.path, name, version, authority, team_identifier, identifier
FROM kernel_extensions k JOIN signature s ON k.path=s.path
WHERE team_identifier != '' AND name NOT LIKE 'com.apple_%';
SELECT k.path, name, version, authority, team_identifier, identifier
FROM kernel_extensions k JOIN signature s ON k.path=s.path
WHERE team_identifier != '';
@NickTitle
NickTitle / markovator.rb
Last active December 18, 2015 16:10
markov chain generator
def setup
@input = File.read('./input.txt')
@input.gsub("\n", " \n")
@split_input = @input.split(/ /)
@word_list = @split_input.uniq
@lookup_hash = Hash.new{ |k,v| k[v] = Hash.new{ |k,v| k[v] = 0 } }
@lookback_length = 2
@out = []
first_preceding_words = @split_input[0..@lookback_length-1]
@NickTitle
NickTitle / NickTitlePullToRefesh
Last active December 13, 2015 19:38
Super lightweight pull-to-refresh functionality for iOS, in 10 new lines of code (This could be way more elegant with more lines of code, but the core is here in just ten.) **LAST UPDATE** Increased lines cause I'm not proving a point anymore :P
//--------------------------------------------------------//
//MyTableViewHolder.h ==> add a property for a UITableView and a UILabel
@interface MyTableViewHolder : UIViewController <UITableViewDataSource, UITableViewDelegate>
@property (nonatomic, retain) UITableView *myTableView;
@property (nonatomic, retain) UILabel *scrollLabel;
//--------------------------------------------------------//