This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
stdin { | |
type => "apache-access" | |
} | |
} | |
filter { | |
grok { match => { "message" => "%{COMBINEDAPACHELOG}" } } | |
date { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "ApacheLogs", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "ApacheLogs2", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "response:(NOT [400 TO 599]) AND useragent_device:(NOT \"Spider\")", | |
"alias": "exitoso_no_spider", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import CocoaLumberjack | |
import Parse.PFUser | |
extension PFUser { | |
var hashForEmail: String? { | |
if let stringValue = self.email { | |
var hash = [UInt8](count: Int(CC_SHA256_DIGEST_LENGTH), repeatedValue: 0) | |
var data : NSData! = stringValue.dataUsingEncoding(NSUTF8StringEncoding) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on: | |
// https://github.com/mnbayan/StringHash | |
// https://github.com/hypercrypt/NSString-Hashes | |
enum HashType { | |
case MD5 | |
case SHA256 | |
case SHA512 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* DeviceUID.h | |
#import <Foundation/Foundation.h> | |
@interface DeviceUID : NSObject | |
+ (NSString *)uid; | |
@end | |
*/ | |
// Device.m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<string>37B30044-3B14-46BA-ABAA-F01000C27B63</string> <!-- 5.0 --> | |
<string>640F884E-CE55-4B40-87C0-8869546CAB7A</string> <!-- 5.1 DP --> | |
<string>A2E4D43F-41F4-4FB9-BB94-7177011C9AED</string> <!-- 5.1 --> | |
<string>AD68E85B-441B-4301-B564-A45E4919A6AD</string> <!-- 6.0 Beta --> | |
<string>C4A681B0-4A26-480E-93EC-1218098B9AA0</string> <!-- 6.0 GM --> | |
<string>FEC992CC-CA4A-4CFD-8881-77300FCB848A</string> <!-- 6.2 Beta --> | |
<string>A16FF353-8441-459E-A50C-B071F53F51B7</string> <!-- 6.2 --> | |
<string>992275C1-432A-4CF7-B659-D84ED6D42D3F</string> <!-- 6.3 Beta --> | |
<string>9F75337B-21B4-4ADC-B558-F9CADF7073A7</string> <!-- 6.3 --> | |
<string>E969541F-E6F9-4D25-8158-72DC3545A6C6</string> <!-- 6.3.2 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rest-client' | |
require 'json' | |
require 'colorize' | |
# USAGE: Add your AppId and Master Key. Execute script (Custom classes are parsed from Schema). | |
# WARNING: PAGINATION IS MISSING. | |
ParseApiBaseUrl = "https://api.parse.com" | |
Headers = { | |
"X-Parse-Application-Id" => "<INSERT_APP_ID_HERE>", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<!-- Thanks to Deathsnacks for his solution. --> | |
<!-- This is just a copy-paste from the XB1 panel, but changed the platform to PC and added the webhook notifications. --> | |
<!-- https://deathsnacks.com/wf/ --> | |
<!-- | |
INSTRUCTIONS: | |
Search for FIXME and change the webhook to a valid Slack one. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extension making ISO8601DateFormatter usable as an UnboxFormatter | |
extension ISO8601DateFormatter: UnboxFormatter { | |
public func format(unboxedValue: String) -> Date? { | |
return self.date(from: unboxedValue) | |
} | |
} | |
// Shim (extension not needed) | |
class ISO8601DateFormatter: DateFormatter { |
OlderNewer