Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / RevertNewLayout.md
Last active June 27, 2024 20:26
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
@troyhunt
troyhunt / files.txt
Created September 4, 2022 23:30
Alleged TikTok Data Breach
Length Name
------ ----
184 app_info_202209032248.csv
145 app_server_info_202209032248.csv
410 cookie_202209032248.csv
537 oauth_client_details_202209032247.csv
501 oauth_client_extend_202209032247.csv
55 open_sms_phone_202209032247.csv
76 open_sms_temp_202209032247.csv
106 record_add_order_202209032247.csv
@0q2
0q2 / AndroidStudioEmuPlaystoreRoot
Created July 1, 2022 21:43
Bypass to get Play Services and ADB/Root working on an official Android Studio image. Found this trick on an obscure SO comment a long time ago and somehow it still works.
Easiest way: You should create a new emulator, and before opening it for the first time, follow these easy steps:
Locate the directory where the emulator has been created. For example, in Windows go to: C:\Users[user].android\avd[your virtual device folder]
Open file config.ini with a text editor like Notepad.
Locate PlayStore.enabled key and change its value to true:
PlayStore.enabled = true
@tenzap
tenzap / Readme.md
Last active June 10, 2024 08:36 — forked from cunneen/Readme.md
Install OpenGApps In Android Emulator (up to API31 / android 12 / S)

Introduction

This works to install OpenGApps into the Android Emulator

Features:

  • uses opengapps installer script (that we patch slightly)
  • linux only because we mount the ext2/4 disk images to modify them. Could be adapted for macos if you use hdiutil instead of kpartx and have installed tools to mount ext2/4 filesystems on macos
  • root permissions mandatory to mount disk images and enter chroot
  • removes verity/verified-boot from the virtual device (so that the AVD can boot, otherwise it would not boot because we didn't update the dm_params)
@stephanebruckert
stephanebruckert / 2trancentral_youtube_channel_backup.csv
Last active July 20, 2023 09:27
1105 track titles from 2trancentral youtube channel before it gets hacked and deleted. This data is fully synced with this Spotify playlist https://open.spotify.com/playlist/7GlxpQjjxRjmbb3RP2rDqI Provided by www.mirror.fm
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 7 columns, instead of 3. in line 7.
yt_channel_id (S),yt_published_at (S),yt_track_id (S),yt_track_name (S),spotify_found_time (S),spotify_playlist (S),spotify_uri (S)
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-28T20:31:37.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLlNjMDJyS0pYeDlB,CK/NY - Fortys On Ice (Majestic Mix),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-29T00:08:35.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLnM2NEh3eWhIbFc0,Aurasfere - Terrasuave (1994),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-29T09:49:14.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLkFsVmx0QkpHZy1j,Remy & Sven - Silent Eruption (1992),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-29T21:39:06.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLmRwV0REbmRWOUZJ,Alien Signal - Quantum Limit (1993),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-30T19:28:57.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLlhob1h0QXRYc0tJ,Alien Signal - First Approach (1993),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-30T20:05:40.000Z,VVVMNEoyMFkxVXBRR3R0Y05YTUIyajlRLjB5Q1RBT0o2Umo4,Alien Signal - The Water Hole (1993),,,
UCL4J20Y1UpQGttcNXMB2j9Q,2010-03-31T15:57:43.000Z,VVVMNEoyMFkxVXBR
@CodingDoug
CodingDoug / README.md
Last active July 11, 2023 14:04
Patterns for security with Firebase Authentication: offload work to Cloud Functions

This is the runnable sample code from the blog post [Patterns for security with Firebase Authentication: offload work to Cloud Functions][1]. It discusses offloading work from a client app to Cloud Functions using an authentication trigger.

  1. Create a new Firebase project
  2. Enable email/password authentication
  3. Provision Cloud Firestore and apply the rules given in this gist
  4. Use the Firebase CLI to create a workspace for Functions using TypeScript
  5. Deploy the given HTML and JavaScript to Firebase Hosting (the CLI emulator will also work).
  6. Deploy the function code to Cloud Functions using the Firebase CLI
@orion-v
orion-v / how-to.md
Last active June 27, 2024 19:50
Delete all messages of an user in a Discord channel or server

Delete discord user message history

This script allow for user specific message deletion from an entire server or a single channel using the browser console. This script uses discord search API and it will only delete messages of a chosen user.

How to use

1. Enable developer mode in discord

Go to user settings > appearance in discord and enable Developer mode.

2. Copy and paste the script to a file so you can change the server and author ids.

3. Replace the server and author ids with your own.

@michaeltreat
michaeltreat / psql_wsl_install.md
Last active May 7, 2024 21:14
Postgres WSL install instructions

Install psql on WSL

Home

This install is pretty different from previous versions of psql install instructions for windows. This install uses the WSL and Ubuntu shell.

We are installing this through the Ubuntu command line which is different from the other Ubuntu install instructions because those instructions use Ubuntu's GUI, which we don't have access to here.

NOTE: Since this is a service that is running on Ubuntu, you should be in the the Ubuntu file system when running these commands!

Install

@cunneen
cunneen / Readme.md
Last active June 10, 2024 08:47
Install Open GApps In Android Emulator

Introduction

This works to install Open GApps into the Android Emulator, working around the issue where the system partition is too small.

With it, I can get Google Play installing into the emulator. Tested on KitKat (API 19), Lollipop (API 21) and Oreo (API 27).

It's tested on MacOS.

Instructions