Skip to content

Instantly share code, notes, and snippets.

View Rudo2204's full-sized avatar

Rudo Rudo2204

View GitHub Profile
@Rudo2204
Rudo2204 / batch_editor_pkhex_status_condition.txt
Created March 27, 2022 18:09
Batch Editor PKHeX to give pokemon status condition (useful for nuzlocke idk)
=OT_Name=Rosa
=Slot=6
.Status_Condition=05
First line will narrow down to the mons of trainer Rosa (for more accurate filter, use TID, which you can get from SAV -> Trainer Info)
=TID=23569 or whatever
Then second line will narrow down to the slot 6 (then click Party on top of the Batch Editor to apply to the slot 6 of the current party)
Then the third line will give it the status
1 = paralysis
@Rudo2204
Rudo2204 / cdemu_mx_linux.md
Created July 4, 2021 08:51
cdemu mx linux

NOTE

The cdemu packages from deb multimedia repo is broken, so we will have to use ubuntu PPA for this.

Add ubuntu PPA Ref link

sudo nano /etc/apt/sources.list.d/cdemu.list with content:

# cdemu source
deb http://ppa.launchpad.net/cdemu/ppa/ubuntu/ bionic main  
deb-src http://ppa.launchpad.net/cdemu/ppa/ubuntu/ bionic main

Keybase proof

I hereby claim:

  • I am Rudo2204 on github.
  • I am rudo2204 (https://keybase.io/rudo2204) on keybase.
  • I have a public key whose fingerprint is 4E50 E916 5AF3 72D5 F8E4 89B8 8F1B 9F11 8267 E3A1

To claim this, I am signing this object:

@Rudo2204
Rudo2204 / moeway_handlebars.md
Last active December 16, 2023 12:57
Selecting specific dictionary's entry from yomichan for making cards.

Download:

https://gist.github.com/Rudo2204/7327a5bd25a60aefee963fd65327a9b7

How to:

  • Add it to your yomichan.
  • It supports 8 dictionaries (the "recommended for first time monolingual users" from the guide).
glossary-jmdict
glossary-jmdict-compact : same as above, it only replaces linebreak with one single space to make it more compact. Could be useful.
glossary-kenkyusha
glossary-kensyusha-ne : ne stands for no-example. This basically removes all the example sentences from the entry.
@Rudo2204
Rudo2204 / moe.hbs
Last active April 10, 2023 13:16
yomichan's handlebars for moeway's server
{{#*inline "glossary-single"}}
{{~#if (op "||" (op "===" targetDictionary undefined) (op "===" targetDictionary dictionary))~}}
{{~#unless brief~}}
{{~#scope~}}
{{~#set "any" false}}{{/set~}}
{{~#each definitionTags~}}
{{~#if (op "||" (op "!" @root.compactTags) (op "!" redundant))~}}
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
{{name}}
{{~#set "any" true}}{{/set~}}
@Rudo2204
Rudo2204 / mainnight.css
Created March 9, 2021 10:11
Itazuraneko mainnight.css as alternate css style
html * {
max-height:1000000px;
}
body {
background-color: #222222;
font-family: "Libre Franklin","Helvetica Neue",helvetica,arial,sans-serif;
font-size: 100%;
line-height: 1.63;
color: rgb(217, 217, 217);
@Rudo2204
Rudo2204 / flameshot_tesseract
Created December 22, 2020 07:50
Flameshot capture into tesseract, copy to clipboard
#!/bin/bash
# Dependencies: tesseract-ocr flameshot
#select tesseract_lang in jpn jpn_vert ;do break;done
# Quick language menu, add more if you need other languages.
flameshot gui -r | tesseract -l jpn_vert stdin stdout | sed '$ s/..$//' | tr -d '\n' | xclip -sel clip
@Rudo2204
Rudo2204 / scrot_ocr
Created December 22, 2020 06:47
scrot into tesseract, copy to clipboard
#!/bin/bash
# Dependencies: tesseract-ocr scrot
#select tesseract_lang in jpn jpn_vert ;do break;done
# Quick language menu, add more if you need other languages.
SCR_IMG=`mktemp`
trap "rm $SCR_IMG*" EXIT
scrot -s $SCR_IMG.png -q 100
@Rudo2204
Rudo2204 / firefox_tearing_fix.md
Created October 25, 2020 08:44
Firefox tearing fix

layers.acceleration.force-enabled = true in about:config

@Rudo2204
Rudo2204 / oneshot_linux_fix.md
Created September 4, 2020 14:57
Oneshot (the game) does not start on MXLinux 19.3 fix

First, if your game also does not start up properly, start debugging by cd-ing into your OneShot directory of Steam. ($HOME/.steam/steam/steamapps/common/OneShot in most cases). And then start OneShot with ./steamshim. In my case: I got this error:

libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
libGL error: failed to load driver: swrast