Skip to content

Instantly share code, notes, and snippets.

View Pysis868's full-sized avatar
💭
everything at once

Pysis Pysis868

💭
everything at once
View GitHub Profile
@Pysis868
Pysis868 / convert.fish
Last active December 18, 2024 23:37
SatisfactoryAudioRenamer updated convert scripts for batch/mass parsing WWISER audio file metadata to extra to rename FModel-extracted wem audio files.
#!/usr/bin/env fish
# SatisfactoryAudioRenamer alternative convert script for batch/mass parsing
# WWISER audio file metadata to rename FModel-extracted wem audio files.
# Sample wem file reference lines:
# Other's (WWISER v20240526):
# wem/218091215.wem
#
# Mine (WWISER v20241210):
@Pysis868
Pysis868 / edDownloadFiles.fish
Last active December 18, 2024 17:49
Handle game file data, most likely hash mismatches, and handle fixing them ourselves using data from Frontier, to help the installer continue, or just direct installing.
#!/usr/bin/env fish
# Author: Pysis
# License: MIT
# Link: https://gist.github.com/Pysis868/1d5a91e1c1930e79807d71c361136c32
# Handle game file data,
# most likely hash mismatches,
# and handle fixing them ourselves using data from Frontier,
# to help the installer continue, or just direct installing.
@Pysis868
Pysis868 / gDriveCollapsible.js
Last active August 26, 2024 21:26
Allow the Google Drive sidebar to be collapsed.
// ==UserScript==
// @name Make Google Drive Sidebar Collapsible
// @namespace Teh Fishy Place
// @version 2024-08-02
// @description Allow the Google Drive sidebar to be collapsed.
// @author Pysis
// @author Google
// @match https://drive.google.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=google.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js
@Pysis868
Pysis868 / videoCreateThumbnail.fish
Created February 14, 2024 21:41
videoCreateThumbnail.fish
#!/usr/bin/env fish
function videoCreateThumbnail \
--argument-names videoFile
test -z "$thumbnailSeekAmount" ;
and set thumbnailSeekAmount '0.10';
if test -z "$videoFile"
errorPrint 'No video file given; exiting...';
@Pysis868
Pysis868 / gfm-render
Last active February 14, 2025 16:54 — forked from bitti/gfm-render
Offline renderer for GitHub flavoured markdown
#!/usr/bin/ruby
# Renders Markdown content offline by converting it to HTML using GitHub's own redcarpet renderer software, and their additional CSS.
# Does require a download of the additional GitHub CSS to a local cache.
# Replaces grip for preferred offline functionality: https://github.com/joeyespo/grip/issues/35
# Dependencies: redcarpet
require 'optparse'
@Pysis868
Pysis868 / GenerateSlippyMapTiles.py
Last active September 20, 2019 01:02 — forked from jeffThompson/GenerateSlippyMapTiles.py
Takes a large image as the input, outputs map tiles at the appropriate size and file structure for use in frameworks like leaflet.js, MapBox, etc.
# -*- coding: utf-8 -*-
import argparse, magic, re, os, math, glob, shutil
'''
GENERATE SLIPPY MAP TILES
Jeff Thompson | 2016 | jeffreythompson.org
Takes a large image as the input, outputs map tiles
at the appropriate size and file structure for use
@Pysis868
Pysis868 / open_cookie.rb
Last active June 26, 2018 19:52 — forked from scpike/open_cookie.rb
Rails 3 cookie decode
@Pysis868
Pysis868 / countKorokSeedsBookmarklet.js
Created March 19, 2017 19:03
Small script to count a specific object (korok seeds) in the Zelda: BotW Zelda map.
$.fn.reduce = [].reduce;
var singleKorokSeedLocations = $('.leaflet-marker-icon > div.icon-BotW_Korok-Seeds');
var singleKorokSeedLocationsTotal = singleKorokSeedLocations.length;
var multipleKorokSeedLocations = $('.leaflet-marker-icon > div > span');
var multipleKorokSeedLocationsTotal = multipleKorokSeedLocations.reduce(function(accumulator, currentElement){
return accumulator + parseInt(currentElement.innerText);
}, 0);
var korokSeedCount = singleKorokSeedLocationsTotal + multipleKorokSeedLocationsTotal;
@Pysis868
Pysis868 / bot_data_to_yaml.rb
Last active April 29, 2016 14:10 — forked from adhown/bot_data_to_yaml.rb
Learning ruby basic
require 'yaml'
bot_data = {
:presubs => [
["dont", "dont"],
["youre", "you're"],
["love", "like"]
],
:responses => {
:default => [