Skip to content

Instantly share code, notes, and snippets.

View blurymind's full-sized avatar

Todor Imreorov blurymind

View GitHub Profile
@blurymind
blurymind / bbcodeTags.yarn
Last active September 13, 2024 19:49
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"
@blurymind
blurymind / copyTorrentFileMagnetToClipboard.sh
Last active June 9, 2022 18:27
copyTorrentFileMagnetToClipboard.sh
#!/bin/sh
file="$1"
transmission-show -m "$file" | xclip -sel clip
zenity --notification --text "Magnet link copied to clipboard!"
# If you open a torrent file with this script, the file's magnet link will be extracted and copied to the clipboard
# this script requires transmission-cli and zenity to be installed
# todo: also send to synology somehow
@blurymind
blurymind / about.txt
Created August 23, 2021 12:04
GB tilesets
set: test.png
author: yaya
source: googl.com
license: CC2
---
set: test.png
author: yaya
source: googl.com
license: CC2
---
@blurymind
blurymind / README.md
Created May 1, 2021 19:57 — forked from joyrexus/README.md
Load encoded thumbnail from a gist

Quick demo showing how to get a Base64-encoded thumbnail.png file from a gist.


Thumbnails are very handy visual indicators of the content of a block on bl.ocks.org, esp for rapidly surveying a user's collection.

However, many block creators don't add thumbnails because of the extra steps involved in adding them to a gist. Since the gist API doesn't let you upload binaries you end up having to clone you're gist to add a thumbnail. Note: @mbostock's gist to clone all gists is useful here.

It's been suggested that the gist-img shell script enables you to upload thumbnail images. That's at least half true. It automates the base64 encoding of png images prior to upload with @defunkt's gist CLI tool, so you end up u

xsetwacom --set "Wacom BambooFun 6x8 Pad pad" Button 1 "key space"
@blurymind
blurymind / cleanupArchCache.sh
Last active June 9, 2022 18:37
Free space on Arch linux/manjaro
#!/bin/bash
pacman -Scc
pacman -Qdt
pacman -Rns $(pacman -Qtdq)
journalctl --vacuum-size=50M
# Clean yay cache
yay -Sc -a
#report lost
@blurymind
blurymind / global.js
Last active November 1, 2020 16:27
Ags reusable methods
//// This is ags script, not javascript - C like, but not quite
//////////// walk to and pick //////////////////
/// https://adventuregamestudio.github.io/ags-manual/Object.html
function walkToAndPick(this Object*, InventoryItem* addObject ,const string say){
player.Walk(this.X, this.Y, eBlock, eWalkableAreas);
String toSay = "";
if (String.Format("%d",say) =="0") {
toSay = String.Format("Found a %s", addObject.Name);
}
else {