Skip to content

Instantly share code, notes, and snippets.

View oct2pus's full-sized avatar

Octopus "Oct2pus" Octopus oct2pus

View GitHub Profile
@oct2pus
oct2pus / rmcomments.fish
Created March 7, 2024 22:10
automates removal of flac comments
#!/usr/bin/fish
for song in (ls .)
~/Coding/fvcrm/fvcrm $song
end
@oct2pus
oct2pus / euclid.cfg
Last active December 28, 2022 19:50
current klipper config
# X is currently set to 350 and Y is set to 365
## Movement Locations to work out
## Pre-flight position X100 Y20
## Dock Adjacent position X30 Y0
## Probe pikcup over dock X0 Y0
## Dock exit Position X0 Y40
## Probe Ready Position X150 Y30
# Home position is 20X and and -15Y
@oct2pus
oct2pus / printer.cfg
Last active December 12, 2022 00:13
ender 5 plus w/ octopus v1.1 mainboard klipper config
[include mainsail.cfg]
[virtual_sdcard]
path: /home/pi/printer_data/gcodes
# This file contains common pin mappings for the BigTreeTech Octopus.
# To use this config, the firmware should be compiled for the
# STM32F446 with a "32KiB bootloader" and a "12MHz crystal" clock reference.
# See docs/Config_Reference.md for a description of parameters.
@oct2pus
oct2pus / wav2flac.fish
Created September 1, 2022 18:10
i use .flac for archives, but occassionally i get lossless music as .wav files. little conversion script to simplify my life
#!/bin/env fish
for i in (ls $argv[1]/*.wav)
mkdir -p $argv[2]
set o (basename -s .wav $i)
echo $argv[2]/$o.flac
ffmpeg -i {$i} $argv[2]/$o.flac
end
@oct2pus
oct2pus / PKGBUILD.makedeb
Last active December 26, 2021 13:47
PKGBUILD for a neovim-gtk fork by Lyude
# Maintainer: Wesley Moore <wes@wezm.net>
# Modified: Octopus Octopus <oct2pus@jade.moe>
_pkgname=neovim-gtk
pkgname=neovim-gtk-git
pkgver=807
pkgrel=1
pkgdesc='GTK UI for Neovim written in Rust'
arch=('i686' 'x86_64')
url="https://github.com/Lyude/neovim-gtk"
license=('GPL3')
@oct2pus
oct2pus / convert.fish
Created February 7, 2021 08:23
Simple script I wrote to convert my .flac files into .opus files for mobile
#!/bin/env fish
# Requires opus-tools, golf (included in gist)
set SOURCE_DIR $argv[1]
set OUTPUT_DIR $argv[2]
set SOURCE_TREE (tree $SOURCE_DIR -d -i -L 1)
# incase I want to make any changes to the encoding.
function _encode
opusenc $argv[1] $argv[2]
@oct2pus
oct2pus / PKGBUILD
Created September 13, 2020 08:21
PKGBUILD for gnome-shell-extension-caffeine
# Maintainer: Octopus Octopus<oct2pus@jade.moe>
pkgname=gnome-shell-extension-caffeine
pkgver=35
pkgrel=1
pkgdesc="Disable screensaver and auto suspend"
arch=('any')
url="https://github.com/eonpatapon/gnome-shell-extension-caffeine"
license=('custom')
depends=('gnome-shell')
# Maintainer: Octopus Octopus <oct2pus@jade.moe>
# Maintainer: Wesley Moore <wes@wezm.net>
pkgname=tootle
pkgver=1.0
subver="alpha1"
pkgrel=4
pkgdesc="GTK3 client for Mastodon"
arch=('x86_64')
url="https://github.com/bleakgrey/tootle"
license=('GPL3')
@oct2pus
oct2pus / parse_music.rb
Created August 23, 2020 00:13
script i wrote to figure out what albums left i need to download from bandcamp
# include Array
# include Dir
require 'colorize'
input = ARGV
folders = Array.new
zips = Array.new
flacs = Array.new
Dir.foreach(input[0]) do |x|
@oct2pus
oct2pus / capture.fish
Created July 26, 2020 05:08
various pinebook pro config files and scripts
#!/usr/bin/env fish
grim -g (slurp -d) ~/Pictures/Screenshots/(date +%Y%m%d%H%M%S).png