Skip to content

Instantly share code, notes, and snippets.

View oct2pus's full-sized avatar

Octopus "Oct2pus" Octopus oct2pus

View GitHub Profile
@oct2pus
oct2pus / connect2bluetooth.fish
Last active May 30, 2020 04:54
because my bluetooth speakers require me to connect multiple times before they actually connect :\
#!/usr/bin/env fish
set success "false"
while test "$success" = "false"
set connect (bluetoothctl connect $argv[1])
set success (string match -q -r "Failed to connect" $connect;and echo false; or echo true)
echo $connect \n
end
@oct2pus
oct2pus / config.fish
Created April 16, 2020 03:43
current laptop config.fish (April 15th, 2020)
source ~/.config/fish/fish.d/*.fish
# set
set -x PATH /usr/lib/go-1.12/bin $PATH
set -x PATH ~/.gem/ruby/2.5.0/bin $PATH
set -x PATH ~/Coding/go/bin $PATH
set -x PATH ~/.local/bin $PATH
set -x GOPATH ~/Coding/Go
# Base16 Shell
@oct2pus
oct2pus / ffwayland.fish
Created April 16, 2020 03:41
simple fish script to set wayland on or off in firefox
#!/usr/bin/fish
set ffpath ~/.config/fish/fish.d
set ffile $ffpath/ffwayland.fish
set annoy "Cmon dude, is it on or off?"
function wayland_on
echo set -x MOZ_ENABLE_WAYLAND 1 > $ffile
end
@oct2pus
oct2pus / config.fish
Last active April 16, 2020 03:42
current desktop fish config (sept 28, 2019)
# PATH
set -gx GOPATH $HOME/Coding/go
set -gx PATH $HOME/Coding/go/bin $PATH
set -gx PATH $HOME/.gem/ruby/*/bin $PATH
set -gx PATH $HOME/.local/bin $PATH
set -gx PATH $HOME/.local/share/npm/bin $PATH
# XDG
@oct2pus
oct2pus / 45-generic.conf
Last active July 30, 2019 07:50
(almost) everything you need 4 mutant standard's emoji font.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
<its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
</its:rules>
<description>Set substitutions for emoji/math fonts</description>
<!-- Keep in sync with 60-generic.conf -->
@oct2pus
oct2pus / markov-test.go
Created July 20, 2019 21:21
markov work
package main
import (
"encoding/json"
"flag"
"fmt"
"github.com/mb-14/gomarkov"
"io/ioutil"
"math/rand"
"strings"
package main
import (
"bufio"
"fmt"
"os"
"regexp"
"strings"
)
@oct2pus
oct2pus / markov.fish
Last active November 5, 2019 06:00
simple script fish homestuck update checker for mastodong. You have to login seperately prior to this working.
#!/usr/bin/fish
# requires toot, a trained model.json, and generator
# (found @ github.com/oct2pus/jadebot/markov/generator)
while true
toot post (./generator)
sleep 3600
end

NukNuk "This is your life"

Origins

Parents

  • I know my parents.

Birthplace

I would like Pixelfed to follow in the steps of Mastodon, Pleroma, GNUSocial, Peertube and Friendica in licencing Pixelfed as APGL.

Why?

There are numerous reasons why AGPL is a better licence than the MIT licence for such a project, and let me go over my thoughts on the subject.

Honesty

The AGPL licence would make instances of Pixelfed legally liable to publish their source code if they create any sort of modification, this promotes a culture of honesty present in the majority of the fediverse.