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
// How to: | |
// 1) Login into https://icloud.com | |
// 2) Open the developer tools and execute this code in the console | |
// See more @ https://medium.com/bugbountywriteup/how-apple-stored-all-your-email-metadata-for-years-on-their-servers-2a61b1a3232d | |
const _API_URL='https://p18-mailws.icloud.com/wm/recents'; | |
const _requestContacts = () => { | |
console.warn('Requesting your contacts...'); | |
return fetch(_API_URL, { | |
method: 'POST', | |
headers: { |
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
#!/bin/python | |
from flashtext.keyword import KeywordProcessor | |
import random | |
import string | |
import re | |
import time | |
def get_word_of_length(str_length): | |
# generate a random word of given length |
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
<source> | |
type tail | |
path /hoge/fuga/tornado.log | |
pos_file /var/log/td-agent/tornado.log.pos | |
tag tornado | |
format multiline | |
format_firstline /^\[/ | |
format1 /^\[(?<levelname>[^ ]*) (?<time>[^ ]* [^ ]*) (?<module>[^:]*):(?<lineno>[^\]]*)\] ((?<code>[^ ]*) (?<method>[^ ]*) (?<path>[^ ]*) \((?<host>[^\)]*)\) (?<responsetime>\S*)|(?<message>.*?))$/ | |
format2 /(?<traceback>.*)/ | |
time_format %y%m%d %H:%M:%S |