Skip to content

Instantly share code, notes, and snippets.

View Maartyl's full-sized avatar

maartyl Maartyl

  • Czech Republic
View GitHub Profile
@Maartyl
Maartyl / ytCopyMeta.js
Created April 1, 2023 08:45
Copy Meta about current YT Video
// ==UserScript==
// @name YT Copy Meta
// @namespace https://github.com/Maartyl
// @version 0.1
// @description Copy Meta about current Video
// @author Maartyl
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant GM_setClipboard
// @run-at context-menu
@Maartyl
Maartyl / ExampleFlowPausing.kt
Created October 15, 2020 07:58
Pausing flow, based on 01702dbab744595a8dbdd41befe6829c
package cz.maartyl.ex
/* Output
[ORIGINAL OUTPUT]
Collecting 2 elements…
upstream -> hot
emit: 0
resumed
collect: 0
@Maartyl
Maartyl / gtk.css
Last active January 3, 2018 21:50
my overrides for (chrome) GTK3 Theme: Equilux (https://github.com/ddnexus/equilux-theme)
/*===== MAA overrides*/
.entry {
/*MAA - chromium borders*/
border-color: #414141;
/* border-color: #000000;*/
}
.entry.chromium {
border-color: #414141;
/* border-color: #000000;*/
}
@Maartyl
Maartyl / wikiwand.js
Last active June 8, 2021 03:46
tampermonkey script to replace wikiwand extension, which slows down browser: this works /almost/ as good, with just a small delay and doesn't slow down anything but loading of wiki pages
// ==UserScript==
// @name wikiwand
// @namespace maa
// @description like wikiwand plugin, but cheaper
// @include https://*.wikipedia.org/wiki/*
// @run-at document-start
// @version 1
// @grant none
// @noframes
// ==/UserScript==
-- FIX(hack): chrome drag&drop needs correct _NET_CURRENT_DESKTOP, but Awesome always uses that from first monitor
-- this is ALREADY FIXED in upstream awesome, on MAY 2016, but not yet in any stable version (as of DEC 2016) //maartyl
-- this is the commit that fixes it: https://github.com/awesomeWM/awesome/pull/910/commits (so I know and can use newer version when it's available,
-- including this) - it's been merged to master
client.connect_signal("focus", function(c)
-- get _NET_WM_DESKTOP(CARDINAL) from client
-- call: xprop -root -f _NET_CURRENT_DESKTOP 32c -set _NET_CURRENT_DESKTOP <HERE GOES THE NUMBER>
-- btw. if I find a way to do that inside awesome, that would be much better...
os.execute("xprop -root -f _NET_CURRENT_DESKTOP 32c -set _NET_CURRENT_DESKTOP $(xprop -id " .. c.window .. " | fgrep _NET_WM_DESKTOP | grep -oE '[^ ]+$')")
/**
* Created by maartyl on 17.12.16.
*/
import javafx.application.Application
import tornadofx.*
import java.io.File
import java.nio.file.Files
fun main(args: Array<String>) {
package hello
fun getHelloString() : String = "Hello, world!"
fun main(args : Array<String>) {
println(getHelloString())
}
@Maartyl
Maartyl / yt-dark.css
Last active October 7, 2016 20:41
pleasant dark grey youtube theme (surely works in Chrome Date16100 with ImprovedTube;7 and FF, Date160905, with YouTube High Definition (:expand))
@-moz-document domain("youtube.com") {
body {
background-color: #222;
}
#page {
background-color: #222;
color: #ccc;
}
/*light vido links*/