Skip to content

Instantly share code, notes, and snippets.

Chris Varenhorst varenc

Block or report user

Report or block varenc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@varenc
varenc / tesseract.rb
Created Feb 8, 2019
tesseract 4.0.0 from homebrew-core commit 793ad82ee5
View tesseract.rb
class Tesseract < Formula
desc "OCR (Optical Character Recognition) engine"
homepage "https://github.com/tesseract-ocr/"
url "https://github.com/tesseract-ocr/tesseract/archive/4.0.0.tar.gz"
sha256 "a1f5422ca49a32e5f35c54dee5112b11b99928fc9f4ee6695cdc6768d69f61dd"
bottle do
sha256 "bb4b2eb8d8636c3f73bb692de94e833351ce505249f37e45a296ea633ffa9630" => :mojave
sha256 "9fd259800c2c9b7c56f2f5b64be234c93019a0c00f8578cf82d45c28726e04ea" => :high_sierra
sha256 "03335e88190bd7995f4ec721f84c54fa624733fde5af1086825292d287e8e7d6" => :sierra
@varenc
varenc / tesseract.rb
Created Feb 8, 2019
tesseract 3.05.02 from homebrew-core commit ca4932cb8
View tesseract.rb
class Tesseract < Formula
desc "OCR (Optical Character Recognition) engine"
homepage "https://github.com/tesseract-ocr/"
url "https://github.com/tesseract-ocr/tesseract/archive/3.05.02.tar.gz"
sha256 "494d64ffa7069498a97b909a0e65a35a213989e0184f1ea15332933a90d43445"
bottle do
sha256 "bb4b2eb8d8636c3f73bb692de94e833351ce505249f37e45a296ea633ffa9630" => :mojave
sha256 "9fd259800c2c9b7c56f2f5b64be234c93019a0c00f8578cf82d45c28726e04ea" => :high_sierra
sha256 "03335e88190bd7995f4ec721f84c54fa624733fde5af1086825292d287e8e7d6" => :sierra
@varenc
varenc / homebrew_mojave_bottle_sizes.txt
Created Feb 7, 2019
all homebrew bottle sizes in MB sorted -- 2/6/2019
View homebrew_mojave_bottle_sizes.txt
### these are homebrew's mojave bottle sizes as of 2/6/2019.
### Remember that bottles are compressed so they might double
### in size or more once installed on disk
### made with this horrible, horrible command: ``` brew info --json --all | jq -r '.[].bottle.stable.files.mojave.url' | xargs -I {} sh -c 'echo {}; curl -sI {}' | grep "https\|content-length" | sed -e ':a' -e 'N' -e '$!ba' -e 's/gz\n/gz /g' | awk '{printf "%d %s\n", $3,$1}' | sort -nr| awk '{printf "%.2f MB %s\n", $1/1024**2, $2}' ```
1280.52 MB https://homebrew.bintray.com/bottles/jumanpp-1.02.mojave.bottle.tar.gz
868.10 MB https://homebrew.bintray.com/bottles/llvm-7.0.1.mojave.bottle.tar.gz
808.57 MB https://homebrew.bintray.com/bottles/llvm@6-6.0.1_1.mojave.bottle.tar.gz
@varenc
varenc / tesseract.rb
Created Feb 6, 2019
Tesseract.rb before options removal, but with cxx11 removed
View tesseract.rb
class Tesseract < Formula
desc "OCR (Optical Character Recognition) engine"
homepage "https://github.com/tesseract-ocr/"
url "https://github.com/tesseract-ocr/tesseract/archive/4.0.0.tar.gz"
sha256 "a1f5422ca49a32e5f35c54dee5112b11b99928fc9f4ee6695cdc6768d69f61dd"
head "https://github.com/tesseract-ocr/tesseract.git"
bottle do
rebuild 1
sha256 "76f2053063b398c6b73a9a34cc94e3624aef5f4ea4df75841860d68a7791b6b5" => :mojave
View Install ffmpeg with all options 2019
# Homebrew has done away with options in all of their core formulas
# discussion on this change here: https://github.com/Homebrew/homebrew-core/issues/31510
# Instead, Use the last version of the homebrew forumla that still supported them.
# the formula is here: https://raw.githubusercontent.com/Homebrew/homebrew-core/90e6931235a333899bd2572353ca065bd5535452/Formula/ffmpeg.rb
# install it like this:
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/90e6931235a333899bd2572353ca065bd5535452/Formula/ffmpeg.rb \
--with-aom \
--with-chromaprint \
@varenc
varenc / wrap_ohmyzsh_git_prompt_info.sh
Last active Nov 30, 2018
Turn off oh-my-zsh's git prompt info in certain directories (useful for networked/rclone mount filesystems)
View wrap_ohmyzsh_git_prompt_info.sh
# Sometimes you don't want zsh/oh-my-zsh to show you the git status under certain paths
#
# For example, on a networked file systems (like Dropbox/GDrive/S3 mounted with rclone mount/rclone cache) oh-my-zsh's git prompt can slow things down. It calls `git` which then needs to look for a `.git` directory that probably doesn't exist. Sometimes this will force a query to the server so that the server can confirm that indeed, a `.git` directory does not exist in the current location. (git also needs to check all your parent dirs for a `.git` folder as well...)
# Here's a simple solution. Put this where your other custimization are or just in `~/.zshrc`
function git_prompt_info_wrapper() {
# returns true if `/rclone_mount_filesystem/` is anywhere in your current path
if [[ $PWD/ = */rclone_mount_filesystem/* ]];
View camps2014
[ [ { title: 'A Camp with No Name (ACWNN)',
description: 'The dead horse is scarce, and we continue to beat it. Come by and sit in the desert in A Camp With No Name, where you will be told that buttered popcorn is a perfectly fantastic snow cone flavor – why would you think otherwise? (Don’t worry – there are “normal” flavors.) Look for us carting around chai or tidying up the playa with our vacuum cleaner.',
Hometown: 'Denver',
URL: 'https://www.facebook.com/pages/A-Camp-with-No-Name/259880375086?ref=hl' },
{ title: 'A Cosmic Carnivale',
description: 'Come and visit a Cosmic Carnival and may your body never miss a beat to the rhythm of this world.',
Hometown: 'Reno',
Contact: 'cosmiccarnivale@gmail.com' },
{ title: 'A Shack of Sit',
description: 'SIT HAPPENS HERE 24×7. Shady chairs & lounges: refresh, rest, meet Burners. Enjoy iced water, healthy snax, lots of activities & WiFi.',
View keybase.md

Keybase proof

I hereby claim:

  • I am varenc on github.
  • I am varenc (https://keybase.io/varenc) on keybase.
  • I have a public key whose fingerprint is A849 1251 EE16 92D7 4B71 6379 F7C1 1B41 9117 0397

To claim this, I am signing this object:

View pet-snippet.toml
[[snippets]]
description = "start lingt file syncer. uses fswatch and know when to sync. does not sync .git file"
command = "fswatch -0 --exclude \"\\.git\" --exclude \"\\.xml\" --exclude \"___\" -o /Users/chris/Documents/workspace/lingt_chris_dev_rsync_checkout/myproject | xargs -0 -n 1 -I {} rsync --progress --exclude '*.pyc' --exclude '*.git' --recursive /Users/chris/Documents/workspace/lingt_chris_dev_rsync_checkout/myproject lingt@lingt.webfactional.com:/home/lingt/webapps/lingt_dev_chris/myproject"
output = ""
[[snippets]]
description = "plex find unscanned tv!"
command = "cat <(find /Users/chris/Downloads/media/dbx_mount/tv -type f | sed 's/.*\\///' | grep 'mp4\\|mkv\\|avi') <(unbuffer /Applications/Plex\\ Media\\ Server.app/Contents/MacOS/Plex\\ Media\\ Scanner -c 4 --tree | grep 'mp4\\|mkv\\|avi' | sed 's/.*\\///' | sed 's/\\w*\\[.*\\]$//' | awk '{$1=$1};1') | sort | uniq -u"
output = ""
You can’t perform that action at this time.