Skip to content

Instantly share code, notes, and snippets.

@meowist
meowist / keybase.md
Created March 13, 2014 14:29
Keybase Proof Public Gist

Keybase proof

I hereby claim:

  • I am meowist on github.
  • I am justin (https://keybase.io/justin) on keybase.
  • I have a public key whose fingerprint is 8D60 FAE8 7888 1971 E0C2 D304 B617 ED02 A309 0D6F

To claim this, I am signing this object:

@meowist
meowist / split_folders.sh
Created November 5, 2015 14:16
bash script to split dirs into subdirs with param for number of files in each subdir
i=0;
for f in *;
do d=dir_$(printf %03d $((i/3000+1)));
mkdir -p $d;
mv "$f" $d;
let i++;
done
#!/bin/bash
# checks all htm files in directory for windows-1252 and macintosh charsets and converts to utf8
for i in *.htm;
do
if grep -q macintosh $i;
then iconv -f macintosh -t utf8 $i > $i.tmp;
elif grep -q windows-1252 $i;
then iconv -f windows-1252 -t utf8 $i > $i.tmp;
else
@meowist
meowist / rename-html-to-htm.sh
Last active November 20, 2015 18:59
Renames all html files as htm files (in present directory only)
for files in *.html; do mv -f "$files" "${files%.html}.htm"; done

Keybase proof

I hereby claim:

  • I am meowist on github.
  • I am justin (https://keybase.io/justin) on keybase.
  • I have a public key whose fingerprint is 817E 160F 4279 ADA7 6F90 7901 EE92 1D5F 945B DE8B

To claim this, I am signing this object:

@meowist
meowist / imagemagick.rb
Last active August 4, 2016 16:38
brew install patch for imagemagick 6.7.7-10
require 'formula'
class Imagemagick < Formula
homepage 'http://www.imagemagick.org'
url 'http://www.imagemagick.org/download/releases/ImageMagick-6.7.7-10.tar.xz'
sha256 'iQIcBAABAgAGBQJXnJM5AAoJEImrY9SCdzd6STEP+wVTZfxyuC1MBjseZ/zXt/9P
GZ2TZqHyedOv5EuXCJZFFtdFTSQHnTuz1HQ2aL/M6hIOVgeyxTsvgwZQJez4UY4P
G9eM/K++6RuJW8+3S0DX8DfTCbqBd5deYmkeo9MVfaEGkfjG7flLlRPZO1ataRx7
oNwec5Jzt8GYvvGXxrozY/wPQC5O3VLlNFPUb16ytE7EYHNYArd429DO1SB6QMER