Skip to content

Instantly share code, notes, and snippets.

View pieceofsummer's full-sized avatar

Alexey Skalozub pieceofsummer

View GitHub Profile
#!/usr/bin/env python3
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
from hashlib import pbkdf2_hmac, sha1
import os, tempfile, argparse
import struct, plistlib, sqlite3
from bpylist2 import archiver
class MBFile:
@pieceofsummer
pieceofsummer / parser.py
Created September 16, 2017 23:26
Google Wifi diagnostic report parser
#!/usr/bin/python
import os, sys, gzip
from StringIO import StringIO
from datetime import datetime
def readByte(f):
return ord(f.read(1))
def readInt(f):
l = 0
@pieceofsummer
pieceofsummer / DoubleUtil.cs
Last active September 5, 2017 02:23
Assembling double in IEEE 754 representation
using System;
namespace Newtonsoft.Json.TestConsole
{
public static class DoubleUtil
{
/// <summary>
/// Exponents for both powers of 10 and 0.1
/// </summary>
# !/bin/bash
# Copyright (c) 2011 Float Mobile Learning
# http://www.floatlearning.com/
# Extension Copyright (c) 2013 Weptun Gmbh
# http://www.weptun.de
#
# Extended by Ronan O Ciosoig January 2012
#
# Extended by Patrick Blitz, April 2013
@pieceofsummer
pieceofsummer / refresh_icon.sh
Created May 30, 2013 23:52
Refresh cached website icon in Safari
#!/bin/bash
if [ -z "$1" ]
then
echo "Usage: $0 domain"
echo "Example: $0 google.com"
exit 0
fi
echo "Deleting cache for $1"