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
DAYS=
cd /home
for a in *
do
pushd ${a}
find . -mtime +${DAYS} > /tmp/${a}.find
L=$(wc -l /tmp/${a}.find)
# [ ${L} -gt 2 ] && zip -mrq /tmp/${a}.zip .
popd
done
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
# This script uses `HandBrakeCLI` (see: <http://handbrake.fr/>) to transcode a
# video file or disc image directory into a format and size similar to videos
# available for download from the iTunes Store.
#
@mykelalvis
mykelalvis / Rip.java
Last active August 29, 2015 14:20 — forked from swankjesse/Rip.java
/*bin/mkdir /tmp/rip 2> /dev/null
javac -d /tmp/rip $0
java -cp /tmp/rip Rip "$@"
exit
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.util.regex.Matcher;
[DEBUG] Deploying to 'github:http://deliver8r.github.io/deliver8r-parent/site/0.0.4-SNAPSHOT/',
Using credentials from server id 'githubd8r'
[DEBUG] configureWagon
[DEBUG] configureWagon server ossrh
[DEBUG] configureWagon server central
[DEBUG] configureWagon server snapshots
[DEBUG] configureWagon server remote-repos
[DEBUG] configureWagon server githubd8r
[DEBUG] configureWagon server github
[DEBUG] repository protocol github
#!/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

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:

@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
@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 / 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")
;
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