Skip to content

Instantly share code, notes, and snippets.

View 5731la's full-sized avatar
💭
Why have your head in the clouds when you can buy a humidifier

stellasec 5731la

💭
Why have your head in the clouds when you can buy a humidifier
  • Systems Administrator in the education/non-profit industry
  • ~/
  • 11:59 (UTC -04:00)
View GitHub Profile
@5731la
5731la / keybase.mb
Created May 25, 2020 21:15
keybase
### Keybase proof
I hereby claim:
* I am gidobossftw5731 on github.
* I am gido5731 (https://keybase.io/gido5731) on keybase.
* I have a public key ASC_jd9mIDpMjd6xPER9i1bMXOkpHNHmPDvrz6GUJ4uIEAo
To claim this, I am signing this object:
@5731la
5731la / README.md
Last active December 25, 2024 05:47
Block annoying Youtube elements with ublock origin/adblock plus compatible filters

These are fairly experimental and may affect performance or stop working at any time. Feel free to comment if you have any better implementations, I tried to be both as specific as possible and follow reccomendation from the documentation, though I am just a guy.

The files are (at time of writing) are .ubo files (for UBlock Origin) though I dont believe this is an official file name.

All these were testing using AdNauseum, a skin of UBlock Origin.

Instructions on how to use these located here: https://www.ghacks.net/2014/10/10/how-to-add-custom-filters-to-chrome-ad-blocking-extension-%C2%B5block/ (the particular tab may be called "your filters" or "my filters")

I am not directly affiliated with UBlock Origin, AdBlock Plus, Youtube, nor their developers.

@5731la
5731la / README.md
Created May 25, 2021 15:57
Send emails automatically on any machine logins

This sends an email to the address specified with the environment variables of the session on every session creation (every login, not counting sudo.)

Env variables for SSH include the public key, the IP address, and whatever other authentication was done.

@5731la
5731la / foldwithffmpeg.sh
Last active September 11, 2022 00:17
Stop folding at home automatically when FFMPEG begins encoding (NVIDIA GPU)
#!/bin/bash
export id=3
while true
do
export out=`nvidia-smi --query-compute-apps=name --format=csv |grep ffmpeg|wc -l`
case "$out" in
"0")
FAHClient --send-unpause $id
@5731la
5731la / admin-config-set.go
Created October 17, 2023 00:54
Modify this file and recompile in order to allow you to recover when clienttimeout = 0
/*
* Copyright (c) 2019-2021. Abstrium SAS <team (at) pydio.com>
* This file is part of Pydio Cells.
*
* Pydio Cells is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Pydio Cells is distributed in the hope that it will be useful,
@5731la
5731la / cpulimitdiscord.sh
Created March 16, 2025 02:10
Limit Discord CPU usage when not actively selected
#!/bin/bash
# This isn't something I use much anymore but the concept can be useful I guess
export cpulimitpid
while true; do
export curwindow=`xprop -id $(xprop -root | awk '/_NET_ACTIVE_WINDOW\(WINDOW\)/{print $NF}') |
awk '/WM_CLASS\(STRING\)/{print $NF}'|grep discord|wc -l`