Skip to content

Instantly share code, notes, and snippets.

View nimatrueway's full-sized avatar
🤩

Naeim Taheri nimatrueway

🤩
View GitHub Profile
@nimatrueway
nimatrueway / m4b_split.sh
Last active July 27, 2023 07:45 — forked from aularon/m4b_split.sh
Split an m4b into its chapters. No recoding is done, just splitting
#!/bin/bash
# Description: Split an m4b into its chapters. No recoding is done, just splitting
# Usage: m4b_split.sh $input_file $output_dir/
# Requires: ffmpeg, jq
# Author: Hasan Arous, Nima Taheri
# License: MIT
in="$1"
out="$2"
splits=""
@nimatrueway
nimatrueway / README.md
Last active December 2, 2024 15:58 — forked from Nua07/python_pillow_webp2gif.py
Convert webp animations to gif preserving image quality (RGB = 24bit)
@nimatrueway
nimatrueway / photopea-hide-ads.md
Last active February 10, 2022 08:41 — forked from katopz/photopea-hide-ads.md
How to hide photopea ads

Open console and run this for 0px width ads. (ads still working, adjust width size to suite your need)

document.querySelector("body > div.flexrow.app > div:nth-child(2)").setAttribute('style','position: fixed; top: 100vh')

document.querySelector("body > div.flexrow.app > div").setAttribute('style','width:100%')
document.querySelector("body > div.flexrow.app > div > div.flexrow > div.panelblock.mainblock").setAttribute('style','width:100%')
const style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.fixme { min-width:fit-content;overflow:unset; }';
document.querySelector("body > div.flexrow.app > div:nth-child(1) > div.flexrow").appendChild(style)
@nimatrueway
nimatrueway / MigPaneExtensions.kt
Last active September 12, 2020 21:15 — forked from jschneider/MigPaneExtensions.kt
MigPane extension methods for TornadoFX
import javafx.event.EventTarget
import javafx.scene.Node
import org.tbee.javafx.scene.layout.fxml.MigPane
import tornadofx.attachTo
fun EventTarget.migPane(op: MigPane.() -> Unit = {}): MigPane {
return MigPane().attachTo(this, op)
}
var Node.cc: String
;-------------------------------------------------------------------------------
; Auto-Reload AutoHotkey when .ahk file is saved
; http://prxbx.com/forums/showthread.php?tid=1181
; Modified 2009-12-09 11:32:17 by Luke Scammell - luke {at} scammell [dot] co (.) uk
; Modified to match any window with .ahk in the title, meaning it will update other scripts as well and from other programs like Notepad++ :)
~^s::
SetTitleMatchMode, 2
FileGetTime ScriptStartModTime, %A_ScriptFullPath%
#If WinActive(A_ScriptName " ahk_exe Code.exe") ; change Code.exe with your ahk editor executable
@nimatrueway
nimatrueway / article-style.css
Last active May 19, 2019 11:06 — forked from bangedorrunt/article-style.css
GoldenDict Dracula Theme
// gnome rtl fix
div.bglrtl {
padding-right: 30px;
padding-left: 30px;
}
html {
background: #2B2B2B;
}