Skip to content

Instantly share code, notes, and snippets.

View M3TIOR's full-sized avatar
😵‍💫
Trying to finish something

Ruby Allison Rose M3TIOR

😵‍💫
Trying to finish something
  • Vancouver WA, USA
View GitHub Profile
@M3TIOR
M3TIOR / README.md
Last active February 25, 2018 19:30
Python ASCII word frequency analyzer

Python ASCII word frequency analyzer

No suprise, It's borked!

This is a little side project i've been working on for the last few weeks because I decided I wanted to create a dynamic test case system for a friend of mines, machine learning class homework. Needless to say, I've had my hands full and I'm kinda tired of working on the f**ker! It's a little broken, the ps0 assignment that I finished should should be somewhere along the lines of complete, save for a few things. It workes for the original test cases but not my randomly generaterated ones and that could be either because I fucked up the generator somehow or It doesn't cover every string case...

Most likely it's a generator error because that's the thing that's taken me the longest to program. Between minor optimizations and design choices

@M3TIOR
M3TIOR / README.md
Last active February 25, 2018 19:33
swcp.sh (Secure Worm Copy)

swcp.sh (Secure Worm Copy)

(;n;)

I'm so pissed a this project. I guess this is what I get for not doing the proper R&D before beginning a project, am I right? Basically, The reason I'm abandoning this project is because ssh intentionally removes the ability of the user to nest non-interactive ssh sessions. It's done for security obviously. But it frustrates me that I can't help resolve my friend's issue with school server LAG. Which was literally the only reason I started this project...

The problem:

I'm my friends programming tutor right? Well, they're taking classes at Clark College in Washington, and both of their programming classes require that they login to the schools ssh server to get any work done. My friends python class was easy to deal with since their class files

@M3TIOR
M3TIOR / README.md
Last active June 20, 2018 19:15
xclipcommit

xclipcommit

  • Language: (LEGACY) BORNE SHELL SCRIPT
  • Compilation Project: M3TIOR's Toolbox
  • Dependencies: git, xclip
  • Platform: Shell: Debian Shell, dash; Bourne Shells, sh & bash;
  • Version: 1

xclipcommit is just a small shell script that pushes your xorg clipboard into the current git branch as the commit message. I decided to write this little tool as a cure to my woes working with git, as I usually end up writing my commit messages in

@M3TIOR
M3TIOR / Expand_Test.py
Created June 19, 2017 04:19
Python 3 Path-Expand
#!/usr/env/python3
#
# M3TIOR 2017
# IT'S ALIVE!!!!
def n_expand(*lists):
ret = [] # our output list
counter = [0 for l in lists] # this holds all our counters
c_max = [len(l) for l in lists] # this holds all the counter's max values
digits = len(counter) # the number of spaces / digits in our outputs
@M3TIOR
M3TIOR / fixtime.sh
Created October 18, 2017 05:06
helps fix system and hardware time in unison
#!/bin/sh
# M3TIOR 2017
#
# This command does two things, sets the system clock, and the hardware clock
# It does these things well, but requires user input. However I made
# script for nothing special... Occasionally I forget to turn my laptop off
# and completely kill the battery. This in turn kills the hardware clock and
# thus, it defaults to some time in 2197. That prevents me from using
# the interwebs to help me help myself.
@M3TIOR
M3TIOR / README.md
Created November 11, 2017 02:59
An svg renderer I had to build because the only thing that would properly render it was my browser...

SVG2

WARNING: This project is incomplete!

So, for the longest time now I've been making all my web-specific art in svg. I just recently made a piece of work that for most svg renderers can't handle, which I included in this gist just to give a little example as to why this is so frustrating.

But the thing is, typical SVGs can't properly use polygons or paths in a defined group. Now honestly I'm pretty sure that's a major design flaw considering it's a lot harder to make templates for your works when your method of doing so is constrained

@M3TIOR
M3TIOR / twst.py
Last active March 8, 2018 13:45
A little twist for your tabs and spaces
#!/usr/bin/python3
#!/usr/bin/env python3
# The MIT License
#
# Copyright (c) 2018 Ruby Allison Rose
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@M3TIOR
M3TIOR / necronominot.sh
Last active February 25, 2018 19:33
The Necronominot, a semi functional version of persistent shell variable values.
#!/bin/bash
#!/usr/bin/bash
#!/usr/bin/env bash
#
# M3TIOR 2018
# This is a little script I want to finish eventually.
# But for now the project this belongs to is calling my name and I'm really
# tired of not having that around. So expect to see this in the shell
# playground when I'm done with that. Or, well... at least until I have the
@M3TIOR
M3TIOR / getopt_mimic.sh
Last active April 2, 2018 08:33
The Bash Segfault #1
#!/bin/bash
#!/usr/bin/bash
#
# M3TIOR 2018: getopt bash mimic;
#
getopt(){
#NOTE:
# Ok, so I know this looks really dumb, having a double assignment;
@M3TIOR
M3TIOR / test_fbx_range.py
Last active June 24, 2018 10:19
A test script I wrote to check what values, when they have their bits flipped over the vertical axis, will execed the original value.
#!/usr/bin/env python3
#
# M3TIOR 2018
#
# This is just a small test I whipped together to find all the instances in
# a binary value where, if the bit's are flipped along the vertical axis,
# the flipped instance will contain a larger decimal value than the original.
# Just so I could make sure value conversions would always be correct for my
# pyna project when doing flipped encoding and decoding. Since I made that an