Skip to content

Instantly share code, notes, and snippets.

View realchrisolin's full-sized avatar

Chris Olin realchrisolin

View GitHub Profile
00000000 00 00 00 18 66 74 79 70 6d 70 34 32 00 00 00 00 |....ftypmp42....|
00000010 6d 70 34 31 69 73 6f 6d 00 00 00 28 75 75 69 64 |mp41isom...(uuid|
00000020 5c a7 08 fb 32 8e 42 05 a8 61 65 0e ca 0a 95 96 |\...2.B..ae.....|
00000030 00 00 00 0c 31 30 2e 30 2e 31 39 30 34 34 2e 30 |....10.0.19044.0|
00000040 00 00 02 0d 6d 64 61 74 00 00 00 00 00 00 00 10 |....mdat........|
00000050 20 97 6a 97 66 2a 24 44 04 00 00 00 07 1d 2d 2d | .j.f*$D......--|
00000060 c0 26 28 84 f9 85 12 14 4a 4a 32 c9 49 37 48 56 |.&(.....JJ2.I7HV|
00000070 00 bd b6 55 4a cc 37 98 30 dc 8f b2 66 19 a4 d8 |...UJ.7.0...f...|
00000080 94 b8 94 3d bf 8d 3c b1 37 c7 6e b7 0c 09 d1 ba |...=..<.7.n.....|
00000090 60 9b 7a 22 d9 68 9c 2b 38 58 84 55 31 85 5d 1a |`.z".h.+8X.U1.].|
@realchrisolin
realchrisolin / newcase
Created February 13, 2020 20:47
utility script to automatically create new directories associated with support cases (to manage log files from multiple customers/cases)
########################################################
# vim:ft=sh:smd:ar:si:et:bg=dark:ts=4:sw=4
# file: newcase
# author: Chris Olin - http://chrisolin.com
# purpose: automatically create new case directories
# created date: 12-12-2012
# license:
########################################################
#post-run stuff
"C:\Users\Chris Olin\AppData\Local\Programs\Python\Python37\python.exe" "C:/Users/Chris Olin/PycharmProjects/pyportify/pyportify/server.py"
Listening on http://0.0.0.0:3132
Please open your browser window to http://localhost:3132
Gathering tracks for playlist Saved Tracks (80)
(8/80) Found 'Max Cooper - Harmonisch Serie' in Google Music
(13/80) Found 'Bono - I Am The Walrus - From "Across The Universe" Soundtrack' in Google Music
(6/80) Found 'Eric Whitacre - Equus' in Google Music
(10/80) Found 'Evan Rachel Wood - It Won't Be Long - From "Across The Universe" Soundtrack' in Google Music
(12/80) Found 'Carol Woods - Let It Be - From "Across The Universe" Soundtrack' in Google Music
(14/80) Found 'Jim Sturgess - Something - From "Across The Universe" Soundtrack' in Google Music
; ===========================================================================
; Run a program or switch to it if already running.
; Target - Program to run. E.g. Calc.exe or C:\Progs\Bobo.exe
; WinTitle - Optional title of the window to activate. Programs like
; MS Outlook might have multiple windows open (main window and email
; windows). This parm allows activating a specific window.
; Use RunOrActivateMultiParam() for applications that have multiple execution
; parameters when RunOrActivate() doesn't work
; ===========================================================================
; change this to your home directory path
@realchrisolin
realchrisolin / Dockerfile
Created March 25, 2017 05:05
Generic Ubuntu dev environment Dockerfile
# Use Xenial as a base image
FROM ubuntu:16.04
# Fix ReadLine warnings
ENV TERM linux
# Install apt based dependencies required to run Rails as
# well as RubyGems. As the Ruby image itself is based on a
# Debian image, we use apt-get to install those.
#!/bin/bash -x
#This script is a simple bash script that checks the directory (and subdirectories) that it is
#run in and tries converting any ISO images to H.264 videos using Handbrake. You will need
#dirname installed on your machine along with HandBrakeCLI.
#
#WARNING: It WILL change the extensions of your .iso images to .osi. Comment the second to last
#line in the script if you do not want this to happen.
#
#Be sure to edit the script and change "/path/to/converted_movies" to whatever directory you

Keybase proof

I hereby claim:

  • I am realchrisolin on github.
  • I am realchrisolin (https://keybase.io/realchrisolin) on keybase.
  • I have a public key ASAqS4-KdIf-imhFXtO8AQwsM9ZBQwHW3kKvOKKrEBq2BAo

To claim this, I am signing this object:

# Simple shell script to quickly generate a list of 12 character temp passwords that I've been using for years
#!/bin/bash
head -c 500 /dev/urandom | tr -dc 'a-zA-Z0-9-_!@#$%^&*()_+{}|:<>?='|fold -w 12| head -n 8| grep -i '[!@#$%^&*()_+{}|:<>?=]'
@realchrisolin
realchrisolin / muviconv.sh
Last active August 29, 2015 14:04
h264 to dnxhd
# Simple script to convert all .MOV files (like the ones generated by a Veho Muvi) to an acceptable codec that can be used with Cinelerra
for i in *.MOV; do avconv -i $i -y -vcodec dnxhd -b 145M -mbd rd -r 59.94 -acodec copy -threads 6 ${i%.MOV}-DNxHD.mov; done
@realchrisolin
realchrisolin / ssh-copy-id
Created June 5, 2014 02:50
automagically copies ssh public key to remote server. stolen from ubuntu.
#!/bin/sh
# Shell script to install your public key on a remote machine
# Takes the remote machine name as an argument.
# Obviously, the remote machine must accept password authentication,
# or one of the other keys in your ssh-agent, for this to work.
ID_FILE="${HOME}/.ssh/id_rsa.pub"
if [ "-i" = "$1" ]; then