Skip to content

Instantly share code, notes, and snippets.

View mykelalvis's full-sized avatar
🏠
Working from home

Mykel Alvis mykelalvis

🏠
Working from home
  • Lynker
  • Birmingham, AL
  • 16:25 (UTC -06:00)
  • X @mykelalvis
View GitHub Profile
@mykelalvis
mykelalvis / EuloStinkyButtogy.md
Created September 25, 2024 15:50
EuloStinkyButtogy

It was April 20, 2004. It was raining outside and I was recovering from some sort of crud. I had moved in with a roommate a couple of months earlier and was still working out the whole "living in a space with another person" thing, which I wasn't particularly good at. My significant other of the time had "gifted" me with a few extra cats. I already had my cat (Harvey, Voted World's Best Cat 15 years running at that point, by a jury of his owner), but there was now Tigger and ${INSERT_OTHER_CAT_NAME}. They were fine, but they weren't mine and Harvey wasn't a fan. He rightfully noted that we didn't need a second or third cat.

Anyway, like I said, it was raining outside. Higgins, my roommate, heard a noise at the door. He opened it and a skinny little black cat ran inside. She immediately bolted to the basement (because of course she did) and ultimately found the cat food there.

She was thin to the point of emaciation. I had seen a group of feral kittens outside on the street a time or two, and

A little over 13 years ago, I received an email from Diana, a person at a dog rescue. They had a pet that they thought would be great for me. We already had a cat and a dog (Dave, a German Shepherd-Husky mix), but we were afraid that our busy schedule meant Dave was bored during the day, so we were seeking a friend for him.

That new friend was a 3-year-old rat terrier mix. On a visit to the family vet, his original owners were informed that he had heartworms. Being otherwise healthy, the vet informed his family of the (non-trivial) cost of treatment. They promptly said “No, thank you” and took the little man to a local dog shelter. In case it’s not obvious, dogs who enter a shelter with heartworms are nigh-immediately euthanized; treatment is slow and can be quite expensive. As he was an otherwise healthy dog, they decided to try to get him assistance. They called Diana and asked if her rescue org could afford to treat Skip for heartworms. She did, they did, and soon thereafter, I got the aforemention

@mykelalvis
mykelalvis / VAGRANTANSIBLEAMZNLINUX2OUT.TXT
Created December 16, 2020 00:11
Vagrant/Ansible/Linux2 debug output
INFO global: Vagrant version: 2.2.14
INFO global: Ruby version: 2.6.2
INFO global: RubyGems version: 3.0.3
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_APPIMAGE_LD_LIBRARY_PATH="/tmp/.mount_vagranBhpgvf/usr/lib/:/tmp/.mount_vagranBhpgvf/usr/lib/i386-linux-gnu/:/tmp/.mount_vagranBhpgvf/usr/lib/x86_64-linux-gnu/:/tmp/.mount_vagranBhpgvf/usr/lib32/:/tmp/.mount_vagranBhpgvf/usr/lib64/:/tmp/.mount_vagranBhpgvf/lib/:/tmp/.mount_vagranBhpgvf/lib/i386-linux-gnu/:/tmp/.mount_vagranBhpgvf/lib/x86_64-linux-gnu/:/tmp/.mount_vagranBhpgvf/lib32/:/tmp/.mount_vagranBhpgvf/lib64/:"
INFO global: VAGRANT_RUBYLIB="/tmp/.mount_vagranBhpgvf/usr/local/lib/site_ruby/2.6.0:/tmp/.mount_vagranBhpgvf/usr/local/lib/x86_64-linux-gnu/site_ruby:/tmp/.mount_vagranBhpgvf/usr/local/lib/site_ruby:/tmp/.mount_vagranBhpgvf/usr/lib/ruby/vendor_ruby/2.6.0:/tmp/.mount_vagranBhpgvf/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/2.6.0:/tmp/.mount_vagranBhpgvf/usr/lib/ruby/vendor_ruby:/tmp/.mount_vagranBhpgvf/usr/lib/ruby/2.6.0:/tmp/.mo
select SUBSTRING( NAME FROM LOCATE( '/' ,NAME ) + 1 ) AS SEQUENCE_NAME from information_schema.INNODB_SYS_TABLES WHERE NAME LIKE 'somenamex' AND FLAG & 12288 );
;
DROP INDEX TBLX_Field4_IDX;
;
DROP INDEX TBLX_Field2_IDX;
DROP SEQUENCE TBLX_FIELD1_SEQ;
CREATE SEQUENCE IF NOT EXISTS TBLX_FIELD1_SEQ
INCREMENT BY 10
@mykelalvis
mykelalvis / test.groovy
Last active June 18, 2019 22:27
RegexSucksInAllLanguages
import java.util.regex.Matcher
//@Grapes([
// @Grab(group='org.codehaus.groovy', module='groovy-ant', version='2.5.7')
// ])
def ant = new AntBuilder()
def scanner = ant.fileScanner {
// fileset(dir:"${project.build.directory}") {
fileset(dir:"/home/mykel.alvis/git/nccirefdatapackager/target/dl") {
include(name:"**/*.txt")
@mykelalvis
mykelalvis / install_inspec_amazon_linux2.sh
Created April 24, 2018 19:35
Install inspec on clean Amazon Linux2
#!/bin/sh
sudo yum install -y gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel ruby-devel gcc-c++ jq git patch
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm autolibs 3
rvm install 2.4.1
gem install inspec
inspec
@mykelalvis
mykelalvis / install_ansible_amazon_linux2.sh
Created April 24, 2018 19:33
Install Ansible with pipsi on clean Amazon Linux2.
sudo yum -y install python2-pip
sudo pip install --upgrade pip
sudo pip install pipsi
sudo yum -y install python-devel
sudo yum -y install gcc
pipsi install ansible

Keybase proof

I hereby claim:

  • I am mykelalvis on github.
  • I am mykelalvis (https://keybase.io/mykelalvis) on keybase.
  • I have a public key ASC__HkUdnQeLY98pdtxnaXYrW7pXDPXOvVYo8hGiswjIQo

To claim this, I am signing this object:

#!/bin/bash
# hubot
# chkconfig: 345 20 80
# description: hubot
# processname: hubot
# REFERENCE: http://werxltd.com/wp/2012/01/05/simple-init-d-script-template/
HUBOT_INSTALL=${HUBOT_INSTALL:-/opt/hubot}
source ${HUBOT_INSTALL}/hubot.env