This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Youtube Shorts Scrubber Bar - Adds back the scrubber bar for youtube shorts | |
// @namespace Violentmonkey Scripts | |
// @match https://www.youtube.com/shorts/* | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @require https://code.jquery.com/jquery-3.6.0.js | |
// @description 10/27/2021, 8:04:38 PM | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Dark Wikipedia | |
// @description Darkens Wikipedia on iOS & macOS Safari, for use with https://github.com/quoid/userscripts | |
// @match https://en.m.wikipedia.org/* | |
// @match https://en.wikipedia.org/* | |
// @updateURL | |
// @version 1.3 | |
// ==/UserScript== | |
function darkenChrome() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ENV TZ=America/Los_Angeles | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone | |
RUN useradd -s /usr/bin/bash -d /home/deployer -m deployer | |
RUN mkdir /app | |
RUN chown deployer /app | |
RUN apt-get update && apt-get install -y \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"C:\Program Files\Git\usr\bin\mintty.exe" -w full -h always /bin/bash -l -e -c 'ssh -t pi@192.168.88.114 tmux new-session -A -s main' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// you need `op` tool for this, download it here https://support.1password.com/command-line/ | |
// create items.json like so: | |
// op list items | jq > items.json | |
// then run this script | |
// this script outputs uuids of dupes as keyed by item title, create, and modified date, | |
// feed it into the delete command like so: | |
// node process.js | xargs -I{} op delete item {} | |
const items = require('./items.json'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { exec } = require('child_process'); | |
const getGPUList = async () => { | |
return new Promise(function(resolve, reject) { | |
exec('nvidia-smi -L', (err, stdout, stderr) => { | |
if (err) return reject(err); | |
let gpuMap = stdout.trim().split('\n').reduce((acc, line)=>{ | |
let [_, numStr, uuid] = line.match(/GPU (\d+):.+UUID: (.+)\)/) | |
return {...acc, [uuid]: numStr} | |
}, {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const nvidia = require('./src/nvidia'); | |
const TARGET_TEMP = 69; | |
let timeouts = []; | |
let interval = null; | |
async function autofan(gpus, uuid, tempTarget) { | |
const tick = async () => { | |
let gpu_int = gpus[uuid]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -exuo pipefail | |
LIVESTREAM_URL=$1 | |
if [[ ! $# -eq 1 ]]; then | |
echo "usage: $0 <URL>" | |
exit 1 | |
fi | |
# Referencing FFMpeg to Icecast2 Streaming Sample Gist: https://gist.github.com/keiya/c8a5cbd4fe2594ddbb3390d9cf7dcac9 | |
URL=$(streamlink $LIVESTREAM_URL worst --stream-url) | |
channels=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Basing this off upwork-appimage.git and gulden-appimage | |
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gulden-appimage | |
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=upwork-appimage | |
_pkgname=ripcord | |
_upkgname=Ripcord | |
pkgname=ripcord-appimage | |
pkgver=0.2.83 | |
pkgrel=1 | |
pkgdesc="A desktop chat client for Discord (and soon Slack)" | |
arch=('x86_64') |