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 / 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 November 16, 2023 18:25 — 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
require 'optparse'
options = {
@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 => [
@Pysis868
Pysis868 / QuakeConsole.ahk
Last active April 16, 2016 16:29 — forked from program247365/QuakeConsole.ahk
Console 2 Settings File and Quake Awesomeness
; Change your hotkey here
^1::
DetectHiddenWindows, on
IfWinExist ahk_class Console_2_Main
{
IfWinActive ahk_class Console_2_Main
{
WinHide ahk_class Console_2_Main
WinActivate ahk_class Shell_TrayWnd
@Pysis868
Pysis868 / grub.cfg
Last active February 25, 2024 06:41
My own configuration file for GRUB2 to boot various live distributions of Linux-based operating systems, along with some system tools. I tried to include a lot of sample configuration entries, even if I don't currently use them, so it may help others. Exceedingly long blog post: http://tehfishyblog.logdown.com/chips/306146-a-homemade-ultimate-bo…
# Config for GNU GRand Unified Bootloader (GRUB) (2)
# /boot/grub2/grub.cfg
# or
# /boot/grub/grub.cfg
# Mostly only 'legacy' CSM/BIOS boot methods currently.
# Unable to boot loop entries with Secure Boot
# Notes:
# Description:
# This grub.cfg file was created by Lance http://www.pendrivelinux.com

Keybase proof

I hereby claim:

  • I am Pysis868 on github.
  • I am pysis (https://keybase.io/pysis) on keybase.
  • I have a public key whose fingerprint is B2C4 A98E A4D0 CBC5 CDD8 62C3 1A0D 40D7 9885 AFA4

To claim this, I am signing this object: