Skip to content

Instantly share code, notes, and snippets.

@ssbozy
ssbozy / iremember.js
Created January 29, 2019 23:47
iRemember
// 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: {
@ssbozy
ssbozy / flashtext_regex_timing_keyword_replace.py
Created November 25, 2017 18:52 — forked from vi3k6i5/flashtext_regex_timing_keyword_replace.py
Benchmarking timing performance Keyword Replace between regex and flashtext
#!/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
@ssbozy
ssbozy / tornado.conf
Created October 2, 2015 08:46
TornadoのログをFluentdで収集する
<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