Skip to content

Instantly share code, notes, and snippets.

@Arty2
Arty2 / stachybotrys.qownnotes.qcss
Created August 20, 2023 13:48
A rough #QOwnNotes theme based on https://github.com/Arty2/stachybotrys color-scheme
/*
* test stachybotrys for QOwnNotes
* how to style the UI https://github.com/pbek/QOwnNotes/issues/2187
* styles and icons https://github.com/pbek/QOwnNotes/tree/develop/src/libraries/qdarkstyle
* how to make a plugin: https://github.com/qownnotes/scripts/tree/master/black-mode
* https://het.as.utexas.edu/HET/Software/html/stylesheet-examples.html
* https://doc.qt.io/qt-6/stylesheet-reference.html
*/
/*
@Arty2
Arty2 / input.conf
Created March 20, 2022 15:43
mpv portable_config
ESC quit
r cycle_values video-rotate 90 180 270 0
l cycle_values loop-file inf yes
@Arty2
Arty2 / proton-tweaks.userchrome.css
Last active February 21, 2024 14:44
proton-tweaks
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*----------------------------------------------------------
Firefox proton theme tweaks
references: https://gist.github.com/tung/439935f55cc83af20defd7867ec89c82;
*/
/* remove radius from buttons and tabs */
*|*:root {
--toolbarbutton-border-radius: 0 !important;
--tab-border-radius: 0 !important;
@Arty2
Arty2 / vscode_settings.json
Last active May 27, 2024 17:43
Visual Studio Code Markdown styles inspired from iAWriter
"editor.tokenColorCustomizations": {
"[Material Theme Darker]": { // replace with your dark theme
"textMateRules":[
{
"scope": [
"markup.italic.markdown",
"punctuation.definition.italic.markdown",
"punctuation.definition.bold.markdown",
"markup.bold.markdown",
"string.other.link.title.markdown",
@Arty2
Arty2 / objkt-capture-frames.js
Last active May 30, 2021 18:09
Browser console script to render frames from a rotating OBJKT on hicetnunc.xyz and save as PNGs
/*
objkt-capture-frames.js
Description: Browser console script to render frames from a rotating OBJKT on hicetnunc.xyz and save as PNGs
Version: 0.2
Author: Heracles Papatheodorou / @Arty2
Website: https://gist.github.com/Arty2/cc438cc516bfc443cf4f7756343188bc
License: MIT License
*/
// styles for the new elements
@Arty2
Arty2 / fixedsearch.js
Last active June 23, 2024 15:45 — forked from cmod/hugofastsearch.md
Super fast, client side search for Hugo.io with Fusejs.io
// static/scripts/fixedsearch/fixedsearch.js
/*--------------------------------------------------------------
fixedsearch — Super fast, client side search for Hugo.io with Fusejs.io
based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993
--------------------------------------------------------------*/
if (typeof variable !== 'undefined') {
console.log('fixedsearch.js already loaded');
} else {
fixedsearch = function(){
@Arty2
Arty2 / jpg-to-page-bundle.bat
Last active December 27, 2020 20:56
Loop through every .jpg file in the same directory and make a Hugo page bundle out of each.
@echo OFF
rem loop through all JPG files
for %%f IN (*.jpg) DO (
rem make a new directory with the same filename
mkdir %%~nf
rem move file the new directory
move %%f %%~nf/%%f
rem go inside the new directory
cd %%~nf
@Arty2
Arty2 / logitech-craft.ahk
Created May 23, 2020 16:50
Hide popup for Logitech Craft's crown.
; make Logitech craft windows transparent, restart the script and use the crown to hide it
; see https://github.com/Logitech/logi_craft_sdk/issues/31
; ← everything after this character is a comment
SetTimer, LogiOverlay, -5000 ; this timer runs once, after 5 seconds
LogiOverlay(){
If WinExist("ahk_EXE LogiOverlay.exe") {
WinClose, ahk_EXE LogiOverlay.exe ; close the window, comment to disable
; WinSet, Transparent, 20, ahk_EXE LogiOverlay.exe ; uncomment this line to change its opacity instead
}
@Arty2
Arty2 / mic-toggle.ahk
Created April 16, 2020 06:19
An AutoHotKey script to mute/unmute all microphones on a system level. Works with Windows 10.
; An AutoHotKey script to mute/unmute all microphones on a system level. Toggle with Caps Lock.
; Emits a single beep on mute, double on unmute. Tray icon changes accordingly.
; Requires https://www.nirsoft.net/articles/mute_microphone_command_line.html
; Note: SoundSet doesn't work as intented
; TODO: detect tap and hold to speak, based on https://github.com/YoYo-Pete/AutoHotKeys/blob/master/PushToTalk.ahk
; https://www.howtogeek.com/446418/how-to-use-caps-lock-as-a-modifier-key-on-windows/
; also https://stackoverflow.com/questions/1794258/detect-a-double-key-press-in-autohotkey
$Capslock::
@Arty2
Arty2 / dropbox-paper-focus.css
Created April 6, 2020 07:54
dropbox-paper-focus.css
/*
A set of styles that turns the sideba and menus partialy transparent when the cursor is not over them.
Includes some stylistic changes over the display of text, eg. — instead of bullet points, Anonymous Pro font (if exists on the system).
*/
::-moz-selection { background: #000; }
::selection { background: #000; }
/*---------