Skip to content

Instantly share code, notes, and snippets.

import sys
import ujson as json
from multiprocessing import Process, Queue
from random import randint
# To measure performance
# pv galaxy.json.gz | pigz -d -p 2 | python3 systems_names.py | pv 2>/dev/pts/2 > /dev/null
# Without measuring performance
# cat galaxy.json.gz | pigz -d -p 2 | python3 systems_names.py
from typing import Iterable
import numbers
def finite_difference(data: Iterable[numbers.Number]) -> list[Iterable[numbers.Number]]:
"""A function to calculate finite difference of given sequence of numbers"""
to_iterate = [data]
while len(to_iterate[-1]) != 1:
to_iterate.append([])
SiiNunit
{
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
# Version: 1.3
# Version game: 1.41.1.25.s
# Created by beigbeider
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #
live_stream_def : .live_streams {
import subprocess
from time import sleep
# from time import time
"""
This script bruteforce applock (aka Privacy Protection) feature in MIUI.
! NO ROOT NEEDED !
It can be useful if you forgot password
#!/usr/bin/env python
#modified 21.05.2020 by norohind: replaced deprecated in python 3.8 methods and now it has no deprecation warning
# -*- coding: utf-8 -*-
# Copyright 2012-2018 Matt Martz
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#