Skip to content

Instantly share code, notes, and snippets.

@ATRescue
ATRescue / Sandbox.md
Last active August 19, 2019 12:26
Markdown testings.

123 *

And even if there were benefits in using that compression, how come they did not utilize the standard LZ4?! They created their own proprietary format called mozlz4. What. Were. They. THINKING?! (if at all) *facepalm*

@ATRescue
ATRescue / YouTube_Trends_Archiver.v1.6.0.1.bash
Last active July 12, 2019 15:57
Rescuing historical YouTube Trends data. Version: 1.6.0.1
@ATRescue
ATRescue / pgtitle.fn.sh
Last active June 28, 2019 12:49
Simple “pgtitle” function – find out the title of a page immediately.
function pgtitle { curl -s "$@" | grep -ioe "<title>.*</title>" | sed -r "s#</?title>##g" ;}
@ATRescue
ATRescue / test
Created June 18, 2019 20:36
test enter
test
@ATRescue
ATRescue / MozLZ4-garbage.md
Last active January 2, 2023 08:40
MozLZ4/JsonLZ4 is a moronic idea. Here's why.

MozLZ4/JsonLZ4 is a moronic idea. Here's why.

Written by ATrescue.

I am not implying the comperssion algorithm Lz4 is bad. But adding an Lz4 layer to JSON files was a terrible idea by Mozilla.

Since Firefox version 56 (which is the last non-quantum version of Firefox), the session files in the 📁 sessionstore-backups directory are no longer recovery.bak and recovery.json, but recovery.baklz4 and recovery.jsonlz4. They should have called it recovery.bak.lz4 and recovery.json.lz4, which would be more logical file names, but they should not have done it in first place. Also the folders 📁bookmarkbackups 📁crashes/store.json.mozlz4 📁datareporting is affected (intoxicated) by Lƶ4.

“If it isn't broken, don't ‘fix’ it” does not apply to everything (e.g. when improving so

@ATRescue
ATRescue / AutoWB.js
Created May 26, 2019 02:08
UserScript to automatically save visited pages into the Wayback Machine.
/* This Userscript helps you preserving websites by automatically saving pages you visit, including their linked subpages and other linked URLs, into Internet Archive's Wayback Machine.
Run this UserScript using the following tools:
Desktop browsers:
* GreaseMonkey for Mozilla Firefox: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
* TamperMonkey for Google Chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
* TamperMonkey for Chromium-Opera Browser: https://addons.opera.com/en/extensions/details/tampermonkey-beta/
@ATRescue
ATRescue / AT_Response2.txt
Last active May 29, 2019 00:02
Second response to comments on IRC and GitHub.
This gist was temporarily unavailable, because “Your account has been flagged.
Because of that, your profile is hidden from the public. If you believe this is a mistake, contact support to have your account status reviewed.”.
I chose to write this text in a separate gist instead of the existing previous one as new file to make it easier for some to find it.
To respond to this message, please comment here below this GitHub Gist or on my Wikipedia talk page https://en.wikipedia.org/wiki/User_talk:ATrescue . My Wikipedia account is blocked for promoting ArchiveTeam, but I can still access my talk page.
—————————————————————————––
Hello again.
@ATRescue
ATRescue / Answers+Statement_1.txt
Last active May 26, 2019 09:36
Answering the questions.
Part 2: https://gist.github.com/ATRescue/f2bb5a040484e1d0943bdc67fc28a137
—————————————————
Hello there.
I would like to clear up a misunderstanding.
Before reading this message, please read these two pages, in order to help you understanding the following message:
* https://en.wikipedia.org/wiki/WP:AGF
* https://en.wikipedia.org/wiki/WP:DBN
Please only respond after reading the message, by writing a comment below this GitHub Gist or my ArchiveTeam talk page.
For emphasis, please listen to Beethoven's 6th symphony while reading this message.
You are encouraged to write your response while reading the message instead of waiting all the way to the end.
https://www.archiveteam.org/index.php?title=Template:Twhandle&action=edit
Edit comment: Word choice: “deactivated” instead of “disabled”.
<b title="Twitter Account" style=white-space:nowrap;><span style=background:#89ffff;border-radius:4px>{{URL|https://twitter.com/@{{{1|textfiles}}}|@{{{1|textfiles}}}</span>{{#ifeq:{{{2}}}|1|{{twlock}}|}}}}</span></b><noinclude>
Created for [[List of lost Twitter accounts]].
Usage: <code><nowiki>{{twhandle|textfiles|</nowiki><span style=color:red>0</span>}}</code>
Red number meanings: