Skip to content

Instantly share code, notes, and snippets.

View blurymind's full-sized avatar

Todor Imreorov blurymind

View GitHub Profile
@blurymind
blurymind / yarn-classic-plugin-example.js
Last active April 6, 2024 12:44
yarn-extensions-test
module.exports = function yarnDemoPlugin({
app,
createButton,
createToggle,
getPluginStore,
setPluginStore,
addSettingsItem,
onYarnLoadedData,
onYarnEditorOpen,
onYarnInPreviewMode,
@blurymind
blurymind / Deck ui.md
Created January 11, 2024 16:11 — forked from red-dragon65/Deck ui.md
How to properly run Steam Decks UI on Manjaro

This guide is deprecated! Please take a look at the defacto un-official SteamOS project HoloISO.

HoloISO is more straightforward to install and is being actively worked on.


Running Steams Deck UI on Manjaro with Minimal Glitches

This is an unofficial short guide on running Steam Decks new UI on Manjaro. I am kind of a linux noob, so forgive me if I get a few things wrong in this guide. Also, I have not fully tested everything so there may be some weird issues that I have overlooked.

@blurymind
blurymind / gist:c1e912cd2e71b194c6859b4c2dc75035
Created June 25, 2023 14:51
Bearpaw 2400 plus scanner HP
http://meier-geinitz.de/sane/gt68xx-backend/
BearPaw 2400 CU Plus
Install simple-scan and sane
copy these two files to /usr/share/sane/gt68xx
scan :)
@blurymind
blurymind / script.js
Created April 18, 2023 17:29 — forked from MichaelPHolstein/script.js
JavaScript file of background removal using Tensorflow and bodyPix
IMAGE_SRC = './img/8.jpg'
const loadImage = () => {
const img = new Image()
img.src = IMAGE_SRC
const canvas = document.querySelector('canvas')
const ctx = canvas.getContext('2d')
img.addEventListener('load', () => {
@blurymind
blurymind / remove-alpha-on-canvas.js
Created December 8, 2022 10:15 — forked from redblobgames/remove-alpha-on-canvas.js
Remove alpha channel on a canvas, so it's always transparent or always opaque
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
const pixels = imageData.data;
for (let i = 3, n = canvas.width * canvas.height * 4; i < n; i += 4) {
pixels[i] = pixels[i] < 127? 0 : 255
}
ctx.putImageData(imageData, 0, 0);
@blurymind
blurymind / combinePdfs.sh
Created November 19, 2022 14:45
combinePdfs.sh
#!/bin/sh
# thunar file custom action /home/fox/INSTALL/combinePdfs.sh %F
# %F is full path to all selected files
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile="${1%.pdf}-combined.pdf" "$@"
notify-send "created ${1%.pdf}-combined.pdf file"
@blurymind
blurymind / bbcodeTags.yarn
Last active November 14, 2022 18:53
Demo yarn files
title: Start
tags:
colorID: 0
position: 150,211
---
[b]Bold[/b] text
[u]Underlined[/u] text
Text in [i]italics[/i]
Text in [color=#ff0000]red color[/color] and [color=#0000ff]blue color[/color]
[color=#00ff00][b]Green and bold[/b][/color] text
@blurymind
blurymind / moveFilesOutOfFolders.sh
Last active June 13, 2022 12:43
moveFilesOutOfFolders.sh
#!/bin/sh
# fix for folders/files with spaces in them (ln13)
OLDIFS=$IFS
IFS=$'\n'
# thunar folder custom action /home/fox/INSTALL/deleteSmallSizeSubFolders.sh %F
# %F is full path to all selected folders
for var in "$@"
do
@blurymind
blurymind / deleteSmallSizeSubFolders.sh
Last active June 13, 2022 12:39
deleteSmallSizeSubFolders.sh
#!/bin/sh
# fix for folders/files with spaces in them (ln13)
OLDIFS=$IFS
IFS=$'\n'
# thunar folder custom action /home/fox/INSTALL/deleteSmallSizeSubFolders.sh %F
# %F is full path to all selected folders
for var in "$@"
do
@blurymind
blurymind / foldersToCbz.sh
Last active June 12, 2022 10:20
foldersToCbz.sh
#!/bin/sh
# thunar folder custom action /home/fox/INSTALL/createCbzFromFolder.sh %F
# %F is full path to all selected folders
for var in "$@"
do
echo "$var"
7z a "$var".7z "$var"/*
mv "$var".7z "$var".cbz
rm -r "$var"