Skip to content

Instantly share code, notes, and snippets.

View earthiverse's full-sized avatar

Kent Rasmussen earthiverse

View GitHub Profile
@earthiverse
earthiverse / base.js
Last active January 6, 2022 07:24
pattack tests
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-undef */
const MPOT0_RECOVERY = G.items.mpot0.gives[0][1]
const MPOT1_RECOVERY = G.items.mpot1.gives[0][1]
const HPOT0_RECOVERY = G.items.hpot0.gives[0][1]
const HPOT1_RECOVERY = G.items.hpot1.gives[0][1]
function ms_to_next_skill(skill) {
const next_skill = parent.next_skill[skill]
@earthiverse
earthiverse / Junior Sunshine 5.csv
Last active February 22, 2022 00:47
Sunshine 2021 Wordlists (サンシャイン英語の教科書)
unit english japanese
Lesson 1 a a
Lesson 1 b b
Lesson 1 c c
Lesson 1 d d
Lesson 1 e e
Lesson 1 f f
Lesson 1 g g
Lesson 1 h h
Lesson 1 i i
@earthiverse
earthiverse / hi friends.txt
Last active April 17, 2020 22:35
Elementary School Textbook Wordlists
happy
sad
hungry
thirsty
fine
tired
sick
excited
angry
surprised
@earthiverse
earthiverse / decrypt-pdf.ps1
Created October 10, 2018 04:59
Decrypting all files in a folder with qpdf and powershell
#TODO #1: Change the path to the folder you want to convert all the files
Get-ChildItem "C:\Users\Path\To\Folder\Full\Of\PDFs" -Filter *.pdf |
Foreach-Object {
Write-Host "Decrypting $($_.FullName)..."
# TODO #2: Change the path to your qpdf.exe executable.
C:\Path\to\qpdf\bin\qpdf.exe --decrypt $_.FullName "$($_.FullName).decrypted"
Remove-Item $_.FullName
Rename-Item "$($_.FullName).decrypted" -NewName $_.Name
}
@earthiverse
earthiverse / alberta-municipalities-twitters.json
Created February 5, 2018 22:53
This was generated by a script, I need to figure out mistakes, and how to correct them. ***The data might not be 100% correct. There might be some missing, and there's definitely some connected to the wrong account!***
[
{
"name": "Acme",
"properties": {
"status": "Village"
},
"twitter": {}
},
{
"name": "Airdrie",
@earthiverse
earthiverse / sunshine_h28_changes.txt
Last active November 7, 2017 06:31
Sunshine Wordlist Changes
--------------------------------------------------------------------------------
Sunshine Wordlist Changes
I made this list sourced from two excel sheets found on the website for the
Sunshine textbook. It compares the textbooks between H24 (2012) and
H28 (2016). I did this because our school doesn't have the new flashcards, so
I wanted to know what we could reuse, and what would have to be added.
Also note that this data relies on the data provided by the company that made
Sunshine, and it has a few mistakes which I haven't changed. For example,
you won't find 'notebook' or 'textbook' in Sunshine's glossary.
--------------------------------------------------------------------------------
@earthiverse
earthiverse / parallel mp3gain
Last active July 12, 2016 01:37
Speed up mp3gain. Will run recursively through all folders in the path.
// The following works on Debian
// '4' is the number of parallel mp3gain processes to run. Recommended to run at most the # of cores in your CPU.
// '.' is the current folder, either cd to the folder containing all of your music and run the command below as-is, or change the '.' to the path containing all of your music
find . -name "*.mp3" -print0 | xargs -0 -n 1 -P 4 mp3gain -r -s i