Skip to content

Instantly share code, notes, and snippets.

@wsoyka
wsoyka / Android_10 build.prop_editing.md
Last active January 16, 2024 10:03
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
@wsoyka
wsoyka / chrome_focus_tab_or_open_in_profile.scpt
Last active April 13, 2023 05:17
Applescript - Bring a specific chrome tab to front or open it in a given profile
#########################################################################################
# This script will search all open Chrome Windows for a specified Tab (by Title). #
# #
# 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 #
# found will be opened. #
# #
# The application that is going to run the script (a Hotkey application, or e.g #
# Terminal) will have to be granted Accessibility Access (System Preferences > #
@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 / 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 / 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 / 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 / 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) ##
// ==UserScript==
// @name Twitch Plus
// @namespace none
// @version 0.24
// @description add missing hotkeys to Twitch.tv
// @author Wolfram Soyka
// @match http*://*.twitch.tv/*
// @grant GM_addStyle
// @require https://cdnjs.cloudflare.com/ajax/libs/mousetrap/1.6.1/mousetrap.min.js