Skip to content

Instantly share code, notes, and snippets.

View TPS's full-sized avatar
🤓
https://www.rakuten.com/r/TPSAMU?eeid=6991100

TPS

🤓
https://www.rakuten.com/r/TPSAMU?eeid=6991100
View GitHub Profile
# Test Command 8.0.0 PATCH
1 zlib, o6 oxipng -o 6 -i 0 --out 01_oxi_normal.png t.png 48290731 45277379
2 same, interlaced oxipng -o 6 -i 1 --out 02_oxi_normal_interlaced.png t.png 50144548 50144548
3 max zlib oxipng --zc 12 -o max -i 0 -a --out 03_zc12_b.png t.png 48290731 45277379
4 Zopfli oxipng -Z -o 6 -i 0 --out 03_oxi_normal_ZOPFLI.png t.png 47883283 47883283

Comparison of output file size for example images processed with oxipng. Comparing libdeflater 0.11.0 and 0.13.0

@zxdawn
zxdawn / Oneplus_ace2_default_apps
Created February 16, 2023 13:03
We can delete Oneplus default app using adb. Here's the app list of ACE2
$ ./adb shell pm list package
package:android.framework.res.overlay.domestic
package:com.oppo.instant.local.service
package:com.oplus.framework_bluetooth.overlay
package:com.coloros.karaoke
package:com.qti.phone
package:com.oplus.atlas
package:com.android.modulemetadata
package:com.android.connectivity.resources
@Rudxain
Rudxain / Because the essence of programming is repeating.py
Last active January 3, 2025 05:36
Because the essence of programming is repeating.
Because_the_essence_of_programming_is_repeating = "Because the essence of programming is repeating".split()
while True:
for word in Because_the_essence_of_programming_is_repeating:
for _ in range(len(Because_the_essence_of_programming_is_repeating)):
print(word)
# LICENSE: https://unlicense.org
@casbeebc
casbeebc / wsj.user.js
Last active April 7, 2025 08:35
Wall Street Journal Paywall bypass
/* jshint esversion: 6 */
// ==UserScript==
// @name WSJ and Barrons Paywall Hack - No Popup Confirmation
// @description Paywall bypass for WSJ and Barrons without any confirmation popup
// @match https://www.wsj.com/*
// @match https://www.barrons.com/*
// @run-at document-end
// @grant none
// @version 1
// ==/UserScript==
@mchangrh
mchangrh / yt-neuter.txt
Last active July 1, 2025 05:17
yt-neuter uBo list
[uBlock Origin]
! Title: YouTube Neuter
! Last modified: 2022/06/27
! Expires: 10 days
! Homepage: https://github.com/mchangrh/yt-neuter
! Licence: Unlicense
! Redirect https://raw.githubusercontent.com/mchangrh/yt-neuter/main/yt-neuter.txt
!
## global
@ziemek99
ziemek99 / enable-jxl-edge-91.md
Last active August 27, 2024 18:25
How to permanently enable JPEG XL in Microsoft Edge 91-109

⚠️ Instructions below only apply to outdated Microsoft Edge versions. Since JPEG XL support has been removed from the latest versions of Edge (110+), this guide is irrelevant on the latest systems. Windows 7 and 8(.1) are limited to Edge 109, so the guide can still be used there.

ℹ️ Users are advised to move to Thorium, an enhanced fork of Chromium that supports JPEG XL out of the box by default.


How to permanently enable JPEG XL in Microsoft Edge 91-109

import statistics
def has_converged(xs):
return all(x == xs[0] for x in xs)
def f(xs):
return [
statistics.mean(xs),
/*
* m1racle-poc: a basic proof of concept for the M1RACLES vulnerability in the Apple M1.
*
* This program allows you to read and write the state of the s3_5_c15_c10_1 CPU register.
*
* Please visit m1racles.com for more information.
*
* Licensed under the MIT license.
*/
@FreddieOliveira
FreddieOliveira / docker.md
Last active July 6, 2025 23:29
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

from datetime import datetime
import subprocess
import json
OFFSET = 1288834974657
TIME_DIFF = 359
MACHINE_ID = 377
N = 10
def tweet_id_from_timestamp(utcdttime):