Skip to content

Instantly share code, notes, and snippets.

View GGORG0's full-sized avatar

GGORG GGORG0

View GitHub Profile

aspe:keyoxide.org:ALZJSR33MO75PVSUNHUSI265SA

@GGORG0
GGORG0 / install-flathub-apps-in-terminal.md
Last active March 10, 2023 10:37
Install Flathub apps directly in the terminal (ft. appstream: URIs)

Have you ever thought "How can I install Flathub apps without all the hassle? I hate Gnome Software, searching for flatpaks in the terminal is a nightmare (app ids), and what even is the .flatpakref file???"

I have the solution for you.

Note: I haven't studied appstream: URIs a lot so this may be (really) buggy when not using flathub

Installation

  1. Get flatline
@GGORG0
GGORG0 / crazycapslock.py
Last active December 10, 2022 20:29
flash keyboard lights
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import os
import sys
import glob
if os.name != "posix":
print("ERROR: Linux only!")
{"Red": {"50": "#FFEBEE", "100": "#FFCDD2", "200": "#EF9A9A", "300": "#E57373", "400": "#EF5350", "500": "#F44336", "600": "#E53935", "700": "#D32F2F", "800": "#C62828", "900": "#B71C1C", "50": "#FFEBEE", "100": "#FFCDD2", "200": "#EF9A9A", "300": "#E57373", "400": "#EF5350", "500": "#F44336", "600": "#E53935", "700": "#D32F2F", "800": "#C62828", "900": "#B71C1C", "A100": "#FF8A80", "A200": "#FF5252", "A400": "#FF1744", "A700": "#D50000"}, "Pink": {"50": "#FCE4EC", "100": "#F8BBD0", "200": "#F48FB1", "300": "#F06292", "400": "#EC407A", "500": "#E91E63", "600": "#D81B60", "700": "#C2185B", "800": "#AD1457", "900": "#880E4F", "A100": "#FF80AB", "A200": "#FF4081", "A400": "#F50057", "A700": "#C51162"}, "Purple": {"50": "#F3E5F5", "100": "#E1BEE7", "200": "#CE93D8", "300": "#BA68C8", "400": "#AB47BC", "500": "#9C27B0", "600": "#8E24AA", "700": "#7B1FA2", "800": "#6A1B9A", "900": "#4A148C", "A100": "#EA80FC", "A200": "#E040FB", "A400": "#D500F9", "A700": "#AA00FF"}, "DeepPurple": {"50": "#EDE7F6", "100": "#D1C4E9"
@GGORG0
GGORG0 / custom_activity.md
Created January 9, 2022 12:19
Discord start custom activity

How to start a custom activity on Discord? I wanna do this!

image

  1. Inject Cumcord if you don't have it installed: (paste in console)
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", () => eval(oReq.responseText));
oReq.open("GET", "https://raw.githubusercontent.com/Cumcord/Cumcord/stable/dist/build.js");
oReq.send();