Skip to content

Instantly share code, notes, and snippets.

@wsoyka
wsoyka / twitch_plus.user.js
Last active August 9, 2024 18:02
user.js
/*
______ ____ _
| ____/ __ \| |
| |__ | | | | |
| __|| | | | |
| |___| |__| | |____
|______\____/|______|
This script is dead. Long live https://github.com/wsoyka/userscripts/blob/master/html5_video_controls.user.js
@wsoyka
wsoyka / yeelight-cli.py
Last active July 15, 2019 00:24
yeelight python cli script
import argparse
import struct
import time
from yeelight import Bulb
##################################################################################
##################################################################################
## Easily run actions on your Yeelights ##
## (e.g. when your Home Automation solution doesn't properly support Yeelights) ##
@wsoyka
wsoyka / aurora_timestamper.js
Last active November 24, 2017 22:51
Aurora Smalltalk Timestamper Userscript
// ==UserScript==
// @name Aurora Smalltalk Timestamper & Co
// @namespace https://gist.githubusercontent.com/wsoyka/405c1d99b860da990c403a197aa1bd75/raw/13fbc2896a98410af054d73e8ea8299b5b84bfa0/aurora_timestamper.js
// @version 0.4
// @description temporary solution to showing timestamps in aurora and other small fixes
// @author Wolfram Soyka
// @match http*://*.aurora.iguw.tuwien.ac.at/*
// @grant none
// ==/UserScript==
@wsoyka
wsoyka / runBashScript.bat
Last active March 2, 2019 10:57 — forked from damc-dev/runBashScript.bat
Execute Bash Script (Using WSL) from Windows Task Scheduler
cmd /c "wsl /path/to/file/on/linux/subfilesystem"
or
cmd /c "wsl /mnt/c/path/to/file/on/windows/filesystem"
@wsoyka
wsoyka / GCC_SSH.md
Last active March 8, 2019 14:19
Adding SSH Keys to Google Cloud Console via metadata

When adding SSH keys to Google Cloud Console (GCC) instances I ran into the problem that even after adding my public key to it I couldnt connect.

After searching around some and not being able to find a solution, I tried to change with the pubkey comment to my GCC instance username.

This finally solved my connectivity issues.

For the most part, the Documentation provided is very helpful and extensive, but what it fails to mention, is that the comment on the public keyfile seems to be expected to be the GCC instance username.

@wsoyka
wsoyka / zmv
Created March 15, 2019 11:43
Rename all files extensions to lowercase with zsh, ignoring directories.
Rename all files extensions to lowercase with zsh, ignoring directories.
#load zmv
autoload -U zmv
zmv -Qvn '(**/)(*).(*)(.D)' '$1$2.${(L)3}'
Whats happening here:
-Q enable globs (for directory matching later on)
-vn verbose output, no executuion - remove these after checking this command does what you want it to
@wsoyka
wsoyka / chromium_focus_tab_or_open_in_profile.scpt
Last active August 9, 2024 17:56
Applescript - Bring a specific chromium tab to front or open it in a given profile
###################################################
#
# Version: 2024-08
#
# This script will search all open Browser Windows for a specified Tab (by Title).
# At some point, this worked for Google Chrome and Brave Browser.
# Other chromium based browsers should work, but have not been tested.
#
# If no tab with the given title is found, it will open the specified URL in the
# specified Profile. If multiple tabs with the specified title exist, the first one
@wsoyka
wsoyka / Android_10 build.prop_editing.md
Last active September 4, 2024 10:13
How to edit build.prop on Android

Since various build.prop editor apps didnt work for me on Lineage 17.x, here the way I managed to edit build.prop:

  1. via Termux/Terminal:
mount -o remount,rw /
nano /system/build.prop
  1. edit to your hearts content - I usually bring down media vol steps: ro.config.media_vol_steps=15