Skip to content

Instantly share code, notes, and snippets.

View jstjohn's full-sized avatar

John St. John jstjohn

View GitHub Profile
@jstjohn
jstjohn / jsj-latent-difussion-text-to-image-2022-04-10.ipynb
Last active December 23, 2022 07:57
JSJ Latent Difussion Text To Image 2022/04/10.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jstjohn
jstjohn / rmate
Created September 4, 2012 16:31
rmate that works by default on both remote SSH servers and localhost
#!/usr/bin/env ruby
# encoding: UTF-8
$VERBOSE = true # -w
$KCODE = "U" if RUBY_VERSION < "1.9" # -KU
require 'optparse'
require 'socket'
require 'tempfile'
require 'yaml'
@jstjohn
jstjohn / homebrew_gist
Created August 21, 2011 02:23
opencv on osx lion with ffmpeg installed
==> Downloading http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.2/OpenCV-2.2.0.tar.bz2
File already downloaded in /Users/jstjohn/Library/Caches/Homebrew
/usr/bin/tar xf /Users/jstjohn/Library/Caches/Homebrew/opencv-2.2.tar.bz2
==> cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/opencv/2.2 .
cmake -G 'Unix Makefiles' -DCMAKE_INSTALL_PREFIX:PATH=/usr/local/Cellar/opencv/2.2 .
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
@jstjohn
jstjohn / homebrew_doctor
Created August 21, 2011 02:25
homebrew doctor file for opencv with ffmpeg install issues.
Some "config" scripts were found in your path, but not in system or Homebrew folders.
`./configure` scripts often look for *-config scripts to determine if software packages
are installed, and what additional flags to use when compiling and linking.
Having additional scripts in your path can confuse software installed via Homebrew if
the config script overrides a system or Homebrew provided script of the same name.
/Library/Frameworks/EPD64.framework/Versions/Current/bin