Skip to content

Instantly share code, notes, and snippets.

View 0mhx's full-sized avatar
💭
cooked bc scl

mashoor a 0mhx

💭
cooked bc scl
View GitHub Profile
@0mhx
0mhx / script.js
Last active August 31, 2026 02:13
get courses list
// run this on a course page, it will also print in the console too
// this code was being weird pls dont flame me
window.baseFind = (p) =>
fetch(
`${location.origin}/enrollments/edit/members/course/${window.location.href.split("/").at(-2)}/ajax?p=1&s=`,
{
credentials: "include",
headers: {
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:146.0) Gecko/20100101 Firefox/146.0",
[Unit]
Description=Serial Console on Gadget
After=systemd-user-sessions.service plymouth-quit-wait.service
After=dev-ttyGS0.device
Requires=dev-ttyGS0.device
[Service]
ExecStart=-/sbin/agetty -L 115200 ttyGS0 vt100
Restart=always
RestartSec=0
@0mhx
0mhx / motion.yml
Last active September 17, 2023 23:25
# ------------------------------------------------------------------------------------------ #
# Lines starting with “#” are comments and will be ignored by the automation.
# Indentation determines hierarchy within the script.
# Visit g.co/home/script-editor-docs for full documentation.
# ------------------------------------------------------------------------------------------ #
metadata:
name: motion # Choose a short name that summarizes important starters and actions, like “Sunset lights”.
description: Scripted automation # Write a detailed description that includes everything the automation does, like “At sunset, on weekdays, close blinds, turn on lights to 50%, and play the sunset playlist on certain speakers.”