Skip to content

Instantly share code, notes, and snippets.

View rafuwu's full-sized avatar

rafuwu

  • Portugal
  • 00:13 (UTC +01:00)
View GitHub Profile
@rafuwu
rafuwu / yno_2kki_screenshot_shortcut.user.js
Last active November 29, 2023 06:24
YNO screenshot shortcut
// ==UserScript==
// @name YNO screenshot shortcut
// @description Default behaviour: C key takes a screenshot
// @version 0.2.0
// @namespace https://ynoproject.net/
// @match *://*.ynoproject.net/*
// @author rafuwu
// @homepageURL https://gist.github.com/rafuwu/8945525516044de510ee79ebebe9546a
// @license 0BSD
// ==/UserScript==
@rafuwu
rafuwu / yume.wiki_2kki_Kura_Puzzles_Wallpaper_Guide_export_html.js
Last active March 20, 2023 00:49
"Kura Puzzles" & "Wallpaper Guide" (yume.wiki/2kki/) → export list as text and HTML
// This is free and unencumbered software released into the public domain.
// For more information, please refer to <http://unlicense.org/>
/* Made for:
* https://yume.wiki/2kki/Kura_Puzzles
* https://yume.wiki/2kki/Wallpaper_Guide
*
* Enter this into the console and then focus on the page with the cursor
* (to allow the contents to be copied into the clipboard)
*/
@rafuwu
rafuwu / yno_expedition_keyboard_shortcuts.user.js
Last active February 14, 2024 10:01
YNO Expeditions keyboard shortcuts: Press "R" to open the Expeditions window and "T" to cycle between Locations and Vending Machine Finder.
// ==UserScript==
// @name YNO Expeditions keyboard shortcuts
// @name:fr Raccourcis clavier de YNO Expéditions
// @name:pt Atalhos de teclado para Expedições YNO
// @name:ja YNOのドリームラリーキーボードショートカット
// @description Press "R" to open the Expeditions window and "T" to cycle between Locations and Vending Machine Finder.
// @description:fr Appuyez sur "R" pour ouvrir la fenêtre Expéditions et "T" pour passer de Lieux à Distributeur automatique à trouver.
// @description:pt Pressiona "R" para abrir o menu das Expedições e "T" para alternar entre Localizações e Máquina de Venda Automática.
// @description:ja Rキーでドリームラリーウインドウを開閉する。Tキーで世界と自販機の切り替えができます。
// @version 0.9.0
@rafuwu
rafuwu / rename_ynoproject_sreenshots.sh
Last active November 10, 2024 17:48
YNOproject.net screenshot renamer script
#!/bin/sh
# This is free and unencumbered software released into the public domain.
# For more information, please refer to <http://unlicense.org/>
#
# This script renames YNOproject.net screenshots taken with the feature inside the website
#
# It supports all of the following naming formats as inputs (given as examples):
# * 'ynoproject_2kki_screenshot_2023-1-6-0-49-2.png'
#!/bin/bash
[ -z "$1" ] && port=6869 || port=$1
# Get local IP address
localip=$(ip addr | grep -i "inet 192.168" | awk '{print $2}' | awk -F / '{print $1}')
# Get current user name
user=$(whoami)