Skip to content

Instantly share code, notes, and snippets.

View Zeklandia's full-sized avatar
🦄
Doing things.

Zeklandia Zeklandia

🦄
Doing things.
View GitHub Profile
@aamiaa
aamiaa / RevertNewLayout.md
Last active July 7, 2024 14:56
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
<!DOCTYPE html>
<html>
<head><title>Fizzlefade</title></head>
<body>
<canvas id="framebuffer" width="320" height="200"></canvas>
<script type="text/javascript">
/* Fizzlefade using a Feistel network.
@conspect
conspect / cult_of_ignorance.md
Last active May 29, 2024 19:02
A Cult Of Ignorance, Isaac Asimov

It's hard to quarrel with that ancient justification of the free press: "America's right to know." It seems almost cruel to ask, ingeniously, "America's right to know what, please? Science? Mathematics? Economics? Foreign languages?"

None of those things, of course. In fact, one might well suppose that the popular feeling is that Americans are a lot better off without any of that tripe.

There is a cult of ignorance in the United States, and there always has been. The strain of anti-intellectualism has been a constant thread winding its way throughout political and cultural life, nurtured by the false notion that democracy means that "my ignorance is just as good as your knowledge."

Politicians have routinely striven to speak the language of Shakespeare and Milton as ungrammaticaly as possible in order to avoid offending their audiences by appearing to have gone to school. Thus, Adlai Stevenson, who incautiously allowed intelligence and learning and wit to peep out of his speeches, found the American people

@Zeklandia
Zeklandia / Bash Prefix
Last active December 16, 2015 23:59
The environmental variable for the bash prefix to your commands. This can also be set in `/etc/bash.bashrc`
#!/bin/bash
PS1='\[\e[0;0m\e[1;30m\][\[\e[1;97m\]\d\[\e[1;30m\], \[\e[1;97m\]\t\[\e[1;30m\]]\n\[\e[1;30m\][\[\e[0;36m\]\u\[\e[1;30m\]@\[\e[0;36m\]\h\[\e[1;30m\]]\n\[\e[1;30m\][\[\e[0;37m\]\w\[\e[1;30m\]] \[\e[1;37m\]\$\[\e[0m\] '