Skip to content

Instantly share code, notes, and snippets.

View Absolucy's full-sized avatar
👀
looking for a job

Lucy Absolucy

👀
looking for a job
View GitHub Profile
@Absolucy
Absolucy / cleanup.ps1
Created April 3, 2024 23:03
delete local git branches that were deleted remotely
function Remove-Unused-Branches {
$refsToDelete = git for-each-ref --format '%(refname:short) %(upstream:track)' |
ForEach-Object {
$ref, $upstream = $_ -split '\s+'
if ($upstream -eq '[gone]') {
Write-Output $ref
}
}
@Absolucy
Absolucy / mirrorify.sh
Last active December 1, 2023 20:19
Arch Linux rate-mirrors script (Arch + CachyOS + archzfs)
#!/bin/bash
set -e
TMP_SUFFIX=".rate-mirrors"
MIRROR_FOLDER="/etc/pacman.d/mirrors"
PROTOCOLS="https"
TIMEOUT_MS="5000"
[ -d "${MIRROR_FOLDER}" ] || sudo mkdir -p "${MIRROR_FOLDER}"
TMPDIR="$(mktemp --directory --suffix "${TMP_SUFFIX}")"
@Absolucy
Absolucy / clip out mentor stuff.py
Created June 4, 2023 21:46
beestation - clip out mentor chat
import cv2
import numpy as np
import subprocess
import sys
import os
# the pixels to check
pixel_positions = [(1615, 727), (1705, 728)] # example positions
# the minimum color value to check for (in BGR)
@Absolucy
Absolucy / beestation-obs-auto-recorder.py
Last active March 16, 2024 04:34
BeeStation OBS automatic recorder
# pip install obs-websocket-py psutil colorlog pystray pillow
import json
import psutil
import os
import shutil
import threading
from colorlog import ColoredFormatter, StreamHandler
from logging import INFO, getLogger
from obswebsocket import obsws, requests as obsreq
from time import sleep, time
@Absolucy
Absolucy / ss13-obs-auto-record.py
Last active March 6, 2023 06:01
SS13 OBS automatic recorder
import socket
import struct
import json
import psutil
import os
import shutil
from colorlog import ColoredFormatter, StreamHandler
from logging import INFO, getLogger
from obswebsocket import obsws, requests as obsreq
from time import sleep, time
@Absolucy
Absolucy / keybase.md
Created June 21, 2021 13:37
Keybase Proof

Keybase proof

I hereby claim:

  • I am absolucy on github.
  • I am absolucy (https://keybase.io/absolucy) on keybase.
  • I have a public key ASBfb-sA4FyJi_9fyQ-gzZ3xvh-8mSLlksV4asTNBqyMOQo

To claim this, I am signing this object:

@Absolucy
Absolucy / visualstudio2019Key.txt
Created August 30, 2020 10:51
Visual Studio 2019 Product Key
Visual Studio 2019 Product Key
[Please Star this gist]
Follow My Account --> https://github.com/ch-kashif @ch-kashif
Lets do a code together
Join Cloud Disk repository --> https://github.com/ch-kashif/CloudDisk
@Absolucy
Absolucy / lib_rs_fixer.js
Last active July 8, 2020 19:21
A userscript to fix lib.rs's titles to respect snake_case.
// ==UserScript==
// @name lib_rs_fixer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Fixes lib.rs disrespecting snake_case crate names.
// @author aspen <luxx4x@protonmail.com>
// @match https://lib.rs/crates/*
// @grant none
// @require https://code.jquery.com/jquery-3.x-git.slim.min.js
// ==/UserScript==