Skip to content

Instantly share code, notes, and snippets.

@varenc
varenc / pet-snippet.toml
Last active November 14, 2024 03:08
description
[[Snippets]]
Description = "my personal snippets. Relies on many of my own functions. If you're interested in pmset/disabling assertions, see: https://gist.github.com/varenc/627f6be2a5ec9d52dab3cf0d157be62f"
Output = ""
Tag = []
command = ""
[[Snippets]]
Description = "start dev file syncer. uses fswatch to know when to run rsync. does not sync .git file. Sort like a write-through cache network file system with only eventual consistency guarantees."
Output = ""

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:

@varenc
varenc / camps2014
Last active September 7, 2018 02:28 — forked from tastycode/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: '[email protected]' },
{ 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.',
@varenc
varenc / wrap_ohmyzsh_git_prompt_info.sh
Last active June 1, 2021 01:59
Turn off oh-my-zsh's git prompt info in certain directories (useful for networked/rclone mount filesystems/Dropbox/GDrive)
# 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 or an rclone mount)
# 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. Or if it does it'll fetch all the contents
# (git also needs to check all your parent dirs for a `.git` folder as well...)
# 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 / tesseract.rb
Created February 6, 2019 00:14
Tesseract.rb before options removal, but with cxx11 removed
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
@varenc
varenc / homebrew_mojave_bottle_sizes.txt
Created February 7, 2019 04:40
all homebrew bottle sizes in MB sorted -- 2/6/2019
### 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/[email protected]_1.mojave.bottle.tar.gz
@varenc
varenc / tesseract.rb
Created February 8, 2019 20:02
tesseract 3.05.02 from homebrew-core commit ca4932cb8
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 / tesseract.rb
Created February 8, 2019 20:05
tesseract 4.0.0 from homebrew-core commit 793ad82ee5
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 / ngrok-copy
Last active November 5, 2024 13:10 — forked from mlsteele/ngrok-copy
Copy the url of the active ngrok connection to the clipboard. Updated Oct-2019
#!/usr/bin/env bash
# Copy the url of the active ngrok connection to the clipboard. Updated for latest ngrok (Oct 2019)
#
# Usage:
# ngrok-copy # copies e.g. https://3cd67858.ngrok.io to clipboard.
# ngrok-copy -u # copies e.g. http://3cd67858.ngrok.io to clipboard.
#
# Modified from the original script at https://gist.github.com/mlsteele/f57adc1fab5c44656d6d