Skip to content

Instantly share code, notes, and snippets.

View BinBashBanana's full-sized avatar
🍍
Lemon

BinBashBanana

🍍
Lemon
View GitHub Profile
@heuripedes
heuripedes / gist:ef4bfc033252d511075b
Last active June 2, 2022 01:52 — forked from aliaspider/gist:6ba6667f64d161d8f265
libco pthread by aliaspider
#define LIBCO_C
#include <libco.h>
#include <stdlib.h>
#include <pthread.h>
#ifdef __cplusplus
extern "C" {
#endif
@bendavis78
bendavis78 / resize-stateful-partition.sh
Last active September 28, 2023 23:17
Script to re-size stateful partition on ChromeOS
#!/bin/bash
red="\E[1;31m";
green="\E[1;32m";
yellow="\E[1;33m";
plain="\e[0m";
error() {
echo -e "${red}${1}${plain}";
}
@fnky
fnky / ANSI.md
Last active November 18, 2024 06:36
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27

Log4J CVE Advisory

The Problem

Log4J has a feature called Java Naming and Directory Interface (shortened to JNDI in this document), which allows a Java program to reach out to an external source to gather data.
If you put a section of text containing ${jndi:query} into the log, the Log4J library will try to resolve the query.
This can be combined with the Lightweight Directory Access Protocol (LDAP) to connect to a remote server.

However, because JNDI is built for retrieving data, and JNDI is a Java program, if you put a JNDI query using LDAP into a log, it will connect to the given site, download a file, and then execute it.
This is called Remote Code Execution.

@itsmaxymoo
itsmaxymoo / minecraft-launcher-desktop-creator.py
Last active June 19, 2024 20:11
Script to create a desktop file for the official Minecraft launcher
#!/bin/python3
# ------------------------------------
# For easy execution, run the command:
# curl https://gist.githubusercontent.com/itsmaxymoo/3ffd38ed8f4d896e67e7c5af25b40173/raw | python3 -
# ------------------------------------
import os
@velzie
velzie / chromeos-117-sudo-howto.md
Last active October 18, 2024 16:23
Re-Enable sudo from crosh on R117+ Chrome OS without recompiling

Short guide on how to bypass this:

image

If you haven't disabled rootfs verification, switch to vt-2 and run /usr/libexec/debugd/helpers/dev_features_rootfs_verification. Then reboot.

Inside crostini, download minioverride.c and compile it with gcc minioverride.c -o minioverride.so -shared (make sure gcc is installed)

In the files app, move minioverride.so into your downloads folder.

@Xeukxz
Xeukxz / RevertUI.md
Last active November 11, 2024 18:56
Revert Discord UI

Updated Version:

If you want to download an older version ive heard 205.15 works well, i reccomend ApkMirror

Using a modified app (Android & IOS friendly):

  1. Follow the instructions from https://github.com/vendetta-mod/Vendetta
  2. After the client is installed, navigate to Settings > Plugins, then click the +, and finally paste https://vd-plugins.github.io/proxy/maisymoe.github.io/strife/Experiments into the input and click Install
  3. Once the experiments plugin is enabled, reload the app then go to Settings > Experiments > Tabs V2 - redesign opt-out/in for all and select Control Bucket.

Ive also heard enmity works well for IOS.

@aamiaa
aamiaa / RevertNewLayout.md
Last active November 8, 2024 23:16
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