Skip to content

Instantly share code, notes, and snippets.

@bre7
bre7 / myepisodescom.torrent.finder.user.js
Last active July 3, 2024 23:35
MyEpisodes.com torrent finder
// ==UserScript==
// @name MyEpisodes torrent finder
// @version 1.4.0
// @author You
// @match https://www.myepisodes.com/views.php*
// @match https://www.myepisodes.com/quickcheck/
// @icon https://www.google.com/s2/favicons?sz=64&domain=www.myepisodes.com
// @grant GM_addStyle
// @updateURL https://gist.githubusercontent.com/bre7/99be2fe91cc52c93fd0388f0640beffc/raw
// ==/UserScript==
// 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 {
@bre7
bre7 / wf_acolytes.html
Created July 31, 2016 03:29
Warframe's Acolytes appearances Slack notifier
<!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.
@bre7
bre7 / parsecom-exporter.rb
Last active May 19, 2016 14:50
Script to export Parse.com's data as JSON.
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>",
@bre7
bre7 / DVTPlugInCompatibilityUUIDs list
Created September 29, 2015 16:58
DVTPlugInCompatibilityUUIDs list
<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 -->
@bre7
bre7 / DeviceUID.m
Last active August 29, 2015 14:23 — forked from miguelcma/DeviceUID.m
/* DeviceUID.h
#import <Foundation/Foundation.h>
@interface DeviceUID : NSObject
+ (NSString *)uid;
@end
*/
// Device.m
@bre7
bre7 / gist:ab226b79b80bcef7a1de
Last active August 29, 2015 14:21
Swift String extension to get crypto hashes
// Based on:
// https://github.com/mnbayan/StringHash
// https://github.com/hypercrypt/NSString-Hashes
enum HashType {
case MD5
case SHA256
case SHA512
}
@bre7
bre7 / gist:c2a684e6af5dfc3fd856
Last active May 19, 2016 14:45
PFUser extension to get hash from user email
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)
@bre7
bre7 / Kibana Apache Panel v2
Last active August 29, 2015 14:09
YA Kibana Apache Panel
{
"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,
@bre7
bre7 / Kibana Apache Dashboard
Last active July 16, 2023 18:18
Apache Logs Kibana Dashboard
{
"title": "ApacheLogs",
"services": {
"query": {
"list": {
"0": {
"query": "*",
"alias": "",
"color": "#7EB26D",
"id": 0,